Add support for the readnever concept
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-12-01 Andrew Cagney <cagney@redhat.com>
2 Joel Brobecker <brobecker@adacore.com>
3 Sergio Durigan Junior <sergiodj@redhat.com>
4
5 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
6 feature.
7 * coffread.c (coff_symfile_read): Do not map over sections with
8 'coff_locate_sections' if readnever is on.
9 * dwarf2read.c (dwarf2_has_info): Return 0 if
10 readnever is on.
11 * elfread.c (elf_symfile_read): Do not map over sections with
12 'elf_locate_sections' if readnever is on.
13 * main.c (validate_readnow_readnever): New function.
14 (captured_main_1): Add support for --readnever.
15 (print_gdb_help): Document --readnever.
16 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
17 flag.
18 * symfile.c (readnever_symbol_files): New global.
19 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
20 'READNEVER_SYMBOL_FILES' is set.
21 (validate_readnow_readnever): New function.
22 (symbol_file_command): Handle '-readnever' option.
23 Call 'validate_readnow_readnever'.
24 (add_symbol_file_command): Handle '-readnever' option.
25 Call 'validate_readnow_readnever'.
26 (_initialize_symfile): Document new '-readnever' option for
27 both 'symbol-file' and 'add-symbol-file' commands.
28 * top.h (readnever_symbol_files): New extern global.
29 * xcoffread.c (xcoff_initial_scan): Do not read debug
30 information if readnever is on.
31
32 2017-12-01 Tom Tromey <tom@tromey.com>
33
34 * Makefile.in (all_deps_files): New variable.
35 Include .Po files using all_deps_files.
36
37 2017-12-01 Joel Brobecker <brobecker@adacore.com>
38
39 * MAINTAINERS: Update list of maintainers, moving those who
40 stepped down or became inactive to the "Past Maintainers"
41 section.
42
43 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44
45 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
46 sys/proc.h.
47 (NEW_PROC_API): Remove.
48 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
49 Likewise.
50 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
51 * configure: Regenerate.
52 * config.in: Regenerate.
53 * gdbserver/configure: Regenerate.
54 * gdbserver/config.in: Regenerate.
55
56 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
57 NEW_PROC_API test.
58 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
59
60 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
61
62 * proc-api.c: Remove !NEW_PROC_API support.
63 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
64 Remove tests for macros always defined on Solaris.
65 * proc-events.c: Remove !NEW_PROC_API support.
66 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
67 HAVE_SYS_USER_H tests.
68 (init_syscall_table): Remove non-Solaris syscalls.
69 Remove tests for syscalls present on all Solaris versions.
70 Add missing Solaris 10+ syscalls.
71 (signal_table): Remove non-Solaris signals.
72 Remove tests for signals present on all Solaris versions.
73 (fault_table): Remove non-Solaris faults.
74 Remove tests for faults present on all Solaris versions.
75 * proc-flags.c: Remove !NEW_PROC_API support.
76 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
77 Remove non-Solaris flags.
78 * proc-why.c: Remove !NEW_PROC_API support.
79 (pr_why_table): Remove meaningless comments.
80 Remove tests for reasons present on all Solaris versions.
81 Remove OSF/1 cases.
82 (proc_prettyfprint_why): Likewise.
83
84 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
85 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
86 Remove WA_READ test, IRIX watchpoint support.
87 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
88 types. Change users.
89 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
90 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
91 Change callers.
92 Remove CTL_PROC_NAME_FMT tests.
93 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
94 users.
95 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
96 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
97 (proc_modify_flag): Replace GDBRESET by PCUNSET.
98 Remove PR_ASYNC, PR_KLC tests.
99 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
100 (proc_parent_pid): Remove PCWATCH etc. tests.
101 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
102 Remove PCAGENT test.
103 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
104 Remove SYS_lwpcreate || SYS_lwp_create test.
105 (proc_get_current_thread): Likewise.
106 [PIOCNTHR && PIOCTLIST]: Remove.
107 [PIOCLSTATUS]: Remove.
108 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
109 [PRFS_STOPEXEC]: Remove.
110 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
111 (syscall_is_exit): Likewise.
112 (syscall_is_exec): Likewise.
113 (syscall_is_lwp_create): Likewise.
114 Remove SYS_syssgi support.
115 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
116 [SYS_syssgi]: Remove.
117 Remove non-Solaris cases, conditionals.
118 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
119 Remove.
120 (procfs_init_inferior) [SYS_syssgi]: Remove.
121 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
122 (procfs_inferior_created) [SYS_syssgi]: Remove.
123 (procfs_set_watchpoint): Remove !AIX5 test.
124 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
125 case.
126 (mappingflags) [MA_PHYS]: Remove.
127 (info_mappings_callback): Remove PCAGENT test.
128 Remove PIOCOPENLWP || PCAGENT test.
129
130 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
131
132 * sol-thread.c (info_solthreads): Constify args.
133 Cast args to void *.
134
135 2017-11-29 John Baldwin <jhb@FreeBSD.org>
136
137 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
138
139 2017-11-29 Joel Brobecker <brobecker@adacore.com>
140
141 * ada-lang.c (to_fixed_range_type): Make sure that the size
142 of the range type being returned is the same as the size
143 of the range type being fixed.
144
145 2017-11-29 Pedro Alves <palves@redhat.com>
146
147 PR c++/19436
148 * NEWS: Mention setting breakpoints on functions with C++ ABI
149 tags.
150 * completer.h (completion_match_for_lcd) <match,
151 mark_ignored_range>: New methods.
152 <finish>: Consider ignored ranges.
153 <clear>: Clear ignored ranges.
154 <m_ignored_ranges, m_finished_storage>: New fields.
155 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
156 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
157 completion_match_for_lcd pointer to strncmp_iw_with_mode.
158 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
159 * language.c (default_symbol_name_matcher): Pass the
160 completion_match_for_lcd pointer to strncmp_iw_with_mode.
161 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
162 * utils.c (skip_abi_tag): New function.
163 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
164 Handle ABI tags.
165 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
166 parameter.
167
168 2017-11-29 Pedro Alves <palves@redhat.com>
169
170 PR c++/19436
171 * NEWS: Mention setting breakpoints on functions with C++ ABI
172 tags.
173 * completer.h (completion_match_for_lcd) <match,
174 mark_ignored_range>: New methods.
175 <finish>: Consider ignored ranges.
176 <clear>: Clear ignored ranges.
177 <m_ignored_ranges, m_finished_storage>: New fields.
178 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
179 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
180 completion_match_for_lcd pointer to strncmp_iw_with_mode.
181 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
182 * language.c (default_symbol_name_matcher): Pass the
183 completion_match_for_lcd pointer to strncmp_iw_with_mode.
184 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
185 * utils.c (skip_abi_tag): New function.
186 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
187 Handle ABI tags.
188 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
189 parameter.
190
191 2017-11-29 Pedro Alves <palves@redhat.com>
192
193 * NEWS: Mention that breakpoints on C++ functions are now set on
194 on all namespaces/classes by default, and mention "break
195 -qualified".
196 * ax-gdb.c (agent_command_1): Adjust to pass a
197 symbol_name_match_type to new_linespec_location.
198 * breakpoint.c (parse_breakpoint_sals): Adjust to
199 get_linespec_location's return type change.
200 (strace_marker_create_sals_from_location): Adjust to pass a
201 symbol_name_match_type to new_linespec_location.
202 (strace_marker_decode_location): Adjust to get_linespec_location's
203 return type change.
204 (strace_command): Adjust to pass a symbol_name_match_type to
205 new_linespec_location.
206 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
207 mention "-qualified".
208 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
209 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
210 enumerator.
211 (complete_address_and_linespec_locations): New parameter
212 'match_type'. Pass it down.
213 (explicit_options): Add "-qualified".
214 (collect_explicit_location_matches): Pass the requested match type
215 to the linespec completers. Handle MATCH_QUALIFIED.
216 (location_completer): Handle "-qualified" combined with linespecs.
217 * cp-support.c (cp_search_name_hash): New.
218 (cp_symbol_name_matches_1): Implement wild matching for C++.
219 (cp_fq_symbol_name_matches): Reimplement.
220 (cp_get_symbol_name_matcher): Return different matchers depending
221 on the lookup name's match type.
222 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
223 * cp-support.h (cp_search_name_hash): New declaration.
224 * dwarf2read.c
225 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
226 symbols.
227 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
228 tests.
229 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
230 pass a symbol_name_match_type to new_linespec_location.
231 * linespec.c (linespec_parse_basic): Lookup function symbols using
232 the parser's symbol name match type.
233 (convert_explicit_location_to_linespec): New
234 symbol_name_match_type parameter. Pass it down to
235 find_linespec_symbols.
236 (convert_explicit_location_to_sals): Pass the location's name
237 match type to convert_explicit_location_to_linespec.
238 (parse_linespec): New match_type parameter. Save it in the
239 parser.
240 (linespec_parser_new): Default to symbol_name_match_type::WILD.
241 (linespec_complete_function): New symbol_name_match_type
242 parameter. Use it.
243 (complete_linespec_component): Pass down the parser's recorded
244 name match type.
245 (linespec_complete_label): New symbol_name_match_type parameter.
246 Use it.
247 (linespec_complete): New symbol_name_match_type parameter. Save
248 it in the parser and pass it down. Adjust to
249 get_linespec_location's prototype change.
250 (find_function_symbols, find_linespec_symbols): New
251 symbol_name_match_type parameter. Pass it down instead of
252 assuming symbol_name_match_type::WILD.
253 * linespec.h (linespec_complete, linespec_complete_function)
254 (linespec_complete_label): New symbol_name_match_type parameter.
255 * location.c (event_location::linespec_location): Now a struct
256 linespec_location.
257 (EL_LINESPEC): Adjust.
258 (initialize_explicit_location): Default to
259 symbol_name_match_type::WILD.
260 (new_linespec_location): New symbol_name_match_type parameter.
261 Record it in the location.
262 (get_linespec_location): Now returns a struct linespec_location.
263 (new_explicit_location): Also copy func_name_match_type.
264 (explicit_to_string_internal)
265 (string_to_explicit_location): Handle "-qualified".
266 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
267 Copy symbol_name_match_type fields.
268 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
269 type change.
270 (event_location_to_string): Adjust to LINESPEC_LOCATION type
271 change. Handle "-qualfied".
272 (string_to_explicit_location): Handle "-qualified".
273 (string_to_event_location_basic): New symbol_name_match_type
274 parameter. Pass it down.
275 (string_to_event_location): Handle "-qualified".
276 * location.h (struct linespec_location): New.
277 (explicit_location::func_name_match_type): New field.
278 (new_linespec_location): Now returns a const linespec_location *.
279 (string_to_event_location_basic): New symbol_name_match_type
280 parameter.
281 (explicit_completion_info::saw_explicit_location_option): New
282 field.
283 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
284 symbol_name_match_type to new_linespec_location.
285 * python/py-breakpoint.c (bppy_init): Likewise.
286 * python/python.c (gdbpy_decode_line): Likewise.
287
288 2017-11-29 Pedro Alves <palves@redhat.com>
289
290 * ada-lang.c (ada_lookup_name_info::matches): Change type of
291 parameter from completion_match to completion_match_result.
292 Adjust.
293 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
294 * completer.c (completion_tracker::maybe_add_completion): Add
295 match_for_lcd parameter and use it.
296 (completion_tracker::add_completion): Likewise.
297 * completer.h (class completion_match_for_lcd): New class.
298 (completion_match_result::match_for_lcd): New field.
299 (completion_match_result::set_match): New method.
300 (completion_tracker): Add comments.
301 (completion_tracker::add_completion): Add match_for_lcd parameter.
302 (completion_tracker::reset_completion_match_result): Reset
303 match_for_lcd too.
304 (completion_tracker::maybe_add_completion): Add match_for_lcd
305 parameter.
306 (completion_tracker::m_lowest_common_denominator_unique): Extend
307 comments.
308 * cp-support.c (cp_symbol_name_matches_1)
309 (cp_fq_symbol_name_matches): Change type of parameter from
310 completion_match to completion_match_result. Adjust.
311 * language.c (default_symbol_name_matcher): Change type of
312 parameter from completion_match to completion_match_result.
313 Adjust.
314 * language.h (completion_match_for_lcd): Forward declare.
315 (default_symbol_name_matcher): Change type of parameter from
316 completion_match to completion_match_result.
317 * symtab.c (compare_symbol_name): Adjust.
318 (completion_list_add_name): Pass the match_for_lcd to the tracker.
319 * symtab.h (ada_lookup_name_info::matches): Change type of
320 parameter from completion_match to completion_match_result.
321 (symbol_name_matcher_ftype): Likewise, and update comments.
322
323 2017-11-29 Pedro Alves <palves@redhat.com>
324
325 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
326 * minsyms.c (msymbol_is_text): Delete.
327 (msymbol_is_function): New function.
328 * minsyms.h (msymbol_is_text): Delete.
329 (msymbol_is_function): New declaration.
330 * symtab.c (find_function_alias_target): Use msymbol_is_function.
331
332 2017-11-29 Tom Tromey <tom@tromey.com>
333
334 * Makefile.in (distclean): Handle the case where rmdir fails.
335
336 2017-11-29 Tom Tromey <tom@tromey.com>
337
338 * symfile.c (_initialize_symfile): Update usage text for
339 add-symbol-file, symbol-file, load.
340
341 2017-11-29 Tom Tromey <tom@tromey.com>
342
343 * symfile.c (add_symbol_file_command): Error if some arguments to
344 -s are missing. Change unrecognized-argument error message.
345 (_initialize_symfile): Fix usage text for add-symbol-file.
346
347 2017-11-27 Tom Tromey <tom@tromey.com>
348
349 * Makefile.in (REMOTE_OBS): Remove.
350 (SFILES): Remove remote sources.
351 (COMMON_SFILES): Add remote sources.
352 (ALLDEPFILES): Remove dcache.c.
353
354 2017-11-27 Tom Tromey <tom@tromey.com>
355
356 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
357 variables.
358 (SFILES): Use SUBDIR_TARGET_SRCS.
359 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
360 (CONFIG_SRC_SUBDIR): Add target.
361 (%.o): Remove target rule.
362
363 2017-11-27 Tom Tromey <tom@tromey.com>
364
365 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
366 registry.o, thread-fsm.o, debug.o.
367 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
368 thread-fsm.c, debug.c.
369
370 2017-11-27 Tom Tromey <tom@tromey.com>
371
372 * Makefile.in (COMMON_SFILES): New.
373 (SFILES): Move some entries to COMMON_SFILES.
374 (COMMON_OBS): Use COMMON_SFILES.
375
376 2017-11-27 Tom Tromey <tom@tromey.com>
377
378 * Makefile.in (YYFILES): Update comment.
379 (YYOBJ): Redefine.
380
381 2017-11-27 Tom Tromey <tom@tromey.com>
382
383 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
384 (CONFIG_SRC_SUBDIR): Add python.
385 (%.o): Remove python rule.
386 (python/%.o): New rule.
387 * configure: Rebuild.
388 * configure.ac (CONFIG_OBS): Refer to python/python.o
389
390 2017-11-27 Tom Tromey <tom@tromey.com>
391
392 * configure: Rebuild.
393 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
394 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
395 (CONFIG_SRC_SUBDIR): Add guile.
396 (%.o): Remove guile rule.
397
398 2017-11-27 Tom Tromey <tom@tromey.com>
399
400 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
401 (%.o): Remove unittests rule.
402 (CONFIG_SRC_SUBDIR): Add unittests.
403
404 2017-11-27 Tom Tromey <tom@tromey.com>
405
406 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
407 (CONFIG_SRC_SUBDIR): Add tui.
408 (%.o): Remove tui rule.
409
410 2017-11-27 Tom Tromey <tom@tromey.com>
411
412 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
413 (%.o): Remove compile rule.
414 (CONFIG_SRC_SUBDIR): Add compile.
415
416 2017-11-27 Tom Tromey <tom@tromey.com>
417
418 * Makefile.in (SUBDIR_MI_OBS): Redefine.
419 (%.o): Remove mi rule.
420 (CONFIG_SRC_SUBDIR): Add mi.
421 (COMMON_OBS): Use mi/mi-common.o
422
423 2017-11-27 Tom Tromey <tom@tromey.com>
424
425 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
426 (%.o): Remove cli rule.
427 (CONFIG_SRC_SUBDIR): Add cli.
428
429 2017-11-27 Tom Tromey <tom@tromey.com>
430
431 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
432 * configure: Rebuild.
433 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
434 (CONFIG_DEP_SUBDIR): New variable.
435 (%.o): Add order-only dependency.
436 ($(CONFIG_DEP_SUBDIR)): New target.
437
438 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
439
440 PR gdb/21945
441 * findcmd.c (_initialize_mem_search): Update find command help
442 text.
443
444 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
445
446 * python/python.c (do_start_initialization): Change progname
447 type to gdb::unique_xmalloc_ptr. Release the pointer when using
448 Python 2.
449
450 2017-11-26 Tom Tromey <tom@tromey.com>
451
452 * common/format.h: Add include guards.
453
454 2017-11-26 Tom Tromey <tom@tromey.com>
455
456 * nat/linux-personality.h (class
457 maybe_disable_address_space_randomization): New class.
458 (maybe_disable_address_space_randomization): Don't declare
459 function.
460 * nat/linux-personality.c (restore_personality)
461 (make_disable_asr_cleanup): Remove.
462 (maybe_disable_address_space_randomization): Now a constructor.
463 (~maybe_disable_address_space_randomization): New destructor.
464 * linux-nat.c (linux_nat_create_inferior): Update.
465
466 2017-11-26 Tom Tromey <tom@tromey.com>
467
468 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
469
470 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
471
472 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
473 "cooked" register. Access only first four bytes of branch target
474 registers.
475
476 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
477
478 PR gdb/22491
479 * stap-probe.c (relocate_address): New function.
480 (stap_probe::get_relocated_address): Use 'relocate_address'.
481 (stap_probe::set_semaphore): Use 'relocate_address' and pass
482 'm_sem_addr'.
483 (stap_probe::clear_semaphore): Likewise.
484
485 2017-11-25 Pedro Alves <palves@redhat.com>
486
487 * dictionary.c: Include "safe-ctype.h".
488 * minsyms.c: Include "safe-ctype.h".
489 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
490
491 2017-11-25 Pedro Alves <palves@redhat.com>
492
493 * completer.c (complete_line_internal_1): Skip spaces until the
494 start of the command.
495
496 2017-11-24 Pedro Alves <palves@redhat.com>
497
498 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
499 cp_fq_symbol_name_matches. Pass language_cplus to
500 strncmp_with_mode.
501 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
502 (selftests::test_cp_symbol_name_cmp): New.
503 (_initialize_cp_support): Register "cp_symbol_name_matches"
504 selftests.
505 * language.c (default_symbol_name_matcher): Pass language_minimal
506 to strncmp_iw_with_mode.
507 * utils.c: Include "cp-support.h" and <algorithm>.
508 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
509 (cp_is_operator): New functions.
510 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
511 skip whitespace in the symbol name when the lookup name doesn't
512 have spaces, and vice versa.
513 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
514 * utils.h (strncmp_iw_with_mode): Add language parameter.
515
516 2017-11-24 Joel Brobecker <brobecker@adacore.com>
517
518 * ada-lang.c (ada_exception_message_1, ada_exception_message):
519 New functions.
520 (print_it_exception): If available, display the exception
521 message as well.
522 * NEWS: Document new feature.
523
524 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
525
526 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
527
528 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
529
530 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
531 (dtrace_probe::is_enabled, dtrace_probe::enable)
532 (dtrace_probe::disable): Remove keyword 'struct' at for-range
533 variable
534 * probe.c (gen_ui_out_table_header_info)
535 (print_ui_out_not_applicables): Remove keyword 'struct' at
536 for-range variable
537
538 2017-11-24 Alan Hayward <alan.hayward@arm.com>
539
540 * configure.tgt: Add arch/aarch64.o
541
542 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
543
544 * common/common-utils.h: Include poison.h.
545 (xfree): Remove declaration, add definition with static_assert.
546 * common/common-utils.c (xfree): Remove.
547 * common/poison.h (IsMallocatable): Define.
548 (IsFreeable): Define.
549 (free): Delete for non-freeable types.
550 (xnew): New.
551 (XNEW): Undef and redefine.
552 (xcnew): New.
553 (XCNEW): Undef and redefine.
554 (xdelete): New.
555 (XDELETE): Undef and redefine.
556 (xnewvec): New.
557 (XNEWVEC): Undef and redefine.
558 (xcnewvec): New.
559 (XCNEWVEC): Undef and redefine.
560 (xresizevec): New.
561 (XRESIZEVEC): Undef and redefine.
562 (xdeletevec): New.
563 (XDELETEVEC): Undef and redefine.
564 (xnewvar): New.
565 (XNEWVAR): Undef and redefine.
566 (xcnewvar): New.
567 (XCNEWVAR): Undef and redefine.
568 (xresizevar): New.
569 (XRESIZEVAR): Undef and redefine.
570
571 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
572
573 * gdbthread.h (private_thread_info): Define structure type, add
574 virtual pure destructor.
575 (thread_info) <priv>: Change type to unique_ptr.
576 <private_dtor>: Remove.
577 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
578 (private_thread_info::~private_thread_info): Provide default
579 implementation.
580 (thread_info::~thread_info): Don't call private_dtor nor
581 manually free priv.
582 * aix-thread.c (private_thread_info): Rename to ...
583 (aix_thread_info): ... this.
584 (get_aix_thread_info): New.
585 (sync_threadlists): Adjust.
586 (iter_tid): Adjust.
587 (aix_thread_resume): Adjust.
588 (aix_thread_fetch_registers): Adjust.
589 (aix_thread_store_registers): Adjust.
590 (aix_thread_extra_thread_info): Adjust.
591 * darwin-nat.h (private_thread_info): Rename to ...
592 (darwin_thread_info): ... this.
593 (get_darwin_thread_info): New.
594 * darwin-nat.c (darwin_init_thread_list): Adjust.
595 (darwin_check_new_threads): Adjust.
596 (thread_info_from_private_thread_info): Adjust.
597 * linux-thread-db.c (private_thread_info): Rename to ...
598 (thread_db_thread_info): ... this, initialize fields.
599 (get_thread_db_thread_info): New.
600 <dying>: Change type to bool.
601 (update_thread_state): Adjust to type rename.
602 (record_thread): Adjust to type rename an use of unique_ptr.
603 (thread_db_pid_to_str): Likewise.
604 (thread_db_extra_thread_info): Likewise.
605 (thread_db_thread_handle_to_thread_info): Likewise.
606 (thread_db_get_thread_local_address): Likewise.
607 * nto-tdep.h (private_thread_info): Rename to ...
608 (nto_thread_info): ... this, initialize fields.
609 (get_nto_thread_info): New.
610 <name>: Change type to std::string.
611 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
612 use of unique_ptr.
613 * nto-procfs.c (update_thread_private_data_name): Adjust to
614 std::string change, allocate nto_private_thread_info with new.
615 (update_thread_private_data): Adjust to unique_ptr.
616 * remote.c (private_thread_info): Rename to ...
617 (remote_thread_info): ... this, initialize data members with
618 default values.
619 <extra, name>: Change type to std::string.
620 <thread_handle>: Change type to non-pointer.
621 (free_private_thread_info): Remove.
622 (get_private_info_thread): Rename to...
623 (get_remote_thread_info): ... this, change return type, adjust to
624 use of unique_ptr, use remote_thread_info constructor.
625 (remote_add_thread): Adjust.
626 (get_private_info_ptid): Rename to...
627 (get_remote_thread_info): ...this, change return type.
628 (remote_thread_name): Use get_remote_thread_info, adjust to
629 change to std::string.
630 (struct thread_item) <~thread_item>: Remove.
631 <thread_handle>: Make non pointer.
632 (start_thread): Adjust to thread_item::thread_handle type
633 change.
634 (remote_update_thread_list): Adjust to type name change, move
635 strings from temporary to long-lived object instead of
636 duplicating.
637 (remote_threads_extra_info): Use get_remote_thread_info.
638 (process_initial_stop_replies): Likewise.
639 (resume_clear_thread_private_info): Likewise.
640 (remote_resume): Adjust to type name change.
641 (remote_commit_resume): Use get_remote_thread_info.
642 (process_stop_reply): Adjust to type name change.
643 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
644 (remote_stopped_by_hw_breakpoint): Likewise.
645 (remote_stopped_by_watchpoint): Likewise.
646 (remote_stopped_data_address): Likewise.
647 (remote_core_of_thread): Likewise.
648 (remote_thread_handle_to_thread_info): Use
649 get_private_info_thread, adjust to thread_handle field type
650 change.
651
652 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
653
654 * remote.c (struct thread_item): Add constructor, disable copy
655 construction and copy assignment, define default move
656 construction and move assignment.
657 <extra, name>: Change type to std::string.
658 <core>: Initialize.
659 <thread_handle>: Make non-pointer.
660 (thread_item_t): Remove typedef.
661 (DEF_VEC_O(thread_item_t)): Remove.
662 (threads_listing_context) <contains_thread>: New method.
663 <remove_thread>: New method.
664 <items>: Change type to std::vector.
665 (clear_threads_listing_context): Remove.
666 (threads_listing_context_remove): Remove.
667 (remote_newthread_step): Use thread_item constructor, adjust to
668 change to std::vector.
669 (start_thread): Use thread_item constructor, adjust to change to
670 std::vector.
671 (end_thread): Adjust to change to std::vector and std::string.
672 (remote_get_threads_with_qthreadinfo): Use thread_item
673 constructor, adjust to std::vector.
674 (remote_update_thread_list): Adjust to change to std::vector and
675 std::string, use threads_listing_context methods.
676 (remove_child_of_pending_fork): Adjust.
677 (remove_new_fork_children): Adjust.
678 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
679 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
680 * unittests/rsp-low-selftests.c: New file.
681 * common/rsp-low.h: Include common/byte-vector.h.
682 (hex2bin): New overload.
683 * common/rsp-low.c (hex2bin): New overload.
684
685 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
686
687 * inferior.h (private_inferior): Define structure type, add
688 virtual pure destructor.
689 (inferior) <priv>: Change type to unique_ptr.
690 * inferior.c (private_inferior::~private_inferior): Provide
691 default implementation.
692 (inferior::~inferior): Don't free priv field.
693 (exit_inferior_1): Likewise.
694 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
695 (darwin_exception_info): Remove typedef.
696 (DEF_VEC_O (darwin_thread_t)); Remove.
697 (private_inferior): Rename to ...
698 (darwin_private_inferior): ... this, extend private_inferior.
699 (get_darwin_inferior): New.
700 <threads>: Change type to std::vector of darwin_thread_t pointers.
701 * darwin-nat.c (darwin_check_new_threads): Adjust.
702 (find_inferior_task_it): Adjust.
703 (darwin_find_thread); Adjust.
704 (darwin_suspend_inferior): Adjust.
705 (darwin_resume_inferior): Adjust.
706 (darwin_find_new_inferior): Adjust.
707 (darwin_decode_notify_message): Adjust.
708 (darwin_send_reply): Adjust.
709 (darwin_resume_inferior_threads): Adjust.
710 (darwin_suspend_inferior_threads): Adjust.
711 (darwin_decode_message): Adjust.
712 (darwin_wait): Adjust.
713 (darwin_interrupt): Adjust.
714 (darwin_deallocate_threads): Adjust.
715 (darwin_mourn_inferior): Adjust, don't free private data.
716 (darwin_reply_to_all_pending_messages): Adjust.
717 (darwin_stop_inferior): Adjust.
718 (darwin_setup_exceptions): Adjust.
719 (darwin_kill_inferior): Adjust.
720 (darwin_setup_request_notification): Adjust.
721 (darwin_attach_pid): Adjust.
722 (darwin_init_thread_list): Adjust.
723 (darwin_setup_fake_stop_event): Adjust.
724 (darwin_attach): Adjust.
725 (darwin_detach): Adjust.
726 (darwin_xfer_partial): Adjust.
727 (set_enable_mach_exceptions): Adjust.
728 (darwin_pid_to_exec_file): Adjust.
729 (darwin_get_ada_task_ptid): Adjust.
730 * darwin-nat-info.c (get_task_from_args): Adjust.
731 (info_mach_ports_command): Adjust.
732 (info_mach_region_command): Adjust.
733 (info_mach_exceptions_command): Adjust.
734 * remote.c (private_inferior): Rename to ...
735 (remote_private_inferior): ... this, initialize fields.
736 (get_remote_inferior); New.
737 (remote_commit_resume): Use get_remote_inferior.
738 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
739
740 2017-11-24 Pedro Alves <palves@redhat.com>
741
742 * NEWS: Mention linespecs and explicit locations, and completion
743 improvements.
744
745 2017-11-24 Yao Qi <yao.qi@linaro.org>
746
747 * regcache.c (regcache::dump): Remove footnote_register_size.
748
749 2017-11-24 Yao Qi <yao.qi@linaro.org>
750
751 * regcache.c (cooked_read_test): Add more test for readonly
752 regcache.
753
754 2017-11-24 Yao Qi <yao.qi@linaro.org>
755
756 * gdbarch-selftests.c (test_target_has_registers): Move it to
757 target.c.
758 (test_target_has_stack): Likewise.
759 (test_target_has_memory): Likewise.
760 (test_target_prepare_to_store): Likewise.
761 (test_target_store_registers): Likewise.
762 (test_target_ops): Likewise.
763 * regcache.c: Include selftest-arch.h and gdbthread.h.
764 (target_ops_no_register): New class.
765 (test_target_fetch_registers): New.
766 (test_target_store_registers): New.
767 (test_target_xfer_partial): New.
768 (readwrite_regcache): New.
769 (cooked_read_test): New.
770 (_initialize_regcache): Register the test.
771 * target.c: (test_target_has_registers): Moved from
772 gdbarch-selftests.c.
773 (test_target_has_stack): Likewise.
774 (test_target_has_memory): Likewise.
775 (test_target_prepare_to_store): Likewise.
776 (test_target_store_registers): Likewise.
777 * target.h (test_target_ops): New class.
778
779 2017-11-24 Alan Hayward <alan.hayward@arm.com>
780
781 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
782 selftest.
783
784 2017-11-24 Alan Hayward <alan.hayward@arm.com>
785
786 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
787 * arch/aarch64.c (aarch64_create_target_description): Create
788 new target description.
789 * features/Makefile: Add new files.
790 * features/aarch64.c: Remove file.
791 * features/aarch64-core.c: New autogenerated file.
792 * features/aarch64-fpu.c: New autogenerated file.
793 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
794
795 2017-11-24 Alan Hayward <alan.hayward@arm.com>
796
797 * Makefile.in: Add new files.
798 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
799 aarch64_read_description.
800 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
801 Call aarch64_read_description.
802 * aarch64-tdep.c (aarch64_read_description): New function.
803 (aarch64_gdbarch_init): Call aarch64_read_description.
804 * aarch64-tdep.h (aarch64_read_description): New function.
805 * arch/aarch64.c: New file.
806 * configure.tgt: Add new files.
807
808 2017-11-24 Yao Qi <yao.qi@linaro.org>
809
810 * mi/mi-main.c (register_changed_p): Update.
811 * value.c (value_contents_bits_eq): Change return type.
812 (value_contents_eq): Likewise.
813 * value.h: Update comments.
814
815 2017-11-24 Yao Qi <yao.qi@linaro.org>
816
817 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
818 local 'changed'. Remove error.
819 (register_changed_p): Change return type to bool.
820
821 2017-11-24 Yao Qi <yao.qi@linaro.org>
822
823 * arch/tic6x.c: New file.
824 * arch/tic6x.h: New file.
825 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
826 tic6x-core.xml and tic6x-gp.xml.
827 * features/tic6x-c6xp.c: Generated.
828 * features/tic6x-core.c: Generated.
829 * features/tic6x-gp.c: Generated.
830 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
831 "tic6x-".
832
833 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
834
835 * mi/mi-main.c (list_available_thread_groups): Change map value
836 type to std::vector.
837
838 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
839
840 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
841
842 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
843
844 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
845 back to...
846 <children_requested>: ... this.
847 (varobj_get_num_children, varobj_update): Adjust.
848
849 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
850
851 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
852 (ada_value_has_mutated): Likewise.
853 * c-varobj.c (varobj_is_anonymous_child): Likewise.
854 (c_is_path_expr_parent): Likewise.
855 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
856 (mi_cmd_var_set_frozen): Likewise.
857 (mi_cmd_var_update_iter): Likewise.
858 (mi_cmd_var_update): Likewise.
859 * varobj.c (pretty_printing): Likewise.
860 (varobj_enable_pretty_printing): Likewise.
861 (struct varobj_root) <floating, is_valid>: Likewise.
862 (struct varobj_dynamic) <children_requested>: Likewise.
863 (delete_variable): Likewise.
864 (delete_variable_1): Likewise.
865 (install_variable): Likewise.
866 (update_type_if_necessary): Likewise.
867 (install_new_value): Likewise.
868 (value_of_root): Likewise.
869 (is_root_p): Likewise.
870 (varobj_create): Likewise.
871 (varobj_delete): Likewise.
872 (varobj_has_more): Likewise.
873 (varobj_set_frozen): Likewise.
874 (varobj_get_frozen): Likewise.
875 (install_dynamic_child): Likewise.
876 (dynamic_varobj_has_child_method): Likewise.
877 (update_dynamic_varobj_children): Likewise.
878 (varobj_get_num_children): Likewise.
879 (varobj_list_children): Likewise.
880 (is_path_expr_parent): Likewise.
881 (varobj_default_is_path_expr_parent): Likewise.
882 (varobj_is_dynamic_p): Likewise.
883 (varobj_set_value): Likewise.
884 (varobj_value_has_mutated): Likewise.
885 (varobj_update): Likewise.
886 (check_scope): Likewise.
887 (value_of_root_1): Likewise.
888 (varobj_value_get_print_value): Likewise.
889 (varobj_editable_p): Likewise.
890 (varobj_value_is_changeable_p): Likewise.
891 (varobj_floating_p): Likewise.
892 (varobj_default_value_is_changeable_p): Likewise.
893 (varobj_invalidate_iter): Likewise.
894 * varobj.h (struct varobj_update_result) <type_changed,
895 children_changed, changed, value_installed>: Likewise.
896 (struct varobj) <updated, frozen, not_fetched>: Likewise.
897 (struct lang_varobj_ops) <value_is_changeable_p,
898 value_has_mutated, is_path_expr_parent>: Likewise.
899 (varobj_delete): Likewise.
900 (varobj_set_frozen): Likewise.
901 (varobj_get_frozen): Likewise.
902 (varobj_set_value): Likewise.
903 (varobj_update): Likewise.
904 (varobj_editable_p): Likewise.
905 (varobj_floating_p): Likewise.
906 (varobj_has_more): Likewise.
907 (varobj_is_dynamic_p): Likewise.
908 (varobj_default_value_is_changeable_p): Likewise.
909 (varobj_value_is_changeable_p): Likewise.
910 (varobj_is_anonymous_child): Likewise.
911 (varobj_default_is_path_expr_parent): Likewise.
912
913 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
914
915 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
916 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
917 <type_str>: Convert to 'std::string'.
918 <expr>: Convert to 'expression_up'.
919 (dtrace_probe_arg_s): Delete type and VEC.
920 (dtrace_probe_enabler_s): Likewise.
921 (struct dtrace_probe): Replace by...
922 (class dtrace_static_probe_ops): ...this and...
923 (class dtrace_probe): ...this.
924 (dtrace_probe_is_linespec): Rename to...
925 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
926 to reflect change.
927 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
928 Adjust code. Create new instance of 'dtrace_probe'.
929 (dtrace_build_arg_exprs): Rename to...
930 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
931 reflect change.
932 (dtrace_get_probes): Rename to...
933 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
934 to reflect change.
935 (dtrace_get_arg): Rename to...
936 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
937 reflect change.
938 (dtrace_probe_is_enabled): Rename to...
939 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
940 change.
941 (dtrace_get_probe_address): Rename to...
942 (dtrace_probe::get_relocated_address): ...this. Adjust code
943 to reflect change.
944 (dtrace_get_probe_argument_count): Rename to...
945 (dtrace_probe::get_argument_count): ...this. Adjust code to
946 reflect change.
947 (dtrace_can_evaluate_probe_arguments): Rename to...
948 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
949 to reflect change.
950 (dtrace_evaluate_probe_argument): Rename to...
951 (dtrace_probe::evaluate_argument): ...this. Adjust code to
952 reflect change.
953 (dtrace_compile_to_ax): Rename to...
954 (dtrace_probe::compile_to_ax): ...this. Adjust code to
955 reflect change.
956 (dtrace_probe_destroy): Delete.
957 (dtrace_type_name): Rename to...
958 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
959 reflect change.
960 (dtrace_probe::get_static_ops): New method.
961 (dtrace_gen_info_probes_table_header): Rename to...
962 (dtrace_static_probe_ops::gen_info_probes_table_header):
963 ...this. Adjust code to reflect change.
964 (dtrace_gen_info_probes_table_values): Rename to...
965 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
966 code to reflect change.
967 (dtrace_enable_probe): Rename to...
968 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
969 change.
970 (dtrace_disable_probe): Rename to...
971 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
972 change.
973 (struct probe_ops dtrace_probe_ops): Delete.
974 (info_probes_dtrace_command): Call 'info_probes_for_spops'
975 instead of 'info_probes_for_ops'.
976 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
977 of 'all_probe_ops'.
978
979 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
980 Simon Marchi <simark@simark.ca>
981
982 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
983 variable.
984 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
985 <aexpr>: Change type to 'expression_up'.
986 (stap_probe_arg_s): Delete type and VEC.
987 (struct stap_probe): Delete. Replace by...
988 (class stap_static_probe_ops): ...this and...
989 (class stap_probe): ...this. Rename variables to add 'm_'
990 prefix. Do not use 'union' for arguments anymore.
991 (stap_get_expected_argument_type): Receive probe name instead
992 of 'struct stap_probe'. Adjust code.
993 (stap_parse_probe_arguments): Rename to...
994 (stap_probe::parse_arguments): ...this. Adjust code to
995 reflect change.
996 (stap_get_probe_address): Rename to...
997 (stap_probe::get_relocated_address): ...this. Adjust code
998 to reflect change.
999 (stap_get_probe_argument_count): Rename to...
1000 (stap_probe::get_argument_count): ...this. Adjust code
1001 to reflect change.
1002 (stap_get_arg): Rename to...
1003 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1004 reflect change.
1005 (can_evaluate_probe_arguments): Rename to...
1006 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1007 to reflect change.
1008 (stap_evaluate_probe_argument): Rename to...
1009 (stap_probe::evaluate_argument): ...this. Adjust code
1010 to reflect change.
1011 (stap_compile_to_ax): Rename to...
1012 (stap_probe::compile_to_ax): ...this. Adjust code to
1013 reflect change.
1014 (stap_probe_destroy): Delete.
1015 (stap_modify_semaphore): Adjust comment.
1016 (stap_set_semaphore): Rename to...
1017 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1018 change.
1019 (stap_clear_semaphore): Rename to...
1020 (stap_probe::clear_semaphore): ...this. Adjust code to
1021 reflect change.
1022 (stap_probe::get_static_ops): New method.
1023 (handle_stap_probe): Adjust code to create instance of
1024 'stap_probe'.
1025 (stap_get_probes): Rename to...
1026 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1027 reflect change.
1028 (stap_probe_is_linespec): Rename to...
1029 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1030 reflect change.
1031 (stap_type_name): Rename to...
1032 (stap_static_probe_ops::type_name): ...this. Adjust code to
1033 reflect change.
1034 (stap_gen_info_probes_table_header): Rename to...
1035 (stap_static_probe_ops::gen_info_probes_table_header):
1036 ...this. Adjust code to reflect change.
1037 (stap_gen_info_probes_table_values): Rename to...
1038 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1039 code to reflect change.
1040 (struct probe_ops stap_probe_ops): Delete.
1041 (info_probes_stap_command): Use 'info_probes_for_spops'
1042 instead of 'info_probes_for_ops'.
1043 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1044 of 'all_probe_ops'.
1045
1046 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1047
1048 * break-catch-throw.c (fetch_probe_arguments): Use
1049 'probe.prob' instead of 'probe.probe'.
1050 * breakpoint.c (create_longjmp_master_breakpoint): Call
1051 'can_evaluate_arguments' and 'get_relocated_address' methods
1052 from probe.
1053 (create_exception_master_breakpoint): Likewise.
1054 (add_location_to_breakpoint): Use 'sal->prob' instead of
1055 'sal->probe'.
1056 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1057 probe.
1058 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1059 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1060 of 'probe_ops'.
1061 (probe_key_free): Call 'delete' on probe.
1062 (check_exception_resume): Use 'probe.prob' instead of
1063 'probe.probe'.
1064 * location.c (string_to_event_location_basic): Call
1065 'probe_linespec_to_static_ops'.
1066 * probe.c (class any_static_probe_ops): New class.
1067 (any_static_probe_ops any_static_probe_ops): New variable.
1068 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1069 argument. Adjust code to reflect change.
1070 (parse_probes): Use 'static_probe_ops' instead of
1071 'probe_ops'. Adjust code to reflect change.
1072 (find_probes_in_objfile): Call methods to get name and
1073 provider from probe.
1074 (find_probe_by_pc): Use 'result.prob' instead of
1075 'result.probe'. Call 'get_relocated_address' method from
1076 probe.
1077 (collect_probes): Adjust comment and argument list to receive
1078 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1079 reflect change. Call necessary methods from probe.
1080 (compare_probes): Call methods to get name and provider from
1081 probes.
1082 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1083 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1084 adjust code accordingly.
1085 (print_ui_out_not_applicables): Likewise.
1086 (info_probes_for_ops): Rename to...
1087 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1088 as argument instead of 'probe_ops'. Adjust code. Call
1089 necessary methods from probe.
1090 (info_probes_command): Use 'info_probes_for_spops'.
1091 (enable_probes_command): Pass correct argument to
1092 'collect_probes'. Call methods from probe.
1093 (disable_probes_command): Likewise.
1094 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1095 (get_probe_argument_count): Move to
1096 'any_static_probe_ops::get_argument_count'.
1097 (can_evaluate_probe_arguments): Move to
1098 'any_static_probe_ops::can_evaluate_arguments'.
1099 (evaluate_probe_argument): Move to
1100 'any_static_probe_ops::evaluate_argument'.
1101 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1102 'probe.probe'.
1103 (probe_linespec_to_ops): Rename to...
1104 (probe_linespec_to_static_ops): ...this. Adjust code.
1105 (probe_any_is_linespec): Rename to...
1106 (any_static_probe_ops::is_linespec): ...this.
1107 (probe_any_get_probes): Rename to...
1108 (any_static_probe_ops::get_probes): ...this.
1109 (any_static_probe_ops::type_name): New method.
1110 (any_static_probe_ops::gen_info_probes_table_header): New
1111 method.
1112 (compute_probe_arg): Use 'pc_probe.prob' instead of
1113 'pc_probe.probe'. Call methods from probe.
1114 (compile_probe_arg): Likewise.
1115 (std::vector<const probe_ops *> all_probe_ops): Delete.
1116 (std::vector<const static_probe_ops *> all_static_probe_ops):
1117 New variable.
1118 (_initialize_probe): Use 'all_static_probe_ops' instead of
1119 'all_probe_ops'.
1120 * probe.h (struct info_probe_column) <field_name>: Delete
1121 extraneous newline
1122 (info_probe_column_s): Delete type and VEC.
1123 (struct probe_ops): Delete. Replace with...
1124 (class static_probe_ops): ...this and...
1125 (clas probe): ...this.
1126 (struct bound_probe) <bound_probe>: Delete extraneous
1127 newline. Adjust constructor to receive 'probe' instead of
1128 'struct probe'.
1129 <probe>: Rename to...
1130 <prob>: ...this. Delete extraneous newline.
1131 <objfile>: Delete extraneous newline.
1132 (register_probe_ops): Delete unused prototype.
1133 (info_probes_for_ops): Rename to...
1134 (info_probes_for_spops): ...this. Adjust comment.
1135 (get_probe_address): Move to 'probe::get_address'.
1136 (get_probe_argument_count): Move to
1137 'probe::get_argument_count'.
1138 (can_evaluate_probe_arguments): Move to
1139 'probe::can_evaluate_arguments'.
1140 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1141 * solib-svr4.c (struct svr4_info): Adjust comment.
1142 (struct probe_and_action) <probe>: Rename to...
1143 <prob>: ...this.
1144 (register_solib_event_probe): Receive 'probe' instead of
1145 'struct probe' as argument. Use 'prob' instead of 'probe'
1146 when applicable.
1147 (solib_event_probe_action): Call 'get_argument_count' method
1148 from probe. Adjust comment.
1149 (svr4_handle_solib_event): Adjust comment. Call
1150 'evaluate_argument' method from probe.
1151 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1152 from probe.
1153 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1154 'struct probe'. Call 'can_evaluate_arguments' from probe.
1155 * symfile.h: Forward declare 'class probe' instead of 'struct
1156 probe'.
1157 * symtab.h: Likewise.
1158 (struct symtab_and_line) <probe>: Rename to...
1159 <prob>: ...this.
1160 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1161 Call probe methods.
1162 (stop_tracing): Likewise.
1163
1164 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1165
1166 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1167 trailing newline at end of string in call to warning.
1168
1169 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1170
1171 * osdata.h: Include vector isntead of vec.h.
1172 (osdata_column_s): Remove typedef.
1173 (struct osdata_column): Add constructor.
1174 <name, value>: Change type to std::string.
1175 (DEF_VEC_O (osdata_column_s)): Remove.
1176 (osdata_item_s): Remove typedef.
1177 (struct osdata_item) <columns>: Change type to std::vector.
1178 (DEF_VEC_O (osdata_item_s)): Remove.
1179 (struct osdata): Add constructor.
1180 <type>: Change type to std::string.
1181 <items>: Change type to std::vector.
1182 (osdata_p): Remove typedef.
1183 (DEF_VEC_P (osdata_p)): Remove.
1184 (osdata_parse): Return a unique_ptr.
1185 (osdata_free): Remove.
1186 (make_cleanup_osdata_free): Remove.
1187 (get_osdata): Return a unique_ptr.
1188 (get_osdata_column): Return pointer to std::string, take a
1189 reference to osdata_item as parameter.
1190 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1191 unique_ptr.
1192 <property_name>: Change type to std::string.
1193 (osdata_start_osdata): Allocate osdata with new and adjust.
1194 (osdata_start_item): Adjust.
1195 (osdata_start_column): Adjust.
1196 (osdata_end_column): Adjust.
1197 (clear_parsing_data): Remove.
1198 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1199 (osdata_item_clear): Remove.
1200 (get_osdata): return a unique_ptr and adjust.
1201 (get_osdata_column): Return a pointer to std::string and adjust.
1202 (info_osdata): Adjust.
1203 * mi/mi-main.c: Include <map>.
1204 (free_vector_of_osdata_items): Remove.
1205 (list_available_thread_groups): Adjust, use std::map instead of
1206 splay tree.
1207
1208 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1209
1210 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1211 case in switch.
1212
1213 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1214
1215 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1216
1217 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1218
1219 * varobj.h (struct varobj_update_result): Add constructor, add
1220 move constructor, disable copy and assign, initialize fields.
1221 <newobj>: Change type to std::vector.
1222 (varobj_update): Return std::vector.
1223 * varobj.c (install_dynamic_child): Change VEC parameters to
1224 std::vector and adjust.
1225 (update_dynamic_varobj_children): Likewise.
1226 (varobj_update): Return std::vector and adjust.
1227 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1228
1229 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1230
1231 * varobj.h (struct varobj) <parent>: Remove const.
1232 <children>: Change type to std::vector.
1233 (varobj_list_children): Return std::vector const reference.
1234 (varobj_restrict_range): Change parameter type to std::vector
1235 const reference.
1236 * varobj.c (varobj_has_more): Adjust.
1237 (varobj_restrict_range): Change parameter type to std::vector
1238 const reference and adjust.
1239 (install_dynamic_child): Adjust.
1240 (update_dynamic_varobj_children): Adjust.
1241 (varobj_list_children): Return std::vector const reference and
1242 adjust.
1243 (varobj_add_child): Adjust.
1244 (update_type_if_necessary): Adjust.
1245 (varobj_update): Adjust.
1246 (delete_variable_1): Adjust.
1247 * ada-varobj.c (ada_value_has_mutated): Adjust.
1248 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1249
1250 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1251
1252 * varobj.h (struct varobj): Add constructor and destructor,
1253 initialize fields.
1254 * varobj.c (struct varobj_root): Initialize fields.
1255 (struct varobj_dynamic): Initialize fields.
1256 (varobj_create): Use unique_ptr instead of cleanup. Create
1257 varobj with new instead of new_root_variable.
1258 (delete_variable_1): Free variable with delete instead of
1259 free_variable.
1260 (create_child_with_value): Create variable with new instead of
1261 new_variable.
1262 (varobj::varobj): New.
1263 (varobj::~varobj): New (body mostly coming from free_variable).
1264 (new_variable): Remove.
1265 (free_variable): Remove.
1266 (do_free_variable_cleanup): Remove.
1267 (make_cleanup_free_variable): Remove.
1268
1269 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1270
1271 * core-regset.c: Remove file.
1272 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1273
1274 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1275
1276 * NEWS: Document use of GNU MPFR.
1277 * README: Likewise.
1278
1279 * Makefile.in (LIBMPFR): Add define.
1280 (CLIBS): Add $(LIBMPFR).
1281 * configure.ac: Add --with-mpfr configure option.
1282 * configure: Regenerate.
1283 * config.in: Regenerate.
1284
1285 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1286 (class mpfr_float_ops): New type.
1287 (mpfr_float_ops::from_target): Two new overloaded functions.
1288 (mpfr_float_ops::to_target): Likewise.
1289 (mpfr_float_ops::to_string): New function.
1290 (mpfr_float_ops::from_string): Likewise.
1291 (mpfr_float_ops::to_longest): Likewise.
1292 (mpfr_float_ops::from_longest): Likewise.
1293 (mpfr_float_ops::from_ulongest): Likewise.
1294 (mpfr_float_ops::to_host_double): Likewise.
1295 (mpfr_float_ops::from_host_double): Likewise.
1296 (mpfr_float_ops::convert): Likewise.
1297 (mpfr_float_ops::binop): Likewise.
1298 (mpfr_float_ops::compare): Likewise.
1299 (get_target_float_ops): Use mpfr_float_ops if available.
1300
1301 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1302
1303 * target-float.c: Do not include <math.h>.
1304 Include <cmath> and <limits>.
1305 (DOUBLEST): Do not define.
1306 (class target_float_ops): New type.
1307 (class host_float_ops): New templated type.
1308 (class decimal_float_ops): New type.
1309
1310 (floatformat_to_doublest): Rename to ...
1311 (host_float_ops<T>::from_target): ... this. Use template type T
1312 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1313 (host_float_ops<T>::from_target): New overload using a type argument.
1314 (floatformat_from_doublest): Rename to ...
1315 (host_float_ops<T>::to_target): ... this. Use template type T
1316 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1317 (host_float_ops<T>::to_target): New overload using a type argument.
1318 (floatformat_printf_format): New function.
1319 (struct printf_length_modifier): New templated type.
1320 (floatformat_to_string): Rename to ...
1321 (host_float_ops<T>::to_string): ... this. Use type instead of
1322 floatformat argument. Use floatformat_printf_format and
1323 printf_length_modifier. Remove special handling of invalid numbers,
1324 infinities and NaN (moved to target_float_to_string).
1325 (struct scanf_length_modifier): New templated type.
1326 (floatformat_from_string): Rename to ...
1327 (host_float_ops<T>::from_string): ... this. Use type instead of
1328 floatformat argument. Use scanf_length_modifier.
1329 (floatformat_to_longest): Rename to ...
1330 (host_float_ops<T>::to_longest): ... this. Use type instead of
1331 floatformat argument. Handle out-of-range values deterministically.
1332 (floatformat_from_longest): Rename to ...
1333 (host_float_ops<T>::from_longest): ... this. Use type instead of
1334 floatformat argument.
1335 (floatformat_from_ulongest): Rename to ...
1336 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
1337 floatformat argument.
1338 (floatformat_to_host_double): Rename to ...
1339 (host_float_ops<T>::to_host_double): ... this. Use type instead of
1340 floatformat argument.
1341 (floatformat_from_host_double): Rename to ...
1342 (host_float_ops<T>::from_host_double): ... this. Use type instead of
1343 floatformat argument.
1344 (floatformat_convert): Rename to ...
1345 (host_float_ops<T>::convert): ... this. Use type instead of
1346 floatformat arguments. Remove handling of no-op conversions.
1347 (floatformat_binop): Rename to ...
1348 (host_float_ops<T>::binop): ... this. Use type instead of
1349 floatformat arguments.
1350 (floatformat_compare): Rename to ...
1351 (host_float_ops<T>::compare): ... this. Use type instead of
1352 floatformat arguments.
1353
1354 (match_endianness): Use type instead of length/byte_order arguments.
1355 (set_decnumber_context): Likewise.
1356 (decimal_from_number): Likewise. Update calls.
1357 (decimal_to_number): Likewise.
1358 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
1359 (decimal_float_ops::to_host_double): New dummy function.
1360 (decimal_float_ops::from_host_double): Likewise.
1361 (decimal_to_string): Rename to ...
1362 (decimal_float_ops::to_string): ... this. Use type instead of
1363 length/byte_order arguments. Update calls.
1364 (decimal_from_string): Rename to ...
1365 (decimal_float_ops::from_string): ... this. Use type instead of
1366 length/byte_order arguments. Update calls.
1367 (decimal_from_longest): Rename to ...
1368 (decimal_float_ops::from_longest): ... this. Use type instead of
1369 length/byte_order arguments. Update calls.
1370 (decimal_from_ulongest): Rename to ...
1371 (decimal_float_ops::from_ulongest): ... this. Use type instead of
1372 length/byte_order arguments. Update calls.
1373 (decimal_to_longest): Rename to ...
1374 (decimal_float_ops::to_longest): ... this. Use type instead of
1375 length/byte_order arguments. Update calls.
1376 (decimal_binop): Rename to ...
1377 (decimal_float_ops::binop): ... this. Use type instead of
1378 length/byte_order arguments. Update calls.
1379 (decimal_compare): Rename to ...
1380 (decimal_float_ops::compare): ... this. Use type instead of
1381 length/byte_order arguments. Update calls.
1382 (decimal_convert): Rename to ...
1383 (decimal_float_ops::convert): ... this. Use type instead of
1384 length/byte_order arguments. Update calls.
1385
1386 (target_float_same_category_p): New function.
1387 (target_float_same_format_p): Likewise.
1388 (target_float_format_length): Likewise.
1389 (enum target_float_ops_kind): New type.
1390 (get_target_float_ops_kind): New function.
1391 (get_target_float_ops): Three new overloaded functions.
1392
1393 (target_float_is_zero): Update call.
1394 (target_float_to_string): Add special handling of invalid numbers,
1395 infinities and NaN (moved from floatformat_to_string). Use
1396 target_float_ops callback.
1397 (target_float_from_string): Use target_float_ops callback.
1398 (target_float_to_longest): Likewise.
1399 (target_float_from_longest): Likewise.
1400 (target_float_from_ulongest): Likewise.
1401 (target_float_to_host_double): Likewise.
1402 (target_float_from_host_double): Likewise.
1403 (target_float_convert): Add special case for no-op conversions.
1404 Use target_float_ops callback.
1405 (target_float_binop): Use target_float_ops callback.
1406 (target_float_compare): Likewise.
1407
1408 2017-11-22 Yao Qi <yao.qi@linaro.org>
1409
1410 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
1411
1412 2017-11-22 Yao Qi <yao.qi@linaro.org>
1413
1414 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
1415 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
1416
1417 2017-11-21 Jerome Guitton <guitton@adacore.com>
1418
1419 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
1420 with event ptid from the lower layer before doing the
1421 ravenscar-specific update.
1422
1423 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1424
1425 * ravenscar-thread.c (is_ravenscar_task): Also verify that
1426 the ptid's TID is nonzero.
1427
1428 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1429
1430 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
1431 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
1432 Make non-static. Change return type to char *. Adjust code
1433 accordingly. Rewrite the function's documentation.
1434 (read_atcb): Adjust call to get_tcb_types_info accordingly.
1435 * ravenscar-thread.c (ravenscar_inferior_created): Check that
1436 we have enough debugging information in the runtime to support
1437 Ada task debugging before we enable the ravenscar-thread layer.
1438
1439 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1440
1441 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
1442 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
1443 * ravenscar-thread.c: Add into comment.
1444 (base_magic_null_ptid): Delete.
1445 (base_ptid): Change documentation.
1446 (ravenscar_active_task): Renames ravenscar_running_thread.
1447 All callers updated throughout.
1448 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
1449 (ravenscar_task_is_currently_active): Likewise.
1450 (get_base_thread_from_ravenscar_task): Ditto.
1451 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
1452 (ravenscar_runtime_initialized): Likewise.
1453 (get_running_thread_id): Add new parameter "cpu". Adjust
1454 implementation to handle this new parameter.
1455 (ravenscar_fetch_registers): Small adjustment to use
1456 is_ravenscar_task and ravenscar_task_is_currently_active in
1457 order to decide whether to use the target beneath or this
1458 module's arch_ops.
1459 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
1460 (ravenscar_stopped_by_sw_breakpoint): Use
1461 get_base_thread_from_ravenscar_task to get the underlying
1462 thread, rather than using base_ptid.
1463 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1464 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1465 Likewise.
1466 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
1467
1468 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1469
1470 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
1471 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
1472 (get_tcb_types_info): Set fieldnos.base_cpu.
1473 (read_atcb): Set task_info->base_cpu.
1474 (info_task): Print "Base CPU" info if set by runtime.
1475
1476 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1477
1478 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
1479 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1480 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1481 New functions.
1482 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
1483 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
1484 to_stopped_data_address and to_core_of_thread fields of
1485 ravenscar_ops.
1486
1487 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
1488
1489 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
1490 (struct gdbarch_tdep): New member long_double_abi.
1491 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
1492 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
1493 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
1494 format depending on long_double_abi tdep member.
1495 (ppc_floatformat_for_type): Handle __ibm128 type.
1496
1497 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1498
1499 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
1500
1501 2017-11-21 Pedro Alves <palves@redhat.com>
1502
1503 * dwarf2read.c (mapped_index::find_name_components_bounds)
1504 <completion mode, upper bound>: Use std::lower_bound instead of
1505 std::upper_bound.
1506 (test_mapped_index_find_name_component_bounds): Remove incorrect
1507 "t1_fund" from expected symbols.
1508
1509 2017-11-21 Pedro Alves <palves@redhat.com>
1510
1511 * dwarf2read.c (mapped_index::name_components_casing): New field.
1512 (mapped_index) <build_name_components,
1513 find_name_components_bounds): Declare new methods.
1514 (mapped_index::find_name_components_bounds)
1515 (mapped_index::build_name_components): New methods, factored out
1516 from dw2_expand_symtabs_matching_symbol.
1517 (check_find_bounds_finds)
1518 (test_mapped_index_find_name_component_bounds): New.
1519 (run_test): Rename to ...
1520 (test_dw2_expand_symtabs_matching_symbol): ... this.
1521 (run_test): Reimplement.
1522
1523 2017-11-21 Pedro Alves <palves@redhat.com>
1524
1525 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
1526 (symbol_end): Use cp_ident_is_alnum.
1527 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
1528 * dwarf2read.c (make_sort_after_prefix_name): New function.
1529 (dw2_expand_symtabs_matching_symbol): Use it.
1530 (test_symbols): Add more symbols.
1531 (run_test): Add tests.
1532
1533 2017-11-17 Tom Tromey <tom@tromey.com>
1534
1535 * symtab.h (enum symbol_subclass_kind): New.
1536 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
1537 Remove.
1538 <subclass>: New member.
1539 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
1540 * rust-lang.c (rust_get_trait_object_pointer): Update.
1541 * dwarf2read.c (read_func_scope): Update.
1542 (read_variable): Update.
1543
1544 2017-11-17 Tom Tromey <tom@tromey.com>
1545
1546 * dwarf2read.c (read_func_scope): Update.
1547 * symtab.h (struct template_symbol): Derive from symbol.
1548 <base>: Remove.
1549
1550 2017-11-17 Tom Tromey <tom@tromey.com>
1551
1552 * symtab.h (struct symbol) <is_rust_vtable>: New member.
1553 (struct rust_vtable_symbol): New.
1554 (find_symbol_at_address): Declare.
1555 * symtab.c (find_symbol_at_address): New function.
1556 * symfile.h (struct quick_symbol_functions)
1557 <find_compunit_symtab_by_address>: New member.
1558 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
1559 function.
1560 (debug_sym_quick_functions): Link to
1561 debug_qf_find_compunit_symtab_by_address.
1562 * rust-lang.c (rust_get_trait_object_pointer): New function.
1563 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
1564 rust_get_trait_object_pointer.
1565 * psymtab.c (psym_relocate): Clear psymbol_map.
1566 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
1567 functions.
1568 (psym_functions): Link to psym_find_compunit_symtab_by_address.
1569 * objfiles.h (struct objfile) <psymbol_map>: New member.
1570 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
1571 (process_die) <DW_TAG_variable>: New case. Call read_variable.
1572 (rust_containing_type, read_variable): New functions.
1573
1574 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1575
1576 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
1577
1578 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1579
1580 * common/filestuff.c: Include <algorithm>.
1581 (open_fds): Change type to std::vector<int>.
1582 (do_mark_open_fd): Adjust.
1583 (unmark_fd_no_cloexec): Adjust.
1584 (do_close): Adjust.
1585
1586 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1587
1588 * breakpoint.c (output_thread_groups): Take an std::vector.
1589 (print_one_breakpoint_location): Adjust.
1590
1591 2017-11-17 Joel Brobecker <brobecker@adacore.com>
1592
1593 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
1594 (ada_evaluate_subexp_for_cast): New function.
1595 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
1596 ada_evaluate_subexp_for_cast.
1597 (ada_evaluate_subexp) <nosideret>: Replace code by call to
1598 eval_skip_value.
1599 * eval.c (evaluate_var_value): Make non-static.
1600 (evaluate_var_msym_value, eval_skip_value): Likewise.
1601 * value.h (evaluate_var_value, evaluate_var_msym_value)
1602 (eval_skip_value): Declare.
1603
1604 2017-11-16 Joel Brobecker <brobecker@adacore.com>
1605
1606 * ada-lang.c (ada_value_cast): Remove parameter "noside".
1607 Update all callers.
1608
1609 2017-11-16 Pedro Alves <palves@redhat.com>
1610
1611 * python/py-unwind.c (pyuw_sniffer): Translate
1612 PyExc_KeyboardInterrupt to a GDB Quit exception.
1613
1614 2017-11-16 Pedro Alves <palves@redhat.com>
1615
1616 * infrun.c (resume_cleanups): Delete.
1617 (resume): No longer install a resume_cleanups cleanup nor call
1618 QUIT.
1619 (proceed): Pass the terminal to the inferior.
1620 (keep_going_pass_signal): No longer install a resume_cleanups
1621 cleanup.
1622
1623 2017-11-16 Pedro Alves <palves@redhat.com>
1624
1625 * inf-loop.c (inferior_event_handler): Don't swallow the exception
1626 if the prompt is blocked.
1627
1628 2017-11-16 Pedro Alves <palves@redhat.com>
1629
1630 * breakpoint.c (insert_bp_location): Replace bp_err and
1631 bp_err_message locals by a gdb_exception local.
1632
1633 2017-11-16 Pedro Alves <palves@redhat.com>
1634
1635 * inflow.c (scoped_ignore_sigttou): New class.
1636 (child_terminal_ours_1, new_tty): Use it.
1637
1638 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1639
1640 * target-float.c (decimal_from_number): Add byte_order argument and
1641 call match_endianness. Error if unknown floating-point type.
1642 (decimal_to_number): Add byte_order argument and call match_endianness.
1643 (decimal_from_longest): Update call. Do not call match_endianness.
1644 (decimal_from_ulongest): Likewise.
1645 (decimal_binop): Likewise.
1646 (decimal_is_zero): Likewise.
1647 (decimal_compare): Likewise.
1648 (decimal_convert): Likewise.
1649
1650 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
1651
1652 * python/python.c (gdbpy_rbreak): New function.
1653 * NEWS: Document Python rbreak feature.
1654
1655 2017-11-16 Yao Qi <yao.qi@linaro.org>
1656
1657 * features/tic6x-c62x.xml: Remove.
1658 * features/tic6x-c64x.xml: Remove.
1659 * features/tic6x-c64xp.xml: Remove.
1660
1661 2017-11-15 John Baldwin <jhb@FreeBSD.org>
1662
1663 * symtab.h: Include <array>.
1664
1665 2017-11-15 John Baldwin <jhb@FreeBSD.org>
1666
1667 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
1668 (bsd_kvm_proc_cmd): Likewise.
1669
1670 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
1671
1672 * tui/tui-win.c (window_name_completer): Replace VEC with
1673 std::vector.
1674
1675 2017-11-15 Andrew Cagney <cagney@gnu.org>
1676
1677 * MAINTAINERS: Remove no-longer applicable entries.
1678
1679 2017-11-15 Andrew Cagney <cagney@gnu.org>
1680
1681 * MAINTAINERS: Move self to Past Maintainers.
1682
1683 2017-11-15 Yao Qi <yao.qi@linaro.org>
1684
1685 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
1686 * features/nios2-linux.c: Remove.
1687 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
1688 initialize_tdesc_nios2_linux.
1689
1690 2017-11-15 Yao Qi <yao.qi@linaro.org>
1691
1692 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
1693 M68HC11_LAST_HARD_REG + 1.
1694
1695 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
1696
1697 PR gdb/22388
1698 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
1699 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
1700 Return TARGET_XFER_EOF if size of returned data is 0.
1701
1702 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
1703
1704 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1705 memory-map-selftests.c.
1706 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
1707 * memory-map.c (memory_map_start_memory): Fix computation of hi
1708 address.
1709 * unittests/memory-map-selftests.c: New file.
1710
1711 2017-11-09 Joel Brobecker <brobecker@adacore.com>
1712
1713 * ada-lang.c: Fix some typos in the general command documenting
1714 how Ada expressions are being evaluated and how their result
1715 is printed.
1716
1717 2017-11-09 Tom Tromey <tom@tromey.com>
1718
1719 * psymtab.c (psymbol_hash): Do not hash string contents.
1720 (psymbol_compare): Add comment.
1721
1722 2017-11-09 Tom Tromey <tom@tromey.com>
1723
1724 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
1725
1726 2017-11-08 Joel Brobecker <brobecker@adacore.com>
1727
1728 * ada-exp.y (write_var_from_sym): Remove parameter
1729 "orig_left_context". Update all callers.
1730
1731 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
1732
1733 * tracepoint.h (class collection_list) <stringify>: Return
1734 std::vector<std::string>.
1735 (encode_actions_rsp): Change parameters to
1736 std::vector<std::string> *.
1737 * tracepoint.c (collection_list::stringify): Return
1738 std::vector<std::string> and adjust accordingly.
1739 (encode_actions_rsp): Changee parameters to
1740 std::vector<std::string> and adjust accordingly.
1741 * remote.c (free_actions_list),
1742 free_actions_list_cleanup_wrapper): Remove.
1743 (remote_download_tracepoint): Adjust to std::vector.
1744
1745 2017-11-08 Tom Tromey <tom@tromey.com>
1746
1747 * dwarf2read.c (symbolp): Remove typedef.
1748 (read_func_scope): Use std::vector.
1749 (process_structure_scope): Use std::vector.
1750
1751 2017-11-08 Pedro Alves <palves@redhat.com>
1752
1753 * ada-lang.c (ada_make_symbol_completion_list): Use
1754 completion_skip_symbol.
1755 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
1756 (symbol_is_function_or_method(symbol*)): New.
1757 (add_symtab_completions): Add complete_symbol_mode parameter. Use
1758 completion_skip_symbol.
1759 (default_collect_symbol_completion_matches_break_on): Use
1760 completion_skip_symbol. Pass down mode.
1761 (collect_file_symbol_completion_matches): Pass down mode.
1762 * symtab.h (symbol_is_function_or_method): New declarations.
1763 (completion_skip_symbol): New template function.
1764
1765 2017-11-08 Pedro Alves <palves@redhat.com>
1766
1767 * linespec.c (iterate_over_all_matching_symtabs): Add
1768 search_domain parameter. Pass it down to expand_symtabs_matching.
1769 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
1770 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
1771 search_domain.
1772 (add_all_symbol_names_from_pspace): Add search_domain parameter.
1773 Pass it down.
1774 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
1775 symbols.
1776 (add_matching_symbols_to_info): Add search_domain parameter. Pass
1777 it down.
1778
1779 2017-11-08 Pedro Alves <palves@redhat.com>
1780
1781 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
1782 text_len locals and don't pass them down.
1783 * symtab.c (completion_list_add_name): Remove
1784 sym_text/sym_text_len parameters and adjust.
1785 (completion_list_add_symbol, completion_list_add_msymbol)
1786 (completion_list_objc_symbol, completion_list_add_fields)
1787 (add_symtab_completions): Likewise.
1788 (default_collect_symbol_completion_matches_break_on)
1789 (collect_file_symbol_completion_matches): Remove sym_text_len
1790 local and don't pass it down.
1791 * symtab.h (completion_list_add_name): Remove
1792 sym_text/sym_text_len parameters.
1793
1794 2017-11-08 Pedro Alves <palves@redhat.com>
1795
1796 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1797 unittests/lookup_name_info-selftests.c.
1798 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
1799 * cp-support.c: Include "selftest.h".
1800 (cp_remove_params_1): Rename from cp_remove_params. Add
1801 'require_param' parameter, and handle it.
1802 (cp_remove_params): Reimplement.
1803 (cp_remove_params_if_any): New.
1804 (selftests::quote): New.
1805 (selftests::check_remove_params): New.
1806 (selftests::test_cp_remove_params): New.
1807 (_initialize_cp_support): Install
1808 selftests::test_cp_remove_params.
1809 * cp-support.h (cp_remove_params_if_any): Declare.
1810 * dwarf2read.c :Include "selftest.h".
1811 (dw2_expand_symtabs_matching_symbol): Use
1812 lookup_name_info::make_ignore_params.
1813 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
1814 (selftests::dw2_expand_symtabs_matching::string_or_null)
1815 (selftests::dw2_expand_symtabs_matching::check_match)
1816 (selftests::dw2_expand_symtabs_matching::test_symbols)
1817 (selftests::dw2_expand_symtabs_matching::run_test): New.
1818 (_initialize_dwarf2_read): Register
1819 selftests::dw2_expand_symtabs_matching::run_test.
1820 * psymtab.c (psym_expand_symtabs_matching): Use
1821 lookup_name_info::make_ignore_params.
1822 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
1823 If the lookup name wants to ignore parameters, strip them.
1824 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
1825 code handling '('.
1826 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
1827 (default_collect_symbol_completion_matches_break_on): Don't try to
1828 strip parameters.
1829 * symtab.h (lookup_name_info::lookup_name_info): Add
1830 'ignore_parameters' parameter.
1831 (lookup_name_info::ignore_parameters)
1832 (lookup_name_info::make_ignore_params): New methods.
1833 (lookup_name_info::m_ignore_parameters): New field.
1834 * unittests/lookup_name_info-selftests.c: New file.
1835
1836 2017-11-08 Pedro Alves <palves@redhat.com>
1837
1838 * dwarf2read.c (dw2_expand_marked_cus)
1839 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
1840 (dw2_expand_symtabs_matching): Move further below.
1841 (dw2_expand_marked_cus): Reindent.
1842
1843 2017-11-08 Pedro Alves <palves@redhat.com>
1844
1845 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
1846 (struct name_component): New.
1847 (mapped_index::name_components): New field.
1848 (mapped_index::symbol_name_at): New method.
1849 (dwarf2_read_index): Call mapped_index ctor.
1850 (dw2_map_matching_symbols): Add comment about name_components
1851 table.
1852 (dw2_expand_symtabs_matching): Factor part to...
1853 (dw2_expand_symtabs_matching_symbol): ... this new function.
1854 Build name components table, and lookup symbols in it before
1855 calling the name matcher.
1856 (dw2_expand_marked_cus): New, factored out from
1857 dw2_expand_symtabs_matching.
1858 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
1859
1860 2017-11-08 Pedro Alves <palves@redhat.com>
1861
1862 * ada-lang.c (ada_encode): Rename to ..
1863 (ada_encode_1): ... this. Add throw_errors parameter and handle
1864 it.
1865 (ada_encode): Reimplement.
1866 (match_name): Delete, folded into full_name.
1867 (resolve_subexp): No longer pass the encoded name to
1868 ada_lookup_symbol_list.
1869 (should_use_wild_match): Delete.
1870 (name_match_type_from_name): New.
1871 (ada_lookup_simple_minsym): Use lookup_name_info and the
1872 language's symbol_name_matcher_ftype.
1873 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
1874 (ada_add_block_renamings): Adjust to use lookup_name_info.
1875 (ada_lookup_name): New.
1876 (add_nonlocal_symbols, ada_add_all_symbols)
1877 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
1878 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
1879 (ada_name_for_lookup): Delete.
1880 (ada_lookup_encoded_symbol): Construct a verbatim name.
1881 (wild_match): Reverse sense of return type. Use bool.
1882 (full_match): Reverse sense of return type. Inline bits of old
1883 match_name here.
1884 (ada_add_block_symbols): Adjust to use lookup_name_info.
1885 (symbol_completion_match): Delete, folded into...
1886 (ada_lookup_name_info::matches): ... .this new method.
1887 (symbol_completion_add): Delete.
1888 (ada_collect_symbol_completion_matches): Add name_match_type
1889 parameter. Adjust to use lookup_name_info and
1890 completion_list_add_name.
1891 (get_var_value, ada_add_global_exceptions): Adjust to use
1892 lookup_name_info.
1893 (ada_get_symbol_name_cmp): Delete.
1894 (do_wild_match, do_full_match): New functions.
1895 (ada_lookup_name_info::ada_lookup_name_info): New method.
1896 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
1897 functions.
1898 (ada_language_defn): Install ada_get_symbol_name_matcher.
1899 * ada-lex.l (processId): If name starts with '<', copy it
1900 verbatim.
1901 * block.c (block_iter_match_step, block_iter_match_first)
1902 (block_iter_match_next, block_lookup_symbol)
1903 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
1904 lookup_name_info.
1905 * block.h (block_iter_match_first, block_iter_match_next)
1906 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
1907 * c-lang.c (c_language_defn, cplus_language_defn)
1908 (asm_language_defn, minimal_language_defn): Adjust comments to
1909 refer to la_get_symbol_name_matcher.
1910 * completer.c (complete_files_symbols)
1911 (collect_explicit_location_matches, symbol_completer): Pass a
1912 symbol_name_match_type down.
1913 * completer.h (class completion_match, completion_match_result):
1914 New classes.
1915 (completion_tracker::reset_completion_match_result): New method.
1916 (completion_tracker::m_completion_match_result): New field.
1917 * cp-support.c (make_symbol_overload_list_block): Adjust to use
1918 lookup_name_info.
1919 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
1920 functions.
1921 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
1922 * d-lang.c: Adjust comments to refer to
1923 la_get_symbol_name_matcher.
1924 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
1925 Adjust to use lookup_name_info.
1926 (dict_iter_match_first, dict_iter_match_next)
1927 (iter_match_first_hashed, iter_match_next_hashed)
1928 (iter_match_first_linear, iter_match_next_linear): Adjust to work
1929 with a lookup_name_info.
1930 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
1931 Likewise.
1932 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
1933 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
1934 (gdb_index_symbol_name_matcher): New class.
1935 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
1936 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
1937 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
1938 with a symbol_name_match_type.
1939 (f_language_defn): Adjust comments to refer to
1940 la_get_symbol_name_matcher.
1941 * go-lang.c (go_language_defn): Adjust comments to refer to
1942 la_get_symbol_name_matcher.
1943 * language.c (default_symbol_name_matcher)
1944 (language_get_symbol_name_matcher): New functions.
1945 (unknown_language_defn, auto_language_defn): Adjust comments to
1946 refer to la_get_symbol_name_matcher.
1947 * language.h (symbol_name_cmp_ftype): Delete.
1948 (language_defn) <la_collect_symbol_completion_matches>: Add match
1949 type parameter.
1950 <la_get_symbol_name_cmp>: Delete field.
1951 <la_get_symbol_name_matcher>: New field.
1952 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
1953 (default_symbol_name_matcher, language_get_symbol_name_matcher):
1954 Declare.
1955 * linespec.c (iterate_over_all_matching_symtabs)
1956 (iterate_over_file_blocks): Adjust to use lookup_name_info.
1957 (find_methods): Add language parameter, and use lookup_name_info
1958 and the language's symbol_name_matcher_ftype.
1959 (linespec_complete_function): Adjust.
1960 (lookup_prefix_sym): Use lookup_name_info.
1961 (add_all_symbol_names_from_pspace): Adjust.
1962 (find_superclass_methods): Add language parameter and pass it
1963 down.
1964 (find_method): Pass symbol language down.
1965 (find_linespec_symbols): Don't demangle or Ada encode here.
1966 (search_minsyms_for_name): Add lookup_name_info parameter.
1967 (add_matching_symbols_to_info): Add name_match_type parameter.
1968 Use lookup_name_info.
1969 * m2-lang.c (m2_language_defn): Adjust comments to refer to
1970 la_get_symbol_name_matcher.
1971 * minsyms.c: Include <algorithm>.
1972 (add_minsym_to_demangled_hash_table): Remove table parameter and
1973 add objfile parameter. Use search_name_hash, and add language to
1974 demangled languages vector.
1975 (struct found_minimal_symbols): New struct.
1976 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
1977 New functions.
1978 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
1979 input names here. Use lookup_name_info instead. Lookup up
1980 demangled names once for each language in the demangled names
1981 vector.
1982 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
1983 demangled names once for each language in the demangled names
1984 vector.
1985 (build_minimal_symbol_hash_tables): Adjust.
1986 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
1987 lookup_name_info.
1988 * objc-lang.c (objc_language_defn): Adjust comment to refer to
1989 la_get_symbol_name_matcher.
1990 * objfiles.h: Include <vector>.
1991 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
1992 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
1993 la_get_symbol_name_matcher.
1994 * p-lang.c (pascal_language_defn): Adjust comment to refer to
1995 la_get_symbol_name_matcher.
1996 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
1997 (match_partial_symbol): Use symbol_name_match_type,
1998 lookup_name_info and psymbol_name_matches.
1999 (lookup_partial_symbol): Use lookup_name_info.
2000 (map_block): Use symbol_name_match_type and lookup_name_info.
2001 (psym_map_matching_symbols): Use symbol_name_match_type.
2002 (psymbol_name_matches): New.
2003 (recursively_search_psymtabs): Use lookup_name_info and
2004 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2005 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2006 'kind' parameter to 'domain'.
2007 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2008 la_get_symbol_name_matcher.
2009 * symfile-debug.c (debug_qf_map_matching_symbols)
2010 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2011 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2012 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2013 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2014 Adjust to use symbol_name_match_type.
2015 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2016 (expand_symtabs_matching): Adjust to use lookup_name_info.
2017 * symmisc.c (maintenance_expand_symtabs): Use
2018 lookup_name_info::match_any ().
2019 * symtab.c (symbol_matches_search_name): New.
2020 (eq_symbol_entry): Adjust to use lookup_name_info and the
2021 language's matcher.
2022 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2023 (lookup_name_info::match_any): New.
2024 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2025 (compare_symbol_name): Add language, lookup_name_info and
2026 completion_match_result parameters, and use them.
2027 (completion_list_add_name): Make extern. Add language and
2028 lookup_name_info parameters. Use them.
2029 (completion_list_add_symbol, completion_list_add_msymbol)
2030 (completion_list_objc_symbol): Add lookup_name_info parameters and
2031 adjust. Pass down language.
2032 (completion_list_add_fields): Add lookup_name_info parameters and
2033 adjust. Pass down language.
2034 (add_symtab_completions): Add lookup_name_info parameters and
2035 adjust.
2036 (default_collect_symbol_completion_matches_break_on): Add
2037 name_match_type parameter, and use it. Use lookup_name_info.
2038 (default_collect_symbol_completion_matches)
2039 (collect_symbol_completion_matches): Add name_match_type
2040 parameter, and pass it down.
2041 (collect_symbol_completion_matches_type): Adjust.
2042 (collect_file_symbol_completion_matches): Add name_match_type
2043 parameter, and use lookup_name_info.
2044 * symtab.h: Include <string> and "common/gdb_optional.h".
2045 (enum class symbol_name_match_type): New.
2046 (class ada_lookup_name_info): New.
2047 (struct demangle_for_lookup_info): New.
2048 (class lookup_name_info): New.
2049 (symbol_name_matcher_ftype): New.
2050 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2051 (symbol_matches_search_name): Declare.
2052 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2053 (default_collect_symbol_completion_matches)
2054 (collect_symbol_completion_matches)
2055 (collect_file_symbol_completion_matches): Add name_match_type
2056 parameter.
2057 (iterate_over_symbols): Use lookup_name_info.
2058 (completion_list_add_name): Declare.
2059 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2060 (strncmp_iw_with_mode): Now extern.
2061 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2062 (strncmp_iw_with_mode): Declare.
2063
2064 2017-11-08 Keith Seitz <keiths@redhat.com>
2065 Pedro Alves <palves@redhat.com>
2066
2067 * ada-lang.c (ada_language_defn): Install
2068 default_search_name_hash.
2069 * buildsym.c (struct buildsym_compunit): <language>: New field.
2070 (finish_block_internal): Pass language when creating dictionaries.
2071 (start_buildsym_compunit, start_symtab): New language parameters.
2072 Use them.
2073 (restart_symtab): Pass down compilation unit's language.
2074 * buildsym.h (enum language): Forward declare.
2075 (start_symtab): New 'language' parameter.
2076 * c-lang.c (c_language_defn, cplus_language_defn)
2077 (asm_language_defn, minimal_language_defn): Install
2078 default_search_name_hash.
2079 * coffread.c (coff_start_symtab): Adjust.
2080 * d-lang.c (d_language_defn): Install default_search_name_hash.
2081 * dbxread.c (struct symloc): Add 'pst_language' field.
2082 (PST_LANGUAGE): Define.
2083 (start_psymtab, read_ofile_symtab): Use it.
2084 (process_one_symbol): New 'language' parameter. Pass it down.
2085 * dictionary.c (struct dictionary) <language>: New field.
2086 (DICT_LANGUAGE): Define.
2087 (dict_create_hashed, dict_create_hashed_expandable)
2088 (dict_create_linear, dict_create_linear_expandable): New parameter
2089 'language'. Set the dictionary's language.
2090 (iter_match_first_hashed): Adjust to rename.
2091 (insert_symbol_hashed): Assert we don't see mismatching
2092 languages. Adjust to rename.
2093 (dict_hash): Rename to ...
2094 (default_search_name_hash): ... this and make extern.
2095 * dictionary.h (struct language_defn): Forward declare.
2096 (dict_create_hashed): New parameter 'language'.
2097 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2098 * f-lang.c (f_language_defn): Install default_search_name_hash.
2099 * go-lang.c (go_language_defn): Install default_search_name_hash.
2100 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2101 creation.
2102 * language.c (unknown_language_defn, auto_language_defn):
2103 * language.h (language_defn::la_search_name_hash): New field.
2104 (default_search_name_hash): Declare.
2105 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2106 * mdebugread.c (new_block): New parameter 'language'.
2107 * mdebugread.c (parse_symbol): Pass symbol language to block
2108 allocation.
2109 (psymtab_to_symtab_1): Pass down language.
2110 (new_symtab): Pass compunit's language to block allocation.
2111 * objc-lang.c (objc_language_defn): Install
2112 default_search_name_hash.
2113 * opencl-lang.c (opencl_language_defn):
2114 * p-lang.c (pascal_language_defn): Install
2115 default_search_name_hash.
2116 * rust-lang.c (rust_language_defn): Install
2117 default_search_name_hash.
2118 * stabsread.h (enum language): Forward declare.
2119 (process_one_symbol): Add 'language' parameter.
2120 * symtab.c (search_name_hash): New function.
2121 * symtab.h (search_name_hash): Declare.
2122 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2123
2124 2017-11-08 Pedro Alves <palves@redhat.com>
2125
2126 * cp-name-parser.y (main): Don't initialize extra_chars.
2127
2128 2017-11-07 Tom Tromey <tom@tromey.com>
2129
2130 * event-top.h (command_handler): Constify.
2131 * record-full.c (cmd_record_full_start): Update.
2132 * thread.c (thread_apply_all_command): Update.
2133 * printcmd.c (eval_command): Update.
2134 * mi/mi-main.c (mi_execute_cli_command): Update.
2135 (mi_execute_async_cli_command): Update.
2136 * tui/tui-stack.c (tui_update_command): Update.
2137 * cli/cli-interp.c (safe_execute_command): Constify.
2138 * record.c (record_start): Update.
2139 (record_start, record_stop, cmd_record_start): Update.
2140 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2141 (cmd_record_btrace_pt_start): Update.
2142 (cmd_record_btrace_start): Update.
2143 (cmd_record_btrace_start): Update.
2144 * reverse.c (exec_reverse_once): Update.
2145 * python/python.c (execute_gdb_command): Don't copy the command.
2146 * event-top.c (command_line_handler): Update.
2147 (command_handler): Constify.
2148 * defs.h (deprecated_call_command_hook): Constify.
2149 * cli/cli-script.h (execute_user_command): Constify.
2150 * cli/cli-script.c (execute_user_command): Constify.
2151 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2152 (enum command_control_type): Update.
2153 * main.c (catch_command_errors): Remove non-const overload.
2154 (catch_command_errors_ftype): Remove.
2155 * python/py-cmd.c (cmdpy_function): Constify.
2156 * guile/scm-cmd.c (cmdscm_function): Constify.
2157 * cli/cli-dump.c (call_dump_func): Constify.
2158 * cli/cli-decode.c (do_const_cfunc): Constify.
2159 (do_sfunc): Constify.
2160 (cmd_func): Constify.
2161 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2162 * top.h (execute_command): Constify.
2163 * top.c (execute_command): Constify.
2164 (execute_command_to_string): Constify.
2165 (deprecated_call_command_hook): Constify.
2166 * command.h (cmd_func): Constify.
2167 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2168
2169 2017-11-07 Tom Tromey <tom@tromey.com>
2170
2171 * ada-lang.c (catch_ada_exception_command): Constify.
2172 (catch_assert_command): Constify.
2173 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2174 (catch_rethrow_command): Constify.
2175 (catch_exception_command_1): Constify.
2176 * breakpoint.h (add_catch_command): Constify.
2177 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2178 (catch_syscall_split_args): Constify.
2179 * break-catch-sig.c (catch_signal_command): Constify.
2180 (catch_signal_split_args): Constify.
2181 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2182 cmd_const_sfunc_ftype.
2183 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2184 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2185 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2186 (add_setshow_string_cmd, struct cmd_list_element)
2187 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2188 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2189 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2190 Constify.
2191 (set_cmd_sfunc): Constify.
2192 (empty_sfunc): Constify.
2193 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2194 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2195 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2196 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2197 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2198 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2199 Constify.
2200 (set_cmd_sfunc): Constify.
2201 (cmd_sfunc_ftype): Remove.
2202 * compile/compile.c (set_compile_args): Constify.
2203 * infrun.c (set_disable_randomization): Constify.
2204 * infcmd.c (set_args_command, set_cwd_command): Constify.
2205 * breakpoint.c (set_condition_evaluation_mode): Constify.
2206 (add_catch_command): Constify.
2207 (catch_fork_command_1, catch_exec_command_1)
2208 (catch_load_command_1, catch_unload_command_1): Constify.
2209 (catch_load_or_unload): Constify.
2210 * guile/scm-param.c (pascm_set_func): Constify.
2211 (add_setshow_generic): Constify.
2212 * python/py-param.c (get_set_value): Constify.
2213 * top.h (set_verbose): Constify.
2214 * tui/tui-win.c (tui_set_var_cmd): Constify.
2215 * mi/mi-main.c (set_mi_async_command): Constify.
2216 * cli/cli-logging.c (set_logging_overwrite)
2217 (set_logging_redirect): Constify.
2218 * value.c (set_max_value_size): Constify.
2219 * valprint.c (set_input_radix, set_output_radix): Constify.
2220 * utils.c (set_width_command, set_height_command): Constify.
2221 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2222 * tracepoint.c (set_disconnected_tracing)
2223 (set_circular_trace_buffer, set_trace_buffer_size)
2224 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2225 * top.c (set_history_size_command, set_verbose, set_editing)
2226 (set_gdb_datadir, set_history_filename): Constify.
2227 * target.c (set_targetdebug, maint_set_target_async_command)
2228 (maint_set_target_non_stop_command, set_target_permissions)
2229 (set_write_memory_permission): Constify.
2230 (open_target): Constify.
2231 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2232 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2233 * symtab.c (set_symbol_cache_size_handler): Constify.
2234 * symfile.c (set_ext_lang_command): Constify.
2235 * symfile-debug.c (set_debug_symfile): Constify.
2236 * source.c (set_directories_command): Constify.
2237 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2238 * serial.c (set_parity): Constify.
2239 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2240 * remote.c (set_remote_exec_file, set_remotebreak)
2241 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2242 * record.c (set_record_insn_history_size)
2243 (set_record_call_history_size): Constify.
2244 * record-full.c (set_record_full_insn_max_num): Constify.
2245 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2246 * osabi.c (set_osabi): Constify.
2247 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2248 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2249 * maint.c (maintenance_set_profile_cmd): Constify.
2250 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2251 * language.c (set_language_command, set_range_command)
2252 (set_case_command): Constify.
2253 * infrun.c (set_non_stop, set_observer_mode)
2254 (set_stop_on_solib_events, set_schedlock_func)
2255 (set_exec_direction_func): Constify.
2256 * infcmd.c (set_inferior_tty_command): Constify.
2257 * disasm.c (set_disassembler_options_sfunc): Constify.
2258 * demangle.c (set_demangling_command): Constify.
2259 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2260 * cris-tdep.c (set_cris_version, set_cris_mode)
2261 (set_cris_dwarf2_cfi): Constify.
2262 * corefile.c (set_gnutarget_command): Constify.
2263 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2264 (set_target_wide_charset_sfunc): Constify.
2265 * breakpoint.c (update_dprintf_commands): Constify.
2266 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2267 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2268 (set_disassembly_style_sfunc): Constify.
2269 * arch-utils.c (set_endian, set_architecture): Constify.
2270 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2271 * agent.c (set_can_use_agent): Constify.
2272
2273 2017-11-07 Tom Tromey <tom@tromey.com>
2274
2275 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2276 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2277 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2278 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2279 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2280 (parse_int_arg, show_thread_default_detach_sc_cmd)
2281 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2282 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2283 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2284 (show_task_pause_cmd, set_task_detach_sc_cmd)
2285 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2286 (set_noninvasive_cmd, set_thread_pause_cmd)
2287 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2288 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2289 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2290 * windows-nat.c (display_selectors): Constify.
2291 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2292 non-const "cfunc".
2293 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2294 (cmd_cfunc_eq): Likewise.
2295 (struct cmd_list_element): Likewise.
2296 (do_cfunc): Remove.
2297 (cli_user_command_p): Update.
2298 * command.h (add_cmd): Remove non-const overload.
2299 (cmd_cfunc_ftype): Remove typedef.
2300 (cmd_cfunc_eq): Remove non-const overload.
2301 * value.c (show_values): Constify.
2302 * thread.c (thread_apply_all_command): Constify.
2303 * symfile.c (load_command): Constify.
2304 * source.c (directory_command): Constify.
2305 * maint.c (maintenance_internal_error)
2306 (maintenance_demangler_warning, maintenance_space_display)
2307 (maintenance_print_architecture, maintenance_translate_address)
2308 (maintenance_info_selftests, maintenance_internal_warning):
2309 Constify.
2310 * breakpoint.c (disable_trace_command, enable_trace_command):
2311 Constify.
2312 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
2313 Constify.
2314 (add_auto_load_safe_path): Constify.
2315 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
2316 * top.h (show_commands): Constify.
2317 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
2318 * sparc64-tdep.c (adi_examine_command): Constify.
2319 (adi_assign_command): Constify.
2320
2321 2017-11-07 Tom Tromey <tom@tromey.com>
2322
2323 * frame.h (info_locals_command, info_args_command): Constify.
2324 * auto-load.h (auto_load_info_scripts): Constify.
2325 * inferior.h (registers_info): Constify.
2326 * copying.c: Rebuild.
2327 * copying.awk: Constify generated commands.
2328 * auto-load.c (auto_load_info_scripts)
2329 (info_auto_load_gdb_scripts): Constify.
2330 * cli/cli-decode.c (struct cmd_list_element): Take a
2331 cmd_const_cfunc_ftype.
2332 * command.h (add_info): Take a cmd_const_cfunc_ftype.
2333 * tui/tui-win.c (tui_all_windows_info): Constify.
2334 * python/py-auto-load.c (info_auto_load_python_scripts):
2335 Constify.
2336 * cli/cli-cmds.c (show_command): Remove non-const overload.
2337 * tracepoint.c (info_tvariables_command, info_scope_command):
2338 Constify.
2339 (info_static_tracepoint_markers_command): Constify.
2340 * thread.c (info_threads_command): Constify.
2341 (print_thread_info_1): Constify.
2342 * target.c (info_target_command): Constify.
2343 * symtab.c (info_sources_command, info_functions_command)
2344 (info_types_command): Constify.
2345 (info_variables_command): Remove non-const overload.
2346 * symfile.c (info_ext_lang_command): Constify.
2347 * stack.c (info_frame_command, info_locals_command)
2348 (info_args_command): Constify.
2349 (backtrace_command): Remove non-const overload.
2350 * source.c (info_source_command, info_line_command): Constify.
2351 * solib.c (info_sharedlibrary_command): Constify.
2352 * skip.c (info_skip_command): Constify.
2353 * ser-go32.c (info_serial_command): Constify.
2354 * reverse.c (info_bookmarks_command): Constify.
2355 * printcmd.c (info_symbol_command, info_address_command)
2356 (info_display_command): Constify.
2357 * osdata.c (info_osdata_command): Constify.
2358 * objc-lang.c (info_selectors_command, info_classes_command):
2359 Constify.
2360 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
2361 * memattr.c (info_mem_command): Constify.
2362 * macrocmd.c (info_macro_command, info_macros_command): Constify.
2363 * linux-fork.c (info_checkpoints_command): Constify.
2364 * infrun.c (info_signals_command): Constify.
2365 * inflow.c (info_terminal_command): Constify.
2366 * inferior.c (info_inferiors_command): Constify.
2367 (print_inferior): Constify.
2368 * infcmd.c (info_program_command, info_all_registers_command)
2369 (info_registers_command, info_vector_command)
2370 (info_float_command): Constify.
2371 (registers_info): Constify.
2372 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
2373 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
2374 Constify.
2375 * f-valprint.c (info_common_command): Constify.
2376 * dcache.c (info_dcache_command): Constify.
2377 (dcache_info_1): Constify.
2378 * darwin-nat-info.c (info_mach_tasks_command)
2379 (info_mach_task_command, info_mach_ports_command)
2380 (info_mach_port_command, info_mach_threads_command)
2381 (info_mach_thread_command, info_mach_regions_command)
2382 (info_mach_regions_recurse_command, info_mach_region_command)
2383 (info_mach_exceptions_command): Constify.
2384 (get_task_from_args): Constify.
2385 * cp-support.c (info_vtbl_command): Constify.
2386 * breakpoint.c (info_watchpoints_command)
2387 (info_tracepoints_command): Constify.
2388 (info_breakpoints_command): Remove non-const overload.
2389 * avr-tdep.c (avr_io_reg_read_command): Constify.
2390 * auxv.c (info_auxv_command): Constify.
2391 * ada-tasks.c (info_tasks_command): Constify.
2392 (info_task): Constify.
2393 * ada-lang.c (info_exceptions_command): Constify.
2394
2395 2017-11-07 Tom Tromey <tom@tromey.com>
2396
2397 * solib.h (no_shared_libraries): Constify.
2398 * frame.h (return_command): Constify.
2399 * cli/cli-cmds.h (quit_command): Constify.
2400 * top.h (quit_command, execute_command): Constify.
2401 * target.h (flash_erase_command): Constify.
2402 * inferior.h (set_inferior_args, attach_command): Constify.
2403 * tracepoint.h (start_tracing, stop_tracing): Constify.
2404 * breakpoint.h (break_command, tbreak_command)
2405 (hbreak_command_wrapper, thbreak_command_wrapper)
2406 (rbreak_command_wrapper, watch_command_wrapper)
2407 (awatch_command_wrapper, rwatch_command_wrapper)
2408 (get_tracepoint_by_number): Constify.
2409 * symtab.c (info_variables_command, rbreak_command)
2410 (symtab_symbol_info): Constify.
2411 (info_variables_command): Add non-const overload.
2412 * top.c (dont_repeat_command): Constify.
2413 * breakpoint.c (ignore_command, commands_command)
2414 (condition_command, tbreak_command, hbreak_command)
2415 (thbreak_command, clear_command, break_command)
2416 (info_breakpoints_command, watch_command, rwatch_command)
2417 (awatch_command, trace_command, ftrace_command, strace_command)
2418 (trace_pass_command, break_range_command, dprintf_command)
2419 (agent_printf_command, get_tracepoint_by_number)
2420 (watch_maybe_just_location, trace_pass_command): Constify.
2421 (info_breakpoints_command): Add non-const overload.
2422 * tracefile.c (tsave_command): Constify.
2423 * infcmd.c (attach_command, disconnect_command, signal_command)
2424 (queue_signal_command, stepi_command, nexti_command)
2425 (finish_command, next_command, step_command, until_command)
2426 (advance_command, jump_command, continue_command, run_command)
2427 (start_command, starti_command, interrupt_command)
2428 (run_command_1, set_inferior_args, step_1): Constify.
2429 * inferior.c (add_inferior_command, remove_inferior_command)
2430 (clone_inferior_command): Constify.
2431 * linux-fork.c (checkpoint_command, restart_command): Constify.
2432 * windows-nat.c (signal_event_command): Constify.
2433 * guile/guile.c (guile_repl_command, guile_command): Constify.
2434 * printcmd.c (x_command, display_command, printf_command)
2435 (output_command, set_command, call_command, print_command)
2436 (eval_command): Constify.
2437 (non_const_set_command): Remove.
2438 (_initialize_printcmd): Update.
2439 * source.c (forward_search_command, reverse_search_command):
2440 Constify.
2441 * jit.c (jit_reader_load_command, jit_reader_unload_command):
2442 Constify.
2443 * infrun.c (handle_command): Constify.
2444 * memattr.c (mem_command): Constify.
2445 * stack.c (return_command, up_command, up_silently_command)
2446 (down_command, down_silently_command, frame_command)
2447 (backtrace_command, func_command, backtrace_command_1): Constify.
2448 (backtrace_command): Add non-const overload.
2449 * remote-sim.c (simulator_command): Constify.
2450 * exec.c (set_section_command): Constify.
2451 * tracepoint.c (tdump_command, trace_variable_command)
2452 (tstatus_command, tstop_command, tstart_command)
2453 (end_actions_pseudocommand, while_stepping_pseudocommand)
2454 (collect_pseudocommand, teval_pseudocommand, actions_command)
2455 (start_tracing, stop_tracing): Constify.
2456 * value.c (init_if_undefined_command): Constify.
2457 * tui/tui-stack.c (tui_update_command): Constify.
2458 * tui/tui-win.c (tui_refresh_all_command)
2459 (tui_set_tab_width_command, tui_set_win_height_command)
2460 (tui_set_focus_command, tui_scroll_forward_command)
2461 (tui_scroll_backward_command, tui_scroll_left_command)
2462 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
2463 (tui_set_win_height): Constify.
2464 * tui/tui-layout.c (tui_layout_command): Constify.
2465 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
2466 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
2467 (proc_untrace_sysexit_cmd): Constify.
2468 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
2469 (threadset_test_cmd, threadlist_update_test_cmd)
2470 (threadalive_test): Constify.
2471 * objc-lang.c (print_object_command): Constify.
2472 * command.h (add_com): Constify.
2473 * cli/cli-dump.c (restore_command): Constify.
2474 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
2475 (help_command, complete_command, shell_command, edit_command)
2476 (list_command, disassemble_command, make_command)
2477 (apropos_command, alias_command): Constify.
2478 * cli/cli-script.c (document_command, define_command)
2479 (while_command, if_command, validate_comname): Constify.
2480 * cli/cli-decode.c (struct cmd_list_element): Change type of
2481 "fun".
2482 * target.c (do_monitor_command, flash_erase_command): Constify.
2483 * regcache.c (reg_flush_command): Constify.
2484 * reverse.c (reverse_step, reverse_next, reverse_stepi)
2485 (reverse_nexti, reverse_continue, reverse_finish)
2486 (save_bookmark_command, goto_bookmark_command)
2487 (exec_reverse_once): Constify.
2488 * python/python.c (python_interactive_command, python_command):
2489 Constify.
2490 * typeprint.c (ptype_command, whatis_command, whatis_exp):
2491 Constify.
2492 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
2493 * gcore.c (gcore_command): Constify.
2494
2495 2017-11-07 Tom Tromey <tom@tromey.com>
2496
2497 * printcmd.c (x_command): Call set_repeat_arguments.
2498 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
2499 * top.c (repeat_arguments): New global.
2500 (set_repeat_arguments): New function.
2501 (execute_command): Handle repeat_arguments.
2502 (show_commands): Calls set_repeat_arguments.
2503 * command.h (set_repeat_arguments): Declare.
2504
2505 2017-11-07 Tom Tromey <tom@tromey.com>
2506
2507 * stack.c (backtrace_command): Use std::string.
2508 (backtrace_command_1): Make "count_exp" const.
2509
2510 2017-11-07 Tom Tromey <tom@tromey.com>
2511
2512 * source.c (directory_switch, mod_path, add_path): Constify.
2513 * defs.h (add_path, mod_path, directory_switch): Constify.
2514 * mi/mi-cmd-env.c (env_mod_path): Constify.
2515
2516 2017-11-07 Tom Tromey <tom@tromey.com>
2517
2518 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
2519 (run_command_1, continue_command, step_1, jump_command)
2520 (signal_command, until_command, advance_command, finish_command)
2521 (attach_command): Update.
2522
2523 2017-11-07 Tom Tromey <tom@tromey.com>
2524
2525 * command.h (set_cmd_cfunc): Don't declare.
2526 * cli/cli-decode.c (set_cmd_cfunc): Now static.
2527
2528 2017-11-07 Tom Tromey <tom@tromey.com>
2529
2530 * stack.c (select_frame_command): Constify.
2531 * cli/cli-decode.c (add_com_suppress_notification): Constify.
2532 * command.h (add_com_suppress_notification): Constify.
2533
2534 2017-11-07 Tom Tromey <tom@tromey.com>
2535
2536 * breakpoint.c (stop_command): Constify.
2537 * cli/cli-decode.c (struct cmd_list_element): Constify.
2538 * command.h (add_abbrev_prefix_cmd): Constify.
2539
2540 2017-11-07 Pedro Alves <palves@redhat.com>
2541
2542 * breakpoint.c (extract_bp_kind): New enum.
2543 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
2544 factored out from ...
2545 (extract_bp_number_and_location): ... here.
2546 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
2547
2548 2017-11-07 Pedro Alves <palves@redhat.com>
2549
2550 * breakpoint.c (extract_bp_number_and_location): Change return
2551 type to void. Throw error instead of warning.
2552 (enable_disable_command): Adjust.
2553
2554 2017-11-07 Xavier Roirand <roirand@adacore.com>
2555 Pedro Alves <palves@redhat.com>
2556
2557 * breakpoint.c (map_breakpoint_number_range): New, factored out
2558 from ...
2559 (map_breakpoint_numbers): ... here.
2560 (find_location_by_number): Change parameters from string to
2561 breakpoint number and location.
2562 (extract_bp_number_and_location): New function.
2563 (enable_disable_bp_num_loc)
2564 (enable_disable_breakpoint_location_range)
2565 (enable_disable_command): New functions, factored out ...
2566 (enable_command, disable_command): ... these functions, and
2567 adjusted to support ranges.
2568 * NEWS: Document enable/disable breakpoint location range feature.
2569
2570 2017-11-06 Luis Machado <luis.machado@linaro.org>
2571
2572 * MAINTAINERS (Write After Approval): Update my e-mail address.
2573
2574 2017-11-06 Pedro Alves <palves@redhat.com>
2575
2576 * gnu-nat.c (gnu_terminal_init): Delete.
2577 (gnu_target): Don't install gnu_terminal_init.
2578 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
2579 (child_terminal_init): ... this function.
2580
2581 2017-11-06 Pedro Alves <palves@redhat.com>
2582
2583 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
2584 sgtty.h.
2585 * config.in, configure: Regenerate.
2586
2587 2017-11-06 Pedro Alves <palves@redhat.com>
2588
2589 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
2590 (async_init_signals): Adjust.
2591 (handle_stop_sig): Rename to ...
2592 (handle_sigtstp): ... this.
2593 (async_stop_sig): Rename to ...
2594 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
2595 SIGTSTP path.
2596 * event-top.h: Move signal.h include to the top. Check SIGTSTP
2597 instead of STOP_SIGNAL thoughout.
2598 (handle_stop_sig): Rename to ...
2599 (handle_sigtstp): ... this.
2600 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
2601
2602 2017-11-06 Pedro Alves <palves@redhat.com>
2603
2604 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
2605 longer set flags twice in row.
2606
2607 2017-11-06 Pedro Alves <palves@redhat.com>
2608
2609 * Makefile.in (SER_HARDWIRE): Update comment.
2610 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
2611 * common/gdb_termios.h: Delete file.
2612 * common/job-control.c: Include termios.h and unistd.h instead of
2613 gdb_termios.h.
2614 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
2615 check.
2616 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
2617 Remove sgtty code.
2618 * configure.ac: No longer check for termio.h and sgtty.h.
2619 * configure: Regenerate.
2620 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
2621 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
2622 Replace PROCESS_GROUP_TYPE references with pid_t references
2623 throughout.
2624 (gdb_getpgrp): Delete.
2625 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
2626 (child_terminal_inferior): Remove comment. Remove sgtty code.
2627 (child_terminal_ours_1): Use tcgetpgrp directly instead of
2628 gdb_getpgrp. Use serial_set_tty_state instead aof
2629 serial_noflush_set_tty_state. Remove sgtty code.
2630 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
2631 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
2632 (inferior_process_group): Now returns pid_t.
2633 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
2634 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
2635 * ser-event.c (serial_event_ops): Update.
2636 * ser-go32.c (dos_noflush_set_tty_state): Delete.
2637 (dos_ops): Update.
2638 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
2639 * ser-pipe.c (pipe_ops): Update.
2640 * ser-tcp.c (tcp_ops): Update.
2641 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
2642 HAVE_TERMIOS checks.
2643 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
2644 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
2645 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
2646 assume termios.
2647 (hardwire_noflush_set_tty_state): Delete.
2648 (hardwire_print_tty_state, hardwire_drain_output)
2649 (hardwire_flush_output, hardwire_flush_input)
2650 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
2651 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
2652 code, and assume termios.
2653 (hardwire_ops): Update.
2654 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
2655 * serial.c (serial_noflush_set_tty_state): Delete.
2656 * serial.h (serial_noflush_set_tty_state): Delete.
2657 (serial_ops::noflush_set_tty_state): Delete.
2658
2659 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2660
2661 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
2662 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
2663 (COMMON_OBS): Remove doublest.o and dfp.o.
2664 Do not build target-float.c (instead of doublest.c)
2665 with -Wformat-nonliteral.
2666
2667 * doublest.c: Remove file.
2668 * doublest.h: Remove file.
2669 * dfp.c: Remove file.
2670 * dfp.h: Remove file.
2671
2672 * target-float.c: Do not include "doublest.h" and "dfp.h".
2673 (DOUBLEST): Move here from doublest.h.
2674 (enum float_kind): Likewise.
2675 (FLOATFORMAT_CHAR_BIT): Likewise.
2676 (FLOATFORMAT_LARGEST_BYTES): Likewise.
2677 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
2678 (floatformat_precision): Likewise.
2679 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
2680 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
2681 Likewise.
2682 (host_float_format, host_double_format, host_long_double_format):
2683 Likewise.
2684 (floatformat_to_string, floatformat_from_string): Likewise.
2685 (floatformat_to_doublest): Likewise. Also, inline the original
2686 convert_floatformat_to_doublest.
2687 (floatformat_from_doublest): Likewise. Also, inline the original
2688 convert_floatformat_from_doublest.
2689
2690 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
2691 (MAX_DECIMAL_STRING): Move here from dfp.c.
2692 (match_endianness): Likewise.
2693 (set_decnumber_context, decimal_check_errors): Likewise.
2694 (decimal_from_number, decimal_to_number): Likewise.
2695 (decimal_to_string, decimal_from_string): Likewise. Make static.
2696 (decimal_from_longest, decimal_from_ulongest): Likewise.
2697 (decimal_to_longest): Likewise.
2698 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
2699 (decimal_convert): Likewise.
2700
2701 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2702
2703 * doublest.c: Do not include "gdbtypes.h".
2704 (extract_typed_floating): Remove.
2705 (store_typed_floating): Remove.
2706 (convert_typed_floating): Remove.
2707 * doublest.h (struct type): Remove.
2708 (DOUBLEST_PRINT_FORMAT): Remove.
2709 (DOUBLEST_SCAN_FORMAT): Remove.
2710 (extract_typed_floating): Remove.
2711 (store_typed_floating): Remove.
2712 (convert_typed_floating): Remove.
2713
2714 * dfp.c (decimal_from_doublest): Remove.
2715 (decimal_to_doublest): Remove.
2716 * dfp.h: Do not include "doublest.h".
2717 (decimal_from_doublest): Remove.
2718 (decimal_to_doublest): Remove.
2719
2720 * value.c: Do not include "doublest.h" and "dfp.h".
2721 (value_as_double): Remove.
2722 (unpack_double): Remove.
2723 (value_from_double): Remove.
2724 (value_from_decfloat): Remove.
2725 * value.h: Do not include "doublest.h".
2726 (value_as_double): Remove.
2727 (unpack_double): Remove.
2728 (value_from_double): Remove.
2729 (value_from_decfloat): Remove.
2730
2731 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2732
2733 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
2734 (i386_extract_return_value): Use target_float_convert.
2735 (i386_store_return_value): Likewise.
2736 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
2737 (i387_value_to_register): Likewise.
2738 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
2739 (ia64_register_to_value): Use target_float_convert.
2740 (ia64_value_to_register): Likewise.
2741 (ia64_extract_return_value): Likewise.
2742 (ia64_store_return_value): Likewise.
2743 (ia64_push_dummy_call): Likewise.
2744 * m68k-tdep.c: Include "target-float.h".
2745 (m68k_register_to_value): Use target_float_convert.
2746 (m68k_value_to_register): Likewise.
2747 (m68k_svr4_extract_return_value): Likewise.
2748 (m68k_svr4_store_return_value): Likewise.
2749 * ppc-sysv-tdep.c: Include "target-float.h".
2750 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
2751 (do_ppc_sysv_return_value): Likewise.
2752 (ppc64_sysv_abi_push_freg): Likewise.
2753 (ppc64_sysv_abi_return_value_base): Likewise.
2754 * rs6000-aix-tdep.c: Include "target-float.h".
2755 (rs6000_push_dummy_call): Use target_float_convert.
2756 (rs6000_return_value): Likewise.
2757 * rs6000-lynx178-tdep.c: Include "target-float.h".
2758 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
2759 (rs6000_lynx178_return_value): Likewise.
2760 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
2761 (rs6000_register_to_value): Use target_float_convert.
2762 (rs6000_value_to_register): Likewise.
2763 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
2764 (arm_extract_return_value): Use target_float_convert.
2765 (arm_store_return_value): Likewise.
2766 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
2767 (sh_register_convert_to_virtual): Use target_float_convert.
2768 (sh_register_convert_to_raw): Likewise.
2769 * sh64-tdep.c: Include "target-float.h".
2770 (sh64_extract_return_value): Use target_float_convert.
2771 (sh64_register_convert_to_virtual): Likewise.
2772 (sh64_register_convert_to_raw): Likewise. Fix argument types.
2773
2774 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2775
2776 * target-float.c (floatformat_to_host_double): New function.
2777 (floatformat_from_host_double): Likewise.
2778 (target_float_to_host_double): Likewise.
2779 (target_float_from_host_double): Likewise.
2780 * target-float.h (target_float_to_host_double): Add prototype.
2781 (target_float_from_host_double): Likewise.
2782
2783 * guile/scm-value.c: Include "target-float.h".
2784 (gdbscm_value_to_real): Use target_float_to_host_double.
2785 Handle integer source values via value_as_long.
2786 * guile/scm-math.c: Include "target-float.h". Do not include
2787 "doublest.h", "dfp.h", and "expression.h".
2788 (vlscm_convert_typed_number): Use target_float_from_host_double.
2789 (vlscm_convert_number): Likewise.
2790
2791 * python/py-value.c (valpy_float): Use target_float_to_host_double.
2792 (convert_value_from_python): Use target_float_from_host_double.
2793
2794 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2795
2796 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
2797 (cast_from_fixed): Likewise.
2798 (ada_scaling_type): New function.
2799 (ada_delta): Return value instead of DOUBLEST. Perform target
2800 arithmetic instead of host arithmetic.
2801 (scaling_factor): Rename to ...
2802 (ada_scaling_factor) ... this. Make non-static. Return value instead
2803 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
2804 (ada_fixed_to_float): Remove.
2805 (ada_float_to_fixed): Remove.
2806 * ada-lang.h (ada_fixed_to_float): Remove.
2807 (ada_float_to_fixed): Remove.
2808 (ada_delta): Return value instead of DOUBLEST.
2809 (ada_scaling_factor): Add prototype.
2810
2811 * ada-typeprint.c: Include "target-float.h".
2812 (print_fixed_point_type): Perform target arithmetic instead of
2813 host arithmetic.
2814 * ada-valprint.c: Include "target-float.h".
2815 (ada_val_print_num): Perform target arithmetic instead of
2816 host arithmetic for fixed-point types.
2817
2818 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2819
2820 * target-float.c: Include <math.h>.
2821 (floatformat_binop): New function.
2822 (floatformat_compare): Likewise.
2823 (target_float_binop): Likewise.
2824 (target_float_compare): Likewise.
2825 * target-float.h: Include "expression.h".
2826 (target_float_binop): Add prototype.
2827 (target_float_compare): Likewise.
2828
2829 * valarith.c: Do not include "doublest.h" and "dfp.h".
2830 Include "common/byte-vector.h".
2831 (value_args_as_decimal): Remove, replace by ...
2832 (value_args_as_target_float): ... this function. Handle both
2833 binary and decimal target floating-point formats.
2834 (scalar_binop): Handle both binary and decimal FP using
2835 value_args_as_target_float and target_float_binop.
2836 (value_equal): Handle both binary and decimal FP using
2837 value_args_as_target_float and target_float_compare.
2838 (value_less): Likewise.
2839 (value_pos): Handle all scalar types as simple copy.
2840 (value_neg): Handle all scalar types via BINOP_SUB from 0.
2841 * dfp.c (decimal_binop): Throw error instead of internal_error
2842 when called with an unsupported operation code.
2843
2844 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2845
2846 * target-float.c (target_float_to_string): New function.
2847 (target_float_from_string): New function.
2848 * target-float.h (target_float_to_string): Add prototype.
2849 (target_float_from_string): Add prototype.
2850
2851 * valprint.c: Include "target-float.h". Do not include
2852 "doublest.h" and "dfp.h".
2853 (print_floating): Use target_float_to_string.
2854 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
2855 (printf_floating): Use target_float_to_string.
2856 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
2857 (print_i387_value): Use target_float_to_string.
2858 * mips-tdep.c: Include "target-float.h".
2859 (mips_print_fp_register): Use target_float_to_string.
2860 * sh64-tdep.c: Include "target-float.h".
2861 (sh64_do_fp_register): Use target_float_to_string.
2862
2863 * parse.c: Include "target-float.h". Do not include
2864 "doublest.h" and "dfp.h".
2865 (parse_float): Use target_float_from_string.
2866 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
2867 (define_symbol): Use target_float_from_string.
2868 * gdbarch-selftests.c: Include "target-float.h".
2869 (register_to_value_test): Use target_float_from_string.
2870
2871 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2872
2873 * Makefile.c (SFILES): Add target-float.c.
2874 (HFILES_NO_SRCDIR): Add target-float.h.
2875 (COMMON_OBS): Add target-float.o.
2876 * target-float.h: New file.
2877 * target-float.c: New file.
2878
2879 * doublest.c (floatformat_classify): Fix detection of float_zero.
2880
2881 * gdbtypes.c (is_floating_type): New function.
2882 * gdbtypes.h (is_floating_type): Add prototype.
2883
2884 * value.c: Do not include "floatformat.h".
2885 (unpack_double): Use target_float_is_valid.
2886 (is_floating_value): New function.
2887 * value.h (is_floating_value): Add prototype-
2888
2889 * valarith.c: Include "target-float.h".
2890 (value_logical_not): Use target_float_is_zero.
2891
2892 * python/py-value.c: Include "target-float.h".
2893 (valpy_nonzero): Use target_float_is_zero.
2894
2895 2017-11-04 Tom Tromey <tom@tromey.com>
2896
2897 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
2898
2899 2017-11-04 Tom Tromey <tom@tromey.com>
2900
2901 * breakpoint.c (set_momentary_breakpoint): Return
2902 breakpoint_up.
2903 (until_break_command): Update.
2904 (new_until_break_fsm): Change argument types to
2905 breakpoint_up.
2906 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2907 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
2908 Remove.
2909 * infcmd.c (finish_forward): Update.
2910 * breakpoint.h (set_momentary_breakpoint)
2911 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2912 (make_cleanup_delete_breakpoint): Remove.
2913 (struct breakpoint_deleter): New.
2914 (breakpoint_up): New typedef.
2915 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
2916 (insert_exception_resume_breakpoint): Update.
2917 (insert_exception_resume_from_probe): Update.
2918 (insert_longjmp_resume_breakpoint): Update.
2919 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
2920 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
2921 * infcall.c (call_function_by_hand_dummy): Update
2922
2923 2017-11-04 Tom Tromey <tom@tromey.com>
2924
2925 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
2926
2927 2017-11-04 Tom Tromey <tom@tromey.com>
2928
2929 * linux-tdep.c (linux_core_info_proc_mappings): Use
2930 gdb::def_vector.
2931 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
2932 "size" argument.
2933 (linux_corefile_thread): Update.
2934 (linux_make_corefile_notes): Remove unused variable.
2935
2936 2017-11-04 Tom Tromey <tom@tromey.com>
2937
2938 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
2939 gdb::byte_vector.
2940
2941 2017-11-04 Tom Tromey <tom@tromey.com>
2942
2943 * objfiles.c (do_free_objfile_cleanup): Remove.
2944 * compile/compile-object-load.c (compile_object_load): Update.
2945 * objfiles.h (make_cleanup_free_objfile): Remove.
2946
2947 2017-11-04 Tom Tromey <tom@tromey.com>
2948
2949 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
2950 (adi_read_versions): Change "tags" to "gdb_byte *".
2951 (adi_print_versions): Likewise.
2952
2953 2017-11-04 Tom Tromey <tom@tromey.com>
2954
2955 * breakpoint.c
2956 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
2957 from start_rbreak_breakpoints.
2958 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
2959 * breakpoint.h (class scoped_rbreak_breakpoints): New.
2960 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
2961 * symtab.c (do_end_rbreak_breakpoints): Remove.
2962 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
2963
2964 2017-11-04 Tom Tromey <tom@tromey.com>
2965
2966 * cp-namespace.c (reset_directive_searched): Remove.
2967 (cp_lookup_symbol_via_imports): Use scoped_restore.
2968 * cp-support.c (reset_directive_searched): Remove.
2969 (make_symbol_overload_list_using): Use scoped_restore.
2970 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
2971 (reset_directive_searched): Remove.
2972
2973 2017-11-04 Tom Tromey <tom@tromey.com>
2974
2975 * symfile.c (find_separate_debug_file_by_debuglink): Use
2976 unique_xmalloc_ptr.
2977
2978 2017-11-04 Tom Tromey <tom@tromey.com>
2979
2980 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
2981 type of "info".
2982 (compute_stack_depth): Likewise.
2983 (do_compile_dwarf_expr_to_c): Use std::vector.
2984
2985 2017-11-04 Tom Tromey <tom@tromey.com>
2986
2987 * compile/compile-object-load.c (link_callbacks_einfo): Use
2988 std::string.
2989
2990 2017-11-04 Tom Tromey <tom@tromey.com>
2991
2992 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2993 Use scoped_free_pendings.
2994 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
2995 scoped_free_pendings.
2996 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
2997 (xcoff_initial_scan): Likewise.
2998 * buildsym.c (reset_symtab_globals): Update comment.
2999 (scoped_free_pendings): Rename from really_free_pendings.
3000 (prepare_for_building): Update comment.
3001 (buildsym_init): Likewise.
3002 * buildsym.h (class scoped_free_pendings): New class.
3003 (really_free_pendings): Don't declare.
3004
3005 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3006
3007 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3008 output when converting a zero value to a special byteorder format.
3009
3010 2017-11-02 Yao Qi <yao.qi@linaro.org>
3011
3012 * frame.c (do_frame_register_read): Remove aspace.
3013 * jit.c (jit_frame_sniffer): Likwise.
3014 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3015 * regcache.c (regcache::regcache): Pass nullptr.
3016 (regcache_print): Caller updated.
3017 * regcache.h (regcache::regcache): Remove one constructor
3018 parameter aspace.
3019
3020 2017-11-02 Yao Qi <yao.qi@linaro.org>
3021
3022 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3023
3024 2017-11-02 Yao Qi <yao.qi@linaro.org>
3025
3026 * breakpoint.c (insert_single_step_breakpoints): Update.
3027 * frame.c (struct frame_info) <aspace>: Add const.
3028 (frame_save_as_regcache): Add const.
3029 (get_frame_address_space): Return const address_space *.
3030 * frame.h (get_frame_address_space): Update declaration.
3031 * infrun.c (struct step_over_info) <aspace>: Add const.
3032 (set_step_over_info): Make aspace const.
3033 (displaced_step_prepare_throw): Change variable const.
3034 (resume): Likewise.
3035 (proceed): Likewise.
3036 (adjust_pc_after_break): Likewise.
3037 (save_waitstatus): Likewise.
3038 (handle_signal_stop): Likewise.
3039 (keep_going_pass_signal): Likewise.
3040 * jit.c (jit_frame_sniffer): Add const.
3041 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3042 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3043 * record-full.c (record_full_wait_1): Likewise.
3044 * regcache.c (regcache::regcache): Change parameter to const.
3045 * regcache.h (regcache::regcache): Likewise.
3046 (regcache::aspace): Return const address_space *.
3047 (regcache) <m_aspace>: Add const.
3048
3049 2017-11-02 Yao Qi <yao.qi@linaro.org>
3050
3051 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3052 * frame.c (create_sentinel_frame): Likewise.
3053 * infrun.c (displaced_step_prepare_throw): Likewise.
3054 (resume): Likewise.
3055 (thread_still_needs_step_over_bp): Likewise.
3056 (proceed): Likewise.
3057 (do_target_wait): Likewise.
3058 (adjust_pc_after_break): Likewise.
3059 (handle_syscall_event): Likewise.
3060 (save_waitstatus): Likewise.
3061 (handle_inferior_event_1): Likewise.
3062 (handle_signal_stop): Likewise.
3063 (keep_going_pass_signal): Likewise.
3064 * linux-nat.c (status_callback): Likewise.
3065 (save_stop_reason): Likewise.
3066 (resume_stopped_resumed_lwps): Likewise.
3067 * record-full.c (record_full_exec_insn): Likewise.
3068 (record_full_wait_1): Likewise.
3069 * regcache.c (get_regcache_aspace): Remove.
3070 * regcache.h (get_regcache_aspace): Remove.
3071
3072 2017-11-02 Yao Qi <yao.qi@linaro.org>
3073
3074 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3075 (init_regcache_descr): Use gdbarch_num_regs.
3076 (regcache::regcache): Likewise.
3077 (regcache::get_register_status): Likewise.
3078 (regcache::assert_raw_regnum): Likewise.
3079 (regcache::cooked_read): Likewise.
3080 (regcache::cooked_read_value): Likewise.
3081 (regcache::cooked_write): Likewise.
3082 (regcache::dump): Likewise.
3083 (regcache::num_raw_registers): New method.
3084 * regcache.h (class regcache) <num_raw_registers>: New.
3085
3086 2017-11-02 Yao Qi <yao.qi@linaro.org>
3087
3088 * regcache.c (regcache::assert_regnum): New method.
3089 (regcache::invalidate): Call assert_regnum.
3090 (regcache::raw_update): Likewise.
3091 (regcache::raw_write): Likewise.
3092 (regcache::raw_read_part): Likewise.
3093 (regcache::raw_write_part): Likewise.
3094 (regcache::raw_supply): Likewise.
3095 (regcache::raw_supply_integer): Likewise.
3096 (regcache::raw_supply_zeroed): Likewise.
3097 (regcache::raw_collect): Likewise.
3098 (regcache::raw_collect_integer): Likewise.
3099 * regcache.h (regcache::assert_regnum): Declare.
3100
3101 2017-11-02 Yao Qi <yao.qi@linaro.org>
3102
3103 * regcache.c (regcache::dump): Remove code.
3104
3105 2017-11-02 Yao Qi <yao.qi@linaro.org>
3106
3107 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3108 Remove.
3109 <sizeof_cooked_register_status>: Remove.
3110 (init_regcache_descr): Update.
3111 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3112 (regcache::save): Likewise.
3113 (regcache::dump): Likewise.
3114
3115 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3116
3117 * ft32-tdep.c (ft32_fetch_instruction): New function.
3118 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3119
3120 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3121
3122 * cli/cli-script.c (execute_control_command): Rename to ...
3123 (execute_control_command_1): ... this.
3124 (execute_control_command): New function.
3125
3126 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3127
3128 * tracepoint.c (tfind_command): Remove const_cast.
3129
3130 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3131
3132 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3133
3134 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3135
3136 * common/common-utils.h (in_inclusive_range): New function.
3137 * arm-tdep.c (arm_record_extension_space): Use
3138 in_inclusive_range.
3139 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3140 * cris-tdep.c (cris_spec_reg_applicable): Use
3141 in_inclusive_range.
3142
3143 2017-10-30 Pedro Alves <palves@redhat.com>
3144 Simon Marchi <simon.marchi@ericsson.com>
3145
3146 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3147 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3148
3149 2017-10-30 Pedro Alves <palves@redhat.com>
3150
3151 * common/common-utils.c (string_appendf, string_vappendf): New
3152 functions.
3153 * common/common-utils.h (string_appendf, string_vappendf): New
3154 declarations.
3155 * unittests/common-utils-selftests.c (string_appendf_func)
3156 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3157 (string_vappendf_tests): New functions.
3158 (_initialize_common_utils_selftests): Register "string_appendf" and
3159 "string_vappendf tests".
3160
3161 2017-10-30 Pedro Alves <palves@redhat.com>
3162
3163 * unittests/common-utils-selftests.c (format_func): New typedef.
3164 (string_printf_tests, string_vprintf_tests): Tests factored out
3165 and merged to ...
3166 (test_format_func): ... this new function.
3167 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3168 test_format_func.
3169
3170 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3171
3172 * darwin-nat.c: Remove include of gdb.h.
3173
3174 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3175
3176 * xtensa-xtregs.c: Fix formatting issues.
3177
3178 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3179
3180 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3181
3182 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3183
3184 PR python/21213
3185 * python/py-infthread.c (thpy_get_inferior): Increment reference
3186 of inferior before returning it.
3187
3188 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3189
3190 * unittests/common-utils-selftests.c (format): Add
3191 ATTRIBUTE_PRINTF.
3192
3193 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3194
3195 * xml-syscall.c (struct syscall_desc): Add constructor.
3196 <name>: Change type to std::string.
3197 (syscall_desc_up): New typedef.
3198 (syscall_desc_p): Remove typeder.
3199 (DEF_VEC_P(syscall_desc_p)): Remove.
3200 (struct syscall_group_desc): Add constructor.
3201 <name>: Change type to std::string.
3202 <syscalls>: Change type to std::vector.
3203 (syscall_group_desc_up): New typedef.
3204 (syscall_group_desc_p): Remove typedef.
3205 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3206 (struct syscalls_info) <syscalls>: Change type to std::vector of
3207 unique_ptr.
3208 <groups>: Likewise.
3209 <my_gdb_datadir>: Change type to std::string.
3210 (syscalls_info_up): New typedef.
3211 (allocate_syscalls_info): Remove.
3212 (syscalls_info_free_syscalls_desc): Remove.
3213 (syscalls_info_free_syscall_group_desc): Remove.
3214 (free_syscalls_info): Remove.
3215 (make_cleanup_free_syscalls_info): Remove.
3216 (syscall_group_create_syscall_group_desc): Adjust.
3217 (syscall_group_add_syscall): Adjust.
3218 (syscall_create_syscall_desc): Adjust.
3219 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3220 (init_syscalls_info): Adjust.
3221 (syscall_group_get_group_by_name): Adjust.
3222 (xml_get_syscall_number): Adjust.
3223 (xml_get_syscall_name): Adjust.
3224 (xml_list_of_syscalls): Adjust.
3225 (xml_list_syscalls_by_group): Adjust.
3226 (xml_list_of_groups): Adjust.
3227
3228 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3229
3230 * probe.h: Don't include gdb_vecs.h.
3231 (DEF_VEC_P (probe_p)): Remove.
3232 (find_probes_in_objfile): Return an std::vector.
3233 * probe.c (find_probes_in_objfile): Likewise.
3234 * breakpoint.c (breakpoint_objfile_data)
3235 <longjmp_probes>: Change type to std::vector.
3236 <exception_probes>: Likewise.
3237 (free_breakpoint_probes): Don't manually free vectors.
3238 (create_longjmp_master_breakpoint): Adjust.
3239 (create_exception_master_breakpoint): Adjust.
3240 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3241 parameter type, adjust.
3242 (svr4_create_solib_event_breakpoints): Adjust.
3243
3244 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3245
3246 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3247 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3248 with new.
3249 (free_breakpoint_probes): Rename to ...
3250 (free_breakpoint_objfile_data): ... this, and call delete on
3251 bp_objfile_data..
3252
3253 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3254
3255 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3256 (loaded_script_ptr): Remove typedef.
3257 (DEF_VEC_P (loaded_script_ptr)): Remove.
3258 (struct collect_matching_scripts_data): Add constructor.
3259 <scripts_p>: Change type to (pointer to) std::vector.
3260 (collect_matching_scripts_data): Adjust.
3261 (sort_scripts_by_name): Make suitable for std::sort.
3262 (print_scripts): Don't sort vector, adjust to std::vector.
3263 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3264
3265 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3266
3267 * symfile.c (filename_language): Make struct, not typedef. Add
3268 constructor.
3269 <ext>: Change type to std::string.
3270 (DEF_VEC_O (filename_language)): Remove.
3271 (filename_language_table): Change type to std::vector.
3272 (add_filename_language): Adjust.
3273 (set_ext_lang_command): Adjust.
3274 (info_ext_lang_command): Adjust.
3275 (deduce_language_from_filename): Adjust.
3276 (class scoped_restore_filename_language_table): Remove.
3277 (test_filename_language): Use scoped_restore.
3278 (test_set_ext_lang_command): Use scoped_restore, adjust to
3279 std::vector change.
3280
3281 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3282
3283 * symfile.c: Include selftest.h.
3284 (class scoped_restore_filename_language_table): New.
3285 (test_filename_language): New test.
3286 (test_set_ext_lang_command): New test.
3287 (_initialize_symfile): Register tests.
3288
3289 2017-10-27 Keith Seitz <keiths@redhat.com>
3290
3291 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3292 in the bp_location, falling back to find_pc_sect_function when
3293 needed.
3294 (add_location_to_breakpoint): Save sal->symbol.
3295 * breakpoint.h (struct bp_location) <symbol>: New field.
3296 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
3297 * symtab.h (struct symtab_and_line) <symbol>: New field.
3298
3299 2017-10-26 Patrick Frants <osscontribute@gmail.com>
3300
3301 PR gdb/13669
3302 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
3303 to rewind obstack.
3304
3305 2017-10-26 Pedro Alves <palves@redhat.com>
3306
3307 * remote.c (remote_async_terminal_ours_p): Delete.
3308 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
3309 Remove references to 'remote_async_terminal_ours_p'.
3310
3311 2017-10-26 Yao Qi <yao.qi@linaro.org>
3312
3313 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
3314
3315 2017-10-26 Yao Qi <yao.qi@linaro.org>
3316
3317 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
3318 aspace const.
3319 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
3320 Likewise.
3321 * breakpoint.c (bpstat_check_location): Remove cast.
3322 (breakpoint_hit_catch_fork): Make aspce const.
3323 (breakpoint_hit_catch_solib): Likewise.
3324 (breakpoint_hit_catch_exec): Likewise.
3325 (breakpoint_hit_ranged_breakpoint): Likewise.
3326 (breakpoint_hit_watchpoint): Likewise.
3327 (base_breakpoint_breakpoint_hit): Likewise.
3328 (bkpt_breakpoint_hit): Likewise.
3329 (dprintf_breakpoint_hit): Likewise.
3330 (tracepoint_breakpoint_hit): Likewise.
3331 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
3332
3333 2017-10-26 Yao Qi <yao.qi@linaro.org>
3334
3335 * breakpoint.c (breakpoint_location_address_match): Change
3336 "struct address_space *" to "const address_space".
3337 (breakpoint_location_address_range_overlap): Likewise.
3338 (breakpoint_here_p): Likewise.
3339 (breakpoint_in_range_p): Likewise.
3340 (moribund_breakpoint_here_p): Likewise.
3341 (bp_location_inserted_here_p): Likewise.
3342 (software_breakpoint_inserted_here_p): Likewise.
3343 (hardware_breakpoint_inserted_here_p): Likewise.
3344 (hardware_watchpoint_inserted_in_range): Likewise.
3345 (bpstat_check_location): Likewise.
3346 (bpstat_stop_status): Likewise.
3347 (breakpoint_address_match): Likewise.
3348 (breakpoint_address_match_range): Likewise.
3349 (breakpoint_location_address_match): Likewise.
3350 (breakpoint_location_address_range_overlap): Likewise.
3351 (insert_single_step_breakpoint): Likewise.
3352 (breakpoint_has_location_inserted_here): Likewise.
3353 (single_step_breakpoint_inserted_here_p): Likewise.
3354 (pc_at_non_inline_function): Likewise.
3355 * breakpoint.h (bpstat_stop_status): Update declaration.
3356 (breakpoint_here_p): Likewise.
3357 (breakpoint_in_range_p): Likewise.
3358 (moribund_breakpoint_here_p): Likewise.
3359 (breakpoint_inserted_here_p): Likewise.
3360 (software_breakpoint_inserted_here_p): Likewise.
3361 (hardware_breakpoint_inserted_here_p): Likewise.
3362 (breakpoint_has_location_inserted_here): Likewise.
3363 (single_step_breakpoint_inserted_here_p): Likewise.
3364 (hardware_watchpoint_inserted_in_range): Likewise.
3365 (breakpoint_address_match): Likewise.
3366 (insert_single_step_breakpoint): Likewise.
3367 (pc_at_non_inline_function): Likewise.
3368 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
3369 * record.c (record_check_stopped_by_breakpoint): Likewise.
3370 * record.h (record_check_stopped_by_breakpoint): Likewise.
3371 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
3372
3373 2017-10-25 Yao Qi <yao.qi@linaro.org>
3374
3375 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
3376 regcache->arch () instead get_regcache_arch.
3377 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
3378 Likewise.
3379 (aarch64_fbsd_store_inferior_registers): Likewise.
3380 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
3381 (store_gregs_to_thread): Likewise.
3382 (fetch_fpregs_from_thread): Likewise.
3383 (store_fpregs_to_thread): Likewise.
3384 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
3385 (aarch64_store_return_value): Likewise.
3386 (aarch64_software_single_step): Likewise.
3387 * aix-thread.c (aix_thread_wait): Likewise.
3388 (supply_reg32): Likewise.
3389 (supply_sprs64): Likewise.
3390 (supply_sprs32): Likewise.
3391 (fill_gprs64): Likewise.
3392 (fill_gprs32): Likewise.
3393 (fill_sprs64): Likewise.
3394 (fill_sprs32): Likewise.
3395 (store_regs_user_thread): Likewise.
3396 (store_regs_kernel_thread): Likewise.
3397 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3398 (alphabsd_store_inferior_registers): Likewise.
3399 * alpha-tdep.c (alpha_extract_return_value): Likewise.
3400 (alpha_store_return_value): Likewise.
3401 (alpha_deal_with_atomic_sequence): Likewise.
3402 (alpha_next_pc): Likewise.
3403 (alpha_software_single_step): Likewise.
3404 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3405 (amd64bsd_store_inferior_registers): Likewise.
3406 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
3407 Likewise.
3408 (amd64_linux_store_inferior_registers): Likewise.
3409 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
3410 (amd64_collect_native_gregset): Likewise.
3411 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
3412 (amd64obsd_collect_uthread): Likewise.
3413 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
3414 (amd64_collect_fpregset): Likewise.
3415 (amd64_supply_fxsave): Likewise.
3416 (amd64_supply_xsave): Likewise.
3417 (amd64_collect_fxsave): Likewise.
3418 (amd64_collect_xsave): Likewise.
3419 * arc-tdep.c (arc_write_pc): Likewise.
3420 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
3421 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
3422 (arm_fbsd_store_inferior_registers): Likewise.
3423 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
3424 (store_vfp_regs): Likewise.
3425 (arm_linux_fetch_inferior_registers): Likewise.
3426 (arm_linux_store_inferior_registers): Likewise.
3427 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3428 (arm_linux_sigreturn_next_pc): Likewise.
3429 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3430 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
3431 (fetch_register): Likewise.
3432 (store_register): Likewise.
3433 * arm-tdep.c (arm_is_thumb): Likewise.
3434 (displaced_in_arm_mode): Likewise.
3435 (bx_write_pc): Likewise.
3436 (arm_get_next_pcs_addr_bits_remove): Likewise.
3437 (arm_software_single_step): Likewise.
3438 (arm_extract_return_value): Likewise.
3439 (arm_store_return_value): Likewise.
3440 (arm_write_pc): Likewise.
3441 * bfin-tdep.c (bfin_extract_return_value): Likewise.
3442 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3443 (bsd_uthread_store_registers): Likewise.
3444 * core-regset.c (fetch_core_registers): Likewise.
3445 * corelow.c (get_core_registers): Likewise.
3446 * cris-tdep.c (cris_store_return_value): Likewise.
3447 (cris_extract_return_value): Likewise.
3448 (find_step_target): Likewise.
3449 (find_step_target): Likewise.
3450 (cris_software_single_step): Likewise.
3451 * ctf.c (ctf_fetch_registers): Likewise.
3452 * darwin-nat.c (cancel_breakpoint): Likewise.
3453 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
3454 * frv-tdep.c (frv_extract_return_value): Likewise.
3455 * ft32-tdep.c (ft32_store_return_value): Likewise.
3456 (ft32_extract_return_value): Likewise.
3457 * go32-nat.c (fetch_register): Likewise.
3458 (go32_fetch_registers): Likewise.
3459 (go32_store_registers): Likewise.
3460 (store_register): Likewise.
3461 * h8300-tdep.c (h8300_extract_return_value): Likewise.
3462 (h8300_store_return_value): Likewise.
3463 * hppa-linux-nat.c (fetch_register): Likewise.
3464 (store_register): Likewise.
3465 (hppa_linux_fetch_inferior_registers): Likewise.
3466 (hppa_linux_store_inferior_registers): Likewise.
3467 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
3468 (i386_darwin_store_inferior_registers): Likewise.
3469 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
3470 (gnu_store_registers): Likewise.
3471 * i386-linux-nat.c (fetch_register): Likewise.
3472 (store_register): Likewise.
3473 (supply_gregset): Likewise.
3474 (fill_gregset): Likewise.
3475 (i386_linux_fetch_inferior_registers): Likewise.
3476 (i386_linux_store_inferior_registers): Likewise.
3477 (i386_linux_resume): Likewise.
3478 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
3479 Likewise.
3480 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
3481 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
3482 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
3483 (i386obsd_collect_uthread): Likewise.
3484 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3485 (i386_supply_gregset): Likewise.
3486 (i386_collect_gregset): Likewise.
3487 (i386_supply_fpregset): Likewise.
3488 (i386_collect_fpregset): Likewise.
3489 (i386_mpx_bd_base): Likewise.
3490 * i386-v4-nat.c (supply_fpregset): Likewise.
3491 (fill_fpregset): Likewise.
3492 * i387-tdep.c (i387_supply_fsave): Likewise.
3493 (i387_collect_fsave): Likewise.
3494 (i387_supply_fxsave): Likewise.
3495 (i387_collect_fxsave): Likewise.
3496 (i387_supply_xsave): Likewise.
3497 (i387_collect_xsave): Likewise.
3498 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
3499 (ia64_linux_store_registers): Likewise.
3500 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
3501 (ia64_extract_return_value): Likewise.
3502 (ia64_store_return_value): Likewise.
3503 (find_func_descr): Likewise.
3504 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3505 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
3506 (inf_ptrace_store_registers): Likewise.
3507 * infrun.c (use_displaced_stepping): Likewise.
3508 (displaced_step_prepare_throw): Likewise.
3509 (resume): Likewise.
3510 (proceed): Likewise.
3511 (do_target_wait): Likewise.
3512 (adjust_pc_after_break): Likewise.
3513 (handle_inferior_event_1): Likewise.
3514 (handle_signal_stop): Likewise.
3515 (save_infcall_suspend_state): Likewise.
3516 (restore_infcall_suspend_state): Likewise.
3517 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
3518 * jit.c (jit_frame_prev_register): Likewise.
3519 * linux-nat.c (save_stop_reason): Likewise.
3520 (linux_nat_wait_1): Likewise.
3521 (resume_stopped_resumed_lwps): Likewise.
3522 * linux-record.c (record_linux_sockaddr): Likewise.
3523 (record_linux_msghdr): Likewise.
3524 (record_linux_system_call): Likewise.
3525 * linux-tdep.c (linux_collect_thread_registers): Likewise.
3526 * lm32-tdep.c (lm32_extract_return_value): Likewise.
3527 (lm32_store_return_value): Likewise.
3528 * m32c-tdep.c (m32c_read_flg): Likewise.
3529 (m32c_pseudo_register_read): Likewise.
3530 (m32c_pseudo_register_write): Likewise.
3531 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
3532 (m32r_linux_collect_gregset): Likewise.
3533 * m32r-tdep.c (m32r_store_return_value): Likewise.
3534 (m32r_extract_return_value): Likewise.
3535 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3536 (m68kbsd_collect_fpregset): Likewise.
3537 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3538 * m68k-linux-nat.c (fetch_register): Likewise.
3539 (old_fetch_inferior_registers): Likewise.
3540 (old_store_inferior_registers): Likewise.
3541 (store_regs): Likewise.
3542 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
3543 (m68k_svr4_store_return_value): Likewise.
3544 * m88k-tdep.c (m88k_store_arguments): Likewise.
3545 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
3546 (mi_cmd_data_write_register_values): Likewise.
3547 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
3548 (mips_fbsd_store_inferior_registers): Likewise.
3549 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
3550 (mips_fbsd_supply_gregs): Likewise.
3551 (mips_fbsd_collect_fpregs): Likewise.
3552 (mips_fbsd_collect_gregs): Likewise.
3553 (mips_fbsd_supply_fpregset): Likewise.
3554 (mips_fbsd_collect_fpregset): Likewise.
3555 (mips_fbsd_supply_gregset): Likewise.
3556 (mips_fbsd_collect_gregset): Likewise.
3557 * mips-linux-nat.c (supply_gregset): Likewise.
3558 (fill_gregset): Likewise.
3559 (supply_fpregset): Likewise.
3560 (fill_fpregset): Likewise.
3561 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
3562 (mips_fill_gregset): Likewise.
3563 (mips_supply_fpregset): Likewise.
3564 (mips_fill_fpregset): Likewise.
3565 (mips64_supply_gregset): Likewise.
3566 (micromips_linux_sigframe_validate): Likewise.
3567 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3568 (mipsnbsd_fetch_inferior_registers): Likewise.
3569 (mipsnbsd_store_inferior_registers): Likewise.
3570 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
3571 (mipsnbsd_supply_gregset): Likewise.
3572 (mipsnbsd_iterate_over_regset_sections): Likewise.
3573 (mipsnbsd_supply_reg): Likewise.
3574 (mipsnbsd_supply_fpreg): Likewise.
3575 * mips-tdep.c (mips_in_frame_stub): Likewise.
3576 (mips_dummy_id): Likewise.
3577 (is_octeon_bbit_op): Likewise.
3578 (micromips_bc1_pc): Likewise.
3579 (extended_mips16_next_pc): Likewise.
3580 (mips16_next_pc): Likewise.
3581 (deal_with_atomic_sequence): Likewise.
3582 * moxie-tdep.c (moxie_process_readu): Likewise.
3583 * nios2-tdep.c (nios2_get_next_pc): Likewise.
3584 * nto-procfs.c (procfs_store_registers): Likewise.
3585 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
3586 (ppcfbsd_store_inferior_registers): Likewise.
3587 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
3588 (fetch_altivec_register): Likewise.
3589 (get_spe_registers): Likewise.
3590 (fetch_spe_register): Likewise.
3591 (fetch_altivec_registers): Likewise.
3592 (fetch_all_gp_regs): Likewise.
3593 (fetch_all_fp_regs): Likewise.
3594 (store_vsx_register): Likewise.
3595 (store_altivec_register): Likewise.
3596 (set_spe_registers): Likewise.
3597 (store_spe_register): Likewise.
3598 (store_altivec_registers): Likewise.
3599 (store_all_gp_regs): Likewise.
3600 (store_all_fp_regs): Likewise.
3601 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
3602 (ppc_linux_collect_gregset): Likewise.
3603 (ppc_canonicalize_syscall): Likewise.
3604 (ppc_linux_record_signal): Likewise.
3605 (ppu2spu_prev_register): Likewise.
3606 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
3607 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
3608 (ppcobsd_store_registers): Likewise.
3609 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
3610 Likewise.
3611 (ppc_ravenscar_generic_store_registers): Likewise.
3612 * procfs.c (procfs_fetch_registers): Likewise.
3613 (procfs_store_registers): Likewise.
3614 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
3615 (ravenscar_store_registers): Likewise.
3616 (ravenscar_prepare_to_store): Likewise.
3617 * record-btrace.c (record_btrace_fetch_registers): Likewise.
3618 * record-full.c (record_full_wait_1): Likewise.
3619 (record_full_registers_change): Likewise.
3620 (record_full_store_registers): Likewise.
3621 (record_full_core_fetch_registers): Likewise.
3622 (record_full_save): Likewise.
3623 (record_full_goto_insn): Likewise.
3624 * regcache.c (regcache_register_size): Likewise.
3625 (get_regcache_arch): Remove.
3626 (regcache_read_pc): Likewise.
3627 * regcache.h (get_regcache_arch): Remove.
3628 * remote-sim.c (gdbsim_fetch_register): Likewise.
3629 (gdbsim_store_register): Likewise.
3630 * remote.c (fetch_register_using_p): Likewise.
3631 (send_g_packet): Likewise.
3632 (remote_prepare_to_store): Likewise.
3633 (store_registers_using_G): Likewise.
3634 * reverse.c (save_bookmark_command): Likewise.
3635 (goto_bookmark_command): Likewise.
3636 * rs6000-aix-tdep.c (branch_dest): Likewise.
3637 * rs6000-nat.c (rs6000_ptrace64): Likewise.
3638 (fetch_register): Likewise.
3639 * rs6000-tdep.c (ppc_supply_reg): Likewise.
3640 (ppc_collect_reg): Likewise.
3641 (ppc_collect_gregset): Likewise.
3642 (ppc_collect_fpregset): Likewise.
3643 (ppc_collect_vsxregset): Likewise.
3644 (ppc_collect_vrregset): Likewise.
3645 (ppc_displaced_step_hw_singlestep): Likewise.
3646 (rs6000_pseudo_register_read): Likewise.
3647 (rs6000_pseudo_register_write): Likewise.
3648 * s390-linux-nat.c (supply_gregset): Likewise.
3649 (fill_gregset): Likewise.
3650 (s390_linux_fetch_inferior_registers): Likewise.
3651 * s390-linux-tdep.c (s390_write_pc): Likewise.
3652 (s390_software_single_step): Likewise.
3653 (s390_all_but_pc_registers_record): Likewise.
3654 (s390_linux_syscall_record): Likewise.
3655 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
3656 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3657 (shnbsd_store_inferior_registers): Likewise.
3658 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
3659 (sh_extract_return_value_fpu): Likewise.
3660 (sh_store_return_value_nofpu): Likewise.
3661 (sh_corefile_supply_regset): Likewise.
3662 (sh_corefile_collect_regset): Likewise.
3663 * sh64-tdep.c (sh64_extract_return_value): Likewise.
3664 (sh64_store_return_value): Likewise.
3665 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
3666 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
3667 (sparc_store_inferior_registers): Likewise.
3668 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
3669 (sparc_ravenscar_prepare_to_store): Likewise.
3670 * sparc-tdep.c (sparc32_store_arguments): Likewise.
3671 (sparc_analyze_control_transfer): Likewise.
3672 (sparc_step_trap): Likewise.
3673 (sparc_software_single_step): Likewise.
3674 (sparc32_gdbarch_init): Likewise.
3675 (sparc_supply_rwindow): Likewise.
3676 (sparc_collect_rwindow): Likewise.
3677 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
3678 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
3679 (sparc64nbsd_collect_gregset): Likewise.
3680 (sparc64nbsd_supply_fpregset): Likewise.
3681 (sparc64nbsd_collect_fpregset): Likewise.
3682 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
3683 (sparc64_supply_gregset): Likewise.
3684 (sparc64_collect_gregset): Likewise.
3685 (sparc64_supply_fpregset): Likewise.
3686 (sparc64_collect_fpregset): Likewise.
3687 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3688 * spu-tdep.c (spu_unwind_sp): Likewise.
3689 (spu2ppu_prev_register): Likewise.
3690 (spu_memory_remove_breakpoint): Likewise.
3691 * stack.c (return_command): Likewise.
3692 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
3693 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3694 * tracefile.c (trace_save_ctf): Likewise.
3695 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
3696 (do_windows_store_inferior_registers): Likewise.
3697 (windows_resume): Likewise.
3698 * xtensa-linux-nat.c (fill_gregset): Likewise.
3699 (supply_gregset_reg): Likewise.
3700 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
3701 (xtensa_register_read_masked): Likewise.
3702 (xtensa_supply_gregset): Likewise.
3703 (xtensa_extract_return_value): Likewise.
3704 (xtensa_store_return_value): Likewise.
3705
3706 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
3707
3708 * doublest.c (floatformat_from_string): New function.
3709 * doublest.h (floatformat_from_string): Add prototype.
3710
3711 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
3712 (OP_FLOAT): ... this.
3713 * expression.h: Do not include "doublest.h".
3714 (union exp_element): Replace doubleconst and decfloatconst by
3715 new element floatconst.
3716 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
3717 (ada_evaluate_subexp): Likewise.
3718 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
3719 OP_DOUBLE and OP_DECFLOAT.
3720 * expprint.c (print_subexp_standard): Likewise.
3721 (dump_subexp_body_standard): Likewise.
3722 * breakpoint.c (watchpoint_exp_is_const): Likewise.
3723
3724 * parse.c: Include "dfp.h".
3725 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3726 (write_exp_elt_floatcst): New function.
3727 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
3728 and OP_DECFLOAT.
3729 (operator_check_standard): Likewise.
3730 (parse_float): Do not accept suffix. Take type as input. Return bool.
3731 Return target format buffer instead of host DOUBLEST.
3732 Use floatformat_from_string and decimal_from_string to parse
3733 either binary or decimal floating-point types.
3734 (parse_c_float): Remove.
3735 * parser-defs.h: Do not include "doublest.h".
3736 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3737 (write_exp_elt_floatcst): Add prototype.
3738 (parse_float): Update prototype.
3739 (parse_c_float): Remove.
3740
3741 * c-exp.y: Do not include "dfp.h".
3742 (typed_val_float): Use byte buffer instead of DOUBLEST.
3743 (typed_val_decfloat): Remove.
3744 (DECFLOAT): Remove.
3745 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3746 (parse_number): Update to new parse_float interface.
3747 Parse suffixes and determine type before calling parse_float.
3748 Handle decimal and binary FP types the same way.
3749
3750 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3751 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
3752 (parse_number): Update to new parse_float interface.
3753 Parse suffixes and determine type before calling parse_float.
3754
3755 * f-exp.y: Replace dval by typed_val_float.
3756 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3757 (parse_number): Use parse_float instead of atof.
3758
3759 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3760 (parse_go_float): Remove.
3761 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3762 (parse_number): Call parse_float instead of parse_go_float.
3763 Parse suffixes and determine type before calling parse_float.
3764
3765 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3766 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3767 (parse_number): Update to new parse_float interface.
3768 Parse suffixes and determine type before calling parse_float.
3769
3770 * m2-exp.y: Replace dval by byte buffer val.
3771 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3772 (parse_number): Call parse_float instead of atof.
3773
3774 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3775 (lex_number): Call parse_float instead of strtod.
3776 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
3777 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
3778 Use write_exp_elt_floatcst.
3779 (unit_testing): Remove static variable.
3780 (rust_type): Do not check unit_testing.
3781 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
3782
3783 * ada-exp.y (type_float, type_double): Remove.
3784 (typed_val_float): Use byte buffer instead of DOUBLEST.
3785 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3786 * ada-lex.l (processReal): Use parse_float instead of sscanf.
3787
3788 2017-10-25 Alan Hayward <alan.hayward@arm.com>
3789
3790 * aarch64-tdep.h (enum aarch64_regnum): Remove.
3791 * arch/aarch64.h: New file.
3792
3793 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3794
3795 * dfp.h (decimal_from_string): Use const reference for argument.
3796 * dfp.c (decimal_from_string): Likewise.
3797
3798 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3799
3800 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
3801 * sh64-tdep.c (sh64_do_fp_register): Likewise.
3802 * mips-tdep.c (mips_print_fp_register): Likewise.
3803
3804 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3805
3806 * common/format.h (enum argclass): Replace decfloat_arg by
3807 dec32float_arg, dec64float_arg, and dec128float_arg.
3808 * common/format.c (parse_format_string): Update to return
3809 new decimal float argument classes.
3810
3811 * printcmd.c (printf_decfloat): Rename to ...
3812 (printf_floating): ... this. Add argclass argument, and use it
3813 instead of parsing the format string again. Add support for
3814 binary floating-point values, using floatformat_to_string.
3815 Convert value to the target format if it doesn't already match.
3816 (ui_printf): Call printf_floating instead of printf_decfloat,
3817 also for double_arg / long_double_arg. Pass argclass.
3818
3819 * dfp.c (decimal_to_string): Add format string argument.
3820 * dfp.h (decimal_to_string): Likewise.
3821
3822 * doublest.c (floatformat_to_string): Add format string argument.
3823 * doublest.h (floatformat_to_string): Likewise.
3824
3825 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3826
3827 * doublest.c (floatformat_precision): New routine.
3828 (floatformat_to_string): Likewise.
3829 * doublest.c (floatformat_to_string): Add prototype.
3830
3831 * printcmd.c (print_scalar_formatted): Only call print_floating
3832 on floating-point types.
3833 * valprint.c: Do not include "floatformat.h".
3834 (generic_val_print_decfloat): Remove.
3835 (generic_val_print): Call generic_val_print_float for both
3836 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
3837 (print_floating): Use floatformat_to_string. Handle decimal float.
3838 (print_decimal_floating): Remove, merge into floatformat_to_string.
3839 * value.h (print_decimal_floating): Remove.
3840
3841 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
3842
3843 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3844
3845 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
3846
3847 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3848
3849 * memattr.h: Don't include vec.h.
3850 (struct mem_attrib): Initialize fields.
3851 <unknown>: New static method.
3852 (struct mem_region): Add constructors, operator<, initialize
3853 fields.
3854 * memattr.c: Include algorithm.
3855 (default_mem_attrib, unknown_mem_attrib): Remove.
3856 (user_mem_region_list): New global.
3857 (target_mem_region_list, mem_region_list): Change type to
3858 std::vector<mem_region>.
3859 (mem_use_target): Now a function.
3860 (target_mem_regions_valid): Change type to bool.
3861 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
3862 (require_user_regions): Adjust.
3863 (require_target_regions): Adjust.
3864 (create_mem_region): Adjust.
3865 (lookup_mem_region): Adjust.
3866 (invalidate_target_mem_regions): Adjust.
3867 (mem_clear): Rename to...
3868 (user_mem_clear): ... this, and adjust.
3869 (mem_command): Adjust.
3870 (info_mem_command): Adjust.
3871 (mem_enable, enable_mem_command, mem_disable,
3872 disable_mem_command): Adjust.
3873 (mem_delete): Adjust.
3874 (delete_mem_command): Adjust.
3875 * memory-map.h (parse_memory_map): Return an std::vector.
3876 * memory-map.c (parse_memory_map): Likewise.
3877 (struct memory_map_parsing_data): Add constructor.
3878 <memory_map>: Point to std::vector.
3879 (memory_map_start_memory): Adjust.
3880 (memory_map_end_memory): Adjust.
3881 (memory_map_end_property): Adjust.
3882 (clear_result): Remove.
3883 * remote.c (remote_memory_map): Return an std::vector.
3884 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
3885 Remove.
3886 (target_debug_print_mem_region_vector): New.
3887 * target-delegates.c: Regenerate.
3888 * target.h (mem_region_vector): New typedef.
3889 (to_memory_map): Return mem_region_vector.
3890 (target_memory_map): Return an std::vector.
3891 * target.c (target_memory_map): Return an std::vector.
3892 (flash_erase_command): Adjust.
3893
3894 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3895
3896 * memory-map.c (struct memory_map_parsing_data) <property_name>:
3897 Change type to std::string.
3898 (memory_map_start_property): Adjust.
3899 (memory_map_end_property): Adjust.
3900
3901 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3902
3903 * infrun.h: Include common/byte-vector.h.
3904 (struct displaced_step_closure): New struct.
3905 (struct buf_displaced_step_closure): New struct.
3906 * infrun.c (displaced_step_closure::~displaced_step_closure):
3907 Provide default implementation.
3908 (displaced_step_clear): Deallocate step closure with delete.
3909 * aarch64-tdep.c (displaced_step_closure): Rename to ...
3910 (aarch64_displaced_step_closure): ... this, extend
3911 displaced_step_closure.
3912 (aarch64_displaced_step_data) <dsc>: Change type to
3913 aarch64_displaced_step_closure.
3914 (aarch64_displaced_step_copy_insn): Adjust to type change, use
3915 unique_ptr.
3916 (aarch64_displaced_step_fixup): Add cast for displaced step
3917 closure.
3918 * amd64-tdep.c (displaced_step_closure): Rename to ...
3919 (amd64_displaced_step_closure): ... this, extend
3920 displaced_step_closure.
3921 <insn_buf>: Change type to std::vector<gdb_byte>.
3922 <max_len>: Remove.
3923 (fixup_riprel): Change type of DSC parameter, adjust to type
3924 change of insn_buf.
3925 (fixup_displaced_copy): Change type of DSC parameter.
3926 (amd64_displaced_step_copy_insn): Instantiate
3927 amd64_displaced_step_closure.
3928 (amd64_displaced_step_fixup): Add cast for closure type, adjust
3929 to type change of insn_buf.
3930 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
3931 parameter DSC.
3932 (arm_linux_copy_svc): Likewise.
3933 (cleanup_kernel_helper_return): Likewise.
3934 (arm_catch_kernel_helper_return): Likewise.
3935 (arm_linux_displaced_step_copy_insn): Instantiate
3936 arm_displaced_step_closure.
3937 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
3938 (displaced_read_reg): Change type of parameter DSC.
3939 (branch_write_pc): Likewise.
3940 (load_write_pc): Likewise.
3941 (alu_write_pc): Likewise.
3942 (displaced_write_reg): Likewise.
3943 (arm_copy_unmodified): Likewise.
3944 (thumb_copy_unmodified_32bit): Likewise.
3945 (thumb_copy_unmodified_16bit): Likewise.
3946 (cleanup_preload): Likewise.
3947 (install_preload): Likewise.
3948 (arm_copy_preload): Likewise.
3949 (thumb2_copy_preload): Likewise.
3950 (install_preload_reg): Likewise.
3951 (arm_copy_preload_reg): Likewise.
3952 (cleanup_copro_load_store): Likewise.
3953 (install_copro_load_store): Likewise.
3954 (arm_copy_copro_load_store) Likewise.
3955 (thumb2_copy_copro_load_store): Likewise.
3956 (cleanup_branch): Likewise.
3957 (install_b_bl_blx): Likewise.
3958 (arm_copy_b_bl_blx): Likewise.
3959 (thumb2_copy_b_bl_blx): Likewise.
3960 (thumb_copy_b): Likewise.
3961 (install_bx_blx_reg): Likewise.
3962 (arm_copy_bx_blx_reg): Likewise.
3963 (thumb_copy_bx_blx_reg): Likewise.
3964 (cleanup_alu_imm): Likewise.
3965 (arm_copy_alu_imm): Likewise.
3966 (thumb2_copy_alu_imm): Likewise.
3967 (cleanup_alu_reg): Likewise.
3968 (install_alu_reg): Likewise.
3969 (arm_copy_alu_reg): Likewise.
3970 (thumb_copy_alu_reg): Likewise.
3971 (cleanup_alu_shifted_reg): Likewise.
3972 (install_alu_shifted_reg): Likewise.
3973 (arm_copy_alu_shifted_reg): Likewise.
3974 (cleanup_load): Likewise.
3975 (cleanup_store): Likewise.
3976 (arm_copy_extra_ld_st): Likewise.
3977 (install_load_store): Likewise.
3978 (thumb2_copy_load_literal): Likewise.
3979 (thumb2_copy_load_reg_imm): Likewise.
3980 (arm_copy_ldr_str_ldrb_strb): Likewise.
3981 (cleanup_block_load_all): Likewise.
3982 (cleanup_block_store_pc): Likewise.
3983 (cleanup_block_load_pc): Likewise.
3984 (arm_copy_block_xfer): Likewise.
3985 (thumb2_copy_block_xfer): Likewise.
3986 (cleanup_svc): Likewise.
3987 (install_svc): Likewise.
3988 (arm_copy_svc): Likewise.
3989 (thumb_copy_svc): Likewise.
3990 (arm_copy_undef): Likewise.
3991 (thumb_32bit_copy_undef): Likewise.
3992 (arm_copy_unpred): Likewise.
3993 (arm_decode_misc_memhint_neon): Likewise.
3994 (arm_decode_unconditional): Likewise.
3995 (arm_decode_miscellaneous): Likewise.
3996 (arm_decode_dp_misc): Likewise.
3997 (arm_decode_ld_st_word_ubyte): Likewise.
3998 (arm_decode_media): Likewise.
3999 (arm_decode_b_bl_ldmstm): Likewise.
4000 (arm_decode_ext_reg_ld_st): Likewise.
4001 (thumb2_decode_dp_shift_reg): Likewise.
4002 (thumb2_decode_ext_reg_ld_st): Likewise.
4003 (arm_decode_svc_copro): Likewise.
4004 (thumb2_decode_svc_copro): Likewise.
4005 (install_pc_relative): Likewise.
4006 (thumb_copy_pc_relative_16bit): Likewise.
4007 (thumb_decode_pc_relative_16bit): Likewise.
4008 (thumb_copy_pc_relative_32bit): Likewise.
4009 (thumb_copy_16bit_ldr_literal): Likewise.
4010 (thumb_copy_cbnz_cbz): Likewise.
4011 (thumb2_copy_table_branch): Likewise.
4012 (cleanup_pop_pc_16bit_all): Likewise.
4013 (thumb_copy_pop_pc_16bit): Likewise.
4014 (thumb_process_displaced_16bit_insn): Likewise.
4015 (decode_thumb_32bit_ld_mem_hints): Likewise.
4016 (thumb_process_displaced_32bit_insn): Likewise.
4017 (thumb_process_displaced_insn): Likewise.
4018 (arm_process_displaced_insn): Likewise.
4019 (arm_displaced_init_closure): Likewise.
4020 (arm_displaced_step_fixup): Add cast for closure.
4021 * arm-tdep.h: Include infrun.h.
4022 (displaced_step_closure): Rename to ...
4023 (arm_displaced_step_closure): ... this, extend
4024 displaced_step_closure.
4025 <u::svc::copy_svc_os>: Change type of parameter DSC.
4026 <cleanup>: Likewise.
4027 (arm_process_displaced_insn): Likewise.
4028 (arm_displaced_init_closure): Likewise.
4029 (displaced_read_reg): Likewise.
4030 (displaced_write_reg): Likewise.
4031 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4032 Adjust.
4033 * i386-tdep.h: Include infrun.h.
4034 (i386_displaced_step_closure): New typedef.
4035 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4036 i386_displaced_step_closure.
4037 (i386_displaced_step_fixup): Adjust.
4038 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4039 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4040 and unique_ptr.
4041 (ppc_displaced_step_fixup): Adjust.
4042 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4043 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4044 and unique_ptr.
4045 (s390_displaced_step_fixup): Adjust.
4046
4047 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4048
4049 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4050 Remove declarations.
4051
4052 2017-10-20 Tom Tromey <tom@tromey.com>
4053
4054 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4055 std::vector.
4056 (gdb_bfd_record_inclusion): Update.
4057 (bfdp): Remove typedef.
4058
4059 2017-10-20 Tom Tromey <tom@tromey.com>
4060
4061 * gdb_bfd.c (gdb_bfd_ref): Use new.
4062 (struct gdb_bfd_data): Add constructor, destructor, and member
4063 initializers.
4064 (gdb_bfd_unref): Use delete.
4065
4066 2017-10-20 Tom Tromey <tom@tromey.com>
4067
4068 * exec.c (exec_file_attach): Use new_bfd_ref.
4069 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4070 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4071 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4072 new_bfd_ref.
4073 * gdb_bfd.h (new_bfd_ref): New function.
4074
4075 2017-10-20 Pedro Alves <palves@redhat.com>
4076
4077 * main.c (captured_command_loop): Add attribute noinline.
4078
4079 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4080
4081 * interps.c (struct interp_factory): Add constructor.
4082 (interp_factory_p): Remove typedef.
4083 (DEF_VEC_P(interp_factory_p)): Remove.
4084 (interpreter_factories): Change type to std::vector.
4085 (interp_factory_register): Adjust.
4086 (interp_lookup): Adjust.
4087 (interpreter_completer): Adjust.
4088
4089 2017-10-19 Tom Tromey <tom@tromey.com>
4090
4091 * break-catch-syscall.c (catch_syscall_completer): Use
4092 std::string, gdb::unique_xmalloc_ptr.
4093
4094 2017-10-19 Tom Tromey <tom@tromey.com>
4095
4096 * infcall.c (call_function_by_hand_dummy): Use std::string.
4097
4098 2017-10-19 Tom Tromey <tom@tromey.com>
4099
4100 * mi/mi-main.c (mi_cmd_execute): Update.
4101 * top.h (prepare_execute_command): Return scoped_value_mark.
4102 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4103 Add move constructor.
4104 * top.c (prepare_execute_command): Return scoped_value_mark.
4105 (execute_command): Update.
4106
4107 2017-10-19 Pedro Alves <palves@redhat.com>
4108
4109 * xml-support.c (xml_fetch_content_from_file): Check fread's
4110 return.
4111
4112 2017-10-19 Pedro Alves <palves@redhat.com>
4113
4114 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4115 async.
4116 (handle_error_fd): New function.
4117 (ser_base_async): Add/delete an event loop file handler for
4118 error_fd.
4119
4120 2017-10-19 Pedro Alves <palves@redhat.com>
4121
4122 * xml-support.c (xml_fetch_content_from_file): Don't read in
4123 chunks. Instead use fseek to determine the file's size, and read
4124 it in one go.
4125
4126 2017-11-18 Keith Seitz <keiths@redhat.com>
4127
4128 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4129 types.
4130 Add whitespace to front of type name.
4131
4132 2017-10-18 Keith Seitz <keiths@redhat.com>
4133
4134 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4135 DW_AT_accessibility.
4136
4137 2017-10-18 Yao Qi <yao.qi@linaro.org>
4138
4139 * features/tic6x-c62x-linux.c: Remove.
4140
4141 2017-10-17 Tom Tromey <tom@tromey.com>
4142
4143 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4144 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4145 (do_mixed_source_and_assembly): Likewise.
4146
4147 2017-10-17 Tom Tromey <tom@tromey.com>
4148
4149 * regcache.c (regcache::xfer_part): Remove assertion.
4150
4151 2017-10-17 Pedro Alves <palves@redhat.com>
4152
4153 * xml-support.c (xml_fetch_content_from_file): Call
4154 unique_ptr::release() instead unique_ptr::get() when passing
4155 through xrealloc.
4156
4157 2017-10-17 Yao Qi <yao.qi@linaro.org>
4158
4159 * regcache.c (regcache::xfer_part): Remove parameters read and
4160 write, add parameter is_raw. All callers are updated.
4161
4162 2017-10-16 Keith Seitz <keiths@redhat.com>
4163
4164 * c-typeprint.c (enum access_specifier): Moved here from
4165 c_type_print_base.
4166 (output_access_specifier): New function.
4167 (c_type_print_base): Consider typedefs when assessing
4168 whether access labels are needed.
4169 Use output_access_specifier as needed.
4170 Output access specifier for typedefs, if needed.
4171 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4172 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4173 fields.
4174 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4175 accessor macros.
4176
4177 2017-10-16 Tom Tromey <tom@tromey.com>
4178
4179 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4180 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4181 * target.c (target_fileio_read_stralloc): Update.
4182 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4183 * target.h (target_fileio_read_stralloc): Return
4184 unique_xmalloc_ptr.
4185
4186 2017-10-16 Tom Tromey <tom@tromey.com>
4187
4188 * xml-syscall.c (xml_init_syscalls_info): Update.
4189 * xml-support.c (xinclude_start_include): Update.
4190 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4191 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4192 (xml_fetch_content_from_file): Likewise.
4193 * osdata.c (get_osdata): Update.
4194 * target.h (target_read_stralloc, target_get_osdata): Return
4195 unique_xmalloc_ptr.
4196 * solib-aix.c (solib_aix_get_library_list): Update.
4197 * solib-target.c (solib_target_current_sos): Update.
4198 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4199 * xml-tdesc.c (fetch_available_features_from_target): Update.
4200 (target_fetch_description_xml): Update.
4201 (file_read_description_xml): Update.
4202 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4203 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4204 (remote_pid_to_exec_file): Update.
4205 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4206 (target_get_osdata): Likewise.
4207
4208 2017-10-16 Tom Tromey <tom@tromey.com>
4209
4210 * remote.c (remote_register_number_and_offset): Use std::vector.
4211 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4212 (putpkt_binary): Use gdb::def_vector.
4213 (compare_sections_command): Use gdb::byte_vector.
4214
4215 2017-10-16 Tom Tromey <tom@tromey.com>
4216
4217 * ppc-linux-nat.c (hwdebug_insert_point): Use
4218 gdb::unique_xmalloc_ptr, XDUP.
4219
4220 2017-10-16 Tom Tromey <tom@tromey.com>
4221
4222 * probe.c (parse_probes): Use std::string.
4223 (info_probes_for_ops, enable_probes_command)
4224 (disable_probes_command): Remove cleanups.
4225
4226 2017-10-16 Tom Tromey <tom@tromey.com>
4227
4228 * buildsym.c (block_compar): Remove.
4229 (end_symtab_get_static_block): Use std::vector.
4230
4231 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4232
4233 * memrange.h (struct mem_range): Define operator< and operator==.
4234 (mem_range_s): Remove.
4235 (DEF_VEC_O (mem_range_s)): Remove.
4236 (normalize_mem_ranges): Change parameter type to std::vector.
4237 * memrange.c (compare_mem_ranges): Remove.
4238 (normalize_mem_ranges): Change parameter type to std::vector,
4239 adjust to vector change.
4240 * exec.c (section_table_available_memory): Return vector, remove
4241 parameter.
4242 (section_table_read_available_memory): Adjust to std::vector
4243 change.
4244 * remote.c (remote_read_bytes): Adjust to std::vector
4245 change.
4246 * tracepoint.h (traceframe_available_memory): Change parameter
4247 type to std::vector.
4248 * tracepoint.c (traceframe_available_memory): Change parameter
4249 type to std::vector, adjust.
4250 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4251 std::vector change.
4252 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4253 unittests/memrange-selftests.c.
4254 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4255 * gdb/unittests/memrange-selftests.c: New file.
4256
4257 2017-10-16 Pedro Alves <palves@redhat.com>
4258
4259 * elfread.c (probe_key_free): Rename range-for variable.
4260 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4261 (find_probe_by_pc, collect_probes): Rename range-for variable.
4262
4263 2017-10-16 Yao Qi <yao.qi@linaro.org>
4264
4265 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4266 * features/tic6x-c62x.c: Remove.
4267 * features/tic6x-c64x-linux.c: Remove.
4268 * features/tic6x-c64x.c: Remove.
4269 * features/tic6x-c64xp-linux.c: Remove.
4270 * features/tic6x-c64xp.c: Remove.
4271 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4272 initialize_tdesc_tic6x_*_linux functions.
4273 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4274 initialize_tdesc_tic6x_* functions.
4275
4276 2017-10-16 Yao Qi <yao.qi@linaro.org>
4277
4278 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4279 tic6x-c62x.
4280 * regformats/tic6x-c62x.dat: Remove.
4281 * regformats/tic6x-c64x.dat: Remove.
4282 * regformats/tic6x-c64xp.dat: Remove.
4283
4284 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4285
4286 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4287 (the !HAVE_LIBEXPAT version).
4288
4289 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4290
4291 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4292 const.
4293
4294 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4295
4296 * target.h: Include tracepoint.h.
4297 (enum trace_find_type): Move to tracepoint.h.
4298 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
4299 * tracepoint.h: Don't include target.h
4300 (enum trace_find_type): Move from target.h.
4301 (parse_traceframe_info): Return a unique ptr.
4302 * tracepoint.c (current_traceframe_info): Change type to unique
4303 ptr.
4304 (free_traceframe_info): Remove.
4305 (clear_traceframe_info): Don't manually free
4306 current_traceframe_info.
4307 (free_result): Remove.
4308 (parse_traceframe_info): Return a unique ptr.
4309 (get_traceframe_info): Adjust to unique ptr.
4310 * ctf.c (ctf_traceframe_info): Return a unique ptr.
4311 * remote.c (remote_traceframe_info): Return a unique ptr.
4312 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
4313 ptr.
4314 * target-debug.h (target_debug_print_traceframe_info_up): New
4315 macro.
4316 * target-delegates.c: Regenerate.
4317
4318 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4319
4320 * memrange.h (struct mem_range): Add constructors.
4321 * tracepoint.h (struct traceframe_info) <memory>: Change type to
4322 std::vector<mem_range>.
4323 * tracepoint.c (free_traceframe_info): Don't manually free
4324 vector.
4325 (traceframe_info_start_memory): Adjust to vector change.
4326 (traceframe_available_memory): Likewise.
4327 * tracefile-tfile.c (build_traceframe_info): Likewise.
4328 * ctf.c (ctf_traceframe_info): Likewise.
4329
4330 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4331
4332 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
4333 std::vector<int>.
4334 * tracepoint.c (free_traceframe_info): Deallocate with delete.
4335 (traceframe_info_start_tvar): Adjust to vector change.
4336 (parse_traceframe_info): Allocate with new.
4337 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
4338 vector change.
4339 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
4340 change.
4341 tfile_traceframe_info): Allocate with new.
4342 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
4343 change.
4344
4345 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4346
4347 * tracepoint.c (traceframe_info): Rename to...
4348 (current_traceframe_info): ...this.
4349 (clear_traceframe_info): Adjust.
4350 (get_traceframe_info): Adjust.
4351
4352 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4353
4354 * nat/linux-osdata.c: Include algorithm.
4355 (compare_processes): Remove.
4356 (struct pid_pgid_entry): New struct.
4357 (linux_xfer_osdata_processgroups): Use std::vector instead of
4358 XNEWVEC.
4359
4360 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4361
4362 * objfiles.h: Don't include symfile.h.
4363 (struct partial_symbol): Remove forward-declaration.
4364 (struct objfile) <global_psymbols, static_psymbols>: Change type
4365 to std::vector<partial_symbol *>.
4366 * objfiles.c (objfile::objfile): Don't memset those fields.
4367 (objfile::~objfile): Don't free those fields.
4368 * psympriv.h (struct psymbol_allocation_list): Remove
4369 forward-declaration.
4370 (add_psymbol_to_list): Change psymbol_allocation_list parameter
4371 to std::vector.
4372 (start_psymtab_common): Change parameters to std::vector.
4373 * psymtab.c: Include algorithm.
4374 (require_partial_symbols): Call shrink_to_fit.
4375 (find_pc_sect_psymbol): Adjust to vector change.
4376 (match_partial_symbol): Likewise.
4377 (lookup_partial_symbol): Likewise.
4378 (psym_relocate): Likewise.
4379 (dump_psymtab): Likewise.
4380 (recursively_search_psymtabs): Likewise.
4381 (compare_psymbols): Remove.
4382 (sort_pst_symbols): Adjust to vector change.
4383 (start_psymtab_common): Likewise.
4384 (end_psymtab_common): Likewise.
4385 (psymbol_bcache_full): De-constify return value.
4386 (add_psymbol_to_bcache): Likewise.
4387 (extend_psymbol_list): Remove.
4388 (append_psymbol_to_list): Adjust to vector change.
4389 (add_psymbol_to_list): Likewise.
4390 (init_psymbol_list): Likewise.
4391 (maintenance_info_psymtabs): Likewise.
4392 (maintenance_check_psymtabs): Likewise.
4393 * symfile.h (struct psymbol_allocation_list): Remove.
4394 * symfile.c (reread_symbols): Adjust to vector change.
4395 * dbxread.c (start_psymtab): Change type of parameters.
4396 (dbx_symfile_read): Adjust to vector change.
4397 (read_dbx_symtab): Likewise.
4398 (start_psymtab): Change type of parameters.
4399 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
4400 (create_partial_symtab): Likewise.
4401 (add_partial_symbol): Likewise.
4402 (write_one_signatured_type): Likewise.
4403 (recursively_write_psymbols): Likewise.
4404 * mdebugread.c (parse_partial_symbols): Likewise.
4405 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
4406 (scan_xcoff_symtab): Adjust to vector change.
4407 (xcoff_initial_scan): Likewise.
4408
4409 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
4410
4411 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
4412
4413 2017-10-13 Yao Qi <yao.qi@linaro.org>
4414
4415 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
4416 Remove s390x-*-expedite, add s390x-expedite.
4417
4418 2017-10-13 Yao Qi <yao.qi@linaro.org>
4419
4420 * features/s390-gs-linux64.c: Regenerated.
4421 * features/s390x-gs-linux64.c: Regenerated.
4422
4423 2017-10-13 Tom Tromey <tom@tromey.com>
4424
4425 * compile/compile-object-run.c (do_module_cleanup): Use delete.
4426 * solib.c (update_solib_list, reload_shared_libraries_1): Use
4427 delete.
4428 * symfile.c (symbol_file_add_with_addrs): Use new.
4429 (symbol_file_add_separate): Update comment.
4430 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
4431 * jit.c (jit_object_close_impl): Use new.
4432 (jit_unregister_code): Use delete.
4433 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
4434 (~objfile): Rename from free_objfile.
4435 (free_objfile_separate_debug, do_free_objfile_cleanup)
4436 (free_all_objfiles, objfile_purge_solibs): Use delete.
4437 * objfiles.h (struct objfile): Add constructor and destructor.
4438 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
4439 (allocate_objfile, free_objfile): Don't declare.
4440 (struct objstats): Add initializers.
4441
4442 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4443
4444 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
4445 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
4446 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
4447 * gdbarch.h: Regenerate.
4448 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4449 Adjust comment.
4450 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
4451 (i386_displaced_step_fixup): Adjust comment.
4452 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
4453
4454 2017-10-12 Tom Tromey <tom@tromey.com>
4455
4456 * prologue-value.h (pv_area::store_would_trash): Return bool.
4457 (pv_area::find_reg): Likewise.
4458 * prologue-value.c (pv_area::store_would_trash): Return bool.
4459 (pv_area::find_reg): Likewise.
4460
4461 2017-10-12 Tom Tromey <tom@tromey.com>
4462
4463 * s390-linux-tdep.c (s390_store, s390_load)
4464 (s390_check_for_saved, s390_analyze_prologue): Update.
4465 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
4466 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
4467 * prologue-value.h (class pv_area): Move from prologue-value.c.
4468 Change names of members. Add constructor, destructor, member
4469 functions.
4470 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
4471 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
4472 (pv_area_fetch, pv_area_scan): Don't declare.
4473 * prologue-value.c (struct pv_area::area_entry): Now member of
4474 pv_area.
4475 (struct pv_area): Move to prologue-value.h.
4476 (pv_area::pv_area): Rename from make_pv_area.
4477 (pv_area::~pv_area): Rename from free_pv_area.
4478 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
4479 (clear_entries, find_entry, overlaps, store_would_trash, store)
4480 (fetch, find_reg, scan): Now member of pv_area.
4481 Remove "area" argument. Update.
4482 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
4483 Update.
4484 * mn10300-tdep.c (push_reg, check_for_saved)
4485 (mn10300_analyze_prologue): Update.
4486 * mep-tdep.c (is_arg_spill, check_for_saved)
4487 (mep_analyze_prologue): Update.
4488 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
4489 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
4490 (m32c_is_struct_return, m32c_analyze_prologue): Update.
4491 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
4492 Update.
4493 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
4494 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
4495
4496 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4497
4498 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
4499 * linux-nat.c (linux_nat_delete_thread): New variable.
4500 (lwp_free): Invoke linux_nat_delete_thread if set.
4501 (linux_nat_set_delete_thread): New function.
4502 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
4503 thread delete callback.
4504 * arm-linux-nat.c (arm_linux_delete_thread): New function.
4505 (_initialize_arm_linux_nat): Assign thread delete callback.
4506 * s390-linux-nat.c (s390_delete_thread): New function.
4507 (_initialize_s390_nat): Assign thread delete callback.
4508 * x86-linux-nat.c (x86_linux_add_target): Likewise.
4509 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
4510 function.
4511 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
4512 declaration.
4513 * nat/x86-linux.c (x86_linux_delete_thread): New function.
4514 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
4515
4516 2017-10-09 Tom Tromey <tom@tromey.com>
4517
4518 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
4519 std::string.
4520 * tui/tui-layout.c (enum tui_status): Use std::string.
4521
4522 2017-10-11 Tom Tromey <tom@tromey.com>
4523
4524 * gdbthread.h (thread_command): Constify.
4525 * inferior.h (detach_command): Constify.
4526 * top.h (set_history, show_history): Constify.
4527 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
4528 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
4529 * bsd-kvm.c (bsd_kvm_cmd): Constify.
4530 * printcmd.c (set_command): Constify.
4531 (non_const_set_command): New function.
4532 * dcache.c (set_dcache_command, show_dcache_command): Constify.
4533 * breakpoint.c (enable_command, disable_command, delete_command)
4534 (catch_command, tcatch_command, set_breakpoint_cmd)
4535 (show_breakpoint_cmd): Constify.
4536 * macrocmd.c (macro_command): Constify.
4537 * infcmd.c (unset_command, kill_command, detach_command)
4538 (info_proc_cmd): Constify.
4539 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
4540 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
4541 (info_auto_load_cmd): Constify.
4542 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4543 (unset_tdesc_cmd): Constify.
4544 * ada-lang.c (set_ada_command, show_ada_command)
4545 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
4546 * guile/guile.c (set_guile_command, show_guile_command)
4547 (info_guile_command): Constify.
4548 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
4549 Constify.
4550 * skip.c (skip_command): Constify.
4551 * compile/compile.c (_initialize_compile): Constify.
4552 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
4553 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4554 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4555 (maint_btrace_pt_show_cmd): Constify.
4556 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
4557 Constify.
4558 * python/python.c (user_show_python, user_set_python): Constify.
4559 * mips-tdep.c (set_mips_command, show_mips_command)
4560 (set_mipsfpu_command): Constify.
4561 * record-btrace.c (cmd_record_btrace_start)
4562 (cmd_set_record_btrace, cmd_show_record_btrace)
4563 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
4564 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
4565 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
4566 Constify.
4567 * symfile.c (overlay_command): Constify.
4568 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
4569 * cli/cli-logging.c (set_logging_command, show_logging_command):
4570 Constify.
4571 * cli/cli-dump.c (dump_command, append_command)
4572 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4573 (tekhex_dump_command, binary_dump_command)
4574 (binary_append_command): Constify.
4575 * cli/cli-decode.c (struct cmd_list_element): Change type of
4576 "fun".
4577 * cli/cli-cmds.c (info_command, show_command, set_debug)
4578 (show_debug): Constify.
4579 (show_command): Add non-const overload.
4580 * top.c (set_history, show_history): Constify.
4581 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
4582 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
4583 * target.c (target_command): Constify.
4584 * sparc64-tdep.c (info_adi_command): Constify.
4585 * record-full.c (cmd_record_full_start): Constify.
4586 (set_record_full_command): Constify. Fix typo.
4587 (show_record_full_command): Constify.
4588 * thread.c (thread_command, thread_apply_command): Constify.
4589 * memattr.c (dummy_cmd): Constify.
4590 * value.c (function_command): Constify.
4591 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
4592 * probe.c (info_probes_command): Constify.
4593 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
4594 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
4595 (show_thread_cmd, set_thread_default_cmd)
4596 (show_thread_default_cmd): Constify.
4597 (check_empty): Constify.
4598 * tracepoint.c (tfind_command): Constify.
4599 * cp-support.c (maint_cplus_command): Constify.
4600 * windows-tdep.c (info_w32_command): Constify.
4601 * record.c (cmd_record_start, set_record_command)
4602 (show_record_command, info_record_command, cmd_record_goto):
4603 Constify.
4604 * ravenscar-thread.c (set_ravenscar_command)
4605 (show_ravenscar_command): Constify.
4606 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4607 Constify.
4608 (add_internal_problem_command): Remove casts.
4609 * arc-tdep.c (maintenance_print_arc_command): Constify.
4610 * valprint.c (set_print, show_print, set_print_raw)
4611 (show_print_raw): Constify.
4612 * maint.c (maintenance_command, maintenance_info_command)
4613 (maintenance_print_command, maintenance_set_cmd)
4614 (maintenance_show_cmd, set_per_command_cmd)
4615 (show_per_command_cmd, maintenance_check_command): Constify.
4616 * language.c (set_check, show_check): Constify.
4617 * typeprint.c (show_print_type, set_print_type): Constify.
4618 * go32-nat.c (go32_info_dos_command): Constify.
4619
4620 2017-10-11 Tom Tromey <tom@tromey.com>
4621
4622 * breakpoint.c (prepare_re_set_context): Remove.
4623 (breakpoint_re_set_one): Update. Don't use cleanups.
4624 (breakpoint_re_set): Use scoped_restore, std::string, and
4625 scoped_restore_current_language.
4626
4627 2017-10-11 Tom Tromey <tom@tromey.com>
4628
4629 * breakpoint.c (commands_command_1): Use std::string.
4630 (cleanup_executing_breakpoints): Remove.
4631 (bpstat_do_actions_1): Use scoped_restore.
4632 (bpstat_check_watchpoint): Use std::string.
4633 (decode_static_tracepoint_spec): Likewise.
4634 (break_range_command): Likewise.
4635 (watch_command_1): Likewise.
4636 (compare_breakpoints): Change argument types.
4637 (clear_command): Use std::vector.
4638 (cleanup_executing_breakpoints): Remove.
4639 (update_global_location_list): Use unique_xmalloc_ptr.
4640 (strace_command): Remove unused declaration.
4641
4642 2017-10-11 John Baldwin <jhb@FreeBSD.org>
4643
4644 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
4645 * NEWS: Mention new FreeBSD/arm native configuration.
4646 * configure.host: Add arm*-*-freebsd*.
4647 * configure.nat: Likewise.
4648 * arm-fbsd-nat.c: New file.
4649
4650 2017-10-11 John Baldwin <jhb@FreeBSD.org>
4651
4652 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
4653 (ALLDEPFILES): Add arm-fbsd-tdep.c.
4654 * NEWS: Mention new FreeBSD/arm target.
4655 * configure.tgt: Add arm*-*-freebsd*.
4656 * arm-fbsd-tdep.c: New file.
4657 * arm-fbsd-tdep.h: New file.
4658
4659 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4660
4661 * linux-tdep.c (linux_make_corefile_notes): Remove call to
4662 `gdbarch_elfcore_write_linux_prpsinfo'.
4663 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
4664 method.
4665 (elf_internal_linux_prpsinfo): Remove declaration.
4666 * gdbarch.h: Regenerate.
4667 * gdbarch.c: Regenerate.
4668
4669 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4670
4671 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
4672 `set_gdbarch_elfcore_write_linux_prpsinfo'.
4673
4674 2017-10-11 Pedro Alves <palves@redhat.com>
4675
4676 * breakpoint.c (reattach_breakpoints): Delete.
4677 * breakpoint.h (reattach_breakpoints): Delete.
4678
4679 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
4680
4681 * symfile.c (registered_sym_fns): Make struct, not typedef.
4682 (DEF_VEC_O (registered_sym_fns)): Remove.
4683 (symtab_fns): Change type to std::vector.
4684 (add_symtab_fns): Adjust.
4685 (find_sym_fns): Adjust.
4686
4687 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
4688
4689 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
4690 * arc-tdep.h (arc_arch_is_em): New function.
4691 (arc_arch_is_hs): Likewise.
4692
4693 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
4694
4695 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
4696 parentheses in the declaration.
4697 (macro_lookup_inclusion): Likewise.
4698 (macro_lookup_definition): Likewise.
4699 * p-lang.h (pascal_builtin_types): Likewise.
4700 * tui/tui-data.c (tui_win_list): Likewise.
4701 * tui/tui-data.h (tui_win_list): Likewise.
4702 * utils.h (make_cleanup_free_section_addr_info): Likewise.
4703
4704 2017-10-11 Mark Rages <markrages@gmail.com>
4705
4706 * target-memory.c (block_boundaries): Fix for block address not
4707 aligned on block size.
4708
4709 2017-10-10 Pedro Alves <palves@redhat.com>
4710 Tom Tromey <tom@tromey.com>
4711
4712 * breakpoint.c (struct captured_breakpoint_query_args)
4713 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
4714 (print_breakpoint): New.
4715 * breakpoint.h (print_breakpoint): Declare.
4716 * common/common-exceptions.h (enum return_reason): Remove
4717 references to catch_exceptions.
4718 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
4719 Delete.
4720 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
4721 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
4722 * gdb.h: Delete.
4723 * gdbthread.h (thread_select): Declare.
4724 * mi/mi-cmd-break.c: Don't include gdb.h.
4725 (breakpoint_notify): Use print_breakpoint.
4726 * mi/mi-cmd-catch.c: Don't include gdb.h.
4727 * mi/mi-interp.c: Don't include gdb.h.
4728 (mi_print_breakpoint_for_event): New.
4729 (mi_breakpoint_created, mi_breakpoint_modified): Use
4730 mi_print_breakpoint_for_event.
4731 * mi/mi-main.c: Don't include gdb.h.
4732 (mi_cmd_thread_select): Parse the global thread ID here. Use
4733 thread_select instead of gdb_thread_select.
4734 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
4735 of using gdb_list_thread_ids.
4736 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
4737 FILEIO_ENOSYS here.
4738 (remote_fileio_request): Use TRY/CATCH instead of
4739 catch_exceptions.
4740 * symfile-mem.c (struct symbol_file_add_from_memory_args)
4741 (symbol_file_add_from_memory_wrapper): Delete.
4742 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
4743 * thread.c: Don't include gdb.h.
4744 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
4745 (thread_alive): Use thread_select.
4746 (do_captured_thread_select): Delete, parts salvaged as ...
4747 (thread_select): ... this new function.
4748 (gdb_thread_select): Delete.
4749
4750 2017-10-10 Pedro Alves <palves@redhat.com>
4751 Tom Tromey <tom@tromey.com>
4752
4753 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
4754 and reverse logic.
4755 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
4756 No longer macros. Instead ...
4757 (enum wp_check_result): They're now values of this new
4758 enumeration.
4759 (watchpoint_check): Change return type to wp_check_result and
4760 parameter type to bpstat.
4761 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
4762 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
4763 catch_errors. Reverse logic of watchpoint_check call.
4764 (breakpoint_re_set_one): Now returns void and takes a breakpoint
4765 pointer as parameter.
4766 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
4767 * common/common-exceptions.c (throw_exception_sjlj): Update
4768 comments to avoid mentioning catch_errors.
4769 * exceptions.c (catch_errors): Delete.
4770 * exceptions.h: Update comments to avoid mentioning catch_errors.
4771 (catch_errors_ftype, catch_errors): Delete.
4772 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
4773 (hook_stop_stub): Delete.
4774 (restore_selected_frame): Change return type to void, and
4775 parameter type to const frame_id &.
4776 (restore_infcall_control_state): Use TRY/CATCH instead of
4777 catch_errors.
4778 * main.c (captured_command_loop): Return void and remove
4779 parameter. Remove references to catch_errors.
4780 (captured_main): Use TRY/CATCH instead of catch_errors.
4781 * objc-lang.c (objc_submethod_helper_data)
4782 (find_objc_msgcall_submethod_helper): Delete.
4783 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
4784 catch_errors.
4785 * record-full.c (record_full_message): Return void.
4786 (record_full_message_args, record_full_message_wrapper): Delete.
4787 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
4788 instead of catch_errors.
4789 * solib-aix.c (solib_aix_open_symbol_file_object): Change
4790 parameter type to int.
4791 * solib-darwin.c (open_symbol_file_object): Ditto.
4792 * solib-dsbt.c (open_symbol_file_object): Ditto.
4793 * solib-frv.c (open_symbol_file_object): Ditto.
4794 * solib-svr4.c (open_symbol_file_object): Ditto.
4795 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
4796 * solib.c (update_solib_list): Use TRY/CATCH instead of
4797 catch_errors.
4798 * solist.h (struct target_so_ops) <open_symbol_file_object>:
4799 Change type.
4800 * symmisc.c (struct print_symbol_args): Remove.
4801 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
4802 (print_symbol): Change type.
4803 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
4804 and remove parameters.
4805 (catch_errors): New.
4806 (get_windows_debug_event): Adjust.
4807
4808 2017-10-09 Tom Tromey <tom@tromey.com>
4809
4810 * mi/mi-main.c (free_splay_tree): Remove.
4811 (list_available_thread_groups): Use splay_tree_up.
4812 * common/gdb_splay_tree.h: New file.
4813
4814 2017-10-09 Tom Tromey <tom@tromey.com>
4815
4816 * mi/mi-main.c (do_nothing): Remove.
4817 (list_available_thread_groups): Update.
4818
4819 2017-10-09 Pedro Alves <palves@redhat.com>
4820
4821 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
4822 reading registers when switching context.
4823
4824 2017-10-09 John Baldwin <jhb@FreeBSD.org>
4825
4826 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
4827 (fbsd_convert_siginfo): Likewise.
4828 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
4829
4830 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
4831
4832 * configure.ac (try_guile_versions): Remove guile-2.2.
4833 * configure: Regenerate.
4834
4835 2017-10-09 Tom Tromey <tom@tromey.com>
4836
4837 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
4838 (COMPILE.pre): Use $(CXX).
4839
4840 2017-10-09 Pedro Alves <palves@redhat.com>
4841
4842 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
4843 Use bool.
4844 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4845 * cp-support.h (cp_remove_params): Now returns a
4846 gdb::unique_xmalloc_ptr.
4847 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
4848 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
4849 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
4850 returning a gdb::unique_xmalloc_ptr.
4851 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4852 * stack.c (find_frame_funname): Adjust to cp_remove_params
4853 returning a gdb::unique_xmalloc_ptr.
4854
4855 2017-10-08 Tom Tromey <tom@tromey.com>
4856
4857 * dwarf2read.c (dwarf2_get_dwz_file): Use
4858 gdb::unique_xmalloc_ptr.
4859 (find_slot_in_mapped_hash): Likewise.
4860 (dwarf2_physname): Likewise.
4861 (create_dwo_unit_in_dwp_v1): Use std::string.
4862 (create_dwo_unit_in_dwp_v2): Likewise.
4863 (lookup_dwo_cutu): Likewise.
4864 (inherit_abstract_dies): Use std::vector.
4865 (read_array_type): Likewise.
4866 (dwarf_decode_macros): Remove unused declaration.
4867 (unsigned_int_compar): Remove.
4868 (dwarf2_build_psymtabs_hard): Use scoped_restore.
4869 (psymtabs_addrmap_cleanup): Remove.
4870
4871 2017-10-08 Tom Tromey <tom@tromey.com>
4872
4873 * frame-unwind.c (frame_unwind_try_unwinder): Update.
4874 * frame.h (frame_cleanup_after_sniffer): Declare.
4875 (frame_prepare_for_sniffer): Return void.
4876 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
4877 type of argument.
4878 (frame_prepare_for_sniffer): Return void.
4879
4880 2017-10-08 Tom Tromey <tom@tromey.com>
4881
4882 * utils.h (make_cleanup_value_free): Remove.
4883 * utils.c (do_value_free, struct cleanup): Remove.
4884 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
4885 Use gdb_value_up.
4886 * value.h (struct value_deleter): New.
4887 (gdb_value_up): New typedef.
4888
4889 2017-10-08 Tom Tromey <tom@tromey.com>
4890
4891 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
4892 (make_cleanup_free_search_symbols): Remove.
4893 (search_symbols): Return std::vector.
4894 (symbol_search::compare_search_syms): Now member of
4895 symbol_search. Change arguments.
4896 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
4897 (symtab_symbol_info, rbreak_command): Update.
4898 * symtab.h (struct symbol_search) <next>: Remove.
4899 Add constructors.
4900 (symbol_search::operator<): New function.
4901 (symbol_search::operator==): New function.
4902 (search_symbols): Remove std::vector.
4903 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
4904 (symbol_search::compare_search_syms): Declare.
4905
4906 2017-10-06 Yao Qi <yao.qi@linaro.org>
4907
4908 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
4909 arch/aarch64-insn.o.
4910 Remove one rule.
4911 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
4912
4913 2017-10-06 Yao Qi <yao.qi@linaro.org>
4914
4915 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
4916 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
4917 arch/arm-linux.o respectively.
4918 * configure.tgt: Likewise.
4919
4920 2017-10-06 Yao Qi <yao.qi@linaro.org>
4921
4922 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
4923 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
4924
4925 2017-10-06 Pedro Alves <palves@redhat.com>
4926
4927 * windows-nat.c: Include <algorithm>.
4928
4929 2017-10-06 Yao Qi <yao.qi@linaro.org>
4930
4931 * configure.tgt (i386_tobjs): New variable.
4932 (amd64_tobjs): New variable.
4933 Set $cpu_obs and $os_obs.
4934
4935 2017-10-06 Yao Qi <yao.qi@linaro.org>
4936
4937 * Makefile.in (CONFIG_SRC_SUBDIR): New.
4938 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
4939 (clean): Remove object files and dependency files.
4940 (distclean): Remove the directory.
4941 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4942 * configure: Re-generated.
4943 * configure.tgt: Replace amd64.o with arch/amd64.o.
4944
4945 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
4946
4947 PR build/22188
4948 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
4949 and SETEND.
4950
4951 2017-10-05 Pedro Alves <palves@redhat.com>
4952
4953 * linux-nat.c (linux_child_follow_fork): When following the parent
4954 and detaching the child, consult the parent thread's architecture
4955 instead of the child's.
4956
4957 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4958
4959 * ax.h: Do not include "doublest.h".
4960 (union agent_val): Remove.
4961
4962 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4963
4964 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
4965 (decimal_to_string): Return std::string object.
4966 (decimal_from_string): Accept std::string object. Return bool.
4967 (decimal_from_integral, decimal_from_doublest): Remove.
4968 (decimal_from_longest): Add prototype.
4969 (decimal_from_ulongest): Likewise.
4970 (decimal_to_longest): Likewise.
4971 (decimal_from_doublest): Likewise.
4972 * dfp.c: Do not include "gdbtypes.h" or "value.h".
4973 (MAX_DECIMAL_STRING): Move here.
4974 (decimal_to_string): Return std::string object.
4975 (decimal_from_string): Accept std::string object. Return bool.
4976 (decimal_from_integral): Remove, replace by ...
4977 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
4978 (decimal_to_longest): New function.
4979 (decimal_from_floating): Remove, replace by ...
4980 (decimal_from_doublest): ... this new function.
4981 (decimal_to_doublest): Update to new decimal_to_string interface.
4982
4983 * value.c (unpack_long): Use decimal_to_longest.
4984 * valops.c (value_cast): Use decimal_from_doublest instead of
4985 decimal_from_floating. Use decimal_from_[u]longest isntead of
4986 decimal_from_integral.
4987 * valarith.c (value_args_as_decimal): Likewise.
4988 * valprint.c (print_decimal_floating): Update to new
4989 decimal_to_string interface.
4990 * printcmd.c (printf_decfloat): Likewise.
4991 * c-exp.y (parse_number): Update to new decimal_from_string interface.
4992
4993 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4994
4995 * doublest.h: Do not include "floatformat.h". Remove stale comments.
4996 * gdbtypes.c: Include "floatformat.h".
4997 * value.c: Likewise.
4998 * m68k-tdep.c: Likewise.
4999
5000 * findvar.c: Do not include "floatformat.h".
5001 * amd64-darwin-tdep.c: Likewise.
5002 * arm-linux-tdep.c: Likewise.
5003 * i386-darwin-tdep.c: Likewise.
5004 * i387-tdep.c: Likewise.
5005 * m68k-linux-tdep.c: Likewise.
5006 * mep-tdep.c: Likewise.
5007 * mips-tdep.c: Likewise.
5008 * nios2-tdep.c: Likewise.
5009 * s390-linux-tdep.c: Likewise.
5010 * sparc-obsd-tdep.c: Likewise.
5011 * sparc-tdep.c: Likewise.
5012 * sparc64-tdep.c: Likewise.
5013 * spu-tdep.c: Likewise.
5014 * tic6x-tdep.c: Likewise.
5015 * tilegx-tdep.c: Likewise.
5016 * vax-tdep.c: Likewise.
5017 * xstormy16-tdep.c: Likewise.
5018 * xtensa-tdep.c: Likewise.
5019
5020 * top.c: Do not include "doublest.h".
5021 * aarch64-tdep.c: Likewise.
5022 * alpha-tdep.c: Likewise.
5023 * arm-linux-tdep.c: Likewise.
5024 * m68k-linux-tdep.c: Likewise.
5025 * tilegx-tdep.c: Likewise.
5026 * xstormy16-tdep.c: Likewise.
5027
5028 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5029
5030 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5031 (mipsn32_fbsd_sigframe): Define.
5032 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5033 for FreeBSD/mipsn32.
5034
5035 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5036
5037 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5038 AT_HWCAP.
5039
5040 2017-10-05 Tristan Gingold <tgingold@free.fr>
5041
5042 * MAINTAINERS (Misc): Update my email address.
5043
5044 2017-10-04 Pedro Alves <palves@redhat.com>
5045
5046 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5047 it instead of target_gdbarch.
5048 (get_remote_state, get_remote_packet_size): Adjust
5049 get_remote_arch_state calls, passing down target_gdbarch
5050 explicitly.
5051 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5052 'gdbarch' and use it instead of target_gdbarch.
5053 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5054 passing down target_gdbarch explicitly.
5055 (struct stop_reply) <arch>: New field.
5056 (remote_parse_stop_reply): Use the stopped thread's architecture,
5057 not the current inferior's. Save the architecture in the
5058 stop_reply.
5059 (process_stop_reply): Use the stop reply's architecture.
5060 (process_g_packet, remote_fetch_registers)
5061 (remote_prepare_to_store, store_registers_using_G)
5062 (remote_store_registers): Adjust get_remote_arch_state calls,
5063 using the regcache's architecture.
5064 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5065 passing down target_gdbarch explicitly.
5066 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5067 beneath instead of calling target_gdbarch.
5068 * target.c (default_thread_architecture): Use the specified
5069 inferior's architecture, instead of the current inferior's
5070 architecture (via target_gdbarch).
5071
5072 2017-10-04 Pedro Alves <palves@redhat.com>
5073
5074 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5075 case.
5076 (regcache_print): Handle !target_has_registers here instead.
5077
5078 2017-10-04 Pedro Alves <palves@redhat.com>
5079
5080 * frame.c (create_test_frame): Delete.
5081 * frame.h (create_test_frame): Delete.
5082 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5083 (class regcache_test): Delete.
5084 (test_target_has_registers, test_target_has_stack)
5085 (test_target_has_memory, test_target_prepare_to_store)
5086 (test_target_store_registers): New functions.
5087 (test_target_ops): New class.
5088 (register_to_value_test): Error out if there's already a
5089 process_stratum (or higher) target pushed. Create a fuller mock
5090 environment, with mock target_ops, inferior, address space, thread
5091 and inferior_ptid.
5092 * progspace.c (struct address_space): Move to ...
5093 * progspace.h (struct address_space): ... here.
5094 * regcache.h (regcache::~regcache, regcache::raw_write)
5095 [GDB_SELF_TEST]: No longer virtual.
5096
5097 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5098
5099 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5100
5101 2017-10-04 Pedro Alves <palves@redhat.com>
5102
5103 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5104 out of 'between TRY and CATCH'.
5105
5106 2017-10-04 Pedro Alves <palves@redhat.com>
5107
5108 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5109 * common/common-exceptions.h (TRY): Open an outermost scope.
5110 Expand intro comment.
5111 (CATCH): Reindent.
5112 (END_CATCH): Close the outermost scope.
5113 * completer.c (complete_line_internal): Add missing END_CATCH.
5114
5115 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5116
5117 * NEWS (Changes since GDB 8.0): Add entry about new
5118 'set-cwd-on-gdbserver' feature.
5119 (New remote packets): Add entry for QSetWorkingDir.
5120 * common/common-inferior.h (set_inferior_cwd): New prototype.
5121 * infcmd.c (set_inferior_cwd): Remove "static".
5122 (show_cwd_command): Expand text to include remote debugging.
5123 * remote.c: Add PACKET_QSetWorkingDir.
5124 (remote_protocol_features) <QSetWorkingDir>: New entry for
5125 PACKET_QSetWorkingDir.
5126 (extended_remote_set_inferior_cwd): New function.
5127 (extended_remote_create_inferior): Call
5128 "extended_remote_set_inferior_cwd".
5129 (_initialize_remote): Call "add_packet_config_cmd" for
5130 QSetWorkingDir.
5131
5132 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5133
5134 * NEWS (New commands): Mention "set/show cwd".
5135 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5136 "cd" command's help text.
5137 * common/common-inferior.h (get_inferior_cwd): New prototype.
5138 * infcmd.c (inferior_cwd_scratch): New global variable.
5139 (set_inferior_cwd): New function.
5140 (get_inferior_cwd): Likewise.
5141 (set_cwd_command): Likewise.
5142 (show_cwd_command): Likewise.
5143 (_initialize_infcmd): Add "set/show cwd" commands.
5144 * inferior.h (class inferior) <cwd>: New field.
5145 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5146 (fork_inferior): Change inferior's cwd before its execution.
5147 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5148 to CreateProcess.
5149
5150 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5151
5152 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5153 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5154 (COMMON_OBS): Add gdb_tilde_expand.o.
5155 * common/gdb_tilde_expand.c: New file.
5156 * common/gdb_tilde_expand.h: Likewise.
5157
5158 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5159
5160 * gdbarch.sh (objfile): Remove duplicate declaration.
5161 * gdbarch.h: Regenerate.
5162
5163 2017-10-03 Tom Tromey <tom@tromey.com>
5164
5165 * utils.c (internal_vproblem): Use string_vprintf.
5166
5167 2017-10-03 Tom Tromey <tom@tromey.com>
5168
5169 * printcmd.c (info_symbol_command): Use std::string.
5170
5171 2017-10-03 Tom Tromey <tom@tromey.com>
5172
5173 * top.c (gdb_safe_append_history): Use std::string.
5174
5175 2017-10-03 Tom Tromey <tom@tromey.com>
5176
5177 * event-top.c (stdin_event_handler): Update.
5178 * main.c (captured_main_1): Update.
5179 * top.h (make_delete_ui_cleanup): Remove.
5180 (struct ui): Add constructor and destructor.
5181 (new_ui, delete_ui): Remove.
5182 * top.c (make_delete_ui_cleanup): Remove.
5183 (new_ui_command): Use std::unique_ptr.
5184 (delete_ui_cleanup): Remove.
5185 (ui::ui): Rename from new_ui. Update.
5186 (free_ui): Remove.
5187 (ui::~ui): Rename from delete_ui. Update.
5188
5189 2017-10-03 Tom Tromey <tom@tromey.com>
5190
5191 * symfile.c (load_progress): Use gdb::byte_vector.
5192
5193 2017-10-03 Tom Tromey <tom@tromey.com>
5194
5195 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5196 declaration.
5197 * printcmd.c (x_command): Remove unused declaration.
5198 * symfile.c (symbol_file_command): Remove unused declaration.
5199
5200 2017-10-03 Tom Tromey <tom@tromey.com>
5201
5202 * utils.c (internal_vproblem): Use std::string.
5203 (defaulted_query): Likewise.
5204
5205 2017-10-03 Tom Tromey <tom@tromey.com>
5206
5207 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5208 * top.c (execute_command_to_string): Update.
5209 * utils.c (make_cleanup_restore_page_info): Remove.
5210 (do_restore_page_info_cleanup): Remove.
5211 (set_batch_flag_and_restore_page_info):
5212 New.
5213 (make_cleanup_restore_page_info): Remove.
5214 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5215 (~set_batch_flag_and_restore_page_info): New
5216 (make_cleanup_restore_uinteger): Remove.
5217 (make_cleanup_restore_integer): Remove.
5218 (struct restore_integer_closure): Remove.
5219 (restore_integer): Remove.
5220 * utils.h (struct set_batch_flag_and_restore_page_info): New
5221 class.
5222 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5223 (make_cleanup_restore_page_info): Remove.
5224 (make_cleanup_restore_uinteger) Remove.
5225 (make_cleanup_restore_integer) Remove.
5226
5227 2017-10-03 Tom Tromey <tom@tromey.com>
5228
5229 * record-full.h (record_full_gdb_operation_disable_set): Return
5230 scoped_restore_tmpl<int>.
5231 * infrun.c (adjust_pc_after_break): Update.
5232 (handle_signal_stop): Update.
5233 * record-full.c (record_full_gdb_operation_disable_set): Return
5234 scoped_restore_tmpl<int>.
5235 (record_full_wait_1, record_full_insert_breakpoint)
5236 (record_full_remove_breakpoint, record_full_save)
5237 (record_full_goto_insn): Update.
5238
5239 2017-10-02 Tom Tromey <tom@tromey.com>
5240
5241 PR rust/22236:
5242 * rust-lang.c (rust_val_print_str): New function.
5243 (val_print_struct): Call it.
5244 (rust_subscript): Preserve name of slice type.
5245
5246 2017-10-02 Tom Tromey <tom@tromey.com>
5247
5248 * rust-lang.c (rust_subscript): Handle slices in
5249 EVAL_AVOID_SIDE_EFFECTS case.
5250
5251 2017-10-02 Tom Tromey <tom@tromey.com>
5252
5253 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5254
5255 2017-10-02 Tom Tromey <tom@tromey.com>
5256
5257 * rust-lang.h (rust_slice_type): Add "extern".
5258
5259 2017-10-02 Tom Tromey <tom@tromey.com>
5260 Pedro Alves <palves@redhat.com>
5261
5262 * ada-lang.h (ada_exc_info::operator<): Make const.
5263 (ada_exc_info::operator==): Make const.
5264 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5265 Make const.
5266
5267 2017-09-29 Tom Tromey <tom@tromey.com>
5268
5269 * target.c (read_whatever_is_readable): Change type of "result".
5270 Update.
5271 (free_memory_read_result_vector): Remove.
5272 (read_memory_robust): Change return type. Update.
5273 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5274 bin2hex, std::string.
5275 * target.h (memory_read_result_s): Remove typedef.
5276 (free_memory_read_result_vector): Remove.
5277 (read_memory_robust): Return std::vector.
5278
5279 2017-09-29 Tom Tromey <tom@tromey.com>
5280
5281 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5282
5283 2017-09-29 Tom Tromey <tom@tromey.com>
5284
5285 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5286 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5287 operator< and operator==.
5288 (ada_exceptions_list): Return a std::vector.
5289 * ada-lang.c (ada_exc_info::operator<): Rename from
5290 compare_ada_exception_info.
5291 (ada_exc_info::operator==): New.
5292 (sort_remove_dups_ada_exceptions_list): Change type of
5293 "exceptions".
5294 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5295 (ada_add_global_exceptions): Likewise.
5296 (ada_exceptions_list_1): Return a std::vector.
5297 (ada_exceptions_list): Likewise.
5298
5299 2017-09-29 Tom Tromey <tom@tromey.com>
5300
5301 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
5302 'std::set *'.
5303 (print_one_inferior): Update.
5304 (free_vector_of_ints): Remove.
5305 (list_available_thread_groups): Change "ids" to std::set.
5306 (mi_cmd_list_thread_groups): Update.
5307 (struct collect_cores_data) <core>: Now a std::set.
5308 (collect_cores): Update.
5309 (unique): Remove.
5310 (print_one_inferior): Update.
5311
5312 2017-09-29 Tom Tromey <tom@tromey.com>
5313
5314 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
5315 (mi_execute_async_cli_command): Likewise.
5316 (mi_cmd_trace_frame_collected): Use field_fmt.
5317
5318 2017-09-29 Tom Tromey <tom@tromey.com>
5319
5320 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
5321 gdb::byte_vector.
5322
5323 2017-09-29 Tom Tromey <tom@tromey.com>
5324
5325 * mi/mi-parse.c (mi_parse): Remove unused declaration.
5326
5327 2017-09-29 Tom Tromey <tom@tromey.com>
5328
5329 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
5330
5331 2017-09-29 Tom Tromey <tom@tromey.com>
5332
5333 * varobj.h (varobj_gen_name): Return std::string.
5334 * varobj.c (varobj_gen_name): Return std::string.
5335 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
5336 (mi_cmd_var_delete): Don't copy "name".
5337
5338 2017-09-29 Tom Tromey <tom@tromey.com>
5339
5340 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
5341 (mi_cmd_break_insert_1): Update.
5342
5343 2017-09-29 Tom Tromey <tom@tromey.com>
5344
5345 * target.h (make_scoped_defer_target_commit_resume): Update.
5346 * target.c (make_scoped_defer_target_commit_resume): Rename from
5347 make_cleanup_defer_target_commit_resume. Return a
5348 scoped_restore.
5349 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
5350
5351 2017-09-29 Tom Tromey <tom@tromey.com>
5352
5353 * main.c (captured_main_1): Remove unused declaration.
5354 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
5355
5356 2017-09-29 Tom Tromey <tom@tromey.com>
5357
5358 * symtab.c (search_symbols): Remove unused outer cleanup.
5359 (make_source_files_completion_list): Remove unused declaration.
5360
5361 2017-09-29 Tom Tromey <tom@tromey.com>
5362
5363 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
5364
5365 2017-09-29 Tom Tromey <tom@tromey.com>
5366
5367 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
5368 gdb::byte_vector.
5369
5370 2017-09-29 Tom Tromey <tom@tromey.com>
5371
5372 * complaints.c (vcomplaint): Use std::string.
5373
5374 2017-09-29 Tom Tromey <tom@tromey.com>
5375
5376 * tracepoint.c (trace_variable_command): Use std::string.
5377 (encode_actions_1): Remove unused declarations.
5378 (create_tsv_from_upload): Use std::string.
5379
5380 2017-09-29 Tom Tromey <tom@tromey.com>
5381
5382 * cp-support.c (gdb_demangle): Use std::string.
5383
5384 2017-09-29 Tom Tromey <tom@tromey.com>
5385
5386 * stack.c (parse_frame_specification): Use std::string
5387 (info_frame_command): Use gdb::unique_xmalloc_ptr.
5388
5389 2017-09-29 Tom Tromey <tom@tromey.com>
5390
5391 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
5392
5393 2017-09-29 Tom Tromey <tom@tromey.com>
5394
5395 * utils.c (vfprintf_maybe_filtered): Use std::string.
5396 (vfprintf_unfiltered): Likewise.
5397
5398 2017-09-29 Tom Tromey <tom@tromey.com>
5399
5400 * event-top.c (top_level_prompt): Return std::string.
5401 (display_gdb_prompt): Update.
5402
5403 2017-09-29 Tom Tromey <tom@tromey.com>
5404
5405 * unittests/common-utils-selftests.c (format): New function.
5406 (string_vprintf_tests): New function.
5407 (_initialize_common_utils_selftests): Register new tests.
5408 * common/common-utils.c (string_vprintf): New function.
5409 * common/common-utils.h (string_vprintf): Declare.
5410
5411 2017-09-29 Pedro Alves <palves@redhat.com>
5412
5413 * common/rsp-low.c (unpack_varlen_hex): Constify.
5414 * common/rsp-low.h (unpack_varlen_hex): Constify.
5415 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5416 Constify.
5417 * remote.c (remote_set_permissions, read_ptid)
5418 (remote_current_thread, remote_get_threads_with_qthreadinfo)
5419 (remote_static_tracepoint_marker_at)
5420 (remote_static_tracepoint_markers_by_strid)
5421 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
5422 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
5423 (parse_tracepoint_definition, parse_tsv_definition)
5424 (parse_static_tracepoint_marker_definition): Constify.
5425 * tracepoint.h (parse_static_tracepoint_marker_definition)
5426 (parse_trace_status, parse_tracepoint_status)
5427 (parse_tracepoint_definition, parse_tsv_definition): Constify.
5428
5429 2017-09-29 Pedro Alves <palves@redhat.com>
5430
5431 * remote.c (target_buf, target_buf_size): Delete.
5432 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
5433 Use the connection's packet buffer instead.
5434 All callers adjusted.
5435 (_initialize_remote): Remove references to target_buf and
5436 target_buf_size.
5437
5438 2017-09-28 Pedro Alves <palves@redhat.com>
5439
5440 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5441 unittests/common-utils-selftests.c.
5442 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
5443 (COMMON_OBS): Remove utils-selftests.o.
5444 * utils-selftests.c: Move to ...
5445 * unittests/common-utils-selftests.c: ... here and rename self
5446 test to "string_printf".
5447
5448 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
5449
5450 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
5451 having NULL cus or tus.
5452
5453 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5454
5455 * arm-tdep.c: (convert_from_extended): Remove.
5456 (convert_to_extended): Likewise.
5457 (arm_extract_return_value): Use convert_typed_floating.
5458 (arm_store_return_value): Likewise.
5459
5460 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5461 * sh-tdep.c: Do not include "floatformat.h".
5462 (sh_littlebyte_bigword_type): New function.
5463 (sh_register_convert_to_virtual): Use convert_typed_floating.
5464 (sh_register_convert_to_raw): Likewise.
5465 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5466 (sh64_littlebyte_bigword_type): New function.
5467 (sh64_extract_return_value): Use convert_typed_floating.
5468 (sh64_register_convert_to_virtual): Likewise.
5469 (sh64_register_convert_to_raw): Likewise.
5470
5471 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5472
5473 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
5474 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
5475
5476 * gdbtypes.h (union type_specific): Make field floatformat hold
5477 just a single struct floatformat, not an array.
5478 (floatformat_from_type): Move here.
5479 * gdbtypes.c (floatformat_from_type): Move here. Update to
5480 changed TYPE_FLOATFORMAT definition.
5481 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
5482 (recursive_dump_type): Likewise.
5483 (init_float_type): Install correct floatformat for byte order.
5484 (arch_float_type): Likewise.
5485
5486 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5487
5488 * gdbtypes.c (init_type): Change incoming argument from
5489 length-in-bytes to length-in-bits. Assert length is a
5490 multiple of TARGET_CHAR_BITS.
5491 (arch_type, arch_flags_type): Likewise.
5492 (init_integer_type): Update call to init_type.
5493 (init_character_type): Likewise.
5494 (init_boolean_type): Likewise.
5495 (init_float_type): Likewise.
5496 (init_decfloat_type): Likewise.
5497 (init_complex_type): Likewise.
5498 (init_pointer_type): Likewise.
5499 (objfile_type): Likewise.
5500 (arch_integer_type): Update call to arch_type.
5501 (arch_character_type): Likewise.
5502 (arch_boolean_type): Likewise.
5503 (arch_float_type): Likewise.
5504 (arch_decfloat_type): Likewise.
5505 (arch_complex_type): Likewise.
5506 (arch_pointer_type): Likewise.
5507 (gdbtypes_post_init): Likewise.
5508
5509 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
5510 (read_base_type): Likewise.
5511 * mdebugread.c (basic_type): Likewise.
5512 * stabsread.c (dbx_init_float_type): Likewise.
5513 (rs6000_builtin_type): Likewise.
5514 (read_range_type): Likewise. Also, fix call to init_integer_type
5515 with erroneous length argument.
5516
5517 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
5518 * d-lang.c (build_d_types): Likewise.
5519 * f-lang.c (build_fortran_types): Likewise.
5520 * go-lang.c (build_go_types): Likewise.
5521 * opencl-lang.c (build_opencl_types): Likewise.
5522 * jit.c (finalize_symtab): Likewise.
5523 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5524 (build_std_type_info_type): Likewise.
5525 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
5526 update call to arch_flags_type.
5527
5528 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
5529 arch_type.
5530 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
5531 * windows-tdep.c (windows_get_tlb_type): Likewise.
5532
5533 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
5534 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5535 * m32c-tdep.c (make_types): Likewise.
5536 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5537 (rl78_psw_type): Update call to arch_flags_type.
5538 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
5539 * rx-tdep.c (rx_psw_type): Likewise.
5540 (rx_fpsw_type): Likewise.
5541 * sparc-tdep.c (sparc_psr_type): Likewise.
5542 (sparc_fsr_type): Likewise.
5543 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
5544 (sparc64_ccr_type): Likewise.
5545 (sparc64_fsr_type): Likewise.
5546 (sparc64_fprs_type): Likewise.
5547
5548 2017-09-27 Tom Tromey <tom@tromey.com>
5549
5550 * findcmd.c (find_command): Constify.
5551
5552 2017-09-27 Tom Tromey <tom@tromey.com>
5553
5554 * ada-tasks.c (task_command_1, task_command): Constify.
5555
5556 2017-09-27 Tom Tromey <tom@tromey.com>
5557
5558 * symtab.c (maintenance_print_symbol_cache)
5559 (maintenance_flush_symbol_cache)
5560 (maintenance_print_symbol_cache_statistics): Constify.
5561
5562 2017-09-27 Tom Tromey <tom@tromey.com>
5563
5564 * inferior.c (detach_inferior_command, kill_inferior_command)
5565 (inferior_command): Constify.
5566
5567 2017-09-27 Tom Tromey <tom@tromey.com>
5568
5569 * regcache.c (regcache_print, maintenance_print_registers)
5570 (maintenance_print_raw_registers)
5571 (maintenance_print_cooked_registers)
5572 (maintenance_print_register_groups)
5573 (maintenance_print_remote_registers): Constify.
5574
5575 2017-09-27 Tom Tromey <tom@tromey.com>
5576
5577 * printcmd.c (map_display_numbers, undisplay_command)
5578 (enable_disable_display_command, enable_display_command)
5579 (disable_display_command): Constify.
5580
5581 2017-09-27 Tom Tromey <tom@tromey.com>
5582
5583 * breakpoint.h (delete_command): Don't declare.
5584 * breakpoint.c (delete_command, enable_once_command)
5585 (enable_count_command, enable_delete_command, breakpoint_1)
5586 (maintenance_info_breakpoints, stopin_command, stopat_command)
5587 (delete_command, delete_trace_command, save_breakpoints)
5588 (save_breakpoints_command, save_tracepoints_command): Constify.
5589
5590 2017-09-27 Tom Tromey <tom@tromey.com>
5591
5592 * macrocmd.c (macro_expand_command, macro_expand_once_command)
5593 (skip_ws, extract_identifier, macro_define_command)
5594 (macro_undef_command, macro_list_command): Constify.
5595
5596 2017-09-27 Tom Tromey <tom@tromey.com>
5597
5598 * infcmd.c (environment_info, set_environment_command)
5599 (unset_environment_command, path_info, info_proc_cmd_1)
5600 (info_proc_cmd_mappings, info_proc_cmd_stat)
5601 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
5602 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
5603
5604 2017-09-27 Tom Tromey <tom@tromey.com>
5605
5606 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
5607 Constify.
5608
5609 2017-09-27 Tom Tromey <tom@tromey.com>
5610
5611 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
5612
5613 2017-09-27 Tom Tromey <tom@tromey.com>
5614
5615 * demangle.c (demangle_command): Constify.
5616
5617 2017-09-27 Tom Tromey <tom@tromey.com>
5618
5619 * progspace.c (maintenance_info_program_spaces_command):
5620 Constify.
5621
5622 2017-09-27 Tom Tromey <tom@tromey.com>
5623
5624 * compile/compile.c (check_raw_argument, compile_file_command)
5625 (compile_code_command, compile_print_command): Constify.
5626
5627 2017-09-27 Tom Tromey <tom@tromey.com>
5628
5629 * reggroups.c (maintenance_print_reggroups): Constify.
5630
5631 2017-09-27 Tom Tromey <tom@tromey.com>
5632
5633 * dwarf2read.c (save_gdb_index_command): Constify.
5634
5635 2017-09-27 Tom Tromey <tom@tromey.com>
5636
5637 * stap-probe.c (info_probes_stap_command): Constify.
5638
5639 2017-09-27 Tom Tromey <tom@tromey.com>
5640
5641 * fork-child.c (unset_exec_wrapper_command): Constify.
5642
5643 2017-09-27 Tom Tromey <tom@tromey.com>
5644
5645 * btrace.c (get_uint, get_context_size, no_chunk)
5646 (maint_btrace_packet_history_cmd)
5647 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
5648 (maint_info_btrace_cmd): Constify.
5649
5650 2017-09-27 Tom Tromey <tom@tromey.com>
5651
5652 * reverse.c (delete_bookmark_command): Constify.
5653
5654 2017-09-27 Tom Tromey <tom@tromey.com>
5655
5656 * remote.c (set_memory_packet_size)
5657 (set_memory_write_packet_size, show_memory_write_packet_size)
5658 (set_memory_read_packet_size, show_memory_read_packet_size)
5659 (compare_sections_command, packet_command, remote_put_command)
5660 (remote_get_command, remote_delete_command): Constify.
5661
5662 2017-09-27 Tom Tromey <tom@tromey.com>
5663
5664 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
5665 (set_mipsfpu_double_command, set_mipsfpu_none_command)
5666 (set_mipsfpu_auto_command): Constify.
5667
5668 2017-09-27 Tom Tromey <tom@tromey.com>
5669
5670 * cli/cli-cmds.h (cd_command): Constify.
5671 * cli/cli-cmds.c (cd_command): Constify.
5672
5673 2017-09-27 Tom Tromey <tom@tromey.com>
5674
5675 * thread.c (thread_name_command, thread_find_command): Constify.
5676
5677 2017-09-27 Tom Tromey <tom@tromey.com>
5678
5679 * probe.c (enable_probes_command, disable_probes_command):
5680 Constify.
5681
5682 2017-09-27 Tom Tromey <tom@tromey.com>
5683
5684 * symfile.c (symbol_file_command): Constify.
5685 * gdbcore.h (deprecated_file_changed_hook): Constify.
5686 * exec.c (deprecated_file_changed_hook, exec_file_command)
5687 (file_command): Constify.
5688 * defs.h (symbol_file_command): Constify.
5689
5690 2017-09-27 Tom Tromey <tom@tromey.com>
5691
5692 * remote-fileio.c (set_system_call_allowed)
5693 (show_system_call_allowed): Constify.
5694
5695 2017-09-27 Tom Tromey <tom@tromey.com>
5696
5697 * tracepoint.c (delete_trace_variable_command)
5698 (tfind_end_command, tfind_start_command, tfind_pc_command)
5699 (tfind_tracepoint_command, tfind_line_command)
5700 (tfind_range_command, tfind_outside_command): Constify.
5701
5702 2017-09-27 Tom Tromey <tom@tromey.com>
5703
5704 * ax-gdb.c (maint_agent_printf_command, agent_command)
5705 (agent_eval_command): Constify.
5706
5707 2017-09-27 Tom Tromey <tom@tromey.com>
5708
5709 * tracepoint.c (info_scope_command): Constify.
5710 * python/python.c (gdbpy_decode_line): Constify.
5711 * python/py-breakpoint.c (bppy_init): Constify.
5712 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
5713 * location.h: (new_linespec_location)
5714 (string_to_event_location_basic, string_to_event_location):
5715 Constify.
5716 * location.c (new_linespec_location)
5717 (string_to_event_location_basic, string_to_event_location):
5718 Constify.
5719 * linespec.h (decode_line_with_current_source)
5720 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
5721 * linespec.c (linespec_lex_to_end)
5722 (decode_line_with_current_source)
5723 (decode_line_with_last_displayed): Constify.
5724 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
5725 Constify.
5726 * cli/cli-cmds.c (edit_command, list_command): Constify.
5727 * breakpoint.h (until_break_command, watch_command_wrapper)
5728 (awatch_command_wrapper, rwatch_command_wrapper)
5729 (init_ada_exception_breakpoint): Constify.
5730 * breakpoint.c (break_command_1, dprintf_command)
5731 (break_range_command, watch_command_wrapper)
5732 (rwatch_command_wrapper, awatch_command_wrapper)
5733 (until_break_command, init_ada_exception_breakpoint)
5734 (strace_marker_create_sals_from_location, trace_command)
5735 (ftrace_command, strace_command, struct tracepoint): Constify.
5736 * ax-gdb.c (agent_command_1): Constify.
5737 * ada-lang.c (ada_exception_sal): Constify.
5738
5739 2017-09-27 Tom Tromey <tom@tromey.com>
5740
5741 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
5742 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
5743 (get_context_size, no_chunk, get_insn_history_modifiers)
5744 (cmd_record_insn_history, get_call_history_modifiers)
5745 (cmd_record_call_history): Constify.
5746
5747 2017-09-27 Tom Tromey <tom@tromey.com>
5748
5749 * source.c (show_substitute_path_command)
5750 (unset_substitute_path_command, set_substitute_path_command):
5751 Constify.
5752
5753 2017-09-27 Tom Tromey <tom@tromey.com>
5754
5755 * typeprint.c (maintenance_print_type): Constify.
5756 * maint.c (maintenance_dump_me, maintenance_demangle)
5757 (maintenance_time_display, maintenance_info_sections)
5758 (maintenance_print_statistics, maintenance_deprecate)
5759 (maintenance_undeprecate): Constify.
5760 (maintenance_do_deprecate): Constify. Use std::string.
5761 (maintenance_selftest): Constify.
5762 * gdbtypes.h (maintenance_print_type): Constify.
5763
5764 2017-09-27 Tom Tromey <tom@tromey.com>
5765
5766 * hppa-tdep.c (unwind_command): Constify.
5767
5768 2017-09-27 Tom Tromey <tom@tromey.com>
5769
5770 * target-descriptions.c (unset_tdesc_filename_cmd)
5771 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
5772 Constify.
5773
5774 2017-09-27 Tom Tromey <tom@tromey.com>
5775
5776 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
5777
5778 2017-09-27 Tom Tromey <tom@tromey.com>
5779
5780 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
5781
5782 2017-09-27 Tom Tromey <tom@tromey.com>
5783
5784 * tui/tui-regs.c (tui_reg_command): Constify.
5785
5786 2017-09-27 Tom Tromey <tom@tromey.com>
5787
5788 * skip.c (skip_file_command, skip_function_command)
5789 (skip_enable_command, skip_disable_command, skip_delete_command):
5790 Constify.
5791
5792 2017-09-27 Tom Tromey <tom@tromey.com>
5793
5794 * record-btrace.c (cmd_record_btrace_bts_start)
5795 (cmd_record_btrace_pt_start): Constify.
5796
5797 2017-09-27 Tom Tromey <tom@tromey.com>
5798
5799 * symmisc.c (maintenance_print_symbols)
5800 (maintenance_print_msymbols, maintenance_print_objfiles)
5801 (maintenance_info_symtabs, maintenance_check_symtabs)
5802 (maintenance_expand_symtabs, maintenance_info_line_tables):
5803 Constify.
5804
5805 2017-09-27 Tom Tromey <tom@tromey.com>
5806
5807 * top.c (new_ui_command): Constify.
5808
5809 2017-09-27 Tom Tromey <tom@tromey.com>
5810
5811 * symfile.c (add_symbol_file_command)
5812 (remove_symbol_file_command, list_overlays_command)
5813 (map_overlay_command, unmap_overlay_command)
5814 (overlay_auto_command, overlay_manual_command)
5815 (overlay_off_command, overlay_load_command): Constify.
5816
5817 2017-09-27 Tom Tromey <tom@tromey.com>
5818
5819 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
5820 (info_spu_mailbox_command, info_spu_dma_command)
5821 (info_spu_proxydma_command): Constify.
5822
5823 2017-09-27 Tom Tromey <tom@tromey.com>
5824
5825 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
5826
5827 2017-09-27 Tom Tromey <tom@tromey.com>
5828
5829 * cli/cli-script.c (user_defined_command): Constify.
5830
5831 2017-09-27 Tom Tromey <tom@tromey.com>
5832
5833 * cli/cli-dump.c (dump_memory_command, dump_value_command)
5834 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
5835 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
5836 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
5837 (dump_binary_value, append_binary_memory, append_binary_value):
5838 Constify.
5839 (struct dump_context) <func>: Constify.
5840 (add_dump_command): Update.
5841
5842 2017-09-27 Tom Tromey <tom@tromey.com>
5843
5844 * cli/cli-cmds.c (show_version, show_configuration)
5845 (source_command, show_user): Constify.
5846
5847 2017-09-27 Tom Tromey <tom@tromey.com>
5848
5849 * target.c (maintenance_print_target_stack): Constify.
5850
5851 2017-09-27 Tom Tromey <tom@tromey.com>
5852
5853 * interps.c (interpreter_exec_cmd): Constify.
5854
5855 2017-09-27 Tom Tromey <tom@tromey.com>
5856
5857 * record-full.c (cmd_record_full_restore): Constify.
5858
5859 2017-09-27 Tom Tromey <tom@tromey.com>
5860
5861 * memattr.c (enable_mem_command, disable_mem_command)
5862 (delete_mem_command): Constify.
5863
5864 2017-09-27 Tom Tromey <tom@tromey.com>
5865
5866 * value.c (show_convenience): Constify.
5867
5868 2017-09-27 Tom Tromey <tom@tromey.com>
5869
5870 * gdbcore.h (core_file_command): Update.
5871 * corefile.c (core_file_command): Constify.
5872
5873 2017-09-27 Tom Tromey <tom@tromey.com>
5874
5875 * user-regs.c (maintenance_print_user_registers): Constify.
5876
5877 2017-09-27 Tom Tromey <tom@tromey.com>
5878
5879 * cp-namespace.c (maintenance_cplus_namespace): Constify.
5880
5881 2017-09-27 Tom Tromey <tom@tromey.com>
5882
5883 * cp-support.c (first_component_command): Constify.
5884
5885 2017-09-27 Tom Tromey <tom@tromey.com>
5886
5887 * psymtab.c (maintenance_print_psymbols)
5888 (maintenance_info_psymtabs, maintenance_check_psymtabs):
5889 Constify.
5890
5891 2017-09-27 Tom Tromey <tom@tromey.com>
5892
5893 * windows-tdep.c (display_tib): Constify.
5894
5895 2017-09-27 Tom Tromey <tom@tromey.com>
5896
5897 * linux-fork.c (delete_checkpoint_command)
5898 (detach_checkpoint_command): Constify.
5899
5900 2017-09-27 Tom Tromey <tom@tromey.com>
5901
5902 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
5903
5904 2017-09-27 Tom Tromey <tom@tromey.com>
5905
5906 * arc-tdep.c (dump_arc_instruction_command): Constify.
5907
5908 2017-09-27 Tom Tromey <tom@tromey.com>
5909
5910 * valprint.c (set_radix, show_radix): Constify.
5911
5912 2017-09-27 Tom Tromey <tom@tromey.com>
5913
5914 * dtrace-probe.c (info_probes_dtrace_command): Constify.
5915
5916 2017-09-27 Tom Tromey <tom@tromey.com>
5917
5918 * command.h (not_just_help_class_command): Update.
5919 * cli/cli-decode.h (not_just_help_class_command): Update.
5920 * cli/cli-decode.c (not_just_help_class_command): Constify.
5921
5922 2017-09-27 Tom Tromey <tom@tromey.com>
5923
5924 * gdb_bfd.c (maintenance_info_bfds): Constify.
5925
5926 2017-09-27 Tom Tromey <tom@tromey.com>
5927
5928 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
5929 overloads.
5930 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
5931 (do_const_cfunc): New function.
5932 (cmd_cfunc_eq): New overload.
5933 (cli_user_command_p): Check do_const_cfunc.
5934 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
5935 const_cfunc.
5936 * command.h (add_cmd): Add const overload and no-function
5937 overload.
5938 (set_cmd_cfunc): Add const overload.
5939 (cmd_const_cfunc_ftype): Declare.
5940 (cmd_cfunc_eq): Add const overload.
5941 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
5942 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
5943 overload.
5944
5945 2017-09-27 Tom Tromey <tom@tromey.com>
5946
5947 * macroexp.c (get_next_token_for_substitution): New function.
5948 (substitute_args): Call it. Check for __VA_OPT__.
5949
5950 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5951 Pedro Alves <palves@redhat.com>
5952
5953 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
5954 producer_is_icc_lt_14.
5955 (producer_is_icc_lt_14): New function.
5956 (check_producer): Add code for checking version of ICC.
5957 (producer_is_icc): Move to producer.c.
5958 (read_structure_type): Restrict ICC workaround to ICC<14.
5959 * producer.c: Include selftest.h.
5960 (producer_is_icc, producer_parsing_tests, _initialize_producer):
5961 New functions.
5962 * producer.h (producer_is_icc): New declaration.
5963
5964 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5965
5966 * Makefile.in (SFILES): Add producer.c.
5967 (COMMON_OBS): Add producer.o
5968 * amd64-tdep.c (producer.h): Add new include.
5969 * dwarf2read.c (producer.h): Add new include.
5970 * producer.c: New file.
5971 * producer.h: New file.
5972 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
5973 producer.c.
5974 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
5975 producer.h.
5976
5977 2017-09-26 Matthias Klose <doko@ubuntu.com>
5978
5979 * configure.ac: Search ncursesw before ncurses.
5980 Check ncursesw/ncurses.h before ncurses/ncurses.h.
5981 * gdb_curses.h: Include <ncursesw/ncurses.h>
5982 * config.in, configure: Regenerate.
5983
5984 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5985
5986 PR gdb/22185
5987 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
5988 obsolete.
5989 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
5990 Remove i386sol2 support.
5991 * configure.nat <i386sol2>: Remove.
5992 <sol2-64>: Fold into ...
5993 <sol2>: ... this.
5994 Move common settings to default section.
5995 Add sol-thread.o.
5996 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
5997 x86_64-*-solaris2.1[0-9]*>: Rename to ...
5998 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
5999 <i[34567]86-*-solaris*>: Remove.
6000 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6001
6002 * configure.ac: Remove wctype in libw check.
6003 (_MSE_INT_H): Don't define on Solaris 7-9.
6004 <solaris*>: Remove libthread_db.so.1 check.
6005 * configure: Regenerate.
6006 * config.in: Regenerate.
6007
6008 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6009 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6010 (gdb_ps_size_t): Remove.
6011 Use base types in users.
6012 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6013
6014 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6015
6016 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6017
6018 PR build/22206
6019 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6020 (adi_is_addr_mapped): Likewise.
6021 (PSR_ICC): Don't redefine.
6022 (PSR_IMPL): Likewise.
6023
6024 2017-09-25 Tom Tromey <tom@tromey.com>
6025
6026 * regcache.c (regcache::dump): Use string_printf.
6027
6028 2017-09-25 Tom Tromey <tom@tromey.com>
6029
6030 * regcache.c (class regcache_invalidator): New.
6031 (struct register_to_invalidate): Remove.
6032 (make_cleanup_regcache_invalidate): Remove.
6033 (regcache::raw_write): Use regcache_invalidator.
6034
6035 2017-09-25 Tom Tromey <tom@tromey.com>
6036
6037 * spu-tdep.c (spu2ppu_sniffer): Update.
6038 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6039 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6040 Remove.
6041 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6042 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6043 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6044 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6045 (frame_pop): Update.
6046
6047 2017-09-25 Tom Tromey <tom@tromey.com>
6048
6049 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6050 * regcache.h (regcache_xfree): Don't declare.
6051 * regcache.c (regcache_xfree): Remove.
6052 (do_regcache_xfree): Use delete.
6053 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6054 * linux-fork.c (free_fork): Use delete.
6055 (fork_save_infrun_state): Likewise.
6056 * jit.c (jit_dealloc_cache): Use delete.
6057 * infrun.c (discard_infcall_suspend_state): Use delete.
6058
6059 2017-09-25 Tom Tromey <tom@tromey.com>
6060
6061 * regcache.h (regcache_xmalloc): Don't declare.
6062 (regcache_raw_set_cached_value): Update comment.
6063 * regcache.c (regcache_xmalloc): Remove.
6064 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6065 * jit.c (jit_frame_sniffer): Use new.
6066 * frame.c (frame_save_as_regcache): Use new.
6067
6068 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6069
6070 * NEWS: Advertise support for guarded-storage registers on IBM z.
6071
6072 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6073
6074 * s390-linux-nat.c (have_regset_gs): New static variable.
6075 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6076 control block and guarded-storage broadcast control regsets.
6077 (s390_read_description): Detect whether the target has
6078 guarded-storage support, return appropriate tdesc.
6079 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6080 (features/s390x-gs-linux64.c): Likewise.
6081 (struct gdbarch_tdep) <have_gs>: New field.
6082 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6083 (s390_gsbc_regset): New variables.
6084 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6085 and s390_gsbc_regset, if applicable.
6086 (s390_core_read_description): Check whether core file was from a
6087 target with guarded-storage support; include appropriate regsets.
6088 (s390_gdbarch_init): Add registers for guarded-storage support.
6089 (_initialize_s390_tdep): Initialize new target descriptions that
6090 include registers for guarded-storage support.
6091 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6092 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6093 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6094 (S390_NUM_REGS): Adjust macro definition.
6095 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6096 (tdesc_s390x_gs_linux64): New declarations.
6097
6098 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6099
6100 * features/s390-gs-linux64.xml: New file.
6101 * features/s390-gs.xml: New file.
6102 * features/s390-gsbc.xml: New file.
6103 * features/s390x-gs-linux64.xml: New file.
6104 * features/Makefile (WHICH): Add s390-gs-linux64 and
6105 s390x-gs-linux64.
6106 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6107 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6108 * features/s390-gs-linux64.c: New generated file.
6109 * features/s390x-gs-linux64.c: New file.
6110 * regformats/s390-gs-linux64.dat: New file.
6111 * regformats/s390x-gs-linux64.dat: New file.
6112
6113 2017-09-23 Tom Tromey <tom@tromey.com>
6114
6115 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6116
6117 2017-09-22 Tom Tromey <tom@tromey.com>
6118
6119 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6120 type to scoped_restore_tmpl.
6121 <scoped_input_handler>: Initialize m_quit_handler directly.
6122
6123 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6124
6125 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6126 (cd_command): Likewise. Free "current_directory" before
6127 assigning to it.
6128 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6129 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6130 * top.c (gdb_dirbuf): Remove global declaration.
6131 * top.h (gdb_dirbuf): Likewise.
6132
6133 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6134
6135 * gnulib/aclocal.m4: Regenerate.
6136 * gnulib/config.in: Regenerate.
6137 * gnulib/configure: Regenerate.
6138 * gnulib/import/Makefile.am: Regenerate.
6139 * gnulib/import/Makefile.in: Regenerate.
6140 * gnulib/import/assure.h: New file.
6141 * gnulib/import/at-func.c: Likewise
6142 * gnulib/import/chdir-long.c: New file.
6143 * gnulib/import/chdir-long.h: New file.
6144 * gnulib/import/cloexec.c: New file.
6145 * gnulib/import/cloexec.h: New file.
6146 * gnulib/import/close.c: New file.
6147 * gnulib/import/closedir.c: New file.
6148 * gnulib/import/dirent-private.h: New file.
6149 * gnulib/import/dup-safer.c: New file.
6150 * gnulib/import/dup.c: New file.
6151 * gnulib/import/dup2.c: New file.
6152 * gnulib/import/error.c: New file.
6153 * gnulib/import/error.h: New file.
6154 * gnulib/import/exitfail.c: New file.
6155 * gnulib/import/exitfail.h: New file.
6156 * gnulib/import/fchdir.c: New file.
6157 * gnulib/import/fcntl.c: New file.
6158 * gnulib/import/fcntl.in.h: New file.
6159 * gnulib/import/fd-hook.c: New file.
6160 * gnulib/import/fd-hook.h: New file.
6161 * gnulib/import/fd-safer.c: New file.
6162 * gnulib/import/fdopendir.c: New file.
6163 * gnulib/import/filename.h: New file.
6164 * gnulib/import/filenamecat-lgpl.c: New file.
6165 * gnulib/import/filenamecat.h: New file.
6166 * gnulib/import/fstat.c: New file.
6167 * gnulib/import/fstatat.c: New file.
6168 * gnulib/import/getcwd-lgpl.c: New file.
6169 * gnulib/import/getcwd.c: New file.
6170 * gnulib/import/getdtablesize.c: New file.
6171 * gnulib/import/getlogin_r.c: New file.
6172 * gnulib/import/getprogname.c: New file.
6173 * gnulib/import/getprogname.h: New file.
6174 * gnulib/import/gettext.h: New file.
6175 * gnulib/import/glob-libc.h: New file.
6176 * gnulib/import/glob.c: New file.
6177 * gnulib/import/glob.in.h: New file.
6178 * gnulib/import/intprops.h: New file.
6179 * gnulib/import/m4/chdir-long.m4: New file.
6180 * gnulib/import/m4/close.m4: New file.
6181 * gnulib/import/m4/closedir.m4: New file.
6182 * gnulib/import/m4/d-ino.m4: New file.
6183 * gnulib/import/m4/d-type.m4: New file.
6184 * gnulib/import/m4/dup.m4: New file.
6185 * gnulib/import/m4/dup2.m4: New file.
6186 * gnulib/import/m4/error.m4: New file.
6187 * gnulib/import/m4/fchdir.m4: New file.
6188 * gnulib/import/m4/fcntl.m4: New file.
6189 * gnulib/import/m4/fcntl_h.m4: New file.
6190 * gnulib/import/m4/fdopendir.m4: New file.
6191 * gnulib/import/m4/filenamecat.m4: New file.
6192 * gnulib/import/m4/fstat.m4: New file.
6193 * gnulib/import/m4/fstatat.m4: New file.
6194 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6195 * gnulib/import/m4/getcwd-path-max.m4: New file.
6196 * gnulib/import/m4/getcwd.m4: New file.
6197 * gnulib/import/m4/getdtablesize.m4: New file.
6198 * gnulib/import/m4/getlogin_r.m4: New file.
6199 * gnulib/import/m4/getprogname.m4: New file.
6200 * gnulib/import/m4/glob.m4: New file.
6201 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6202 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6203 * gnulib/import/m4/mempcpy.m4: New file.
6204 * gnulib/import/m4/memrchr.m4: New file.
6205 * gnulib/import/m4/mode_t.m4: New file.
6206 * gnulib/import/m4/msvc-inval.m4: New file.
6207 * gnulib/import/m4/msvc-nothrow.m4: New file.
6208 * gnulib/import/m4/open.m4: New file.
6209 * gnulib/import/m4/openat.m4: New file.
6210 * gnulib/import/m4/opendir.m4: New file.
6211 * gnulib/import/m4/readdir.m4: New file.
6212 * gnulib/import/m4/realloc.m4: New file.
6213 * gnulib/import/m4/rewinddir.m4: New file.
6214 * gnulib/import/m4/save-cwd.m4: New file.
6215 * gnulib/import/m4/strdup.m4: New file.
6216 * gnulib/import/m4/strerror.m4: New file.
6217 * gnulib/import/m4/unistd-safer.m4: New file.
6218 * gnulib/import/mempcpy.c: New file.
6219 * gnulib/import/memrchr.c: New file.
6220 * gnulib/import/msvc-inval.c: New file.
6221 * gnulib/import/msvc-inval.h: New file.
6222 * gnulib/import/msvc-nothrow.c: New file.
6223 * gnulib/import/msvc-nothrow.h: New file.
6224 * gnulib/import/open.c: New file.
6225 * gnulib/import/openat-die.c: New file.
6226 * gnulib/import/openat-priv.h: New file.
6227 * gnulib/import/openat-proc.c: New file.
6228 * gnulib/import/openat.c: New file.
6229 * gnulib/import/openat.h: New file.
6230 * gnulib/import/opendir.c: New file.
6231 * gnulib/import/pipe-safer.c: New file.
6232 * gnulib/import/readdir.c: New file.
6233 * gnulib/import/realloc.c: New file.
6234 * gnulib/import/rewinddir.c: New file.
6235 * gnulib/import/save-cwd.c: New file.
6236 * gnulib/import/save-cwd.h: New file.
6237 * gnulib/import/strdup.c: New file.
6238 * gnulib/import/strerror-override.c: New file.
6239 * gnulib/import/strerror-override.h: New file.
6240 * gnulib/import/strerror.c: New file.
6241 * gnulib/import/unistd--.h: New file.
6242 * gnulib/import/unistd-safer.h: New file.
6243 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6244 "getcwd" and "glob".
6245 * ser-tcp.c: Undefine "close" before redefining it.
6246
6247 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6248
6249 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6250 get rid of res_val.
6251
6252 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6253
6254 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6255 <sol2,sparc>: Likewise.
6256 <sol2-64,i386>: Likewise.
6257
6258 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6259 -Wdeprecated-declarations on *-*-solaris*.
6260 * configure: Regenerate.
6261
6262 * procfs.c: Include "nat/inferior.h".
6263 (procfs_info_proc): Fix typo.
6264
6265 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6266
6267 * remote.c (vector): Include.
6268 (struct private_thread_info): Add field, thread_handle.
6269 (free_private_thread_info): Deallocate storage associated with
6270 thread handle.
6271 (get_private_info_thread): Initialize `thread_handle' field.
6272 (struct thread_item): Add field, thread_handle.
6273 (clear_threads_listing_context): Deallocate storage associated
6274 with thread handle.
6275 (start_thread): Add support for "handle" attribute.
6276 (thread_attributes): Add "handle".
6277 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6278 field.
6279 (remote_update_thread_list): Update thread_handle.
6280 (remote_thread_handle_to_thread_info): New function.
6281 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6282
6283 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6284
6285 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6286 function.
6287 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6288 * python/python-internal.h (thread_object_type): Declare.
6289
6290 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6291
6292 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6293 (target_thread_handle_to_thread_info): Declare.
6294 * target.c (target_thread_handle_to_thread_info): New function.
6295 * target-delegates.c: Regenerate.
6296 * gdbthread.h (find_thread_by_handle): Declare.
6297 * thread.c (find_thread_by_handle): New function.
6298 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
6299 function.
6300 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
6301
6302 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6303
6304 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
6305
6306 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6307
6308 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
6309
6310 2017-09-21 Yao Qi <yao.qi@linaro.org>
6311
6312 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
6313 to gdb_target_obs.
6314
6315 2017-09-20 Tom Tromey <tom@tromey.com>
6316
6317 * breakpoint.c (struct counted_command_line): Remove.
6318 (breakpoint_commands): Update.
6319 (alloc_counted_command_line, incref_counted_command_line)
6320 (decref_counted_command_line, do_cleanup_counted_command_line)
6321 (make_cleanup_decref_counted_command_line): Remove.
6322 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
6323 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
6324 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
6325 (save_breakpoints): Update.
6326 * breakpoint.h (counted_command_line): Now a typedef to
6327 shared_ptr.
6328 (struct breakpoint) <commands>: Now a counted_command_line.
6329 (struct bpstats) <command>: Likewise.
6330
6331 2017-09-20 Tom Tromey <tom@tromey.com>
6332
6333 * breakpoint.c (struct commands_info, do_map_commands_command):
6334 Remove.
6335 (commands_command_1): Update.
6336 (iterate_over_related_breakpoints): Take a function_view.
6337 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
6338 (delete_command): Update.
6339 (map_breakpoint_numbers): Take a function_view.
6340 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
6341 (disable_command): Update.
6342 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
6343 (enable_command): Update.
6344 (struct disp_data, do_enable_breakpoint_disp)
6345 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
6346 (do_map_enable_delete_breakpoint): Remove.
6347 (enable_once_command, enable_count_command, enable_delete_command)
6348 (delete_trace_variable_command): Update.
6349
6350 2017-09-20 Tom Tromey <tom@tromey.com>
6351
6352 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
6353 (bpstat_clear): Use delete.
6354 (bpstats): New constructors.
6355 (bpstat_copy, bpstat_stop_status): Use new.
6356 (dprintf_after_condition_true): Update.
6357 * breakpoint.h (bpstats::bpstats): Add constructors.
6358 (bpstats::~bpstats): Add destructor.
6359
6360 2017-09-20 Pedro Alves <palves@redhat.com>
6361
6362 * eval.c (make_params): Delete, refactored as ...
6363 (class fake_method): ... this new type's ctor.
6364 (fake_method::~fake_method): New.
6365 (evaluate_subexp_standard): Use 'fake_method'.
6366
6367 2017-09-20 Tom Tromey <tom@tromey.com>
6368
6369 * windows-nat.c (get_windows_debug_event, windows_wait)
6370 (do_initial_windows_stuff, windows_attach): Update.
6371 * utils.c (vwarning, internal_vproblem): Update.
6372 (ui_unregister_input_event_handler_cleanup)
6373 (prepare_to_handle_input): Remove.
6374 (class scoped_input_handler): New.
6375 (defaulted_query, prompt_for_continue): Update.
6376 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6377 Update.
6378 * top.c (undo_terminal_modifications_before_exit): Update.
6379 * target/target.h (target_terminal_init, target_terminal_inferior)
6380 (target_terminal_ours): Don't declare.
6381 (class target_terminal): New.
6382 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
6383 (target_terminal_ours_for_output)
6384 (make_cleanup_restore_target_terminal): Don't declare.
6385 (target_terminal_info): Remove.
6386 * target.c (enum terminal_state, terminal_state): Remove.
6387 (target_terminal::terminal_state): Define.
6388 (target_terminal::init): Rename from target_terminal_init.
6389 (target_terminal::inferior): Rename from
6390 target_terminal_inferior.
6391 (target_terminal::ours): Rename from target_terminal_ours.
6392 (target_terminal::ours_for_output): Rename from
6393 target_terminal_ours_for_output.
6394 (target_terminal::info): New method.
6395 (cleanup_restore_target_terminal)
6396 (make_cleanup_restore_target_terminal): Remove.
6397 * solib.c (handle_solib_event): Update.
6398 * remote.c (remote_serial_quit_handler): Update.
6399 (remote_terminal_inferior, remote_wait_as): Update.
6400 * record-full.c (record_full_wait_1): Update.
6401 * nto-procfs.c (procfs_create_inferior): Update.
6402 * nat/fork-inferior.c (startup_inferior): Update.
6403 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6404 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
6405 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
6406 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
6407 (mi_breakpoint_created, mi_breakpoint_deleted)
6408 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
6409 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6410 (mi_user_selected_context_changed, report_initial_inferior):
6411 Update.
6412 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
6413 (linux_nat_terminal_inferior): Update.
6414 * infrun.c (follow_fork_inferior)
6415 (handle_vfork_child_exec_or_exit, do_target_resume)
6416 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
6417 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
6418 Update.
6419 * inflow.c (child_terminal_init, info_terminal_command): Update.
6420 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
6421 (attach_command): Update.
6422 * infcall.c (call_thread_fsm_should_stop): Update.
6423 * gnu-nat.c (gnu_attach): Update.
6424 * extension.c (struct active_ext_lang_state)
6425 (restore_active_ext_lang): Update.
6426 * exceptions.c (print_flush): Update.
6427 * event-top.c (async_enable_stdin, default_quit_handler): Update.
6428 (struct quit_handler_cleanup_data, restore_quit_handler)
6429 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
6430 Remove.
6431 * cp-support.c (gdb_demangle): Update.
6432 * breakpoint.c (update_inserted_breakpoint_locations)
6433 (insert_breakpoint_locations, handle_jit_event)
6434 (disable_breakpoints_in_unloaded_shlib): Update.
6435 * annotate.c (annotate_breakpoints_invalid)
6436 (annotate_frames_invalid): Update.
6437
6438 2017-09-20 Tom Tromey <tom@tromey.com>
6439
6440 * main.c (catch_command_errors): Rename from
6441 catch_command_errors_const.
6442 (captured_main_1): Update.
6443
6444 2017-09-20 Pedro Alves <palves@redhat.com>
6445
6446 * cli/cli-cmds.c (list_command): Use print_sal_location.
6447 (print_sal_location): New function.
6448 (ambiguous_line_spec): Use print_sal_location.
6449 * linespec.c (symbol_to_sal): Record the symbol in the sal.
6450 * symtab.c (find_function_start_sal): Likewise.
6451 * symtab.h (symtab_and_line::symbol): New field.
6452
6453 2017-09-20 Pedro Alves <palves@redhat.com>
6454
6455 * linespec.c (minsym_found): Handle non-text minsyms.
6456 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
6457
6458 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6459
6460 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
6461 backslash.
6462
6463 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6464
6465 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
6466 vmovups instead vmovaps.
6467 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
6468
6469 2017-09-19 John Baldwin <jhb@FreeBSD.org>
6470
6471 * NEWS (Changes since GDB 8.0): Add starti.
6472 * infcmd.c (enum run_break): New.
6473 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
6474 case.
6475 (run_command): Use enum run_how.
6476 (start_command): Likewise.
6477 (starti_command): New function.
6478 (RUN_ARGS_HELP): New macro.
6479 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
6480 commands. Add starti command.
6481
6482 2017-09-19 Yao Qi <yao.qi@linaro.org>
6483
6484 * Makefile.in (monitor.o): Remove the rule.
6485
6486 2017-09-19 Yao Qi <yao.qi@linaro.org>
6487
6488 * annotate.h (struct annotate_arg_emitter): Use
6489 DISABLE_COPY_AND_ASSIGN.
6490 * common/refcounted-object.h (refcounted_object): Likewise.
6491 * completer.h (struct completion_result): Likewise.
6492 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
6493 * filename-seen-cache.h (filename_seen_cache): Likewise.
6494 * gdbcore.h (thread_section_name): Likewise.
6495 * gdb_regex.h (compiled_regex): Likewise.
6496 * gdbthread.h (scoped_restore_current_thread): Likewise.
6497 * inferior.h (scoped_restore_current_inferior): Likewise.
6498 * jit.c (jit_reader): Likewise.
6499 * linespec.h (struct linespec_result): Likewise.
6500 * mi/mi-parse.h (struct mi_parse): Likewise.
6501 * nat/fork-inferior.c (execv_argv): Likewise.
6502 * progspace.h (scoped_restore_current_program_space): Likewise.
6503 * python/python-internal.h (class gdbpy_enter): Likewise.
6504 * regcache.h (regcache): Likewise.
6505 * target-descriptions.c (struct tdesc_reg): Likewise.
6506 (struct tdesc_type): Likewise.
6507 (struct tdesc_feature): Likewise.
6508 * ui-out.h (ui_out_emit_type): Likewise.
6509
6510 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
6511
6512 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
6513 label abort_expression.
6514
6515 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6516
6517 * common/buffer.c (buffer_xml_printf): Adjust.
6518 * common/xml-utils.c (xml_escape_text): Change return type to
6519 std::string, update code accordingly.
6520 * common/xml-utils.h (xml_escape_text): Change return type to
6521 std::string.
6522 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
6523 * windows-tdep.c (windows_xfer_shared_library): Adjust.
6524 * unittests/xml-utils-selftests.c (test_xml_escape_text):
6525 Adjust.
6526
6527 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6528
6529 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
6530 (SUBDIR_UNITTESTS_OBS): Add new object file.
6531 * unittests/xml-utils-selftests.c: New file.
6532
6533 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6534
6535 * common/selftest.h (selftest): New struct/interface.
6536 (register_test): Add name parameter, add new overload.
6537 (run_tests): Add filter parameter.
6538 (for_each_selftest_ftype): New typedef.
6539 (for_each_selftest): New declaration.
6540 * common/selftest.c (tests): Change type to
6541 map<string, unique_ptr<selftest>>.
6542 (simple_selftest): New struct.
6543 (register_test): New function.
6544 (register_test): Add name parameter and use it.
6545 (run_tests): Add filter parameter and use it. Add prints.
6546 Adjust to vector -> map change.
6547 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
6548 registering selftests.
6549 * arm-tdep.c (_initialize_arm_tdep): Likewise.
6550 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
6551 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
6552 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
6553 * findvar.c (_initialize_findvar): Likewise.
6554 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
6555 * maint.c (maintenance_selftest): Update call to run_tests.
6556 (maintenance_info_selftests): New function.
6557 (_initialize_maint_cmds): Register "maintenance info selftests"
6558 command. Update "maintenance selftest" doc.
6559 * regcache.c (_initialize_regcache): Add names when registering
6560 selftests.
6561 * rust-exp.y (_initialize_rust_exp): Likewise.
6562 * selftest-arch.c (gdbarch_selftest): New struct.
6563 (gdbarch_tests): Remove.
6564 (register_test_foreach_arch): Add name parameter. Call
6565 register_test.
6566 (tests_with_arch): Remove, move most content to
6567 gdbarch_selftest::operator().
6568 (_initialize_selftests_foreach_arch): Remove.
6569 * selftest-arch.h (register_test_foreach_arch): Add name
6570 parameter.
6571 (run_tests_with_arch): New declaration.
6572 * utils-selftests.c (_initialize_utils_selftests): Add names
6573 when registering selftests.
6574 * utils.c (_initialize_utils): Likewise.
6575 * unittests/array-view-selftests.c
6576 (_initialize_array_view_selftests): Likewise.
6577 * unittests/environ-selftests.c (_initialize_environ_selftests):
6578 Likewise.
6579 * unittests/function-view-selftests.c
6580 (_initialize_function_view_selftests): Likewise.
6581 * unittests/offset-type-selftests.c
6582 (_initialize_offset_type_selftests): Likewise.
6583 * unittests/optional-selftests.c
6584 (_initialize_optional_selftests): Likewise.
6585 * unittests/scoped_restore-selftests.c
6586 (_initialize_scoped_restore_selftests): Likewise.
6587 * NEWS: Document "maintenance selftest" and "maint info
6588 selftests".
6589
6590 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6591
6592 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
6593 scoped_restore.
6594
6595 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6596
6597 * mi/mi-main.c (mi_load_progress): Make uiout variable
6598 a unique_ptr.
6599
6600 2017-09-15 Pedro Alves <palves@redhat.com>
6601
6602 * compile/compile-c-types.c (convert_enum, convert_int)
6603 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
6604
6605 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6606
6607 * dwarf2read.c (copy_string): Remove.
6608 (parse_macro_definition): Replace copy_string with savestring.
6609
6610 2017-09-15 Yao Qi <yao.qi@linaro.org>
6611
6612 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
6613 gdb_target_obs.
6614 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
6615 Likewise.
6616 (i[34567]86-*-linux*): Likewise.
6617
6618 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6619
6620 * dwarf2expr.h (dwarf_stack_value): Add constructor.
6621 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
6622 <stack>: Change type to std::vector.
6623 <stack_len, stack_allocated>: Remove.
6624 <grow_stack>: Remove.
6625 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6626 (dwarf_expr_context::~dwarf_expr_context): Remove.
6627 (dwarf_expr_context::grow_stack): Remove.
6628 (dwarf_expr_context::push): Adjust.
6629 (dwarf_expr_context::pop): Adjust.
6630 (dwarf_expr_context::fetch): Adjust.
6631 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
6632 (dwarf_expr_context::stack_empty_p): Adjust.
6633 (dwarf_expr_context::execute_stack_op): Adjust.
6634
6635 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6636
6637 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
6638 return type to bool.
6639 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
6640
6641 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6642
6643 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
6644 Change type to bool.
6645 (dwarf_stack_value) <in_stack_memory>: Likewise.
6646 (dwarf_expr_context) <push_address>: Change parameter type to
6647 bool.
6648 <fetch_in_stack_memory>: Change return type to bool.
6649 <push>: Change parameter type to bool.
6650 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
6651 to bool.
6652 (dwarf_expr_context::push_address): Likewise.
6653 (dwarf_expr_context::fetch_in_stack_memory): Change return type
6654 to bool.
6655 (dwarf_expr_context::execute_stack_op): Adjust.
6656 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
6657
6658 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6659
6660 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
6661 (struct dwarf_expr_context) <n_pieces>: Remove.
6662 <pieces>: Change type to std::vector.
6663 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6664 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
6665 pieces.
6666 (dwarf_expr_context::add_piece): Adjust.
6667 * dwarf2loc.c (struct piece_closure): Initialize fields.
6668 <n_pieces>: Remove.
6669 <pieces>: Change type to std::vector.
6670 (allocate_piece_closure): Adjust, change parameter to
6671 std::vector rvalue and std::move it to piece_closure.
6672 (rw_pieced_value): Adjust.
6673 (check_pieced_synthetic_pointer): Adjust.
6674 (indirect_synthetic_pointer): Adjust.
6675 (coerce_pieced_ref): Adjust.
6676 (free_pieced_value_closure): Adjust. Use delete to free
6677 piece_closure.
6678 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
6679 to allocate_piece_closure.
6680 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
6681
6682 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6683
6684 * probe.h (probe_ops_cp): Remove typedef.
6685 (DEF_VEC_P (probe_ops_cp)): Remove.
6686 (all_probe_ops): Change type to std::vector.
6687 * probe.c (info_probes_for_ops): Adjust to vector change.
6688 (probe_linespec_to_ops): Likewise.
6689 (all_probe_ops): Change type to std::vector.
6690 (_initialize_probe): Adjust to vector change.
6691 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
6692 * elfread.c (elf_get_probes): Likewise.
6693 * stap-probe.c (_initialize_stap_probe): Likewise.
6694
6695 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6696
6697 * probe.h (struct bound_probe): Define constructors.
6698 * probe.c (bound_probe_s): Remove typedef.
6699 (DEF_VEC_O (bound_probe_s)): Remove VEC.
6700 (collect_probes): Change return type to std::vector, remove
6701 cleanup.
6702 (compare_probes): Return bool, change parameter type. Change
6703 semantic to "less than".
6704 (gen_ui_out_table_header_info): Change parameter to std::vector
6705 and update.
6706 (exists_probe_with_pops): Likewise.
6707 (info_probes_for_ops): Update to std::vector change.
6708 (enable_probes_command): Likewise.
6709 (disable_probes_command): Likewise.
6710
6711 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6712
6713 * probe.h (struct probe_ops) <get_probes>: Change parameter from
6714 vec to std::vector.
6715 * probe.c (parse_probes_in_pspace): Update.
6716 (find_probes_in_objfile): Update.
6717 (find_probe_by_pc): Update.
6718 (collect_probes): Update.
6719 (probe_any_get_probes): Update.
6720 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
6721 return type to reference to std::vector.
6722 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
6723 std::vector and update.
6724 (dtrace_process_dof): Likewise.
6725 (dtrace_get_probes): Likewise.
6726 * elfread.c (elf_get_probes): Change return type to std::vector,
6727 store an std::vector in bfd_data.
6728 (probe_key_free): Update to std::vector.
6729 * stap-probe.c (handle_stap_probe): Change parameter to
6730 std::vector and update.
6731 (stap_get_probes): Likewise.
6732 * symfile-debug.c (debug_sym_get_probes): Change return type to
6733 std::vector and update.
6734
6735 2017-09-11 Tom Tromey <tom@tromey.com>
6736
6737 * breakpoint.c (program_breakpoint_here_p): Update.
6738 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
6739 from make_show_memory_breakpoints_cleanup. Return a
6740 scoped_restore_tmpl<int>.
6741 (restore_show_memory_breakpoints): Remove.
6742 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
6743 * mem-break.c (memory_validate_breakpoint): Update.
6744 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
6745 (ia64_memory_remove_breakpoint): Update.
6746 (ia64_breakpoint_from_pc): Update.
6747 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
6748 from make_show_memory_breakpoints_cleanup.
6749
6750 2017-09-11 Tom Tromey <tom@tromey.com>
6751
6752 * d-namespace.c (d_lookup_symbol): Use std::string.
6753 (find_symbol_in_baseclass): Likewise.
6754
6755 2017-09-11 Tom Tromey <tom@tromey.com>
6756
6757 * ctf.c (ctf_start): Use std::string.
6758
6759 2017-09-11 Tom Tromey <tom@tromey.com>
6760
6761 * ada-lang.c (is_known_support_routine): Update.
6762 (ada_unhandled_exception_name_addr_from_raise): Update.
6763 * guile/scm-frame.c (gdbscm_frame_name): Update.
6764 * python/py-frame.c (frapy_name): Update.
6765 (frapy_function): Update.
6766 * stack.h (find_frame_funname): Update.
6767 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
6768 (print_frame): Update.
6769
6770 2017-09-11 Tom Tromey <tom@tromey.com>
6771
6772 * findcmd.c (put_bits): Take a gdb::byte_vector.
6773 (parse_find_args): Return gdb::byte_vector. "args" now const.
6774 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
6775 cleanups.
6776 (find_command): Update.
6777
6778 2017-09-11 Tom Tromey <tom@tromey.com>
6779
6780 * cli/cli-script.c (class scoped_restore_hook_in): New.
6781 (clear_hook_in_cleanup): Remove.
6782 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
6783 scoped_restore_hook_in.
6784
6785 2017-09-11 Tom Tromey <tom@tromey.com>
6786
6787 * cli/cli-script.c (restore_interp): Remove.
6788 (read_command_lines): Use scoped_restore_interp.
6789 * interps.c (scoped_restore_interp::set_temp): Rename from
6790 interp_set_temp.
6791 * interps.h (class scoped_restore_interp): New.
6792 (interp_set_temp): Remove.
6793
6794 2017-09-11 Tom Tromey <tom@tromey.com>
6795
6796 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6797 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
6798 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
6799 scoped_restore.
6800 (mi_cmd_break_insert_1): Update.
6801 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
6802 scoped_restore.
6803
6804 2017-09-11 Tom Tromey <tom@tromey.com>
6805
6806 * demangle.c (demangle_command): Update.
6807 * breakpoint.c (disable_command): Update.
6808 (enable_command): Update.
6809 (find_location_by_number): Make "number" const. Use
6810 get_number_trailer.
6811 * cli/cli-utils.c (extract_arg): Return std::string.
6812 * probe.c (parse_probe_linespec): Update. Change types.
6813 (collect_probes): Take string arguments.
6814 (parse_probe_linespec): Likewise.
6815 (info_probes_for_ops): Update.
6816 (enable_probes_command): Update.
6817 (disable_probes_command): Update.
6818 * break-catch-sig.c (catch_signal_split_args): Update.
6819 * mi/mi-parse.c (mi_parse): Update.
6820
6821 2017-09-11 Tom Tromey <tom@tromey.com>
6822
6823 * language.h (language_enum): Make argument const.
6824 * language.c (language_enum): Make argument const.
6825
6826 2017-09-11 Tom Tromey <tom@tromey.com>
6827
6828 * common/common-utils.h (skip_to_space): Remove macro, redeclare
6829 as function.
6830 (skip_to_space): Rename from skip_to_space_const.
6831 * common/common-utils.c (skip_to_space): New function.
6832 (skip_to_space): Rename from skip_to_space_const.
6833 * cli/cli-utils.h (get_number): Rename from get_number_const.
6834 (extract_arg): Rename from extract_arg_const.
6835 * cli/cli-utils.c (get_number): Rename from get_number_const.
6836 (extract_arg): Rename from extract_arg_const.
6837 (number_or_range_parser::get_number): Use ::get_number.
6838 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
6839 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
6840 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
6841 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
6842 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
6843 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
6844 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
6845 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
6846
6847 2017-09-11 Tom Tromey <tom@tromey.com>
6848
6849 * python/python.c (do_start_initialization): Use
6850 py-event-types.def to initialize types.
6851 Define all object type structures.
6852 * python/python-internal.h: Don't declare event initialization
6853 functions.
6854 * python/py-threadevent.c (thread_event_object_type): Don't
6855 define.
6856 * python/py-stopevent.c (stop_event_object_type): Don't define.
6857 * python/py-signalevent.c (signal_event_object_type): Don't
6858 declare or define.
6859 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6860 (clear_objfiles_event_object_type): Don't declare or define.
6861 * python/py-infevents.c (inferior_call_pre_event_object_type)
6862 (inferior_call_post_event_object_type)
6863 (register_changed_event_object_type)
6864 (memory_changed_event_object_type): Don't declare or define.
6865 * python/py-inferior.c (new_thread_event_object_type)
6866 (new_inferior_event_object_type)
6867 (inferior_deleted_event_object_type): Don't declare or define.
6868 * python/py-exitedevent.c (exited_event_object_type): Don't
6869 declare or define.
6870 * python/py-evts.c (gdbpy_initialize_py_events): Use
6871 py-all-events.def.
6872 * python/py-events.h (thread_event_object_type): Don't declare.
6873 (events_object): Use py-all-events.def.
6874 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
6875 py-event-types.def.
6876 * python/py-event-types.def: New file.
6877 * python/py-continueevent.c (create_continue_event_object): Don't
6878 declare or define.
6879 * python/py-bpevent.c (breakpoint_event_object_type): Don't
6880 declare or define.
6881 * python/py-all-events.def: New file.
6882
6883 2017-09-11 Tom Tromey <tom@tromey.com>
6884
6885 * python/py-threadevent.c (create_thread_event_object): Return
6886 gdbpy_ref.
6887 * python/py-stopevent.h (create_stop_event_object)
6888 (create_breakpoint_event_object, create_signal_event_object):
6889 Update.
6890 * python/py-stopevent.c (create_stop_event_object): Return
6891 gdbpy_ref.
6892 (emit_stop_event): Update.
6893 * python/py-signalevent.c (create_signal_event_object): Return
6894 gdbpy_ref.
6895 * python/py-infevents.c (create_inferior_call_event_object):
6896 Update.
6897 * python/py-event.h (create_event_object)
6898 (create_thread_event_object): Update.
6899 * python/py-event.c (create_event_object): Return gdbpy_ref.
6900 * python/py-continueevent.c: Return gdbpy_ref.
6901 * python/py-bpevent.c (create_breakpoint_event_object): Return
6902 gdbpy_ref.
6903
6904 2017-09-11 Tom Tromey <tom@tromey.com>
6905
6906 PR python/15622:
6907 * NEWS: Add entry.
6908 * python/python.c (do_start_initialization): Initialize new event
6909 types.
6910 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
6911 (gdbpy_initialize_inferior_deleted_event)
6912 (gdbpy_initialize_new_thread_event): Declare.
6913 * python/py-threadevent.c (create_thread_event_object): Add option
6914 "thread" parameter.
6915 * python/py-inferior.c (new_thread_event_object_type)
6916 (new_inferior_event_object_type)
6917 (inferior_deleted_event_object_type): Declare.
6918 (python_new_inferior, python_inferior_deleted): New functions.
6919 (add_thread_object): Emit new_thread event.
6920 (gdbpy_initialize_inferior): Attach new functions to corresponding
6921 observers.
6922 (new_thread, new_inferior, inferior_deleted): Define new event
6923 types.
6924 * python/py-evts.c (gdbpy_initialize_py_events): Add new
6925 registries.
6926 * python/py-events.h (events_object) <new_inferior,
6927 inferior_deleted, new_thread>: New fields.
6928 * python/py-event.h (create_thread_event_breakpoint): Add optional
6929 "thread" parameter.
6930
6931 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
6932
6933 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
6934 check current_ui instead.
6935 (internal_vproblem): Likewise.
6936
6937 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
6938
6939 * thread.c (print_thread_info_1): Remove unnecessary calls to
6940 uiout->is_mi_like_p.
6941
6942 2017-09-09 Tom Tromey <tom@tromey.com>
6943
6944 * namespace.h (add_using_directive): Update.
6945 * namespace.c (add_using_directive): Change type of excludes to
6946 std::vector.
6947 * dwarf2read.c (read_import_statement): Use std::vector.
6948 (read_namespace): Update.
6949 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6950
6951 2017-09-09 Tom Tromey <tom@tromey.com>
6952
6953 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
6954
6955 2017-09-09 Tom Tromey <tom@tromey.com>
6956
6957 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
6958
6959 2017-09-09 Tom Tromey <tom@tromey.com>
6960
6961 * stack.c (func_command): Use gdb::def_vector.
6962
6963 2017-09-09 Tom Tromey <tom@tromey.com>
6964
6965 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
6966 ui_out_emit_list, ui_out_emit_tuple.
6967 (mi_cmd_var_update): Likewise.
6968
6969 2017-09-09 Tom Tromey <tom@tromey.com>
6970
6971 * mi/mi-interp.c (mi_user_selected_context_changed): Use
6972 ui_out_redirect_pop.
6973 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
6974 ui_out_redirect_pop.
6975 * utils.c (do_ui_out_redirect_pop)
6976 (make_cleanup_ui_out_redirect_pop): Remove.
6977 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
6978 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
6979 * ui-out.h (ui_out_redirect_pop): New class.
6980
6981 2017-09-09 Tom Tromey <tom@tromey.com>
6982
6983 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
6984 (list_available_thread_groups, mi_cmd_list_thread_groups)
6985 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
6986 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
6987 Likewise.
6988
6989 2017-09-09 Tom Tromey <tom@tromey.com>
6990
6991 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6992 ui_out_emit_tuple.
6993
6994 2017-09-09 Tom Tromey <tom@tromey.com>
6995
6996 * target.c (flash_erase_command): Use ui_out_emit_tuple.
6997 * stack.c (print_frame): Use ui_out_emit_tuple.
6998 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
6999 (info_spu_mailbox_command, info_spu_dma_command)
7000 (info_spu_proxydma_command): Likewise.
7001 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7002 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7003 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7004 ui_out_emit_tuple.
7005 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7006
7007 2017-09-09 Tom Tromey <tom@tromey.com>
7008
7009 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7010 (class ui_out_emit_table): Update comment.
7011 * ui-out.c (do_cleanup_table_end)
7012 (make_cleanup_ui_out_table_begin_end): Remove.
7013 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7014 (info_spu_dma_cmdlist): Likewise.
7015 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7016 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7017 ui_out_emit_table.
7018
7019 2017-09-09 Tom Tromey <tom@tromey.com>
7020
7021 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7022 ui_out_emit_list, gdb::optional.
7023
7024 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7025
7026 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7027 prototype.
7028 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7029 prototype.
7030 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7031 prototype.
7032 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7033 * ada-exp.y: Remove _initialize_ada_exp prototype.
7034 * ada-lang.c: Remove _initialize_ada_language prototype.
7035 * ada-tasks.c: Remove _initialize_tasks prototype.
7036 * addrmap.c: Remove _initialize_addrmap prototype.
7037 * agent.c: Remove _initialize_agent prototype.
7038 * aix-thread.c: Remove _initialize_aix_thread prototype.
7039 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7040 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7041 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7042 prototype.
7043 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7044 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7045 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7046 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7047 prototype.
7048 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7049 prototype.
7050 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7051 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7052 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7053 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7054 prototype.
7055 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7056 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7057 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7058 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7059 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7060 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7061 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7062 prototype.
7063 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7064 prototype.
7065 * annotate.c: Remove _initialize_annotate prototype.
7066 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7067 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7068 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7069 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7070 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7071 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7072 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7073 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7074 prototype.
7075 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7076 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7077 * auto-load.c: Remove _initialize_auto_load prototype.
7078 * auxv.c: Remove _initialize_auxv prototype.
7079 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7080 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7081 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7082 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7083 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7084 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7085 prototype.
7086 * break-catch-throw.c: Remove _initialize_break_catch_throw
7087 prototype.
7088 * breakpoint.c: Remove _initialize_breakpoint prototype.
7089 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7090 * btrace.c: Remove _initialize_btrace prototype.
7091 * charset.c: Remove _initialize_charset prototype.
7092 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7093 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7094 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7095 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7096 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7097 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7098 * coffread.c: Remove _initialize_coffread prototype.
7099 * compile/compile.c: Remove _initialize_compile prototype.
7100 * complaints.c: Remove _initialize_complaints prototype.
7101 * completer.c: Remove _initialize_completer prototype.
7102 * copying.awk: Remove _initialize_copying prototype.
7103 * copying.c: Regenerate.
7104 * core-regset.c: Remove _initialize_core_regset prototype.
7105 * corefile.c: Remove _initialize_core prototype.
7106 * corelow.c: Remove _initialize_corelow prototype.
7107 * cp-abi.c: Remove _initialize_cp_abi prototype.
7108 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7109 * cp-support.c: Remove _initialize_cp_support prototype.
7110 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7111 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7112 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7113 * ctf.c: Remove _initialize_ctf prototype.
7114 * d-lang.c: Remove _initialize_d_language prototype.
7115 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7116 prototype.
7117 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7118 * dbxread.c: Remove _initialize_dbxread prototype.
7119 * dcache.c: Remove _initialize_dcache prototype.
7120 * demangle.c: Remove _initialize_demangler prototype.
7121 * disasm-selftests.c: Remove _initialize_disasm_selftests
7122 prototype.
7123 * disasm.c: Remove _initialize_disasm prototype.
7124 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7125 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7126 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7127 prototype.
7128 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7129 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7130 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7131 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7132 * elfread.c: Remove _initialize_elfread prototype.
7133 * exec.c: Remove _initialize_exec prototype.
7134 * extension.c: Remove _initialize_extension prototype.
7135 * f-lang.c: Remove _initialize_f_language prototype.
7136 * f-valprint.c: Remove _initialize_f_valprint prototype.
7137 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7138 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7139 * filesystem.c: Remove _initialize_filesystem prototype.
7140 * findcmd.c: Remove _initialize_mem_search prototype.
7141 * fork-child.c: Remove _initialize_fork_child prototype.
7142 * frame-base.c: Remove _initialize_frame_base prototype.
7143 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7144 * frame.c: Remove _initialize_frame prototype.
7145 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7146 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7147 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7148 * gcore.c: Remove _initialize_gcore prototype.
7149 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7150 * gdbarch.c: Regenerate.
7151 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7152 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7153 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7154 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7155 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7156 * go-lang.c: Remove _initialize_go_language prototype.
7157 * go32-nat.c: Remove _initialize_go32_nat prototype.
7158 * guile/guile.c: Remove _initialize_guile prototype.
7159 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7160 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7161 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7162 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7163 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7164 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7165 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7166 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7167 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7168 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7169 prototype.
7170 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7171 prototype.
7172 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7173 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7174 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7175 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7176 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7177 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7178 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7179 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7180 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7181 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7182 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7183 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7184 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7185 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7186 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7187 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7188 prototype.
7189 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7190 prototype.
7191 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7192 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7193 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7194 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7195 * infcall.c: Remove _initialize_infcall prototype.
7196 * infcmd.c: Remove _initialize_infcmd prototype.
7197 * inferior.c: Remove _initialize_inferiors prototype.
7198 * inflow.c: Remove _initialize_inflow prototype.
7199 * infrun.c: Remove _initialize_infrun prototype.
7200 * interps.c: Remove _initialize_interpreter prototype.
7201 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7202 * jit.c: Remove _initialize_jit prototype.
7203 * language.c: Remove _initialize_language prototype.
7204 * linux-fork.c: Remove _initialize_linux_fork prototype.
7205 * linux-nat.c: Remove _initialize_linux_nat prototype.
7206 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7207 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7208 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7209 * m2-lang.c: Remove _initialize_m2_language prototype.
7210 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7211 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7212 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7213 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7214 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7215 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7216 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7217 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7218 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7219 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7220 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7221 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7222 * machoread.c: Remove _initialize_machoread prototype.
7223 * macrocmd.c: Remove _initialize_macrocmd prototype.
7224 * macroscope.c: Remove _initialize_macroscope prototype.
7225 * maint.c: Remove _initialize_maint_cmds prototype.
7226 * mdebugread.c: Remove _initialize_mdebugread prototype.
7227 * memattr.c: Remove _initialize_mem prototype.
7228 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7229 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7230 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7231 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7232 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7233 * microblaze-linux-tdep.c: Remove
7234 _initialize_microblaze_linux_tdep prototype.
7235 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7236 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7237 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7238 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7239 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7240 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7241 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7242 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7243 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7244 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7245 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7246 prototype.
7247 * mipsread.c: Remove _initialize_mipsread prototype.
7248 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7249 prototype.
7250 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7251 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7252 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7253 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7254 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7255 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7256 prototype.
7257 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7258 * nto-procfs.c: Remove _initialize_procfs prototype.
7259 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7260 * objc-lang.c: Remove _initialize_objc_language prototype.
7261 * objfiles.c: Remove _initialize_objfiles prototype.
7262 * observer.c: Remove observer_test_first_notification_function,
7263 observer_test_second_notification_function,
7264 observer_test_third_notification_function, and
7265 _initialize_observer prototypes.
7266 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7267 * osabi.c: Remove _initialize_gdb_osabi prototype.
7268 * osdata.c: Remove _initialize_osdata prototype.
7269 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7270 * parse.c: Remove _initialize_parse prototype.
7271 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7272 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7273 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7274 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7275 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7276 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7277 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7278 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7279 * printcmd.c: Remove _initialize_printcmd prototype.
7280 * probe.c: Remove _initialize_probe prototype.
7281 * proc-api.c: Remove _initialize_proc_api prototype.
7282 * proc-events.c: Remove _initialize_proc_events prototype.
7283 * proc-service.c: Remove _initialize_proc_service prototype.
7284 * procfs.c: Remove _initialize_procfs prototype.
7285 * psymtab.c: Remove _initialize_psymtab prototype.
7286 * python/python.c: Remove _initialize_python prototype.
7287 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7288 * record-btrace.c: Remove _initialize_record_btrace prototype.
7289 * record-full.c: Remove _initialize_record_full prototype.
7290 * record.c: Remove _initialize_record prototype.
7291 * regcache.c: Remove _initialize_regcache prototype.
7292 * reggroups.c: Remove _initialize_reggroup prototype.
7293 * remote-notif.c: Remove _initialize_notif prototype.
7294 * remote-sim.c: Remove _initialize_remote_sim prototype.
7295 * remote.c: Remove _initialize_remote prototype.
7296 * reverse.c: Remove _initialize_reverse prototype.
7297 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
7298 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
7299 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
7300 prototype.
7301 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
7302 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
7303 * rust-exp.y: Remove _initialize_rust_exp prototype.
7304 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
7305 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
7306 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
7307 * score-tdep.c: Remove _initialize_score_tdep prototype.
7308 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
7309 prototype.
7310 * ser-go32.c: Remove _initialize_ser_dos prototype.
7311 * ser-mingw.c: Remove _initialize_ser_windows prototype.
7312 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
7313 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
7314 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
7315 * serial.c: Remove _initialize_serial prototype.
7316 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
7317 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
7318 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
7319 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
7320 * skip.c: Remove _initialize_step_skip prototype.
7321 * sol-thread.c: Remove _initialize_sol_thread prototype.
7322 * solib-aix.c: Remove _initialize_solib_aix prototype.
7323 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
7324 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
7325 * solib-frv.c: Remove _initialize_frv_solib prototype.
7326 * solib-spu.c: Remove _initialize_spu_solib prototype.
7327 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
7328 * solib-target.c: Remove _initialize_solib_target prototype.
7329 * solib.c: Remove _initialize_solib prototype.
7330 * source.c: Remove _initialize_source prototype.
7331 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
7332 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
7333 prototype.
7334 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
7335 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
7336 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
7337 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
7338 prototype.
7339 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
7340 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
7341 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
7342 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
7343 prototype.
7344 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
7345 prototype.
7346 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
7347 prototype.
7348 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
7349 prototype.
7350 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
7351 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
7352 prototype.
7353 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
7354 prototype.
7355 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
7356 prototype.
7357 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
7358 prototype.
7359 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
7360 prototype.
7361 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
7362 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
7363 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
7364 * stabsread.c: Remove _initialize_stabsread prototype.
7365 * stack.c: Remove _initialize_stack prototype.
7366 * stap-probe.c: Remove _initialize_stap_probe prototype.
7367 * std-regs.c: Remove _initialize_frame_reg prototype.
7368 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
7369 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
7370 * symfile.c: Remove _initialize_symfile prototype.
7371 * symmisc.c: Remove _initialize_symmisc prototype.
7372 * symtab.c: Remove _initialize_symtab prototype.
7373 * target-dcache.c: Remove _initialize_target_dcache prototype.
7374 * target-descriptions.c: Remove _initialize_target_descriptions
7375 prototype.
7376 * thread.c: Remove _initialize_thread prototype.
7377 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
7378 prototype.
7379 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
7380 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
7381 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
7382 prototype.
7383 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
7384 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
7385 * tracefile.c: Remove _initialize_tracefile prototype.
7386 * tracepoint.c: Remove _initialize_tracepoint prototype.
7387 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
7388 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
7389 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
7390 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
7391 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
7392 * tui/tui-win.c: Remove _initialize_tui_win prototype.
7393 * tui/tui.c: Remove _initialize_tui prototype.
7394 * typeprint.c: Remove _initialize_typeprint prototype.
7395 * user-regs.c: Remove _initialize_user_regs prototype.
7396 * utils.c: Remove _initialize_utils prototype.
7397 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
7398 * valarith.c: Remove _initialize_valarith prototype.
7399 * valops.c: Remove _initialize_valops prototype.
7400 * valprint.c: Remove _initialize_valprint prototype.
7401 * value.c: Remove _initialize_values prototype.
7402 * varobj.c: Remove _initialize_varobj prototype.
7403 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
7404 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
7405 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
7406 * windows-nat.c: Remove _initialize_windows_nat,
7407 _initialize_check_for_gdb_ini, and _initialize_loadable
7408 prototypes.
7409 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
7410 * xcoffread.c: Remove _initialize_xcoffread prototype.
7411 * xml-support.c: Remove _initialize_xml_support prototype.
7412 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
7413 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
7414 prototype.
7415 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
7416 prototype.
7417 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
7418
7419 2017-09-08 Keith Seitz <keiths@redhat.com>
7420
7421 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
7422 field.
7423
7424 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
7425
7426 * f-valprint.c (f_val_print): Remove check for one byte
7427 sized integers. Remove printing of character type.
7428
7429 2017-09-08 Frank Penczek <frank.penczek@intel.com>
7430 Christoph Weinmann <christoph.t.weinmann@intel.com>
7431 Bernhard Heckel <bernhard.heckel@intel.com>
7432
7433 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
7434 to maintain proper indentation when printing pointers/refs.
7435
7436 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7437
7438 GDB 8.0.1 released.
7439
7440 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7441
7442 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
7443
7444 2017-09-05 Tom Tromey <tom@tromey.com>
7445
7446 * parse.c (funcall_chain): Now a std::vector.
7447 (start_arglist, end_arglist): Simplify.
7448 (free_funcalls): Remove.
7449 (parse_exp_in_context_1): Remove cleanup.
7450
7451 2017-09-05 Tom Tromey <tom@tromey.com>
7452
7453 * go-exp.y (go_parse): Don't create a cleanup.
7454
7455 2017-09-05 Tom Tromey <tom@tromey.com>
7456
7457 * d-exp.y (PrimaryExpression): Use std::string.
7458 (d_parse): Don't create a cleanup.
7459
7460 2017-09-05 Tom Tromey <tom@tromey.com>
7461
7462 * utils.c (do_clear_parser_state): Remove.
7463 (make_cleanup_clear_parser_state): Remove.
7464 * p-exp.y (pascal_parse): Use scoped_restore.
7465 * m2-exp.y (m2_parse): Use scoped_restore.
7466 * f-exp.y (f_parse): Use scoped_restore.
7467 * d-exp.y (d_parse): Use scoped_restore.
7468 * c-exp.y (c_parse): Use scoped_restore.
7469 * ada-exp.y (ada_parse): Use scoped_restore.
7470 * utils.h (make_cleanup_clear_parser_state): Remove.
7471
7472 2017-09-06 Keith Seitz <keiths@redhat.com>
7473
7474 * dwarf2read.c (dw2_linkage_name_attr): New function.
7475 (dw2_linkage_name): New function.
7476 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
7477 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
7478 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
7479
7480 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7481
7482 * config/djgpp/djconfig.sh: Correct shell portability issue.
7483
7484 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7485
7486 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
7487
7488 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7489
7490 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
7491 * NEWS: Mention new FreeBSD/mips native configuration.
7492 * configure.host: Add aarch64*-*-freebsd*.
7493 * configure.nat: Likewise.
7494 * aarch64-fbsd-nat.c: New file.
7495
7496 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7497
7498 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
7499 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
7500 * NEWS: Mention new FreeBSD/aarch64 target.
7501 * configure.tgt: Add aarch64*-*-freebsd*.
7502 * aarch64-fbsd-tdep.c: New file.
7503 * aarch64-fbsd-tdep.h: New file.
7504
7505 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7506
7507 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
7508
7509 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7510
7511 * parse.c (find_minsym_type_and_address): Don't relocate addresses
7512 of TLS symbols.
7513
7514 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7515
7516 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
7517 call.
7518
7519 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7520
7521 * infrun.c (follow_exec): Call add_thread after
7522 target_find_description.
7523
7524 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7525
7526 * infrun.c (handle_inferior_event_1): When exec'ing, read
7527 stop_pc after follow_exec.
7528
7529 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7530
7531 * remote.c (process_g_packet): Update error message.
7532
7533 2017-09-05 Yao Qi <yao.qi@linaro.org>
7534
7535 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
7536 targets.
7537
7538 2017-09-05 Pedro Alves <palves@redhat.com>
7539
7540 * eval.c (eval_call, evaluate_funcall): New functions, factored
7541 out from ...
7542 (evaluate_subexp_standard): ... this.
7543
7544 2017-09-05 Yao Qi <yao.qi@linaro.org>
7545
7546 * amd64-tdep.c (amd64_target_description): Create target
7547 descriptions.
7548 (_initialize_amd64_tdep): Don't call functions
7549 initialize_tdesc_amd64_*. Add self tests.
7550 * arch/amd64.c (amd64_create_target_description): Add parameter
7551 is_linux. Call set_tdesc_osabi if is_linux is true.
7552 * arch/amd64.h (amd64_create_target_description): Update the
7553 declaration.
7554 * arch/i386.c (i386_create_target_description): Add parameter
7555 is_linux. Call set_tdesc_osabi if is_linux is true.
7556 * arch/i386.h (i386_create_target_description): Update
7557 declaration.
7558 * configure.tgt: Add i386.o to gdb_target_obs.
7559 * features/Makefile (XMLTOC): Remove i386/*.xml.
7560 * features/i386/amd64-avx-avx512.c: Remove.
7561 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
7562 * features/i386/amd64-avx-mpx.c: Remove.
7563 * features/i386/amd64-avx.c: Remove.
7564 * features/i386/amd64-mpx.c: Remove.
7565 * features/i386/amd64.c: Remove.
7566 * features/i386/i386-avx-avx512.c: Remove.
7567 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
7568 * features/i386/i386-avx-mpx.c: Remove.
7569 * features/i386/i386-avx.c: Remove.
7570 * features/i386/i386-mmx.c: Remove.
7571 * features/i386/i386-mpx.c: Remove.
7572 * features/i386/i386.c: Remove.
7573 * i386-tdep.c: Don't include features/i386/i386*.c., include
7574 target-descriptions.h and arch/i386.h.
7575 (i386_target_description): Create target descriptions.
7576 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
7577 functions. Do self tests.
7578
7579 2017-09-05 Yao Qi <yao.qi@linaro.org>
7580
7581 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
7582 * features/i386/amd64-avx-avx512-linux.c: Removed.
7583 * features/i386/amd64-avx-linux.c: Removed.
7584 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
7585 * features/i386/amd64-avx-mpx-linux.c: Removed.
7586 * features/i386/amd64-linux.c: Removed.
7587 * features/i386/amd64-mpx-linux.c: Removed.
7588 * features/i386/x32-avx-avx512-linux.c: Removed.
7589 * features/i386/x32-avx-linux.c: Removed.
7590 * features/i386/x32-linux.c: Removed.
7591
7592 2017-09-05 Yao Qi <yao.qi@linaro.org>
7593
7594 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
7595 features/i386/*.c.
7596 (amd64_linux_read_description): Call
7597 amd64_create_target_description.
7598 * arch/amd64.c: New file.
7599 * arch/amd64.h: New file.
7600 * configure.tgt (x86_64-*-linux*): Append amd64.o.
7601 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
7602
7603 2017-09-05 Yao Qi <yao.qi@linaro.org>
7604
7605 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
7606 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
7607 (amd64_linux_read_description): Create target descriptions.
7608 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
7609 functions. Add unit tests.
7610 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
7611 x32-core.xml.
7612 * features/i386/64bit-avx.c: Generated.
7613 * features/i386/64bit-avx512.c: Generated.
7614 * features/i386/64bit-core.c: Generated.
7615 * features/i386/64bit-linux.c: Generated.
7616 * features/i386/64bit-mpx.c: Generated.
7617 * features/i386/64bit-pkeys.c: Generated.
7618 * features/i386/64bit-segments.c: Generated.
7619 * features/i386/64bit-sse.c: Generated.
7620 * features/i386/x32-core.c: Generated.
7621 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
7622 c files for amd64-linux and x32-linux.
7623
7624 2017-09-05 Yao Qi <yao.qi@linaro.org>
7625
7626 * amd64-linux-tdep.c (amd64_linux_read_description): New
7627 function.
7628 (amd64_linux_core_read_description): Call
7629 amd64_linux_read_description.
7630 (amd64_linux_init_abi): Likewise.
7631 (amd64_x32_linux_init_abi): Likewise.
7632 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
7633 * x86-linux-nat.c (x86_linux_read_description): Call
7634 amd64_linux_read_description.
7635
7636 2017-09-05 Yao Qi <yao.qi@linaro.org>
7637
7638 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
7639 comments.
7640
7641 2017-09-05 Yao Qi <yao.qi@linaro.org>
7642
7643 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
7644 * features/i386/i386-avx-avx512-linux.c: Remove.
7645 * features/i386/i386-avx-linux.c: Remove.
7646 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
7647 * features/i386/i386-avx-mpx-linux.c: Remove.
7648 * features/i386/i386-linux.c: Remove.
7649 * features/i386/i386-mmx-linux.c: Remove.
7650 * features/i386/i386-mpx-linux.c: Remove.
7651
7652 2017-09-05 Yao Qi <yao.qi@linaro.org>
7653
7654 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
7655 (SFILES): Add arch/i386.c.
7656 (HFILES_NO_SRCDIR): Add arch/i386.h.
7657 * arch/i386.c: New file.
7658 * arch/i386.h: New file.
7659 * arch/tdesc.h (allocate_target_description): Declare.
7660 (set_tdesc_architecture): Declare.
7661 (set_tdesc_osabi): Declare.
7662 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
7663 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
7664 include arch/i386.h.
7665 (i386_linux_read_description): Remove code and call
7666 i386_create_target_description.
7667 (set_tdesc_architecture): New function.
7668 (set_tdesc_osabi): New function.
7669 * target-descriptions.h (allocate_target_description): Remove.
7670
7671 2017-09-05 Yao Qi <yao.qi@linaro.org>
7672
7673 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
7674 * target-descriptions.c (tdesc_create_feature): Likewise, and
7675 adjust code.
7676 * features/i386/32bit-avx.c: Re-generated.
7677 * features/i386/32bit-avx512.c: Re-generated.
7678 * features/i386/32bit-core.c: Re-generated.
7679 * features/i386/32bit-linux.c: Re-generated.
7680 * features/i386/32bit-mpx.c: Re-generated.
7681 * features/i386/32bit-pkeys.c: Re-generated.
7682 * features/i386/32bit-sse.c: Re-generated.
7683
7684 2017-09-05 Yao Qi <yao.qi@linaro.org>
7685
7686 * regformats/regdef.h (struct reg): Override operator == and !=.
7687
7688 2017-09-05 Yao Qi <yao.qi@linaro.org>
7689
7690 * arch/tdesc.h: New file.
7691 * regformats/regdat.sh: Generate code using tdesc_create_reg.
7692 * target-descriptions.c: Update comments.
7693 * target-descriptions.h: Include "arch/tdesc.h". Remove the
7694 declarations.
7695 * features/i386/32bit-avx.c: Re-generated.
7696 * features/i386/32bit-avx512.c: Re-generated.
7697 * features/i386/32bit-core.c: Re-generated.
7698 * features/i386/32bit-linux.c: Re-generated.
7699 * features/i386/32bit-mpx.c: Re-generated.
7700 * features/i386/32bit-pkeys.c: Re-generated.
7701 * features/i386/32bit-sse.c: Re-generated.
7702
7703 2017-09-05 Yao Qi <yao.qi@linaro.org>
7704
7705 * regformats/regdat.sh: Update generated code.
7706
7707 2017-09-05 Yao Qi <yao.qi@linaro.org>
7708
7709 * regformats/regdat.sh: Adjust code order.
7710
7711 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7712
7713 * expprint.c (dump_subexp_body_standard): Use constant format
7714 string in fprintf_filtered call.
7715
7716 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7717
7718 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
7719 NetBSD/i386.
7720 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
7721
7722 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7723
7724 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
7725
7726 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7727
7728 * bsd-kvm.o: Define _KMEMUSER.
7729 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
7730 * configure: Regenerate.
7731
7732 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7733
7734 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
7735 * i386-fbsd-nat.c: Likewise.
7736
7737 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7738
7739 * unittests/array-view-selftests.c: Add include of <array>.
7740
7741 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7742
7743 * spu-tdep.c (flush_ea_cache): Add missing argument to
7744 call_function_by_hand.
7745
7746 2017-09-04 Pedro Alves <palves@redhat.com>
7747
7748 * NEWS (Safer support for debugging with no debug info): New.
7749
7750 2017-09-04 Pedro Alves <palves@redhat.com>
7751
7752 * c-exp.y (function_method, function_method_void): Add current
7753 instance flags to TYPE_INSTANCE.
7754 * dwarf2read.c (check_modifier): New.
7755 (compute_delayed_physnames): Assert that only C++ adds delayed
7756 physnames. Mark fn_fields as const/volatile depending on
7757 physname.
7758 * eval.c (make_params): New type_instance_flags parameter. Use
7759 it as the new type's instance flags.
7760 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
7761 flags element and pass it to make_params.
7762 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
7763 instance flags element.
7764 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
7765 * gdbtypes.h: Include "enum-flags.h".
7766 (type_instance_flags): New enum-flags type.
7767 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
7768 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
7769 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
7770 (follow_type_instance_flags): New function.
7771 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
7772 * parser-defs.h (follow_type_instance_flags): Declare.
7773 * valops.c (value_struct_elt_for_reference): const/volatile must
7774 match too.
7775
7776 2017-09-04 Pedro Alves <palves@redhat.com>
7777
7778 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
7779 function/method scopes; lookup the nested name as a function local
7780 static variable.
7781
7782 2017-09-04 Pedro Alves <palves@redhat.com>
7783
7784 (%type <voidval>): Add function_method.
7785 * c-exp.y (exp): New production for calls with no arguments.
7786 (function_method, function_method_void_or_typelist): New
7787 productions.
7788 (exp): New production for "method()::static_var".
7789 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
7790 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7791 Handle OP_FUNC_STATIC_VAR.
7792 * parse.c (operator_length_standard):
7793 Handle OP_FUNC_STATIC_VAR.
7794
7795 2017-09-04 Pedro Alves <palves@redhat.com>
7796
7797 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
7798 handling.
7799 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7800 Ditto.
7801 * parse.c (operator_length_standard, operator_check_standard):
7802 Ditto.
7803 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
7804
7805 2017-09-04 Pedro Alves <palves@redhat.com>
7806
7807 * ax-gdb.c: Include "typeprint.h".
7808 (gen_expr_for_cast): New function.
7809 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
7810 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
7811 type is unknown.
7812 * dwarf2read.c (new_symbol_full): Fallback to int instead of
7813 nodebug_data_symbol.
7814 * eval.c: Include "typeprint.h".
7815 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
7816 Error out if symbol has unknown type.
7817 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
7818 evaluate_subexp_for_cast.
7819 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
7820 OP_VAR_MSYM_VALUE.
7821 (evaluate_subexp_for_cast): New function.
7822 * gdbtypes.c (init_nodebug_var_type): New function.
7823 (objfile_type): Use it to initialize types of variables with no
7824 debug info.
7825 * typeprint.c (error_unknown_type): New.
7826 * typeprint.h (error_unknown_type): New declaration.
7827 * compile/compile-c-types.c (convert_type_basic): Handle
7828 TYPE_CODE_ERROR; warn and fallback to int for variables with
7829 unknown type.
7830
7831 2017-09-04 Pedro Alves <palves@redhat.com>
7832
7833 * eval.c (evaluate_var_value): New function, factored out from ...
7834 (evaluate_subexp_standard): ... here.
7835
7836 2017-09-04 Pedro Alves <palves@redhat.com>
7837
7838 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
7839 Remove useless assignments to 'op'.
7840
7841 2017-09-04 Pedro Alves <palves@redhat.com>
7842
7843 * eval.c (eval_skip_value): New function.
7844 (evaluate_subexp_standard): Use it.
7845
7846 2017-09-04 Pedro Alves <palves@redhat.com>
7847
7848 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
7849 function name from symbol/minsym and pass it to
7850 error_call_unknown_return_type.
7851
7852 2017-09-04 Pedro Alves <palves@redhat.com>
7853
7854 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
7855 * ax-gdb.c (gen_msym_var_ref): New function.
7856 (gen_expr): Handle OP_VAR_MSYM_VALUE.
7857 * eval.c (evaluate_var_msym_value): New function.
7858 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
7859 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
7860 to call_function_by_hand.
7861 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7862 Handle OP_VAR_MSYM_VALUE.
7863 (union exp_element) <msymbol>: New field.
7864 * minsyms.h (struct type): Forward declare.
7865 (find_minsym_type_and_address): Declare.
7866 * parse.c (write_exp_elt_msym): New function.
7867 (write_exp_msymbol): Delete, refactored as ...
7868 (find_minsym_type_and_address): ... this new function.
7869 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
7870 (operator_length_standard, operator_check_standard): Handle
7871 OP_VAR_MSYM_VALUE.
7872 * std-operator.def (OP_VAR_MSYM_VALUE): New.
7873
7874 2017-09-04 Pedro Alves <palves@redhat.com>
7875
7876 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
7877 TYPE_GNU_IFUNC specially here. Throw error if return type is
7878 unknown.
7879 * ada-typeprint.c (print_func_type): Handle functions with unknown
7880 return type.
7881 * c-typeprint.c (c_type_print_base): Handle functions and methods
7882 with unknown return type.
7883 * compile/compile-c-symbols.c (convert_symbol_bmsym)
7884 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
7885 * compile/compile-c-types.c: Include "objfiles.h".
7886 (convert_func): For functions with unknown return type, warn and
7887 default to int.
7888 * compile/compile-object-run.c (compile_object_run): Adjust call
7889 to call_function_by_hand_dummy.
7890 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
7891 call_function_by_hand.
7892 * eval.c (evaluate_subexp_standard): Adjust calls to
7893 call_function_by_hand. Handle functions and methods with unknown
7894 return type. Pass expect_type to call_function_by_hand.
7895 * f-typeprint.c (f_type_print_base): Handle functions with unknown
7896 return type.
7897 * gcore.c (call_target_sbrk): Adjust call to
7898 call_function_by_hand.
7899 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
7900 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
7901 an integer address type instead of nodebug.
7902 * guile/scm-value.c (gdbscm_value_call): Adjust call to
7903 call_function_by_hand.
7904 * infcall.c (error_call_unknown_return_type): New function.
7905 (call_function_by_hand): New "default_return_type" parameter.
7906 Pass it down.
7907 (call_function_by_hand_dummy): New "default_return_type"
7908 parameter. Use it instead of defaulting to int. If there's no
7909 default and the return type is unknown, throw an error. If
7910 there's a default return type, and the called function has no
7911 debug info, then assume the function is prototyped.
7912 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
7913 New "default_return_type" parameter.
7914 (error_call_unknown_return_type): New declaration.
7915 * linux-fork.c (call_lseek): Cast return type of lseek.
7916 (inferior_call_waitpid, checkpoint_command): Adjust calls to
7917 call_function_by_hand.
7918 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
7919 calls to call_function_by_hand.
7920 * m2-typeprint.c (m2_procedure): Handle functions with unknown
7921 return type.
7922 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7923 (value_nsstring, print_object_command): Adjust calls to
7924 call_function_by_hand.
7925 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
7926 functions with unknown return type.
7927 (pascal_type_print_func_varspec_suffix): New function.
7928 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
7929 TYPE_CODE_METHOD>: Use it.
7930 * python/py-value.c (valpy_call): Adjust call to
7931 call_function_by_hand.
7932 * rust-lang.c (rust_evaluate_funcall): Adjust call to
7933 call_function_by_hand.
7934 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
7935 call_function_by_hand.
7936 * valops.c (value_allocate_space_in_inferior): Adjust call to
7937 call_function_by_hand.
7938 * typeprint.c (type_print_unknown_return_type): New function.
7939 * typeprint.h (type_print_unknown_return_type): New declaration.
7940
7941 2017-09-04 Pedro Alves <palves@redhat.com>
7942
7943 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
7944 types with more than one parameter as prototyped.
7945
7946 2017-09-04 Pedro Alves <palves@redhat.com>
7947
7948 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
7949 (disassemble_command): Use gdb_disassembly_flags instead of bare
7950 int.
7951 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
7952 (dump_insns, do_mixed_source_and_assembly_deprecated)
7953 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
7954 Use gdb_disassembly_flags instead of bare int.
7955 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
7956 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
7957 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
7958 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
7959 (enum gdb_disassembly_flag): ... values of this new enumeration.
7960 (gdb_disassembly_flags): Define.
7961 (gdb_disassembly)
7962 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
7963 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
7964 gdb_disassembly_flags instead of bare int.
7965 * record-btrace.c (btrace_insn_history)
7966 (record_btrace_insn_history, record_btrace_insn_history_range)
7967 (record_btrace_insn_history_from): Use gdb_disassembly_flags
7968 instead of bare int.
7969 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
7970 Use gdb_disassembly_flags instead of bare int.
7971 * target-debug.h (target_debug_print_gdb_disassembly_flags):
7972 Define.
7973 * target-delegates.c: Regenerate.
7974 * target.c (target_insn_history, target_insn_history_from)
7975 (target_insn_history_range): Use gdb_disassembly_flags instead of
7976 bare int.
7977 * target.h: Include "disasm.h".
7978 (struct target_ops) <to_insn_history, to_insn_history_from,
7979 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
7980 int.
7981 (target_insn_history, target_insn_history_from)
7982 (target_insn_history_range): Use gdb_disassembly_flags instead of
7983 bare int.
7984
7985 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7986
7987 * cli/cli-script.c (build_command_line): For if/while commands,
7988 check whether args is empty.
7989
7990 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7991
7992 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
7993 (enum command_control_type): Likewise.
7994 (struct command_line): Likewise.
7995 (free_command_lines): Likewise.
7996 (struct command_lines_deleter): Likewise.
7997 (command_line_up): Likewise.
7998 (read_command_lines): Likewise.
7999 (read_command_lines_1): Likewise.
8000 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8001 (enum command_control_type): Likewise.
8002 (struct command_line): Likewise.
8003 (free_command_lines): Likewise.
8004 (struct command_lines_deleter): Likewise.
8005 (command_line_up): Likewise.
8006 (read_command_lines): Likewise.
8007 (read_command_lines_1): Likewise.
8008 * breakpoint.h: Include cli/cli-script.h.
8009 * extension-priv.h: Likewise.
8010 * gdbcmd.h: Likewise.
8011
8012 2017-09-04 Pedro Alves <palves@redhat.com>
8013
8014 * ada-lang.c (is_known_support_routine): Move sal declaration to
8015 where it is initialized.
8016 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8017 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8018 (clear_command, update_static_tracepoint): Remove init_sal
8019 references. Move declarations closer to initializations.
8020 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8021 initializations.
8022 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8023 references. Move sal declarations closer to initializations.
8024 * frame.c (find_frame_sal): Return a symtab_and_line via function
8025 return instead of output parameter. Remove init_sal references.
8026 * frame.h (find_frame_sal): Return a symtab_and_line via function
8027 return instead of output parameter.
8028 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8029 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8030 instead of memset.
8031 (gdbscm_find_pc_line): Remove init_sal reference.
8032 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8033 references. Move declarations closer to initializations.
8034 * infcmd.c (set_step_frame): Update. Move declarations closer to
8035 initializations.
8036 (finish_backward): Remove init_sal references. Move declarations
8037 closer to initializations.
8038 * infrun.c (process_event_stop_test, handle_step_into_function)
8039 (insert_hp_step_resume_breakpoint_at_frame)
8040 (insert_step_resume_breakpoint_at_caller): Likewise.
8041 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8042 (symbol_to_sal): Likewise.
8043 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8044 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8045 to its initialization.
8046 * reverse.c (save_bookmark_command): Use new/delete. Remove
8047 init_sal references. Move declarations closer to initializations.
8048 * source.c (get_current_source_symtab_and_line): Remove brace
8049 initialization.
8050 (set_current_source_symtab_and_line): Now takes the sal by const
8051 reference. Remove brace initialization.
8052 (line_info): Remove init_sal reference.
8053 * source.h (set_current_source_symtab_and_line): Now takes a
8054 symtab_and_line via const reference.
8055 * stack.c (set_current_sal_from_frame): Adjust.
8056 (print_frame_info): Adjust.
8057 (get_last_displayed_sal): Return the sal via function return
8058 instead of via output parameter. Simplify.
8059 (frame_info): Adjust.
8060 * stack.h (get_last_displayed_sal): Return the sal via function
8061 return instead of via output parameter.
8062 * symtab.c (init_sal): Delete.
8063 (find_pc_sect_line): Remove init_sal references. Move
8064 declarations closer to initializations.
8065 (find_function_start_sal): Remove init_sal references. Move
8066 declarations closer to initializations.
8067 * symtab.h (struct symtab_and_line): In-class initialize all
8068 fields.
8069 * tracepoint.c (set_traceframe_context)
8070 (print_one_static_tracepoint_marker): Remove init_sal references.
8071 Move declarations closer to initializations.
8072 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8073 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8074 declarations closer to initializations.
8075 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8076 init_sal references. Adjust.
8077
8078 2017-09-04 Pedro Alves <palves@redhat.com>
8079
8080 * ax-gdb.c (agent_command_1): Use range-for.
8081 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8082 * breakpoint.c: Include "common/array-view.h".
8083 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8084 parameter from struct symtabs_and_lines to
8085 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8086 (breakpoint_sals_to_pc): Change sals parameter from struct
8087 symtabs_and_lines to std::vector reference.
8088 (check_fast_tracepoint_sals): Change sals parameter from struct
8089 symtabs_and_lines to std::array_view. Use range-for.
8090 (decode_static_tracepoint_spec): Return a std::vector instead of
8091 symtabs_and_lines. Update.
8092 (create_breakpoint): Update.
8093 (break_range_command, until_break_command, clear_command): Update.
8094 (base_breakpoint_decode_location, bkpt_decode_location)
8095 (bkpt_probe_create_sals_from_location)
8096 (bkpt_probe_decode_location, tracepoint_decode_location)
8097 (tracepoint_probe_decode_location)
8098 (strace_marker_create_sals_from_location): Return a std::vector
8099 instead of symtabs_and_lines.
8100 (strace_marker_create_breakpoints_sal): Update.
8101 (strace_marker_decode_location): Return a std::vector instead of
8102 symtabs_and_lines. Update.
8103 (update_breakpoint_locations): Change struct symtabs_and_lines
8104 parameters to gdb::array_view. Adjust.
8105 (location_to_sals): Return a std::vector instead of
8106 symtabs_and_lines. Update.
8107 (breakpoint_re_set_default): Use std::vector instead of struct
8108 symtabs_and_lines.
8109 (decode_location_default): Return a std::vector instead of
8110 symtabs_and_lines. Update.
8111 * breakpoint.h: Include "common/array-view.h".
8112 (struct breakpoint_ops) <decode_location>: Now returns a
8113 std::vector instead of returning a symtabs_and_lines via output
8114 parameter.
8115 (update_breakpoint_locations): Change sals parameters to use
8116 gdb::array_view.
8117 * cli/cli-cmds.c (edit_command, list_command): Update to use
8118 std::vector and gdb::array_view.
8119 (ambiguous_line_spec): Adjust to use gdb::array_view and
8120 range-for.
8121 (compare_symtabs): Rename to ...
8122 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8123 const reference and adjust.
8124 (filter_sals): Rewrite using std::vector and standard algorithms.
8125 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8126 (jump_command): Update to use std::vector.
8127 * linespec.c (struct linespec_state) <canonical_names>: Update
8128 comment.
8129 (add_sal_to_sals_basic): Delete.
8130 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8131 (decode_line_2, create_sals_line_offset)
8132 (convert_address_location_to_sals, convert_linespec_to_sals)
8133 (convert_explicit_location_to_sals, parse_linespec)
8134 (event_location_to_sals, decode_line_full, decode_line_1)
8135 (decode_line_with_current_source)
8136 (decode_line_with_last_displayed, decode_objc)
8137 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8138 (linespec_result::~linespec_result): Adjust to use std::vector
8139 instead of symtabs_and_lines.
8140 * linespec.h (linespec_sals::sals): Now a std::vector.
8141 (struct linespec_result): Use std::vector, bool, and in-class
8142 initialization.
8143 (decode_line_1, decode_line_with_current_source)
8144 (decode_line_with_last_displayed): Return std::vector.
8145 * macrocmd.c (info_macros_command): Use std::vector.
8146 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8147 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8148 std::vector.
8149 * probe.h (parse_probes): Return a std::vector.
8150 * python/python.c (gdbpy_decode_line): Use std::vector and
8151 gdb::array_view.
8152 * source.c (select_source_symtab, line_info): Use std::vector.
8153 * stack.c (func_command): Use std::vector.
8154 * symtab.h (struct symtabs_and_lines): Delete.
8155 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8156
8157 2017-09-04 Pedro Alves <palves@redhat.com>
8158
8159 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8160 unittests/array-view-selftests.c.
8161 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8162 * common/array-view.h: New file.
8163 * unittests/array-view-selftests.c: New file.
8164
8165 2017-09-04 Pedro Alves <palves@redhat.com>
8166
8167 * cli/cli-cmds.c (edit_command): Pass message to
8168 ambiguous_line_spec.
8169 (list_command): Pass message to ambiguous_line_spec. Say
8170 "first"/"last" instead of "start" and "end" to be consistent with
8171 the manual.
8172 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8173 them to print formatted message.
8174
8175 2017-09-04 Pedro Alves <palves@redhat.com>
8176
8177 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8178 ftrace_update_insns by reference instead of pointer.
8179
8180 2017-09-04 Yao Qi <yao.qi@linaro.org>
8181
8182 * i386-go32-tdep.c: Include x86-xstate.h.
8183 (i386_go32_init_abi): Call i386_target_description.
8184 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8185 if xcr0 is X86_XSTATE_X87_MASK.
8186 * i386-tdep.h (tdesc_i386): Remove the declaration.
8187 (tdesc_i386_mmx): Likewise.
8188
8189 2017-09-04 Yao Qi <yao.qi@linaro.org>
8190
8191 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8192 X86_XSTATE_SSE_MASK instead of 0.
8193
8194 2017-09-04 Yao Qi <yao.qi@linaro.org>
8195
8196 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8197 i386_target_description.
8198 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8199 i386_target_description.
8200 * i386-tdep.c (i386_gdbarch_init): Likewise.
8201
8202 2017-09-04 Yao Qi <yao.qi@linaro.org>
8203
8204 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8205 (x86_darwin_init_abi_64): Call amd64_target_description.
8206 * amd64-dicos-tdep.c: Likewise.
8207 * amd64-fbsd-nat.c: Likewise.
8208 * amd64-fbsd-tdep.c: Likewise.
8209 * amd64-nbsd-tdep.c: Likewise.
8210 * amd64-obsd-tdep.c: Likewise.
8211 * amd64-sol2-tdep.c: Likewise.
8212 * amd64-windows-tdep.c: Likewise.
8213 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8214
8215 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8216
8217 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8218 (btrace_function) <insn>: Change type to use std::vector.
8219 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8220 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8221 ftrace_update_insns, ftrace_compute_global_level_offset,
8222 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8223 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8224 change to std::vector.
8225 (ftrace_update_insns): Adjust to change to std::vector, change
8226 type of INSN parameter.
8227 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8228 * record-btrace.c (btrace_call_history_insn_range,
8229 btrace_compute_src_line_range,
8230 record_btrace_frame_prev_register): Adjust to change to
8231 std::vector.
8232 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8233 to change to std::vector.
8234
8235 2017-09-03 Tom Tromey <tom@tromey.com>
8236
8237 * corefile.c (reopen_exec_file): Use std::string.
8238
8239 2017-09-03 Tom Tromey <tom@tromey.com>
8240
8241 * compile/compile.c (compile_register_name_mangled): Return
8242 std::string.
8243 * compile/compile-loc2c.c (pushf_register_address): Update.
8244 (pushf_register): Update.
8245 * compile/compile-c-types.c (convert_array): Update.
8246 * compile/compile-c-symbols.c (generate_vla_size): Update.
8247 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8248 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8249 (convert_one_symbol): Update.
8250 (generate_c_for_for_one_variable): Update.
8251 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8252 std::string.
8253 (generate_register_struct): Update.
8254 * compile/compile-internal.h (c_get_range_decl_name): Return a
8255 std::string.
8256 (compile_register_name_mangled): Return std::string.
8257
8258 2017-09-03 Tom Tromey <tom@tromey.com>
8259
8260 * utils.c (perror_string): Return a std::string.
8261 (throw_perror_with_name, perror_warning_with_name): Update.
8262
8263 2017-09-03 Tom Tromey <tom@tromey.com>
8264
8265 * demangle.c (demangle_command): Use std::string,
8266 unique_xmalloc_ptr.
8267
8268 2017-09-03 Tom Tromey <tom@tromey.com>
8269
8270 * cli/cli-setshow.c (do_set_command): Use std::string.
8271
8272 2017-09-03 Tom Tromey <tom@tromey.com>
8273
8274 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8275
8276 2017-09-03 Tom Tromey <tom@tromey.com>
8277
8278 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8279
8280 2017-09-03 Tom Tromey <tom@tromey.com>
8281
8282 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8283 gdb::unique_xmalloc_ptr.
8284
8285 2017-09-03 Tom Tromey <tom@tromey.com>
8286
8287 * thread.c (print_thread_info_1): Use string_printf.
8288 (thread_apply_command, thread_apply_all_command): Use
8289 std::string.
8290
8291 2017-09-03 Tom Tromey <tom@tromey.com>
8292
8293 * valprint.c (val_print_string): Update.
8294 * gdbcore.h (memory_error_message): Return std::string.
8295 * corefile.c (memory_error_message): Return std::string.
8296 (memory_error): Update.
8297 * breakpoint.c (insert_bp_location): Update.
8298
8299 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
8300
8301 * target/waitstatus.h (target_waitstatus_to_string): Change
8302 return type to std::string.
8303 * target/waitstatus.c (target_waitstatus_to_string): Return
8304 std::string.
8305 * target.h (target_waitstatus_to_string): Remove declaration.
8306 * infrun.c (resume, clear_proceed_status_thread,
8307 print_target_wait_results, do_target_wait, save_waitstatus,
8308 stop_all_threads): Adjust.
8309 * record-btrace.c (record_btrace_wait): Adjust.
8310 * target-debug.h
8311 (target_debug_print_struct_target_waitstatus_p): Adjust.
8312
8313 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8314
8315 PR gdb/22046
8316 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
8317 detection.
8318
8319 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
8320
8321 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
8322 for setting/unsetting environment variables on the remote target.
8323 (New remote packets): Add entries for QEnvironmentHexEncoded,
8324 QEnvironmentUnset and QEnvironmentReset.
8325 * common/environ.c (gdb_environ::operator=): Extend method to
8326 handle m_user_set_env_list and m_user_unset_env_list.
8327 (gdb_environ::clear): Likewise.
8328 (match_var_in_string): Change type of first parameter from 'char
8329 *' to 'const char *'.
8330 (gdb_environ::set): Extend method to handle
8331 m_user_set_env_list and m_user_unset_env_list.
8332 (gdb_environ::unset): Likewise.
8333 (gdb_environ::clear_user_set_env): New method.
8334 (gdb_environ::user_set_envp): Likewise.
8335 (gdb_environ::user_unset_envp): Likewise.
8336 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
8337 m_user_unset_env_list on move constructor/assignment.
8338 (unset): Add new default parameter 'update_unset_list = true'.
8339 (clear_user_set_env): New method.
8340 (user_set_envp): Likewise.
8341 (user_unset_envp): Likewise.
8342 (m_user_set_env_list): New std::set.
8343 (m_user_unset_env_list): Likewise.
8344 * common/rsp-low.c (hex2str): New function.
8345 (bin2hex): New overload for bin2hex function.
8346 * common/rsp-low.c (hex2str): New prototype.
8347 (str2hex): New overload prototype.
8348 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
8349 QEnvironmentUnset and QEnvironmentReset.
8350 (remote_protocol_features): Add QEnvironmentHexEncoded,
8351 QEnvironmentUnset and QEnvironmentReset packets.
8352 (send_environment_packet): New function.
8353 (extended_remote_environment_support): Likewise.
8354 (extended_remote_create_inferior): Call
8355 extended_remote_environment_support.
8356 (_initialize_remote): Add QEnvironmentHexEncoded,
8357 QEnvironmentUnset and QEnvironmentReset packet configs.
8358 * unittests/environ-selftests.c (gdb_selftest_env_var):
8359 New variable.
8360 (test_vector_initialization): New function.
8361 (test_init_from_host_environ): Likewise.
8362 (test_reinit_from_host_environ): Likewise.
8363 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
8364 Likewise.
8365 (test_unset_set_empty_vector): Likewise.
8366 (test_vector_clear): Likewise.
8367 (test_std_move): Likewise.
8368 (test_move_constructor):
8369 (test_self_move): Likewise.
8370 (test_set_unset_reset): Likewise.
8371 (run_tests): Rewrite in terms of the functions above.
8372
8373 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
8374
8375 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
8376 (adi_available): Use a temp variable of type CORE_ADDR as argument
8377 3 when calling target_auxv_search.
8378 (adi_normalize_address): Use masks and xor operators to calculate
8379 normalized address.
8380 (adi_read_versions, adi_write_versions, adi_print_versions)
8381 (do_examine, do_assign): Use paddress.
8382
8383 2017-08-29 John Baldwin <jhb@FreeBSD.org>
8384
8385 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
8386 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
8387 out of loop and add supply of FIR.
8388 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
8389 add collect of FIR.
8390
8391 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
8392
8393 PR gdb/21827
8394 * cli/cli-script.c (define_command): Don't convert command name
8395 to lower case.
8396
8397 2017-08-25 Joel Brobecker <brobecker@adacore.com>
8398
8399 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
8400 Update all callers accordingly. Remove all code blocks handling
8401 the case where DISPP is not NULL.
8402
8403 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8404
8405 PR symtab/22003
8406 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
8407 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8408 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
8409
8410 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8411
8412 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
8413 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
8414 (read_comp_units_from_section): New parameter abbrev_section, use
8415 read_and_check_comp_unit_head, allocate signatured_type if needed.
8416 (create_all_comp_units): Update read_comp_units_from_section caller.
8417
8418 2017-08-23 Pedro Alves <palves@redhat.com>
8419
8420 PR remote/21852
8421 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
8422 to null_ptid and switch to thread without reading the registers
8423 after adding the inferior.
8424
8425 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8426
8427 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
8428 compile-gcc.
8429 * compile/compile.c (compile_gcc, show_compile_gcc): New.
8430 (compile_to_object): Implement compile_gcc.
8431 (_initialize_compile): Install "set compile-gcc". Initialize
8432 compile_gcc.
8433
8434 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8435
8436 * compile/compile.c (compile_to_object): Conditionally call
8437 set_verbose. Conditionally call compile or compile_v0.
8438
8439 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
8440
8441 * sparc64-tdep.h: (adi_normalize_address): New export.
8442 * sparc-nat.h: (open_adi_tag_fd): New export.
8443 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
8444 * sparc64-linux-tdep.c:
8445 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
8446 (sparc64_linux_handle_segmentation_fault): New function.
8447 (sparc64_linux_init_abi): Register
8448 sparc64_linux_handle_segmentation_fault
8449 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
8450 (sparc64_addr_bits_remove): New function.
8451 (sparc64_init_abi): Register sparc64_addr_bits_remove.
8452 (MAX_PROC_NAME_SIZE): New macro.
8453 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
8454 (sparc64adilist): New variable.
8455 (adi_proc_list): New variable.
8456 (find_adi_info): New function.
8457 (add_adi_info): New function.
8458 (get_adi_info_proc): New function.
8459 (get_adi_info): New function.
8460 (info_adi_command): New function.
8461 (read_maps_entry): New function.
8462 (adi_available): New function.
8463 (adi_normalize_address): New function.
8464 (adi_align_address): New function.
8465 (adi_convert_byte_count): New function.
8466 (adi_tag_fd): New function.
8467 (adi_is_addr_mapped): New function.
8468 (adi_read_versions): New function.
8469 (adi_write_versions): New function.
8470 (adi_print_versions): New function.
8471 (do_examine): New function.
8472 (do_assign): New function.
8473 (adi_examine_command): New function.
8474 (adi_assign_command): New function.
8475 (_initialize_sparc64_adi_tdep): New function.
8476
8477 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
8478
8479 * breakpoint.c (breakpoints_info): Rename to ...
8480 (info_breakpoints_command): ... this.
8481 (watchpoints_info): Rename to ...
8482 (info_watchpoints_command): ... this.
8483 (tracepoints_info): Rename to ...
8484 (info_tracepoints_command): ... this.
8485 (_initialize_breakpoint): Adjust.
8486 * dcache.c (dcache_info): Rename to ...
8487 (info_display_command): ... this.
8488 (_initialize_dcache): Adjust.
8489 * frame.h (args_info): Rename to ...
8490 (info_args_command): ... this.
8491 (locals_info): Rename to ...
8492 (info_locals_command): ... this.
8493 * infcmd.c (nofp_registers_info): Rename to ...
8494 (info_registers_command): ... this.
8495 (float_info): Rename to ...
8496 (info_float_command): ... this.
8497 (program_info): Rename to ...
8498 (info_program_command): ... this.
8499 (all_registers_info): Rename to ...
8500 (info_all_registers_command): ... this.
8501 (vector_info): Rename to ...
8502 (info_vector_command): ... this.
8503 (float_info): Rename to ...
8504 (info_float_command): ... this.
8505 (_initialize_infcmd): Adjust.
8506 * inferior.h (term_info): Rename to ...
8507 (info_terminal_command): ... this.
8508 * inflow.c (term_info): Rename to ...
8509 (info_terminal_command): ... this.
8510 (_initialize_inflow): Adjust.
8511 * infrun.c (signals_info): Rename to ...
8512 (info_signals_command): ... this.
8513 (_initialize_infrun): Adjust.
8514 * objc-lang.c (classes_info): Rename to ...
8515 (info_classes_command): ... this.
8516 (selectors_info): Rename to ...
8517 (info_selectors_command): ... this.
8518 (_initialize_objc_language): Adjust.
8519 * printcmd.c (sym_info): Rename to ...
8520 (info_symbol_command): ... this.
8521 (address_info): Rename to ...
8522 (info_address_command): ... this.
8523 (display_info): Rename to ...
8524 (info_display_command): ... this.
8525 (_initialize_printcmd): Adjust.
8526 * reverse.c (bookmarks_info): Rename to ...
8527 (info_breakpoints_command): ... this.
8528 (_initialize_reverse): Adjust.
8529 * ser-go32.c (dos_info): Rename to ...
8530 (info_serial_command): ... this.
8531 (_initialize_ser_dos): Adjust.
8532 * skip.c (skip_info): Rename to ...
8533 (info_skip_command): ... this.
8534 (_initialize_step_skip): Adjust.
8535 * source.c (line_info): Rename to ...
8536 (info_line_command): ... this.
8537 (source_info): Rename to ...
8538 (info_source_command)
8539 * stack.c (frame_info): Rename to ...
8540 (info_frame_command): ... this.
8541 (locals_info): Rename to ...
8542 (info_locals_command): ... this.
8543 (args_info): Rename to ...
8544 (info_args_command): ... this.
8545 (_initialize_stack): Adjust.
8546 * symtab.c (sources_info): Rename to ...
8547 (info_sources_command): ... this.
8548 (variables_info): Rename to ...
8549 (info_variables_command): ... this.
8550 (functions_info): Rename to ...
8551 (info_functions_command): ... this.
8552 (types_info): Rename to ...
8553 (info_types_command): ... this.
8554 (_initialize_symtab): Adjust.
8555 * target.c (target_info): Rename to ...
8556 (info_target_command): ... this.
8557 (initialize_targets): Adjust.
8558 * tracepoint.c (tvariables_info): Rename to ...
8559 (info_tvariables_command): ... this.
8560 (scope_info): Rename to ...
8561 (info_scope_command): ... this.
8562 (trace_dump_actions): Adjust.
8563 (_initialize_tracepoint): Adjust.
8564
8565 2017-08-22 Tom Tromey <tom@tromey.com>
8566
8567 * breakpoint.h (install_breakpoint): Update.
8568 * breakpoint.c (add_solib_catchpoint): Update.
8569 (install_breakpoint): Change argument to a std::unique_ptr.
8570 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
8571 (create_breakpoint_sal, create_breakpoint): Update.
8572 (watch_command_1, catch_exec_command_1)
8573 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
8574 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
8575 Return the breakpoint.
8576 (set_raw_breakpoint_without_location, set_raw_breakpoint)
8577 (new_single_step_breakpoint): Update.
8578 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
8579 std::unique_ptr.
8580 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8581 std::unique_ptr.
8582 * break-catch-sig.c (create_signal_catchpoint): Use
8583 std::unique_ptr.
8584 * ada-lang.c (create_ada_exception_catchpoint): Use
8585 std::unique_ptr.
8586
8587 2017-08-22 Tom Tromey <tom@tromey.com>
8588
8589 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
8590
8591 2017-08-22 Tom Tromey <tom@tromey.com>
8592
8593 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
8594 (lookup_partial_symbol): Update.
8595
8596 2017-08-22 Tom Tromey <tom@tromey.com>
8597
8598 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
8599 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
8600 (find_and_open_source, symtab_to_fullname): Update.
8601 * psymtab.c (psymtab_to_fullname): Update.
8602
8603 2017-08-22 Tom Tromey <tom@tromey.com>
8604
8605 * exec.c (exec_file_attach): Update.
8606 * linux-thread-db.c (try_thread_db_load): Update.
8607 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
8608 * utils.c (gdb_realpath): Change return type.
8609 (gdb_realpath_keepfile): Update.
8610 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
8611 (_initialize_utils): Register the new self test.
8612 * source.c (openp): Update.
8613 (find_and_open_source): Update.
8614 * nto-tdep.c (nto_find_and_open_solib): Update.
8615 * main.c (set_gdb_data_directory): Update.
8616 (captured_main_1): Update.
8617 * dwarf2read.c (dwarf2_get_dwz_file): Update
8618 (dw2_map_symbol_filenames): Update.
8619 * auto-load.c (auto_load_safe_path_vec_update): Update.
8620 (filename_is_in_auto_load_safe_path_vec): Change type of
8621 "filename_realp".
8622 (auto_load_objfile_script): Update.
8623 (file_is_auto_load_safe): Update. Use std::string.
8624 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
8625
8626 2017-08-22 Tom Tromey <tom@tromey.com>
8627
8628 * utils.c (gdb_realpath_keepfile): Return a
8629 gdb::unique_xmalloc_ptr.
8630 * exec.c (exec_file_attach): Update.
8631 * utils.h (gdb_realpath_keepfile): Return a
8632 gdb::unique_xmalloc_ptr.
8633
8634 2017-08-22 Tom Tromey <tom@tromey.com>
8635
8636 * compile/compile.c (compile_file_command): Use
8637 gdb::unique_xmalloc_ptr, std::string.
8638 * utils.c (gdb_abspath): Change return type.
8639 * source.c (openp): Update.
8640 * objfiles.c (allocate_objfile): Update.
8641 * main.c (set_gdb_data_directory): Update.
8642 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
8643
8644 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
8645
8646 * cli-cmds.c (list_commands): List actual code around more than
8647 one location.
8648
8649 2017-08-21 John Baldwin <jhb@FreeBSD.org>
8650
8651 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
8652
8653 2017-08-21 Pedro Alves <palves@redhat.com>
8654
8655 PR gdb/19487
8656 * c-exp.y (variable production): Handle function aliases.
8657 * minsyms.c (msymbol_is_text): New function.
8658 * minsyms.h (msymbol_is_text): Declare.
8659 * symtab.c (find_function_alias_target): New function.
8660 * symtab.h (find_function_alias_target): Declare.
8661
8662 2017-08-21 Pedro Alves <palves@redhat.com>
8663
8664 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
8665 typedefs.
8666 * typeprint.c (whatis_exp): If handling "whatis", and expression
8667 is OP_TYPE, strip one typedef level. Otherwise don't strip
8668 typedefs here.
8669 * valops.c (value_cast): Save "to" type before resolving
8670 stubs/typedefs. Use that type as resulting value's type.
8671
8672 2017-08-18 Tom Tromey <tom@tromey.com>
8673 Pedro Alves <palves@redhat.com>
8674
8675 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
8676 * sol-thread.c (sol_thread_resume, sol_thread_wait)
8677 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
8678 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
8679 * proc-service.c (ps_xfer_memory): Use scoped_restore.
8680 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
8681 (linux_get_siginfo_data): Add "thread" argument. Use
8682 scoped_restore.
8683 * linux-nat.c (linux_child_follow_fork)
8684 (check_stopped_by_watchpoint): Use scoped_restore.
8685 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
8686 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
8687 (restore_inferior_ptid, save_inferior_ptid): Remove.
8688 * btrace.c (btrace_fetch): Use scoped_restore.
8689 * bsd-uthread.c (bsd_uthread_fetch_registers)
8690 (bsd_uthread_store_registers): Use scoped_restore.
8691 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
8692 scoped_restore.
8693 * aix-thread.c (aix_thread_resume, aix_thread_wait)
8694 (aix_thread_xfer_partial): Use scoped_restore.
8695 * inferior.h (save_inferior_ptid): Remove.
8696
8697 2017-08-18 Yao Qi <yao.qi@linaro.org>
8698
8699 PR tdep/21818
8700 * arm-tdep.c (gdb_print_insn_arm): Mark
8701 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
8702
8703 2017-08-18 Yao Qi <yao.qi@linaro.org>
8704
8705 * NEWS: Mention GDBserver's new option "--selftest".
8706 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
8707 * selftest.c: Move it to common/selftest.c.
8708 * selftest.h: Move it to common/selftest.h.
8709 * selftest-arch.c (reset): New function.
8710 (tests_with_arch): Call reset.
8711
8712 2017-08-18 Yao Qi <yao.qi@linaro.org>
8713
8714 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
8715 instead of exception_fprintf and printf_filtered.
8716
8717 2017-08-18 Yao Qi <yao.qi@linaro.org>
8718
8719 * selftest.c (register_self_test): Rename it to
8720 selftests::register_test.
8721 (run_self_tests): selftest::run_tests.
8722 * selftest.h: Update declarations.
8723 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
8724 selftests::register_test_foreach_arch.
8725 * selftest-arch.h: Update declaration.
8726 * aarch64-tdep.c: Update.
8727 * arm-tdep.c: Likewise.
8728 * disasm-selftests.c: Likewise.
8729 * dwarf2loc.c: Likewise.
8730 * dwarf2-frame.c: Likewise.
8731 * findvar.c: Likewise.
8732 * gdbarch-selftests.c: Likewise.
8733 * maint.c (maintenance_selftest): Likewise.
8734 * regcache.c: Likewise.
8735 * rust-exp.y: Likewise.
8736 * selftest-arch.c: Likewise.
8737 * unittests/environ-selftests.c: Likewise.
8738 * unittests/function-view-selftests.c: Likewise.
8739 * unittests/offset-type-selftests.c: Likewise.
8740 * unittests/optional-selftests.c: Likewise.
8741 * unittests/scoped_restore-selftests.c: Likewise.
8742 * utils-selftests.c: Likewise.
8743
8744 2017-08-17 Pedro Alves <palves@redhat.com>
8745
8746 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
8747 local.
8748
8749 2017-08-17 Pedro Alves <palves@redhat.com>
8750
8751 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
8752 field.
8753 (reset_die_in_process): Delete, replaced by ...
8754 (process_die_scope): ... this new class. Make it responsible for
8755 freeing cu->line_header too.
8756 (process_die): Use process_die_scope.
8757 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
8758 cu->line_header_die_owner. Don't release the line header if it's
8759 owned by the CU.
8760 (setup_type_unit_groups): Make the CU/DIE own the line header.
8761 Don't release the line header here.
8762
8763 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
8764
8765 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
8766
8767 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
8768
8769 * NEWS: Mention new shortcuts for nexti and stepi in TUI
8770 Single-Key mode
8771
8772 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
8773
8774 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
8775 mode command list.
8776
8777 2017-08-15 Stafford Horne <shorne@gmail.com>
8778
8779 * MAINTAINERS (Write After Approval): Add Stafford Horne.
8780
8781 2017-08-15 Stafford Horne <shorne@gmail.com>
8782
8783 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
8784
8785 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
8786
8787 PR gdb/21954
8788 * infcmd.c (unset_environment_command): Use the 'clear' method on
8789 the environment instead of resetting it.
8790
8791 2017-08-15 John Baldwin <jhb@FreeBSD.org>
8792
8793 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
8794 platforms.
8795
8796 2017-08-14 Tom Tromey <tom@tromey.com>
8797
8798 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
8799 (print_binary_chars): Likewise.
8800 (BITS_IN_BYTES): Remove.
8801
8802 2017-08-14 Tom Tromey <tom@tromey.com>
8803
8804 PR gdb/21675
8805 * valprint.c (LOW_ZERO): Change value to 034.
8806 (print_octal_chars): Add static_asserts for octal constants.
8807 * printcmd.c (print_scalar_formatted): Add 'd' case.
8808
8809 2017-08-11 Tom Tromey <tom@tromey.com>
8810
8811 * symfile.c (add_symbol_file_command): Use std::vector.
8812
8813 2017-08-14 Tom Tromey <tom@tromey.com>
8814
8815 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
8816 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8817 std::move.
8818 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
8819
8820 2017-08-11 Pedro Alves <palves@redhat.com>
8821
8822 * infrun.c (process_event_stop_test): Adjust
8823 function_name_is_marked_for_skip call.
8824 * skip.c: Include <list>.
8825 (skiplist_entry): Make it a class with private fields, and
8826 getters/setters.
8827 (skiplist_entry_chain): Delete.
8828 (skiplist_entries): New.
8829 (skiplist_entry_count): Delete.
8830 (highest_skiplist_entry_num): New.
8831 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
8832 (add_skiplist_entry): Delete.
8833 (skiplist_entry::skiplist_entry): New.
8834 (skiplist_entry::add_entry): New.
8835 (skip_file_command, skip_function): Adjust.
8836 (compile_skip_regexp): Delete.
8837 (skip_command): Don't compile regexp here. Adjust to use
8838 skiplist_entry::add_entry.
8839 (skip_info): Adjust to use range-for and getters.
8840 (skip_enable_command, skip_disable_command): Adjust to use
8841 range-for and setters.
8842 (skip_delete_command): Adjust to use std::list.
8843 (add_skiplist_entry): Delete.
8844 (skip_file_p): Delete, refactored as ...
8845 (skiplist_entry::do_skip_file_p): ... this new method.
8846 (skip_gfile_p): Delete, refactored as ...
8847 (skiplist_entry::do_gskip_file_p): ... this new method.
8848 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
8849 (skiplist_entry::skip_function_p): ... this new method.
8850 (function_name_is_marked_for_skip): Now returns bool, and takes
8851 the function sal by const reference. Adjust to use range-for and
8852 skiplist_entry methods.
8853 (_initialize_step_skip): Remove references to
8854 skiplist_entry_chain, skiplist_entry_count.
8855 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
8856 takes the function sal by const reference.
8857
8858 2017-08-11 Yao Qi <yao.qi@linaro.org>
8859
8860 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
8861 (dwarf2_frame_cache): Remove reset_cache_cleanup.
8862 (dwarf2_frame_cache):
8863 * frame-unwind.c (frame_unwind_try_unwinder): Catch
8864 RETURN_MASK_ALL and set *this_case to NULL.
8865 * frame-unwind.h: Update comments.
8866
8867 2017-08-11 Yao Qi <yao.qi@linaro.org>
8868
8869 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
8870 (dwarf2_frame_state_copy_regs): Remove.
8871 (dwarf2_frame_state_free_regs): Remove.
8872 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
8873 (dwarf2_restore_rule): Call method .alloc_regs instead of
8874 dwarf2_frame_state_alloc_regs.
8875 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
8876 constructor. Call std::move.
8877 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
8878 (dwarf2_frame_cache): Likewise.
8879
8880 [GDB_SELF_TEST]: Include selftest.h and
8881 selftest-arch.h.
8882 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
8883 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
8884 execute_cfa_program_test.
8885
8886 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
8887 copy ctor, assignment operator, move assignment.
8888 <alloc_regs>: New method.
8889 <swap>: New method.
8890 (struct dwarf2_frame_state): Delete dtor.
8891 (dwarf2_frame_state_alloc_regs): Remove declaration.
8892 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
8893 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
8894
8895 2017-08-11 Yao Qi <yao.qi@linaro.org>
8896
8897 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
8898 (dwarf2_frame_state::dwarf2_frame_state): New.
8899 (dwarf2_frame_state::~dwarf2_frame_state): New.
8900 (dwarf2_fetch_cfa_info): Update.
8901 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
8902 rather than a pointer. Update code.
8903 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
8904 dtor.
8905 <data_align, code_align, retaddr_column>: Change them to const.
8906 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
8907 to bool.
8908
8909 2017-08-11 Yao Qi <yao.qi@linaro.org>
8910
8911 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
8912 <loc.exp>: New field.
8913 * dwarf2-frame.c (execute_cfa_program): Update.
8914 (dwarf2_frame_prev_register): Update.
8915
8916 2017-08-10 Pedro Alves <palves@redhat.com>
8917
8918 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
8919
8920 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8921
8922 * fbsd-nat.c (struct fbsd_fork_info): Remove.
8923 (fbsd_pending_children): Use std::list.
8924 (fbsd_remember_child): Likewise.
8925 (fbsd_is_child_pending): Likewise.
8926 (fbsd_pending_vfork_done): Use std::forward_list.
8927 (fbsd_add_vfork_done): Likewise.
8928 (fbsd_is_vfork_done_pending): Likewise.
8929 (fbsd_next_vfork_done): Likewise.
8930
8931 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8932
8933 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
8934 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
8935 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
8936 for `mapfilename'.
8937 (fbsd_xfer_partial): Use gdb::byte_vector.
8938 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
8939
8940 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8941
8942 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
8943 "filestuff.h".
8944 (fbsd_find_memory_regions): Fix `mapfile' initialization.
8945
8946 2017-08-09 Tom Tromey <tom@tromey.com>
8947
8948 * skip.c (skiplist_entry): New constructor.
8949 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
8950 (skiplist_entry::file_is_glob): Now bool.
8951 (skiplist_entry::file, skiplist_entry::function): Now
8952 std::string.
8953 (make_skip_entry): Return a unique_ptr. Use new.
8954 (free_skiplist_entry, free_skiplist_entry_cleanup)
8955 (make_free_skiplist_entry_cleanup): Remove.
8956 (skip_command, skip_disable_command, add_skiplist_entry)
8957 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
8958 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
8959 (function_name_is_marked_for_skip): Update.
8960 (skip_delete_command): Update. Use delete.
8961
8962 2017-08-09 Jiong Wang <jiong.wang@arm.com>
8963
8964 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
8965 (aarch64_linux_core_read_description): New function.
8966 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
8967
8968 2017-08-09 Pedro Alves <palves@redhat.com>
8969
8970 * cp-name-parser.y (cp_comp_to_string): Return a
8971 gdb::unique_xmalloc_ptr<char>.
8972 * cp-support.c (replace_typedefs_qualified_name)
8973 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
8974 (cp_canonicalize_string_full): Use op= instead of explicit
8975 convertion.
8976 (cp_class_name_from_physname, method_name_from_physname)
8977 (cp_func_name, cp_remove_params): Adjust to use
8978 gdb::unique_xmalloc_ptr<char>.
8979 * cp-support.h (cp_comp_to_string): Return a
8980 gdb::unique_xmalloc_ptr<char>.
8981 * python/py-type.c (typy_lookup_type): Adjust to use
8982 gdb::unique_xmalloc_ptr<char>.
8983
8984 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
8985
8986 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
8987
8988 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
8989 Yao Qi <yao.qi@linaro.org>
8990
8991 * cp-support.c (cp_canonicalize_string_full): Use
8992 gdb::unique_xmalloc_ptr<char>.
8993 (cp_canonicalize_string): Likewise.
8994
8995 2017-08-09 Yao Qi <yao.qi@linaro.org>
8996
8997 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
8998 * regformats/i386/amd64-avx-avx512.dat: Remove.
8999 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9000 * regformats/i386/amd64-avx-mpx.dat:Remove.
9001 * regformats/i386/amd64-avx.dat: Remove.
9002 * regformats/i386/amd64-mpx.dat: Remove.
9003 * regformats/i386/i386-avx-avx512.dat: Remove.
9004 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9005 * regformats/i386/i386-avx-mpx.dat: Remove.
9006 * regformats/i386/i386-mmx.dat: Remove.
9007 * regformats/i386/i386-mpx.dat: Remove.
9008
9009 2017-08-09 Yao Qi <yao.qi@linaro.org>
9010
9011 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9012 * amd64-tdep.c: Don't include features/i386/x32*.c.
9013 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9014 functions.
9015 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9016 and i386/x32-avx-avx512.
9017 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9018 and i386/x32.xml.
9019 * features/i386/x32-avx-avx512.c: Removed.
9020 * features/i386/x32-avx-avx512.xml: Removed.
9021 * features/i386/x32-avx.c: Removed.
9022 * features/i386/x32-avx.xml: Removed.
9023 * features/i386/x32.c: Removed.
9024 * features/i386/x32.xml: Removed.
9025 * regformats/i386/x32-avx-avx512.dat: Removed.
9026 * regformats/i386/x32-avx.dat: Removed.
9027 * regformats/i386/x32.dat: Removed.
9028
9029 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9030
9031 PR breakpoints/21886
9032 * mem-break.c (default_memory_insert_breakpoint): Use
9033 `->placed_address' rather than `->reqstd_address' for the
9034 breakpoint location.
9035
9036 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9037
9038 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9039 assertions.
9040
9041 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9042
9043 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9044 a union of `tdep_info', `tdesc_data' and `id'.
9045 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9046 rather than `info.tdep_info'.
9047 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9048 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9049 * i386-tdep.c (i386_gdbarch_init): Likewise.
9050 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9051 * mips-tdep.c (mips_gdbarch_init): Likewise.
9052 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9053 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9054 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9055 `info.tdep_info'.
9056 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9057 `info.tdep_info'.
9058 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9059 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9060 `info.tdep_info'.
9061 * spu-tdep.c (spu_gdbarch_init): Likewise.
9062 * gdbarch.h: Regenerate.
9063
9064 2017-08-07 Leszek Swirski <leszeks@google.com>
9065
9066 PR symtab/20899
9067 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9068
9069 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9070
9071 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9072 (gdbsim_open): Rename gdb_argv args object to argv.
9073
9074 2017-08-05 Tom Tromey <tom@tromey.com>
9075
9076 * compile/compile-object-load.c (compile_object_load): Use
9077 gdb::unique_xmalloc_ptr.
9078 * cli/cli-dump.c (scan_filename): Rename from
9079 scan_filename_with_cleanup. Change return type.
9080 (scan_expression): Rename from scan_expression_with_cleanup.
9081 Change return type.
9082 (dump_memory_to_file, dump_value_to_file, restore_command):
9083 Use gdb::unique_xmalloc_ptr. Update.
9084 * cli/cli-cmds.c (find_and_open_script): Use
9085 gdb::unique_xmalloc_ptr.
9086 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9087 * symmisc.c (maintenance_print_symbols)
9088 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9089 * symfile.c (symfile_bfd_open, generic_load)
9090 (add_symbol_file_command, remove_symbol_file_command): Use
9091 gdb::unique_xmalloc_ptr.
9092 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9093 * psymtab.c (maintenance_print_psymbols): Use
9094 gdb::unique_xmalloc_ptr.
9095 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9096 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9097 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9098 (reload_shared_libraries_1): Likewise.
9099
9100 2017-08-05 Tom Tromey <tom@tromey.com>
9101
9102 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9103 (rust_op_vector, rust_set_vector): New typedefs.
9104 (current_parser): New global.
9105 (work_obstack): Change to pointer type. Update all users.
9106 (rust_ast, pstate): Remove globals.
9107 (struct rust_parser): New.
9108 (%union) <params, field_inits>: Change type.
9109 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9110 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9111 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9112 (convert_params_to_types, convert_params_to_expression): Change
9113 type of "params".
9114 (ast_string): Change type of "fields".
9115 (rust_parse): Make a rust_parser. Remove cleanups.
9116 (rust_lex_tests): Make and install an auto_obstack.
9117
9118 2017-08-04 Yao Qi <yao.qi@linaro.org>
9119
9120 * configure.srv (ipa_x32_linux_regobj): New.
9121 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9122 instead of X86_TDESC_AVX512.
9123 (initialize_low_tracepoint): Call
9124 init_registers_x32_avx_avx512_linux.
9125
9126 2017-08-04 Yao Qi <yao.qi@linaro.org>
9127
9128 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9129
9130 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9131
9132 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9133
9134 2017-08-03 Tom Tromey <tom@tromey.com>
9135
9136 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9137 Remove.
9138 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9139
9140 2017-08-03 Tom Tromey <tom@tromey.com>
9141
9142 * python/py-param.c (compute_enum_values): Use gdb_argv.
9143
9144 2017-08-03 Tom Tromey <tom@tromey.com>
9145
9146 * utils.h (struct gdb_argv_deleter): New.
9147 (gdb_argv): New class.
9148 * utils.c (gdb_argv::reset): New method.
9149 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9150 * tracefile.c (tsave_command): Use gdb_argv.
9151 * top.c (new_ui_command): Use gdb_argv.
9152 * symmisc.c (maintenance_print_symbols)
9153 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9154 * symfile.c (symbol_file_command, generic_load)
9155 (remove_symbol_file_command): Use gdb_argv.
9156 * stack.c (backtrace_command): Use gdb_argv.
9157 * source.c (add_path, show_substitute_path_command)
9158 (unset_substitute_path_command, set_substitute_path_command):
9159 Use gdb_argv.
9160 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9161 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9162 * remote.c (extended_remote_run, remote_put_command)
9163 (remote_get_command, remote_delete_command): Use gdb_argv.
9164 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9165 (gdbsim_open): Use gdb_argv.
9166 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9167 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9168 * procfs.c (procfs_info_proc): Use gdb_argv.
9169 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9170 * infrun.c (handle_command): Use gdb_argv.
9171 * inferior.c (add_inferior_command, clone_inferior_command):
9172 Use gdb_argv.
9173 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9174 * exec.c (exec_file_command): Use gdb_argv.
9175 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9176 * compile/compile.c (build_argc_argv): Use gdb_argv.
9177
9178 2017-08-03 Tom Tromey <tom@tromey.com>
9179
9180 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9181
9182 2017-08-03 Tom Tromey <tom@tromey.com>
9183
9184 * python/python.c (compute_python_string): Return std::string.
9185 (gdbpy_eval_from_control_command): Update.
9186 (do_start_initialization): Use std::string.
9187 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9188 xstrprintf.
9189 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9190 xstrprintf.
9191
9192 2017-08-03 Tom Tromey <tom@tromey.com>
9193
9194 * top.h (do_restore_instream_cleanup): Remove.
9195 * top.c (do_restore_instream_cleanup): Remove.
9196 (read_command_file): Use scoped_restore.
9197 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9198
9199 2017-08-03 Tom Tromey <tom@tromey.com>
9200
9201 * cli/cli-script.c (execute_user_command)
9202 (execute_control_command): Use scoped_restore.
9203
9204 2017-08-03 Tom Tromey <tom@tromey.com>
9205
9206 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9207 (execute_user_command): Remove user_call_depth; use
9208 user_args_stack's size instead.
9209
9210 2017-08-03 Tom Tromey <tom@tromey.com>
9211
9212 * top.h (in_user_command): Remove.
9213 * top.c (in_user_command): Remove.
9214 * cli/cli-script.c (do_restore_user_call_depth)
9215 (execute_user_command): Update.
9216
9217 2017-08-03 Tom Tromey <tom@tromey.com>
9218
9219 * valops.c (search_struct_method): Use gdb::byte_vector.
9220 * valarith.c (value_concat): Use std::vector.
9221 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9222 (simple_search_memory): Likewise.
9223 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9224 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9225 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9226 * elfread.c (elf_rel_plt_read): Use std::string.
9227 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9228 * cli/cli-dump.c (restore_section_callback): Use
9229 gdb::byte_vector.
9230
9231 2017-08-03 Tom Tromey <tom@tromey.com>
9232
9233 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9234
9235 2017-08-03 Tom Tromey <tom@tromey.com>
9236
9237 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9238 (tui_register_format): Use scoped_restore.
9239
9240 2017-08-03 Tom Tromey <tom@tromey.com>
9241
9242 * reverse.c (exec_direction_default): Remove.
9243 (exec_reverse_once): Use scoped_restore.
9244 * remote.c (restore_remote_timeout): Remove.
9245 (remote_flash_erase, remote_flash_write, remote_flash_done)
9246 (readchar, remote_serial_write): Use scoped_restore.
9247 * cli/cli-script.c (struct source_cleanup_lines_args)
9248 (source_cleanup_lines): Remove.
9249 (script_from_file): Use scoped_restore.
9250 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9251 (source_command): Use scoped_restore.
9252
9253 2017-08-03 Tom Tromey <tom@tromey.com>
9254
9255 * utils.h (make_cleanup_free_so): Remove.
9256 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9257 * solist.h (struct so_deleter): New.
9258 (so_list_up): New typedef.
9259 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9260
9261 2017-08-03 Tom Tromey <tom@tromey.com>
9262
9263 * utils.h (make_cleanup_restore_current_language): Remove.
9264 * utils.c (do_restore_current_language)
9265 (make_cleanup_restore_current_language): Remove.
9266 * parse.c (parse_exp_in_context_1)
9267 (parse_expression_with_language): Use
9268 scoped_restore_current_language.
9269 * mi/mi-main.c (mi_cmd_execute): Use
9270 scoped_restore_current_language.
9271 * language.h (scoped_restore_current_language): New class.
9272
9273 2017-08-03 Tom Tromey <tom@tromey.com>
9274
9275 * compile/compile.c (cleanup_unlink_file): Remove.
9276 (compile_to_object): Use gdb::unlinker.
9277 (eval_compile_command): Likewise.
9278
9279 2017-08-03 Tom Tromey <tom@tromey.com>
9280
9281 * utils.h (make_cleanup_fclose): Remove.
9282 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9283
9284 2017-08-03 Tom Tromey <tom@tromey.com>
9285
9286 * top.c (open_terminal_stream): Return gdb_file_up.
9287 (new_ui_command): Update.
9288
9289 2017-08-03 Tom Tromey <tom@tromey.com>
9290
9291 * source.c (print_source_lines_base, forward_search_command)
9292 (reverse_search_command): Use gdb_file_up.
9293
9294 2017-08-03 Tom Tromey <tom@tromey.com>
9295
9296 * fbsd-nat.c (fbsd_find_memory_regions): Update.
9297
9298 2017-08-03 Tom Tromey <tom@tromey.com>
9299
9300 * cli/cli-cmds.c (find_and_open_script): Change return type.
9301 Remove "streamp" and "full_path" parameters.
9302 (source_script_with_search): Update.
9303 * auto-load.c (source_script_file): Update.
9304 * cli/cli-cmds.h (find_and_open_script): Change type.
9305 (open_script): New struct.
9306
9307 2017-08-03 Tom Tromey <tom@tromey.com>
9308
9309 * xml-support.c (xml_fetch_content_from_file): Update.
9310 * ui-file.c (stdio_file::open): Update.
9311 * tracefile-tfile.c (tfile_start): Update.
9312 * remote.c (remote_file_put, remote_file_get): Update.
9313 * nat/linux-procfs.c (linux_proc_get_int)
9314 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
9315 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
9316 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
9317 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
9318 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
9319 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
9320 * linux-nat.c (linux_proc_pending_signals): Update.
9321 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
9322 (file_closer): Remove.
9323 * compile/compile.c (compile_to_object): Update.
9324 * common/filestuff.h (struct gdb_file_deleter): New.
9325 (gdb_file_up): New typedef.
9326 (gdb_fopen_cloexec): Change return type.
9327 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
9328 * cli/cli-dump.c (fopen_with_cleanup): Remove.
9329 (dump_binary_file, restore_binary_file): Update.
9330 * auto-load.c (auto_load_objfile_script_1): Update.
9331
9332 2017-08-03 Tom Tromey <tom@tromey.com>
9333
9334 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
9335 (info_static_tracepoint_markers_command): Likewise.
9336 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
9337 * skip.c (skip_info): Use ui_out_emit_table.
9338 * progspace.c (print_program_space): Use ui_out_emit_table.
9339 * osdata.c (info_osdata): Use ui_out_emit_table.
9340 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
9341 ui_out_emit_table.
9342 * linux-thread-db.c (info_auto_load_libthread_db): Use
9343 ui_out_emit_table.
9344 * inferior.c (print_inferior): Use ui_out_emit_table.
9345 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
9346 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
9347 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
9348 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
9349 * ui-out.h (class ui_out_emit_table): New.
9350
9351 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
9352
9353 * mips-tdep.c (mips_fpu_type_str): New function.
9354 (mips_dump_tdep): Call it.
9355
9356 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
9357
9358 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
9359 `->mips_fpu_type'.
9360
9361 2017-07-31 Xavier Roirand <roirand@adacore.com>
9362
9363 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9364
9365 2017-07-27 Xavier Roirand <roirand@adacore.com>
9366
9367 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
9368
9369 2017-07-26 Yao Qi <yao.qi@linaro.org>
9370
9371 * cli/cli-cmds.c (maintenancechecklist): New variable.
9372 * gdbcmd.h (maintenancechecklist): Declare it.
9373 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
9374 Call i386_linux_read_description with different masks.
9375 * maint.c (maintenance_check_command): New function.
9376 (_initialize_maint_cmds): Call add_prefix_cmd.
9377 * target-descriptions.c (tdesc_reg): override operator != and ==.
9378 (tdesc_type): Likewise.
9379 (tdesc_feature): Likewise.
9380 (target_desc): Likewise.
9381 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
9382 (maintenance_check_xml_descriptions): New function.
9383 (_initialize_target_descriptions) Add command "xml-descriptions".
9384 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
9385
9386 2017-07-26 Yao Qi <yao.qi@linaro.org>
9387
9388 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
9389 Include features/i386/32bit-*.c.
9390 (i386_linux_read_description): Generate target description if it
9391 doesn't exist.
9392 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
9393 functions.
9394 * features/i386/32bit-linux.c: Re-generated.
9395 * features/i386/32bit-sse.c: Likewise.
9396 * target-descriptions.c (print_c_feature::visit): Print code to
9397 set register number if needed.
9398 (print_c_feature) <m_next_regnum>: New field.
9399
9400 2017-07-26 Yao Qi <yao.qi@linaro.org>
9401
9402 * features/Makefile (CFILES): Rename with TDESC_CFILES.
9403 (FEATURE_XMLFILES): New.
9404 (FEATURE_CFILES): New.
9405 New rules.
9406 (clean-cfiles): Remove generated c files.
9407 * features/i386/32bit-avx.c: Generated.
9408 * features/i386/32bit-avx512.c: Generated.
9409 * features/i386/32bit-core.c: Generated.
9410 * features/i386/32bit-linux.c: Generated.
9411 * features/i386/32bit-mpx.c: Generated.
9412 * features/i386/32bit-pkeys.c: Generated.
9413 * features/i386/32bit-sse.c: Generated.
9414 * target-descriptions.c: Include algorithm.
9415 (tdesc_element_visitor): Add method visit_end.
9416 (print_c_tdesc): Implement visit_end.
9417 (print_c_tdesc:: m_filename_after_features): Move it to
9418 protected.
9419 (print_c_feature): New class.
9420 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
9421 name starts with "i386/32bit-".
9422
9423 2017-07-26 Yao Qi <yao.qi@linaro.org>
9424
9425 * target-descriptions.c (tdesc_element_visitor): New class.
9426 (tdesc_element): New class.
9427 (tdesc_reg): Inherit from tdesc_element.
9428 (tdesc_reg::accept): New function.
9429 (tdesc_type): Inherit from tdesc_element.
9430 (tdesc_type::accept): New function.
9431 (tdesc_feature): Inherit from tdesc_element.
9432 (tdesc_feature::accept): New function.
9433 (target_desc): Inherit from tdesc_element.
9434 (target_desc::target_desc): New.
9435 (target_desc::~target_desc): New.
9436 (target_desc::accept): New.
9437 (allocate_target_description): Use new.
9438 (free_target_description): Use delete.
9439 (print_c_tdesc): New class.
9440 (maint_print_c_tdesc_cmd): Adjust.
9441
9442 * features/aarch64.c: Re-generated.
9443 * features/arc-arcompact.c: Re-generated.
9444 * features/arc-v2.c: Re-generated.
9445 * features/arm/arm-with-iwmmxt.c: Re-generated.
9446 * features/arm/arm-with-m.c: Re-generated.
9447 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
9448 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
9449 * features/arm/arm-with-neon.c: Re-generated.
9450 * features/arm/arm-with-vfpv2.c: Re-generated.
9451 * features/arm/arm-with-vfpv3.c: Re-generated.
9452 * features/i386/amd64-avx-avx512.c: Re-generated.
9453 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9454 * features/i386/amd64-avx.c: Re-generated.
9455 * features/i386/amd64-avx-linux.c: Re-generated.
9456 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
9457 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9458 * features/i386/amd64-avx-mpx.c: Re-generated.
9459 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
9460 * features/i386/amd64.c: Re-generated.
9461 * features/i386/amd64-linux.c: Re-generated.
9462 * features/i386/amd64-mpx.c: Re-generated.
9463 * features/i386/amd64-mpx-linux.c: Re-generated.
9464 * features/i386/i386-avx-avx512.c: Re-generated.
9465 * features/i386/i386-avx-avx512-linux.c: Re-generated.
9466 * features/i386/i386-avx.c: Re-generated.
9467 * features/i386/i386-avx-linux.c: Re-generated.
9468 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
9469 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
9470 * features/i386/i386-avx-mpx.c: Re-generated.
9471 * features/i386/i386-avx-mpx-linux.c: Re-generated.
9472 * features/i386/i386.c: Re-generated.
9473 * features/i386/i386-linux.c: Re-generated.
9474 * features/i386/i386-mmx.c: Re-generated.
9475 * features/i386/i386-mmx-linux.c: Re-generated.
9476 * features/i386/i386-mpx.c: Re-generated.
9477 * features/i386/i386-mpx-linux.c: Re-generated.
9478 * features/i386/x32-avx-avx512.c: Re-generated.
9479 * features/i386/x32-avx-avx512-linux.c: Re-generated.
9480 * features/i386/x32-avx.c: Re-generated.
9481 * features/i386/x32-avx-linux.c: Re-generated.
9482 * features/i386/x32.c: Re-generated.
9483 * features/i386/x32-linux.c: Re-generated.
9484 * features/microblaze.c: Re-generated.
9485 * features/microblaze-with-stack-protect.c: Re-generated.
9486 * features/mips64-dsp-linux.c: Re-generated.
9487 * features/mips64-linux.c: Re-generated.
9488 * features/mips-dsp-linux.c: Re-generated.
9489 * features/mips-linux.c: Re-generated.
9490 * features/nds32.c: Re-generated.
9491 * features/nios2.c: Re-generated.
9492 * features/nios2-linux.c: Re-generated.
9493 * features/rs6000/powerpc-32.c: Re-generated.
9494 * features/rs6000/powerpc-32l.c: Re-generated.
9495 * features/rs6000/powerpc-403.c: Re-generated.
9496 * features/rs6000/powerpc-403gc.c : Re-generated.
9497 * features/rs6000/powerpc-405.c: Re-generated.
9498 * features/rs6000/powerpc-505.c: Re-generated.
9499 * features/rs6000/powerpc-601.c: Re-generated.
9500 * features/rs6000/powerpc-602.c: Re-generated.
9501 * features/rs6000/powerpc-603.c: Re-generated.
9502 * features/rs6000/powerpc-604.c: Re-generated.
9503 * features/rs6000/powerpc-64.c: Re-generated.
9504 * features/rs6000/powerpc-64l.c: Re-generated.
9505 * features/rs6000/powerpc-7400.c: Re-generated.
9506 * features/rs6000/powerpc-750.c: Re-generated.
9507 * features/rs6000/powerpc-860.c: Re-generated.
9508 * features/rs6000/powerpc-altivec32.c: Re-generated.
9509 * features/rs6000/powerpc-altivec32l.c: Re-generated.
9510 * features/rs6000/powerpc-altivec64.c: Re-generated.
9511 * features/rs6000/powerpc-altivec64l.c: Re-generated.
9512 * features/rs6000/powerpc-cell32l.c: Re-generated.
9513 * features/rs6000/powerpc-cell64l.c: Re-generated.
9514 * features/rs6000/powerpc-e500.c: Re-generated.
9515 * features/rs6000/powerpc-e500l.c: Re-generated.
9516 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
9517 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
9518 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
9519 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
9520 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
9521 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
9522 * features/rs6000/powerpc-vsx32.c: Re-generated.
9523 * features/rs6000/powerpc-vsx32l.c: Re-generated.
9524 * features/rs6000/powerpc-vsx64.c: Re-generated.
9525 * features/rs6000/powerpc-vsx64l.c: Re-generated.
9526 * features/rs6000/rs6000.c: Re-generated.
9527 * features/s390-linux32.c: Re-generated.
9528 * features/s390-linux32v1.c: Re-generated.
9529 * features/s390-linux32v2.c: Re-generated.
9530 * features/s390-linux64.c: Re-generated.
9531 * features/s390-linux64v1.c: Re-generated.
9532 * features/s390-linux64v2.c: Re-generated.
9533 * features/s390-te-linux64.c: Re-generated.
9534 * features/s390-tevx-linux64.c: Re-generated.
9535 * features/s390-vx-linux64.c: Re-generated.
9536 * features/s390x-linux64.c: Re-generated.
9537 * features/s390x-linux64v1.c: Re-generated.
9538 * features/s390x-linux64v2.c: Re-generated.
9539 * features/s390x-te-linux64.c: Re-generated.
9540 * features/s390x-tevx-linux64.c: Re-generated.
9541 * features/s390x-vx-linux64.c: Re-generated.
9542 * features/sparc/sparc32-solaris.c: Re-generated.
9543 * features/sparc/sparc64-solaris.c: Re-generated.
9544 * features/tic6x-c62x.c: Re-generated.
9545 * features/tic6x-c62x-linux.c: Re-generated.
9546 * features/tic6x-c64x.c: Re-generated.
9547 * features/tic6x-c64x-linux.c: Re-generated.
9548 * features/tic6x-c64xp.c: Re-generated.
9549 * features/tic6x-c64xp-linux.c: Re-generated.
9550
9551 2017-07-26 Yao Qi <yao.qi@linaro.org>
9552
9553 * i386-linux-tdep.c (i386_linux_read_description): New function.
9554 (i386_linux_core_read_description): Call
9555 i386_linux_read_description.
9556 * i386-linux-tdep.h (i386_linux_read_description): Declare.
9557 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
9558 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
9559 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
9560 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
9561 * x86-linux-nat.c (x86_linux_read_description): Call
9562 i386_linux_read_description.
9563
9564 2017-07-26 Yao Qi <yao.qi@linaro.org>
9565
9566 * NEWS: Mention it.
9567 * features/Makefile (%.c: %.xml): Pass the xml file name to
9568 command "maint print c-tdesc".
9569 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
9570 name from 'arg'.
9571
9572 2017-07-26 Yao Qi <yao.qi@linaro.org>
9573
9574 * target-descriptions.c (target_desc): Add ctor and dtor. Do
9575 in-class initialization.
9576 (tdesc_create_feature): Call new instead of XCNEW.
9577 (free_target_description): Ue delete.
9578
9579 2017-07-25 John Baldwin <jhb@FreeBSD.org>
9580
9581 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
9582
9583 2017-07-25 Yao Qi <yao.qi@linaro.org>
9584
9585 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
9586 constant.
9587 (amd64_x32_init_abi): Likewise.
9588 * amd64-tdep.h (amd64_init_abi): Update declaration.
9589 (amd64_x32_init_abi): Likewise.
9590
9591 2017-07-25 Yao Qi <yao.qi@linaro.org>
9592
9593 PR tdep/21717
9594 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
9595 condition for FPSCR.
9596 (arm_linux_store_inferior_registers): Likewise.
9597
9598 2017-07-22 Tom Tromey <tom@tromey.com>
9599
9600 * break-catch-syscall.c (struct catch_syscall_inferior_data)
9601 <syscalls_counts>: Now a std::vector.
9602 (get_catch_syscall_inferior_data): Use "new".
9603 (catch_syscall_inferior_data_cleanup): Use "delete".
9604 (insert_catch_syscall, remove_catch_syscall)
9605 (clear_syscall_counts): Update.
9606
9607 2017-07-22 Tom Tromey <tom@tromey.com>
9608
9609 * break-catch-syscall.c (syscall_catchpoint)
9610 <syscalls_to_be_caught>: Now a std::vector<int>
9611 (~syscall_catchpoint): Remove.
9612 (insert_catch_syscall, remove_catch_syscall)
9613 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
9614 (print_mention_catch_syscall, print_recreate_catch_syscall):
9615 Update.
9616 (create_syscall_event_catchpoint): Change type of "filter"
9617 parameter.
9618 (catch_syscall_split_args): Return a std::vector.
9619 (catch_syscall_command_1, catching_syscall_number_1): Update.
9620
9621 2017-07-22 Tom Tromey <tom@tromey.com>
9622
9623 * break-catch-throw.c (struct exception_catchpoint)
9624 <exception_rx>: Now a std::string.
9625 (~exception_catchpoint): Remove.
9626 (print_one_detail_exception_catchpoint): Update.
9627 (handle_gnu_v3_exceptions): Change type of except_rx.
9628 (extract_exception_regexp): Return a std::string.
9629 (catch_exception_command_1): Update.
9630
9631 2017-07-22 Tom Tromey <tom@tromey.com>
9632
9633 * break-catch-sig.c (gdb_signal_type): Remove typedef.
9634 (struct signal_catchpoint) <signals_to_be_caught>: Now a
9635 std::vector.
9636 <catch_all>: Now a bool.
9637 (~signal_catchpoint): Remove.
9638 (signal_catchpoint_insert_location)
9639 (signal_catchpoint_remove_location)
9640 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
9641 (signal_catchpoint_print_mention)
9642 (signal_catchpoint_print_recreate)
9643 (signal_catchpoint_explains_signal): Update.
9644 (create_signal_catchpoint): Change type of "filter" and
9645 "catch_all".
9646 (catch_signal_split_args): Return a std::vector. Change type of
9647 "catch_all".
9648 (catch_signal_command): Update.
9649
9650 2017-07-20 Pedro Alves <palves@redhat.com>
9651
9652 * ada-lang.c (ada_language_defn): Make extern.
9653 (_initialize_ada_language): Remove add_language call.
9654 * c-lang.c (c_language_defn, cplus_language_defn)
9655 (asm_language_defn, minimal_language_defn): Make extern.
9656 (_initialize_c_language): Delete.
9657 * completer.c (compare_cstrings): Delete, moved to utils.h.
9658 * d-lang.c (d_language_defn): Make extern.
9659 (_initialize_d_language): Remove add_language calls.
9660 * defs.h (enum language): Add comment.
9661 * f-lang.c (f_language_defn): Make extern.
9662 (_initialize_f_language): Remove add_language call.
9663 * go-lang.c (go_language_defn): Make extern.
9664 (_initialize_go_language): Remove add_language call.
9665 * language.c: Include <algorithm>.
9666 (languages): Redefine as const array.
9667 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
9668 (set_language_command): Handle "local". Use for-range loop.
9669 (set_language): Remove loop.
9670 (language_enum): Rewrite.
9671 (language_def, language_str): Remove loops.
9672 (add_language): Delete.
9673 (add_set_language_command): New, based on add_languages.
9674 (skip_language_trampoline): Adjust.
9675 (local_language_defn): Delete.
9676 (language_gdbarch_post_init): Adjust.
9677 (_initialize_language): Remove add_language calls. Call
9678 add_set_language_command.
9679 * language.h (add_language): Delete.
9680 (auto_language_defn)
9681 (unknown_language_defn, minimal_language_defn, ada_language_defn)
9682 (asm_language_defn, c_language_defn, cplus_language_defn)
9683 (d_language_defn, f_language_defn, go_language_defn)
9684 (m2_language_defn, objc_language_defn, opencl_language_defn)
9685 (pascal_language_defn, rust_language_defn): Declare.
9686 * m2-lang.c (m2_language_defn): Make extern.
9687 (_initialize_m2_language): Remove add_language call.
9688 * objc-lang.c (objc_language_defn): Make extern.
9689 (_initialize_objc_language): Remove add_language call.
9690 * opencl-lang.c (opencl_language_defn): Make extern.
9691 (_initialize_opencl_language): Remove add_language call.
9692 * p-lang.c (pascal_language_defn): Make extern.
9693 (_initialize_pascal_language): Delete.
9694 * rust-lang.c (rust_language_defn): Make extern.
9695 (_initialize_rust_language): Delete.
9696 * utils.h (compare_cstrings): New static inline function.
9697
9698 2017-07-20 Pedro Alves <palves@redhat.com>
9699
9700 * ada-lang.c (ada_to_fixed_type_1): Adjust.
9701 (get_var_value): Constify parameters.
9702 (get_int_var_value): Change prototype.
9703 (to_fixed_range_type): Adjust.
9704 * ada-lang.h (get_int_var_value): Change prototype.
9705
9706 2017-07-20 Pedro Alves <palves@redhat.com>
9707
9708 * dwarf2read.c (dw2_lookup_symbol): Use
9709 SYMBOL_MATCHES_SEARCH_NAME.
9710 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
9711
9712 2017-07-20 Pedro Alves <palves@redhat.com>
9713
9714 * block.c (block_iter_name_step, block_iter_name_first)
9715 (block_iter_name_next): Delete.
9716 (block_lookup_symbol_primary): Adjust to use
9717 dict_iter_match_first/dict_iter_match_next.
9718 * block.h (block_iter_name_first, block_iter_name_next): Delete
9719 declarations.
9720 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
9721 dict_iter_match_first/dict_iter_match_next.
9722
9723 2017-07-20 Pedro Alves <palves@redhat.com>
9724
9725 * cp-support.c (cp_find_first_component_aux): Add missing case for
9726 end of string.
9727
9728 2017-07-18 David Blaikie <dblaikie@gmail.com>
9729
9730 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
9731 of dwo_cu's dwo_file.
9732
9733 2017-07-18 Yao Qi <yao.qi@linaro.org>
9734
9735 * remote.c (store_registers_using_G): Remove one line comment.
9736
9737 2017-07-18 Yao Qi <yao.qi@linaro.org>
9738
9739 * regcache.c (regcache_cpy): Simplify it.
9740 (regcache::cpy_no_passthrough): Remove it.
9741 * regcache.h (cpy_no_passthrough): Remove it.
9742 (regcache_dup, regcache_cpy): Update comments.
9743
9744 2017-07-18 Pedro Alves <palves@redhat.com>
9745
9746 * remote-sim.c (sim_command_completer): Adjust to work with a
9747 completion_tracker instead of a VEC.
9748
9749 2017-07-17 Pedro Alves <palves@redhat.com>
9750
9751 * completer.c (complete_source_filenames): New function.
9752 (complete_address_and_linespec_locations): New function.
9753 (location_completer): Use complete_address_and_linespec_locations.
9754 (completion_tracker::build_completion_result): Honor the tracker's
9755 request to suppress append.
9756 * completer.h (completion_tracker::suppress_append_ws)
9757 (completion_tracker::set_suppress_append_ws): New methods.
9758 (completion_tracker::m_suppress_append_ws): New field.
9759 (complete_source_filenames): New declaration.
9760 * linespec.c (linespec_complete_what): New.
9761 (struct ls_parser) <complete_what, completion_word,
9762 completion_quote_char, completion_quote_end, completion_tracker>:
9763 New fields.
9764 (string_find_incomplete_keyword_at_end): New.
9765 (linespec_lexer_lex_string): Record quote char. If in completion
9766 mode, don't throw.
9767 (linespec_lexer_consume_token): Advance the completion word point.
9768 (linespec_lexer_peek_token): Save/restore completion info.
9769 (save_stream_and_consume_token): New.
9770 (set_completion_after_number): New.
9771 (linespec_parse_basic): Set what to complete next depending on
9772 token. Handle function and label completions specially.
9773 (parse_linespec): Disable objc shortcut in completion mode. Set
9774 what to complete next depending on token type. Skip keyword if in
9775 completion mode.
9776 (complete_linespec_component, linespec_complete): New.
9777 * linespec.h (linespec_complete): Declare.
9778
9779 2017-07-17 Pedro Alves <palves@redhat.com>
9780
9781 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
9782 Handle 'operator<' / 'operator<<'.
9783
9784 2017-07-17 Pedro Alves <palves@redhat.com>
9785
9786 * completer.c (collect_explicit_location_matches): Handle
9787 MATCH_LABEL.
9788 (convert_explicit_location_to_linespec): New, factored out from
9789 ...
9790 (convert_explicit_location_to_sals): ... this.
9791 (complete_label): New.
9792 (linespec_complete_label, find_label_symbols_in_block): New.
9793 (find_label_symbols): Add completion_mode parameter and adjust to
9794 call find_label_symbols_in_block.
9795 * linespec.h (linespec_complete_label): Declare.
9796
9797 2017-07-17 Pedro Alves <palves@redhat.com>
9798
9799 * ada-lang.c (ada_collect_symbol_completion_matches): Add
9800 complete_symbol_mode parameter.
9801 * cli/cli-cmds.c (complete_command): Get the completion result out
9802 of the handle_brkchars tracker if used a custom word point.
9803 * completer.c: Include "linespec.h".
9804 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
9805 (advance_to_expression_complete_word_point): New.
9806 (completion_tracker::completes_to_completion_word): New.
9807 (complete_files_symbols): Pass down
9808 complete_symbol_mode::EXPRESSION.
9809 (explicit_options, probe_options): New.
9810 (collect_explicit_location_matches): Complete on the
9811 explictit_loc->foo instead of word. Use
9812 linespec_complete_function. Handle MATCH_LINE. Handle offering
9813 keyword and options completions.
9814 (backup_text_ptr): Delete.
9815 (skip_keyword): New.
9816 (complete_explicit_location): Remove 'word' parameter. Add
9817 language, quoted_arg_start and quoted_arg_end parameters.
9818 Rewrite, parsing left to right.
9819 (location_completer): Rewrite.
9820 (location_completer_handle_brkchars): New function.
9821 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
9822 (enum complete_line_internal_reason): Adjust comments.
9823 (completion_tracker::discard_completions): New.
9824 (completer_handle_brkchars_func_for_completer): Handle
9825 location_completer.
9826 (gdb_custom_word_point_brkchars)
9827 (gdb_org_rl_basic_quote_characters): New.
9828 (gdb_completion_word_break_characters_throw)
9829 (completion_find_completion_word): Handle trackers that use a
9830 custom word point.
9831 (completion_tracker::advance_custom_word_point_by): New.
9832 (completion_tracker::build_completion_result): Don't rely on
9833 readline appending the quote char.
9834 (gdb_rl_attempted_completion_function_throw): Handle trackers that
9835 use a custom word point.
9836 (gdb_rl_attempted_completion_function): Restore
9837 rl_basic_quote_characters.
9838 * completer.h (class completion_tracker): Extend intro comment.
9839 (completion_tracker::set_quote_char)
9840 (completion_tracker::quote_char)
9841 (completion_tracker::set_use_custom_word_point)
9842 (completion_tracker::use_custom_word_point)
9843 (completion_tracker::custom_word_point)
9844 (completion_tracker::set_custom_word_point)
9845 (completion_tracker::advance_custom_word_point_by)
9846 (completion_tracker::completes_to_completion_word)
9847 (completion_tracker::discard_completions): New methods.
9848 (completion_tracker::m_quote_char)
9849 (completion_tracker::m_use_custom_word_point)
9850 (completion_tracker::m_custom_word_point): New fields.
9851 (advance_to_expression_complete_word_point): Declare.
9852 * f-lang.c (f_collect_symbol_completion_matches): Add
9853 complete_symbol_mode parameter.
9854 * language.h (struct language_defn)
9855 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
9856 parameter.
9857 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
9858 (linespec_complete_function): New function.
9859 (linespec_lexer_lex_keyword): Adjust.
9860 * linespec.h (linespec_keywords, linespec_complete_function): New
9861 declarations.
9862 * location.c (find_end_quote): New function.
9863 (explicit_location_lex_one): Add explicit_completion_info
9864 parameter. Save quoting info. Don't throw if being called for
9865 completion. Don't handle Ada operators here.
9866 (is_cp_operator, skip_op_false_positives, first_of)
9867 (explicit_location_lex_one_function): New function.
9868 (string_to_explicit_location): Replace 'dont_throw' parameter with
9869 an explicit_completion_info pointer parameter. Handle it. Don't
9870 use explicit_location_lex_one to lex function names. Use
9871 explicit_location_lex_one_function instead.
9872 * location.h (struct explicit_completion_info): New.
9873 (string_to_explicit_location): Replace 'dont_throw' parameter with
9874 an explicit_completion_info pointer parameter.
9875 * symtab.c (default_collect_symbol_completion_matches_break_on):
9876 Add complete_symbol_mode parameter. Handle LINESPEC mode.
9877 (default_collect_symbol_completion_matches)
9878 (collect_symbol_completion_matches): Add complete_symbol_mode
9879 parameter.
9880 (collect_symbol_completion_matches_type): Pass down
9881 complete_symbol_mode::EXPRESSION.
9882 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9883 parameter. Handle LINESPEC mode.
9884 * symtab.h (complete_symbol_mode): New.
9885 (default_collect_symbol_completion_matches_break_on)
9886 (default_collect_symbol_completion_matches)
9887 (collect_symbol_completion_matches)
9888 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9889 parameter.
9890
9891 2017-07-17 Pedro Alves <palves@redhat.com>
9892
9893 * utils.c (enum class strncmp_iw_mode): New.
9894 (strcmp_iw): Rename to ...
9895 (strncmp_iw_with_mode): ... this. Add string2_len and mode
9896 parameters. Handle them.
9897 (strncmp_iw): New.
9898 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
9899 * utils.h (strncmp_iw): Declare.
9900 (strcmp_iw): Move describing comments here.
9901
9902 2017-07-17 Pedro Alves <palves@redhat.com>
9903
9904 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
9905 CP_OPERATOR_STR.
9906 * c-typeprint.c (is_type_conversion_operator): Use
9907 CP_OPERATOR_STR.
9908 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
9909 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
9910 CP_OPERATOR_LEN.
9911 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
9912 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
9913 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
9914 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
9915 CP_OPERATOR_STR.
9916 * location.c: Include "cp-support.h".
9917 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
9918 CP_OPERATOR_STR.
9919 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
9920 CP_OPERATOR_LEN.
9921
9922 2017-07-17 Pedro Alves <palves@redhat.com>
9923
9924 * cli/cli-cmds.c (complete_command): Use a completion tracker
9925 along with completion_find_completion_word for handle_brkchars
9926 phase.
9927 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
9928 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
9929 (struct gdb_rl_completion_word_info): New.
9930 (gdb_rl_find_completion_word): New.
9931 (completion_find_completion_word): New.
9932 * completer.h (completion_find_completion_word): Declare.
9933
9934 2017-07-17 Pedro Alves <palves@redhat.com>
9935
9936 * ada-lang.c (symbol_completion_match): Adjust comments.
9937 (symbol_completion_add): Replace vector parameter with
9938 completion_tracker parameter. Use it.
9939 (ada_make_symbol_completion_list): Rename to...
9940 (ada_collect_symbol_completion_matches): ... this. Add
9941 completion_tracker parameter and use it.
9942 (ada_language_defn): Adjust.
9943 * break-catch-syscall.c (catch_syscall_completer): Adjust
9944 prototype and work with completion_tracker instead of VEC.
9945 * breakpoint.c (condition_completer): Adjust prototype and work
9946 with completion_tracker instead of VEC.
9947 * c-lang.c (c_language_defn, cplus_language_defn)
9948 (asm_language_defn, minimal_language_defn): Adjust to renames.
9949 * cli/cli-cmds.c (complete_command): Rework using
9950 completion_tracker. Catch exceptions when completing.
9951 * cli/cli-decode.c (integer_unlimited_completer)
9952 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
9953 with completion_tracker instead of VEC.
9954 * command.h (struct completion_tracker): Forward declare.
9955 (completer_ftype, completer_handle_brkchars_ftype): Change
9956 types.
9957 (complete_on_cmdlist, complete_on_enum): Adjust.
9958 * completer.c: Include <algorithm>.
9959 (struct gdb_completer_state): New.
9960 (current_completion): New global.
9961 (readline_line_completion_function): Delete.
9962 (noop_completer, filename_completer)
9963 (filename_completer_handle_brkchars, complete_files_symbols)
9964 (linespec_location_completer): Adjust to work with a
9965 completion_tracker instead of a VEC.
9966 (string_or_empty): New.
9967 (collect_explicit_location_matches): Adjust to work with a
9968 completion_tracker instead of a VEC.
9969 (explicit_location_completer): Rename to ...
9970 (complete_explicit_location): ... this and adjust to work with a
9971 completion_tracker instead of a VEC.
9972 (location_completer): Adjust to work with a completion_tracker
9973 instead of a VEC.
9974 (add_struct_fields): Adjust to work with a completion_list instead
9975 of VEC.
9976 (expression_completer): Rename to ...
9977 (complete_expression): ... this and adjust to work with a
9978 completion_tracker instead of a VEC. Use complete_files_symbols.
9979 (expression_completer): Reimplement on top of complete_expression.
9980 (symbol_completer): Adjust to work with a completion_tracker
9981 instead of a VEC.
9982 (enum complete_line_internal_reason): Add describing comments.
9983 (complete_line_internal_normal_command): Adjust to work with a
9984 completion_tracker instead of a VEC.
9985 (complete_line_internal): Rename to ...
9986 (complete_line_internal_1): ... this and adjust to work with a
9987 completion_tracker instead of a VEC. Assert TEXT is NULL in the
9988 handle_brkchars phase.
9989 (new_completion_tracker): Delete.
9990 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
9991 complete_line_internal_1.
9992 (free_completion_tracker): Delete.
9993 (INITIAL_COMPLETION_HTAB_SIZE): New.
9994 (completion_tracker::completion_tracker)
9995 (completion_tracker::~completion_tracker): New.
9996 (maybe_add_completion): Delete.
9997 (completion_tracker::maybe_add_completion)
9998 (completion_tracker::add_completion)
9999 (completion_tracker::add_completions): New.
10000 (throw_max_completions_reached_error): Delete.
10001 (complete_line): Adjust to work with a completion_tracker instead
10002 of a VEC. Don't create a completion_tracker_t or check for max
10003 completions here.
10004 (command_completer, command_completer_handle_brkchars)
10005 (signal_completer, reg_or_group_completer_1)
10006 (reg_or_group_completer, default_completer_handle_brkchars):
10007 Adjust to work with a completion_tracker.
10008 (gdb_completion_word_break_characters_throw): New.
10009 (gdb_completion_word_break_characters): Reimplement.
10010 (line_completion_function): Delete.
10011 (completion_tracker::recompute_lowest_common_denominator)
10012 (expand_preserving_ws)
10013 (completion_tracker::build_completion_result)
10014 (completion_result::completion_result)
10015 (completion_result::completion_result)
10016 (completion_result::~completion_result)
10017 (completion_result::completion_result)
10018 (completion_result::release_match_list, compare_cstrings)
10019 (completion_result::sort_match_list)
10020 (completion_result::reset_match_list)
10021 (gdb_rl_attempted_completion_function_throw)
10022 (gdb_rl_attempted_completion_function): New.
10023 * completer.h (completion_list, struct completion_result)
10024 (class completion_tracker): New.
10025 (complete_line): Add completion_tracker parameter.
10026 (readline_line_completion_function): Delete.
10027 (gdb_rl_attempted_completion_function): New.
10028 (noop_completer, filename_completer, expression_completer)
10029 (location_completer, symbol_completer, command_completer)
10030 (signal_completer, reg_or_group_completer): Update prototypes.
10031 (completion_tracker_t, new_completion_tracker)
10032 (make_cleanup_free_completion_tracker): Delete.
10033 (enum maybe_add_completion_enum): Delete.
10034 (maybe_add_completion): Delete.
10035 (throw_max_completions_reached_error): Delete.
10036 * corefile.c (complete_set_gnutarget): Adjust to work with a
10037 completion_tracker instead of a VEC.
10038 * cp-abi.c (cp_abi_completer): Adjust to work with a
10039 completion_tracker instead of a VEC.
10040 * d-lang.c (d_language_defn): Adjust.
10041 * disasm.c (disassembler_options_completer): Adjust to work with a
10042 completion_tracker instead of a VEC.
10043 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10044 (f_collect_symbol_completion_matches): ... this. Adjust to work
10045 with a completion_tracker instead of a VEC.
10046 (f_language_defn): Adjust.
10047 * go-lang.c (go_language_defn): Adjust.
10048 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10049 Adjust to work with a completion_tracker instead of a VEC.
10050 * infrun.c (handle_completer): Likewise.
10051 * interps.c (interpreter_completer): Likewise.
10052 * interps.h (interpreter_completer): Likewise.
10053 * language.c (unknown_language_defn, auto_language_defn)
10054 (local_language_defn): Adjust.
10055 * language.h (language_defn::la_make_symbol_completion_list):
10056 Rename to ...
10057 (language_defn::la_collect_symbol_completion_matches): ... this
10058 and adjust to work with a completion_tracker instead of a VEC.
10059 * m2-lang.c (m2_language_defn): Adjust.
10060 * objc-lang.c (objc_language_defn): Adjust.
10061 * opencl-lang.c (opencl_language_defn): Adjust.
10062 * p-lang.c (pascal_language_defn): Adjust.
10063 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10064 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10065 with a completion_tracker.
10066 * rust-lang.c (rust_language_defn): Adjust.
10067 * symtab.c (free_completion_list, do_free_completion_list)
10068 (return_val, completion_tracker): Delete.
10069 (completion_list_add_name, completion_list_add_symbol)
10070 (completion_list_add_msymbol, completion_list_objc_symbol)
10071 (completion_list_add_fields, add_symtab_completions): Add
10072 completion_tracker parameter and use it.
10073 (default_make_symbol_completion_list_break_on_1): Rename to...
10074 (default_collect_symbol_completion_matches_break_on): ... this.
10075 Add completion_tracker parameter and use it instead of allocating
10076 a completion tracker here.
10077 (default_make_symbol_completion_list_break_on): Delete old
10078 implementation.
10079 (default_make_symbol_completion_list): Delete.
10080 (default_collect_symbol_completion_matches): New.
10081 (make_symbol_completion_list): Delete.
10082 (collect_symbol_completion_matches): New.
10083 (make_symbol_completion_type): Rename to ...
10084 (collect_symbol_completion_matches_type): ... this. Add
10085 completion_tracker parameter and use it instead of VEC.
10086 (make_file_symbol_completion_list_1): Rename to...
10087 (collect_file_symbol_completion_matches): ... this. Add
10088 completion_tracker parameter and use it instead of VEC.
10089 (make_file_symbol_completion_list): Delete.
10090 (add_filename_to_list): Use completion_list instead of a VEC.
10091 (add_partial_filename_data::list): Now a completion_list.
10092 (make_source_files_completion_list): Work with a completion_list
10093 instead of a VEC.
10094 * symtab.h: Include "completer.h".
10095 (default_make_symbol_completion_list_break_on)
10096 (default_make_symbol_completion_list, make_symbol_completion_list)
10097 (make_symbol_completion_type, make_file_symbol_completion_list)
10098 (make_source_files_completion_list): Delete.
10099 (default_collect_symbol_completion_matches_break_on)
10100 (default_collect_symbol_completion_matches)
10101 (collect_symbol_completion_matches)
10102 (collect_symbol_completion_matches_type)
10103 (collect_file_symbol_completion_matches)
10104 (make_source_files_completion_list): New.
10105 * top.c (init_main): Don't install a rl_completion_entry_function
10106 hook. Install a rl_attempted_completion_function hook instead.
10107 * tui/tui-layout.c (layout_completer): Adjust to work with a
10108 completion_tracker.
10109 * tui/tui-regs.c (tui_reggroup_completer):
10110 * tui/tui-win.c (window_name_completer, focus_completer)
10111 (winheight_completer): Adjust to work with a completion_tracker.
10112 * value.c: Include "completer.h".
10113 (complete_internalvar): Adjust to work with a completion_tracker.
10114 * value.h (complete_internalvar): Likewise.
10115
10116 2017-07-17 Pedro Alves <palves@redhat.com>
10117
10118 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10119 renames.
10120 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10121 comments to completer_ftype's declaration.
10122 <completer_handle_brkchars>: Change type to
10123 completer_handle_brkchars_ftype.
10124 * command.h (completer_ftype): Add describing comment and give
10125 names to parameters.
10126 (completer_ftype_void): Rename to ...
10127 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10128 (set_cmd_completer_handle_brkchars): Adjust.
10129 * completer.c (filename_completer_handle_brkchars): New function.
10130 (complete_line_internal_normal_command): New function, factored
10131 out from ...
10132 (complete_line_internal): ... here.
10133 (command_completer_handle_brkchars)
10134 (default_completer_handle_brkchars)
10135 (completer_handle_brkchars_func_for_completer): New functions.
10136 * completer.h (set_gdb_completion_word_break_characters): Delete
10137 declaration.
10138 (completer_handle_brkchars_func_for_completer): New declaration.
10139 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10140 completer_handle_brkchars_func_for_completer.
10141
10142 2017-07-17 Pedro Alves <palves@redhat.com>
10143
10144 * completer.c (symbol_completer): New function, based on
10145 make_symbol_completion_list_fn.
10146 * completer.h (symbol_completer): New declaration.
10147 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10148 * python/py-cmd.c (completers): Adjust.
10149 * symtab.c (make_symbol_completion_list_fn): Delete.
10150 * symtab.h (make_symbol_completion_list_fn): Delete.
10151 * cli/cli-decode.c (add_cmd): Adjust.
10152
10153 2017-07-17 Pedro Alves <palves@redhat.com>
10154
10155 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10156 * dwarf2read.c: Include "filename-seen-cache.h".
10157 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10158 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10159 * filename-seen-cache.c: New file.
10160 * filename-seen-cache.h: New file.
10161 * symtab.c: Include "filename-seen-cache.h".
10162 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10163 (create_filename_seen_cache, clear_filename_seen_cache)
10164 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10165 to filename-seen-cache.h/filename-seen-cache.c.
10166 (output_source_filename, sources_info)
10167 (maybe_add_partial_symtab_filename)
10168 (make_source_files_completion_list): Adjust to use
10169 filename_seen_cache.
10170
10171 2017-07-17 Pedro Alves <palves@redhat.com>
10172
10173 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10174 fields.
10175 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10176 dwarf2_debug_sections*)): New.
10177 (dwarf2_per_objfile::dwarf2_per_objfile(const
10178 dwarf2_per_objfile&)): Declare as deleted.
10179 (dwarf2_per_objfile::operator=): Declare as deleted.
10180 (dwarf2_per_objfile::dwarf2_per_objfile)
10181 (dwarf2_per_objfile::~dwarf2_per_objfile)
10182 (dwarf2_per_objfile::free_cached_comp_units): New.
10183 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10184 ctor. Call dwarf2_per_objfile's ctor manually.
10185 (dwarf2_locate_sections): Deleted/refactored as ...
10186 (dwarf2_per_objfile::locate_sections): ... this new method.
10187 (free_cached_comp_units): Defer to
10188 dwarf2_per_objfile::free_cached_comp_units.
10189 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10190
10191 2017-07-14 Tom Tromey <tom@tromey.com>
10192
10193 PR rust/21764:
10194 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10195 parameter.
10196 <UNOP_SIZEOF>: Split into separate case.
10197 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10198
10199 2017-07-14 Tom Tromey <tom@tromey.com>
10200
10201 PR rust/21763:
10202 * symtab.c (symbol_matches_domain): Add language_rust to special
10203 case.
10204 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10205 treat LOC_TYPEDEF symbols as variables.
10206
10207 2017-07-14 Pedro Alves <palves@redhat.com>
10208
10209 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10210 symtabs matching all symtabs with SRCFILE as file name instead of
10211 only considering the first hit, with lookup_symtab.
10212
10213 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10214
10215 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10216 operator_name parameters.
10217 (gen_expr): Update function call.
10218
10219 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10220
10221 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10222 parameter.
10223 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10224 Likewise.
10225 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10226 parameter, use agent_expr::gdbarch instead, update function
10227 calls.
10228 (locexpr_tracepoint_var_ref): Likewise.
10229 (loclist_tracepoint_var_ref): Likewise.
10230 * ax-gdb.c (gen_trace_static_fields): Likewise.
10231 (gen_traced_pop): Likewise.
10232 (gen_frame_args_address): Likewise.
10233 (gen_frame_locals_address): Likewise.
10234 (gen_var_ref): Likewise.
10235 (gen_struct_ref_recursive): Likewise.
10236 (gen_static_field): Likewise.
10237 (gen_maybe_namespace_elt): Likewise.
10238 (gen_expr): Likewise.
10239 (gen_trace_for_var): Likewise.
10240 (gen_trace_for_expr): Likewise.
10241 (gen_trace_for_return_address): Likewise.
10242
10243 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10244
10245 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10246 parameter.
10247 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10248
10249 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10250
10251 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10252 from ax, update calls.
10253 (gen_usual_arithmetic): Likewise.
10254 (gen_integral_promotions): Likewise.
10255 (gen_bitfield_ref): Likewise.
10256 (gen_primitive_field): Likewise.
10257 (gen_struct_ref_recursive): Likewise.
10258 (gen_struct_ref): Likewise.
10259 (gen_maybe_namespace_elt): Likewise.
10260 (gen_struct_elt_for_reference): Likewise.
10261 (gen_namespace_elt): Likewise.
10262 (gen_aggregate_elt_ref): Likewise.
10263 (gen_expr): Get gdbarch from ax, update calls.
10264 (gen_expr_binop_rest): Likewise.
10265
10266 2017-07-13 Pedro Alves <palves@redhat.com>
10267
10268 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10269 as default tdesc.
10270 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10271 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10272 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10273 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10274 tdep.
10275 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10276 Get final tdesc from the tdep.
10277 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10278 default tdesc.
10279 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10280 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10281 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10282 Use it as default tdesc.
10283 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10284 down to amd_init_abi. No longer handle fallback tdesc here.
10285 * amd64-tdep.h (tdesc_x32): Declare.
10286 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10287 parameter.
10288 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10289 as default tdesc.
10290
10291 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10292
10293 * s390-linux-tdep.c (s390_process_record): Add support for
10294 instructions new in arch12.
10295
10296 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10297
10298 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10299 PT_GETFSBASE and PT_GETGSBASE.
10300 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
10301 PT_SETGSBASE.
10302
10303 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10304
10305 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
10306 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
10307 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
10308 those rules.
10309 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
10310 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
10311 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
10312 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
10313 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
10314 * features/i386/amd64.xml: Add 64bit-segments.xml.
10315 * features/i386/amd64-avx-avx512.c: Regenerated.
10316 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
10317 * features/i386/amd64-avx-mpx.c: Regenerated.
10318 * features/i386/amd64-avx.c: Regenerated.
10319 * features/i386/amd64-mpx.c: Regenerated.
10320 * features/i386/amd64.c: Regenerated.
10321 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
10322 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10323 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
10324 * regformats/i386/amd64-avx.dat: Regenerated.
10325 * regformats/i386/amd64-mpx.dat: Regenerated.
10326 * regformats/i386/amd64.dat: Regenerated.
10327
10328 2017-07-10 Yao Qi <yao.qi@linaro.org>
10329
10330 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10331 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10332
10333 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
10334
10335 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
10336 unsetenv.
10337 * gnulib/aclocal.m4: Regenerate.
10338 * gnulib/config.in: Regenerate.
10339 * gnulib/configure: Regenerate.
10340 * gnulib/import/Makefile.am: Regenerate.
10341 * gnulib/import/Makefile.in: Regenerate.
10342 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
10343 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
10344 * gnulib/import/m4/environ.m4: New file.
10345 * gnulib/import/m4/setenv.m4: New file.
10346 * gnulib/import/setenv.c: New file.
10347 * gnulib/import/unsetenv.c: New file.
10348
10349 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
10350
10351 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
10352 address when op is DW_OP_addr.
10353
10354 2017-07-09 Tom Tromey <tom@tromey.com>
10355
10356 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
10357 check and apply to outer type.
10358
10359 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10360
10361 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
10362 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
10363 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
10364 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
10365
10366 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10367
10368 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
10369
10370 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10371
10372 * corelow.c (get_core_siginfo): Remove.
10373 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
10374 instead of get_core_siginfo.
10375 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
10376 * gdbarch.h: Re-generate.
10377 * gdbarch.c: Re-generate.
10378 * linux-tdep.c (linux_core_xfer_siginfo): New.
10379 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
10380
10381 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10382
10383 * corelow.c (thread_section_name): Move to ...
10384 * gdbcore.h (thread_section_name): ... here.
10385
10386 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10387
10388 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
10389 (struct siginfo32): New.
10390 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
10391 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
10392 via ptrace(PT_LWPINFO).
10393
10394 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10395
10396 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
10397 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
10398 (fbsd_get_siginfo_type): New.
10399 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
10400 (_initialize_fbsd_tdep): New.
10401
10402 2017-07-06 David Blaikie <dblaikie@gmail.com>
10403
10404 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
10405 a singular dwo_unit*) to support multiple CUs in the same way that
10406 multiple TUs are supported.
10407 (create_cus_hash_table): Replace create_dwo_cu with a function for
10408 parsing multiple CUs from a DWO file.
10409 (open_and_init_dwo_file): Use create_cus_hash_table rather than
10410 create_dwo_cu.
10411 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
10412 htab_find, rather than comparing the signature to a singleton CU in
10413 the dwo_file.
10414
10415 2017-07-06 Pedro Alves <palves@redhat.com>
10416
10417 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
10418
10419 2017-07-04 Pedro Alves <palves@redhat.com>
10420
10421 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
10422 * gdbtypes.h (TYPE_STATIC): Delete.
10423 (struct fn_field) <is_public, is_abstract, is_static, is_final,
10424 is_synchronized, is_native>: Delete.
10425 <dummy>: Bump.
10426 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
10427 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
10428 (TYPE_FN_FIELD_ABSTRACT): Delete.
10429
10430 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
10431
10432 * buffer.h (buffer_finish): Fix spelling mistakes.
10433
10434 2017-07-01 Eli Zaretskii <eliz@gnu.org>
10435
10436 * .dir-locals.el: Automatically switch to C-style comments in
10437 versions of Emacs that support the feature.
10438
10439 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10440 Pedro Alves <palves@redhat.com>
10441
10442 PR cli/21688
10443 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
10444 (process_next_line): New variable 'inline_cmd'.
10445 Adjust 'if' clauses for "python", "compile" and "guile" to use
10446 'command_name_equals' and check for '!inline_cmd'.
10447
10448 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10449
10450 PR cli/21688
10451 * cli/cli-script.c (command_name_equals_not_inline): New function.
10452 (process_next_line): Adjust 'if' clauses for "python", "compile"
10453 and "guile" to use command_name_equals_not_inline.
10454
10455 2017-06-29 Pedro Alves <palves@redhat.com>
10456
10457 * completer.c (expression_completer): Call
10458 linespec_location_completer instead of location_completer.
10459
10460 2017-06-29 Pedro Alves <palves@redhat.com>
10461
10462 * completer.c (expression_completer): Remove code that recomputes
10463 'text' from 'word'.
10464
10465 2017-06-29 Yao Qi <yao.qi@linaro.org>
10466
10467 * regformats/regdat.sh: Generate code with
10468 "ifndef IN_PROCESS_AGENT".
10469
10470 2017-06-28 Pedro Alves <palves@redhat.com>
10471
10472 * command.h: Include "common/scoped_restore.h".
10473
10474 2017-06-28 Yao Qi <yao.qi@linaro.org>
10475
10476 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
10477 instead of obstack_grow.
10478
10479 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
10480
10481 PR gdb/21337
10482 * symfile.c (reread_symbols): Call objfiles_changed just before
10483 read_symbols.
10484
10485 2017-06-27 Pedro Alves <palves@redhat.com>
10486
10487 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
10488 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
10489 (completion_list_add_symbol, completion_list_add_msymbol):
10490 ... these new functions.
10491 (add_symtab_completions)
10492 (default_make_symbol_completion_list_break_on_1): Adjust.
10493
10494 2017-06-27 Pedro Alves <palves@redhat.com>
10495
10496 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
10497 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
10498 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
10499 dtor.
10500 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
10501 'storage_obstack' field an auto_obstack. In-class initialize all
10502 non-bitfield fields. Make minsyms_read bool.
10503 * symfile.c (read_symbols): Adjust.
10504
10505 2017-06-27 Alan Hayward <alan.hayward@arm.com>
10506
10507 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
10508 (gdbsim_store_register): Likewise.
10509
10510 2017-06-27 Pedro Alves <palves@redhat.com>
10511
10512 * c-exp.y (name_obstack): Now an auto_obstack.
10513 (yylex): Use auto_obstack::clear.
10514 (c_parse): Use auto_obstack::clear instead of reinitializing and
10515 freeing the obstack.
10516 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
10517 * d-exp.y (name_obstack): Now an auto_obstack.
10518 (yylex): Use auto_obstack::clear.
10519 (d_parse): Use auto_obstack::clear instead of reinitializing and
10520 freeing the obstack.
10521 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
10522 auto_obstack.
10523 * dwarf2read.c (create_addrmap_from_index)
10524 (dwarf2_build_psymtabs_hard)
10525 (update_enumeration_type_from_children): Likewise.
10526 * gdb_obstack.h (auto_obstack): New type.
10527 * go-exp.y (name_obstack): Now an auto_obstack.
10528 (build_packaged_name): Use auto_obstack::clear.
10529 (go_parse): Use auto_obstack::clear instead of reinitializing and
10530 freeing the obstack.
10531 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
10532 auto_obstack.
10533 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
10534 * rust-exp.y (work_obstack): Now an auto_obstack.
10535 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
10536 reinitializing and freeing the obstack.
10537 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
10538 (host_char_to_target): Use auto_obstack.
10539 * utils.h (make_cleanup_obstack_free): Delete declaration.
10540 * valprint.c (generic_emit_char, generic_printstr): Use
10541 auto_obstack.
10542
10543 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
10544
10545 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
10546 thread.
10547 (darwin_init_thread_list): Don't update dummy thread.
10548 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
10549
10550 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10551
10552 * record-full.c (netorder16): Remove.
10553
10554 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10555
10556 * common/diagnostics.h: Define macros for GCC.
10557 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
10558 * common/vec.h: Include diagnostics.h.
10559 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
10560 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
10561 warning.
10562
10563 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10564
10565 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
10566 New macro.
10567 * ada-lex.l: Ignore deprecated register warnings.
10568
10569 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10570
10571 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
10572 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
10573
10574 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10575
10576 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
10577 its own line.
10578
10579 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10580
10581 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
10582
10583 2017-06-23 Alan Hayward <alan.hayward@arm.com>
10584
10585 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
10586 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
10587 (xtensa_register_read_masked): Likewise.
10588
10589 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
10590
10591 * common/environ.c (gdb_environ::unset): Update comment.
10592
10593 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10594
10595 * python/py-unwind.c (pyuw_sniffer): Allocate space for
10596 registers.
10597
10598 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10599
10600 * record-full.c (record_full_exec_insn): Use byte_vector.
10601
10602 2017-06-22 Yao Qi <yao.qi@linaro.org>
10603
10604 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
10605 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10606
10607 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10608
10609 * remote.c (cached_reg): Move from here...
10610 * regcache.h (cached_reg): ...to here.
10611 * python/py-unwind.c (struct reg_info): Remove.
10612 (cached_frame_info): Use cached_reg_t.
10613 (pyuw_prev_register): Likewise.
10614 (pyuw_sniffer): Use cached_reg_t and allocate registers.
10615 (pyuw_dealloc_cache): Free all registers.
10616
10617 2017-06-22 Pedro Alves <palves@redhat.com>
10618 Simon Marchi <simon.marchi@ericsson.com>
10619
10620 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
10621 warning.
10622 * common/diagnostics.h: New file.
10623
10624 2017-06-22 Pedro Alves <palves@redhat.com>
10625
10626 * common/agent.h: Add include guards.
10627
10628 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
10629
10630 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
10631 talk about addressable units instead of bytes.
10632
10633 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10634
10635 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
10636 of '::const_iterator'.
10637
10638 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10639
10640 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10641 'unittests/environ-selftests.c'.
10642 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
10643 * charset.c (find_charset_names): Declare object 'iconv_env'.
10644 Update code to use 'iconv_env' object. Remove call to
10645 'free_environ'.
10646 * common/environ.c: Include <utility>.
10647 (make_environ): Delete function.
10648 (free_environ): Delete function.
10649 (gdb_environ::clear): New function.
10650 (gdb_environ::operator=): New function.
10651 (gdb_environ::get): Likewise.
10652 (environ_vector): Delete function.
10653 (set_in_environ): Delete function.
10654 (gdb_environ::set): New function.
10655 (unset_in_environ): Delete function.
10656 (gdb_environ::unset): New function.
10657 (gdb_environ::envp): Likewise.
10658 * common/environ.h: Include <vector>.
10659 (struct gdb_environ): Delete; transform into...
10660 (class gdb_environ): ... this class.
10661 (free_environ): Delete prototype.
10662 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
10663 environ_vector): Likewise.
10664 * infcmd.c (run_command_1): Update code to call
10665 'envp' from 'gdb_environ' class.
10666 (environment_info): Update code to call methods from 'gdb_environ'
10667 class.
10668 (unset_environment_command): Likewise.
10669 (path_info): Likewise.
10670 (path_command): Likewise.
10671 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
10672 (inferior::inferior): Initialize 'environment' using the host's
10673 information.
10674 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
10675 Include "environ.h".
10676 (class inferior) <environment>: Change type from 'struct
10677 gdb_environ' to 'gdb_environ'.
10678 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
10679 methods from 'gdb_environ' class.
10680 * solib.c (solib_find_1): Likewise
10681 * unittests/environ-selftests.c: New file.
10682
10683 2017-06-20 Yao Qi <yao.qi@linaro.org>
10684
10685 * features/i386/i386-linux.xml: Exchange the order of including
10686 32bit-linux.xml and 32bit-sse.xml.
10687 * features/i386/i386-linux.c: Regenerated.
10688
10689 2017-06-20 Yao Qi <yao.qi@linaro.org>
10690
10691 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
10692 Delete copy ctor and assignment operator.
10693 (tdesc_type): Likewise.
10694 (tdesc_feature): Likewise.
10695 (tdesc_free_reg): Remove.
10696 (tdesc_create_reg): Use new.
10697 (tdesc_free_type): Remove.
10698 (tdesc_create_vector): Use new.
10699 (tdesc_create_union): Likewise.
10700 (tdesc_create_flags): Likewise.
10701 (tdesc_create_enum): Likewise.
10702 (tdesc_free_feature): Delete.
10703 (free_target_description): Use delete.
10704
10705 2017-06-19 John Baldwin <jhb@FreeBSD.org>
10706
10707 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
10708 registers.
10709
10710 2017-06-19 Pedro Alves <palves@redhat.com>
10711
10712 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
10713 after gdb::unlinker.
10714
10715 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
10716
10717 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
10718 gdb_environ to access an environment variable.
10719
10720 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10721
10722 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
10723 gdb_byte*.
10724
10725 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10726
10727 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
10728
10729 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10730
10731 * configure: Re-generate.
10732 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
10733
10734 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10735
10736 * configure: Re-generate.
10737 * warning.m4: Pass -Werror to compiler when checking for
10738 supported warning flags.
10739
10740 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10741
10742 * Makefile.in (COMPILE.pre): Add "-x c++".
10743
10744 2017-06-16 Alan Hayward <alan.hayward@arm.com>
10745 Pedro Alves <palves@redhat.com>
10746 Yao Qi <yao.qi@linaro.org>
10747
10748 * defs.h (RequireLongest): New.
10749 (extract_integer): Declare function template.
10750 (extract_signed_integer): Remove the declaration, but define it
10751 static inline.
10752 (extract_unsigned_integer): Likewise.
10753 (store_integer): Declare function template.
10754 (store_signed_integer): Remove the declaration, but define it
10755 static inline.
10756 (store_unsigned_integer): Likewise.
10757 * findvar.c (extract_integer): New function template.
10758 (extract_signed_integer): Remove.
10759 (extract_unsigned_integer): Remove.
10760 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
10761 instantiations.
10762 (store_integer): New function template.
10763 (store_signed_integer): Remove.
10764 (store_unsigned_integer): Remove.
10765 (store_integer): Explicit instantiations.
10766 * regcache.c (regcache_raw_read_signed): Update.
10767 (regcache::raw_read): New function.
10768 (regcache::raw_read_signed): Remove.
10769 (regcache::raw_read_unsigned): Remove.
10770 (regcache_raw_read_unsigned): Update.
10771 (regcache_raw_write_unsigned): Update.
10772 (regcache::raw_write_signed): Remove.
10773 (regcache::raw_write): New function.
10774 (regcache_cooked_read_signed): Update.
10775 (regcache::raw_write_unsigned): Remove.
10776 (regcache::cooked_read_signed): Remove.
10777 (regcache_cooked_read_unsigned): Update.
10778 (regcache::cooked_read_unsigned): Remove.
10779 (regcache_cooked_write_signed): Update.
10780 (regcache_cooked_write_unsigned): Update.
10781 * regcache.h (regcache) <raw_read_signed>: Remove.
10782 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
10783 <raw_read, raw_write>: New.
10784 <cooked_read_signed, cooked_write_signed>: Remove.
10785 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
10786 <cooked_read, cooked_write>: New.
10787 * sh64-tdep.c (sh64_pseudo_register_read): Update.
10788 (sh64_pseudo_register_write): Update.
10789
10790 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
10791
10792 * arc-tdep.c (arc_disassembler_options): New variable.
10793 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
10794 of default_print_insn.
10795 (arc_delayed_print_insn): Set info->section when needed,
10796 use default_print_insn to retrieve a disassembler.
10797
10798 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
10799
10800 PR gdb/21574
10801 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
10802 to mention $SHELL and startup-with-shell.
10803
10804 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
10805
10806 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
10807
10808 2017-06-14 Yao Qi <yao.qi@linaro.org>
10809
10810 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
10811 default_print_insn instead of print_insn_aarch64.
10812 * arm-tdep.c (gdb_print_insn_arm): Call
10813 default_print_insn instead of print_insn_big_arm
10814 and print_insn_little_arm.
10815 * i386-tdep.c (i386_print_insn): Call default_print_insn
10816 instead of print_insn_i386.
10817 * ia64-tdep.c (ia64_print_insn): Call
10818 default_print_insn instead of print_insn_ia64.
10819 * mips-tdep.c (gdb_print_insn_mips): Call
10820 default_print_insn instead of print_insn_big_mips
10821 and print_insn_little_mips.
10822 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
10823 instead of print_insn_spu.
10824
10825 2017-06-14 Pedro Alves <palves@redhat.com>
10826
10827 * ada-lang.c: Include "common/byte-vector.h".
10828 (ada_value_primitive_packed_val): Use gdb::byte_vector.
10829 * charset.c (wchar_iterator::iterate): Resize the vector instead
10830 of reserving it.
10831 * common/byte-vector.h: Include "common/def-vector.h".
10832 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
10833 * cli/cli-dump.c: Include "common/byte-vector.h".
10834 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
10835 * common/byte-vector.h: New file.
10836 * common/def-vector.h: New file.
10837 * common/default-init-alloc.h: New file.
10838 * dwarf2loc.c: Include "common/byte-vector.h".
10839 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
10840 instead of reserving it.
10841 * dwarf2read.c: Include "common/byte-vector.h".
10842 (data_buf::m_vec): Now a gdb::byte_vector.
10843 * gdb_regex.c: Include "common/def-vector.h".
10844 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
10845 * mi/mi-main.c: Include "common/byte-vector.h".
10846 (mi_cmd_data_read_memory): Use gdb::byte_vector.
10847 * printcmd.c: Include "common/byte-vector.h".
10848 (print_scalar_formatted): Use gdb::byte_vector.
10849 * valprint.c: Include "common/byte-vector.h".
10850 (maybe_negate_by_bytes, print_decimal_chars): Use
10851 gdb::byte_vector.
10852
10853 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10854
10855 * darwin-nat.c: Include "nat/fork-inferior.h".
10856
10857 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10858
10859 * configure.nat: Factor out Darwin bits that are not
10860 architecture-specific. Add fork-inferior.o.
10861
10862 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10863
10864 * configure.nat: Factor out AIX bits that are not
10865 architecture-specific. Add fork-inferior.o.
10866
10867 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10868
10869 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
10870 (read_pieced_value, write_pieced_value): ...here. Reduce to
10871 wrappers that just call rw_pieced_value.
10872
10873 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10874
10875 * dwarf2loc.c (write_pieced_value): When writing the data for a
10876 memory piece, use write_memory_with_notification instead of
10877 write_memory.
10878
10879 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10880
10881 * valops.c (read_value_memory): Change embedded_offset to
10882 represent a bit offset instead of a byte offset.
10883 * value.h (read_value_memory): Adjust comment.
10884
10885 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10886
10887 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
10888 dest_offset_bits and source_offset_bits.
10889 (write_pieced_value): Likewise.
10890
10891 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10892
10893 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
10894 given by DW_OP_bit_piece.
10895 (write_pieced_value): Likewise.
10896
10897 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10898
10899 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
10900 some other preparations to the places where sufficient information
10901 is available.
10902 (write_pieced_value): Likewise.
10903
10904 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10905
10906 * dwarf2loc.c (bits_to_bytes): New function.
10907 (read_pieced_value): Fix offset calculations for register pieces
10908 on big-endian targets.
10909 (write_pieced_value): Likewise.
10910
10911 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10912
10913 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
10914 (write_pieced_value): Likewise.
10915
10916 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10917
10918 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
10919 transfer the source value's least significant bits, instead of its
10920 lowest-addressed ones. Rename type_len to max_offset.
10921 (read_pieced_value): Mirror above changes to write_pieced_value as
10922 applicable.
10923
10924 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10925
10926 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
10927 truncate full bytes from dest_offset_bits before using it as an
10928 offset into the buffer.
10929
10930 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10931
10932 * dwarf2loc.c (write_pieced_value): Include transfer size in
10933 byte-wise check.
10934
10935 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10936
10937 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
10938 calculation of this_size.
10939
10940 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10941
10942 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
10943 when targeting a bit-field.
10944 (write_pieced_value): Likewise.
10945
10946 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10947
10948 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
10949 (allocate_piece_closure): Drop addr_size parameter.
10950 (dwarf2_evaluate_loc_desc_full): Adjust call to
10951 allocate_piece_closure.
10952
10953 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10954
10955 PR gdb/21226
10956 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
10957 the LSB end, independent of endianness.
10958
10959 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10960
10961 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
10962 size capping.
10963
10964 2017-06-13 Yao Qi <yao.qi@linaro.org>
10965
10966 * mips-linux-nat.c: Move include features/mips*-linux.c to
10967 mips-linux-tdep.c.
10968 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
10969 to mips-linux-tdep.c.
10970 * mips-linux-tdep.c: Include features/mips*-linux.c
10971 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
10972 functions.
10973 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
10974 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
10975 (tdesc_mips64_dsp_linux): Declare.
10976
10977 2017-06-12 Tom Tromey <tom@tromey.com>
10978
10979 * valprint.h (val_print_type_code_int): Remove.
10980 * valprint.c (generic_val_print_int): Always call
10981 val_print_scalar_formatted.
10982 (val_print_type_code_int): Remove.
10983 * printcmd.c (print_scalar_formatted): Handle options->format==0.
10984 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
10985 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
10986 * ada-valprint.c (ada_val_print_num): Use
10987 val_print_scalar_formatted.
10988
10989 2017-06-12 Tom Tromey <tom@tromey.com>
10990
10991 * printcmd.c (print_scalar_formatted): Unify the two switches.
10992 Don't convert scalars to LONGEST.
10993
10994 2017-06-12 Tom Tromey <tom@tromey.com>
10995
10996 PR exp/16225:
10997 * valprint.h (print_decimal_chars): Update.
10998 * valprint.c (maybe_negate_by_bytes): New function.
10999 (print_decimal_chars): Add "is_signed" argument.
11000 * printcmd.c (print_scalar_formatted): Update.
11001
11002 2017-06-12 Tom Tromey <tom@tromey.com>
11003
11004 PR exp/16225:
11005 * valprint.h (print_binary_chars, print_hex_chars): Update.
11006 * valprint.c (val_print_type_code_int): Update.
11007 (print_binary_chars): Add "zero_pad" argument.
11008 (emit_octal_digit): New function.
11009 (print_octal_chars): Don't zero-pad.
11010 (print_decimal_chars): Likewise.
11011 (print_hex_chars): Add "zero_pad" argument.
11012 * sh64-tdep.c (sh64_do_fp_register): Update.
11013 * regcache.c (regcache::dump): Update.
11014 * printcmd.c (print_scalar_formatted): Update.
11015 * infcmd.c (default_print_one_register_info): Update.
11016
11017 2017-06-12 Pedro Alves <palves@redhat.com>
11018 Alan Hayward <alan.hayward@arm.com>
11019
11020 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11021 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11022 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11023 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11024 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11025
11026 2017-06-12 Pedro Alves <palves@redhat.com>
11027
11028 * dwarf2read.c (mapped_symtab::data): Now a vector of
11029 symtab_index_entry instead of vector of
11030 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11031 whether an element's name is NULL instead of checking whether the
11032 element itself is NULL.
11033 (find_slot): Change return type. Adjust.
11034 (hash_expand, , add_index_entry, uniquify_cu_indices)
11035 (write_hash_table): Adjust.
11036
11037 2017-06-12 Pedro Alves <palves@redhat.com>
11038
11039 * dwarf2read.c (recursively_count_psymbols): New function.
11040 (write_psymtabs_to_index): Call it to compute number of psyms and
11041 pass estimate size of psyms_seen to unordered_set's ctor.
11042
11043 2017-06-12 Pedro Alves <palves@redhat.com>
11044
11045 * dwarf2read.c (write_hash_table): Check if key already exists
11046 before emplacing.
11047
11048 2017-06-12 Pedro Alves <palves@redhat.com>
11049
11050 * dwarf2read.c (data_buf::append_space): Rename to...
11051 (data_buf::grow): ... this, and make private. Adjust all callers.
11052 (data_buf::append_uint): New method.
11053 (add_address_entry, write_one_signatured_type)
11054 (write_psymtabs_to_index): Use it.
11055
11056 2017-06-12 Pedro Alves <palves@redhat.com>
11057
11058 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11059 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11060 (data_buf::file_write): Call ::fwrite directly.
11061
11062 2017-06-12 Pedro Alves <palves@redhat.com>
11063
11064 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11065 std::vector::erase.
11066
11067 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11068
11069 Code cleanup: C++ify .gdb_index producer.
11070 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11071 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11072 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11073 (create_strtab, add_string): Remove.
11074 (file_write, data_buf): New.
11075 (struct symtab_index_entry): Use std::vector for cu_indices.
11076 (struct mapped_symtab): Use std::vector for data.
11077 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11078 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11079 Remove.
11080 (find_slot): Change return type. Update it to the new data structures.
11081 (hash_expand, add_index_entry): Update it to the new data structures.
11082 (offset_type_compare): Remove.
11083 (uniquify_cu_indices): Update it to the new data structures.
11084 (c_str_view, c_str_view_hasher, vector_hasher): New.
11085 (add_indices_to_cpool): Remove.
11086 (write_hash_table): Update it to the new data structures.
11087 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11088 (eq_psymtab_cu_index): Remove.
11089 (psym_index_map): New typedef.
11090 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11091 reference and std::unordered_map for cu_index_htab.
11092 (add_address_entry, add_address_entry_worker, write_address_map)
11093 (write_psymbols): Update it to the new data structures.
11094 (write_obstack): Remove.
11095 (struct signatured_type_index_data): Change types_list to a data_buf
11096 reference and psyms_seen to a std::unordered_set reference.
11097 (write_one_signatured_type, recursively_write_psymbols)
11098 (write_psymtabs_to_index): Update it to the new data structures.
11099
11100 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11101
11102 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11103 separate-debug-file commands.
11104 * symfile.h (separate_debug_file_debug): New global.
11105 * symfile.c (separate_debug_file_debug): New global.
11106 (separate_debug_file_exists, find_separate_debug_file): Add
11107 debug output.
11108 (_initialize_symfile): Add "set debug separate-debug-file"
11109 command.
11110 * build-id.c (build_id_to_debug_bfd,
11111 find_separate_debug_file_by_buildid): Add debug output.
11112
11113 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11114
11115 * gdbarch.sh (displaced_step_free_closure): Remove.
11116 * gdbarch.h, gdbarch.c: Re-generate.
11117 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11118 displaced_step_free_closure.
11119 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11120 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11121 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11122 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11123 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11124 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11125 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11126 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11127 * infrun.c (displaced_step_clear): Call xfree instead of
11128 gdbarch_displaced_step_free_closure.
11129
11130 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11131
11132 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11133 NULL".
11134
11135 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11136
11137 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11138 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11139 (mn10300_push_dummy_call): Likewise.
11140
11141 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11142
11143 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11144
11145 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11146
11147 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11148
11149 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11150
11151 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11152 able to start inferiors using a shell.
11153 (New remote packets): Announce new packet "QStartupWithShell".
11154 * remote.c: Add PACKET_QStartupWithShell.
11155 (extended_remote_create_inferior): Handle new
11156 PACKET_QStartupWithShell.
11157 (remote_protocol_features) <QStartupWithShell>: New entry for
11158 PACKET_QStartupWithShell.
11159 (_initialize_remote): Call "add_packet_config_cmd" for
11160 QStartupShell.
11161
11162 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11163 Pedro Alves <palves@redhat.com>
11164
11165 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11166 and "nat/fork-inferior.h".
11167 * common/common-inferior.h: New file, with contents from
11168 "gdb/inferior.h".
11169 * commom/common-utils.c: Include "common-utils.h".
11170 (stringify_argv): New function.
11171 * common/common-utils.h (stringify_argv): New prototype.
11172 * configure.nat: Add "fork-inferior.o" as a dependency for
11173 "*linux*", "fbsd*" and "nbsd*" hosts.
11174 * corefile.c (get_exec_file): Update comment.
11175 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11176 instead of "startup_inferior".
11177 (darwin_create_inferior): Call "add_thread_silent" after
11178 "fork_inferior".
11179 * fork-child.c: Cleanup unnecessary includes.
11180 (SHELL_FILE): Move to "common/common-fork-child.c".
11181 (environ): Likewise.
11182 (exec_wrapper): Initialize.
11183 (get_exec_wrapper): New function.
11184 (breakup_args): Move to "common/common-fork-child.c"; rename to
11185 "breakup_args_for_exec".
11186 (escape_bang_in_quoted_argument): Move to
11187 "common/common-fork-child.c".
11188 (saved_ui): New variable.
11189 (prefork_hook): New function.
11190 (postfork_hook): Likewise.
11191 (postfork_child_hook): Likewise.
11192 (gdb_startup_inferior): Likewise.
11193 (fork_inferior): Move to "common/common-fork-child.c". Update
11194 function to support gdbserver.
11195 (startup_inferior): Likewise.
11196 * gdbcore.h (get_exec_file): Remove declaration.
11197 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11198 instead of "startup_inferior". Call "add_thread_silent" after
11199 "fork_inferior".
11200 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11201 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11202 instead of "startup_inferior". Call "add_thread_silent" after
11203 "fork_inferior".
11204 * inferior.h: Include "common-inferior.h".
11205 (trace_start_error): Move to "common/common-utils.h".
11206 (trace_start_error_with_name): Likewise.
11207 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11208 (startup_inferior): Likewise.
11209 (gdb_startup_inferior): New prototype.
11210 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11211 * nat/fork-inferior.h: New file.
11212 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11213 instead of "startup_inferior". Call "add_thread_silent" after
11214 "fork_inferior".
11215 * target.h (target_terminal_init): Move prototype to
11216 "target/target.h".
11217 (target_terminal_inferior): Likewise.
11218 (target_terminal_ours): Likewise.
11219 * target/target.h (target_terminal_init): New prototype, moved
11220 from "target.h".
11221 (target_terminal_inferior): Likewise.
11222 (target_terminal_ours): Likewise.
11223 * utils.c (gdb_flush_out_err): New function.
11224
11225 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11226
11227 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11228 * common/common-gdbthread.h: New file, with parts from
11229 "gdb/gdbthread.h".
11230 * gdbthread.h: Include "common-gdbthread.h".
11231 (switch_to_thread): Moved to "common/common-gdbthread.h".
11232
11233 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11234
11235 * Makefile.in (SFILES): Add "common/job-control.c".
11236 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11237 (COMMON_OBS): Add "job-control.o".
11238 * common/job-control.c: New file, with contents from
11239 "gdb/inflow.c".
11240 * common/job-control.h: New file, with contents from "terminal.h".
11241 * fork-child.c: Include "job-control.h".
11242 * inflow.c: Include "job-control.h".
11243 (gdb_setpgid): Move to "common/common-inflow.c".
11244 (_initialize_inflow): Move setting of "job_control" to
11245 "handle_job_control".
11246 * terminal.h (job_control): Moved to "common/common-terminal.h".
11247 (gdb_setpgid): Likewise.
11248 * top.c: Include "job_control.h".
11249 * utils.c: Likewise.
11250 (job_control): Moved to "job-control.c".
11251
11252 2017-06-07 Pedro Alves <palves@redhat.com>
11253
11254 * Makefile.in (SFILES): Add gdb_regex.c.
11255 (COMMON_OBS): Add gdb_regex.o.
11256 * ada-lang.c (ada_add_standard_exceptions)
11257 (ada_add_exceptions_from_frame, name_matches_regex)
11258 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11259 parameter type to compiled_regex. Adjust.
11260 (ada_exceptions_list): Use compiled_regex.
11261 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11262 std::unique_ptr<compiled_regex>.
11263 (exception_catchpoint::~exception_catchpoint): Remove regfree
11264 call.
11265 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11266 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11267 * breakpoint.c (solib_catchpoint::compiled): Now a
11268 std::unique_ptr<compiled_regex>.
11269 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11270 (check_status_catch_solib): Adjust to use compiled_regex.
11271 (add_solib_catchpoint): Adjust to use compiled_regex.
11272 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11273 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11274 compiled_regex reference. Adjust to use it.
11275 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11276 declaration. Include "gdb_regex.h".
11277 (apropos_cmd): Change regex parameter to compiled_regex reference.
11278 * gdb_regex.c: New file.
11279 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11280 declarations.
11281 (class compiled_regex): New.
11282 * linux-tdep.c: Include "common/gdb_optional.h".
11283 (struct mapping_regexes): New, factored out from
11284 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11285 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11286 gdb::optional and remove cleanups. Adjust to compiled_regex.
11287 * probe.c: Include "common/gdb_optional.h".
11288 (collect_probes): Use compiled_regex and gdb::optional and remove
11289 cleanups.
11290 * skip.c: Include "common/gdb_optional.h".
11291 (skiplist_entry::compiled_function_regexp): Now a
11292 gdb::optional<compiled_regex>.
11293 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11294 (free_skiplist_entry): Remove regfree call.
11295 (compile_skip_regexp, skip_rfunction_p): Adjust to use
11296 compiled_regex and gdb::optional.
11297 * symtab.c: Include "common/gdb_optional.h".
11298 (search_symbols): Use compiled_regex and gdb::optional.
11299 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
11300 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
11301 to gdb_regex.c.
11302
11303 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11304
11305 * regcache.c (regcache::save): Avoid buffer use.
11306 (regcache::dump): Likewise.
11307
11308 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11309
11310 * sh-tdep.c (sh_pseudo_register_read): Remove
11311 MAX_REGISTER_SIZE.
11312 (sh_pseudo_register_write): Likewise.
11313 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
11314 (sh64_pseudo_register_write): Likewise
11315
11316 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11317
11318 * aarch64-tdep.c (aarch64_store_return_value): Use
11319 V_REGISTER_SIZE.
11320 (aarch64_pseudo_read_value): Likewise.
11321 (aarch64_pseudo_write): Likewise.
11322
11323 2017-06-06 Yao Qi <yao.qi@linaro.org>
11324
11325 * regformats/regdef.h (set_register_cache): Remove the
11326 declaration.
11327
11328 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11329
11330 * frame.c (frame_unwind_register_signed): Use
11331 frame_unwind_register_value.
11332
11333 2017-06-06 Pedro Alves <palves@redhat.com>
11334
11335 PR breakpoints/21553
11336 * breakpoint.c (create_breakpoints_sal_default)
11337 (init_breakpoint_sal, create_breakpoint_sal): Use
11338 gdb::unique_xmalloc_ptr for string parameters.
11339 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11340 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
11341 (base_breakpoint_create_breakpoints_sal)
11342 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
11343 (strace_marker_create_breakpoints_sal)
11344 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
11345 string parameters.
11346 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
11347 gdb::unique_xmalloc_ptr for string parameters.
11348 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11349 parameters.
11350
11351 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11352
11353 * alpha-tdep.c (alpha_register_to_value): Use
11354 get_frame_register_value.
11355 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
11356
11357 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11358
11359 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
11360 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
11361 (ia64_value_to_register): Likewise.
11362 (ia64_extract_return_value): Likewise.
11363 (ia64_store_return_value): Likewise.
11364 (ia64_push_dummy_call): Likewise.
11365
11366 2017-06-04 Joel Brobecker <brobecker@adacore.com>
11367
11368 GDB 8.0 released.
11369
11370 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
11371
11372 * x86-linux-nat.c (struct arch_lwp_info): Remove.
11373
11374 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
11375
11376 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
11377 parameter.
11378 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
11379
11380 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
11381
11382 * event-loop.c (poll_timers): Unallocate timer using delete
11383 instead of xfree.
11384
11385 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11386
11387 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
11388 (struct breakpoint) <~breakpoint>: New.
11389 (struct watchpoint): Inherit from breakpoint.
11390 <~watchpoint>: New.
11391 <base>: Remove.
11392 (struct tracepoint): Inherit from breakpoint.
11393 <base>: Remove.
11394 * breakpoint.c (longjmp_breakpoint_ops): Remove.
11395 (struct longjmp_breakpoint): Inherit from breakpoint.
11396 <~longjmp_breakpoint>: New.
11397 <base>: Remove.
11398 (new_breakpoint_from_type): Remove casts.
11399 (watchpoint_in_thread_scope): Remove reference to base field.
11400 (watchpoint_del_at_next_stop): Likewise.
11401 (update_watchpoint): Likewise.
11402 (watchpoint_check): Likewise.
11403 (bpstat_check_watchpoint): Likewise.
11404 (set_longjmp_breakpoint): Likewise.
11405 (struct fork_catchpoint): Inherit from breakpoint.
11406 <base>: Remove.
11407 (struct solib_catchpoint): Inherit from breakpoint.
11408 <~solib_catchpoint>: New.
11409 <base>: Remove.
11410 (dtor_catch_solib): Change to ...
11411 (solib_catchpoint::~solib_catchpoint): ... this.
11412 (breakpoint_hit_catch_solib): Remove reference to base field.
11413 (add_solib_catchpoint): Likewise.
11414 (create_fork_vfork_event_catchpoint): Likewise.
11415 (struct exec_catchpoint): Inherit from breakpoint.
11416 <~exec_catchpoint>: New.
11417 <base>: Remove.
11418 (dtor_catch_exec): Change to ...
11419 (exec_catchpoint::~exec_catchpoint): ... this.
11420 (dtor_watchpoint): Change to ...
11421 (watchpoint::~watchpoint): ... this.
11422 (watch_command_1): Remove reference to base field.
11423 (catch_exec_command_1): Likewise.
11424 (base_breakpoint_dtor): Change to ...
11425 (breakpoint::~breakpoint): ... this.
11426 (base_breakpoint_ops): Remove dtor field value.
11427 (longjmp_bkpt_dtor): Change to ...
11428 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
11429 (strace_marker_create_breakpoints_sal): Remove reference to base
11430 field.
11431 (delete_breakpoint): Don't manually call breakpoint destructor.
11432 (create_tracepoint_from_upload): Remove reference to base field.
11433 (trace_pass_set_count): Likewise.
11434 (initialize_breakpoint_ops): Don't initialize
11435 momentary_breakpoint_ops, don't set dtors.
11436 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
11437 <~ada_catchpoint>: New.
11438 <base>: Remove.
11439 (create_excep_cond_exprs): Remove reference to base field.
11440 (dtor_exception): Change to ...
11441 (ada_catchpoint::~ada_catchpoint): ... this.
11442 (dtor_catch_exception): Remove.
11443 (dtor_catch_exception_unhandled): Remove.
11444 (dtor_catch_assert): Remove.
11445 (create_ada_exception_catchpoint): Remove reference to base
11446 field.
11447 (initialize_ada_catchpoint_ops): Don't set dtors.
11448 * break-catch-sig.c (struct signal_catchpoint): Inherit from
11449 breakpoint.
11450 <~signal_catchpoint>: New.
11451 <base>: Remove.
11452 (signal_catchpoint_dtor): Change to ...
11453 (signal_catchpoint::~signal_catchpoint): ... this.
11454 (create_signal_catchpoint): Remove reference to base field.
11455 (initialize_signal_catchpoint_ops): Don't set dtor.
11456 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
11457 from breakpoint.
11458 <~syscall_catchpoint>: New.
11459 <base>: Remove.
11460 (dtor_catch_syscall): Change to ...
11461 (syscall_catchpoint::~syscall_catchpoint): ... this.
11462 (create_syscall_event_catchpoint): Remove reference to base
11463 field.
11464 (initialize_syscall_catchpoint_ops): Don't set dtor.
11465 * break-catch-throw.c (struct exception_catchpoint): Inherit
11466 from breakpoint.
11467 <~exception_catchpoint>: New.
11468 <base>: Remove.
11469 (dtor_exception_catchpoint): Change to ...
11470 (exception_catchpoint::~exception_catchpoint): ... this.
11471 (handle_gnu_v3_exceptions): Remove reference to base field.
11472 (initialize_throw_catchpoint_ops): Don't set dtor.
11473 * ctf.c (ctf_get_traceframe_address): Remove reference to base
11474 field.
11475 * remote.c (remote_get_tracepoint_status): Likewise.
11476 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
11477 * tracefile.c (tracefile_fetch_registers): Likewise.
11478 * tracepoint.c (actions_command): Likewise.
11479 (validate_actionline): Likewise.
11480 (tfind_1): Likewise.
11481 (get_traceframe_location): Likewise.
11482 (find_matching_tracepoint_location): Likewise.
11483 (parse_tracepoint_status): Likewise.
11484 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
11485
11486 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11487
11488 * breakpoint.c (struct longjmp_breakpoint): New struct.
11489 (is_tracepoint_type): Change return type to bool.
11490 (is_longjmp_type): New function.
11491 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
11492 (set_raw_breakpoint_without_location): Use
11493 new_breakpoint_from_type.
11494 (set_raw_breakpoint): Likewise.
11495
11496 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11497
11498 * breakpoint.c (new_breakpoint_from_type): New function.
11499 (create_breakpoint_sal): Use new_breakpoint_from_type and
11500 unique_ptr.
11501 (create_breakpoint): Likewise.
11502
11503 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
11504
11505 * memattr.c (mem_info_command): Rename to ...
11506 (info_mem_command): ... this.
11507 (mem_enable_command): Rename to ...
11508 (enable_mem_command): ... this.
11509 (mem_disable_command): Rename to ...
11510 (disable_mem_command): ... this.
11511 (mem_delete_command): Rename to ...
11512 (delete_mem_command): ... this.
11513 (_initialize_mem): Adjust function names.
11514
11515 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11516
11517 * btrace.c (handle_pt_insn_events): New.
11518 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
11519 STATUS. Split into this and ...
11520 (handle_pt_insn_event_flags): ... this.
11521
11522 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11523
11524 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
11525 and struct pt_insn.resynced.
11526 * configure: Regenerated.
11527 * config.in: Regenerated.
11528
11529 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11530
11531 * btrace.c (ftrace_find_call_by_number): New function.
11532 (ftrace_new_function): Store objects, not pointers.
11533 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
11534 ftrace_new_gap, ftrace_update_function,
11535 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
11536 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
11537 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
11538 btrace_ends_with_single_insn, btrace_call_get): Account for
11539 btrace_thread_info::functions now storing objects.
11540 * btrace.h (struct btrace_thread_info): Add constructor.
11541 (struct btrace_thread_info) <functions>: Make std::vector.
11542 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
11543 Initialize with default values.
11544 * record-btrace.c (record_btrace_frame_sniffer): Account for
11545 btrace_thread_info::functions now storing objects.
11546
11547 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11548
11549 * btrace.c: Remove typedef bfun_s.
11550 (ftrace_new_gap): Directly add gaps to the list of gaps.
11551 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
11552 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
11553 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
11554 instead of gdb VEC.
11555
11556 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11557
11558 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
11559 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
11560 with btrace_thread_info::next_segment and
11561 btrace_thread_info::prev_segment.
11562 * btrace.h: Remove struct btrace_func_link.
11563 (struct btrace_function): Replace pair of function segment pointers
11564 with pair of indices.
11565 * python/py-record-btrace.c (btpy_call_prev_sibling,
11566 btpy_call_next_sibling): Replace references to
11567 btrace_thread_info::segment with btrace_thread_info::next_segment and
11568 btrace_thread_info::prev_segment.
11569 * record-btrace.c (record_btrace_frame_this_id): Use
11570 btrace_find_call_by_number.
11571
11572 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11573
11574 * btrace.c (ftrace_new_function, ftrace_fixup_level,
11575 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
11576 btrace_insn_next, btrace_insn_prev): Remove references to
11577 btrace_thread_info::flow.
11578 * btrace.h (struct btrace_function): Remove FLOW.
11579
11580 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11581
11582 * btrace.c (ftrace_find_call_by_number): New function.
11583 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
11584 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
11585 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
11586 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
11587 index.
11588 * btrace.h (struct btrace_function): Turn UP into an index.
11589 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
11590 as an index.
11591 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
11592 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
11593 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
11594
11595 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11596
11597 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11598 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11599 ftrace_update_function, ftrace_compute_global_level_offset,
11600 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
11601 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
11602 btrace_insn_end, btrace_is_empty): Remove references to
11603 btrace_thread_info::begin and btrace_thread_info::end.
11604 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
11605 (struct btrace_thread_info) <functions>: Adjust comment.
11606 * record-btrace.c (record_btrace_start_replaying): Remove reference to
11607 btrace_thread_info::begin.
11608
11609 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11610
11611 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11612 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11613 ftrace_update_function): Remove arguments that implicitly were always
11614 BTINFO->END.
11615 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
11616 Don't pass BTINFO->END.
11617
11618 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11619
11620 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
11621 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
11622 btrace_find_insn_by_number): Replace function segment pointer with
11623 index.
11624 (btrace_insn_cmp): Simplify.
11625 * btrace.h: (struct btrace_insn_iterator) Rename index to
11626 insn_index. Replace function segment pointer with index into function
11627 segment vector.
11628 * record-btrace.c (record_btrace_call_history): Replace function
11629 segment pointer use with index.
11630 (record_btrace_frame_sniffer): Retrieve function call segment through
11631 vector.
11632 (record_btrace_set_replay): Remove defunc't safety check.
11633
11634 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11635
11636 * btrace.c (btrace_ends_with_single_insn): New function.
11637 (btrace_call_get, btrace_call_number, btrace_call_begin,
11638 btrace_call_end, btrace_call_next, btrace_call_prev,
11639 btrace_find_call_by_number): Use index into call segment vector
11640 instead of pointer.
11641 (btrace_call_cmp): Simplify.
11642 * btrace.h (struct btrace_call_iterator): Replace function call segment
11643 pointer with index into vector.
11644 * record-btrace.c (record_btrace_call_history): Use index instead of
11645 pointer.
11646
11647 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11648
11649 * btrace.c (btrace_insn_begin, btrace_insn_end,
11650 btrace_find_insn_by_number): Add btinfo to iterator.
11651 * btrace.h (struct btrace_insn_iterator): Add btinfo.
11652
11653 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11654
11655 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
11656 and save pointers directly.
11657 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
11658 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
11659 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
11660 changed signature of functions.
11661 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
11662 (btrace_fetch): Remove code that adds btrace_function pointers to
11663 vector of btrace_functions.
11664 (btrace_clear): Simplify freeing vector of btrace_functions.
11665
11666 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11667
11668 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
11669 Replace VEC_* with std::vector functions.
11670 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
11671 (struct btrace_thread_info)<functions>: Change type to std::vector.
11672
11673 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
11674
11675 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
11676 "Removed targets and native configurations" up. Merge duplicate
11677 "New commands" sub-sections. Add "New options" sub-sections.
11678
11679 2017-05-26 Alan Hayward <alan.hayward@arm.com>
11680
11681 * defs.h (copy_integer_to_size): New declaration.
11682 * findvar.c (copy_integer_to_size): New function.
11683 (do_cint_test): New selftest function.
11684 (copy_integer_to_size_test): Likewise.
11685 (_initialize_findvar): Likewise.
11686 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
11687 (mips_fbsd_collect_reg): Use raw_collect_integer.
11688 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
11689 (mips64_fill_gregset): Use raw_collect_integer
11690 (mips64_fill_fpregset): Use raw_supply_integer.
11691 * regcache.c (regcache::raw_supply_integer): New function.
11692 (regcache::raw_collect_integer): Likewise.
11693 * regcache.h: (regcache::raw_supply_integer): New declaration.
11694 (regcache::raw_collect_integer): Likewise.
11695
11696 2017-05-24 Yao Qi <yao.qi@linaro.org>
11697
11698 * Makefile.in (SFILES): Add gdbarch-selftests.c.
11699 (COMMON_OBS): Add gdbarch-selftests.o.
11700 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
11701 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
11702 * gdbarch-selftests.c: New file.
11703 * regcache.h (regcache) <~regcache>: Mark it virtual if
11704 GDB_SELF_TEST.
11705 <raw_write>: Likewise.
11706
11707 2017-05-24 Yao Qi <yao.qi@linaro.org>
11708
11709 * regcache.c (current_regcache): Change it to
11710 regcache::current_regcache.
11711 (regcache_observer_target_changed): Update.
11712 (regcache_thread_ptid_changed): Make it a regcache static
11713 method.
11714 (regcache_thread_ptid_changed): Update.
11715 (class regcache_access): New.
11716 (current_regcache_test): Update.
11717 (_initialize_regcache): Update.
11718 * regcache.h: Include forward_list.
11719 (regcache): Declare regcache_thread_ptid_changed and declare
11720 registers_changed_ptid as friend.
11721
11722 2017-05-24 Yao Qi <yao.qi@linaro.org>
11723
11724 * i387-tdep.c (i387_register_to_value): Use register_size
11725 instead of TYPE_LENGTH.
11726 * m68k-tdep.c (m68k_register_to_value): Likewise.
11727
11728 2017-05-24 Yao Qi <yao.qi@linaro.org>
11729
11730 * i387-tdep.c (i387_convert_register_p): Return false if type
11731 code isn't TYPE_CODE_FLT.
11732
11733 2017-05-24 Yao Qi <yao.qi@linaro.org>
11734
11735 * alpha-tdep.c (alpha_convert_register_p): Return true if type
11736 length is 4.
11737 (alpha_register_to_value): Remove type length check.
11738 (alpha_value_to_register): Likewise.
11739
11740 2017-05-24 Yao Qi <yao.qi@linaro.org>
11741
11742 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
11743 TYPE_CODE_FLT.
11744
11745 2017-05-24 Yao Qi <yao.qi@linaro.org>
11746
11747 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
11748 TYPE_CODE_FLT or not.
11749
11750 2017-05-24 Yao Qi <yao.qi@linaro.org>
11751
11752 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
11753 * avr-tdep.c (avr_gdbarch_init): Likewise.
11754 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11755 * cris-tdep.c (cris_gdbarch_init): Likewise.
11756 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11757 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11758 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11760 * mep-tdep.c (mep_gdbarch_init): Likewise.
11761 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11762 * mips-tdep.c (mips_gdbarch_init): Likewise.
11763 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11764 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11765 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11766 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11767 * v850-tdep.c (v850_gdbarch_init): Likewise.
11768
11769 2017-05-24 Yao Qi <yao.qi@linaro.org>
11770
11771 * selftest-arch.c (tests_with_arch): Call registers_changed
11772 and reinit_frame_cache.
11773 * selftest.c (run_self_tests): Likewise.
11774
11775 2017-05-24 Yao Qi <yao.qi@linaro.org>
11776
11777 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
11778 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
11779
11780 2017-05-24 Yao Qi <yao.qi@linaro.org>
11781
11782 * rl78-tdep.c (rl78_gdbarch_init): Don't call
11783 set_gdbarch_print_insn.
11784
11785 2017-05-24 Yao Qi <yao.qi@linaro.org>
11786
11787 * h8300-tdep.c (h8300_gdbarch_init): Don't call
11788 set_gdbarch_print_insn.
11789
11790 2017-05-24 Yao Qi <yao.qi@linaro.org>
11791
11792 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11793 set_gdbarch_print_insn.
11794 * arc-tdep.c (arc_gdbarch_init): Likewise.
11795 * arch-utils.c: include dis-asm.h.
11796 (default_print_insn): New function.
11797 * arch-utils.h (default_print_insn): Declare.
11798 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
11799 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11800 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
11801 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
11802 * frv-tdep.c (frv_gdbarch_init): Likewise.
11803 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11804 * gdbarch.sh (print_insn): Use default_print_insn.
11805 * gdbarch.c: Regenerated.
11806 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11807 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
11808 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11809 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
11810 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11811 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
11812 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
11813 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11814 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
11815 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11816 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11817 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11818 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11819 * mt-tdep.c (mt_gdbarch_init): Likewise.
11820 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11821 * nios2-tdep.c (nios2_print_insn): Remove.
11822 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
11823 * rx-tdep.c (rx_gdbarch_init): Likewise.
11824 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11825 * score-tdep.c (score_print_insn): Remove.
11826 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
11827 * sh-tdep.c (sh_gdbarch_init): Likewise.
11828 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11829 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11830 * tic6x-tdep.c (tic6x_print_insn): Remove.
11831 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
11832 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
11833 * v850-tdep.c (v850_gdbarch_init): Likewise.
11834 * vax-tdep.c (vax_gdbarch_init): Likewise.
11835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11836 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
11837
11838 2017-05-23 John Baldwin <jhb@FreeBSD.org>
11839
11840 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
11841 (MIPS_FP0_REGNUM): Remove.
11842 (MIPS_FSR_REGNUM): Remove.
11843 (mips_fbsd_supply_fpregs): Use mips_regnum.
11844 (mips_fbsd_supply_gregs): Likewise.
11845 (mips_fbsd_collect_fpregs): Likewise.
11846 (mips_fbsd_collect_gregs): Likewise.
11847
11848 2017-05-23 John Baldwin <jhb@FreeBSD.org>
11849
11850 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
11851 (getpfpregs_supplies): New function.
11852 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
11853 getfpregs_supplies.
11854 (mips_fbsd_store_inferior_registers): Likewise.
11855
11856 2017-05-22 Pedro Alves <palves@redhat.com>
11857
11858 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
11859 maintainer.
11860
11861 2017-05-22 Alan Hayward <alan.hayward@arm.com>
11862
11863 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
11864 (store_register): Likewise.
11865 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
11866 (get_decimal_float_return_value): Likewise.
11867 (do_ppc_sysv_return_value): Likewise.
11868 (ppc64_sysv_abi_push_integer): Likewise.
11869 (ppc64_sysv_abi_push_freg): Likewise.
11870 (ppc64_sysv_abi_return_value_base): Likewise.
11871 (ppc64_sysv_abi_return_value): Likewise.
11872 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
11873 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
11874 * rs6000-nat.c: Likewise.
11875 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
11876 (rs6000_value_to_register): Likewise.
11877 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
11878
11879 2017-05-21 Tom Tromey <tom@tromey.com>
11880
11881 PR rust/21466:
11882 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
11883 arrays as "[T]", not "[T; ]".
11884
11885 2017-05-19 Tom Tromey <tom@tromey.com>
11886
11887 PR rust/21484:
11888 * rust-lang.c (exp_descriptor_rust): New function.
11889 (rust_language_defn): Use it.
11890 * p-lang.c (pascal_language_defn): Update.
11891 * opencl-lang.c (opencl_language_defn): Update.
11892 * objc-lang.c (objc_language_defn): Update.
11893 * m2-lang.c (m2_language_defn): Update.
11894 * language.h (struct language_defn)
11895 <la_watch_location_expression>: New member.
11896 * language.c (unknown_language_defn, auto_language_defn)
11897 (local_language_defn): Update.
11898 * go-lang.c (go_language_defn): Update.
11899 * f-lang.c (f_language_defn): Update.
11900 * d-lang.c (d_language_defn): Update.
11901 * c-lang.h (c_watch_location_expression): Declare.
11902 * c-lang.c (c_watch_location_expression): New function.
11903 (c_language_defn, cplus_language_defn, asm_language_defn)
11904 (minimal_language_defn): Use it.
11905 * breakpoint.c (watch_command_1): Call
11906 la_watch_location_expression.
11907 * ada-lang.c (ada_language_defn): Update.
11908
11909 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11910
11911 PR tui/21482
11912 * gdb_curses.h (NOMACROS): Define.
11913 (NCURSES_NOMACROS): Define.
11914
11915 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11916
11917 PR tui/21482
11918 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
11919 arg to char *.
11920 * tui/tui-wingeneral.c (box_win): Likewise.
11921 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
11922 (tui_show_source_line): Likewise.
11923 (tui_show_exec_info_content): Likewise.
11924
11925 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
11926
11927 * sparc-tdep.c (sparc_structure_return_p)
11928 (sparc_arg_on_registers_p): New functions.
11929 (sparc32_store_arguments): Use them.
11930 * sparc64-tdep.c (sparc64_16_byte_align_p)
11931 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
11932 Handle TYPE_CODE_ARRAY.
11933
11934 2017-05-17 Yao Qi <yao.qi@linaro.org>
11935
11936 * cli/cli-decode.c (add_alias_cmd): New function.
11937 * command.h (add_alias_cmd): Declare.
11938 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
11939 instead call add_alias_cmd.
11940
11941 2017-05-17 Pedro Alves <palves@redhat.com>
11942
11943 * Makefile.in (nat_extra_makefile_frag): Rename to ...
11944 (nat_makefile_frag): ... this. All references updated.
11945 * configure.ac: Likewise.
11946 * configure.nat: Likewise. Enhance comments.
11947 * configure: Regenerate.
11948
11949 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11950
11951 * procfs.c (procfs_create_inferior): Change prototype to match
11952 definition.
11953
11954 2017-05-13 Eli Zaretskii <eliz@gnu.org>
11955
11956 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
11957 C++ compiler warning.
11958
11959 2017-05-12 Tom Tromey <tom@tromey.com>
11960
11961 PR rust/21483:
11962 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
11963 recurse, just call value_struct_elt directly.
11964
11965 2017-05-12 Tom Tromey <tom@tromey.com>
11966
11967 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
11968 OP_RUST_ARRAY>: Fix.
11969
11970 2017-05-12 Tom Tromey <tom@tromey.com>
11971
11972 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
11973
11974 2017-05-09 Yao Qi <yao.qi@linaro.org>
11975
11976 * regcache.c: Include <forward_list>.
11977 (struct regcache_list): Remove.
11978 (current_regcache): Update.
11979 (get_thread_arch_aspace_regcache): Update for std::forward_list.
11980 (regcache_thread_ptid_changed): Likewise.
11981 (registers_changed_ptid): Likewise.
11982 (current_regcache_size): Likewise.
11983
11984 2017-05-09 Yao Qi <yao.qi@linaro.org>
11985
11986 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
11987 (current_regcache_size): New function.
11988 (current_regcache_test): New function.
11989 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
11990
11991 2017-05-08 Alan Hayward <alan.hayward@arm.com>
11992
11993 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
11994 (print_gp_register_row): Use get_frame_register_value.
11995
11996 2017-05-08 Alan Hayward <alan.hayward@arm.com>
11997
11998 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
11999 (mips_supply_fpregset): Likewise.
12000 (mips64_supply_gregset): Likewise.
12001
12002 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12003
12004 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12005 regcache->raw_supply_zeroed.
12006
12007 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12008
12009 * configure.nat: Rearrange 'case' statements to match
12010 host before cpu.
12011
12012 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12013
12014 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12015 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12016 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12017 "@nat_extra_makefile_frag@".
12018 (Makefile): Remove dependency on "@frags@".
12019 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12020 (data-directory/Makefile): Likewise.
12021 * config/aarch64/linux.mh: Deleted; moved contents to
12022 "gdb/configure.nat".
12023 * config/alpha/alpha-linux.mh: Likewise.
12024 * config/alpha/nbsd.mh: Likewise.
12025 * config/arm/linux.mh: Likewise.
12026 * config/arm/nbsdelf.mh: Likewise.
12027 * config/i386/cygwin.mh: Likewise.
12028 * config/i386/cygwin64.mh: Likewise.
12029 * config/i386/darwin.mh: Likewise.
12030 * config/i386/fbsd.mh: Likewise.
12031 * config/i386/fbsd64.mh: Likewise.
12032 * config/i386/go32.mh: Likewise.
12033 * config/i386/i386gnu.mh: Likewise.
12034 * config/i386/i386sol2.mh: Likewise.
12035 * config/i386/linux.mh: Likewise.
12036 * config/i386/linux64.mh: Likewise.
12037 * config/i386/mingw.mh: Likewise.
12038 * config/i386/mingw64.mh: Likewise.
12039 * config/i386/nbsd64.mh: Likewise.
12040 * config/i386/nbsdelf.mh: Likewise.
12041 * config/i386/nto.mh: Likewise.
12042 * config/i386/obsd.mh: Likewise.
12043 * config/i386/obsd64.mh: Likewise.
12044 * config/i386/sol2-64.mh: Likewise.
12045 * config/ia64/linux.mh: Likewise.
12046 * config/m32r/linux.mh: Likewise.
12047 * config/m68k/linux.mh: Likewise.
12048 * config/m68k/nbsdelf.mh: Likewise.
12049 * config/m68k/obsd.mh: Likewise.
12050 * config/m88k/obsd.mh: Likewise.
12051 * config/mips/fbsd.mh: Likewise.
12052 * config/mips/linux.mh: Likewise.
12053 * config/mips/nbsd.mh: Likewise.
12054 * config/mips/obsd64.mh: Likewise.
12055 * config/pa/linux.mh: Likewise.
12056 * config/pa/nbsd.mh: Likewise.
12057 * config/pa/obsd.mh: Likewise.
12058 * config/powerpc/aix.mh: Likewise.
12059 * config/powerpc/fbsd.mh: Likewise.
12060 * config/powerpc/linux.mh: Likewise.
12061 * config/powerpc/nbsd.mh: Likewise.
12062 * config/powerpc/obsd.mh: Likewise.
12063 * config/powerpc/ppc64-linux.mh: Likewise.
12064 * config/powerpc/spu-linux.mh: Likewise.
12065 * config/s390/linux.mh: Likewise.
12066 * config/sh/nbsd.mh: Likewise.
12067 * config/sparc/fbsd.mh: Likewise.
12068 * config/sparc/linux.mh: Likewise.
12069 * config/sparc/linux64.mh: Likewise.
12070 * config/sparc/nbsd64.mh: Likewise.
12071 * config/sparc/nbsdelf.mh: Likewise.
12072 * config/sparc/obsd64.mh: Likewise.
12073 * config/sparc/sol2.mh: Likewise.
12074 * config/tilegx/linux.mh: Likewise.
12075 * config/vax/nbsdelf.mh: Likewise.
12076 * config/vax/obsd.mh: Likewise.
12077 * config/xtensa/linux.mh: Likewise.
12078 * config/i386/i386gnu.mn: New file, with excerpts from
12079 "config/i386/i386gnu.mh".
12080 * configure: Regenerate.
12081 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12082 *.mh files under "gdb/config".
12083 * configure.nat: New file, with contents from the
12084 "gdb/config/*/*.mh" files.
12085
12086 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12087
12088 * btrace.c (btrace_clear): Free insn vector.
12089
12090 2017-05-05 Pedro Alves <palves@redhat.com>
12091
12092 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12093 * configure: Regenerate.
12094
12095 2017-05-04 Pedro Alves <palves@redhat.com>
12096
12097 * Makefile.in (SFILES): Add progspace-and-thread.c.
12098 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12099 (COMMON_OBS): Add progspace-and-thread.o.
12100 * breakpoint.c: Include "progspace-and-thread.h".
12101 (update_inserted_breakpoint_locations)
12102 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12103 Use scoped_restore_current_pspace_and_thread.
12104 (create_std_terminate_master_breakpoint): Use
12105 scoped_restore_current_program_space.
12106 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12107 (print_breakpoint_location): Use
12108 scoped_restore_current_program_space.
12109 (bp_loc_is_permanent): Use
12110 scoped_restore_current_pspace_and_thread.
12111 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12112 (download_tracepoint_locations): Use
12113 scoped_restore_current_pspace_and_thread.
12114 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12115 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12116 (enum step_over_calls_kind): Moved from inferior.h.
12117 (class scoped_restore_current_thread): New class.
12118 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12119 declaration.
12120 (scoped_restore_current_thread): New class.
12121 * infcmd.c: Include "common/gdb_optional.h".
12122 (continue_1, proceed_after_attach): Use
12123 scoped_restore_current_thread.
12124 (notice_new_inferior): Use scoped_restore_current_thread.
12125 * inferior.c: Include "progspace-and-thread.h".
12126 (restore_inferior, save_current_inferior): Delete.
12127 (add_inferior_command, clone_inferior_command): Use
12128 scoped_restore_current_pspace_and_thread.
12129 * inferior.h (scoped_restore_current_inferior): New class.
12130 * infrun.c: Include "progspace-and-thread.h" and
12131 "common/gdb_optional.h".
12132 (follow_fork_inferior): Use
12133 scoped_restore_current_pspace_and_thread.
12134 (scoped_restore_exited_inferior): New class.
12135 (handle_vfork_child_exec_or_exit): Use
12136 scoped_restore_exited_inferior,
12137 scoped_restore_current_pspace_and_thread,
12138 scoped_restore_current_thread and scoped_restore.
12139 (fetch_inferior_event): Use scoped_restore_current_thread.
12140 * linespec.c (decode_line_full, decode_line_1): Use
12141 scoped_restore_current_program_space.
12142 * mi/mi-main.c: Include "progspace-and-thread.h".
12143 (exec_continue): Use scoped_restore_current_thread.
12144 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12145 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12146 * proc-service.c (ps_pglobal_lookup): Use
12147 scoped_restore_current_program_space.
12148 * progspace-and-thread.c: New file.
12149 * progspace-and-thread.h: New file.
12150 * progspace.c (release_program_space, clone_program_space): Use
12151 scoped_restore_current_program_space.
12152 (restore_program_space, save_current_program_space)
12153 (save_current_space_and_thread): Delete.
12154 (switch_to_program_space_and_thread): Moved to
12155 progspace-and-thread.c.
12156 * progspace.h (save_current_program_space)
12157 (save_current_space_and_thread): Delete declarations.
12158 (scoped_restore_current_program_space): New class.
12159 * remote.c (remote_btrace_maybe_reopen): Use
12160 scoped_restore_current_thread.
12161 * symtab.c: Include "progspace-and-thread.h".
12162 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12163 * thread.c (print_thread_info_1): Use
12164 scoped_restore_current_thread.
12165 (struct current_thread_cleanup): Delete.
12166 (do_restore_current_thread_cleanup)
12167 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12168 (scoped_restore_current_thread::~scoped_restore_current_thread):
12169 ... this new dtor.
12170 (make_cleanup_restore_current_thread): Rename/convert to ...
12171 (scoped_restore_current_thread::scoped_restore_current_thread):
12172 ... this new ctor.
12173 (thread_apply_all_command): Use scoped_restore_current_thread.
12174 (thread_apply_command): Use scoped_restore_current_thread.
12175 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12176 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12177
12178 2017-05-04 Pedro Alves <palves@redhat.com>
12179
12180 * thread.c (make_cleanup_restore_current_thread): Move
12181 find_thread_ptid call before the is_stopped call. Assert that the
12182 thread is found. Replace is_stopped call by checking the thread's
12183 state directly. Remove unnecessary NULL-thread check.
12184
12185 2017-05-04 Pedro Alves <palves@redhat.com>
12186
12187 * corelow.c (thread_section_name): New class.
12188 (get_core_register_section, get_core_siginfo): Use it.
12189
12190 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12191
12192 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12193 (get_core_register_section): Remove xfree of NULL pointer.
12194
12195 2017-05-03 Alan Hayward <alan.hayward@arm.com>
12196
12197 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12198 * regcache.c (regcache::raw_supply_zeroed): New function.
12199 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12200
12201 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12202
12203 * gdbarch.sh: Remove commented out definition of
12204 TARGET_CHAR_BIT.
12205 * gdbarch.h: Re-generate.
12206
12207 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12208
12209 * configure: Regenerate.
12210
12211 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12212
12213 * solib-target.c (solib_target_relocate_section_addresses):
12214 Remove num_section_bases, num_bases, segment_bases variables.
12215
12216 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12217
12218 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12219
12220 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12221
12222 * solib-target.c: Include <vector>
12223 (struct lm_info_target) <~lm_info_target>: Remove.
12224 <segment_bases, section_bases>: Change type to
12225 std::vector<CORE_ADDR>.
12226 (library_list_start_segment, library_list_start_section,
12227 library_list_end_library,
12228 solib_target_relocate_section_addresses): Adjust.
12229
12230 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12231
12232 * gdbarch.sh (software_single_step): Change return type to
12233 std::vector<CORE_ADDR>.
12234 * gdbarch.c, gdbarch.h: Re-generate.
12235 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12236 Adjust.
12237 (arm_deal_with_atomic_sequence_raw): Adjust.
12238 (thumb_get_next_pcs_raw): Adjust.
12239 (arm_get_next_pcs_raw): Adjust.
12240 (arm_get_next_pcs): Adjust.
12241 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12242 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12243 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12244 (alpha_software_single_step): Adjust.
12245 * alpha-tdep.h (alpha_software_single_step): Adjust.
12246 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12247 * arm-tdep.c (arm_software_single_step): Adjust.
12248 (arm_breakpoint_kind_from_current_state): Adjust.
12249 * arm-tdep.h (arm_software_single_step): Adjust.
12250 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12251 * cris-tdep.c (cris_software_single_step): Adjust.
12252 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12253 (micromips_deal_with_atomic_sequence): Adjust.
12254 (deal_with_atomic_sequence): Adjust.
12255 (mips_software_single_step): Adjust.
12256 * mips-tdep.h (mips_software_single_step): Adjust.
12257 * moxie-tdep.c (moxie_software_single_step): Adjust.
12258 * nios2-tdep.c (nios2_software_single_step): Adjust.
12259 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12260 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12261 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12262 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12263 * sparc-tdep.c (sparc_software_single_step): Adjust.
12264 * spu-tdep.c (spu_software_single_step): Adjust.
12265 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12266
12267 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12268
12269 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12270 * gdbarch.h: Re-generate.
12271
12272 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12273
12274 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12275 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12276 * python/py-instruction.c, python/py-instruction.h: New file.
12277 * python/py-record.c: Add py-instruction.h include.
12278 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12279 gdb.RecordInstruction.
12280 * python/python-internal.h: Add gdbpy_initialize_instruction
12281 declaration.
12282 * python/python.c (do_start_initialization): Add
12283 gdbpy_initialize_instruction.
12284
12285 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12286
12287 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12288 Remove.
12289 (btrace_func_from_recpy_func): New function.
12290 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12291 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12292 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12293 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12294 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12295 Also, use new helper functions.
12296 (btpy_list_item): Use new helper functions.
12297 (recpy_bt_function_call_history): Use new type name.
12298 (btpy_call_getset): Remove.
12299 (gdbpy_initialize_btrace): Remove code to initialize
12300 gdb.BtraceFunctionCall.
12301 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
12302 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
12303 recpy_bt_func_prev, recpy_bt_func_next): New export.
12304 * python/py-record.c (recpy_func_type): New static object.
12305 (recpy_func_new, recpy_func_level, recpy_func_symbol,
12306 recpy_func_instructions, recpy_func_up, recpy_func_prev,
12307 recpy_func_next): New function.
12308 (recpy_element_hash, recpy_element_richcompare): Updated comment.
12309 (recpy_func_getset): New static object.
12310 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
12311 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
12312
12313 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12314
12315 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
12316 (btpy_object, btpy_insn_type, btpy_new): Remove.
12317 (btpy_list_object): Use gdb.RecordInstruction type instead of
12318 gdb.BtraceInstruction type.
12319 (btrace_insn_from_recpy_insn): New function.
12320 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
12321 btpy_new.
12322 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
12323 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
12324 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
12325 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
12326 instead of btpy_object.
12327 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12328 btpy_insn_data, btpy_insn_decode): Rename to ...
12329 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
12330 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
12331 recpy_bt_insn_decode): This. Also, use new helper functions.
12332 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
12333 recpy_insn_type.
12334 (btpy_insn_getset): Remove.
12335 (gdbpy_initialize_btrace): Remove code to initialize
12336 gdb.BtraceInstruction. Use recpy_element_object.
12337 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
12338 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
12339 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
12340 * python/py-record.c (recpy_insn_type): New static object.
12341 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
12342 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
12343 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
12344 New function.
12345 (recpy_insn_getset): New static object.
12346 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
12347 * python/py-record.h (recpy_element_object): New typedef.
12348 (recpy_insn_type, recpy_insn_new): New export.
12349
12350 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12351
12352 * py-record-btrace.c (btpy_insn_new): Removed.
12353 (btpy_insn_or_gap_new): New function.
12354 (btpy_insn_error): Removed.
12355 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12356 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
12357 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
12358 btpy_insn_or_gap_new instead of btpy_insn_new.
12359 (btpy_insn_getset): Remove btpy_insn_error.
12360 * py-record.c (recpy_gap_type): New static object.
12361 (recpy_gap_object): New typedef.
12362 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
12363 recpy_gap_reason_string): New function.
12364 (recpy_gap_getset): New static object.
12365 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
12366 * py-record.h (recpy_gap_new): New export.
12367
12368 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12369
12370 * python/py-record.c (recpy_ptid): Remove.
12371 (recpy_record_getset): Remove recpy_ptid.
12372
12373 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12374
12375 * btrace.c (btrace_fetch): Set inferior_ptid.
12376 * python/py-record-btrace.c: Add "py-record.h" include.
12377 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
12378 recpy_bt_end, recpy_bt_instruction_history,
12379 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
12380 in gdb.Record object instead of current ptid.
12381 * python/py-record.c: Include new "py-record.h" file.
12382 (recpy_record_object): Moved to py-record.h.
12383 * python/py-record.h: New file.
12384
12385 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12386
12387 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
12388 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
12389 indentation.
12390
12391 2017-05-01 Joel Brobecker <brobecker@adacore.com>
12392
12393 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
12394 the past maintainers section.
12395
12396 2017-04-28 Yao Qi <yao.qi@linaro.org>
12397
12398 * infcmd.c (get_return_value): Use regcache ctor, and remove
12399 cleanup.
12400
12401 2017-04-28 Yao Qi <yao.qi@linaro.org>
12402 Pedro Alves <palves@redhat.com>
12403
12404 * regcache.c (regcache::regcache): New tag dispatch ctor.
12405 (do_cooked_read): Moved above.
12406 (regcache_dup): Use the tag dispatch ctor..
12407 * regcache.h (regcache): Declare ctor, delete copy ctor and
12408 assignment operator, remove friend regcache_dup.
12409
12410 2017-04-28 Yao Qi <yao.qi@linaro.org>
12411
12412 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
12413 call method save instead of regcache_cpy.
12414 * regcache.h (struct regcache): Make regcache_dup a friend.
12415
12416 2017-04-28 Yao Qi <yao.qi@linaro.org>
12417
12418 * regcache.c (struct regcache): Move to regcache.h
12419 (regcache::arch): New method.
12420 (regcache_get_ptid): Update.
12421 (get_regcache_arch): Call arch method.
12422 (get_regcache_aspace): Call method aspace.
12423 (register_buffer): Change it to method.
12424 (regcache_save): Change it to regcache::save.
12425 (regcache_restore): Likewise.
12426 (regcache_cpy_no_passthrough): Remove the declaration.
12427 (regcache_cpy): Call methods restore and cpy_no_passthrough.
12428 (regcache_cpy_no_passthrough): Change it to method
12429 cpy_no_passthrough.
12430 (regcache_register_status): Change it to method
12431 get_register_status.
12432 (regcache_invalidate): Change it to method invalidate.
12433 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
12434 (regcache_raw_update): Change it to method raw_update.
12435 (regcache_raw_read): Likewise.
12436 (regcache_raw_read_signed): Likewise.
12437 (regcache_raw_read_unsigned): Likewise.
12438 (regcache_raw_write_signed): Likewise.
12439 (regcache_raw_write_unsigned): Likewise.
12440 (regcache_cooked_read): Likewise.
12441 (regcache_cooked_read_value): Likewise.
12442 (regcache_cooked_read_signed): Likewise.
12443 (regcache_cooked_read_unsigned): Likewise.
12444 (regcache_cooked_write_signed): Likewise.
12445 (regcache_cooked_write_unsigned): Likewise.
12446 (regcache_raw_set_cached_value): Likewise.
12447 (regcache_raw_write): Likewise.
12448 (regcache_cooked_write): Likewise.
12449 (regcache_xfer_part): Likewise.
12450 (regcache_raw_read_part): Likewise.
12451 (regcache_raw_write_part): Likewise.
12452 (regcache_cooked_read_part): Likewise.
12453 (regcache_cooked_write_part): Likewise.
12454 (regcache_raw_supply): Likewise.
12455 (regcache_raw_collect): Likewise.
12456 (regcache_transfer_regset): Likewise.
12457 (regcache_supply_regset): Likewise.
12458 (regcache_collect_regset): Likewise.
12459 (regcache_debug_print_register): Likewise.
12460 (enum regcache_dump_what): Move it to regcache.h.
12461 (regcache_dump): Change it to method dump.
12462 * regcache.h (enum regcache_dump_what): New.
12463 (class regcache): New.
12464 * target.c (target_fetch_registers): Call method
12465 debug_print_register.
12466 (target_store_registers): Likewise.
12467
12468 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12469
12470 * windows-nat.c (struct lm_info_windows): Initialize field.
12471 (windows_make_so): Allocate lm_info_windows with new.
12472 (windows_free_so): Free lm_info_windows with delete.
12473
12474 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12475
12476 * solib-darwin.c (struct lm_info_darwin): Initialize field.
12477 (darwin_current_sos): Allocate lm_info_darwin with new, remove
12478 cleanup.
12479 (darwin_free_so): Free lm_info_darwin with delete.
12480
12481 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12482
12483 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
12484 <l_addr_p>: Change type to bool.
12485 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
12486 (svr4_free_so): Free lm_info_svr4 with delete.
12487 (svr4_copy_library_list): Replace memcpy with call to copy
12488 constructor.
12489 (library_list_start_library, svr4_default_sos): Allocate
12490 lm_info_svr4 with new.
12491
12492 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12493
12494 * solib-target.c (struct lm_info_target): Add destructor,
12495 initialize fields.
12496 <name>: Change type to std::string.
12497 (library_list_start_library): Allocate lm_info_target with new.
12498 (solib_target_free_library_list): Free lm_info_target with
12499 delete.
12500 (solib_target_current_sos): Adapt to std::string.
12501 (solib_target_free_so): Free lm_info_target with delete.
12502
12503 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12504
12505 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
12506 fields.
12507 (frv_current_sos): Allocate lm_info_frv with new.
12508 (frv_relocate_main_executable): Free lm_info_frv with delete,
12509 allocate with new.
12510 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
12511
12512 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12513
12514 * solib-frv.c (struct lm_info_frv): Fix indentation.
12515
12516 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12517
12518 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
12519 map field.
12520 (dsbt_current_sos): Allocate lm_info_dsbt with new.
12521 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
12522 and allocate with new.
12523 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
12524
12525 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12526
12527 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
12528 <filename, member_name>: Change type to std::string.
12529 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
12530 (library_list_start_library): Allocate lm_info_aix with new.
12531 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
12532 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
12533 with copy constructor.
12534
12535 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12536
12537 * solist.h (struct lm_info): Remove.
12538 (struct lm_info_base): New class.
12539 (struct so_list) <lm_info>: Change type to lm_info_base *.
12540 * nto-tdep.c (struct lm_info): Remove.
12541 (lm_addr): Adjust.
12542 * solib-aix.c (struct lm_info): Rename to ...
12543 (struct lm_info_aix): ... this. Extend lm_info_base.
12544 (lm_info_p): Rename to ...
12545 (lm_info_aix_p): ... this, and adjust.
12546 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
12547 solib_aix_parse_libraries, library_list_start_library,
12548 solib_aix_free_library_list, solib_aix_parse_libraries,
12549 solib_aix_get_library_list,
12550 solib_aix_relocate_section_addresses, solib_aix_free_so,
12551 solib_aix_get_section_offsets,
12552 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
12553 Adjust.
12554 (struct solib_aix_inferior_data) <library_list>: Adjust.
12555 * solib-darwin.c (struct lm_info): Rename to ...
12556 (struct lm_info_darwin): ... this. Extend lm_info_base.
12557 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
12558 * solib-dsbt.c (struct lm_info): Rename to ...
12559 (struct lm_info_dsbt): ... this. Extend lm_info_base.
12560 (struct dsbt_info) <main_executable_lm_info): Adjust.
12561 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
12562 dsbt_relocate_section_addresses): Adjust.
12563 * solib-frv.c (struct lm_info): Rename to ...
12564 (struct lm_info_frv): ... this. Extend lm_info_base.
12565 (main_executable_lm_info): Adjust.
12566 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
12567 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
12568 find_canonical_descriptor_in_load_object,
12569 frv_fdpic_find_canonical_descriptor): Adjust.
12570 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
12571 to lm_info_svr4.
12572 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
12573 svr4_clear_so, svr4_copy_library_list,
12574 library_list_start_library, svr4_default_sos, svr4_read_so_list,
12575 svr4_current_sos, svr4_fetch_objfile_link_map,
12576 solist_update_incremental): Adjust.
12577 * solib-svr4.h (struct lm_info_svr4): Move here from
12578 solib-svr4.c.
12579 * solib-target.c (struct lm_info): Rename to ...
12580 (struct lm_info_target): ... this. Extend lm_info_base.
12581 (lm_info_p): Rename to ...
12582 (lm_info_target_p): ... this.
12583 (solib_target_parse_libraries, library_list_start_segment,
12584 library_list_start_section, library_list_start_library,
12585 library_list_end_library, solib_target_free_library_list,
12586 solib_target_current_sos, solib_target_free_so,
12587 solib_target_relocate_section_addresses): Adjust.
12588 * windows-nat.c (struct lm_info): Rename to ...
12589 (struct lm_info_windows): ... this. Extend lm_info_base.
12590 (windows_make_so, handle_load_dll, handle_unload_dll,
12591 windows_xfer_shared_libraries): Adjust.
12592
12593 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12594
12595 * solib-darwin.c (struct darwin_so_list): Remove.
12596 (darwin_current_sos): Allocate an so_list object instead of a
12597 darwin_so_list, separately allocate an lm_info object.
12598 (darwin_free_so): Free lm_info.
12599
12600 2017-04-28 John Baldwin <jhb@FreeBSD.org>
12601
12602 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
12603 with fprintf_filtered.
12604
12605 2017-04-28 Yao Qi <yao.qi@linaro.org>
12606
12607 * regcache.c (regcache::regcache): New function.
12608 (regcache::~regcache): New function.
12609 (regcache_xmalloc_1): Remove.
12610 (regcache_xmalloc): Call new regcache.
12611 (regcache_xfree): Call delete regcache.
12612 (get_thread_arch_aspace_regcache): Call new regcache.
12613
12614 2017-04-28 Yao Qi <yao.qi@linaro.org>
12615
12616 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
12617 lwp instead of ptid_get_lwp.
12618
12619 2017-04-28 Yao Qi <yao.qi@linaro.org>
12620
12621 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
12622 lwp_info instead of getting from inferior_ptid.
12623
12624 2017-04-27 Keith Seitz <keiths@redhat.com>
12625
12626 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
12627 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
12628 (CV_CONVERSION_BADNESS): Define.
12629 (rank_one_type): Remove overly restrictive rvalue reference
12630 rank checks.
12631 Add cv-qualifier checks and subranks for type equality.
12632 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
12633 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
12634 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
12635
12636 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
12637
12638 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
12639 count when creating the object.
12640
12641 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
12642 Ulrich Weigand <uweigand@de.ibm.com>
12643
12644 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
12645 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
12646 is used in AIX.
12647 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
12648 (process_xcoff_symbol): Likewise.
12649 (scan_xcoff_symtab): Likewise.
12650
12651 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12652
12653 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
12654 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
12655 (ia64_access_reg): Use get_frame_register_unsigned.
12656 (ia64_access_rse_reg): Likewise.
12657 (ia64_libunwind_frame_prev_register): Likewise.
12658
12659 2017-04-26 Jiong Wang <jiong.wang@arm.com>
12660
12661 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
12662 * gdbarch.c: Regenerated.
12663 * gdbarch.h: Regenerated.
12664 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
12665 visibility external.
12666 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
12667 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
12668 (enum cfa_how_kind): Move to ...
12669 (struct dwarf2_frame_state_reg_info): Likewise.
12670 (struct dwarf2_frame_state): Likewise.
12671 * dwarf2-frame.h: ... here.
12672 (dwarf2_frame_state_alloc_regs): New declaration.
12673 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
12674 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
12675
12676 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12677
12678 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
12679 regcache_raw_read_unsigned.
12680 (xtensa_pseudo_register_write): Likewise.
12681
12682 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12683
12684 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
12685 (nds32_pseudo_register_write): Likewise.
12686
12687 2017-04-25 Yao Qi <yao.qi@linaro.org>
12688
12689 * regcache.c (struct regcache) <readonly_p>: Change its type
12690 to bool.
12691 (regcache_xmalloc_1): Update parameter type and callers update.
12692
12693 2017-04-25 Yao Qi <yao.qi@linaro.org>
12694
12695 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
12696 set_gdbarch_wchar_bit.
12697 * arm-tdep.c (arm_gdbarch_init): Likewise.
12698
12699 2017-04-25 Pedro Alves <palves@redhat.com>
12700
12701 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
12702 (BothAreRelocatable, memcopy, memmove): Don't define.
12703 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
12704 macros.
12705
12706 2017-04-25 Pedro Alves <palves@redhat.com>
12707
12708 * common/common-defs.h: Include "common/poison.h".
12709 * common/function-view.h: (Not, Or, Requires): Move to traits.h
12710 and adjust.
12711 * common/poison.h: New file.
12712 * common/traits.h: Include <type_traits>.
12713 (Not, Or, Requires): New, moved from common/function-view.h.
12714
12715 2017-04-25 Pedro Alves <palves@redhat.com>
12716
12717 * breakpoint.h (struct breakpoint): In-class initialize all
12718 fields. Make boolean fields "bool".
12719 * breakpoint.c (init_raw_breakpoint_without_location): Remove
12720 memset call and initializations no longer necessary.
12721
12722 2017-04-25 Pedro Alves <palves@redhat.com>
12723
12724 * btrace.c (pt_btrace_insn_flags): Change parameter type to
12725 reference.
12726 (pt_btrace_insn): New function.
12727 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
12728
12729 2017-04-25 Pedro Alves <palves@redhat.com>
12730
12731 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
12732 "base" field and inherit from "bp_location" instead. Add
12733 non-default ctor.
12734 (allocate_location_exception): Use new non-default ctor.
12735 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
12736 (init_bp_location): Convert to ...
12737 (bp_location::bp_location): ... this new ctor, and remove memset
12738 call.
12739 (base_breakpoint_allocate_location): Use the new non-default ctor.
12740 * breakpoint.h (bp_location): Now a class. Declare default and
12741 non-default ctors. In-class initialize all members.
12742 (init_bp_location): Remove declaration.
12743
12744 2017-04-25 Pedro Alves <palves@redhat.com>
12745
12746 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
12747 assignment operator.
12748
12749 2017-04-24 Yao Qi <yao.qi@linaro.org>
12750
12751 * doublest.c (convert_doublest_to_floatformat): Call
12752 floatformat_totalsize_bytes.
12753
12754 2017-04-22 Tom Tromey <tom@tromey.com>
12755
12756 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
12757 ui_out_emit_list.
12758 * stack.c (print_frame): Use ui_out_emit_list.
12759 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12760 ui_out_emit_list.
12761 * mi/mi-main.c (print_one_inferior)
12762 (mi_cmd_data_list_register_names)
12763 (mi_cmd_data_list_register_values, mi_cmd_list_features)
12764 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
12765 ui_out_emit_list.
12766 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
12767 (mi_output_solib_attribs): Use ui_out_emit_list,
12768 ui_out_emit_tuple.
12769 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
12770 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
12771 (mi_cmd_stack_list_args, list_args_or_locals): Use
12772 ui_out_emit_list.
12773 * disasm.c (do_assembly_only): Use ui_out_emit_list.
12774 * breakpoint.c (print_solib_event, output_thread_groups): Use
12775 ui_out_emit_list.
12776
12777 2017-04-22 Tom Tromey <tom@tromey.com>
12778
12779 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
12780 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
12781 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
12782
12783 2017-04-22 Tom Tromey <tom@tromey.com>
12784
12785 * tracepoint.c (tvariables_info_1)
12786 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
12787
12788 2017-04-22 Tom Tromey <tom@tromey.com>
12789
12790 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
12791 annotate_arg_emitter.
12792 * breakpoint.c (print_mention_watchpoint)
12793 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
12794 * annotate.h (struct annotate_arg_emitter): New.
12795
12796 2017-04-22 Tom Tromey <tom@tromey.com>
12797
12798 * record-btrace.c (record_btrace_insn_history)
12799 (record_btrace_insn_history_range, record_btrace_call_history)
12800 (record_btrace_call_history_range): Use ui_out_emit_tuple.
12801 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
12802 ui_out_emit_tuple.
12803 * stack.c (print_frame_info): Use ui_out_emit_tuple.
12804 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
12805 * skip.c (skip_info): Use ui_out_emit_tuple.
12806 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
12807 * progspace.c (print_program_space): Use ui_out_emit_tuple.
12808 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
12809 * osdata.c (info_osdata): Use ui_out_emit_tuple.
12810 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12811 ui_out_emit_tuple.
12812 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
12813 (output_register, mi_cmd_data_read_memory)
12814 (mi_cmd_data_read_memory_bytes, mi_load_progress)
12815 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
12816 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
12817 Use ui_out_emit_tuple.
12818 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
12819 ui_out_emit_tuple.
12820 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12821 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
12822 * linux-thread-db.c (info_auto_load_libthread_db): Use
12823 ui_out_emit_tuple.
12824 * inferior.c (print_inferior): Use ui_out_emit_tuple.
12825 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
12826 * disasm.c (do_mixed_source_and_assembly_deprecated)
12827 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
12828 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
12829 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
12830 * breakpoint.c (print_one_breakpoint_location)
12831 (print_one_breakpoint): Use ui_out_emit_tuple.
12832 * auto-load.c (print_script, info_auto_load_cmd): Use
12833 ui_out_emit_tuple.
12834 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
12835
12836 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
12837
12838 * thread.c (print_thread_info_1): Remove dead code.
12839
12840 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12841
12842 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
12843 GDB_SELF_TEST.
12844 * arm-tdep.c (selftests::arm_record_test): Likewise.
12845
12846 2017-04-21 Yao Qi <yao.qi@linaro.org>
12847
12848 * regcache.c (regcache_restore): Remove argument 2. Replace
12849 argument 3 with regcache. Get register status from
12850 src->register_status and get register contents from
12851 register_buffer (src, regnum).
12852 (regcache_cpy): Update.
12853
12854 2017-04-19 Pedro Alves <palves@redhat.com>
12855
12856 * gdbthread.h (thread): Add missing closing parenthesis in
12857 comment.
12858
12859 2017-04-19 Pedro Alves <palves@redhat.com>
12860
12861 * common/refcounted-object.h: New file.
12862 * gdbthread.h: Include "common/refcounted-object.h".
12863 (thread_info): Inherit from refcounted_object and add comments.
12864 (thread_info::incref, thread_info::decref)
12865 (thread_info::m_refcount): Delete.
12866 (thread_info::deletable): Use the refcounted_object::refcount()
12867 method.
12868 * inferior.c (current_inferior_): Add comment.
12869 (set_current_inferior): Increment/decrement refcounts.
12870 (prune_inferiors, remove_inferior_command): Skip inferiors marked
12871 not-deletable instead of comparing with the current inferior.
12872 (initialize_inferiors): Increment the initial inferior's refcount.
12873 * inferior.h (struct inferior): Forward declare.
12874 Include "common/refcounted-object.h".
12875 (current_inferior, set_current_inferior): Move declaration to
12876 before struct inferior's definition, and fix comment.
12877 (inferior): Inherit from refcounted_object. Add comments.
12878 * thread.c (switch_to_thread_no_regs): Reference the thread's
12879 inferior pointer directly instead of doing a ptid lookup.
12880 (switch_to_no_thread): New function.
12881 (switch_to_thread(thread_info *)): New function, factored out
12882 from ...
12883 (switch_to_thread(ptid_t)): ... this.
12884 (restore_current_thread): Delete.
12885 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
12886 fields, and add 'inf' field.
12887 (do_restore_current_thread_cleanup): Check whether old->inf is
12888 alive instead of looking up an inferior by ptid. Use
12889 switch_to_thread and switch_to_no_thread.
12890 (restore_current_thread_cleanup_dtor): Use old->inf directly
12891 instead of lookup up an inferior by id. Decref the inferior.
12892 Don't restore 'removable'.
12893 (make_cleanup_restore_current_thread): Same the inferior pointer
12894 in old, instead of the inferior number. Incref the inferior.
12895 Don't save/clear 'removable'.
12896
12897 2017-04-19 Pedro Alves <palves@redhat.com>
12898
12899 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12900 unittests/scoped_restore-selftests.c.
12901 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
12902 * common/scoped_restore.h (scoped_restore_base): Make "class".
12903 (scoped_restore_base::release): New public method.
12904 (scoped_restore_base::scoped_restore_base): New protected ctor.
12905 (scoped_restore_base::m_saved_var): New protected field.
12906 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
12907 scoped_restore_base base class instead of m_saved_var directly.
12908 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
12909 (scoped_restore_tmpl::scoped_restore_tmpl(const
12910 scoped_restore_tmpl<T>&)): Likewise.
12911 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
12912 method.
12913 (scoped_restore_tmpl::saved_var): New method.
12914 (scoped_restore_tmpl::m_saved_var): Delete.
12915 * inferior.h (inferior::detaching): Now a bool.
12916 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
12917 cleanup.
12918 * unittests/scoped_restore-selftests.c: New file.
12919
12920 2017-04-19 Pedro Alves <palves@redhat.com>
12921
12922 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
12923 Re-sort in alphabetic order.
12924
12925 2017-04-18 Pedro Alves <palves@redhat.com>
12926
12927 * xml-support.c (obstack_xml_printf): Delete.
12928 * xml-support.h (obstack_xml_printf): Delete.
12929
12930 2017-04-18 Pedro Alves <palves@redhat.com>
12931
12932 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
12933 vdebug, verror, body_text, start_element, end_element, name,
12934 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
12935 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
12936 is_xinclude>: Make private and add m_ prefix.
12937 (gdb_xml_parser::body_text): New method, based on ...
12938 (gdb_xml_body_text): ... this. Adjust.
12939 (gdb_xml_parser::vdebug): New method, based on ...
12940 (gdb_xml_debug): ... this. Adjust.
12941 (gdb_xml_parser::verror): New method, based on ...
12942 (gdb_xml_error): ... this. Adjust.
12943 (gdb_xml_parser::start_element): New method, based on ...
12944 (gdb_xml_start_element): ... this. Adjust.
12945 (gdb_xml_start_element_wrapper): Defer to
12946 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
12947 (gdb_xml_parser::end_element): New method, based on ...
12948 (gdb_xml_end_element_wrapper): ... this. Adjust.
12949 (gdb_xml_parser::~gdb_xml_parser): Adjust.
12950 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
12951 (gdb_xml_parser::use_dtd): New method, based on ...
12952 (gdb_xml_use_dtd): ... this. Adjust.
12953 (gdb_xml_parser::parse): New method, based on ...
12954 (gdb_xml_parse): ... this. Adjust.
12955 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
12956 (xinclude_start_include): Adjust to call the parser's name method.
12957 (xml_xinclude_default, xml_xinclude_start_doctype)
12958 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
12959 method.
12960 (xml_process_xincludes): Adjust to call parser methods.
12961 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
12962 declarations.
12963
12964 2017-04-18 Pedro Alves <palves@redhat.com>
12965
12966 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
12967 gdb::optional<std::string>.
12968 * xml-support.c: Include <string>.
12969 (scope_level::scope_level(scope_level &&))
12970 (scope_level::~scope_level): Delete.
12971 (scope_level::body): Now a std::string.
12972 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
12973 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
12974 parameter.
12975 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
12976 (xinclude_parsing_data::output): Now a std::string reference.
12977 (xinclude_start_include): Adjust.
12978 (xml_xinclude_default): Adjust.
12979 (xml_process_xincludes): Add 'output' parameter, and return bool.
12980 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
12981 and return bool.
12982 * xml-tdesc.c: Include <unordered_map> and <string>.
12983 (tdesc_xml_cache): Delete.
12984 (tdesc_xml_cache_s): Delete.
12985 (xml_cache): Now an std::unordered_map.
12986 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
12987 (target_fetch_description_xml): Change return type to
12988 gdb::optional<std::string>, and adjust.
12989 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
12990 (target_fetch_description_xml): Change return type to
12991 gdb::optional<std::string>.
12992
12993 2017-04-18 Pedro Alves <palves@redhat.com>
12994
12995 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12996 unittests/optional-selftests.c.
12997 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
12998 * unittests/optional-selftests.c: New file.
12999 * unittests/optional/assignment/1.cc: New file.
13000 * unittests/optional/assignment/2.cc: New file.
13001 * unittests/optional/assignment/3.cc: New file.
13002 * unittests/optional/assignment/4.cc: New file.
13003 * unittests/optional/assignment/5.cc: New file.
13004 * unittests/optional/assignment/6.cc: New file.
13005 * unittests/optional/assignment/7.cc: New file.
13006 * unittests/optional/cons/copy.cc: New file.
13007 * unittests/optional/cons/default.cc: New file.
13008 * unittests/optional/cons/move.cc: New file.
13009 * unittests/optional/cons/value.cc: New file.
13010 * unittests/optional/in_place.cc: New file.
13011 * unittests/optional/observers/1.cc: New file.
13012 * unittests/optional/observers/2.cc: New file.
13013
13014 2017-04-18 Pedro Alves <palves@redhat.com>
13015
13016 * common/gdb_optional.h: Include common/traits.h.
13017 (in_place_t): New type.
13018 (in_place): New constexpr variable.
13019 (optional::optional): Remove member initialization of
13020 m_instantiated.
13021 (optional::optional(in_place_t...)): New constructor.
13022 (optional::~optional): Use reset.
13023 (optional::optional(const optional&)): New.
13024 (optional::optional(const optional&&)): New.
13025 (optional::optional(T &)): New.
13026 (optional::optional(T &&)): New.
13027 (operator::operator=(const optional &)): New.
13028 (operator::operator=(optional &&)): New.
13029 (operator::operator= (const T &))
13030 (operator::operator= (T &&))
13031 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13032 (operator::reset): New.
13033 (operator::m_instantiated):: Add in-class initializer.
13034 * common/traits.h: Include <type_traits>.
13035 (struct And): New types.
13036
13037 2017-04-18 Pedro Alves <palves@redhat.com>
13038
13039 * xml-support.c: Include <vector>.
13040 (scope_level::scope_level(const gdb_xml_element *))
13041 (scope_level::scope_level(scope_level&&)): New.
13042 (scope_level::~scope_level): New.
13043 (scope_level_s): Delete.
13044 (gdb_xml_parser::scopes): Now a std::vector.
13045 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13046 Use std::vector.
13047 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13048 scope cleanup code.
13049 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13050 of the scopes member. Use std::vector::emplace_back.
13051
13052 2017-04-18 Pedro Alves <palves@redhat.com>
13053
13054 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13055 a bool.
13056 (gdb_xml_end_element): Change type of first parameter.
13057 (gdb_xml_cleanup): Rename to ...
13058 (gdb_xml_parser::~gdb_xml_parser): ... this.
13059 (gdb_xml_create_parser_and_cleanup): Delete with ...
13060 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13061 to this new ctor.
13062 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13063 using gdb_xml_create_parser_and_cleanup.
13064 (xinclude_parsing_data): Add ctor/dtor.
13065 (xml_xinclude_cleanup): Delete.
13066 (xml_process_xincludes): Create a local xinclude_parsing_data
13067 instead of heap-allocating one. Create a local gdb_xml_parser
13068 instead of heap-allocating one with
13069 gdb_xml_create_parser_and_cleanup.
13070
13071 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13072
13073 PR threads/20743
13074 * fbsd-nat.c (resume_one_thread_cb): Remove.
13075 (resume_all_threads_cb): Remove.
13076 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13077 iterate_over_threads.
13078
13079 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13080
13081 * NEWS: Create a new section for the next release branch.
13082 Rename the section of the current branch, now that it has
13083 been cut.
13084
13085 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13086
13087 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13088 * version.in: Bump version to 8.0.50.DATE-git.
13089
13090 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13091
13092 PR gdb/21385
13093 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13094 independently of the host, and fix build breakage on Cygwin.
13095
13096 2017-04-13 Pedro Alves <palves@redhat.com>
13097
13098 * inferior.c (free_inferior): Convert to ...
13099 (inferior::~inferior): ... this dtor.
13100 (inferior::inferior): New ctor, factored out from ...
13101 (add_inferior_silent): ... here. Allocate the inferior with a new
13102 expression.
13103 (delete_inferior): Call delete instead of free_inferior.
13104 * inferior.h (gdb_environ, continuation): Forward declare.
13105 (inferior): Now a class. Add in-class initialization to all
13106 members. Make boolean fields bool, except 'detaching'.
13107 (inferior::inferior): New explicit ctor.
13108 (inferior::~inferior): New.
13109
13110 2017-04-13 Pedro Alves <palves@redhat.com>
13111
13112 * inferior.c (init_inferior_list): Delete.
13113 * inferior.h (init_inferior_list): Delete.
13114
13115 2017-04-13 Pedro Alves <palves@redhat.com>
13116
13117 PR threads/13217
13118 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13119 (top level): Call it twice, with different thread sets.
13120
13121 2017-04-13 Pedro Alves <palves@redhat.com>
13122
13123 * thread.c: Include <algorithm>.
13124 (thread_array_cleanup): Delete.
13125 (scoped_inc_dec_ref): New class.
13126 (live_threads_count): New function.
13127 (set_thread_refcount): Delete.
13128 (tp_array_compar_ascending): Now a bool.
13129 (tp_array_compar): Convert to a std::sort comparison function.
13130 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13131 and live_threads_count.
13132
13133 2017-04-13 Pedro Alves <palves@redhat.com>
13134
13135 * infrun.c (follow_fork_inferior): Also switch the current
13136 inferior.
13137
13138 2017-04-13 Pedro Alves <palves@redhat.com>
13139
13140 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13141 before calling create_internal_breakpoint.
13142
13143 2017-04-13 Pedro Alves <palves@redhat.com>
13144
13145 * fork-child.c (execv_argv): New class.
13146 (breakup_args): Refactored as ...
13147 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13148 Copy arguments to storage and replace separators with NULL
13149 terminators in place.
13150 (escape_bang_in_quoted_argument): Adjust to return bool.
13151 (execv_argv::execv_argv): New ctor.
13152 (execv_argv::init_for_shell): New method, factored out from
13153 fork_inferior. Don't strdup strings into the vector.
13154 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13155 Remove free_vector_argv call.
13156
13157 2017-04-13 Yao Qi <yao.qi@linaro.org>
13158
13159 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13160 tdep->rx_psw_type.
13161
13162 2017-04-13 Yao Qi <yao.qi@linaro.org>
13163
13164 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13165 * rx-tdep.c (rx_gdbarch_init): Likewise.
13166
13167 2017-04-13 Pedro Alves <palves@redhat.com>
13168
13169 * breakpoint.h (struct breakpoint): Reindent.
13170
13171 2017-04-13 Pedro Alves <palves@redhat.com>
13172
13173 * breakpoint.c (bp_location): Rename to ...
13174 (bp_locations): ... this. All references updated.
13175 (bp_location_count): Rename to ...
13176 (bp_locations_count): ... this. All references updated.
13177 (bp_location_placed_address_before_address_max): Rename to ...
13178 (bp_locations_placed_address_before_address_max): ... this. All
13179 references updated.
13180 (bp_location_shadow_len_after_address_max): Rename to ...
13181 (bp_locations_shadow_len_after_address_max): ... this. All
13182 references updated.
13183 (bp_location_compare_addrs): Rename to ...
13184 (bp_locations_compare_addrs): ... this. All references updated.
13185 (bp_location_compare):Rename to ...
13186 (bp_locations_compare): ... this. All references updated.
13187 (bp_location_target_extensions_update): Rename to ...
13188 (bp_locations_target_extensions_update): ... this. All references
13189 updated.
13190
13191 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13192
13193 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13194 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13195 'sgtty.h'.
13196 * common/gdb_termios.h: New file, with parts of "terminal.h".
13197 * inflow.c: Include "gdb_termios.h".
13198 * ser-unix.c: Include "gdb_termios.h".
13199 * terminal.h: Move terminal-related defines to
13200 "common/gdb_termios.h".
13201
13202 2017-04-12 Tom Tromey <tom@tromey.com>
13203
13204 * probe.c (parse_probes): Update.
13205 * location.h (delete_event_location): Don't declare.
13206 (event_location_deleter::operator()): Update.
13207 * location.c (event_location_deleter::operator()): Rename from
13208 delete_event_location.
13209 * linespec.h (linespec_result) <location>: Change type to
13210 event_location_up.
13211 * linespec.c (canonicalize_linespec, event_location_to_sals)
13212 (decode_objc): Update.
13213 (linespec_result): Don't call delete_event_location.
13214 * breakpoint.c (create_breakpoints_sal)
13215 (bkpt_probe_create_sals_from_location)
13216 (strace_marker_create_sals_from_location): Update.
13217
13218 2017-04-12 Tom Tromey <tom@tromey.com>
13219
13220 * linespec.h (struct linespec_result): Add constructor and
13221 destructor.
13222 (init_linespec_result, destroy_linespec_result)
13223 (make_cleanup_destroy_linespec_result): Don't declare.
13224 * linespec.c (init_linespec_result): Remove.
13225 (linespec_result::~linespec_result): Rename from
13226 destroy_linespec_result. Update.
13227 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13228 Remove.
13229 * breakpoint.c (create_breakpoint, break_range_command)
13230 (decode_location_default): Update.
13231 * ax-gdb.c (agent_command_1): Update.
13232
13233 2017-04-12 Tom Tromey <tom@tromey.com>
13234
13235 * remote.c (remote_download_tracepoint): Update.
13236 * python/py-breakpoint.c (bppy_get_location): Update.
13237 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13238 (gdbscm_breakpoint_location): Update.
13239 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13240 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13241 Change type to event_location_up.
13242 * breakpoint.c (create_overlay_event_breakpoint)
13243 (create_longjmp_master_breakpoint)
13244 (create_std_terminate_master_breakpoint)
13245 (create_exception_master_breakpoint)
13246 (breakpoint_event_location_empty_p, print_breakpoint_location)
13247 (print_one_breakpoint_location, create_thread_event_breakpoint)
13248 (init_breakpoint_sal, create_breakpoint)
13249 (print_recreate_ranged_breakpoint, break_range_command)
13250 (init_ada_exception_breakpoint, say_where): Update.
13251 (base_breakpoint_dtor): Don't call delete_event_location.
13252 (bkpt_print_recreate, tracepoint_print_recreate)
13253 (dprintf_print_recreate, update_static_tracepoint)
13254 (breakpoint_re_set_default): Update.
13255
13256 2017-04-12 Tom Tromey <tom@tromey.com>
13257
13258 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13259 type of "to_do". Update.
13260 (compute_stack_depth): Use std::vector.
13261
13262 2017-04-12 Tom Tromey <tom@tromey.com>
13263
13264 * printcmd.c (find_instruction_backward): Use std::vector.
13265
13266 2017-04-12 Tom Tromey <tom@tromey.com>
13267
13268 * symfile.c (objfilep): Remove typedef.
13269 (reread_symbols): Use a std::vector.
13270
13271 2017-04-12 Tom Tromey <tom@tromey.com>
13272
13273 * mi/mi-main.c (exec_direction_forward): Remove.
13274 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13275 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13276 scoped_restore.
13277 * guile/guile.c (guile_repl_command, guile_command)
13278 (gdbscm_execute_gdb_command): Use scoped_restore.
13279 * go-exp.y (go_parse): Use scoped_restore.
13280 * d-exp.y (d_parse): Use scoped_restore.
13281 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13282 * c-exp.y (c_parse): Use scoped_restore.
13283
13284 2017-04-12 Tom Tromey <tom@tromey.com>
13285
13286 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13287 (mi_parse): Update return type.
13288 (mi_parse_free): Remove.
13289 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13290 (mi_parse::~mi_parse): Rename from mi_parse_free.
13291 (mi_parse_cleanup): Remove.
13292 (mi_parse): Return a unique_ptr. Use new.
13293 * mi/mi-main.c (mi_execute_command): Update.
13294
13295 2017-04-12 Tom Tromey <tom@tromey.com>
13296
13297 * location.c (explicit_location_lex_one): Return a
13298 unique_xmalloc_ptr.
13299 (string_to_explicit_location): Update. Remove cleanups.
13300
13301 2017-04-12 Tom Tromey <tom@tromey.com>
13302
13303 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
13304 (compare_value_and_voffset): Change type. Update.
13305 (compute_vtable_size): Change type of "offset_vec".
13306 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
13307 (gnuv3_get_typeid): Remove extraneous declaration.
13308
13309 2017-04-12 Tom Tromey <tom@tromey.com>
13310
13311 * charset.h (wchar_iterator): Fix comment.
13312
13313 2017-04-12 Tom Tromey <tom@tromey.com>
13314
13315 * charset.c (iconv_wrapper): New class.
13316 (cleanup_iconv): Remove.
13317 (convert_between_encodings): Use it.
13318
13319 2017-04-12 Tom Tromey <tom@tromey.com>
13320
13321 * symfile.h (increment_reading_symtab): Update type.
13322 * symfile.c (decrement_reading_symtab): Remove.
13323 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
13324 * psymtab.c (psymtab_to_symtab): Update.
13325 * dwarf2read.c (dw2_instantiate_symtab): Update.
13326
13327 2017-04-12 Tom Tromey <tom@tromey.com>
13328
13329 * jit.c (struct jit_reader): Declare separately. Add constructor
13330 and destructor. Change type of "handle".
13331 (loaded_jit_reader): Define separately.
13332 (jit_reader_load): Update. New "new".
13333 (jit_reader_unload_command): Use "delete".
13334 * gdb-dlfcn.h (struct dlclose_deleter): New.
13335 (gdb_dlhandle_up): New typedef.
13336 (gdb_dlopen, gdb_dlsym): Update types.
13337 (gdb_dlclose): Remove.
13338 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
13339 (gdb_dlsym): Change type of "handle".
13340 (make_cleanup_dlclose): Remove.
13341 (dlclose_deleter::operator()): Rename from gdb_dlclose.
13342 * compile/compile-c-support.c (load_libcc): Update.
13343
13344 2017-04-12 Tom Tromey <tom@tromey.com>
13345
13346 * symtab.h (find_pcs_for_symtab_line): Change return type.
13347 * symtab.c (find_pcs_for_symtab_line): Change return type.
13348 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
13349 type of "vec". Update.
13350 (ltpy_get_pcs_for_line): Update.
13351 * linespec.c (decode_digits_ordinary): Update.
13352
13353 2017-04-12 Tom Tromey <tom@tromey.com>
13354
13355 * tracepoint.c (actions_command): Update.
13356 * python/python.c (python_command, python_interactive_command):
13357 Update.
13358 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
13359 * guile/guile.c (guile_command): Update.
13360 * defs.h (read_command_lines, read_command_lines_1): Return
13361 command_line_up.
13362 (command_lines_deleter): New struct.
13363 (command_line_up): New typedef.
13364 * compile/compile.c (compile_code_command)
13365 (compile_print_command): Update.
13366 * cli/cli-script.h (get_command_line, copy_command_lines): Return
13367 command_line_up.
13368 (make_cleanup_free_command_lines): Remove.
13369 * cli/cli-script.c (get_command_line, read_command_lines_1)
13370 (copy_command_lines): Return command_line_up.
13371 (while_command, if_command, read_command_lines, define_command)
13372 (document_command): Update.
13373 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
13374 Remove.
13375 * breakpoint.h (breakpoint_set_commands): Change type of
13376 "commands".
13377 * breakpoint.c (breakpoint_set_commands): Change type of
13378 "commands". Update.
13379 (do_map_commands_command, update_dprintf_command_list)
13380 (create_tracepoint_from_upload): Update.
13381
13382 2017-04-12 Tom Tromey <tom@tromey.com>
13383
13384 * tracepoint.c (scope_info): Update.
13385 * spu-tdep.c (spu_catch_start): Update.
13386 * python/python.c (gdbpy_decode_line): Update.
13387 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
13388 * python/py-breakpoint.c (bppy_init): Update.
13389 * probe.c (parse_probes): Update.
13390 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
13391 * location.h (event_location_deleter): New struct.
13392 (event_location_up): New typedef.
13393 (new_linespec_location, new_address_location, new_probe_location)
13394 (new_explicit_location, copy_event_location)
13395 (string_to_event_location, string_to_event_location_basic)
13396 (string_to_explicit_location): Update return type.
13397 (make_cleanup_delete_event_location): Remove.
13398 * location.c (new_linespec_location, new_address_location)
13399 (new_probe_location, new_explicit_location, copy_event_location):
13400 Return event_location_up.
13401 (delete_event_location_cleanup)
13402 (make_cleanup_delete_event_location): Remove.
13403 (string_to_explicit_location, string_to_event_location_basic)
13404 (string_to_event_location): Return event_location_up.
13405 * linespec.c (canonicalize_linespec, event_location_to_sals)
13406 (decode_line_with_current_source)
13407 (decode_line_with_last_displayed, decode_objc): Update.
13408 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
13409 * completer.c (location_completer): Update.
13410 * cli/cli-cmds.c (edit_command, list_command): Update.
13411 * breakpoint.c (create_overlay_event_breakpoint)
13412 (create_longjmp_master_breakpoint)
13413 (create_std_terminate_master_breakpoint)
13414 (create_exception_master_breakpoint)
13415 (create_thread_event_breakpoint): Update.
13416 (init_breakpoint_sal): Update. Remove some dead code.
13417 (create_breakpoint_sal): Change type of "location". Update.
13418 (create_breakpoints_sal, create_breakpoint, break_command_1)
13419 (dprintf_command, break_range_command, until_break_command)
13420 (init_ada_exception_breakpoint)
13421 (strace_marker_create_sals_from_location)
13422 (update_static_tracepoint, trace_command, ftrace_command)
13423 (strace_command, create_tracepoint_from_upload): Update.
13424 * break-catch-throw.c (re_set_exception_catchpoint): Update.
13425 * ax-gdb.c (agent_command_1): Update.
13426
13427 2017-04-12 Pedro Alves <palves@redhat.com>
13428
13429 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
13430 * configure.tgt: Handle i[34567]86-*-go32* and
13431 i[34567]86-*-msdosdjgpp*.
13432 * i386-tdep.c (i386_svr4_reg_to_regnum):
13433 Make extern.
13434 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
13435 i386-go32-tdep.c.
13436 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
13437 * i386-go32-tdep.c: New file.
13438 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
13439 declarations.
13440
13441 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
13442
13443 * aix-thread.c (pd_status2str): Change return type to const char *.
13444
13445 2017-04-12 Pedro Alves <palves@redhat.com>
13446
13447 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
13448 calls to set_gdbarch_gnu_triplet_regexp.
13449
13450 2017-04-12 Pedro Alves <palves@redhat.com>
13451
13452 PR gdb/21323
13453 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
13454 New enum value.
13455 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
13456 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
13457 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
13458 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
13459 * gdbarch.h, gdbarch.c: Regenerate.
13460 * aarch64-tdep.c (aarch64_gdbarch_init): Override
13461 gdbarch_wchar_bit and gdbarch_wchar_signed.
13462 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
13463 * arm-tdep.c (arm_gdbarch_init): Likewise.
13464 * avr-tdep.c (avr_gdbarch_init): Likewise.
13465 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13466 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
13467 * i386-tdep.c (i386_go32_init_abi): Likewise.
13468 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13469 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13470 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
13471 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
13472 * sh-tdep.c (sh_gdbarch_init): Likewise.
13473 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13474 * sparc64-tdep.c (sparc64_init_abi): Likewise.
13475 * windows-tdep.c (windows_init_abi): Likewise.
13476 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13477
13478 2017-04-12 Pedro Alves <palves@redhat.com>
13479
13480 PR c++/21323
13481 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
13482 cplus_primitive_type_char32_t>: New enum values.
13483 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
13484 and cplus_primitive_type_char32_t.
13485 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
13486 32, use the archtecture's built-in type for char16_t and char32_t,
13487 respectively. Otherwise, fallback to init_integer_type as before,
13488 but make the type unsigned, and issue a complaint.
13489 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
13490
13491 2017-04-12 Alan Hayward <alan.hayward@arm.com>
13492
13493 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
13494 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
13495
13496 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13497
13498 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
13499 'const char *'.
13500
13501 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13502
13503 * common/common-utils.c (free_vector_argv): New function.
13504 * common/common-utils.h: Include <vector>.
13505 (free_vector_argv): New prototype.
13506 * darwin-nat.c (darwin_create_inferior): Rewrite function
13507 prototype in order to constify "exec_file" and accept a
13508 "std::string" for "allargs".
13509 * fork-child.c: Include <vector>.
13510 (breakup_args): Rewrite function, using C++.
13511 (fork_inferior): Rewrite function header, constify "exec_file_arg"
13512 and accept "std::string" for "allargs". Update the code to
13513 calculate "argv" based on "allargs". Update calls to "exec_fun"
13514 and "execvp".
13515 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
13516 order to constify "exec_file" and accept a "std::string" for
13517 "allargs".
13518 * go32-nat.c (go32_create_inferior): Likewise.
13519 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
13520 * infcmd.c (run_command_1): Constify "exec_file". Use
13521 "std::string" for inferior arguments.
13522 * inferior.h (fork_inferior): Update prototype.
13523 * linux-nat.c (linux_nat_create_inferior): Rewrite function
13524 prototype in order to constify "exec_file" and accept a
13525 "std::string" for "allargs".
13526 * nto-procfs.c (procfs_create_inferior): Likewise.
13527 * procfs.c (procfs_create_inferior): Likewise.
13528 * remote-sim.c (gdbsim_create_inferior): Likewise.
13529 * remote.c (extended_remote_run): Update code to accept
13530 "std::string" as argument.
13531 (extended_remote_create_inferior): Rewrite function prototype in
13532 order to constify "exec_file" and accept a "std::string" for
13533 "allargs".
13534 * rs6000-nat.c (super_create_inferior): Likewise.
13535 (rs6000_create_inferior): Likewise.
13536 * target.h (struct target_ops) <to_create_inferior>: Likewise.
13537 * windows-nat.c (windows_create_inferior): Likewise.
13538
13539 2017-04-11 Pedro Alves <palves@redhat.com>
13540
13541 * thread.c: Fix whitespace throughout.
13542
13543 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
13544
13545 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
13546
13547 2017-04-11 Alan Hayward <alan.hayward@arm.com>
13548
13549 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
13550
13551 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
13552
13553 PR gdb/21364
13554 * osdata.c (info_osdata): Check if 'type' is an empty string
13555 instead of NULL.
13556
13557 2017-04-10 Pedro Alves <palves@redhat.com>
13558
13559 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
13560 (ptid_to_global_thread_id, in_thread_list)
13561 (do_captured_list_thread_ids, set_resumed, set_running)
13562 (set_executing, set_stop_requested, finish_thread_state)
13563 (validate_registers_access, can_access_registers_ptid)
13564 (print_thread_info_1, switch_to_thread)
13565 (do_restore_current_thread_cleanup)
13566 (make_cleanup_restore_current_thread, thread_command)
13567 (thread_name_command): Use operator== instead of ptid_equal.
13568
13569 2017-04-10 Pedro Alves <palves@redhat.com>
13570
13571 * thread.c (struct current_thread_cleanup) <next>: Delete field.
13572 (current_thread_cleanup_chain): Delete.
13573 (restore_current_thread_cleanup_dtor)
13574 (make_cleanup_restore_current_thread): Remove references to
13575 current_thread_cleanup_chain.
13576
13577 2017-04-10 Alan Hayward <alan.hayward@arm.com>
13578
13579 * msp430-tdep.c (msp430_pseudo_register_read): Never return
13580 REG_UNKNOWN.
13581
13582 2017-04-10 Yao Qi <yao.qi@linaro.org>
13583
13584 PR gdb/19942
13585 * gdbthread.h (thread_info::deletable): New method.
13586 (thread_info::incref): New method.
13587 (thread_info::decref): New method.
13588 (thread_info::refcount): Move it to private.
13589 * infrun.c (save_stop_context): Call inc_refcount.
13590 (release_stop_context_cleanup): Likewise.
13591 * thread.c (set_thread_exited): New function.
13592 (init_thread_list): Delete "tp" only it is deletable, otherwise
13593 call set_thread_exited.
13594 (delete_thread_1): Call set_thread_exited.
13595 (current_thread_cleanup) <inferior_pid>: Remove.
13596 <thread>: New field.
13597 (restore_current_thread_ptid_changed): Removed.
13598 (do_restore_current_thread_cleanup): Adjust.
13599 (restore_current_thread_cleanup_dtor): Don't call
13600 find_thread_ptid.
13601 (set_thread_refcount): Use dec_refcount.
13602 (make_cleanup_restore_current_thread): Adjust.
13603 (thread_apply_all_command): Call inc_refcount.
13604 (_initialize_thread): Don't call
13605 observer_attach_thread_ptid_changed.
13606
13607 2017-04-10 Yao Qi <yao.qi@linaro.org>
13608
13609 * thread.c (delete_thread_1): Hoist code on marking thread as
13610 exited.
13611
13612 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13613
13614 * windows-nat.c (windows_detach): Initialize ptid with
13615 minus_one_ptid.
13616
13617 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
13618
13619 * unittests/ptid-selftests.c: Fix erroneous assert messages.
13620
13621 2017-04-07 Alan Hayward <alan.hayward@arm.com>
13622
13623 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
13624 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
13625 (bfin_pseudo_register_write): Likewise
13626
13627 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
13628
13629 * common/ptid.h (struct ptid): Change to...
13630 (class ptid_t): ... this.
13631 <ptid_t>: New constructors.
13632 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
13633 matches>: New methods.
13634 <make_null, make_minus_one>: New static methods.
13635 <pid>: Rename to...
13636 <m_pid>: ...this.
13637 <lwp>: Rename to...
13638 <m_lwp>: ...this.
13639 <tid>: Rename to...
13640 <m_tid>: ...this.
13641 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
13642 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
13643 as references, move comment to class ptid_t.
13644 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
13645 ptid_t static methods.
13646 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
13647 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
13648 Take ptid arguments as references, implement using ptid_t methods.
13649 * unittests/ptid-selftests.c: New file.
13650 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13651 unittests/ptid-selftests.c.
13652 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
13653
13654 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13655
13656 * python/python.c (python_run_simple_file): Cast mode literal to
13657 non-const char pointer as expected by PyFile_FromString.
13658
13659 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
13660
13661 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
13662 minus_one_ptid and null_ptid.
13663
13664 2017-04-05 Pedro Alves <palves@redhat.com>
13665
13666 * warning.m4 (build_warnings): Remove -Wno-write-strings.
13667 * configure: Regenerate.
13668
13669 2017-04-05 Pedro Alves <palves@redhat.com>
13670
13671 * ada-exp.y (yyerror): Constify.
13672 * ada-lang.c (bound_name, get_selections)
13673 (ada_variant_discrim_type)
13674 (ada_variant_discrim_name, ada_value_struct_elt)
13675 (ada_lookup_struct_elt_type, is_unchecked_variant)
13676 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
13677 (catch_ada_exception_command_split)
13678 (catch_ada_assert_command_split, catch_assert_command)
13679 (ada_op_name): Constify.
13680 * ada-lang.h (ada_yyerror, get_selections)
13681 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
13682 * arc-tdep.c (arc_print_frame_cache): Constify.
13683 * arm-tdep.c (arm_skip_stub): Constify.
13684 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
13685 (gen_aggregate_elt_ref): Constify.
13686 * bcache.c (print_bcache_statistics): Constify.
13687 * bcache.h (print_bcache_statistics): Constify.
13688 * break-catch-throw.c (catch_exception_command_1):
13689 * breakpoint.c (struct ep_type_description::description):
13690 Constify.
13691 (add_solib_catchpoint): Constify.
13692 (catch_fork_command_1): Add cast.
13693 (add_catch_command): Constify.
13694 * breakpoint.h (add_catch_command, add_solib_catchpoint):
13695 Constify.
13696 * bsd-uthread.c (bsd_uthread_state): Constify.
13697 * buildsym.c (patch_subfile_names): Constify.
13698 * buildsym.h (next_symbol_text_func, patch_subfile_names):
13699 Constify.
13700 * c-exp.y (yyerror): Constify.
13701 (token::oper): Constify.
13702 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
13703 * c-varobj.c (cplus_describe_child): Constify.
13704 * charset.c (find_charset_names): Add cast.
13705 (find_charset_names): Constify array and add const_cast.
13706 * cli/cli-cmds.c (complete_command, cd_command): Constify.
13707 (edit_command): Constify.
13708 * cli/cli-decode.c (lookup_cmd): Constify.
13709 * cli/cli-dump.c (dump_memory_command, dump_value_command):
13710 Constify.
13711 (struct dump_context): Constify.
13712 (add_dump_command, restore_command): Constify.
13713 * cli/cli-script.c (get_command_line): Constify.
13714 * cli/cli-script.h (get_command_line): Constify.
13715 * cli/cli-utils.c (check_for_argument): Constify.
13716 * cli/cli-utils.h (check_for_argument): Constify.
13717 * coff-pe-read.c (struct read_pe_section_data): Constify.
13718 * command.h (lookup_cmd): Constify.
13719 * common/print-utils.c (decimal2str): Constify.
13720 * completer.c (gdb_print_filename): Constify.
13721 * corefile.c (set_gnutarget): Constify.
13722 * cp-name-parser.y (yyerror): Constify.
13723 * cp-valprint.c (cp_print_class_member): Constify.
13724 * cris-tdep.c (cris_register_name, crisv32_register_name):
13725 Constify.
13726 * d-exp.y (yyerror): Constify.
13727 (struct token::oper): Constify.
13728 * d-lang.h (d_yyerror): Constify.
13729 * dbxread.c (struct header_file_location::name): Constify.
13730 (add_old_header_file, add_new_header_file, last_function_name)
13731 (dbx_next_symbol_text, add_bincl_to_list)
13732 (find_corresponding_bincl_psymtab, set_namestring)
13733 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
13734 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
13735 * defs.h (command_line_input, print_address_symbolic)
13736 (deprecated_readline_begin_hook): Constify.
13737 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
13738 Constify.
13739 * event-top.c (handle_line_of_input): Constify and add cast.
13740 * exceptions.c (catch_errors): Constify.
13741 * exceptions.h (catch_errors): Constify.
13742 * expprint.c (print_subexp_standard, op_string, op_name)
13743 (op_name_standard, dump_raw_expression, dump_raw_expression):
13744 * expression.h (op_name, op_string, dump_raw_expression):
13745 Constify.
13746 * f-exp.y (yyerror): Constify.
13747 (struct token::oper): Constify.
13748 (struct f77_boolean_val::name): Constify.
13749 * f-lang.c (f_word_break_characters): Constify.
13750 * f-lang.h (f_yyerror): Constify.
13751 * fork-child.c (fork_inferior): Add cast.
13752 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
13753 (new_variant): Constify.
13754 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
13755 * gdbarch.c: Regenerate.
13756 * gdbcore.h (set_gnutarget): Constify.
13757 * go-exp.y (yyerror): Constify.
13758 (token::oper): Constify.
13759 * go-lang.h (go_yyerror): Constify.
13760 * go32-nat.c (go32_sysinfo): Constify.
13761 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
13762 * guile/scm-cmd.c (cmdscm_function): Constify.
13763 * guile/scm-param.c (pascm_param_value): Constify.
13764 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
13765 (h8300sx_register_name): Constify.
13766 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
13767 Constify.
13768 * ia64-tdep.c (ia64_register_names): Constify.
13769 * infcmd.c (construct_inferior_arguments): Constify.
13770 (path_command, attach_post_wait): Constify.
13771 * language.c (show_range_command, show_case_command)
13772 (unk_lang_error): Constify.
13773 * language.h (language_defn::la_error)
13774 (language_defn::la_name_of_this): Constify.
13775 * linespec.c (decode_line_2): Constify.
13776 * linux-thread-db.c (thread_db_err_str): Constify.
13777 * lm32-tdep.c (lm32_register_name): Constify.
13778 * m2-exp.y (yyerror): Constify.
13779 * m2-lang.h (m2_yyerror): Constify.
13780 * m32r-tdep.c (m32r_register_names): Constify and make static.
13781 * m68hc11-tdep.c (m68hc11_register_names): Constify.
13782 * m88k-tdep.c (m88k_register_name): Constify.
13783 * macroexp.c (appendmem): Constify.
13784 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
13785 (upgrade_type, parse_external, parse_partial_symbols)
13786 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
13787 (new_symbol): Constify.
13788 * memattr.c (mem_info_command): Constify.
13789 * mep-tdep.c (register_name_from_keyword): Constify.
13790 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
13791 Constify.
13792 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
13793 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
13794 * mi/mi-main.c (captured_mi_execute_command): Constify and add
13795 cast.
13796 (mi_execute_async_cli_command): Constify.
13797 * mips-tdep.c (mips_register_name): Constify.
13798 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
13799 (am33_register_name, am33_2_register_name)
13800 * moxie-tdep.c (moxie_register_names): Constify.
13801 * nat/linux-osdata.c (osdata_type): Constify fields.
13802 * nto-tdep.c (nto_parse_redirection): Constify.
13803 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
13804 (lookup_child_selector): Constify.
13805 (objc_methcall::name): Constify.
13806 * objc-lang.h (lookup_objc_class, lookup_child_selector)
13807 (lookup_struct_typedef): Constify.
13808 * objfiles.c (pc_in_section): Constify.
13809 * objfiles.h (pc_in_section): Constify.
13810 * p-exp.y (struct token::oper): Constify.
13811 (yyerror): Constify.
13812 * p-lang.h (pascal_yyerror): Constify.
13813 * parser-defs.h (op_name_standard): Constify.
13814 (op_print::string): Constify.
13815 (exp_descriptor::op_name): Constify.
13816 * printcmd.c (print_address_symbolic): Constify.
13817 * psymtab.c (print_partial_symbols): Constify.
13818 * python/py-breakpoint.c (stop_func): Constify.
13819 (bppy_get_expression): Constify.
13820 * python/py-cmd.c (cmdpy_completer::name): Constify.
13821 (cmdpy_function): Constify.
13822 * python/py-event.c (evpy_add_attribute)
13823 (gdbpy_initialize_event_generic): Constify.
13824 * python/py-event.h (evpy_add_attribute)
13825 (gdbpy_initialize_event_generic): Constify.
13826 * python/py-evts.c (add_new_registry): Constify.
13827 * python/py-finishbreakpoint.c (outofscope_func): Constify.
13828 * python/py-framefilter.c (get_py_iter_from_func): Constify.
13829 * python/py-inferior.c (get_buffer): Add cast.
13830 * python/py-param.c (parm_constant::name): Constify.
13831 * python/py-unwind.c (fprint_frame_id): Constify.
13832 * python/python.c (gdbpy_parameter_value): Constify.
13833 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
13834 * remote.c (memory_packet_config::name): Constify.
13835 (show_packet_config_cmd, remote_write_bytes)
13836 (remote_buffer_add_string):
13837 * reverse.c (exec_reverse_once): Constify.
13838 * rs6000-tdep.c (variant::name, variant::description): Constify.
13839 * rust-exp.y (rustyyerror): Constify.
13840 * rust-lang.c (rust_op_name): Constify.
13841 * rust-lang.h (rustyyerror): Constify.
13842 * serial.h (serial_ops::name): Constify.
13843 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
13844 (sh_sh3e_register_name, sh_sh2e_register_name)
13845 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
13846 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
13847 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
13848 (sh_sh4al_dsp_register_name): Constify.
13849 * sh64-tdep.c (sh64_register_name): Constify.
13850 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
13851 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
13852 * stabsread.c (patch_block_stabs, read_type_number)
13853 (ref_map::stabs, ref_add, process_reference)
13854 (symbol_reference_defined, define_symbol, define_symbol)
13855 (error_type, read_type, read_member_functions, read_cpp_abbrev)
13856 (read_one_struct_field, read_struct_fields, read_baseclasses)
13857 (read_tilde_fields, read_struct_type, read_array_type)
13858 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
13859 (read_huge_number, read_range_type, read_args, common_block_start)
13860 (find_name_end): Constify.
13861 * stabsread.h (common_block_start, define_symbol)
13862 (process_one_symbol, symbol_reference_defined, ref_add):
13863 * symfile.c (get_section_index, add_symbol_file_command):
13864 * symfile.h (get_section_index): Constify.
13865 * target-descriptions.c (tdesc_type::name): Constify.
13866 (tdesc_free_type): Add cast.
13867 * target.c (find_default_run_target):
13868 (add_deprecated_target_alias, find_default_run_target)
13869 (target_announce_detach): Constify.
13870 (do_option): Constify.
13871 * target.h (add_deprecated_target_alias): Constify.
13872 * thread.c (print_thread_info_1): Constify.
13873 * top.c (deprecated_readline_begin_hook, command_line_input):
13874 Constify.
13875 (init_main): Add casts.
13876 * top.h (handle_line_of_input): Constify.
13877 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
13878 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
13879 (tfind_command): Rename to ...
13880 (tfind_command_1): ... this and constify.
13881 (tfind_command): New function.
13882 (tfind_end_command, tfind_start_command): Adjust.
13883 (encode_source_string): Constify.
13884 * tracepoint.h (encode_source_string): Constify.
13885 * tui/tui-data.c (tui_partial_win_by_name): Constify.
13886 * tui/tui-data.h (tui_partial_win_by_name): Constify.
13887 * tui/tui-source.c (tui_set_source_content_nil): Constify.
13888 * tui/tui-source.h (tui_set_source_content_nil): Constify.
13889 * tui/tui-win.c (parse_scrolling_args): Constify.
13890 * tui/tui-windata.c (tui_erase_data_content): Constify.
13891 * tui/tui-windata.h (tui_erase_data_content): Constify.
13892 * tui/tui-winsource.c (tui_erase_source_content): Constify.
13893 * tui/tui.c (tui_enable): Add cast.
13894 * utils.c (defaulted_query): Constify.
13895 (init_page_info): Add cast.
13896 (puts_debug, subset_compare): Constify.
13897 * utils.h (subset_compare): Constify.
13898 * varobj.c (varobj_format_string): Constify.
13899 * varobj.h (varobj_format_string): Constify.
13900 * vax-tdep.c (vax_register_name): Constify.
13901 * windows-nat.c (windows_detach): Constify.
13902 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
13903 * xml-support.c (gdb_xml_end_element): Constify.
13904 * xml-tdesc.c (tdesc_start_reg): Constify.
13905 * xstormy16-tdep.c (xstormy16_register_name): Constify.
13906 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
13907 * xtensa-tdep.h (xtensa_register_t::name): Constify.
13908
13909 2017-04-05 Pedro Alves <palves@redhat.com>
13910
13911 * proc-api.c (struct trans): Constify.
13912 (procfs_note): Constify.
13913 * proc-events.c (struct trans, syscall_table):
13914 * proc-flags.c (struct trans): Constify.
13915 * proc-utils.h (procfs_note): Constify.
13916 * proc-why.c (struct trans): Constify.
13917 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
13918 (procfs_detach): Constify.
13919 * sol-thread.c (struct string_map): Constify.
13920 (td_err_string, td_state_string): Constify.
13921
13922 2017-04-05 Pedro Alves <palves@redhat.com>
13923
13924 * proc-api.c (procfs_filename): Don't initialize
13925 procfs_filename.
13926 (prepare_to_trace): Assume procfs_filename is non-NULL.
13927 (_initialize_proc_api): Give procfs_filename a default value here.
13928
13929 2017-04-05 Pedro Alves <palves@redhat.com>
13930
13931 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
13932 'cond_string' parameter.
13933 (extract_exception_regexp): Constify 'string' parameter.
13934 (catch_exception_command_1): Constify.
13935 * breakpoint.c (init_catchpoint)
13936 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
13937 parameter.
13938 (ep_parse_optional_if_clause, catch_fork_command_1)
13939 (catch_exec_command_1): Constify.
13940 * breakpoint.h (init_catchpoint): Constify 'cond_string'
13941 parameter.
13942 (ep_parse_optional_if_clause): Constify.
13943 * cli/cli-utils.c (remove_trailing_whitespace)
13944 (check_for_argument): Constify.
13945 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
13946 non-const overload.
13947 (check_for_argument): Likewise.
13948
13949 2017-04-05 Pedro Alves <palves@redhat.com>
13950
13951 * event-top.c (command_line_handler): Add cast to execute_command
13952 call.
13953 * record-btrace.c (cmd_record_btrace_bts_start)
13954 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
13955 (cmd_record_btrace_start): Add cast to execute_command call.
13956 * record-full.c (record_full_goto_insn):
13957 * record.c (record_start, record_stop): Add cast to
13958 execute_command_to_string calls.
13959 (cmd_record_start): Add cast to execute_command calls.
13960
13961 2017-04-05 Pedro Alves <palves@redhat.com>
13962
13963 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
13964 static inline function.
13965 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
13966 array and use gdb_PyArg_ParseTupleAndKeywords.
13967 * python/py-cmd.c (cmdpy_init): Likewise.
13968 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
13969 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
13970 (infpy_search_memory): Likewise.
13971 * python/py-objfile.c (objfpy_add_separate_debug_file)
13972 (gdbpy_lookup_objfile): Likewise.
13973 * python/py-symbol.c (gdbpy_lookup_symbol)
13974 (gdbpy_lookup_global_symbol): Likewise.
13975 * python/py-type.c (gdbpy_lookup_type): Likewise.
13976 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
13977 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
13978 Likewise.
13979
13980 2017-04-05 Pedro Alves <palves@redhat.com>
13981
13982 * python/python-internal.h (gdb_PyGetSetDef): New type.
13983 * python/py-block.c (block_object_getset)
13984 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
13985 * python/py-event.c (event_object_getset)
13986 (finish_breakpoint_object_getset): Likewise.
13987 * python/py-inferior.c (inferior_object_getset): Likewise.
13988 * python/py-infthread.c (thread_object_getset): Likewise.
13989 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
13990 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
13991 * python/py-objfile.c (objfile_getset): Likewise.
13992 * python/py-progspace.c (pspace_getset): Likewise.
13993 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
13994 Likewise.
13995 * python/py-record.c (recpy_record_getset): Likewise.
13996 * python/py-symbol.c (symbol_object_getset): Likewise.
13997 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
13998 Likewise.
13999 * python/py-type.c (type_object_getset, field_object_getset):
14000 Likewise.
14001 * python/py-value.c (value_object_getset): Likewise.
14002
14003 2017-04-05 Pedro Alves <palves@redhat.com>
14004
14005 * python/python-internal.h (gdb_PyObject_CallMethod)
14006 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14007 New functions.
14008 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14009 (PySys_GetObject, PySys_SetPath): New macros.
14010
14011 2017-04-05 Pedro Alves <palves@redhat.com>
14012
14013 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14014 info_osdata_command.
14015 * osdata.c (info_osdata_command): Rename to ...
14016 (info_osdata): ... this. Constify 'type' parameter, and remove
14017 the 'from_tty' parameter. Accept NULL TYPE.
14018 (info_osdata_command): New function.
14019 * osdata.h (info_osdata_command): Remove declaration.
14020 (info_osdata): New declaration.
14021
14022 2017-04-05 Pedro Alves <palves@redhat.com>
14023
14024 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14025 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14026 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14027 parameter.
14028 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14029 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14030 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14031 parameter.
14032 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14033 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14034 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14035 (mi_cmd_file_list_exec_source_files)
14036 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14037 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14038 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14039 parameter.
14040 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14041 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14042 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14043 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14044 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14045 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14046 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14047 'command' parameter.
14048 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14049 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14050 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14051 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14052 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14053 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14054 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14055 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14056 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14057 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14058 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14059 parameter.
14060 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14061 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14062 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14063 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14064 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14065 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14066 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14067 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14068 (mi_cmd_data_list_changed_registers)
14069 (mi_cmd_data_write_register_values)
14070 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14071 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14072 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14073 (mi_cmd_list_features, mi_cmd_list_target_features)
14074 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14075 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14076 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14077 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14078 (mi_cmd_trace_frame_collected): Constify 'command'
14079 parameter.
14080 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14081 'command' parameter.
14082
14083 2017-04-05 Pedro Alves <palves@redhat.com>
14084
14085 * ada-lang.c (ada_completer_word_break_characters): Now a const
14086 array.
14087 (ada_get_gdb_completer_word_break_characters): Constify.
14088 * completer.c (gdb_completer_command_word_break_characters)
14089 (gdb_completer_file_name_break_characters)
14090 (gdb_completer_quote_characters): Now const arrays.
14091 (get_gdb_completer_quote_characters): Constify.
14092 (set_rl_completer_word_break_characters): New function.
14093 (set_gdb_completion_word_break_characters)
14094 (complete_line_internal): Use it.
14095 * completer.h (get_gdb_completer_quote_characters): Constify.
14096 (set_rl_completer_word_break_characters): Declare.
14097 * f-lang.c (f_word_break_characters): Constify.
14098 * language.c (default_word_break_characters): Constify.
14099 * language.h (language_defn::la_word_break_characters): Constify.
14100 (default_word_break_characters): Constify.
14101 * top.c (init_main): Use set_rl_completer_word_break_characters.
14102
14103 2017-04-05 Pedro Alves <palves@redhat.com>
14104
14105 * aix-thread.c (aix_thread_pid_to_str)
14106 (aix_thread_extra_thread_info): Constify.
14107 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14108 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14109 (bsd_uthread_pid_to_str): Constify.
14110 * corelow.c (core_pid_to_str): Constify.
14111 * darwin-nat.c (darwin_pid_to_str): Constify.
14112 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14113 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14114 Constify.
14115 * gnu-nat.c (gnu_pid_to_str): Constify.
14116 * go32-nat.c (go32_pid_to_str): Constify.
14117 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14118 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14119 * inferior.c (inferior_pid_to_str): Constify.
14120 * linux-nat.c (linux_nat_pid_to_str): Constify.
14121 * linux-tdep.c (linux_core_pid_to_str): Constify.
14122 * linux-thread-db.c (thread_db_pid_to_str)
14123 (thread_db_extra_thread_info): Constify.
14124 * nto-tdep.c (nto_extra_thread_info): Constify.
14125 * nto-tdep.h (nto_extra_thread_info): Constify.
14126 * obsd-nat.c (obsd_pid_to_str): Constify.
14127 * procfs.c (procfs_pid_to_str): Constify.
14128 * ravenscar-thread.c (ravenscar_extra_thread_info)
14129 (ravenscar_pid_to_str): Constify.
14130 * remote-sim.c (gdbsim_pid_to_str): Constify.
14131 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14132 Constify.
14133 * sol-thread.c (solaris_pid_to_str): Constify.
14134 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14135 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14136 * target.c (default_pid_to_str, target_pid_to_str)
14137 (normal_pid_to_str, default_pid_to_str): Constify.
14138 * target.h (target_ops::to_pid_to_str)
14139 (target_ops::to_extra_thread_info): Constify.
14140 (target_pid_to_str, normal_pid_to_str): Constify.
14141 * windows-nat.c (windows_pid_to_str): Constify.
14142 * gdbarch.sh (core_pid_to_str): Constify.
14143 * target-delegates.c: Regenerate.
14144 * gdbarch.h, gdbarch.c: Regenerate.
14145
14146 2017-04-05 Pedro Alves <palves@redhat.com>
14147
14148 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14149 the memory of the temporary warning_pre_print override.
14150 * utils.c (warning_pre_print): Constify.
14151 * utils.h (warning_pre_print): Constify.
14152
14153 2017-04-05 Pedro Alves <palves@redhat.com>
14154
14155 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14156 (shell_command): New function.
14157 (make_command): Use std::string.
14158 (init_cli_cmds): Register shell_command instead of shell_escape.
14159
14160 2017-04-05 Pedro Alves <palves@redhat.com>
14161
14162 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14163 * tracepoint.c (default_collect): Don't initialize.
14164
14165 2017-04-05 Pedro Alves <palves@redhat.com>
14166
14167 * macroexp.c (macro_buffer::shared): Now a bool.
14168 (init_buffer): Update.
14169 (init_shared_buffer): Constify 'addr' parameter.
14170 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14171 casts.
14172
14173 2017-04-05 Pedro Alves <palves@redhat.com>
14174
14175 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14176 * disasm.c (set_disassembler_options): Constify local.
14177 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14178
14179 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14180
14181 PR gdb/21352
14182 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14183 option.
14184
14185 2017-04-05 Yao Qi <yao.qi@linaro.org>
14186
14187 * frame.c (frame_unwind_register_unsigned): Call
14188 frame_unwind_register_value.
14189
14190 2017-04-05 Yao Qi <yao.qi@linaro.org>
14191
14192 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14193 Use gdb_test_multiple, and don't match anchor.
14194
14195 2017-04-05 Pedro Alves <palves@redhat.com>
14196
14197 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14198 (Write After Approval): Remove Simon Marchi.
14199
14200 2017-04-05 Pedro Alves <palves@redhat.com>
14201
14202 * common/gdb_optional.h (optional::optional): Make constexpr and
14203 initialize m_dummy.
14204
14205 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14206
14207 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14208 (amd64fbsd_jmp_buf_reg_offset): Remove.
14209 (amd64fbsd_supply_uthread): Remove function.
14210 (amd64fbsd_collect_uthread): Remove function.
14211 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14212 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14213 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14214 (fbsd-nat.c): Update comment.
14215 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14216 (i386fbsd_jmp_buf_reg_offset): Remove.
14217 (i386fbsd_supply_uthread): Remove function.
14218 (i386fbsd_collect_uthread): Remove function.
14219 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14220
14221 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14222
14223 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14224 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14225 * NEWS: Mention that support for FreeBSD/alpha was removed.
14226 * alpha-fbsd-tdep.c: Delete file.
14227 * config/alpha/fbsd.mh: Delete file.
14228 * configure.host: Delete alpha*-*-freebsd* and
14229 alpha*-*-kfreebsd*-gnu.
14230 * configure.tgt: Delete alpha*-*-freebsd* and
14231 alpha*-*-kfreebsd*-gnu.
14232
14233 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14234
14235 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14236 amd64bsd_store_inferior_registers): Use ptid from regcache.
14237
14238 2017-04-04 Pedro Alves <palves@redhat.com>
14239
14240 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14241 data fields, make them private and add "m_" prefixes.
14242 (lnp_state_machine::lnp_state_machine): New ctor.
14243 (record_line, check_line_address, handle_set_discriminator)
14244 (handle_set_address, handle_advance_pc, handle_special_opcode)
14245 (handle_advance_line, handle_set_file, handle_negate_stmt)
14246 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14247 (end_sequence, advance_line): New methods.
14248 (m_gdbarch, m_record_lines_p): New fields.
14249 (lnp_reader_state): Delete.
14250 (dwarf_record_line): Rename to ...
14251 (lnp_state_machine::record_line): ... adjust.
14252 (init_lnp_state_machine): Delete.
14253 (lnp_state_machine::lnp_state_machine): New.
14254 (check_line_address): Rename to ...
14255 (lnp_state_machine::check_line_address): This.
14256 (dwarf_decode_lines_1): Remove reference to "reader_state".
14257 Adjust lnp_state_machine having a non-default ctor. Use bool.
14258 State machine internal state manipulation moved to
14259 lnp_state_machine methods.
14260
14261 2017-04-04 Pedro Alves <palves@redhat.com>
14262
14263 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14264 unittests/offset-type-selftests.c.
14265 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14266 * common/offset-type.h: New file.
14267 * common/preprocessor.h: New file.
14268 * common/traits.h: New file.
14269 * common/valid-expr.h: New file.
14270 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14271 sect_offset and cu_offset strong typedefs throughout.
14272 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14273 typedefs throughout.
14274 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14275 sect_offset and cu_offset strong typedefs throughout.
14276 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14277 typedefs throughout.
14278 * gdbtypes.h: Include "common/offset-type.h".
14279 (cu_offset): Now an offset type (strong typedef) instead of a
14280 struct.
14281 (sect_offset): Likewise.
14282 (union call_site_parameter_u): Rename "param_offset" field to
14283 "param_cu_off".
14284 * unittests/offset-type-selftests.c: New file.
14285
14286 2017-04-04 Pedro Alves <palves@redhat.com>
14287
14288 * common/underlying.h: New file.
14289 * dwarf2read.c: Include "common/gdb_optional.h" and
14290 "common/underlying.h".
14291 (dir_index, file_name_index): New types.
14292 (file_entry): Use them.
14293 (file_entry::include): Use to_underlying.
14294 (line_header::add_file_name): Use dir_index.
14295 (read_formatted_entries): Use gdb::optional. Read form before
14296 writting to file_entry.
14297 (dwarf_decode_line_header): Use dir_index.
14298 (lnp_state_machine::current_file): Use to_underlying.
14299 (lnp_state_machine::file): Change type to file_name_index.
14300 (dwarf_record_line): Use to_underlying.
14301 (init_lnp_state_machine): Use file_name_index.
14302 (dwarf_decode_lines_1): Use dir_index and file_name_index.
14303
14304 2017-04-04 Pedro Alves <palves@redhat.com>
14305
14306 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
14307 operator bool, has_value and get methods.
14308
14309 2017-04-04 Pedro Alves <palves@redhat.com>
14310
14311 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
14312 fields.
14313 (line_header): Initialize all data fields. Change type of
14314 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
14315 Change type of include_dirs to std::vector<const char *>. Remove
14316 num_include_dirs, include_dirs_size. Change type of file_names to
14317 std::vector<file_entry>. Remove num_file_names, file_names_size.
14318 (line_header::line_header): New.
14319 (line_header::add_include_dir, line_header::add_file_name): New
14320 methods.
14321 (line_header::include_dir_at): Remove NULL check.
14322 (line_header::file_name_at): Add const overload.
14323 (line_header_up): New unique_ptr typedef.
14324 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
14325 std::vector. Remove free_line_header call.
14326 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
14327 free_line_header call.
14328 (free_cu_line_header): Delete.
14329 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
14330 (setup_type_unit_groups): Use line_header_up instead of cleanups.
14331 Adjust to use std::vector.
14332 (free_line_header): Delete.
14333 (free_line_header_voidp): Use delete.
14334 (add_include_dir): Replace with ...
14335 (line_header::add_include_dir): ... this method. Use std::vector.
14336 (add_file_name): Replace with ...
14337 (line_header::add_file_name): ... this method. Use std::vector.
14338 (add_include_dir_stub): Delete.
14339 (read_formatted_entries): Remove memset.
14340 (dwarf_decode_line_header): Return a line_header_up instead of a
14341 raw pointer. Remove cleanup handling. Pass lambdas to
14342 read_formatted_entries. Adjust to use line_header methods.
14343 (dwarf_decode_lines_1): Adjust to use line_header methods.
14344 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
14345 use std::vector.
14346
14347 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
14348
14349 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
14350 instead of struct ptid.
14351
14352 2017-05-04 Alan Hayward <alan.hayward@arm.com>
14353
14354 * frame.c (get_frame_register_bytes): Unwind using value.
14355 (put_frame_register_bytes): Likewise.
14356
14357 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
14358
14359 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
14360 aggregate-like.
14361
14362 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
14363
14364 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
14365
14366 2017-03-29 Yao Qi <yao.qi@linaro.org>
14367
14368 * gdbthread.h (struct thread_info): Declare constructor and
14369 destructor. Add some in-class member initializers.
14370 * thread.c (free_thread): Remove.
14371 (init_thread_list): Call delete instead of free_thread.
14372 (new_thread): Call thread_info constructor.
14373 (thread_info::thread_info): New function.
14374 (thread_info::~thread_info): New function.
14375 (delete_thread_1): Call delete instead of free_thread.
14376 (make_cleanup_restore_current_thread): Move tp and frame to
14377 inner block.
14378
14379 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14380
14381 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
14382 (arc_skip_prologue): Likewise.
14383 (arc_make_frame_cache): Likewise.
14384 (arc_pv_get_operand): New function.
14385 (arc_is_in_prologue): Likewise.
14386 (arc_analyze_prologue): Likewise.
14387 (arc_print_frame_cache): Likewise.
14388 (MAX_PROLOGUE_LENGTH): New constant.
14389
14390 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14391
14392 * configure.tgt: Add arc-insn.o.
14393 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
14394 (dump_arc_instruction_command): New function.
14395 (arc_fprintf_disasm): Likewise.
14396 (arc_disassemble_info): Likewise.
14397 (arc_insn_get_operand_value): Likewise.
14398 (arc_insn_get_operand_value_signed): Likewise.
14399 (arc_insn_get_memory_base_reg): Likewise.
14400 (arc_insn_get_memory_offset): Likewise.
14401 (arc_insn_get_branch_target): Likewise.
14402 (arc_insn_dump): Likewise.
14403 (arc_insn_get_linear_next_pc): Likewise.
14404 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
14405 (arc_disassemble_info): Likewise.
14406 (arc_insn_get_branch_target): Likewise.
14407 (arc_insn_get_linear_next_pc): Likewise.
14408 * NEWS: Mention new "maint print arc arc-instruction".
14409
14410 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14411
14412 * arc-tdep (maintenance_print_arc_list): New variable.
14413 (maintenance_print_arc_command): New function.
14414
14415 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14416
14417 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
14418 Add "limm" and "reserved".
14419 (arc_cannot_fetch_register, arc_cannot_store_register): Add
14420 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
14421 * arc-tdep.h (arc_regnum): Likewise.
14422
14423 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14424
14425 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14426 for THREADPTR register.
14427 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
14428 register.
14429 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
14430 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
14431 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
14432
14433 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14434
14435 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
14436 registers above gdbarch_num_regs (gdbarch) as privileged in
14437 call0 ABI.
14438
14439 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14440
14441 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14442 for a single specified register or for all registers in
14443 a0_base..a0_base + C0_NREGS range.
14444 (supply_gregset_reg): Call regcache_raw_supply for a single
14445 specified register or for all registers in a0_base..a0_base +
14446 C0_NREGS range.
14447
14448 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14449
14450 * arch/xtensa.h (C0_NREGS): Add definition.
14451 * xtensa-tdep.c (C0_NREGS): Remove definition.
14452
14453 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14454
14455 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
14456 Drop xtensa_default_isa initialization.
14457 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
14458
14459 2017-03-27 Pedro Alves <palves@redhat.com>
14460
14461 * dwarf2read.c (file_entry) <dir_index>: Add comment.
14462 (file_entry::include_dir): New method.
14463 (line_header::include_dir_at, line_header::file_name_at): New
14464 methods.
14465 (setup_type_unit_groups, setup_type_unit_groups)
14466 (psymtab_include_file_name): Simplify using the new methods.
14467 (lnp_state_machine) <the_line_header>: New field.
14468 <file>: Add comment.
14469 (lnp_state_machine::current_file): New method.
14470 (dwarf_record_line): Simplify using the new methods.
14471 (init_lnp_state_machine): Initialize the "the_line_header" field.
14472 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
14473 Simplify using the new methods.
14474
14475 2017-03-27 Pedro Alves <palves@redhat.com>
14476
14477 * cp-name-parser.y (make_empty): Delete.
14478 (demangler_special, nested_name, ptr_operator, array_indicator)
14479 (direct_declarator, declarator_1): Use fill_comp instead of
14480 make_empty.
14481
14482 2017-03-27 Pedro Alves <palves@redhat.com>
14483
14484 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
14485 to ATTRIBUTE_PRINTF.
14486 * solib-target.c (library_list_start_list): Print "string" not
14487 "version".
14488 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
14489 gdb_xml_error call.
14490
14491 2017-03-27 Pedro Alves <palves@redhat.com>
14492
14493 * dwarf2read.c (struct file_and_directory): New.
14494 (dwarf2_get_dwz_file): Adjust to use std::string.
14495 (dw2_get_file_names_reader): Adjust to use file_and_directory.
14496 (find_file_and_directory): Adjust to return a file_and_directory
14497 object.
14498 (read_file_scope): Adjust to use file_and_directory. Remove
14499 make_cleanup/do_cleanups calls.
14500 (open_and_init_dwp_file): Adjust to use std::string. Remove
14501 make_cleanup/do_cleanups calls.
14502 * python/python.c (do_start_initialization): Adjust to ldirname
14503 returning a std::string.
14504 * utils.c (ldirname): Now returns a std::string.
14505 * utils.h (ldirname): Change return type to std::string.
14506 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
14507 returning a std::string.
14508 * xml-tdesc.c (file_read_description_xml): Likewise.
14509
14510 2017-03-24 Alan Hayward <alan.hayward@arm.com>
14511
14512 * regcache.c (regcache_debug_print_register): New function.
14513 * regcache.h (regcache_debug_print_register): New declaration.
14514 * target.c (debug_print_register): Remove.
14515 (target_fetch_registers): Call regcache_debug_print_register.
14516 (target_store_registers): Likewise.
14517
14518 2017-03-24 Pádraig Brady <pbrady@fb.com>
14519
14520 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
14521 reference beyond the 'lh->include_dirs' array before accessing to
14522 it.
14523 (psymtab_include_file_name): Likewise.
14524 (dwarf_decode_lines_1): Likewise.
14525 (dwarf_decode_lines): Likewise.
14526 (file_file_name): Likewise.
14527
14528 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
14529
14530 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
14531 inferior_ptid.
14532 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14533 ps_lsetfpregs): Likewise.
14534 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
14535 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14536 ps_lsetfpregs): Likewise.
14537 * target.c (target_fetch_registers, target_store_registers):
14538 Remove asserts.
14539
14540 2017-03-23 Alan Hayward <alan.hayward@arm.com>
14541
14542 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
14543
14544 2017-03-23 Yao Qi <yao.qi@linaro.org>
14545
14546 * aarch64-tdep.c (aarch64_process_record_test): Declare.
14547 (_initialize_aarch64_tdep): Register it.
14548 (aarch64_record_load_store): Handle PRFM instruction.
14549 (aarch64_process_record_test): New function.
14550
14551 2017-03-23 Yao Qi <yao.qi@linaro.org>
14552
14553 * aarch64-tdep.c (aarch64_record_load_store): Fix code
14554 indentation.
14555
14556 2017-03-23 Yao Qi <yao.qi@linaro.org>
14557
14558 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
14559
14560 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14561
14562 python/python.c (do_start_initialization): Fix memory leak.
14563
14564 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
14565
14566 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
14567 using get_ptrace_pid.
14568 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
14569 inferior_ptid.
14570 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
14571 inferior_ptid instead of pid.
14572
14573 2017-03-22 Yao Qi <yao.qi@linaro.org>
14574
14575 * aarch64-tdep.c: Wrap locally used classes in anonymous
14576 namespace.
14577 * arm-tdep.c: Likewise.
14578 * linespec.c: Likewise.
14579 * ui-out.c: Likewise.
14580
14581 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
14582
14583 PR gdb/19637
14584 * python/lib/gdb/printer/bound_registers.py: Import sys.
14585
14586 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14587
14588 * windows-nat.c (do_windows_fetch_inferior_registers): Add
14589 windows_thread_info parameter and use it instead of
14590 current_thread.
14591 (windows_fetch_inferior_registers): Don't set current_thread,
14592 pass the thread to do_windows_fetch_inferior_registers. Use
14593 ptid from regcache instead of inferior_ptid.
14594 (do_windows_store_inferior_registers): Add windows_thread_info
14595 parameter and use it instead of current_thread.
14596 (windows_store_inferior_registers): Don't set current_thread,
14597 pass the thread to do_windows_store_inferior_registers. Use
14598 ptid from regcache instead of inferior_ptid.
14599
14600 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14601
14602 * ser-mingw.c (ser_windows_raw): Remove reference to
14603 struct serial::current_timeout.
14604
14605 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
14606
14607 PR tdep/20928
14608 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
14609 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
14610 (sparc64_fsr_type): Fix %fsr decoding.
14611
14612 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
14613
14614 * python/py-record-btrace.c (btpy_insn_data): Change return type
14615 for Python 2.
14616
14617 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14618
14619 * spu-linux-nat.c (spu_fetch_inferior_registers,
14620 spu_store_inferior_registers): Use ptid from regcache, set and
14621 restore inferior_ptid.
14622 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
14623 Likewise.
14624
14625 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14626
14627 * i386-linux-nat.c (fetch_register, store_register,
14628 i386_linux_fetch_inferior_registers,
14629 i386_linux_store_inferior_registers): Use ptid from regcache.
14630 * ia64-linux-nat.c (ia64_linux_fetch_register,
14631 ia64_linux_store_register): Likewise.
14632 * inf-ptrace.c (inf_ptrace_fetch_register,
14633 inf_ptrace_store_register): Likewise.
14634 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
14635 m32r_linux_store_inferior_registers): Likewise.
14636 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
14637 m68kbsd_store_inferior_registers): Likewise.
14638 * m68k-linux-nat.c (fetch_register, store_register,
14639 m68k_linux_fetch_inferior_registers,
14640 m68k_linux_store_inferior_registers): Likewise.
14641 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
14642 m88kbsd_store_inferior_registers): Likewise.
14643 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
14644 mips_fbsd_store_inferior_registers): Likewise.
14645 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
14646 mips64_linux_regsets_store_registers): Likewise.
14647 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
14648 mipsnbsd_store_inferior_registers): Likewise.
14649 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
14650 mips64obsd_store_inferior_registers): Likewise.
14651 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
14652 Likewise.
14653 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
14654 ppcfbsd_store_inferior_registers): Likewise.
14655 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
14656 ppc_linux_store_inferior_registers): Likewise.
14657 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
14658 ppcnbsd_store_inferior_registers): Likewise.
14659 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
14660 ppcobsd_store_registers): Likewise.
14661 * procfs.c (procfs_fetch_registers, procfs_store_registers):
14662 Likewise.
14663 * ravenscar-thread.c (ravenscar_fetch_registers,
14664 ravenscar_store_registers, ravenscar_prepare_to_store):
14665 Likewise.
14666 * record-btrace.c (record_btrace_fetch_registers,
14667 record_btrace_store_registers, record_btrace_prepare_to_store):
14668 Likewise.
14669 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
14670 Lookup inferior using ptid from regcache, instead of
14671 current_inferior.
14672 * remote.c (remote_fetch_registers, remote_store_registers): Use
14673 ptid from regcache.
14674 * rs6000-nat.c (fetch_register, store_register): Likewise.
14675 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
14676 s390_linux_store_inferior_registers): Likewise.
14677 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
14678 shnbsd_store_inferior_registers): Likewise.
14679 * sol-thread.c (sol_thread_fetch_registers,
14680 sol_thread_store_registers): Likewise.
14681 * sparc-nat.c (sparc_fetch_inferior_registers,
14682 sparc_store_inferior_registers): Likewise.
14683 * tilegx-linux-nat.c (fetch_inferior_registers,
14684 store_inferior_registers): Likewise.
14685 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
14686 vaxbsd_store_inferior_registers): Likewise.
14687 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
14688 store_xtregs): Likewise.
14689
14690 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14691
14692 PR gdb/14441
14693 * NEWS: Mention support for rvalue references in GDB and python.
14694 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
14695 supports both lvalue and rvalue references.
14696
14697 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14698
14699 PR gdb/14441
14700 * gdbtypes.c (rank_one_type): Implement overloading
14701 resolution rules regarding rvalue references.
14702
14703 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14704
14705 PR gdb/14441
14706 * aarch64-tdep.c (aarch64_type_align)
14707 (aarch64_extract_return_value, aarch64_store_return_value): Change
14708 lvalue reference type checks to general reference type checks.
14709 * amd64-tdep.c (amd64_classify): Likewise.
14710 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
14711 Likewise.
14712 * arm-tdep.c (arm_type_align, arm_extract_return_value)
14713 (arm_store_return_value): Likewise.
14714 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
14715 * c-typeprint.c (c_print_type): Likewise.
14716 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
14717 (cplus_number_of_children, cplus_describe_child): Likewise.
14718 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
14719 * completer.c (expression_completer): Likewise.
14720 * cp-support.c (make_symbol_overload_list_adl_namespace):
14721 Likewise.
14722 * darwin-nat-info.c (info_mach_region_command): Likewise.
14723 * dwarf2loc.c (entry_data_value_coerce_ref)
14724 (value_of_dwarf_reg_entry): Likewise.
14725 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
14726 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
14727 Likewise.
14728 * findvar.c (extract_typed_address, store_typed_address):
14729 Likewise.
14730 * gdbtypes.c (rank_one_type): Likewise.
14731 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
14732 * infcall.c (value_arg_coerce): Likewise.
14733 * language.c (pointer_type): Likewise.
14734 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
14735 Likewise.
14736 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
14737 * mn10300-tdep.c (mn10300_type_align): Likewise.
14738 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
14739 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
14740 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
14741 Likewise.
14742 * printcmd.c (print_formatted, x_command): Likewise.
14743 * python/py-type.c (typy_get_composite, typy_template_argument):
14744 Likewise.
14745 * python/py-value.c (valpy_referenced_value)
14746 (valpy_get_dynamic_type, value_has_field): Likewise.
14747 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
14748 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
14749 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
14750 * spu-tdep.c (spu_scalar_value_p): Likewise.
14751 * symtab.c (lookup_symbol_aux): Likewise.
14752 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
14753 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
14754 Likewise.
14755 * valops.c (value_cast_pointers, value_cast)
14756 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
14757 (value_struct_elt, value_struct_elt_bitpos)
14758 (value_find_oload_method_list, find_overload_match)
14759 (value_rtti_indirect_type): Likewise.
14760 * valprint.c (val_print_scalar_type_p, generic_val_print):
14761 Likewise.
14762 * value.c (value_actual_type, value_as_address, unpack_long)
14763 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
14764 (coerce_ref): Likewise.
14765 * varobj.c (varobj_get_value_type): Likewise.
14766
14767 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14768
14769 PR gdb/14441
14770 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
14771 table of constants.
14772 * python/lib/gdb/command/explore.py: Support exploring values
14773 of rvalue reference types.
14774 * python/lib/gdb/types.py: Implement get_basic_type() for
14775 rvalue reference types.
14776 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
14777 constant.
14778 * python/py-value.c (valpy_getitem): Add an rvalue reference
14779 check.
14780 (valpy_reference_value): Add new parameter "refcode".
14781 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
14782 New wrappers for valpy_reference_value().
14783 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14784 (gdbpy_invoke_xmethod): Likewise.
14785
14786 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14787
14788 PR gdb/14441
14789 * dwarf2read.c (process_die, read_type_die_1): Handle the
14790 DW_TAG_rvalue_reference_type DIE.
14791 (read_tag_reference_type): Add new parameter "refcode".
14792
14793 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14794
14795 PR gdb/14441
14796 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
14797 (c_type_print_modifier, c_type_print_varspec_suffix)
14798 (c_type_print_base): Support printing rvalue reference types.
14799 * c-valprint.c (c_val_print, c_value_print): Support printing
14800 rvalue reference values.
14801
14802 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14803
14804 PR gdb/14441
14805 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
14806 typename.
14807 * cp-support.c (replace_typedefs): Handle
14808 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
14809 * python/py-type.c (typy_lookup_type): Likewise.
14810
14811 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14812
14813 PR gdb/14441
14814 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
14815 * parse.c (insert_type): Change assert statement.
14816 (follow_types): Handle rvalue reference types.
14817 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
14818 constant.
14819
14820 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14821
14822 PR gdb/14441
14823 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
14824 value_ref() interface.
14825 * c-valprint.c (c_value_print): Likewise.
14826 * infcall.c (value_arg_coerce): Likewise.
14827 * python/py-value.c (valpy_reference_value): Likewise.
14828 * valops.c (value_cast, value_reinterpret_cast)
14829 (value_dynamic_cast, typecmp): Likewise.
14830 (value_ref): Parameterize by kind of return value reference type.
14831 * value.h (value_ref): Add new parameter "refcode".
14832
14833 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14834
14835 PR gdb/14441
14836 * dwarf2read.c (read_tag_reference_type): Use
14837 lookup_lvalue_reference_type() instead of lookup_reference_type().
14838 * eval.c (evaluate_subexp_standard): Likewise.
14839 * f-exp.y: Likewise.
14840 * gdbtypes.c (make_reference_type, lookup_reference_type):
14841 Generalize with rvalue reference types.
14842 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
14843 convenience wrappers for lookup_reference_type().
14844 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
14845 reference kind parameter.
14846 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
14847 wrappers for lookup_reference_type().
14848 * guile/scm-type.c (gdbscm_type_reference): Use
14849 lookup_lvalue_reference_type() instead of lookup_reference_type().
14850 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
14851 * parse.c (follow_types): Likewise.
14852 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
14853 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
14854 Likewise.
14855 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14856 (gdbpy_invoke_xmethod): Likewise.
14857 * stabsread.c: Provide extra argument to make_reference_type()
14858 call.
14859 * valops.c (value_ref, value_rtti_indirect_type): Use
14860 lookup_lvalue_reference_type() instead of lookup_reference_type().
14861
14862 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14863
14864 PR gdb/14441
14865 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
14866 (TYPE_IS_REFERENCE): New macro.
14867 (struct type): Add rvalue_reference_type field.
14868 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
14869
14870 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14871
14872 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
14873 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
14874 New function definition.
14875 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
14876 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
14877 New function declaration.
14878 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
14879 * mi/mi-interp.h: New file.
14880 * solib.c (info_sharedlibrary_command): Replace for loop with
14881 ALL_SO_LIBS macro
14882 * solib.h (update_solib_list): New function declaration.
14883 (so_list_head): Move macro.
14884 * solist.h (ALL_SO_LIBS): New macro.
14885
14886 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14887
14888 * infcmd.c (post_create_inferior): Remove unused argument in
14889 call to solib_add.
14890 * remote.c (remote_start_remote): Likewise.
14891 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
14892 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
14893 (enable_break): Likewise.
14894 * solib.c (update_solib_list): Remove unused target argument
14895 and its documentation.
14896 (solib_add): Remove unused target argument. Remove unused
14897 argument in call to update_solib_list.
14898 (info_sharedlibrary_command): Remove unused argument in call
14899 to update_solib_list.
14900 (sharedlibrary_command): Remove unused argument in call to
14901 solib_add.
14902 (handle_solib_event): Likewise.
14903 (reload_shared_libraries): Likewise.
14904 * solib.h (solib_add): Remove unused target argument.
14905
14906 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
14907
14908 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
14909 (s390_displaced_step_fixup): Cover relative branches with the
14910 default fixup handling. This fixes lack of support for some
14911 relative branch instructions.
14912
14913 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14914
14915 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
14916 ptid from regcache.
14917
14918 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14919
14920 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
14921 i386_darwin_store_inferior_registers): Use ptid from regcache.
14922
14923 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14924
14925 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
14926 i386bsd_store_inferior_registers): Use ptid from regcache.
14927
14928 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14929
14930 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
14931 hppaobsd_store_registers): Use ptid from regcache.
14932
14933 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14934
14935 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
14936 hppanbsd_store_registers): Use ptid from regcache.
14937
14938 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14939
14940 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
14941 from regcache. Use get_ptrace_pid.
14942
14943 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14944
14945 * corelow.c (get_core_register_section): Use ptid from regcache,
14946 update doc.
14947
14948 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14949
14950 * bsd-uthread.c (bsd_uthread_fetch_registers,
14951 bsd_uthread_store_registers): Use ptid from regcache, set and
14952 restore inferior_ptid.
14953
14954 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14955
14956 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
14957 fetch_fp_regs, store_register, store_regs, store_fp_register,
14958 store_fp_regs): Use ptid from regcache.
14959
14960 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14961
14962 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
14963 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
14964 store_vfp_regs): Use ptid from regcache.
14965
14966 2017-03-17 Pedro Alves <palves@redhat.com>
14967
14968 PR remote/21188
14969 * ser-base.c (ser_base_wait_for): Add comment.
14970 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
14971 version.
14972 * ser-unix.c (hardwire_raw): Remove reference to
14973 scb->current_timeout.
14974 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
14975 (hardwire_ops): Install ser_base_readchar instead of
14976 hardwire_readchar.
14977 * serial.h (struct serial) <current_timeout, timeout_remaining>:
14978 Remove fields.
14979
14980 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
14981
14982 PR gdb/19637
14983 * python/lib/gdb/printer/bound_registers.py: Add support for
14984 Python 3.
14985
14986 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
14987
14988 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
14989 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
14990 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
14991 byte_offset to subobj_byte_offset. Fix the handling of
14992 DWARF_VALUE_STACK on big-endian targets when coming via an
14993 implicit pointer.
14994 (dwarf2_evaluate_loc_desc): Adjust call to
14995 dwarf2_evaluate_loc_desc_full.
14996 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
14997 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
14998
14999 2017-03-16 Yao Qi <yao.qi@linaro.org>
15000
15001 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15002 and REVSH instructions.
15003
15004 2017-03-16 Yao Qi <yao.qi@linaro.org>
15005
15006 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15007 (arm_record_test): Declare.
15008 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15009 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15010 align with the manual.
15011 (thumb_record_misc): Adjust the code order to align with the
15012 manual.
15013 (thumb2_record_decode_insn_handler): Fix instruction matching.
15014 (instruction_reader_thumb): New class.
15015 (arm_record_test): New function.
15016
15017 2017-03-16 Yao Qi <yao.qi@linaro.org>
15018
15019 * arm-tdep.c (abstract_memory_reader): New class.
15020 (instruction_reader): New class.
15021 (extract_arm_insn): Add argument 'reader'. Callers updated.
15022 (decode_insn): Likewise.
15023
15024 2017-03-16 Doug Evans <dje@google.com>
15025
15026 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15027 member. Change type of TYPE member to SCM. All uses updated.
15028 (lsscm_make_lazy_string_smob): Add assert.
15029 (lsscm_make_lazy_string): Flag bad length values.
15030 (lsscm_elt_type): New function.
15031 (gdbscm_lazy_string_to_value): Rewrite to use
15032 lsscm_safe_lazy_string_to_value.
15033 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15034 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15035 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15036 in incoming type.
15037 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15038 * guile/scm-type.c (tyscm_scm_to_type): New function.
15039
15040 2017-03-15 Doug Evans <dje@google.com>
15041
15042 PR python/17728, python/18439, python/18779
15043 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15044 member. Change type of TYPE member to PyObject *. All uses updated.
15045 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15046 (gdbpy_create_lazy_string_object): Flag bad length values.
15047 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15048 Handle typedefs in incoming type.
15049 (stpy_lazy_string_elt_type): New function.
15050 (gdbpy_extract_lazy_string): Call it.
15051 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15052 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15053 typedefs in incoming type.
15054
15055 2017-03-16 Doug Evans <dje@google.com>
15056
15057 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15058 * guile/scm-type.c (tyscm_scm_to_type): New function.
15059
15060 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15061
15062 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15063 "ULONGEST" for "skip".
15064
15065 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15066
15067 PR gdb/21220
15068 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15069 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15070 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15071 over ptrace peek/poke until end of buffer or error.
15072
15073 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15074
15075 * parse.c (length_of_subexp): Make static.
15076 * parser-defs.h (length_of_subexp): Remove.
15077
15078 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15079
15080 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15081 as well.
15082
15083 2017-03-14 Pedro Alves <palves@redhat.com>
15084
15085 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15086 (main): Use std::unique_ptr. Remove calls to
15087 cp_demangled_name_parse_free.
15088
15089 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15090
15091 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15092 alphabsd_store_inferior_registers): Use regcache->ptid instead
15093 of inferior_ptid.
15094
15095 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15096
15097 * aix-thread.c (aix_thread_fetch_registers,
15098 aix_thread_store_registers): Use regcache->ptid instead of
15099 inferior_ptid.
15100
15101 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15102
15103 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15104 store_gregs_to_thread, fetch_fpregs_from_thread,
15105 store_fpregs_to_thread): Use regcache->ptid instead of
15106 inferior_ptid.
15107
15108 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15109
15110 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15111 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15112 instead of inferior_ptid.
15113
15114 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15115
15116 * target.c (target_fetch_registers, target_store_registers): Add
15117 assert.
15118
15119 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15120
15121 * regcache.h (regcache_get_ptid): New function.
15122 * regcache.c (regcache_get_ptid): New function.
15123
15124 2017-03-13 Mark Wielaard <mark@klomp.org>
15125
15126 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15127
15128 2017-03-10 Keith Seitz <keiths@redhat.com>
15129
15130 PR c++/8218
15131 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15132
15133 2017-03-08 Pedro Alves <palves@redhat.com>
15134
15135 PR gdb/18360
15136 * infrun.c (start_step_over, do_target_resume, resume)
15137 (restart_threads): Assert we're not resuming a thread that is
15138 meant to be stopped.
15139 (infrun_thread_stop_requested_callback): Delete.
15140 (infrun_thread_stop_requested): If the thread is internally
15141 stopped, queue a pending stop event and clear the thread's
15142 inline-frame state.
15143 (handle_stop_requested): New function.
15144 (handle_syscall_event, handle_inferior_event_1): Use
15145 handle_stop_requested.
15146 (handle_stop_requested): New function.
15147 (handle_signal_stop): Set the thread's stop_signal here instead of
15148 at caller.
15149 (finish_step_over): Clear step over info unconditionally.
15150 (handle_signal_stop): If the user had interrupted the event
15151 thread, consider the stop a random signal.
15152 (handle_signal_stop) <signal arrived while stepping over
15153 breakpoint>: Don't restart threads here.
15154 (stop_waiting): Don't clear step-over info here.
15155
15156 2017-03-08 Pedro Alves <palves@redhat.com>
15157
15158 PR 21206
15159 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15160 goes to argument 2, not 1.
15161
15162 2017-03-08 Pedro Alves <palves@redhat.com>
15163
15164 PR cli/21218
15165 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15166 display_gdb_prompt.
15167 (command_line_input): Add comment.
15168
15169 2017-03-08 Pedro Alves <palves@redhat.com>
15170
15171 PR tui/21216
15172 * tui/tui-file.c (tui_file::write): New.
15173 * tui/tui-file.h (tui_file): Override "write".
15174 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15175 factored out from ...
15176 (tui_puts): ... here.
15177 (tui_putc): Use them.
15178 (tui_write): New function.
15179 * tui/tui-io.h (tui_write): Declare.
15180
15181 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15182
15183 * Makefile.in (SFILES): Replace "environ.c" with
15184 "common/environ.c".
15185 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15186 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15187 to...
15188 * common/environ.c: ... here.
15189 * environ.h: Moved to...
15190 * common/environ.h: ... here.
15191
15192 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15193
15194 * gdbarch.sh (pstring_ptr): New static function.
15195 (gdbarch_disassembler_options): Use it.
15196 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15197 not valid_disassembler_option->name.
15198 * gdbarch.c: Regenerate.
15199
15200 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15201
15202 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15203
15204 2017-03-07 Pedro Alves <palves@redhat.com>
15205
15206 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15207
15208 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
15209
15210 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15211 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15212 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
15213 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15214
15215 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15216
15217 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15218
15219 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15220
15221 * remote.c (remote_add_target_side_commands): Use range-based
15222 for loop.
15223
15224 2017-03-03 Yao Qi <yao.qi@linaro.org>
15225
15226 PR gdb/21165
15227 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15228 value is lazy.
15229 * valprint.c (common_val_print): Likewise.
15230
15231 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15232
15233 * NEWS: Mention new set/show disassembler-options commands.
15234 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15235 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15236 (prospective_options): New static variable.
15237 (gdb_disassembler::gdb_disassembler): Initialize
15238 m_di.disassembler_options.
15239 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15240 (get_disassembler_options): New function.
15241 (set_disassembler_options): Likewise.
15242 (set_disassembler_options_sfunc): Likewise.
15243 (show_disassembler_options_sfunc): Likewise.
15244 (disassembler_options_completer): Likewise.
15245 (_initialize_disasm): Likewise.
15246 * disasm.h (get_disassembler_options): New prototype.
15247 (set_disassembler_options): Likewise.
15248 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15249 (gdbarch_verify_disassembler_options): Likewise.
15250 * gdbarch.c: Regenerate.
15251 * gdbarch.h: Likewise.
15252 * arm-tdep.c (num_disassembly_options): Delete.
15253 (set_disassembly_style): Likewise.
15254 (arm_disassembler_options): New static variable.
15255 (set_disassembly_style_sfunc): Convert short style name into long
15256 option name. Call set_disassembler_options.
15257 (show_disassembly_style_sfunc): New function.
15258 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15259 set_gdbarch_verify_disassembler_options.
15260 (_initialize_arm_tdep): Delete regnames variable and update callers.
15261 (arm_disassembler_options): Initialize.
15262 (disasm_options): New variable.
15263 (num_disassembly_options): Rename from this...
15264 (num_disassembly_styles): ...to this. Compute by scanning through
15265 disasm_options.
15266 (valid_disassembly_styles): Initialize using disasm_options.
15267 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15268 set_arm_regname_option.
15269 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15270 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15271 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15272 set_gdbarch_verify_disassembler_options.
15273 * s390-tdep.c (s390_disassembler_options): New static variable.
15274 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15275 set_gdbarch_verify_disassembler_options.
15276
15277 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15278
15279 * remote.c (remote_add_target_side_condition): Remove "struct"
15280 keyword from range-based for loop.
15281
15282 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15283
15284 * remote.c (remote_add_target_side_condition): Use range-based
15285 for loop. Update comment.
15286
15287 2017-02-27 Yao Qi <yao.qi@linaro.org>
15288
15289 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15290
15291 2017-02-26 Alan Hayward <alan.hayward@arm.com>
15292
15293 * regcache.c (regcache_raw_update): New function.
15294 (regcache_raw_read): Move code to regcache_raw_update.
15295 * regcache.h (regcache_raw_update): New declaration.
15296 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
15297
15298 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15299
15300 * dwarf2read.c (create_debug_type_hash_table): Initialize
15301 header.signature and header.type_offset_in_tu.
15302
15303 2017-02-24 Pedro Alves <palves@redhat.com>
15304
15305 * symtab.c (make_file_symbol_completion_list_1): Use
15306 add_symtab_completions.
15307
15308 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15309
15310 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
15311
15312 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15313
15314 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
15315 I386_MAX_REGISTER_SIZE.
15316 (i386_pseudo_register_write): Likewise.
15317 (i386_process_record): Likewise.
15318 * i387-tdep.c (i387_supply_xsave): Likewise.
15319 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
15320 (store_register): Likewise.
15321
15322 2017-02-23 Pedro Alves <palves@redhat.com>
15323
15324 * ada-lang.c: Include "common/function-view.h".
15325 (ada_iterate_over_symbols): Adjust to use function_view as
15326 callback type.
15327 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
15328 (ada_make_symbol_completion_list): Use a lambda.
15329 (ada_exc_search_name_matches): Delete.
15330 (name_matches_regex): New.
15331 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
15332 * compile/compile-c-support.c: Include "common/function-view.h".
15333 (print_one_macro): Change prototype to accept a ui_file pointer.
15334 (write_macro_definitions): Use a lambda.
15335 * dwarf2read.c: Include "common/function-view.h".
15336 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
15337 (dw2_expand_symtabs_matching): Adjust to use function_view as
15338 callback type.
15339 * language.h: Include "common/function-view.h".
15340 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
15341 function_view as callback type.
15342 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
15343 * linespec.c: Include "common/function-view.h".
15344 (collect_info::add_symbol): New method.
15345 (struct symbol_and_data_callback, iterate_inline_only, struct
15346 symbol_matcher_data, iterate_name_matcher): Delete.
15347 (iterate_over_all_matching_symtabs): Adjust to use function_view
15348 as callback type and lambdas.
15349 (iterate_over_file_blocks): Adjust to use function_view as
15350 callback type.
15351 (decode_compound_collector): Now a class with private fields.
15352 (decode_compound_collector::release_symbols): New method.
15353 (collect_one_symbol): Rename to...
15354 (decode_compound_collector::operator()): ... this and adjust.
15355 (lookup_prefix_sym): decode_compound_collector construction bits
15356 move to decode_compound_collector ctor. Pass the
15357 decode_compound_collector object directly as callback. Remove
15358 cleanups and use decode_compound_collector::release_symbols
15359 instead.
15360 (symtab_collector): Now a class with private fields.
15361 (symtab_collector::release_symtabs): New method.
15362 (add_symtabs_to_list): Rename to...
15363 (symtab_collector::operator()): ... this and adjust.
15364 (collect_symtabs_from_filename): symtab_collector construction
15365 bits move to symtab_collector ctor. Pass the symtab_collector
15366 object directly as callback. Remove cleanups and use
15367 symtab_collector::release_symtabs instead.
15368 (collect_symbols): Delete.
15369 (add_matching_symbols_to_info): Use lambdas.
15370 * macrocmd.c (print_macro_callback): Delete.
15371 (info_macro_command): Use a lambda.
15372 (info_macros_command): Pass print_macro_definition as callable
15373 directly.
15374 (print_one_macro): Remove 'ignore' parameter.
15375 (macro_list_command): Adjust.
15376 * macrotab.c (macro_for_each_data::fn): Now a function_view.
15377 (macro_for_each_data::user_data): Delete field.
15378 (foreach_macro): Adjust to call the function_view.
15379 (macro_for_each): Adjust to use function_view as callback type.
15380 (foreach_macro_in_scope): Adjust to call the function_view.
15381 (macro_for_each_in_scope): Adjust to use function_view as callback
15382 type.
15383 * macrotab.h: Include "common/function-view.h".
15384 (macro_callback_fn): Declare a prototype instead of a pointer.
15385 Remove "user_data" parameter.
15386 (macro_for_each, macro_for_each_in_scope): Adjust to use
15387 function_view as callback type.
15388 * psymtab.c (partial_map_expand_apply)
15389 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
15390 Adjust to use function_view as callback type and to return bool.
15391 (psym_expand_symtabs_matching): Adjust to use function_view as
15392 callback types.
15393 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
15394 to use function_view as callback type and to return bool.
15395 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
15396 callback types.
15397 * symfile.c (expand_symtabs_matching): Adjust to use function_view
15398 as callback types.
15399 * symfile.h: Include "common/function-view.h".
15400 (expand_symtabs_file_matcher_ftype)
15401 (expand_symtabs_symbol_matcher_ftype)
15402 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
15403 return bool.
15404 (quick_symbol_functions::map_symtabs_matching_filename)
15405 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
15406 function_view as callback type and return bool.
15407 (expand_symtabs_matching): Adjust to use function_view as callback
15408 type.
15409 (maintenance_expand_name_matcher)
15410 (maintenance_expand_file_matcher): Delete.
15411 (maintenance_expand_symtabs): Use lambdas.
15412 * symtab.c (iterate_over_some_symtabs): Adjust to use
15413 function_view as callback types and return bool.
15414 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
15415 of a cleanup.
15416 (lookup_symtab_callback): Delete.
15417 (lookup_symtab): Use a lambda.
15418 (iterate_over_symbols): Adjust to use function_view as callback
15419 type.
15420 (struct search_symbols_data, search_symbols_file_matches)
15421 (search_symbols_name_matches): Delete.
15422 (search_symbols): Use a pair of lambdas.
15423 (struct add_name_data, add_macro_name, symbol_completion_matcher)
15424 (symtab_expansion_callback): Delete.
15425 (default_make_symbol_completion_list_break_on_1): Use lambdas.
15426 * symtab.h: Include "common/function-view.h".
15427 (iterate_over_some_symtabs): Adjust to use function_view as
15428 callback type and return bool.
15429 (iterate_over_symtabs): Adjust to use function_view as callback
15430 type.
15431 (symbol_found_callback_ftype): Remove 'data' parameter and return
15432 bool.
15433 (iterate_over_symbols): Adjust to use function_view as callback
15434 type.
15435
15436 2017-02-23 Pedro Alves <palves@redhat.com>
15437
15438 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
15439 (%.o) <unittests/%.c>: New pattern.
15440 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
15441 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
15442 * common/function-view.h: New file.
15443 * unittests/function-view-selftests.c: New file.
15444 * configure: Regenerate.
15445
15446 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
15447
15448 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
15449 inferior_ptid.
15450 * go32-nat.c (go32_thread_alive): Likewise.
15451
15452 2017-02-23 Yao Qi <yao.qi@linaro.org>
15453
15454 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
15455 delete.
15456
15457 2017-02-23 Yao Qi <yao.qi@linaro.org>
15458
15459 * varobj.c (varobj_clear_saved_item): Use delete instead of
15460 xfree.
15461 (update_dynamic_varobj_children): Likewise.
15462
15463 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15464
15465 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
15466
15467 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
15468
15469 * common/enum-flags.h (enum_flags::enum_flags): Initialize
15470 m_enum_value to 0 in default constructor.
15471
15472 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15473
15474 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
15475 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
15476 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
15477 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
15478 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
15479 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
15480 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
15481 IS_STORE_CONDITIONAL_INSN.
15482
15483 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15484
15485 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
15486
15487 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15488
15489 * NEWS (Changes since GDB 7.12): Add DWARF-5.
15490
15491 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15492
15493 * dwarf2read.c (skip_one_die, read_attribute_value)
15494 (dwarf2_const_value_attr, dump_die_shallow)
15495 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
15496 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
15497
15498 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15499
15500 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
15501 (dwarf_parse_macro_header): Accept DWARF version 5.
15502 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
15503
15504 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15505
15506 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
15507 DW_AT_GNU_*.
15508 * common/common-exceptions.h (enum errors): Likewise.
15509 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
15510 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
15511 (dwarf_expr_context::execute_stack_op): Likewise.
15512 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
15513 Likewise.
15514 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
15515 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15516 (show_entry_values_debug, call_site_to_target_addr)
15517 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
15518 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
15519 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
15520 (value_of_dwarf_block_entry, indirect_pieced_value)
15521 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
15522 (disassemble_dwarf_expression): Likewise.
15523 * dwarf2read.c (process_die, inherit_abstract_dies)
15524 (read_call_site_scope): Likewise.
15525 * gdbtypes.h (struct func_type, struct call_site_parameter)
15526 (struct call_site): Likewise.
15527 * stack.c (read_frame_arg): Likewise.
15528 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
15529
15530 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15531
15532 * defs.h (read_unsigned_leb128): New declaration.
15533 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
15534 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
15535 (dwarf2_find_location_expression): Call also
15536 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
15537 * dwarf2loc.h (dwarf2_version): New declaration.
15538 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
15539 rnglists.
15540 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
15541 .debug_rnglists.
15542 (struct dwop_section_names): Add loclists_dwo.
15543 (dwop_section_names): Add .debug_loclists.dwo.
15544 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
15545 (struct dwarf2_per_cu_data): Add dwarf_version.
15546 (struct dwo_sections): Add loclists.
15547 (struct attr_abbrev): Add implicit_const.
15548 (read_indirect_line_string): New declaration.
15549 (read_unsigned_leb128): Delete declaration.
15550 (rcuh_kind): New definition.
15551 (read_and_check_comp_unit_head): Change parameter
15552 is_debug_types_section to section_kind.
15553 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
15554 (read_comp_unit_head): Change parameter abfd to section, add parameter
15555 section_kind. Handle DWARF-5.
15556 (error_check_comp_unit_head): Accept also DWARF version 5.
15557 (read_and_check_comp_unit_head): Change parameter
15558 is_debug_types_section to section_kind.
15559 (read_and_check_type_unit_head): Delete function.
15560 (read_abbrev_offset): Handle DWARF-5.
15561 (create_debug_type_hash_table): Add parameter section_kind. Process
15562 only DW_UT_type. Use signature and type_offset_in_tu from struct
15563 comp_unit_head.
15564 (create_debug_types_hash_table): Update create_debug_type_hash_table
15565 caller.
15566 (create_all_type_units): Call create_debug_type_hash_table.
15567 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
15568 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
15569 caller.
15570 (skip_one_die): Handle DW_FORM_implicit_const.
15571 (dwarf2_rnglists_process): New function.
15572 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
15573 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
15574 (read_attribute_value): Handle DW_FORM_implicit_const,
15575 DW_FORM_line_strp.
15576 (read_attribute): Handle DW_FORM_implicit_const.
15577 (read_indirect_string_at_offset_from): New function from
15578 read_indirect_string_at_offset.
15579 (read_indirect_string_at_offset): Call
15580 read_indirect_string_at_offset_from.
15581 (read_indirect_line_string_at_offset): New function.
15582 (read_indirect_string): New function comment.
15583 (read_indirect_line_string): New function.
15584 (read_unsigned_leb128): Make it global.
15585 (dwarf2_string_attr): Handle DWARF-5.
15586 (add_include_dir_stub, read_formatted_entries): New functions.
15587 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
15588 Handle DWARF-5.
15589 (per_cu_header_read_in): Update read_comp_unit_head caller.
15590 (dwarf2_version): New function.
15591 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
15592 rnglists.
15593 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
15594 fields.
15595
15596 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15597
15598 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
15599
15600 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15601
15602 * dwarf2read.c (dwarf2_ranges_process): New function from
15603 dwarf2_ranges_read.
15604 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
15605 dwarf2_ranges_process.
15606
15607 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15608
15609 * dwarf2read.c (create_debug_type_hash_table): New function from
15610 create_debug_types_hash_table.
15611 (create_debug_types_hash_table): Call create_debug_type_hash_table.
15612 (create_all_type_units, open_and_init_dwo_file): Update
15613 create_debug_types_hash_table callers.
15614
15615 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15616
15617 PR gdb/16188
15618 * fork-child.c (trace_start_error): Fix thinko. va_end should
15619 refer to 'ap', not 'args'.
15620
15621 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15622 Pedro Alves <palves@redhat.com>
15623
15624 PR gdb/16188
15625 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
15626 calls succeeded.
15627 * fork-child.c (trace_start_error): New function.
15628 (trace_start_error_with_name): Likewise.
15629 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
15630 * inf-ptrace.c (inf_ptrace_me): Likewise.
15631 * inferior.h (trace_start_error): New prototype.
15632 (trace_start_error_with_name): Likewise.
15633
15634 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
15635
15636 PR gdb/21164
15637 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
15638 NULL before using it.
15639 * symmisc.c (maintenance_print_symbols): Likewise.
15640 (maintenance_print_msymbols): Likewise.
15641
15642 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15643
15644 * NEWS: Add record Python bindings entry.
15645
15646 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15647
15648 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
15649 py-record-full.o.
15650 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
15651 * python/py-record-btrace.c, python/py-record-btrace.h,
15652 python/py-record-full.c, python/py-record-full.h: New file.
15653 * python/py-record.c: Add include for py-record-btrace.h and
15654 py-record-full.h.
15655 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
15656 recpy_instruction_history, recpy_function_call_history, recpy_begin,
15657 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
15658 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
15659 New definition.
15660 (gdbpy_initialize_btrace): New export.
15661 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
15662
15663 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15664
15665 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
15666 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
15667 * python/py-record.c: New file.
15668 * python/python-internal.h (gdbpy_start_recording,
15669 gdbpy_current_recording, gdpy_stop_recording,
15670 gdbpy_initialize_record): New export.
15671 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
15672 (python_GdbMethods): Add gdbpy_start_recording,
15673 gdbpy_current_recording and gdbpy_stop_recording.
15674
15675 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15676
15677 * record-btrace.c (record_btrace_record_method): New function.
15678 (init_record_btrace_ops): Initialize to_record_method.
15679 * record-full.c (record_full_record_method): New function.
15680 (init_record_full_ops, init_record_full_core_ops): Add
15681 record_full_record_method.
15682 * record.h (enum record_method): New enum.
15683 * target-debug.h (target_debug_print_enum_record_method: New define.
15684 * target-delegates.c: Regenerate.
15685 * target.c (target_record_method): New function.
15686 * target.h: Include record.h.
15687 (struct target_ops) <to_record_method>: New field.
15688 (target_record_method): New export.
15689
15690 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15691
15692 * record.h (record_start, record_stop): New export.
15693 * record.c (record_start, record_stop): New function.
15694
15695 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15696
15697 * btrace.c (btrace_fetch): Copy function call segments pointer
15698 into a vector.
15699 (btrace_clear): Clear the vector.
15700 (btrace_find_insn_by_number): Use binary search to find the correct
15701 function call segment.
15702 * btrace.h (brace_fun_p): New typedef.
15703 (struct btrace_thread_info) <functions>: New field.
15704
15705 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15706
15707 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
15708 * btrace.c (btrace_decode_error): ... here. New function.
15709 * btrace.h (btrace_decode_error): New export.
15710
15711 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15712
15713 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
15714 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
15715 btrace_find_insn_by_number): Remove special case for gaps.
15716 * btrace.h (btrace_insn_get_error): New export.
15717 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
15718 * record-btrace.c (btrace_insn_history): Print number for gaps.
15719 (record_btrace_info, record_btrace_goto): Handle gaps.
15720
15721 2017-02-14 Tom Tromey <tom@tromey.com>
15722
15723 PR python/13598:
15724 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
15725 event.
15726 * python/py-evts.c (gdbpy_initialize_py_events): Add
15727 before_prompt registry.
15728 * python/py-events.h (events_object) <before_prompt>: New field.
15729
15730 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
15731
15732 * btrace.c (ftrace_new_switch): Preserve up link and flags.
15733
15734 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
15735
15736 * symfile (_initialize_symfile): Add usage text to the load command's
15737 help text.
15738
15739 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
15740
15741 * utils.c (defaulted_query): Don't query on secondary UIs.
15742
15743 2017-02-10 Tom Tromey <tom@tromey.com>
15744
15745 * rust-lang.c (rust_get_disr_info): Remove unused variable.
15746
15747 2017-02-10 Tom Tromey <tom@tromey.com>
15748
15749 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
15750 "cleanup" local.
15751 * python/py-type.c (typy_legacy_template_argument): Remove
15752 unnecessary "cleanup" local.
15753
15754 2017-02-10 Tom Tromey <tom@tromey.com>
15755
15756 * python/python.c (do_start_initialization): New function, from
15757 _initialize_python.
15758 (_initialize_python): Call do_start_initialization.
15759 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
15760 goto.
15761
15762 2017-02-10 Tom Tromey <tom@tromey.com>
15763
15764 * python/py-prettyprint.c (pretty_print_one_value): Use
15765 gdbpy_ref.
15766
15767 2017-02-10 Tom Tromey <tom@tromey.com>
15768
15769 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
15770 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
15771 gdbpy_ref.
15772 * python/py-type.c (field_new): Use gdbpy_ref.
15773 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
15774 gdbpy_ref.
15775 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
15776 (py_free_pspace): Likewise.
15777 (pspace_to_pspace_object): Likewise.
15778 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
15779 (py_free_objfile): Likewise.
15780 (objfile_to_objfile_object): Likewise.
15781 * python/py-inferior.c (delete_thread_object): Use
15782 gdbpy_ref.
15783 (infpy_read_memory): Likewise.
15784 (py_free_inferior): Likewise.
15785 * python/py-evtregistry.c (create_eventregistry_object): Use
15786 gdbpy_ref.
15787 * python/py-event.c (create_event_object): Use gdbpy_ref.
15788
15789 2017-02-10 Tom Tromey <tom@tromey.com>
15790
15791 * python/py-ref.h (gdbpy_ref_policy): Now a template.
15792 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
15793 used.
15794 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
15795 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
15796 python/py-exitedevent.c, python/py-finishbreakpoint.c,
15797 python/py-framefilter.c, python/py-function.c,
15798 python/py-inferior.c, python/py-infevents.c,
15799 python/py-linetable.c, python/py-newobjfileevent.c,
15800 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
15801 python/py-signalevent.c, python/py-stopevent.c,
15802 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
15803 python/py-unwind.c, python/py-utils.c, python/py-value.c,
15804 python/py-varobj.c, python/py-xmethods.c, python/python.c,
15805 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
15806
15807 2017-02-10 Tom Tromey <tom@tromey.com>
15808
15809 * ui-out.h (ui_out_emit_type): New class.
15810 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
15811 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
15812 and ui_out_emit_tuple.
15813 (enumerate_locals): Likewise.
15814 (py_mi_print_variables, py_print_locals, py_print_args): Use
15815 ui_out_emit_list.
15816 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
15817 ui_out_emit_list.
15818 * common/gdb_optional.h: New file.
15819
15820 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
15821
15822 * MAINTAINERS (Write After Approval): Update my e-mail address.
15823
15824 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
15825
15826 PR gdb/21122
15827 * breakpoint.c (_initialize_breakpoint): Update the help description
15828 of the 'commands' command to indicate that it takes a list argument.
15829
15830 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
15831
15832 * interps.c (current_interp_set_logging): Remove "return".
15833
15834 2017-02-09 Gary Benson <gbenson@redhat.com>
15835
15836 * symtab.c (add_symtab_completions): Prevent NULL pointer
15837 dereference.
15838
15839 2017-02-08 Pedro Alves <palves@redhat.com>
15840
15841 * interps.c (interp::interp): Remove reference to quiet_p.
15842 (interp_set): Make static. Remove dead "Switching to" output
15843 code.
15844 (interp_quiet_p, interp_set_quiet): Delete.
15845 (interpreter_exec_cmd): Don't set the interpreter quiet.
15846 * interps.h (interp_quiet_p): Make static.
15847 (class interp) <quiet_p>: Remove field
15848
15849 2017-02-08 Jerome Guitton <guitton@adacore.com>
15850
15851 * cli/cli-decode.c (find_command_name_length): Make it extern.
15852 * cli/cli-decode.h (find_command_name_length): Declare.
15853 * cli/cli-script.c (command_name_equals, line_first_arg):
15854 New functions.
15855 (process_next_line): Use cli-decode to parse command names.
15856 (build_command_line): Make args a constant pointer.
15857
15858 2017-02-08 Jerome Guitton <guitton@adacore.com>
15859
15860 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
15861 Remove case-insensitive search.
15862
15863 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
15864
15865 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
15866 at the end of the line. Avoids an ARI warning.
15867
15868 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
15869
15870 * NEWS: Mention support for record/replay of Intel 64 rdrand and
15871 rdseed instructions.
15872 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
15873
15874 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
15875
15876 PR tdep/20936
15877 Provide and use sparc32 and sparc64 target description XML files.
15878 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
15879 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
15880 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
15881 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
15882 * features/sparc/sparc32-solaris.xml: New file.
15883 * features/sparc/sparc64-solaris.xml: New file.
15884 * features/sparc/sparc32-solaris.c: Generated.
15885 * features/sparc/sparc64-solaris.c: Generated.
15886 * sparc-tdep.h: Account for differences in target descriptions.
15887 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
15888 (sparc32_register_type): Use target provided registers.
15889 (validate_tdesc_registers): New function.
15890 (sparc32_gdbarch_init): Use tdesc_has_registers.
15891 Set pseudoregister functions.
15892 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
15893 (sparc64_register_type): Use target provided registers.
15894 (sparc64_init_abi): Set pseudoregister functions.
15895
15896 2017-02-03 Tom Tromey <tom@tromey.com>
15897
15898 PR rust/21097:
15899 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
15900 with a single member.
15901
15902 2017-02-03 Pedro Alves <palves@redhat.com>
15903
15904 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
15905 (cli_interp_base::~cli_interp_base): New.
15906 (cli_interp): New struct.
15907 (as_cli_interp): Cast the interp itself to cli_interp.
15908 (cli_interpreter_pre_command_loop): Rename to ...
15909 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
15910 parameter.
15911 (cli_interpreter_init): Rename to ...
15912 (cli_interp::init): ... this. Remove 'self' parameter. Use
15913 boolean. Make extern.
15914 (cli_interpreter_resume): Rename to ...
15915 (cli_interp::resume): ... this. Remove 'data' parameter. Make
15916 extern.
15917 (cli_interpreter_suspend): Rename to ...
15918 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
15919 extern.
15920 (cli_interpreter_exec): Rename to ...
15921 (cli_interp::exec): ... this. Remove 'data' parameter. Make
15922 extern.
15923 (cli_interpreter_supports_command_editing): Rename to ...
15924 (cli_interp_base::supports_command_editing): ... this. Remove
15925 'interp' parameter. Make extern.
15926 (cli_ui_out): Rename to ...
15927 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
15928 Make extern.
15929 (cli_set_logging): Rename to ...
15930 (cli_interp_base::set_logging): ... this. Remove 'interp'
15931 parameter. Make extern.
15932 (cli_interp_procs): Delete.
15933 (cli_interp_factory): Adjust to use "new".
15934 * cli/cli-interp.h: Include "interps.h".
15935 (struct cli_interp_base): New struct.
15936 * interps.c (struct interp): Delete. Fields moved to interps.h.
15937 (interp_new): Delete.
15938 (interp::interp, interp::~interp): New.
15939 (interp_set): Use bool, and return void. Assume the interpreter
15940 has suspend, init and resume methods, and that the all return
15941 void.
15942 (set_top_level_interpreter): interp_set returns void.
15943 (interp_ui_out): Adapt.
15944 (current_interp_set_logging): Adapt.
15945 (interp_data): Delete.
15946 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
15947 (interp_exec): Adapt.
15948 (top_level_interpreter_data): Delete.
15949 * interps.h (interp_init_ftype, interp_resume_ftype)
15950 (interp_suspend_ftype, interp_exec_ftype)
15951 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
15952 (class interp): New.
15953 (interp_new): Delete.
15954 (interp_set): Now returns void. Use bool.
15955 (interp_data, top_level_interpreter_data): Delete.
15956 * mi/mi-common.h: Include interps.h.
15957 (class mi_interp): Inherit from interp. Define a ctor. Declare
15958 init, resume, suspect, exec, interp_ui_out, set_logging and
15959 pre_command_loop methods.
15960 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
15961 (mi_interpreter_init): Rename to ...
15962 (mi_interp::init): ... this. Remove the 'interp' parameter, use
15963 bool, return void and make extern. Adjust.
15964 (mi_interpreter_resume): ... Rename to ...
15965 (mi_interp::resume): ... this. Remove the 'data' parameter,
15966 return void and make extern. Adjust.
15967 (mi_interpreter_suspend): ... Rename to ...
15968 (mi_interp::suspend): ... this. Remove the 'data' parameter,
15969 return void and make extern. Adjust.
15970 (mi_interpreter_exec): ... Rename to ...
15971 (mi_interp::exec): ... this. Remove the 'data' parameter and make
15972 extern. Adjust.
15973 (mi_interpreter_pre_command_loop): ... Rename to ...
15974 (mi_interp::pre_command_loop): ... this. Remove the 'self'
15975 parameter and make extern.
15976 (mi_on_normal_stop_1): Adjust.
15977 (mi_ui_out): Rename to ...
15978 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
15979 parameter and make extern. Adjust.
15980 (mi_set_logging): Rename to ...
15981 (mi_interp::set_logging): ... this. Remove the 'interp'
15982 parameter and make extern. Adjust.
15983 (mi_interp_procs): Delete.
15984 (mi_interp_factory): Adjust to use 'new'.
15985 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
15986 (mi_print_exception, mi_execute_command, mi_load_progress):
15987 Adjust.
15988 * tui/tui-interp.c (tui_interp): New class.
15989 (as_tui_interp): Return a tui_interp pointer.
15990 (tui_on_normal_stop, tui_on_signal_received)
15991 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
15992 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
15993 to use interp::interp_ui_out.
15994 (tui_init): Rename to ...
15995 (tui_interp::init): ... this. Remove the 'self' parameter, use
15996 bool, return void and make extern. Adjust.
15997 (tui_resume): Rename to ...
15998 (tui_interp::resume): ... this. Remove the 'data' parameter,
15999 return void and make extern. Adjust.
16000 (tui_suspend): Rename to ...
16001 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16002 return void and make extern. Adjust.
16003 (tui_ui_out): Rename to ...
16004 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16005 parameter, and make extern. Adjust.
16006 (tui_exec): Rename to ...
16007 (tui_interp::exec): ... this. Remove the 'data' parameter and
16008 make extern.
16009 (tui_interp_procs): Delete.
16010 (tui_interp_factory): Use "new".
16011
16012 2017-02-02 Tom Tromey <tom@tromey.com>
16013
16014 * rust-exp.y (ends_raw_string, space_then_number)
16015 (rust_identifier_start_p): Return bool.
16016 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16017 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16018 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16019 (rust_chartype_p): Return bool.
16020 (val_print_struct, rust_print_struct_def, rust_print_type):
16021 Update.
16022 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16023 Return bool.
16024
16025 2017-02-02 Tom Tromey <tom@tromey.com>
16026
16027 * rust-lang.c: Reindent.
16028
16029 2017-02-02 Tom Tromey <tom@tromey.com>
16030
16031 * rust-lang.h (rust_crate_for_block): Update.
16032 * rust-lang.c (rust_crate_for_block): Return std::string.
16033 (rust_get_disr_info): Use std:;string, not
16034 gdb::unique_xmalloc_ptr.
16035 * rust-exp.y (crate_name): Update.
16036
16037 2017-02-02 Pedro Alves <palves@redhat.com>
16038
16039 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16040 field out of gdb_disassembler_test and make it static.
16041
16042 2017-02-02 Pedro Alves <palves@redhat.com>
16043
16044 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16045 mi1_interp and mi_interp fields.
16046
16047 2017-02-02 Pedro Alves <palves@redhat.com>
16048
16049 * cli/cli-interp.c (struct saved_output_files, saved_output):
16050 Moved from cli/cli-logging.c.
16051 (cli_set_logging): New function.
16052 (cli_interp_procs): Install cli_set_logging.
16053 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16054 Declare.
16055 * cli/cli-logging.c (struct saved_output_files, saved_output):
16056 Moved to cli/cli-interp.c.
16057 (pop_output_files): Don't save outputs here.
16058 (make_logging_output): New function.
16059 (handle_redirections): Don't build tee nor save previous outputs
16060 here.
16061 * interps.c (current_interp_set_logging): Change prototype.
16062 Assume there's always a set_logging_proc method installed.
16063 * interps.h (interp_set_logging_ftype): Change prototype.
16064 (current_interp_set_logging): Change prototype and adjust comment.
16065 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16066 use make_logging_output.
16067 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16068 2017-02-02 Pedro Alves <palves@redhat.com>
16069
16070 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16071 from ...
16072 (set_logging_overwrite): ... here.
16073 (logging_no_redirect_file): Delete.
16074 (set_logging_redirect): Don't handle redirection on the fly.
16075 Instead warn that "logging off" / "logging on" is necessary.
16076 (pop_output_files): Delete references to logging_no_redirect_file.
16077 (show_logging_command): Always speak in terms of what will happen
16078 once logging is reenabled.
16079
16080 2017-02-02 Pedro Alves <palves@redhat.com>
16081
16082 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16083
16084 2017-02-02 Pedro Alves <palves@redhat.com>
16085
16086 * disasm.c (gdb_pretty_print_insn): Rename to ...
16087 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16088 Remove gdbarch parameter. Adapt to clear the object's buffers
16089 instead of allocating new buffers, and to print using the object's
16090 gdb_disassembler instead of calling gdb_print_insn.
16091 (dump_insns): Use gdb_pretty_print_disassembler.
16092 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16093 (gdb_pretty_print_disassembler): New class.
16094 * record-btrace.c (btrace_insn_history): Use
16095 gdb_pretty_print_disassembler.
16096
16097 2017-02-02 Pedro Alves <palves@redhat.com>
16098
16099 * ada-lang.c (type_as_string): Use string_file.
16100 * ada-valprint.c (ada_print_floating): Use string_file.
16101 * ada-varobj.c (ada_varobj_scalar_image)
16102 (ada_varobj_get_value_image): Use string_file.
16103 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16104 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16105 * breakpoint.c (update_inserted_breakpoint_locations)
16106 (insert_breakpoint_locations, reattach_breakpoints)
16107 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16108 (print_it_watchpoint): Use string_file.
16109 (save_breakpoints): Use stdio_file.
16110 * c-exp.y (oper): Use string_file.
16111 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16112 tee_file.
16113 (pop_output_files): Use delete.
16114 (handle_redirections): Use stdio_file and tee_file.
16115 * cli/cli-setshow.c (do_show_command): Use string_file.
16116 * compile/compile-c-support.c (c_compute_program): Use
16117 string_file.
16118 * compile/compile-c-symbols.c (generate_vla_size): Take a
16119 'string_file &' instead of a 'ui_file *'.
16120 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16121 of a 'ui_file *'. Use string_file.
16122 (generate_c_for_variable_locations): Take a 'string_file &'
16123 instead of a 'ui_file *'.
16124 * compile/compile-internal.h (generate_c_for_for_one_variable):
16125 Take a 'string_file &' instead of a 'ui_file *'.
16126 * compile/compile-loc2c.c (push, pushf, unary, binary)
16127 (print_label, pushf_register_address, pushf_register)
16128 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16129 'ui_file *'. Adjust.
16130 * compile/compile.c (compile_to_object): Use string_file.
16131 * compile/compile.h (compile_dwarf_expr_to_c)
16132 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16133 'ui_file *'.
16134 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16135 (replace_typedefs_qualified_name): Use string_file and
16136 obstack_copy0.
16137 * disasm.c (gdb_pretty_print_insn): Use string_file.
16138 (gdb_disassembly): Adjust reference the null_stream global.
16139 (do_ui_file_delete): Delete.
16140 (gdb_insn_length): Use null_stream.
16141 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16142 * dwarf2loc.c (dwarf2_compile_property_to_c)
16143 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16144 'string_file &' instead of a 'ui_file *'.
16145 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16146 * dwarf2read.c (do_ui_file_peek_last): Delete.
16147 (dwarf2_compute_name): Use string_file.
16148 * event-top.c (gdb_setup_readline): Use stdio_file.
16149 * gdbarch.sh (verify_gdbarch): Use string_file.
16150 * gdbtypes.c (safe_parse_type): Use null_stream.
16151 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16152 string_file.
16153 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16154 'string_file *' instead of a 'ui_file *'.
16155 (gdbscm_arch_disassemble): Use string_file.
16156 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16157 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16158 inherits from ui_file.
16159 (ioscm_file_port_delete, ioscm_file_port_rewind)
16160 (ioscm_file_port_put): Delete.
16161 (ioscm_file_port_write): Rename to ...
16162 (ioscm_file_port::write): ... this. Remove file_port_magic
16163 checks.
16164 (ioscm_file_port_new): Delete.
16165 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16166 ui_file_up.
16167 * guile/scm-type.c (tyscm_type_name): Use string_file.
16168 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16169 Use string_file.
16170 * infcmd.c (print_return_value_1): Use string_file.
16171 * infrun.c (print_target_wait_results): Use string_file.
16172 * language.c (add_language): Use string_file.
16173 * location.c (explicit_to_string_internal): Use string_file.
16174 * main.c (captured_main_1): Use null_file.
16175 * maint.c (maintenance_print_architecture): Use stdio_file.
16176 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16177 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16178 event_channel>: Change type to mi_console_file pointer.
16179 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16180 (mi_console_file_delete): Delete.
16181 (struct mi_console_file): Delete.
16182 (mi_console_file_magic): Delete.
16183 (mi_console_file_new): Delete.
16184 (mi_console_file::mi_console_file): New.
16185 (mi_console_file_delete): Delete.
16186 (mi_console_file_fputs): Delete.
16187 (mi_console_file::write): New.
16188 (mi_console_raw_packet): Delete.
16189 (mi_console_file::flush): New.
16190 (mi_console_file_flush): Delete.
16191 (mi_console_set_raw): Rename to ...
16192 (mi_console_file::set_raw): ... this.
16193 * mi/mi-console.h (class mi_console_file): New class.
16194 (mi_console_file_new, mi_console_set_raw): Delete.
16195 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16196 (mi_set_logging): Use delete and tee_file. Adjust.
16197 * mi/mi-main.c (output_register): Use string_file.
16198 (mi_cmd_data_evaluate_expression): Use string_file.
16199 (mi_cmd_data_read_memory): Use string_file.
16200 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16201 * mi/mi-out.c (mi_ui_out::main_stream): New.
16202 (mi_ui_out::rewind): Use main_stream and
16203 string_file.
16204 (mi_ui_out::put): Use main_stream and string_file.
16205 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16206 Allocate a 'string_file' instead.
16207 (mi_out_new): Don't allocate a mem_fileopen stream here.
16208 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16209 (mi_ui_out::main_stream): Declare method.
16210 * printcmd.c (eval_command): Use string_file.
16211 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16212 * python/py-arch.c (archpy_disassemble): Use string_file.
16213 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16214 * python/py-frame.c (frapy_str): Use string_file.
16215 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16216 Use string_file.
16217 * python/py-type.c (typy_str): Use string_file.
16218 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16219 * python/py-value.c (valpy_str): Use string_file.
16220 * record-btrace.c (btrace_insn_history): Use string_file.
16221 * regcache.c (regcache_print): Use stdio_file.
16222 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16223 * remote.c (escape_buffer): Use string_file.
16224 * rust-lang.c (rust_get_disr_info): Use string_file.
16225 * serial.c (serial_open_ops_1): Use stdio_file.
16226 (do_serial_close): Use delete.
16227 * stack.c (print_frame_arg): Use string_file.
16228 (print_frame_args): Remove local mem_fileopen stream, not used.
16229 (print_frame): Use string_file.
16230 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16231 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16232 Take a 'string_file *' instead of a 'ui_file *'.
16233 * top.c (new_ui): Use stdio_file and stderr_file.
16234 (free_ui): Use delete.
16235 (execute_command_to_string): Use string_file.
16236 (quit_confirm): Use string_file.
16237 * tracepoint.c (collection_list::append_exp): Use string_file.
16238 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16239 * tui/tui-file.c: Don't include "ui-file.h".
16240 (enum streamtype, struct tui_stream): Delete.
16241 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16242 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16243 (tui_file::tui_file): New method.
16244 (tui_file_fputs): Delete.
16245 (tui_file_get_strbuf): Delete.
16246 (tui_file::puts): New method.
16247 (tui_file_adjust_strbuf): Delete.
16248 (tui_file_flush): Delete.
16249 (tui_file::flush): New method.
16250 * tui/tui-file.h: Tweak intro comment.
16251 Include ui-file.h.
16252 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16253 (tui_file_adjust_strbuf): Delete declarations.
16254 (class tui_file): New class.
16255 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16256 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16257 (tui_register_format): Use string_stream.
16258 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16259 (tui_get_function_from_frame): Use string_file.
16260 * typeprint.c (type_to_string): Use string_file.
16261 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16262 (null_stream): New global.
16263 (ui_file_delete): Delete.
16264 (ui_file::ui_file): New.
16265 (null_file_isatty): Delete.
16266 (ui_file::~ui_file): New.
16267 (null_file_rewind): Delete.
16268 (ui_file::printf): New.
16269 (null_file_put): Delete.
16270 (null_file_flush): Delete.
16271 (ui_file::putstr): New.
16272 (null_file_write): Delete.
16273 (ui_file::putstrn): New.
16274 (null_file_read): Delete.
16275 (ui_file::putc): New.
16276 (null_file_fputs): Delete.
16277 (null_file_write_async_safe): Delete.
16278 (ui_file::vprintf): New.
16279 (null_file_delete): Delete.
16280 (null_file::write): New.
16281 (null_file_fseek): Delete.
16282 (null_file::puts): New.
16283 (ui_file_data): Delete.
16284 (null_file::write_async_safe): New.
16285 (gdb_flush, ui_file_isatty): Adjust.
16286 (ui_file_put, ui_file_rewind): Delete.
16287 (ui_file_write): Adjust.
16288 (ui_file_write_for_put): Delete.
16289 (ui_file_write_async_safe, ui_file_read): Adjust.
16290 (ui_file_fseek): Delete.
16291 (fputs_unfiltered): Adjust.
16292 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16293 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16294 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16295 (set_ui_file_data): Delete.
16296 (string_file::~string_file, string_file::write)
16297 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
16298 (do_ui_file_as_string, ui_file_as_string): Delete.
16299 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
16300 (struct mem_file): Delete.
16301 (mem_file_new): Delete.
16302 (stdio_file::stdio_file): New.
16303 (mem_file_delete): Delete.
16304 (stdio_file::stdio_file): New.
16305 (mem_fileopen): Delete.
16306 (stdio_file::~stdio_file): New.
16307 (mem_file_rewind): Delete.
16308 (stdio_file::set_stream): New.
16309 (mem_file_put): Delete.
16310 (stdio_file::open): New.
16311 (mem_file_write): Delete.
16312 (stdio_file_magic, struct stdio_file): Delete.
16313 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
16314 (stdio_file::flush): New.
16315 (stdio_file_read): Rename to ...
16316 (stdio_file::read): ... this. Adjust.
16317 (stdio_file_write): Rename to ...
16318 (stdio_file::write): ... this. Adjust.
16319 (stdio_file_write_async_safe): Rename to ...
16320 (stdio_file::write_async_safe) ... this. Adjust.
16321 (stdio_file_fputs): Rename to ...
16322 (stdio_file::puts) ... this. Adjust.
16323 (stdio_file_isatty): Delete.
16324 (stdio_file_fseek): Delete.
16325 (stdio_file::isatty): New.
16326 (stderr_file_write): Rename to ...
16327 (stderr_file::write) ... this. Adjust.
16328 (stderr_file_fputs): Rename to ...
16329 (stderr_file::puts) ... this. Adjust.
16330 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
16331 (stderr_file::stderr_file): New.
16332 (tee_file_magic): Delete.
16333 (struct tee_file): Delete.
16334 (tee_file::tee_file): New.
16335 (tee_file_new): Delete.
16336 (tee_file::~tee_file): New.
16337 (tee_file_delete): Delete.
16338 (tee_file_flush): Rename to ...
16339 (tee_file::flush): ... this. Adjust.
16340 (tee_file_write): Rename to ...
16341 (tee_file::write): ... this. Adjust.
16342 (tee_file::write_async_safe): New.
16343 (tee_file_fputs): Rename to ...
16344 (tee_file::puts): ... this. Adjust.
16345 (tee_file_isatty): Rename to ...
16346 (tee_file::isatty): ... this. Adjust.
16347 * ui-file.h (struct obstack, struct ui_file): Don't
16348 forward-declare.
16349 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
16350 (ui_file_write_ftype)
16351 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
16352 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
16353 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
16354 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
16355 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
16356 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
16357 (set_ui_file_fseek): Delete.
16358 (ui_file_data, ui_file_delete, ui_file_rewind)
16359 (struct ui_file): New.
16360 (ui_file_up): New.
16361 (class null_file): New.
16362 (null_stream): Declare.
16363 (ui_file_write_for_put, ui_file_put): Delete.
16364 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
16365 Delete.
16366 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
16367 (gdb_fopen, tee_file_new): Delete.
16368 (struct string_file): New.
16369 (struct stdio_file): New.
16370 (stdio_file_up): New.
16371 (struct stderr_file): New.
16372 (class tee_file): New.
16373 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
16374 of a 'ui_file *'. Adjust.
16375 * ui-out.h (class ui_out) <field_stream>: Likewise.
16376 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
16377 (null_stream): Delete.
16378 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
16379 Adjust.
16380 * utils.h (struct ui_file): Delete forward declaration..
16381 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
16382 (error_stream): Take a 'string_file &' instead of a
16383 'ui_file *'.
16384 * varobj.c (varobj_value_get_print_value): Use string_file.
16385 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
16386 * gdbarch.c: Regenerate.
16387
16388 2017-02-02 Pedro Alves <palves@redhat.com>
16389
16390 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
16391 (gdb_pretty_print_insn): ... this. Now a free function. Add back
16392 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
16393 Adjust to call gdb_print_insn instead of
16394 gdb_disassembler::print_insn.
16395 (dump_insns, do_mixed_source_and_assembly_deprecated)
16396 (do_mixed_source_and_assembly, do_assembly_only): Add back a
16397 'gdbarch' parameter. Remove gdb_disassembler parameter.
16398 (gdb_disassembly): Don't allocate a gdb_disassembler here.
16399 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
16400 declaration.
16401 (gdb_pretty_print_insn): Re-add declaration.
16402 * record-btrace.c (btrace_insn_history): Don't allocate a
16403 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
16404
16405 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
16406
16407 * disasm.h (gdb_disassembly): Remove file_string parameter.
16408 * disasm.c (gdb_disassembly): Likewise.
16409 * cli/cli-cmds.c (print_disassembly): Adapt.
16410 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
16411 * stack.c (do_gdb_disassembly): Likewise.
16412
16413 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
16414
16415 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
16416 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
16417 targets. And if the implicit value is longer than needed, extract
16418 the first bytes instead of the "least significant" ones.
16419
16420 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16421
16422 * btrace.c (btrace_enable): Do not call btrace_add_pc for
16423 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
16424 (btrace_fetch): Assert can_access_registers_ptid.
16425 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
16426 validate_registers_access.
16427
16428 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16429
16430 * gdbthread.h (can_access_registers_ptid): New.
16431 * thread.c (can_access_registers_ptid): New.
16432
16433 2017-02-01 Pedro Alves <palves@redhat.com>
16434
16435 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
16436
16437 2017-01-31 Pedro Alves <palves@redhat.com>
16438
16439 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
16440 Fix typos.
16441
16442 2017-01-31 Pedro Alves <palves@redhat.com>
16443
16444 * stack.c (print_frame_args): Remove local mem_fileopen stream,
16445 not used.
16446
16447 2017-01-31 Pedro Alves <palves@redhat.com>
16448
16449 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
16450
16451 2017-01-31 Pedro Alves <palves@redhat.com>
16452
16453 * common/scoped_restore.h
16454 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
16455 change the value's parameter type to T2.
16456 (make_scoped_restore): Likewise.
16457
16458 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16459 Richard Henderson <rth@redhat.com>
16460
16461 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
16462 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
16463 GS_BASE for older kernels.
16464 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
16465 GS_BASE for older kernels.
16466 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
16467 and GS_BASE to the offset table.
16468 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
16469 system register group.
16470 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
16471 for older kernels.
16472 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
16473 amd64 ABI.
16474 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
16475 AMD64_GSBASE_REGNUM.
16476 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
16477 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
16478 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
16479 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
16480 i386/64bit-segments.xml in those rules.
16481 * features/i386/64bit-segments.xml: New file.
16482 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
16483 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
16484 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
16485 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
16486 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
16487 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
16488 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
16489 * features/i386/amd64-avx-linux.c: Regenerated.
16490 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
16491 * features/i386/amd64-avx-mpx.c: Regenerated.
16492 * features/i386/amd64-avx512-linux.c: Regenerated.
16493 * features/i386/amd64-linux.c: Regenerated.
16494 * features/i386/amd64-mpx-linux.c: Regenerated.
16495 * features/i386/i386-avx-mpx-linux.c: Regenerated.
16496 * features/i386/i386-avx-mpx.c: Regenerated.
16497 * features/i386/x32-avx-linux.c: Regenerated.
16498 * features/i386/x32-avx512-linux.c: Regenerated.
16499 * regformats/i386/amd64-avx-linux.dat: Regenerated.
16500 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
16501 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
16502 * regformats/i386/amd64-linux.dat: Regenerated.
16503 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
16504 * regformats/i386/x32-avx-linux.dat: Regenerated.
16505 * regformats/i386/x32-avx512-linux.dat: Regenerated.
16506 * regformats/i386/x32-linux.dat: Regenerated.
16507
16508 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16509
16510 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
16511 Set to AMD64_NUM_REGS.
16512
16513 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16514
16515 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
16516 that checks validity of a register number.
16517
16518 2017-01-27 Kees Cook <keescook@google.com>
16519
16520 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
16521 fetch_fpregs if target has fpa registers.
16522 (arm_linux_store_inferior_registers): Call store_fpregs if target
16523 has fpa registers.
16524
16525 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
16526
16527 * cris-tdep.c (cris_gdbarch_init): Remove check for
16528 info.byte_order and force it to BFD_ENDIAN_LITTLE.
16529
16530 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
16531
16532 * corelow.c (get_core_register_section): Check for regset
16533 existence before checking for REGSET_VARIABLE_SIZE.
16534
16535 2017-01-26 Yao Qi <yao.qi@linaro.org>
16536 Pedro Alves <palves@redhat.com>
16537
16538 PR gdb/20939
16539 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
16540 call memory_error, save memaddr instead.
16541 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
16542 negative, cal memory_error.
16543 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
16544
16545 2017-01-26 Yao Qi <yao.qi@linaro.org>
16546
16547 * disasm-selftests.c (memory_error_test): New function.
16548 (_initialize_disasm_selftests): Register memory_error_test.
16549
16550 2017-01-26 Yao Qi <yao.qi@linaro.org>
16551
16552 * Makefile.in (SFILES): Add disasm-selftests.c and
16553 selftest-arch.c.
16554 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
16555 * disasm-selftests.c: New file.
16556 * selftest-arch.c: New file.
16557 * selftest-arch.h: New file.
16558
16559 2017-01-26 Yao Qi <yao.qi@linaro.org>
16560
16561 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
16562 to bfd_arch_mep. Don't return 0 if section is not
16563 found. Call print_insn_mep.
16564
16565 2017-01-26 Pedro Alves <palves@redhat.com>
16566 Yao Qi <yao.qi@linaro.org>
16567
16568 * arm-tdep.c: Include "disasm.h".
16569 (gdb_print_insn_arm): Update code to get gdbarch.
16570 * disasm.c (dis_asm_read_memory): Change it to
16571 gdb_disassembler::dis_asm_read_memory.
16572 (dis_asm_memory_error): Likewise.
16573 (dis_asm_print_address): Likewise.
16574 (gdb_pretty_print_insn): Change it to
16575 gdb_disassembler::pretty_print_insn.
16576 (dump_insns): Add one argument gdb_disassemlber. All
16577 callers updated.
16578 (do_mixed_source_and_assembly_deprecated): Likewise.
16579 (do_mixed_source_and_assembly): Likewise.
16580 (do_assembly_only): Likewise.
16581 (gdb_disassembler::gdb_disassembler): New.
16582 (gdb_disassembler::print_insn): New.
16583 * disasm.h (class gdb_disassembler): New.
16584 (gdb_pretty_print_insn): Remove declaration.
16585 (gdb_disassemble_info): Likewise.
16586 * guile/scm-disasm.c (class gdbscm_disassembler): New.
16587 (gdbscm_disasm_read_memory_worker): Update.
16588 (gdbscm_disasm_read_memory): Update.
16589 (gdbscm_disasm_memory_error): Remove.
16590 (gdbscm_disasm_print_address): Remove.
16591 (gdbscm_disassembler::gdbscm_disassembler): New.
16592 (gdbscm_print_insn_from_port): Update.
16593 * mips-tdep.c: Include disasm.h.
16594 (gdb_print_insn_mips): Update code to get gdbarch.
16595 * record-btrace.c (btrace_insn_history): Update.
16596 * spu-tdep.c: Include disasm.h.
16597 (struct spu_dis_asm_data): Remove.
16598 (struct spu_dis_asm_info): New.
16599 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
16600 SPU id.
16601 (gdb_print_insn_spu): Cast disassemble_info to
16602 spu_dis_asm_info.
16603
16604 2017-01-26 Yao Qi <yao.qi@linaro.org>
16605
16606 * disasm.c (do_ui_file_delete): Delete.
16607 (gdb_insn_length): Move code creating stream to ...
16608 * utils.c (null_stream): ... here. New function.
16609 * utils.h (null_stream): Declare.
16610
16611 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16612
16613 * python/py-inferior.c (find_thread_object): Return directly
16614 from the loop. Remove "found" variable.
16615
16616 2017-01-21 Joel Brobecker <brobecker@adacore.com>
16617
16618 GDB 7.12.1 released.
16619
16620 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16621
16622 * python/py-function.c (fnpy_call): Reorder declarations to have
16623 the gdbpy_enter object declared first.
16624 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
16625
16626 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16627
16628 PR python/21068
16629 * python/python-internal.h (PyMem_RawMalloc): Define for
16630 Python < 3.4.
16631 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
16632 PyMem_RawMalloc instead of PyMem_Malloc.
16633
16634 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
16635 Luis Machado <lgustavo@codesourcery.com>
16636
16637 * NEWS (New commands): Mention flash-erase.
16638 (New MI commands): Mention target-flash-erase.
16639 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
16640 command.
16641 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
16642 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
16643 * target.c (flash_erase_command): New function.
16644 (initialize_targets): Add new flash-erase command.
16645 * target.h (flash_erase_command): New declaration.
16646
16647 2017-01-20 Joel Brobecker <brobecker@adacore.com>
16648
16649 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
16650 HAVE_SYS_PROCFS_H is defined.
16651
16652 2017-01-18 Alan Hayward <alan.hayward@arm.com>
16653
16654 * remote.c (struct cached_reg): Change data into a pointer.
16655 * (stop_reply_dtr): Free data pointers before deleting vector.
16656 (process_stop_reply): Likewise.
16657 (remote_parse_stop_reply): Allocate space for data
16658
16659 2017-01-18 Alan Hayward <alan.hayward@arm.com>
16660
16661 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
16662 MAX_REGISTER_SIZE.
16663 (amd64_pseudo_register_read_value): Likewise.
16664 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
16665 (store_register_using_P): Likewise.
16666 * regcache.c (regcache_xfer_part): Likewise.
16667
16668 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
16669
16670 Split real and pseudo registers.
16671 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
16672 (sparc32_pseudo_regnum): New enum.
16673 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
16674 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
16675 (SPARC32_CP0_REGISTERS): New macro.
16676 (sparc32_pseudo_register_name): New function.
16677 (sparc32_register_name): Use sparc32_pseudo_register_name.
16678 (sparc32_pseudo_register_type): New function.
16679 (sparc32_register_type): Use sparc32_pseudo_register_type.
16680 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
16681 pseudo register numbers.
16682 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
16683 (SPARC64_CP0_REGISTERS): New macro.
16684 (sparc64_pseudo_register_name): New function.
16685 (sparc64_register_name): Use sparc64_pseudo_register_name.
16686 (sparc64_pseudo_register_type): New function.
16687 (sparc64_register_type): Use sparc64_pseudo_register_type.
16688 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
16689 pseudo register numbers.
16690 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
16691 sparc64_store_arguments): Handle pseudo register numbers.
16692
16693 2017-01-13 Yao Qi <yao.qi@linaro.org>
16694
16695 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
16696 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
16697 output.
16698 (getpkt_or_notif_sane_1): Likewise.
16699
16700 2017-01-13 Yao Qi <yao.qi@linaro.org>
16701
16702 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
16703 of CC. Pass "-x c++-header" instead of "-x c".
16704
16705 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16706
16707 * remote.c (remote_can_async_p): Update comment.
16708
16709 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16710
16711 * linux-nat.c (linux_nat_can_async_p): Update comment.
16712
16713 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16714
16715 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
16716
16717 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
16718
16719 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
16720
16721 2017-01-10 Tom Tromey <tom@tromey.com>
16722
16723 * python/py-type.c (typy_legacy_template_argument): Update.
16724 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
16725 ~demangle_parse_info): Declare new members.
16726 (cp_demangled_name_to_comp): Return unique_ptr.
16727 (cp_demangled_name_parse_free)
16728 (make_cleanup_cp_demangled_name_parse_free)
16729 (cp_new_demangle_parse_info): Remove.
16730 * cp-support.c (do_demangled_name_parse_free_cleanup)
16731 (make_cleanup_cp_demangled_name_parse_free): Remove.
16732 (inspect_type, cp_canonicalize_string_full)
16733 (cp_canonicalize_string): Update.
16734 (mangled_name_to_comp): Change return type.
16735 (cp_class_name_from_physname, method_name_from_physname)
16736 (cp_func_name, cp_remove_params): Update.
16737 * cp-name-parser.y (demangle_parse_info): New constructor, from
16738 cp_new_demangle_parse_info.
16739 (~demangle_parse_info): New destructor, from
16740 cp_demangled_name_parse_free.
16741 (cp_merge_demangle_parse_infos): Update.
16742 (cp_demangled_name_to_comp): Change return type.
16743
16744 2017-01-10 Tom Tromey <tom@tromey.com>
16745
16746 * top.c (prevent_dont_repeat): Change return type.
16747 * python/python.c (execute_gdb_command): Use std::string.
16748 Update.
16749 * guile/guile.c (gdbscm_execute_gdb_command): Update.
16750 * command.h (prevent_dont_repeat): Change return type.
16751 * breakpoint.c (bpstat_do_actions_1): Update.
16752
16753 2017-01-10 Tom Tromey <tom@tromey.com>
16754
16755 * value.h (scoped_value_mark::~scoped_value_mark): Call
16756 free_to_mark.
16757 (scoped_value_mark::free_to_mark): New method.
16758 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
16759 scoped_value_mark.
16760
16761 2017-01-10 Tom Tromey <tom@tromey.com>
16762
16763 * python/py-value.c (valpy_dereference, valpy_referenced_value)
16764 (valpy_reference_value, valpy_const_value, valpy_get_address)
16765 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
16766 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
16767 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
16768 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
16769 scoped_value_mark.
16770 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
16771 * value.h (scoped_value_mark): New class.
16772
16773 2017-01-10 Tom Tromey <tom@tromey.com>
16774
16775 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
16776 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
16777 * psymtab.c (discard_psymtabs_upto): Remove.
16778 (make_cleanup_discard_psymtabs): Remove.
16779 (struct psymtab_state): Remove.
16780
16781 2017-01-10 Tom Tromey <tom@tromey.com>
16782
16783 * record-full.c (record_full_save_cleanups): Remove.
16784 (record_full_save): Use gdb::unlinker.
16785 * gcore.c (do_bfd_delete_cleanup): Remove.
16786 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
16787 cleanups.
16788 * dwarf2read.c (unlink_if_set): Remove.
16789 (write_psymtabs_to_index): Use gdb::unlinker.
16790 * common/gdb_unlinker.h: New file.
16791
16792 2017-01-10 Tom Tromey <tom@tromey.com>
16793
16794 * windows-tdep.c (windows_xfer_shared_library): Update.
16795 * windows-nat.c (windows_make_so): Update.
16796 * utils.h (make_cleanup_bfd_unref): Remove.
16797 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
16798 * symfile.h (symfile_bfd_open)
16799 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
16800 * symfile.c (read_symbols, symbol_file_add)
16801 (separate_debug_file_exists): Update.
16802 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
16803 (generic_load, reread_symbols): Update.
16804 * symfile-mem.c (symbol_file_add_from_memory): Update.
16805 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
16806 (spu_symbol_file_add_from_memory): Update.
16807 * solist.h (struct target_so_ops) <bfd_open>: Return
16808 gdb_bfd_ref_ptr.
16809 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
16810 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
16811 gdb_bfd_ref_ptr.
16812 (solib_map_sections, reload_shared_libraries_1): Update.
16813 * solib-svr4.c (enable_break): Update.
16814 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
16815 * solib-frv.c (enable_break2): Update.
16816 * solib-dsbt.c (enable_break): Update.
16817 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
16818 gdb_bfd_ref_ptr.
16819 (darwin_solib_get_all_image_info_addr_at_init): Update.
16820 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
16821 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
16822 * record-full.c (record_full_save): Update.
16823 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
16824 * procfs.c (insert_dbx_link_bpt_in_file): Update.
16825 * minidebug.c (find_separate_debug_file_in_section): Return
16826 gdb_bfd_ref_ptr.
16827 * machoread.c (macho_add_oso_symfile): Change abfd to
16828 gdb_bfd_ref_ptr.
16829 (macho_symfile_read_all_oso): Update.
16830 (macho_check_dsym): Return gdb_bfd_ref_ptr.
16831 (macho_symfile_read): Update.
16832 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
16833 (jit_bfd_try_read_symtab): Update.
16834 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16835 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16836 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16837 gdb_bfd_ref_ptr.
16838 (gdb_bfd_ref_policy): New struct.
16839 (gdb_bfd_ref_ptr): New typedef.
16840 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16841 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16842 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16843 gdb_bfd_ref_ptr.
16844 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16845 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16846 (gcore_command): Update.
16847 * exec.c (exec_file_attach): Update.
16848 * elfread.c (elf_symfile_read): Update.
16849 * dwarf2read.c (dwarf2_get_dwz_file): Update.
16850 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
16851 (open_and_init_dwo_file): Update.
16852 (open_dwp_file): Return gdb_bfd_ref_ptr.
16853 (open_and_init_dwp_file): Update.
16854 * corelow.c (core_open): Update.
16855 * compile/compile-object-load.c (compile_object_load): Update.
16856 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
16857 * coffread.c (coff_symfile_read): Update.
16858 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
16859 gdb_bfd_ref_ptr. Rename.
16860 (dump_bfd_file, restore_command): Update.
16861 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16862 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16863 (find_separate_debug_file_by_buildid): Update.
16864
16865 2017-01-10 Tom Tromey <tom@tromey.com>
16866
16867 * common/gdb_ref_ptr.h: New file.
16868 * python/py-ref.h (struct gdbpy_ref_policy): New.
16869 (gdbpy_ref): Now a typedef.
16870
16871 2017-01-10 Tom Tromey <tom@tromey.com>
16872
16873 * utils.h (make_cleanup_htab_delete): Don't declare.
16874 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
16875 Remove.
16876 * linespec.c (decode_compound_collector): Add constructor,
16877 destructor.
16878 (lookup_prefix_sym): Remove cleanup.
16879 (symtab_collector): Add constructor, destructor.
16880 (collect_symtabs_from_filename): Remove cleanup.
16881 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
16882 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
16883 Use htab_up.
16884 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
16885 * dwarf2read.c (dw2_expand_symtabs_matching)
16886 (dw2_map_symbol_filenames, dwarf_decode_macros)
16887 (write_psymtabs_to_index): Use htab_up.
16888 * dwarf2loc.c (func_verify_no_selftailcall)
16889 (call_site_find_chain_1, func_verify_no_selftailcall)
16890 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
16891 std::vector, gdb::unique_xmalloc_ptr.
16892 (call_sitep): Remove typedef.
16893 (dwarf2_locexpr_baton_eval): Remove unused variable.
16894
16895 2017-01-10 Tom Tromey <tom@tromey.com>
16896
16897 * python/python-internal.h (make_cleanup_py_decref)
16898 (make_cleanup_py_xdecref): Don't declare.
16899 * python/py-utils.c (py_decref, make_cleanup_py_decref)
16900 (py_xdecref, make_cleanup_py_xdecref): Remove.
16901
16902 2017-01-10 Tom Tromey <tom@tromey.com>
16903
16904 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
16905 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
16906
16907 2017-01-10 Tom Tromey <tom@tromey.com>
16908
16909 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
16910
16911 2017-01-10 Tom Tromey <tom@tromey.com>
16912
16913 * python/py-utils.c (unicode_to_encoded_string)
16914 (python_string_to_target_string)
16915 (python_string_to_target_python_string)
16916 (python_string_to_host_string, gdbpy_obj_to_string)
16917 (get_addr_from_python): Use gdbpy_ref.
16918
16919 2017-01-10 Tom Tromey <tom@tromey.com>
16920
16921 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
16922 gdbpy_ref.
16923
16924 2017-01-10 Tom Tromey <tom@tromey.com>
16925
16926 * python/python.c (eval_python_command, gdbpy_decode_line)
16927 (gdbpy_run_events, gdbpy_start_type_printers)
16928 (gdbpy_apply_type_printers): Use gdbpy_ref.
16929
16930 2017-01-10 Tom Tromey <tom@tromey.com>
16931
16932 * python/py-param.c (get_doc_string, compute_enum_values): Use
16933 gdbpy_ref.
16934
16935 2017-01-10 Tom Tromey <tom@tromey.com>
16936
16937 * python/py-inferior.c (find_thread_object, build_inferior_list):
16938 Use gdbpy_ref.
16939
16940 2017-01-10 Tom Tromey <tom@tromey.com>
16941
16942 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16943
16944 2017-01-10 Tom Tromey <tom@tromey.com>
16945
16946 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
16947 gdbpy_ref.
16948
16949 2017-01-10 Tom Tromey <tom@tromey.com>
16950
16951 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
16952 extra incref.
16953 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
16954 Use gdbpy_ref.
16955
16956 2017-01-10 Tom Tromey <tom@tromey.com>
16957
16958 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16959 gdbpy_ref.
16960
16961 2017-01-10 Tom Tromey <tom@tromey.com>
16962
16963 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
16964 decref results of PyArg_ParseTupleAndKeywords.
16965
16966 2017-01-10 Tom Tromey <tom@tromey.com>
16967
16968 * python/python.c (python_run_simple_file): Use
16969 unique_xmalloc_ptr, gdbpy_ref.
16970
16971 2017-01-10 Tom Tromey <tom@tromey.com>
16972
16973 * python/py-prettyprint.c (print_stack_unless_memory_error)
16974 (print_string_repr, print_children): Use gdbpy_ref.
16975 (dummy_python_frame): New class.
16976 (dummy_python_frame::dummy_python_frame): Rename from
16977 push_dummy_python_frame.
16978 (py_restore_tstate): Remove.
16979
16980 2017-01-10 Tom Tromey <tom@tromey.com>
16981
16982 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16983
16984 2017-01-10 Tom Tromey <tom@tromey.com>
16985
16986 * python/python.c (ensure_python_env, restore_python_env):
16987 Remove.
16988 * python/python-internal.h (ensure_python_env): Don't declare.
16989 * varobj.h (varobj_ensure_python_env): Don't declare.
16990 * varobj.c (varobj_ensure_python_env): Remove.
16991
16992 2017-01-10 Tom Tromey <tom@tromey.com>
16993
16994 * varobj.c (varobj_value_get_print_value): Use
16995 gdbpy_enter_varobj.
16996
16997 2017-01-10 Tom Tromey <tom@tromey.com>
16998
16999 * python/py-prettyprint.c (print_string_repr, print_children):
17000 Update.
17001 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17002 of "encoding".
17003 * varobj.c (varobj_value_get_print_value): Update.
17004 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17005
17006 2017-01-10 Tom Tromey <tom@tromey.com>
17007
17008 * varobj.c (varobj_get_display_hint)
17009 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17010 (varobj_set_visualizer, free_variable): Use
17011 gdbpy_enter_varobj.
17012
17013 2017-01-10 Tom Tromey <tom@tromey.com>
17014
17015 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17016 (do_finish_initialization): New function. Use gdbpy_ref.
17017 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17018 do_finish_initialization.
17019
17020 2017-01-10 Tom Tromey <tom@tromey.com>
17021
17022 * python/py-param.c (get_set_value, get_show_value): Use
17023 gdbpy_enter, gdbpy_ref.
17024
17025 2017-01-10 Tom Tromey <tom@tromey.com>
17026
17027 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17028
17029 2017-01-10 Tom Tromey <tom@tromey.com>
17030
17031 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17032
17033 2017-01-10 Tom Tromey <tom@tromey.com>
17034
17035 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17036 Use gdbpy_enter_varobj.
17037
17038 2017-01-10 Tom Tromey <tom@tromey.com>
17039
17040 * varobj.c (gdbpy_enter_varobj): New constructor.
17041 * python/python-internal.h (gdbpy_enter_varobj): New class.
17042 * python/py-varobj.c (py_varobj_get_iterator): Use
17043 gdbpy_enter_varobj.
17044
17045 2017-01-10 Tom Tromey <tom@tromey.com>
17046
17047 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17048 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17049 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17050 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17051 unique_xmalloc_ptr.
17052 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17053
17054 2017-01-10 Tom Tromey <tom@tromey.com>
17055
17056 * python/py-xmethods.c (invoke_match_method): Use
17057 gdbpy_ref.
17058
17059 2017-01-10 Tom Tromey <tom@tromey.com>
17060
17061 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17062 gdbpy_enter, gdbpy_ref.
17063
17064 2017-01-10 Tom Tromey <tom@tromey.com>
17065
17066 * python/python.c (python_interactive_command): Use gdbpy_enter.
17067
17068 2017-01-10 Tom Tromey <tom@tromey.com>
17069
17070 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17071 gdbpy_ref.
17072
17073 2017-01-10 Tom Tromey <tom@tromey.com>
17074
17075 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17076 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17077
17078 2017-01-10 Tom Tromey <tom@tromey.com>
17079
17080 * utils.h (htab_deleter): New struct.
17081 (htab_up): New typedef.
17082 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17083 gdbpy_enter, gdbpy_ref, htab_up.
17084
17085 2017-01-10 Tom Tromey <tom@tromey.com>
17086
17087 * python/py-unwind.c (pending_frame_invalidate): Remove.
17088 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17089
17090 2017-01-10 Tom Tromey <tom@tromey.com>
17091
17092 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17093 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17094
17095 2017-01-10 Tom Tromey <tom@tromey.com>
17096
17097 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17098
17099 2017-01-10 Tom Tromey <tom@tromey.com>
17100
17101 * python/python.c (gdbpy_eval_from_control_command)
17102 (gdbpy_source_script, gdbpy_run_events)
17103 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17104 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17105 gdbpy_enter.
17106
17107 2017-01-10 Tom Tromey <tom@tromey.com>
17108
17109 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17110
17111 2017-01-10 Tom Tromey <tom@tromey.com>
17112
17113 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17114
17115 2017-01-10 Tom Tromey <tom@tromey.com>
17116
17117 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17118 (python_on_inferior_call_pre, python_on_inferior_call_post)
17119 (python_on_memory_change, python_on_register_change)
17120 (python_inferior_exit, python_new_objfile, add_thread_object)
17121 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17122
17123 2017-01-10 Tom Tromey <tom@tromey.com>
17124
17125 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17126 (bpfinishpy_handle_exit): Use gdbpy_enter.
17127
17128 2017-01-10 Tom Tromey <tom@tromey.com>
17129
17130 * python/py-cmd.c (cmdpy_destroyer)
17131 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17132 gdbpy_enter.
17133
17134 2017-01-10 Tom Tromey <tom@tromey.com>
17135
17136 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17137 gdbpy_enter.
17138 (gdbpy_breakpoint_has_cond): Likewise.
17139
17140 2017-01-10 Tom Tromey <tom@tromey.com>
17141
17142 * python/python.c (gdbpy_enter): New constructor.
17143 (~gdbpy_enter): New destructor.
17144 (restore_python_env, ensure_python_env): Rewrite.
17145 * python/python-internal.h (gdbpy_enter): New class.
17146
17147 2017-01-10 Tom Tromey <tom@tromey.com>
17148
17149 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17150
17151 2017-01-10 Tom Tromey <tom@tromey.com>
17152
17153 * python/py-value.c (value_has_field, get_field_flag)
17154 (get_field_type, valpy_getitem, convert_value_from_python): Use
17155 gdbpy_ref.
17156
17157 2017-01-10 Tom Tromey <tom@tromey.com>
17158
17159 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17160 gdbpy_ref.
17161
17162 2017-01-10 Tom Tromey <tom@tromey.com>
17163
17164 * python/py-prettyprint.c (search_pp_list)
17165 (find_pretty_printer_from_objfiles)
17166 (find_pretty_printer_from_progspace)
17167 (find_pretty_printer_from_gdb, find_pretty_printer)
17168 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17169 gdbpy_ref.
17170
17171 2017-01-10 Tom Tromey <tom@tromey.com>
17172
17173 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17174
17175 2017-01-10 Tom Tromey <tom@tromey.com>
17176
17177 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17178 (ltpy_get_all_source_lines): Use gdbpy_ref.
17179
17180 2017-01-10 Tom Tromey <tom@tromey.com>
17181
17182 * python/py-framefilter.c (extract_sym, extract_value)
17183 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17184 gdbpy_ref.
17185
17186 2017-01-10 Tom Tromey <tom@tromey.com>
17187
17188 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17189
17190 2017-01-10 Tom Tromey <tom@tromey.com>
17191
17192 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17193
17194 2017-01-10 Tom Tromey <tom@tromey.com>
17195
17196 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17197 gdbpy_ref.
17198
17199 2017-01-10 Tom Tromey <tom@tromey.com>
17200
17201 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17202
17203 2017-01-10 Tom Tromey <tom@tromey.com>
17204
17205 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17206 (typy_range): Use gdbpy_ref.
17207
17208 2017-01-10 Tom Tromey <tom@tromey.com>
17209
17210 * python/py-threadevent.c (create_thread_event_object): Use
17211 gdbpy_ref.
17212 * python/py-stopevent.c (create_stop_event_object): Simplify.
17213 (emit_stop_event): Use gdbpy_ref.
17214 * python/py-signalevent.c (create_signal_event_object): Use
17215 gdbpy_ref.
17216 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17217 (emit_new_objfile_event, create_clear_objfiles_event_object)
17218 (emit_clear_objfiles_event): Use gdbpy_ref.
17219 * python/py-infevents.c (create_inferior_call_event_object)
17220 (create_register_changed_event_object)
17221 (create_memory_changed_event_object, emit_inferior_call_event)
17222 (emit_memory_changed_event, emit_register_changed_event): Use
17223 gdbpy_ref.
17224 * python/py-exitedevent.c (create_exited_event_object)
17225 (emit_exited_event): Use gdbpy_ref.
17226 * python/py-event.h (evpy_emit_event): Remove
17227 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17228 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17229 * python/py-continueevent.c (emit_continue_event): Use
17230 gdbpy_ref.
17231 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17232 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17233 gdbpy_ref.
17234 * python/py-bpevent.c (create_breakpoint_event_object): Use
17235 gdbpy_ref.
17236
17237 2017-01-10 Tom Tromey <tom@tromey.com>
17238
17239 * python/py-ref.h: New file.
17240
17241 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17242
17243 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17244 void.
17245 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17246 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17247 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17248 * ui-out.c (ui_out::redirect): Likewise.
17249 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17250 * cli/cli-logging.c (set_logging_redirect): Update call site of
17251 ui_out::redirect.
17252 (handle_redirections): Likewise.
17253 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17254 * top.c (execute_command_to_string): Likewise.
17255 * utils.c (do_ui_out_redirect_pop): Likewise.
17256
17257 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17258
17259 * stack.c (_initialize_stack): Update "frame" command help message.
17260
17261 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17262
17263 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17264
17265 2017-01-06 Yao Qi <yao.qi@linaro.org>
17266
17267 * x86-linux-nat.h: Include gdb_proc_service.h.
17268
17269 2017-01-06 Yao Qi <yao.qi@linaro.org>
17270
17271 * ser-base.h: Include serial.h.
17272
17273 2017-01-06 Yao Qi <yao.qi@linaro.org>
17274
17275 * ppc-linux-tdep.h: Include ppc-tdep.h.
17276
17277 2017-01-06 Yao Qi <yao.qi@linaro.org>
17278
17279 * nat/amd64-linux-siginfo.h: Include signal.h.
17280
17281 2017-01-06 Yao Qi <yao.qi@linaro.org>
17282
17283 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17284
17285 2017-01-06 Yao Qi <yao.qi@linaro.org>
17286
17287 * mi/mi-parse.h: Include mi-cmds.h.
17288
17289 2017-01-06 Yao Qi <yao.qi@linaro.org>
17290
17291 * inf-loop.c: Don't include "target.h".
17292 * inf-loop.h: Include it here.
17293
17294 2017-01-06 Yao Qi <yao.qi@linaro.org>
17295
17296 * dfp.h: Include "dboulest.h" and "expression.h".
17297
17298 2017-01-06 Yao Qi <yao.qi@linaro.org>
17299
17300 * ax-gdb.h: Include "ax.h".
17301
17302 2017-01-06 Yao Qi <yao.qi@linaro.org>
17303
17304 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
17305 with nat/gdb_ptrace.h.
17306
17307 2017-01-05 Yao Qi <yao.qi@linaro.org>
17308
17309 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
17310 new line.
17311 (mips64_fbsd_sigframe_init): Likewise.
17312
17313 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17314
17315 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
17316 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
17317
17318 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17319
17320 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
17321 * NEWS: Mention new FreeBSD/mips native configuration.
17322 * config/mips/fbsd.mh: New file.
17323 * configure.host: Add mips*-*-freebsd*.
17324 * mips-fbsd-nat.c: New file.
17325
17326 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17327
17328 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
17329 (ALLDEPFILES): Add mips-fbsd-tdep.c.
17330 * NEWS: Mention new FreeBSD/mips target.
17331 * configure.tgt: Add mips*-*-freebsd*.
17332 * mips-fbsd-tdep.c: New file.
17333 * mips-fbsd-tdep.h: New file.
17334
17335 2017-01-04 Yao Qi <yao.qi@linaro.org>
17336
17337 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
17338 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
17339
17340 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17341
17342 Update copyright year range in all GDB files.
17343
17344 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17345
17346 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
17347
17348 For older changes see ChangeLog-2016.
17349 \f
17350 Local Variables:
17351 mode: change-log
17352 left-margin: 8
17353 fill-column: 74
17354 version-control: never
17355 coding: utf-8
17356 End:
This page took 0.39542 seconds and 4 git commands to generate.