RISC-V: Handle vector type alignment.
[external/binutils.git] / gdb / ChangeLog
1 2018-11-14  Jim Wilson  <jimw@sifive.com>
2
3         * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
4         (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
5         of TYPE_LENGTH and BIGGEST_ALIGNMENT.
6
7         * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
8         setting len.  New local align, set to max of arg align and xlen,
9         and pass to first riscv_assign_stack_location call.
10
11 2018-11-12  Simon Marchi  <simon.marchi@polymtl.ca>
12
13         * skip.c (complete_skip_number): New function.
14         (_initialize_step_skip): Add completers to some skip commands.
15
16 2018-11-09  Tom Tromey  <tom@tromey.com>
17
18         * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
19         (struct remote_g_packet_data): Derive from allocate_on_obstack.
20         <guesses>: Now a std::vector.
21         (remote_g_packet_data_init, register_remote_g_packet_guess):
22         Update.
23         (remote_read_description_p): Update.  Return bool.
24         (remote_target::read_description): Update.
25         (struct remote_g_packet_guess): Add constructor.
26
27 2018-11-09  Tom Tromey  <tom@tromey.com>
28
29         * common/scoped_fd.h (class scoped_fd): Add move constructor and
30         move assignment operator.
31         * psymtab.c (psymtab_to_fullname): Update.
32         * source.h (open_source_file): Return scoped_fd.
33         (find_and_open_source): Likewise.
34         * source.c (open_source_file): Return scoped_fd.
35         (get_filename_and_charpos): Update.
36         (print_source_lines_base): Update.  Use scoped_fd::to_file.
37         (forward_search_command): Likewise.
38         (reverse_search_command): Likewise.
39         (find_and_open_source): Return scoped_fd.
40         * tui/tui-source.c (tui_set_source_content): Update.  Use
41         gdb_file_up.
42
43 2018-11-09  John Baldwin  <jhb@FreeBSD.org>
44
45         * minsyms.c (minimal_symbol_reader::install): Fix unsigned
46         overflow.
47
48 2018-11-09  Hafiz Abid Qadeer  <abidh@codesourcery.com>
49
50         * configure: Regenerate.
51
52 2018-11-09  Tom de Vries  <tdevries@suse.de>
53
54         * symtab.c (symbol_set_names): Call symbol_find_demangled_name
55         unconditionally, to set the language of the symbol.  Manage freeing
56         returned pointer using gdb::unique_xmalloc_ptr.
57
58 2018-11-08  Tom Tromey  <tom@tromey.com>
59
60         * record.c (require_record_target): Upper-case "<TAB>".
61
62 2018-11-08  Tom Tromey  <tom@tromey.com>
63
64         * python/lib/gdb/command/pretty_printers.py
65         (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
66
67 2018-11-08  Tom Tromey  <tom@tromey.com>
68
69         PR gdb/23555:
70         PR gdb/23838:
71         * target.h (target_supports_terminal_ours): Return bool.
72         * target.c (target_supports_terminal_ours): Handle case where
73         current_top_target returns nullptr.  Return bool.
74
75 2018-11-08  Joel Brobecker  <brobecker@adacore.com>
76
77         * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
78         return the correct count for potential HFAs.
79
80 2018-11-08  Jan Beulich  <jbeulich@suse.com>
81
82         * i387-tdep.c (i387_supply_xsave): Split handling of
83         X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
84         (i387_collect_xsave): Likewise.
85
86 2018-11-08  Andrew Burgess  <andrew.burgess@embecosm.com>
87
88         * riscv-tdep.c (riscv_insn::decode): Update header comment.
89         (riscv_frame_this_id): Catch errors thrown while building the
90         frame cache, leave the frame id as the default, which is the outer
91         frame id.
92
93 2018-11-07  Joel Brobecker  <brobecker@adacore.com>
94
95         * ada-lang.c (read_atcb): Only set task_info->called_task if
96         task_info->state == Entry_Caller_Sleep.
97         (print_ada_task_info): Do not check task_info->state before
98         checking task_info->called_task.
99         (info_task): Likewise.
100
101 2018-11-07  Joel Brobecker  <brobecker@adacore.com>
102
103         * ada-tasks.c (read_atcb): Clear task_info before computing
104         the value of each of its fields.
105
106 2018-11-07  Andrew Burgess  <andrew.burgess@embecosm.com>
107
108         * dwarf2read.c (dwarf2_init_integer_type): Check for name being
109         NULL before dereferencing it.
110
111 2018-11-06  Tom de Vries  <tdevries@suse.de>
112
113         * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
114         program headers.
115
116 2018-11-06  Max Filippov  <jcmvbkbc@gmail.com>
117
118         * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
119         so that it applies to uclinux as well.
120
121 2018-11-06  Marius Muench  <marius.muench@eurecom.fr>
122
123         * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
124         when on AAPCS.
125
126 2018-11-06  John Baldwin  <jhb@FreeBSD.org>
127
128         * riscv-fbsd-nat.c (getregs_supplies): Return true for
129         RISCV_CSR_SSTATUS_REGNUM.
130
131 2018-11-04  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
132
133         * source.c (open_source_file): Fix leak by transferring the
134         current s->fullname to the unique_xmalloc_ptr fullname given
135         to find_and_open_source.
136
137 2018-11-04  Tom Tromey  <tom@tromey.com>
138
139         * varobj.c (install_default_visualizer): Update.
140         * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
141         Return gdbpy_ref.
142         * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
143         (find_pretty_printer_from_progspace)
144         (find_pretty_printer_from_gdb, find_pretty_printer)
145         (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
146         (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
147         Update.
148
149 2018-11-04  Tom Tromey  <tom@tromey.com>
150
151         * python/python.c (gdbpy_parameter_value): Update.
152         * python/python-internal.h (python_string_to_unicode)
153         (python_string_to_target_python_string)
154         (host_string_to_python_string): Return gdbpy_ref.
155         * python/py-utils.c (python_string_to_unicode)
156         (unicode_to_encoded_python_string)
157         (unicode_to_target_python_string)
158         (python_string_to_target_string)
159         (python_string_to_target_python_string): Return gdbpy_ref.
160         (python_string_to_host_string): Update.
161         (host_string_to_python_string): Return gdbpy_ref.
162         * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
163         (stpy_fullname): Update.
164         * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
165         Update.
166         * python/py-prettyprint.c (print_string_repr): Update.
167         * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
168         (objfpy_get_build_id): Update.
169         * python/py-breakpoint.c (bppy_get_location)
170         (bppy_get_expression, bppy_get_condition, bppy_get_commands):
171         Update.
172
173 2018-11-04  Tom Tromey  <tom@tromey.com>
174
175         * python/python-internal.h (gdb_py_object_from_longest)
176         (gdb_py_object_from_ulongest): Return gdbpy_ref.
177         * python/py-value.c (valpy_int): Update.
178         * python/py-utils.c (gdb_py_object_from_longest): Return
179         gdbpy_ref.
180         (gdb_py_object_from_ulongest): Likewise.
181         * python/py-type.c (typy_get_alignof): Update.
182         * python/py-linetable.c (ltpy_get_all_source_lines)
183         (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
184         * python/py-block.c (blpy_get_start, blpy_get_end): Update.
185
186 2018-11-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
187
188         * ada-lang.c (_initialize_ada_language): Fix typo.
189
190 2018-11-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
191
192         * language.c (type): Remove.
193         (_initialize_language): Remove assignment to type.
194
195 2018-11-02  Joel Brobecker  <brobecker@adacore.com>
196
197         * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
198         * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
199         (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
200         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
201         (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
202         (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
203         * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
204         and aarch64-ravenscar-thread.o.
205         * NEWS: Add entry documenting Ravenscar tasking support
206         on AArch64 ELF.
207
208 2018-11-02  Matthew Malcomson  <matthew.malcomson@arm.com>
209
210         * symtab.c (info_functions_command): Initialize quiet flag.
211         * stack.c (info_args_command): Likewise.
212
213 2018-11-01  Jim Wilson  <jimw@sifive.com>
214
215         * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
216         Set if pcptr if unaligned.  Return 2 if unaligned_p true.  Update
217         debugging messages.
218
219 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
220
221         * ada-lang.c (ada_watch_location_expression): New function.
222         (ada_language_defn): Set la_watch_location_expression to
223         ada_watch_location_expression.
224
225 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
226
227         * print-utils.c (int_string): Remove unnecessary trailing spaces.
228
229 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
230
231         * rs6000-tdep.c (skip_prologue): Fix potential negative left
232         shifting.
233
234 2018-11-01  Jerome Guitton  <guitton@adacore.com>
235             Joel Brobecker  <brobecker@adacore.com>
236
237         * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
238         * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
239         * arm-pikeos-tdep.c: New file.
240         * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
241         embedded system.
242         * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
243
244 2018-11-01  Simon Marchi  <simon.marchi@ericsson.com>
245
246         * common/pathstuff.c (get_standard_temp_dir): New.
247         * common/pathstuff.h (get_standard_temp_dir): New.
248         * config.in: Re-generate.
249         * configure: Re-generate.
250         * configure.ac: Don't check for mkdtemp.
251         * gnulib/aclocal-m4-deps.mk: Re-generate.
252         * gnulib/aclocal.m4: Re-generate.
253         * gnulib/config.in: Re-generate.
254         * gnulib/configure: Re-generate.
255         * gnulib/import/Makefile.am: Re-generate.
256         * gnulib/import/Makefile.in: Re-generate.
257         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
258         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
259         * gnulib/import/m4/mkdtemp.m4: New file.
260         * gnulib/import/mkdtemp.c: New file.
261         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
262         Add mkdtemp module.
263         * unittests/mkdir-recursive-selftests.c (test): Use
264         get_standard_temp_dir.
265         (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
266         ifdef.
267         * compile/compile.c (get_compile_file_tempdir): Likewise.
268
269 2018-11-01  Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
270
271         * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
272         (SIG_FRAME_LR_OFFSET64): New define.
273         (SIG_FRAME_FP_OFFSET64): New define.
274         (aix_sighandle_frame_cache): New Function.
275         (aix_sighandle_frame_this_id): New Function.
276         (aix_sighandle_frame_prev_register): New Function.
277         (aix_sighandle_frame_sniffer): New Function.
278         (aix_sighandle_frame_unwind): New global variable.
279         (rs6000_aix_init_osabi): Install new frame unwinder.
280
281 2018-10-31  Sergio Durigan Junior  <sergiodj@redhat.com>
282
283         PR gdb/23835
284         * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
285         already defined.
286
287 2018-10-31  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
288
289         * ppc-linux-nat.c: Include nat/linux-ptrace.h.
290
291 2018-10-31  Andrew Burgess  <andrew.burgess@embecosm.com>
292
293         * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
294         (producer_is_icc): New function.
295         (check_producer): Set producer_is_icc field on dwarf2_cu.
296         (dwarf2_init_integer_type): New function.
297         (read_base_type): Call dwarf2_init_integer_type instead of
298         init_integer_type in all cases.
299         (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
300         * valprint.c (maybe_negate_by_bytes): Add an assertion that the
301         LEN is greater than 0.
302
303 2018-10-30  Tom Tromey  <tom@tromey.com>
304
305         * main.c (captured_main_1): Check return value of bfd_init.
306
307 2018-10-29  Sergio Durigan Junior  <sergiodj@redhat.com>
308
309         * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
310         Adjust comments.
311
312 2018-10-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
313
314         * procfs.c: Include common/pathstuff.h.
315
316 2018-10-28  Andrew Burgess  <andrew.burgess@embecosm.com>
317
318         * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
319         Add missing braces.  No functional change.
320
321 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
322
323         * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
324         to report a bad option and fix indentation.
325         * demangle.c (demangle_command): Use report_unrecognized_option_error
326         to report a bad option and correctly report the bad option.
327
328 2018-10-27  Tom Tromey  <tom@tromey.com>
329
330         PR cli/23364:
331         * darwin-nat.c (copied_shell): New global.
332         (may_have_sip): Rename from should_disable_startup_with_shell.
333         (copy_shell_to_cache, maybe_cache_shell): New functions.
334         (darwin_nat_target::create_inferior): Update.  Use
335         copied_shell.
336
337 2018-10-27  Tom Tromey  <tom@tromey.com>
338
339         * unittests/scoped_fd-selftests.c (test_to_file): New function.
340         (run_tests): Call test_to_file.
341         * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
342         temporary files.
343         * common/scoped_fd.h (scoped_fd::to_file): New method.
344
345 2018-10-27  Tom Tromey  <tom@tromey.com>
346
347         * unittests/scoped_mmap-selftests.c (test_normal): Use
348         gdb_mkostemp_cloexec.
349         * unittests/scoped_fd-selftests.c (test_destroy, test_release):
350         Use gdb_mkostemp_cloexec.
351         * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
352         gnulib/config.in, gnulib/configure,
353         gnulib/import/Makefile.am, gnulib/import/Makefile.in,
354         gnulib/import/m4/gnulib-cache.m4,
355         gnulib/import/m4/gnulib-comp.m4: Update.
356         * gnulib/import/m4/mkostemp.m4: New file.
357         * gnulib/import/m4/mkstemp.m4: Remove.
358         * gnulib/import/mkostemp.c: New file.
359         * gnulib/import/mkstemp.m4: Remove.
360         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
361         mkstemp, add mkostemp.  Apply new patch.
362         * gnulib/import/stdlib.in.h: Apply patch.
363         * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
364         New file.
365         * dwarf-index-write.c (write_psymtabs_to_index): Use
366         gdb_mkostemp_cloexec.
367         * common/filestuff.h (gdb_mkostemp_cloexec): New function.
368
369 2018-10-27  Tom Tromey  <tom@tromey.com>
370
371         * unittests/mkdir-recursive-selftests.c: New file.
372         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
373         unittests/mkdir-recursive-selftests.c.
374         * dwarf-index-cache.c (mkdir_recursive): Move to
375         common/filestuff.c.
376         (index_cache::store): Check return value of mkdir_recursive.
377         (create_dir_and_check, test_mkdir_recursive): Move to new file.
378         (_initialize_index_cache): Don't register test.
379         * common/filestuff.h (mkdir_recursive): Declare.
380         * common/filestuff.c (mkdir_recursive): Move from
381         dwarf-index-cache.c.  Return bool.
382
383 2018-10-27  Tom Tromey  <tom@tromey.com>
384
385         * dwarf-index-write.c (write_psymtabs_to_index): Move
386         make_temp_filename to common/pathstuff.c.
387         * common/pathstuff.h (make_temp_filename): Declare.
388         * common/pathstuff.c (make_temp_filename): New function, moved
389         from dwarf-index-write.c.
390
391 2018-10-27  Tom Tromey  <tom@tromey.com>
392
393         * procfs.c (procfs_target::create_inferior): Use get_shell.
394         * cli/cli-cmds.c (shell_escape): Use get_shell.
395         * windows-nat.c (windows_nat_target::create_inferior): Use
396         get_shell.
397         * common/pathstuff.c (get_shell): New function.
398         * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
399         (fork_inferior): Use get_shell.
400         * common/pathstuff.h (get_shell): Declare.
401
402 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
403
404         * NEWS: Mention changes to 'info [args|functions|locals|variables]'
405
406 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
407
408         * stack.c (print_variable_and_value_data): Add preg and treg.
409         (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
410         and update callers.
411         (print_frame_arg_vars): Likewise.
412         (prepare_reg): New function.
413         (info_locals_command): Extract info print args and use them.
414         (info_args_command): Likewise.
415         (_initialize_stack): Modify on-line help.
416         * symtab.c (treg_matches_sym_type_name): New function.
417         (search_symbols): New arg t_regexp.
418         (symtab_symbol_info): New args quiet, regexp, t_regexp.
419         (info_variables_command): Extract info print args and use them.
420         (info_functions_command): Likewise.
421         (info_types_command): Update call to symtab_symbol_info.
422         (_initialize_symtab): Modify on-line help.
423         * symtab.h (treg_matches_sym_type_name): New function.
424         (search_symbols): New t_regexp arg.
425
426 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
427
428         * cli-utils.c (extract_arg_maybe_quoted): New function.
429         (extract_info_print_args): New function.
430         (info_print_args_help): New function.
431         (report_unrecognized_option_error): New function.
432         * cli-utils.h (extract_arg_maybe_quoted): New function.
433         (extract_info_print_args): New function.
434         (info_print_args_help): New function.
435         (report_unrecognized_option_error): New function.
436
437 2018-10-26  Tom Tromey  <tom@tromey.com>
438
439         * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
440         (compute_compunit_symtab_includes): Update.
441         * symtab.h: (symtab_ptr): Remove typedef.  Don't define a VEC.
442         (compunit_symtab_ptr): Likewise.
443
444 2018-10-26  John Baldwin  <jhb@FreeBSD.org>
445
446         * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
447         default_print_auxv_entry for specific tag values.
448
449 2018-10-26  John Baldwin  <jhb@FreeBSD.org>
450
451         * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
452
453 2018-10-26  Jim Wilson  <jimw@sifive.com>
454
455         * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
456         (riscv_linux_sigframe_init): Declare.
457         (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
458         (riscv_linux_sigframe): New.
459         (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
460         (riscv_linux_sigframe_init): Define.
461         (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
462
463         * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
464         (riscv_isa_flen): Likewise.  Drop static.
465         * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
466         (riscv_isa_flen): Likewise.  Declare.
467
468 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
469             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
470
471         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
472         (tdesc_powerpc_isa207_htm_vsx64l): Declare.
473         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
474         (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
475         (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
476         (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
477         (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
478         Define.
479         (struct ppc_linux_features) <htm>: New field.
480         (ppc_linux_no_features): Add initializer for htm field.
481         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
482         new tdescs.
483         * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
484         (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
485         (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
486         Define if not already defined.
487         * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
488         and rs6000/powerpc-isa207-htm-vsx64l.
489         (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
490         rs6000/powerpc-isa207-htm-vsx64l.xml.
491         * features/rs6000/power-htm-spr.xml: New file.
492         * features/rs6000/power-htm-core.xml: New file.
493         * features/rs6000/power64-htm-core.xml: New file.
494         * features/rs6000/power-htm-fpu.xml: New file.
495         * features/rs6000/power-htm-altivec.xml: New file.
496         * features/rs6000/power-htm-vsx.xml: New file.
497         * features/rs6000/power-htm-ppr.xml: New file.
498         * features/rs6000/power-htm-dscr.xml: New file.
499         * features/rs6000/power-htm-tar.xml: New file.
500         * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
501         * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
502         * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
503         * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
504         * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
505         * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
506         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
507         fetch_regset with HTM regsets.
508         (store_register, store_ppc_registers): Call store_regset with HTM
509         regsets.
510         (ppc_linux_nat_target::read_description): Set htm field in the
511         features struct if needed.
512         * ppc-linux-tdep.c: Include
513         features/rs6000/powerpc-isa207-htm-vsx32l.c and
514         features/rs6000/powerpc-isa207-htm-vsx64l.c.
515         (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
516         (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
517         (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
518         (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
519         (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
520         (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
521         (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
522         (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
523         (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
524         (ppc32_linux_ctarregset): New globals.
525         (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
526         (ppc_linux_collect_core_cpgrregset): New function.
527         (ppc_linux_iterate_over_regset_sections): Call back with the htm
528         regsets.
529         (ppc_linux_core_read_description): Check if the tm spr section is
530         present and set htm in the features struct.
531         (_initialize_ppc_linux_tdep): Call
532         initialize_tdesc_powerpc_isa207_htm_vsx32l and
533         initialize_tdesc_powerpc_isa207_htm_vsx64l.
534         * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
535         Declare.
536         (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
537         (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
538         (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
539         * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
540         New fields.
541         <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
542         Likewise.
543         <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
544         <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
545         (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
546         New enum fields.
547         <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
548         <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
549         <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
550         <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
551         <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
552         <PPC_CTAR_REGNUM>: Likewise.
553         (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
554         (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
555         * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
556         (IS_CEFP_PSEUDOREG): Define.
557         (rs6000_register_name): Hide the upper halves of checkpointed VSX
558         registers.  Return names for the checkpointed DFP, VSX, and EFP
559         pseudo registers.
560         (rs6000_pseudo_register_type): Remove initial assert and raise an
561         internal error in the else clause instead.  Return types for the
562         checkpointed DFP, VSX, and EFP pseudo registers.
563         (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
564         checkpointed DFP pseudo registers.
565         (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
566         checkpointed VSX pseudo registers.
567         (efp_pseudo_register_read, efp_pseudo_register_write): Rename
568         from efpr_pseudo_register_read and
569         efpr_pseudo_register_write.  Handle checkpointed EFP pseudo
570         registers.
571         (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
572         Handle checkpointed DFP, VSX, and EFP registers.
573         (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
574         (efp_ax_pseudo_register_collect): New functions.
575         (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
576         register logic to new functions.  Handle checkpointed DFP, VSX,
577         and EFP pseudo registers.
578         (rs6000_gdbarch_init): Look for and validate the htm features.
579         Include checkpointed DFP, VSX and EFP pseudo-registers.
580         * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
581         HTM registers.
582
583 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
584
585         * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
586         without altivec or fpu.
587
588 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
589             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
590
591         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
592         (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
593         * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
594         Define if not already defined.
595         * features/rs6000/power-ebb.xml: New file.
596         * features/rs6000/power-linux-pmu.xml: New file.
597         * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
598         features.
599         * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
600         * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
601         * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
602         * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
603         * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
604         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
605         fetch_regset with ebb and pmu regsets.
606         (store_register, store_ppc_registers): Call store_regset with ebb
607         and pmu regsets.
608         (ppc_linux_nat_target::read_description): Set isa207 field in the
609         features struct if ebb and pmu are avaiable.
610         * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
611         (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
612         (ppc_linux_iterate_over_regset_sections): Call back with the ebb
613         and pmu regsets.
614         (ppc_linux_core_read_description): Check if the pmu section is
615         present and set isa207 in the features struct.
616         * ppc-linux-tdep.h (ppc32_linux_ebbregset)
617         (ppc32_linux_pmuregset): Declare.
618         * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
619         <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
620         <ppc_sier_regnum>: New field.
621         (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
622         New enum values.
623         <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
624         values.
625         <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
626         (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
627         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
628         ebb and pmu features.
629
630 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
631             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
632
633         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
634         (tdesc_powerpc_isa207_vsx64l): Declare.
635         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
636         (struct ppc_linux_features) <isa207>: New field.
637         (ppc_linux_no_features): Add initializer for isa207 field.
638         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
639         new tdescs.
640         * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
641         (NT_PPC_TAR): Define if not already defined.
642         * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
643         rs6000/powerpc-isa207-vsx64l.
644         (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
645         rs6000/powerpc-isa207-vsx64l.xml.
646         * features/rs6000/power-tar.xml: New file.
647         * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
648         * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
649         * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
650         * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
651         * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
652         * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
653         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
654         fetch_regset with the TAR regset.
655         (store_register, store_ppc_registers): Call store_regset with the
656         TAR regset.
657         (ppc_linux_nat_target::read_description): Set isa207 field in the
658         features struct if needed.
659         * ppc-linux-tdep.c: Include
660         features/rs6000/powerpc-isa207-vsx32l.c and
661         features/rs6000/powerpc-isa207-vsx64l.c.
662         (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
663         (ppc_linux_iterate_over_regset_sections): Call back with the tar
664         regset.
665         (ppc_linux_core_read_description): Check if the tar section is
666         present and set isa207 in the features struct.
667         (_initialize_ppc_linux_tdep): Call
668         initialize_tdesc_powerpc_isa207_vsx32l and
669         initialize_tdesc_powerpc_isa207_vsx64l.
670         * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
671         * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
672         (enum) <PPC_TAR_REGNUM>: New enum value.
673         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
674         feature.
675         (ppc_process_record_op31): Record changes to TAR.
676
677 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
678             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
679
680         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
681         (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
682         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
683         (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
684         (struct ppc_linux_features) <ppr_dscr>: New field.
685         (ppc_linux_no_features): Add initializer for ppr_dscr field.
686         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
687         new tdescs.
688         * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
689         Define if not already defined.
690         * features/Makefile (WHICH): Add
691         rs6000/powerpc-isa205-ppr-dscr-vsx32l and
692         rs6000/powerpc-isa205-ppr-dscr-vsx64l.
693         (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
694         rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
695         * features/rs6000/power-dscr.xml: New file.
696         * features/rs6000/power-ppr.xml: New file.
697         * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
698         * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
699         * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
700         * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
701         * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
702         * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
703         * ppc-linux-nat.c: Include <sys/uio.h>.
704         (fetch_regset, store_regset, check_regset): New functions.
705         (fetch_register, fetch_ppc_registers): Call fetch_regset with
706         DSCR and PPR regsets.
707         (store_register, store_ppc_registers): Call store_regset with
708         DSCR and PPR regsets.
709         (ppc_linux_get_hwcap2): New function.
710         (ppc_linux_nat_target::read_description): Call
711         ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
712         features struct if needed.
713         * ppc-linux-tdep.c: Include
714         features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
715         features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
716         (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
717         (ppc32_linux_dscrregset): New globals.
718         (ppc_linux_iterate_over_regset_sections): Call back with the ppr
719         and dscr regsets.
720         (ppc_linux_core_read_description): Check if the ppr and dscr
721         sections are present and set ppr_dscr in the features struct.
722         (_initialize_ppc_linux_tdep): Call
723         initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
724         initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
725         * ppc-linux-tdep.h (ppc32_linux_pprregset)
726         (ppc32_linux_dscrregset): Declare.
727         * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
728         <ppc_dscr_regnum>: New field.
729         (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
730         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
731         and dscr features.
732         (ppc_process_record_op31): Record changes to PPR and DSCR.
733
734 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
735
736         * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
737         second initializer line for the have_* variables.  Initialize
738         have_fpu to 0 instead of 1.
739
740 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
741
742         * arch/ppc-linux-common.c (ppc_linux_match_description):
743         Parenthesize tdesc assignements and indent them properly.
744
745 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
746
747         * ppc-linux-nat.c (fetch_register): Change if statement to else
748         if.
749         (store_register): Likewise.
750
751 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
752
753         * rs6000-tdep.c: Remove reggroups.h include.
754         (rs6000_pseudo_register_reggroup_p): Remove.
755         (rs6000_gdbarch_init): Remove call to
756         set_tdesc_pseudo_register_reggroup_p.
757
758 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
759
760         * reggroups.c (default_register_reggroup_p): Return true for
761         decfloat registers and float_reggroup.
762
763 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
764
765         * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
766         (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
767         ppc_linux_collect_vrregset by regcache_collect_regset.
768
769 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
770
771         * linux-tdep.c (linux_collect_regset_section_cb): Use
772         std::vector<gdb_byte> instead of char * and malloc for buf.
773         Remove xfree.
774
775 2018-10-26  Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
776
777         * xcoffread.c (read_xcoff_symtab): Pass deduced language to
778         symtab_start instead of always using language_unknown.
779
780 2018-10-26  Andrew Burgess  <andrew.burgess@embecosm.com>
781
782         * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
783         READ_P parameter, catch and ignore register access errors from
784         either the old or new MISA location.
785         (riscv_has_feature): Update call to riscv_read_misa_reg.
786
787 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
788
789         * python/py-function.c (convert_values_to_python): Return
790         gdbpy_ref<>.  Add header comment.
791         (fnpy_call): Adjust.
792
793 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
794
795         * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
796         (cmdpy_completer_handle_brkchars): Adjust.
797         (cmdpy_completer): Adjust.
798
799 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
800
801         * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
802         Pass correct regnum to raw_supply_zeroed.
803
804 2018-10-23  Hafiz Abid Qadeer  <abidh@codesourcery.com>
805
806         * regcache.c (cooked_read_test): Add CSKY to the list of
807         architectures with a save_reggroup
808
809 2018-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
810
811         PR gdb/23368
812         * infrun.c (follow_exec): In the follow_exec_mode_new case,
813         transfer terminal state from old new new inferior.
814         * terminal.h (swap_terminal_info): New function.
815         * inflow.c (swap_terminal_info): New function.
816
817 2018-10-23  Tom Tromey  <tom@tromey.com>
818
819         * record-btrace.c (get_thread_current_frame_id): Rename from
820         get_thread_current_frame.  Return a frame_id.
821         (record_btrace_start_replaying): Update.
822
823 2018-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
824
825         * riscv-tdep.c (riscv_register_name): Use the user-friendly names
826         for CSRs.
827
828 2018-10-23  Joel Brobecker  <brobecker@adacore.com>
829
830         * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
831         have_nonsteppable_watchpoint attribute to 1.
832
833 2018-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
834
835         * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
836         register names.
837         (struct register_alias): Rename to...
838         (struct riscv_register_alias): ...this, and update comment.
839         (riscv_register_aliases): Update type, and alias names.  Remove
840         CSR names from this list.
841         (riscv_register_name): Use riscv_gdb_reg_names for int and float
842         register names.  Add an extra assertion.
843         (riscv_is_regnum_a_named_csr): New function.
844         (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
845
846 2018-10-22  Jim Wilson  <jimw@sifive.com>
847
848         * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
849         FP reg smaller than FP reg size, and fill with -1 instead of 0.
850
851         * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
852         (riscv_register_type): Use them.
853         (riscv_print_one_register_info): Handle union of floats same as float.
854         * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
855         riscv_fpreg_q_type fields.
856
857 2018-10-21  Simon Marchi  <simon.marchi@ericsson.com>
858
859         * gdbarch.sh (gdbarch_num_cooked_regs): New.
860         * gdbarch.h: Re-generate.
861         * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
862         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
863         * eval.c (evaluate_subexp_standard): Likewise.
864         * findvar.c (value_of_register): Likewise.
865         (value_of_register_lazy): Likewise.
866         (address_from_register): Likewise.
867         * frame.c (get_frame_register_bytes): Likewise.
868         * gdbarch-selftests.c (register_to_value_test): Likewise.
869         * h8300-tdep.c (h8300_register_type): Likewise.
870         * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
871         (i386_svr4_reg_to_regnum): Likewise.
872         * infcmd.c (default_print_registers_info): Likewise.
873         (registers_info): Likewise.
874         (print_vector_info): Likewise.
875         (default_print_float_info): Likewise.
876         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
877         * mdebugread.c (mdebug_reg_to_regnum): Likewise.
878         * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
879         (mi_cmd_data_list_changed_registers): Likewise.
880         (mi_cmd_data_list_register_values): Likewise.
881         (mi_cmd_data_write_register_values): Likewise.
882         (mi_cmd_trace_frame_collected): Likewise.
883         * mips-tdep.c (print_gp_register_row): Likewise.
884         (mips_print_registers_info): Likewise.
885         * nds32-tdep.c (nds32_gdbarch_init): Likewise.
886         * regcache.c (init_regcache_descr): Likewise.
887         (register_size): Likewise.
888         (register_dump::dump): Likewise.
889         (cooked_read_test): Likewise.
890         (cooked_write_test): Likewise.
891         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
892         (rs6000_gdbarch_init): Likewise.
893         * stabsread.c (stab_reg_to_regnum): Likewise.
894         * stack.c (info_frame_command): Likewise.
895         * target-descriptions.c (tdesc_register_name): Likewise.
896         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
897         * tui/tui-regs.c (tui_show_register_group): Likewise.
898         * user-regs.c (user_reg_map_name_to_regnum): Likewise.
899         (user_reg_map_regnum_to_name): Likewise.
900         (value_of_user_reg): Likewise.
901         (maintenance_print_user_registers): Likewise.
902         * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
903         (xtensa_register_name): Likewise.
904         (xtensa_register_type): Likewise.
905         (xtensa_reg_to_regnum): Likewise.
906         (xtensa_pseudo_register_read): Likewise.
907         (xtensa_pseudo_register_write): Likewise.
908
909 2018-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
910
911         * amd64-tdep.c (amd64_pseudo_register_read_value): Use
912         correctly-sized buffer with raw_read.
913         (amd64_pseudo_register_write): Use correctly-sized buffer for
914         raw_read/raw_write.
915
916 2018-10-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
917
918         * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
919         in add_prefix_cmd of set print type.
920
921 2018-10-19  Tom Tromey  <tom@tromey.com>
922
923         PR tui/18388:
924         * NEWS: Mention tabset deprecation.
925         * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
926         (update_tab_width): New function.
927         (tui_set_tab_width, tui_show_tab_width): New functions.
928         (tui_set_tab_width_command): Use update_tab_width.
929         (_initialize_tui_win): Move to end of file.  Deprecate "tabset".
930         Add new "set tui tab-width" command.
931         * tui/tui-source.c (tui_set_source_content): Update.
932         * tui/tui-disasm.c (tui_set_disassem_content): Update.
933         * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
934         Don't declare.
935         (tui_tab_width): Declare.
936         * tui/tui-data.c (default_tab_len, tui_default_tab_len)
937         (tui_set_default_tab_len): Remove.
938
939 2018-10-19  Tom Tromey  <tom@tromey.com>
940
941         * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
942         (key_is_backspace, tui_getc): Don't declare.
943         * tui/tui-io.c (key_is_start_sequence): Now static.
944         (key_is_end_sequence, key_is_backspace): Remove.
945         (tui_getc): Now static.
946
947 2018-10-19  Tom Tromey  <tom@tromey.com>
948
949         * symfile.c (reread_symbols): Clear "static_links".
950
951 2018-10-19  Alan Hayward  <alan.hayward@arm.com>
952
953         * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
954         define.
955         (aarch64_linux_sigframe_init): Extra boundary checks.
956
957 2018-10-19  Andreas Arnez  <arnez@linux.ibm.com>
958
959         * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
960         the possibly non-existent tdesc type 'vec128', but the type of raw
961         register v16 instead.
962
963 2018-10-19  Gary Benson <gbenson@redhat.com>
964
965         * cli/cli-interp.c (cli_interp::~cli_interp): New function.
966
967 2018-10-18  Sergio Durigan Junior  <sergiodj@redhat.com>
968
969         PR cli/23785
970         * cli/cli-dump.c (restore_binary_file): Check if "file" is
971         NULL.
972
973 2018-10-17  Paul Koning  <paul_koning@dell.com>
974
975         * charset.c (convert_between_encodings): Fix unsigned overflow.
976
977 2018-10-17  John Baldwin  <jhb@FreeBSD.org>
978
979         * fbsd-nat.c (fbsd_nat_target::info_proc) Use
980         fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
981         * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
982         (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
983         New functions.
984         (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
985         and fbsd_info_proc_mappings_header.
986         * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
987         (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
988         New.
989
990 2018-10-17  Joel Brobecker  <brobecker@adacore.com>
991
992         * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
993         Solaris Maintainer.
994
995 2018-10-15  Tom Tromey  <tom@tromey.com>
996
997         * tui/tui.c (strcat_to_buf): Remove casts.
998         * tui/tui-winsource.c (tui_show_source_line)
999         (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
1000         * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
1001         * tui/tui-windata.c (tui_first_data_item_displayed)
1002         (tui_delete_data_content_windows, tui_erase_data_content)
1003         (tui_display_all_data, tui_display_data_from)
1004         (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
1005         * tui/tui-win.c (tui_set_win_height)
1006         (make_invisible_and_set_new_height, parse_scrolling_args): Remove
1007         casts.
1008         * tui/tui-win.c (tui_resize_all): Remove casts.
1009         (tui_scroll_backward_command, tui_set_focus)
1010         (tui_set_tab_width_command): Likewise.
1011         * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
1012         * tui/tui-regs.c (tui_show_register_group): Remove cast.
1013         * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
1014         * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
1015         * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
1016         Remove casts.
1017
1018 2018-10-15  Simon Marchi  <simon.marchi@ericsson.com>
1019
1020         * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
1021         AArch64/ARM maintainer.
1022
1023 2018-10-11  Gary Benson <gbenson@redhat.com>
1024
1025         * interps.h (interp::m_name): Make private and mutable.
1026         * interps.c (interp::~interp): Free m_name.
1027
1028 2018-10-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1029             Simon Marchi <simark@simark.ca>
1030
1031         * README (`configure' options): Add documentation for new
1032         "--enable-unit-tests" option.
1033         * acinclude.m4: Include "selftest.m4".
1034         * configure: Regenerate.
1035         * configure.ac: Use "GDB_AC_SELFTEST".
1036         * maint.c (maintenance_selftest): Update message informing
1037         that selftests have been disabled.
1038         (maintenance_info_selftests): Likewise.
1039         * selftest.m4: New file.
1040
1041 2018-10-10  Gary Benson <gbenson@redhat.com>
1042
1043         * remote.c (remote_target::remote_send_printf): Add
1044         missing va_end found by Coverity.
1045
1046 2018-10-10  Markus Metzger  <markus.t.metzger@intel.com>
1047
1048         * btrace.c (ftrace_update_function): Add indirect jump heuristic.
1049
1050 2018-10-09  Tom Tromey  <tom@tromey.com>
1051
1052         * configure: Rebuild.
1053         * sanitize.m4 (AM_GDB_UBSAN): Default to no.
1054         * NEWS: Update --enable-ubsan documentation.
1055
1056 2018-10-09  Gary Benson <gbenson@redhat.com>
1057
1058         * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
1059         found by Coverity.
1060
1061 2018-10-08  Tom Tromey  <tom@tromey.com>
1062
1063         * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
1064         variable.
1065         (riscv_fbsd_init_abi): Likewise.
1066
1067 2018-10-08  Weimin Pan  <weimin.pan@oracle.com>
1068         * valops.c (value_struct_elt_for_reference): Rename local variable
1069         to work around the shadowing a previous local warning.
1070
1071 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
1072
1073         * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
1074         * NEWS: Mention new FreeBSD/riscv native configuration.
1075         * configure.host: Add riscv*-*-freebsd*.
1076         * configure.nat: Likewise.
1077         * riscv-fbsd-nat.c: New file.
1078
1079 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
1080
1081         * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
1082         (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
1083         (ALLDEPFILES): Add riscv-fbsd-tdep.c.
1084         * NEWS: Mention new FreeBSD/riscv target.
1085         * configure.tgt: Add riscv*-*-freebsd*.
1086         * riscv-fbsd-tdep.c: New file.
1087         * riscv-fbsd-tdep.h: New file.
1088
1089 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
1090
1091         * regcache.h (struct regcache_map_entry): Note that this type can
1092         be used with traditional frame caches.
1093         * trad-frame.c (trad_frame_set_reg_regmap): New.
1094         * trad-frame.h (trad_frame_set_reg_regmap): New.
1095
1096 2018-10-08  Weimin Pan  <weimin.pan@oracle.com>
1097
1098         PR c++/16841
1099         * valops.c (get_virtual_base_offset): New function.
1100         (value_struct_elt_for_reference): Use it to get virtual base offset
1101         and add it in calculating class member address.
1102
1103 2018-10-08   John Darrington <john@darrington.wattle.id.au>
1104
1105     * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
1106       (check_producer): Check if the producer is codewarrior.
1107       (producer_is_codewarrior): New function.
1108       (lnp_state_machine::record_line): Ignore is_stmt flag for records
1109        produced by codewarrior.
1110       (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
1111
1112 2018-10-06  Tom Tromey  <tom@tromey.com>
1113
1114         PR python/19399:
1115         * python/py-inferior.c: Add "architecture" entry.
1116         (infpy_architecture): New function.
1117
1118 2018-10-06  Tom Tromey  <tom@tromey.com>
1119
1120         PR python/21765:
1121         * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
1122         SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
1123         SYMBOL_TYPES_DOMAIN.  Define SYMBOL_MODULE_DOMAIN,
1124         SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
1125
1126 2018-10-06  Tom Tromey  <tom@tromey.com>
1127
1128         PR build/17077:
1129         * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
1130         * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
1131         microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
1132         #include.
1133
1134 2018-10-06  Tom Tromey  <tom@tromey.com>
1135
1136         * python/py-breakpoint.c (bppy_get_location): Handle a
1137         bp_breakpoint without a location.
1138
1139 2018-10-06  Tom Tromey  <tom@tromey.com>
1140
1141         * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
1142         (_RegEx): Reformat help text.
1143         * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
1144         (AnyCallerIs, AnyCallerMatches): Reformat help text.
1145         * python/lib/gdb/function/as_string.py (_AsString): Reformat help
1146         text.
1147         * python/lib/gdb/command/xmethods.py (InfoXMethod)
1148         (EnableXMethod, DisableXMethod): Remove help indentation.
1149         Capitalize meta-syntactic variables.
1150         * python/lib/gdb/command/unwinders.py (InfoUnwinder)
1151         (EnableUnwinder, DisableUnwinder): Remove help indentation.
1152         Capitalize meta-syntactic variables.
1153         * python/lib/gdb/command/explore.py (ExploreCommand)
1154         (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
1155         * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
1156         (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
1157         * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
1158         Remove help indentation.
1159         (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
1160         * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
1161         (DisableFrameFilter, SetFrameFilterPriority)
1162         (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
1163
1164 2018-10-06  Tom Tromey  <tom@tromey.com>
1165
1166         PR tui/28819:
1167         * tui/tui-io.c (gdb_wgetch): New function.
1168         (tui_mld_getc, tui_getc): Use it.
1169
1170 2018-10-05  Tom Tromey  <tom@tromey.com>
1171
1172         * sol-thread.c (sol_thread_target::wait): Rename inner
1173         "save_ptid".
1174
1175 2018-10-04  Tom Tromey  <tom@tromey.com>
1176
1177         * configure: Rebuild.
1178         * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
1179
1180 2018-10-04  Tom Tromey  <tom@tromey.com>
1181
1182         * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
1183         declaration of "block".
1184
1185 2018-10-04  Tom Tromey  <tom@tromey.com>
1186
1187         * common/filestuff.c (fdwalk): Remove inner declaration of
1188         "result".
1189
1190 2018-10-04  Tom Tromey  <tom@tromey.com>
1191
1192         * msp430-tdep.c (msp430_push_dummy_call): Rename inner
1193         "structs_addr" and hoist declaration.
1194
1195 2018-10-04  Tom Tromey  <tom@tromey.com>
1196
1197         * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
1198         variable "size".
1199
1200 2018-10-04  Tom Tromey  <tom@tromey.com>
1201
1202         * mdebugread.c (parse_partial_symbols): Use std::string.
1203
1204 2018-10-04  Tom Tromey  <tom@tromey.com>
1205
1206         * ctf.c (SET_ARRAY_FIELD): Rename "u32".
1207         * p-valprint.c (pascal_val_print): Split inner "i" variable.
1208         * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
1209         header.
1210         * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
1211         more inner scope.
1212         * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
1213         * varobj.c (varobj_update): Rename inner "newobj",
1214         "type_changed".
1215         * valprint.c (generic_emit_char): Rename inner "buf".
1216         * valops.c (find_overload_match): Rename inner "temp".
1217         (value_struct_elt_for_reference): Declare "v" in more inner
1218         scope.
1219         * v850-tdep.c (v850_push_dummy_call): Rename "len".
1220         * unittests/array-view-selftests.c (run_tests): Rename inner
1221         "vec".
1222         * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
1223         header.
1224         * tracepoint.c (merge_uploaded_trace_state_variables): Declare
1225         "tsv" in more inner scope.
1226         (print_one_static_tracepoint_marker): Rename inner
1227         "tuple_emitter".
1228         * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
1229         (tic6x_push_dummy_call): Don't redeclare "addr".
1230         * target-float.c: Declare "dto" lower.
1231         * symtab.c (lookup_local_symbol): Rename inner "sym".
1232         (find_pc_sect_line): Rename inner "pc".
1233         * stack.c (print_frame): Don't redeclare "gdbarch".
1234         (return_command): Rename inner "gdbarch".
1235         * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
1236         "sp".
1237         * rust-lang.c (rust_internal_print_type): Declare "i" in loop
1238         header.
1239         * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
1240         * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
1241         scope.
1242         * remote.c (remote_target::update_thread_list): Don't redeclare
1243         "tp".
1244         (remote_target::process_initial_stop_replies): Rename inner
1245         "thread".
1246         (remote_target::remote_parse_stop_reply): Don't redeclare "p".
1247         (remote_target::wait_as): Don't redeclare "stop_reply".
1248         (remote_target::get_thread_local_address): Rename inner
1249         "result".
1250         (remote_target::get_tib_address): Likewise.
1251
1252         * regcache.c (cooked_read_test): Rename "regnum".
1253         * record-btrace.c (cmd_record_btrace_start): Rename inner
1254         "exception".
1255         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
1256         loop header.
1257         * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
1258         header.
1259         (ppu2spu_sniffer): Rename inner "buf".
1260         * parse.c (operator_check_standard): Rename inner "type",
1261         "objfile".
1262         * p-valprint.c (pascal_val_print): Introduce new scope for
1263         "low_bound", "high_bound".
1264         * p-exp.y (yylex): Declare "i" in loop header.
1265         * objfiles.c (objfile_relocate1): Declare "i" in loop header.
1266         Lower declaration of "s".
1267         * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
1268         header.
1269         (nios2_push_dummy_call): Rename "len".
1270         * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
1271         "buf".
1272         (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
1273         (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
1274         (linux_xfer_osdata_modules): Likewise.
1275         * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
1276         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1277         (mips_o64_push_dummy_call): Likewise.
1278         * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
1279         "op".
1280         * mi/mi-main.c (list_available_thread_groups): Rename inner
1281         "tuple_emitter".
1282         (mi_cmd_data_read_memory): Rename inner "opts".
1283         * mi/mi-cmd-var.c (varobj_update_one): Rename inner
1284         "tuple_emitter".
1285         * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
1286         * mdebugread.c (parse_symbol): Rename inner "b".  Declare "f" in
1287         more inner scope.
1288         (parse_partial_symbols): Rename inner "pst", "p", "name"
1289         * main.c (captured_main_1): Rename inner "i"s.
1290         * machoread.c (macho_symfile_read_all_oso): Don't redeclare
1291         "oso2".
1292         * linux-tdep.c (linux_info_proc): Rename inner "filename".
1293         * linespec.c (linespec_lexer_lex_string): Rename inner "p".
1294         * infrun.c (handle_no_resumed): Don't redeclare "thread".
1295         (handle_signal_stop): Rename inner "gdbarch".
1296         (handle_command): Declare "signum" in loop header.
1297         * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
1298         "status".
1299         (examine_prologue): Rename inner "sol" and "sof".
1300         (ia64_extract_return_value): Rename inner "val".  Declare another
1301         "val" in a more inner scope.
1302         * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
1303         inner scope.
1304         * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
1305         "except".
1306         * findvar.c (default_read_var_value): Don't redeclare "addr".
1307         * f-exp.y (yylex): Declare "i" in loop header.
1308         * eval.c (evaluate_subexp_standard): Don't redeclare "type".
1309         Rename inner "type", "expect_type".
1310         (evaluate_subexp_for_sizeof): Rename inner "pc".
1311         * elfread.c (elf_symfile_read): Rename inner "abfd".
1312         * dwarf2read.c (read_debug_names_from_section): Don't redeclare
1313         "bytes_read".
1314         (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
1315         (add_partial_subprogram): Rename inner "lowpc" and "highpc".
1316         (dwarf_decode_line_header): Rename inner "lh".
1317         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
1318         "offset".  Declare "i" in loop header.
1319         (disassemble_dwarf_expression): Rename inner "addr_size".
1320         * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
1321         inner "result".
1322         (dwarf_expr_context::execute_stack_op): Rename inner "offset".
1323         * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
1324         * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
1325         "inner_list_emitter".
1326         (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
1327         * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
1328         declaration in a block.
1329         * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
1330         * cp-valprint.c (cp_print_value_fields): Don't redeclare
1331         "obstack_final_size".
1332         * cp-support.c (inspect_type): Declare "i" in loop header.
1333         * compile/compile.c (compile_instance::insert_symbol_error):
1334         Rename inner "e".
1335         * common/agent.c (agent_run_command): Remove inner "ret"
1336         declaration.
1337         * coffread.c (coff_symfile_read): Rename inner "name".
1338         (coff_symfile_read): Rename inner "abfd".
1339         * cli/cli-utils.c (get_number_trailer): Rename inner "val".
1340         * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
1341         "high".
1342         * c-exp.y (lex_one_token): Move "len" declaration lower.
1343         * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
1344         "gdbarch".
1345         (create_exception_master_breakpoint): Likewise.  Don't redeclare
1346         "b".
1347         (watch_command_1): Declare "mark" later.
1348         (clear_command): Don't shadow "a" or "b".
1349         (delete_command): Rename inner "b".
1350         (delete_trace_command): Likewise.
1351         * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
1352         "op".
1353         (arm_gdbarch_init): Remove inner "e_flags".
1354         * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
1355         "offset" in inner blocks.
1356
1357 2018-10-04  Simon Marchi  <simon.marchi@ericsson.com>
1358
1359         * dwarf-index-write.c (file_write): Don't write if the vector is
1360         empty.
1361
1362 2018-10-05  Tom de Vries  <tdevries@suse.de>
1363
1364         * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
1365         PyArg_ParseTuple call.
1366
1367 2018-10-05  Tom de Vries  <tdevries@suse.de>
1368
1369         * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
1370         PyArg_ParseTuple call.
1371
1372 2018-10-04  Joel Brobecker  <brobecker@adacore.com>
1373
1374         * psymtab.c (recursively_search_psymtabs): Reformat parameters
1375         to avoid exceeding 80 characters per line limit.
1376
1377 2018-10-04  Tom Tromey  <tom@tromey.com>
1378
1379         * symfile.c (syms_from_objfile_1, finish_new_objfile)
1380         (reread_symbols): Update.
1381         * complaints.h (clear_complaints): Remove argument.
1382         * complaints.c (enum complaint_series): Remove.
1383         (series): Remove global.
1384         (complaint_internal): Update.
1385         (clear_complaints): Remove argument.
1386
1387 2018-10-04  Tom Tromey  <tom@tromey.com>
1388
1389         * symfile.c (symbol_file_add_with_addrs): Do not print "no
1390         debugging symbols" message if there is a separate debug objfile.
1391
1392 2018-10-04  Tom Tromey  <tom@tromey.com>
1393
1394         PR cli/19551:
1395         * symfile.c (symbol_file_add_with_addrs): Update output.
1396         * psymtab.c (require_partial_symbols): Update output.
1397
1398 2018-10-04  Tom Tromey  <tom@tromey.com>
1399
1400         PR cli/22234:
1401         * complaints.c: Emit \n.
1402
1403 2018-10-04  Tom Tromey  <tom@tromey.com>
1404
1405         * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
1406         (separate_debug_file_exists, find_separate_debug_file)
1407         (add_symbol_file_command, reread_symbols, allocate_symtab)
1408         (allocate_compunit_symtab): Use filtered printing, not
1409         unfiltered.
1410         * psymtab.c (require_partial_symbols, dump_psymtab)
1411         (allocate_psymtab): Use filtered printing, not unfiltered.
1412
1413 2018-10-04  Tom Tromey  <tom@tromey.com>
1414
1415         * complaints.c (complaint_internal): Correctly check complaint
1416         count.
1417
1418 2018-10-04  Tom Tromey  <tom@tromey.com>
1419
1420         * complaints.h (struct complaints): Remove declaration.
1421         * complaints.c (clear_complaints): Remove an unused variable.
1422
1423 2018-10-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1424
1425         * MAINTAINERS (Write After Approval): Add self.
1426
1427 2018-10-03  Tom Tromey  <tom@tromey.com>
1428
1429         * guile/scm-value.c (gdbscm_value_to_string): Initialize
1430         "buffer_contents".
1431         * coffread.c (coff_symtab_read): Initialize "newobj".
1432
1433 2018-10-03  Simon Marchi  <simon.marchi@polymtl.ca>
1434
1435         * dwarf2read.c (read_func_scope): Remove struct keyword in
1436         range-based for.
1437
1438 2018-10-03  Tom Tromey  <tom@tromey.com>
1439
1440         * README: Mention --enable-ubsan.
1441         * NEWS: Mention --enable-ubsan.
1442         * acinclude.m4: Include sanitize.m4.
1443         * configure: Rebuild.
1444         * configure.ac: Call AM_GDB_UBSAN.
1445         * sanitize.m4: New file.
1446
1447 2018-10-03  Tom Tromey  <tom@tromey.com>
1448
1449         * expression.h (enum exp_opcode): Use uint8_t as base type.
1450         * expprint.c (op_name): Handle invalid opcodes.
1451
1452 2018-10-03  Tom Tromey  <tom@tromey.com>
1453
1454         * parse.c (prefixify_expression): Add assert.
1455         (parse_exp_in_context_1): Throw exception if the expression is
1456         empty.
1457
1458 2018-10-03  Tom Tromey  <tom@tromey.com>
1459
1460         * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
1461
1462 2018-10-03  Tom Tromey  <tom@tromey.com>
1463
1464         * c-exp.y (parse_number): Work in unsigned.  Remove casts.
1465
1466 2018-10-03  Tom Tromey  <tom@tromey.com>
1467
1468         * dwarf2read.c (read_subrange_type): Make "negative_mask"
1469         unsigned.
1470
1471 2018-10-03  Tom Tromey  <tom@tromey.com>
1472
1473         * findvar.c (extract_integer): Do work in an unsigned type.
1474
1475 2018-10-03  Tom Tromey  <tom@tromey.com>
1476
1477         * common/enum-flags.h (enum_flags::operator~): Add static assert.
1478         * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
1479         base type.
1480         * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
1481         * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
1482         type.
1483         * c-lang.h (enum c_string_type_values): Use unsigned as base
1484         type.
1485         * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
1486
1487 2018-10-03  Tom Tromey  <tom@tromey.com>
1488
1489         * dwarf2-frame.h (dwarf2_frame_state_reg_info)
1490         <~dwarf2_frame_state_reg_info>: Update.
1491         <dwarf2_frame_state_reg_info>: Update.
1492         <alloc_regs>: Add assertion.  Update.
1493         <reg>: Now a std::vector.
1494         <num_regs>: Remove.
1495         <swap>: Update.
1496         * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
1497         (execute_cfa_program_test, dwarf2_frame_cache): Update.
1498
1499 2018-10-03  Tom Tromey  <tom@tromey.com>
1500
1501         * namespace.c (add_using_directive): Don't pass NULL to memcpy.
1502
1503 2018-10-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1504
1505         * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
1506
1507 2018-10-02  Tom Tromey  <tom@tromey.com>
1508
1509         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
1510
1511 2018-10-02  John Darrington <john@darrington.wattle.id.au>
1512
1513         * NEWS: Mention changed commands.
1514         * ser-uds.c: New file.
1515         * configure.ac (SER_HARDWIRE): Add ser-uds.o.
1516         * configure: Regenerate.
1517         * Makefile.in: Add new file.
1518         * serial.c (serial_open): Check if filename is a socket
1519           and lookup the appropriate interface accordingly.
1520
1521 2018-10-01  Alan Hayward  <alan.hayward@arm.com>
1522
1523         * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
1524         define.
1525         (AARCH64_EXTRA_MAGIC): Likewise.
1526         (AARCH64_FPSIMD_MAGIC): Likewise.
1527         (AARCH64_SVE_MAGIC): Likewise.
1528         (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
1529         (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
1530         (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
1531         (AARCH64_FPSIMD_V0_OFFSET): Likewise.
1532         (AARCH64_FPSIMD_VREG_SIZE): Likewise.
1533         (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
1534         (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
1535         (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
1536         (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
1537         (AARCH64_SVE_CONTEXT_SIZE): Likewise.
1538         (read_aarch64_ctx): Add function.
1539         (aarch64_linux_sigframe_init): Detect FP registers.
1540
1541 2018-10-01  Alan Hayward  <alan.hayward@arm.com>
1542
1543         * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
1544         (AARCH64_D0_REGNUM): Likewise.
1545         (AARCH64_S0_REGNUM): Likewise.
1546         (AARCH64_H0_REGNUM): Likewise.
1547         (AARCH64_B0_REGNUM): Likewise.
1548         (AARCH64_SVE_V0_REGNUM): Likewise.
1549         * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
1550         (AARCH64_D0_REGNUM): Likewise.
1551         (AARCH64_S0_REGNUM): Likewise.
1552         (AARCH64_H0_REGNUM): Likewise.
1553         (AARCH64_B0_REGNUM): Likewise.
1554         (AARCH64_SVE_V0_REGNUM): Likewise.
1555
1556 2018-10-01  Gary Benson <gbenson@redhat.com>
1557
1558         * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
1559         * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
1560         prfpregset_t instead of gdb_prfpregset_t.
1561         * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
1562         * configure, config.in: Rebuild.
1563
1564 2018-10-01  Gary Benson <gbenson@redhat.com>
1565
1566         * common/gdb_proc_service.h: New file, factored out from...
1567         * gdb_proc_service.h: Moved common code to the above file.
1568         * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
1569
1570 2018-10-01  Gary Benson <gbenson@redhat.com>
1571
1572         * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
1573         undefined.  Use elf_fpregset_t if prfpregset_t is undefined.
1574
1575 2018-10-01  Gary Benson <gbenson@redhat.com>
1576
1577         * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
1578         (AC_CHECK_HEADERS): Check for linux/elf.h.
1579         * configure, config.in: Rebuild.
1580         * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
1581         doesn't define elf_fpregset_t.
1582
1583 2018-10-01  Gary Benson <gbenson@redhat.com>
1584
1585         * gdb_proc_service.h: Whitespace change.
1586
1587 2018-10-01  Tom Tromey  <tom@tromey.com>
1588
1589         * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
1590         * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
1591         * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
1592
1593 2018-10-01  Tom Tromey  <tom@tromey.com>
1594
1595         * README: Minor change.
1596
1597 2018-09-30  Pedro Alves  <palves@redhat.com>
1598
1599         * darwin-nat-info.c (darwin_debug_regions_recurse)
1600         (info_mach_exceptions_command): Remove unused local variables.
1601         * darwin-nat.c (darwin_decode_notify_message)
1602         (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
1603         (darwin_stop_inferior, darwin_setup_exceptions)
1604         (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
1605         (darwin_nat_target::attach, darwin_nat_target::detach)
1606         (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
1607         local variables.
1608         * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
1609         variables.
1610
1611 2018-09-29  Tom Tromey  <tom@tromey.com>
1612
1613         * README: Remove some leftover text.
1614
1615 2018-09-29  Tom Tromey  <tom@tromey.com>
1616
1617         * PROBLEMS: Rewrite.
1618         * README: Update.
1619
1620 2018-09-28  John Baldwin  <jhb@FreeBSD.org>
1621
1622         * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
1623         case with explicit breakpoint kind.
1624         * riscv-tdep.c (show_use_compressed_breakpoints): Remove
1625         'additional_info' and related logic.
1626         (riscv_debug_breakpoints): New variable.
1627         (riscv_breakpoint_kind_from_pc): Use the length of the existing
1628         instruction to determine the breakpoint kind.
1629         (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
1630         flag.  Update description of 'set/show riscv
1631         use-compressed-breakpoints' flag.
1632
1633 2018-09-28  Andrew Burgess  <andrew.burgess@embecosm.com>
1634
1635         (NEWS): Mention changes to frame related commands.
1636         * cli/cli-decode.c (add_cmd_suppress_notification): New function.
1637         (add_prefix_cmd_suppress_notification): New function.
1638         (add_com_suppress_notification): Call
1639         add_cmd_suppress_notification.
1640         * command.h (add_cmd_suppress_notification): Declare.
1641         (add_prefix_cmd_suppress_notification): Declare.
1642         * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
1643         (parse_frame_specification): Moved from stack.c, with
1644         simplification to handle a single argument.
1645         (mi_cmd_stack_select_frame): Use parse_frame_specification, the
1646         switch to the selected frame.  Add a header comment.
1647         * stack.c: Remove 'safe-ctype.h' include.
1648         (find_frame_for_function): Add declaration.
1649         (find_frame_for_address): New function.
1650         (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
1651         (frame_selection_by_function_completer): New function.
1652         (info_frame_command): Rename to...
1653         (info_frame_command_core): ...this, and update parameter types.
1654         (select_frame_command): Rename to...
1655         (select_frame_command_core): ...this, and update parameter types.
1656         (frame_command): Rename to...
1657         (frame_command_core): ...this, and update parameter types.
1658         (class frame_command_helper): New class to wrap implementations of
1659         frame related sub-commands.
1660         (frame_apply_cmd_list): New static global.
1661         (frame_cmd_list): Make static.
1662         (select_frame_cmd_list): New global for sub-commands.
1663         (info_frame_cmd_list): New global for sub-commands.
1664         (_initialize_stack): Register sub-commands for 'frame',
1665         'select-frame', and 'info frame'.  Update 'frame apply' commands
1666         to use frame_apply_cmd_list.  Move function local static
1667         frame_apply_list to file static frame_apply_cmd_list for
1668         consistency.
1669         * stack.h (select_frame_command): Delete declarationn.
1670         (select_frame_for_mi): Declare new function.
1671
1672 2018-09-26  Andrew Burgess  <andrew.burgess@embecosm.com>
1673
1674         * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
1675         (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
1676         and NOP.
1677
1678 2018-09-26  Simon Marchi  <simon.marchi@ericsson.com>
1679
1680         * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
1681
1682 2018-09-26  Tom Tromey  <tom@tromey.com>
1683
1684         * valops.c (auto_abandon): Remove dead code.
1685
1686 2018-09-26  Tom Tromey  <tom@tromey.com>
1687
1688         * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
1689
1690 2018-09-24  Tom Tromey  <tom@tromey.com>
1691
1692         * common/pathstuff.c (get_standard_cache_dir): Make
1693         "xdg_cache_home" and "home" const.
1694         * top.c (init_history): Make "tmpenv" const.
1695         * main.c (get_init_files): Make "homedir" const.
1696
1697 2018-09-23  Tom Tromey  <tom@tromey.com>
1698
1699         PR python/18852:
1700         * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
1701
1702 2018-09-23  Tom Tromey  <tom@tromey.com>
1703
1704         * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
1705         * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
1706         * python/python-internal.h (gdbpy_handle_exception): Declare.
1707         * python/py-utils.c (gdbpy_handle_exception): New function.
1708
1709 2018-09-23  Tom Tromey  <tom@tromey.com>
1710
1711         PR python/17284:
1712         * python/py-type.c (typy_template_argument): Check for negative
1713         argument number.
1714
1715 2018-09-23  Tom Tromey  <tom@tromey.com>
1716
1717         PR python/14062:
1718         * python/python.c (gdbpy_run_events): Do not ignore exceptions.
1719
1720 2018-09-23  Tom Tromey  <tom@tromey.com>
1721
1722         PR python/18170:
1723         * python/py-value.c (valpy_int): Allow conversion from pointer
1724         type.
1725
1726 2018-09-23  Tom Tromey  <tom@tromey.com>
1727
1728         PR python/20126:
1729         * python/py-value.c (valpy_int): Respect type sign.
1730
1731 2018-09-23  Tom Tromey  <tom@tromey.com>
1732
1733         PR python/18352;
1734         * python/py-value.c (valpy_float): Allow conversions from int or
1735         char.
1736         (valpy_int, valpy_long): Allow conversions from float.
1737
1738 2018-09-23  Tom Tromey  <tom@tromey.com>
1739
1740         * ctf.c (ctf_start): Use gdb_fopen_cloexec.
1741         * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
1742
1743 2018-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1744
1745         * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
1746         __sighndlr.
1747         * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
1748
1749 2018-08-02  Jon Turney  <jon.turney@dronecode.org.uk>
1750
1751         * windows-nat.c (windows_nat_target::wait): Remove a spurious
1752         target_terminal::ours().
1753
1754 2018-09-23  Simon Marchi  <simon.marchi@ericsson.com>
1755
1756         * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
1757         of vl to ULONGEST.
1758
1759 2018-09-21  Yacov Simhony  <ysimhony@gmail.com>
1760
1761         * breakpoint.c (update_inserted_breakpoint_locations): Remove
1762         redundant condition.
1763
1764 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1765
1766         * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
1767
1768         * procfs.c: Don't check for PR_MODEL_NATIVE definition.
1769         * sparc-sol2-nat.c: Likewise.  Remove Linux, __arch64__ references.
1770         * sol-thread.c (ps_pdmodel): Don't guard definition.
1771
1772         * procfs.c: Fix formatting.
1773
1774         * procfs.c (sysset_t_alloc): Remove.
1775         (create_procinfo): Use XNEW instead of sysset_t_alloc.
1776         (procfs_debug_inferior): Likewise.
1777         (procfs_set_exec_trap): Likewise.
1778         (proc_set_traced_sysentry): Don't allocate argp dynamically.
1779         (proc_set_traced_sysexit): Likewise.
1780
1781         * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
1782         (dead_procinfo): Likewise.
1783         (proc_warn): Likewise.
1784         (proc_error): Likewise.
1785         (proc_get_LDT_entry): Likewise.
1786         (do_attach): Likewise.
1787         (procfs_target::pid_to_str): Likewise.
1788         (iterate_over_mappings): Likewise.
1789
1790         * procfs.c (create_procinfo): Fix ARI warning.
1791         (proc_get_status): Likewise.
1792         (proc_stop_process): Likewise.
1793         (proc_run_process): Likewise.
1794         (proc_kill): Likewise.
1795         (proc_get_LDT_entry): Likewise.
1796         (procfs_find_LDT_entry): Likewise.
1797         (proc_update_threads): Likewise.
1798         (proc_iterate_over_threads): Likewise.
1799         (do_attach): Likewise.
1800         (procfs_xfer_memory): Likewise.
1801         (invalidate_cache): Likewise.
1802         (procfs_target::resume): Likewise.
1803         (procfs_init_inferior): Likewise.
1804         (procfs_set_exec_trap): Likewise.
1805         (procfs_target::thread_alive): Likewise.
1806         (procfs_target::pid_to_exec_file): Likewise.
1807         (iterate_over_mappings): Likewise.
1808         (procfs_target::make_corefile_notes): Likewise.
1809         * sol-thread.c (sol_thread_target::thread_alive): Likewise.
1810
1811         * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
1812         (procfs_find_LDT_entry): Likewise.
1813         * sol-thread.c (ps_lgetLDT): Likewise.
1814
1815 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1816
1817         PR tdep/17903
1818         * procfs.c (procfs_target): Declare pid_to_exec_file.
1819         (procfs_target::pid_to_exec_file): New.
1820
1821 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1822
1823         * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
1824         renaming.
1825         Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
1826         AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
1827
1828 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1829
1830         * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
1831         (supply_fpregset, fill_fpregset): Move ...
1832         * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
1833         Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
1834         Remove references to ioctl-based procfs.
1835         Include <sys/reg.h>.
1836         Remove PR_MODEL_NATIVE guards.
1837         * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
1838         * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
1839
1840 2018-09-19  Xavier Roirand  <roirand@adacore.com>
1841
1842         PR gdb/20981:
1843         * solib-darwin.c (darwin_get_dyld_bfd): New function.
1844         (darwin_solib_get_all_image_info_addr_at_init): Update call.
1845         (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
1846
1847 2018-09-19  John Baldwin  <jhb@FreeBSD.org>
1848
1849         * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
1850         (fbsd_print_sockaddr_in6): Likewise.
1851
1852 2018-09-19  Richard Bunt  <richard.bunt@arm.com>
1853             Chris January  <chris.january@arm.com>
1854
1855         * eval.c (skip_undetermined_arglist): Skip argument list helper.
1856         (evaluate_subexp_standard): Return a dummy type when
1857         honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
1858         OP_F77_UNDETERMINED_ARGLIST case.
1859         * expression.h (enum noside): Update comment.
1860
1861 2018-09-19  George Vasick <george.vasick@oracle.com>
1862
1863         * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
1864
1865 2018-09-19  Stefan Teleman <stefan.teleman@oracle.com>
1866             April Chin <april.chin@oracle.com>
1867             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1868
1869         * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
1870         uint_t lwpid_t.
1871         (create_procinfo): Print pids in /proc without leading zeros.
1872
1873 2018-09-18  Sandra Loosemore  <sandra@codesourcery.com>
1874
1875         * nios2-tdep.c (nios2_gcc_target_options): New.
1876         (nios2_gdb_arch_init): Install new hook.
1877
1878 2018-09-18  Simon Marchi  <simon.marchi@ericsson.com>
1879
1880         * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
1881         New file.
1882         * update-gnulib.sh: Apply patch.
1883         * configure: Re-generate.
1884
1885 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
1886
1887         * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
1888         description.  Make "info proc" command descriptions more
1889         consistent.
1890
1891 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
1892
1893         * NEWS: Mention 'info proc files' command.
1894
1895 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
1896
1897         * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
1898         descriptors for IP_FILES and IP_ALL.
1899
1900 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
1901
1902         * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
1903         (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
1904         (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
1905         (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
1906         (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
1907         (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
1908         (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
1909         (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
1910         (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
1911         (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
1912         (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
1913         (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
1914         (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
1915         (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
1916         (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
1917         (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
1918         (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
1919         (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
1920         (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
1921         (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
1922         (struct fbsd_sockaddr_un): New types.
1923         (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
1924         (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
1925         (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
1926         (fbsd_core_info_proc_files): New functions.
1927         (fbsd_core_info_proc): List open file descriptors for IP_FILES and
1928         IP_ALL.
1929         * fbsd-tdep.h (fbsd_info_proc_files_header)
1930         (fbsd_info_proc_files_entry): New.
1931
1932 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
1933
1934         * defs.h (enum info_proc_what) [IP_FILES]: New value.
1935         * infcmd.c (info_proc_cmd_files): New function.
1936         (_initialize_infcmd): Register 'info proc files' command.
1937
1938 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
1939
1940         * gnulib/aclocal-m4-deps.mk: Re-generate.
1941         * gnulib/aclocal.m4: Re-generate.
1942         * gnulib/config.in: Re-generate.
1943         * gnulib/configure: Re-generate.
1944         * gnulib/import/Makefile.am: Re-generate.
1945         * gnulib/import/Makefile.in: Re-generate.
1946         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1947         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1948         * gnulib/import/arpa_inet.in.h: New file.
1949         * gnulib/import/inet_ntop.c: New file.
1950         * gnulib/import/m4/arpa_inet_h.m4: New file.
1951         * gnulib/import/m4/inet_ntop.m4: New file.
1952         * gnulib/import/m4/netinet_in_h.m4: New file.
1953         * gnulib/import/m4/socklen.m4: New file.
1954         * gnulib/import/m4/sockpfaf.m4: New file.
1955         * gnulib/import/m4/stdalign.m4: New file.
1956         * gnulib/import/m4/sys_uio_h.m4: New file.
1957         * gnulib/import/netinet_in.in.h: New file.
1958         * gnulib/import/stdalign.in.h: New file.
1959         * gnulib/import/sys_socket.c: New file.
1960         * gnulib/import/sys_socket.in.h: New file.
1961         * gnulib/import/sys_uio.in.h: New file.
1962         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
1963         module.
1964
1965 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
1966
1967         * gnulib/aclocal-m4-deps.mk: New file.
1968         * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
1969         deterministically.
1970
1971 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
1972
1973         * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
1974         KVE_PATH.
1975
1976 2018-09-18  Tom Tromey  <tom@tromey.com>
1977
1978         * compile/compile-object-load.c (struct
1979         link_hash_table_cleanup_data): Add constructor and destructor.
1980         Use DISABLE_COPY_AND_ASSIGN.
1981         (~link_hash_table_cleanup_data): Rename from
1982         link_hash_table_free.  Now a destructor.
1983         (copy_sections): Use gdb::unique_xmalloc_ptr.  Remove cleanups.
1984
1985 2018-09-18  Tom Tromey  <tom@tromey.com>
1986
1987         * compile/compile-object-run.c (do_module_cleanup): Use delete.
1988         * compile/compile-object-load.c (struct munmap_list): Move to
1989         header file.
1990         (munmap_list::add): Rename from munmap_list_add; rewrite.
1991         (munmap_list::~munmap_list): Rename from munmap_list_free.
1992         (munmap_listp_free_cleanup): Remove.
1993         (compile_object_load): Update.
1994         * compile/compile-object-load.h (struct munmap_list): Move from
1995         compile-object-load.c.  Rewrite.
1996
1997 2018-09-18  Alan Hayward  <alan.hayward@arm.com>
1998
1999         * aarch64-tdep.c (pass_in_v): Use register size.
2000         (aarch64_extract_return_value): Likewise.
2001         (aarch64_store_return_value): Likewise.
2002
2003 2018-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2004
2005         * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
2006         rlim_t.
2007
2008 2018-09-17  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2009
2010         * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
2011         Fix short help line.
2012
2013 2018-09-17  Tom Tromey  <tom@tromey.com>
2014
2015         PR python/20445:
2016         * configure: Rebuild.
2017         * configure.ac: Conditionally use -DNDEBUG for Python.
2018
2019 2018-09-17  Tom Tromey  <tom@tromey.com>
2020
2021         * configure: Rebuild.
2022         * configure.ac: Use gmp as a library dependency when checking for
2023         mpfr.
2024
2025 2018-09-17  Pedro Alves  <palves@redhat.com>
2026
2027         * python/py-inferior.c (find_inferior_object): Delete.
2028
2029 2018-09-17  Simon Marchi  <simon.marchi@ericsson.com>
2030
2031         * compile/compile-cplus-types.c
2032         (compile_cplus_instance::enter_scope): Don't use new_scope after
2033         std::move.
2034
2035 2018-09-17  Tom Tromey  <tom@tromey.com>
2036
2037         * common/pathstuff.c (get_standard_cache_dir): Use
2038         ~/Library/Caches on macOS.
2039         * common/pathstuff.h (get_standard_cache_dir): Update comment.
2040
2041 2018-09-17  Simon Marchi  <simon.marchi@polymtl.ca>
2042
2043         PR python/23669
2044         * breakpoint.c (commands_cmd_element): New.
2045         (_initialize_breakpoint): Assign commands_cmd_element.
2046         * breakpoint.h (commands_cmd_element): New.
2047         * cli/cli-script.c (while_cmd_element, if_command,
2048         define_cmd_element): New.
2049         (command_name_equals): Remove.
2050         (process_next_line): Compare commands by pointer, not by name.
2051         (_initialize_cli_script): Assign the various cmd_list_element
2052         variables.
2053         * compile/compile.c (compile_cmd_element): New.
2054         (_initialize_compile): Assign compile_cmd_element.
2055         * compile/compile.h (compile_cmd_element): New.
2056         * guile/guile.c (guile_cmd_element): New.
2057         (install_gdb_commands): Assign guile_cmd_element.
2058         * guile/guile.h (guile_cmd_element): New.
2059         * python/python.c (python_cmd_element): New.
2060         (_initialize_python): Assign python_cmd_element.
2061         * python/python.h (python_cmd_element): New.
2062         * tracepoint.c (while_stepping_cmd_element): New.
2063         (_initialize_tracepoint): Assign while_stepping_cmd_element.
2064         * tracepoint.h (while_stepping_cmd_element): New.
2065
2066 2018-09-17  Tom Tromey  <tom@tromey.com>
2067
2068         * infrun.c (save_infcall_suspend_state): Return
2069         infcall_suspend_state_up.
2070         (save_infcall_control_state): Return infcall_control_state_up.
2071         * inferior.h (save_infcall_suspend_state)
2072         (save_infcall_control_state): Declare later.  Return unique
2073         pointers.
2074
2075 2018-09-17  Tom Tromey  <tom@tromey.com>
2076
2077         * infrun.c (struct stop_context): Declare constructor,
2078         destructor, "changed" method.
2079         (stop_context::stop_context): Rename from save_stop_context.
2080         (stop_context::~stop_context): Rename from
2081         release_stop_context_cleanup.
2082         (normal_stop): Update.
2083         (stop_context::changed): Rename from stop_context_changed.  Return
2084         bool.
2085
2086 2018-09-17  Tom Tromey  <tom@tromey.com>
2087
2088         * inferior.h (struct infcall_suspend_state_deleter): New.
2089         (infcall_suspend_state_up): New typedef.
2090         (struct infcall_control_state_deleter): New.
2091         (infcall_control_state_up): New typedef.
2092         (make_cleanup_restore_infcall_suspend_state)
2093         (make_cleanup_restore_infcall_control_state): Don't declare.
2094         * infcall.c (call_function_by_hand_dummy): Update.
2095         * infrun.c (do_restore_infcall_suspend_state_cleanup)
2096         (make_cleanup_restore_infcall_suspend_state): Remove.
2097         (do_restore_infcall_control_state_cleanup)
2098         (make_cleanup_restore_infcall_control_state): Remove.
2099
2100 2018-09-17  Tom Tromey  <tom@tromey.com>
2101
2102         * gdbthread.h (struct thread_control_state): Add initializer.
2103         (class thread_info) <control>: Remove initializer.
2104         * inferior.h (struct inferior_control_state): Add initializer.
2105         (class inferior) <control>: Remove initializer.
2106         (exit_inferior_1): Update.
2107         * infrun.c (struct infcall_control_state): Add constructors.
2108         (save_infcall_control_state): Use new.
2109         (restore_infcall_control_state, discard_infcall_control_state):
2110         Use delete.
2111
2112 2018-09-17  Tom Tromey  <tom@tromey.com>
2113
2114         * infrun.c (struct infcall_suspend_state) <registers>: Now a
2115         unique_ptr.
2116         <siginfo_data>: Now a unique_xmalloc_ptr.
2117         (save_infcall_suspend_state, restore_infcall_suspend_state)
2118         (discard_infcall_suspend_state)
2119         (get_infcall_suspend_state_regcache): Update.
2120
2121 2018-09-17  Tom Tromey  <tom@tromey.com>
2122
2123         * gdbthread.h (struct thread_suspend_state): Add initializers.
2124         (class thread_info) <suspend>: Remove initializer.
2125         * infrun.c (struct infcall_suspend_state): Add initializers.
2126         (save_infcall_suspend_state): Use new.
2127         (discard_infcall_suspend_state): Use delete.
2128
2129 2018-09-16  Tom Tromey  <tom@tromey.com>
2130
2131         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2132         Remove.
2133         * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
2134         rvalue reference.  Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2135         (py_varobj_iter_new): Likewise.
2136         (py_varobj_get_iterator): Use gdbpy_ref.
2137
2138 2018-09-16  Tom Tromey  <tom@tromey.com>
2139
2140         * python/py-threadevent.c (py_get_event_thread): Simplify.
2141         * python/py-inferior.c (infpy_thread_from_thread_handle):
2142         Return immediately after calling thread_to_thread_object.  Use
2143         Py_RETURN_NONE.
2144         (thread_to_thread_object): Set the exception on a NULL return.
2145
2146 2018-09-16  Simon Marchi  <simon.marchi@polymtl.ca>
2147
2148         * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
2149
2150 2018-09-16  Tom Tromey  <tom@tromey.com>
2151
2152         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2153         Remove.
2154
2155 2018-09-16  Tom Tromey  <tom@tromey.com>
2156
2157         * python/python-internal.h (thread_to_thread_object): Change
2158         return type.
2159         * python/py-inferior.c (thread_to_thread_object): Return a new
2160         reference.
2161         (infpy_thread_from_thread_handle): Update.
2162         * python/py-infthread.c (gdbpy_selected_thread): Update.
2163         * python/py-stopevent.c (create_stop_event_object): Update.
2164         * python/py-threadevent.c (py_get_event_thread): Return a new
2165         reference.
2166         (py_get_event_thread): Update.
2167         * python/py-event.h (py_get_event_thread): Change return type.
2168         * python/py-continueevent.c (create_continue_event_object):
2169         Update.
2170
2171 2018-09-16  Tom Tromey  <tom@tromey.com>
2172
2173         * python/py-progspace.c (pspy_get_objfiles): Update.
2174         * python/python-internal.h (objfile_to_objfile_object): Change
2175         return type.
2176         * python/py-newobjfileevent.c (create_new_objfile_event_object):
2177         Update.
2178         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2179         Update.
2180         * python/python.c (gdbpy_get_current_objfile): Update.
2181         (gdbpy_objfiles): Update.
2182         * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
2183         Update.
2184         (objfile_to_objfile_object): Return a new reference.
2185         * python/py-symtab.c (stpy_get_objfile): Update.
2186         * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2187         Update.
2188
2189 2018-09-16  Tom Tromey  <tom@tromey.com>
2190
2191         * python/py-inferior.c (infpy_get_progspace): Update.
2192         * python/python-internal.h (pspace_to_pspace_object): Change
2193         return type.
2194         * python/py-newobjfileevent.c
2195         (create_clear_objfiles_event_object): Update.
2196         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2197         Update.
2198         * python/python.c (gdbpy_get_current_progspace): Update.
2199         (gdbpy_progspaces): Update.
2200         * python/py-progspace.c (pspace_to_pspace_object): Return a new
2201         reference.
2202         * python/py-objfile.c (objfpy_get_progspace): Update.
2203         * python/py-prettyprint.c (find_pretty_printer_from_progspace):
2204         Update.
2205
2206 2018-09-16  Tom Tromey  <tom@tromey.com>
2207
2208         * python/lib/gdb/__init__.py (current_progspace, objfiles)
2209         (solib_name, block_for_pc, find_pc_line): New functions.
2210         (execute_unwinders): Update.
2211         * python/py-block.c (gdbpy_block_for_pc): Remove.
2212         * python/py-inferior.c (infpy_get_progspace): New function.
2213         (inferior_object_getset) <progspace>: Add.
2214         * python/py-progspace.c (pspy_objfiles): Rewrite.
2215         (pspy_solib_name, pspy_block_for_pc)
2216         (pspy_find_pc_line, pspy_is_valid): New functions.
2217         (progspace_object_methods): Add entries for solib_name,
2218         block_for_pc, find_pc_line, is_valid.
2219         * python/python-internal.h (gdbpy_block_for_pc)
2220         (build_objfiles_list): Don't declare.
2221         * python/python.c: Don't include solib.h.
2222         (gdbpy_solib_name, gdbpy_find_pc_line)
2223         (gdbpy_get_current_progspace, build_objfiles_list)
2224         (gdbpy_objfiles): Remove.
2225         (GdbMethods) <current_progspace, objfiles, block_for_pc,
2226         solib_name, find_pc_line>: Remove entries.
2227
2228 2018-09-16  Tom Tromey  <tom@tromey.com>
2229
2230         * top.c (new_ui_command): Use GNU style for metasyntactic
2231         variables.
2232         * breakpoint.c (stopat_command): Use GNU style for metasyntactic
2233         variables.
2234         * maint.c (maintenance_translate_address): Remove "<>" around
2235         text.
2236         * interps.c (interpreter_exec_cmd): Use GNU style for
2237         metasyntactic variables.
2238         * nto-procfs.c (nto_procfs_target_info): Use GNU style for
2239         metasyntactic variables.
2240         * tracepoint.c (tfind_range_command): Use GNU style for
2241         metasyntactic variables.
2242         (tfind_outside_command): Likewise.
2243         (_initialize_tracepoint): Likewise.
2244         * remote.c (extended_remote_target::create_inferior): Use GNU
2245         style for metasyntactic variables.
2246         * sparc64-tdep.c (adi_examine_command): Use GNU style for
2247         metasyntactic variables.
2248         (adi_assign_command): Likewise.
2249
2250 2018-09-16  Tom Tromey  <tom@tromey.com>
2251
2252         * disasm.c (show_disassembler_options_sfunc): Use GNU style for
2253         metasyntactic variables.  Print message if no disassembler options
2254         are available.
2255
2256 2018-09-15  Tom Tromey  <tom@tromey.com>
2257
2258         * infcmd.c (get_inferior_args): Return const char *.
2259         * inferior.h (get_inferior_args): Return type now const.
2260         * linux-tdep.c (linux_fill_prpsinfo): Update.
2261         * procfs.c (procfs_target::make_corefile_notes): Update.
2262
2263 2018-09-07  Tom Tromey  <tom@tromey.com>
2264
2265         * python/python.c (execute_gdb_command): Call bpstat_do_actions
2266         inside the TRY.
2267
2268 2018-09-14  Sandra Loosemore  <sandra@codesourcery.com>
2269
2270         * nios2-tdep.c (nios2_type_align): New.
2271         (nios2_gdb_arch_init): Install type_align hook.
2272
2273 2018-09-10  Andrew Burgess  <andrew.burgess@embecosm.com>
2274
2275         * eval.c (fake_method::fake_method): Call xzalloc directly for a
2276         type that is neither object file owned, nor gdbarch owned.
2277         * gdbtypes.c (get_type_gdbarch): Add an assert that returned
2278         gdbarch is non-NULL.
2279         (alloc_type_instance): Allocate non-objfile owned types on the
2280         gdbarch obstack.
2281         (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
2282         using TYPE_ALLOC to ensure memory is allocated on the correct
2283         obstack.
2284         * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
2285         obstack, or the gdbarch obstack.
2286         (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
2287
2288 2018-09-14  Tom Tromey  <tom@tromey.com>
2289
2290         * infcall.c (call_function_by_hand_dummy): Remove unnecessary
2291         block.
2292
2293 2018-09-14  Tom Tromey  <tom@tromey.com>
2294
2295         * nat/fork-inferior.c (get_startup_shell): Remove "static".
2296
2297 2018-09-13  Tom Tromey  <tom@tromey.com>
2298
2299         * python/py-inferior.c (infpy_thread_from_thread_handle): Now
2300         static.
2301
2302 2018-09-13  Tom Tromey  <tom@tromey.com>
2303
2304         * exec.c (try_open_exec_file): Use std::string.
2305
2306 2018-09-13  Tom Tromey  <tom@tromey.com>
2307
2308         * utils.h (gdb_bfd_errmsg): Return std::string.
2309         * exec.c (exec_file_attach): Update.
2310         * compile/compile-object-load.c (compile_object_load): Update.
2311         * utils.c (gdb_bfd_errmsg): Return std::string.
2312
2313 2018-09-13  Tom Tromey  <tom@tromey.com>
2314
2315         * procfs.c (struct procinfo_deleter): New.
2316         (procinfo_up): New typedef.
2317         (do_destroy_procinfo_cleanup): Remove.
2318         (procfs_target::info_proc): Use procinfo_up.  Remove cleanups.
2319
2320 2018-09-13  Tom Tromey  <tom@tromey.com>
2321
2322         * source.c (add_path): Use gdb::unique_xmalloc_ptr.
2323
2324 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
2325 2018-09-13  Tom Tromey  <tom@tromey.com>
2326
2327         * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
2328         (pspy_get_objfiles): New function.
2329         (progspace_object_methods): New.
2330         (pspace_object_type): Add tp_methods callback.
2331         * python/python-internal.h (build_objfiles_list): New
2332         declaration.
2333         * python/python.c (build_objfiles_list): New function.
2334         (gdbpy_objfiles): Implement using build_objfiles_list.
2335         * NEWS: Mention the Progspace.objfiles method.
2336
2337 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
2338
2339         * python/py-inferior.c (infpy_get_progspace): New function.
2340         (inferior_object_getset): Add progspace property.
2341         * NEWS: Mention the new property.
2342
2343 2018-09-13  Tom Tromey  <tom@tromey.com>
2344
2345         PR rust/23650:
2346         * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
2347
2348 2018-09-13  Tom Tromey  <tom@tromey.com>
2349
2350         PR rust/23626:
2351         * rust-lang.c (rust_enum_variant): Now static.
2352         (rust_empty_enum_p): New function.
2353         (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
2354         Handle empty enum.
2355
2356 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
2357
2358         * python/py-inferior.c (infpy_repr): New.
2359         (inferior_object_type): Register infpy_repr.
2360         * python/py-objfile.c (objfpy_repr): New.
2361         (objfile_object_type): Register objfpy_repr.
2362
2363 2018-09-12  John Baldwin  <jhb@FreeBSD.org>
2364
2365         * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
2366
2367 2018-09-12  John Baldwin  <jhb@FreeBSD.org>
2368
2369         * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
2370         typo.
2371
2372 2018-09-12  Sergio Durigan Junior  <sergiodj@redhat.com>
2373
2374         * common/common-utils.c: Don't include '<sys/stat.h>'.
2375         (is_regular_file): Move to...
2376         * common/filestuff.c (is_regular_file): ... here.
2377         * common/common-utils.h (is_regular_file): Move to...
2378         * common/filestuff.h (is_regular_file): ... here.
2379
2380 2018-09-12  Simon Marchi  <simon.marchi@ericsson.com>
2381
2382         * skip.c (debug_skip): New variable.
2383         (skiplist_entry::do_skip_file_p): Add debug output.
2384         (skiplist_entry::do_skip_gfile_p): Likewise.
2385         (skiplist_entry::skip_function_p): Likewise.
2386         (_initialize_step_skip): Create debug command.
2387         * NEWS: Mention set/show debug skip.
2388
2389 2018-09-11  Xavier Roirand  <roirand@adacore.com>
2390
2391         * darwin-nat.c (should_disable_startup_with_shell):
2392         New function.
2393         (darwin_nat_target::create_inferior): Add call.
2394
2395 2018-09-11  Xavier Roirand  <roirand@adacore.com>
2396
2397         * darwin-nat.h (struct darwin_thread_info) <gdb_port,
2398         inf_port, msg_state>: Initialize.
2399         (struct darwin_thread_info) <signaled, single_step>: Change
2400         type and initialize.
2401         (struct darwin_thread_info) <event>: Initialize.
2402
2403 2018-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2404
2405         PR gdb/23555
2406         PR gdb/23558
2407         * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
2408         guesses.
2409
2410 2018-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2411
2412         Revert:
2413         2018-08-29  Sergio Durigan Junior  <sergiodj@redhat.com>
2414
2415         PR gdb/23555
2416         PR gdb/23558
2417         * gnulib/aclocal.m4: Regenerate.
2418         * gnulib/config.in: Regenerate.
2419         * gnulib/configure: Regenerate.
2420         * gnulib/import/Makefile.am: Update.
2421         * gnulib/import/Makefile.in: Update.
2422         * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2423         * gnulib/import/_Noreturn.h: ... this.
2424         * gnulib/import/alloca.in.h: Update.
2425         * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2426         * gnulib/import/arg-nonnull.h: ... this.
2427         * gnulib/import/assure.h: Update.
2428         * gnulib/import/at-func.c: Update.
2429         * gnulib/import/basename-lgpl.c: Update.
2430         * gnulib/import/extra/snippet/c++defs.h: Rename to...
2431         * gnulib/import/c++defs.h: ... this.
2432         * gnulib/import/canonicalize-lgpl.c: Update.
2433         * gnulib/import/cdefs.h: Update.
2434         * gnulib/import/chdir-long.c: Update.
2435         * gnulib/import/chdir-long.h: Update.
2436         * gnulib/import/cloexec.c: Update.
2437         * gnulib/import/cloexec.h: Update.
2438         * gnulib/import/close.c: Update.
2439         * gnulib/import/closedir.c: Update.
2440         * gnulib/import/config.charset: Update.
2441         * gnulib/import/dirent-private.h: Update.
2442         * gnulib/import/dirent.in.h: Update.
2443         * gnulib/import/dirfd.c: Update.
2444         * gnulib/import/dirname-lgpl.c: Update.
2445         * gnulib/import/dirname.h: Update.
2446         * gnulib/import/dosname.h: Update.
2447         * gnulib/import/dup-safer-flag.c: Update.
2448         * gnulib/import/dup-safer.c: Update.
2449         * gnulib/import/dup.c: Update.
2450         * gnulib/import/dup2.c: Update.
2451         * gnulib/import/errno.in.h: Update.
2452         * gnulib/import/error.c: Update.
2453         * gnulib/import/error.h: Update.
2454         * gnulib/import/exitfail.c: Update.
2455         * gnulib/import/exitfail.h: Update.
2456         * gnulib/import/extra/update-copyright: Update.
2457         * gnulib/import/fchdir.c: Update.
2458         * gnulib/import/fcntl.c: Update.
2459         * gnulib/import/fcntl.in.h: Update.
2460         * gnulib/import/fd-hook.c: Update.
2461         * gnulib/import/fd-hook.h: Update.
2462         * gnulib/import/fd-safer-flag.c: Update.
2463         * gnulib/import/fd-safer.c: Update.
2464         * gnulib/import/fdopendir.c: Update.
2465         * gnulib/import/filename.h: Update.
2466         * gnulib/import/filenamecat-lgpl.c: Update.
2467         * gnulib/import/filenamecat.h: Update.
2468         * gnulib/import/flexmember.h: Update.
2469         * gnulib/import/float+.h: Update.
2470         * gnulib/import/float.c: Update.
2471         * gnulib/import/float.in.h: Update.
2472         * gnulib/import/fnmatch.c: Update.
2473         * gnulib/import/fnmatch.in.h: Update.
2474         * gnulib/import/fnmatch_loop.c: Update.
2475         * gnulib/import/fpucw.h: Update.
2476         * gnulib/import/frexp.c: Update.
2477         * gnulib/import/frexpl.c: Update.
2478         * gnulib/import/fstat.c: Update.
2479         * gnulib/import/fstatat.c: Update.
2480         * gnulib/import/getcwd-lgpl.c: Update.
2481         * gnulib/import/getcwd.c: Update.
2482         * gnulib/import/getdtablesize.c: Update.
2483         * gnulib/import/getlogin_r.c: Update.
2484         * gnulib/import/getprogname.c: Update.
2485         * gnulib/import/getprogname.h: Update.
2486         * gnulib/import/gettext.h: Update.
2487         * gnulib/import/gettimeofday.c: Update.
2488         * gnulib/import/glob-libc.h: Update.
2489         * gnulib/import/glob.c: Update.
2490         * gnulib/import/glob.in.h: Update.
2491         * gnulib/import/glob_internal.h: Update.
2492         * gnulib/import/glob_pattern_p.c: Update.
2493         * gnulib/import/globfree.c: Update.
2494         * gnulib/import/hard-locale.c: Update.
2495         * gnulib/import/hard-locale.h: Update.
2496         * gnulib/import/intprops.h: Update.
2497         * gnulib/import/inttypes.in.h: Update.
2498         * gnulib/import/isnan.c: Update.
2499         * gnulib/import/isnand-nolibm.h: Update.
2500         * gnulib/import/isnand.c: Update.
2501         * gnulib/import/isnanl-nolibm.h: Update.
2502         * gnulib/import/isnanl.c: Update.
2503         * gnulib/import/itold.c: Update.
2504         * gnulib/import/libc-config.h: Update.
2505         * gnulib/import/limits.in.h: Update.
2506         * gnulib/import/localcharset.c: Update.
2507         * gnulib/import/localcharset.h: Update.
2508         * gnulib/import/localtime-buffer.c: Update.
2509         * gnulib/import/localtime-buffer.h: Update.
2510         * gnulib/import/lstat.c: Update.
2511         * gnulib/import/m4/00gnulib.m4: Update.
2512         * gnulib/import/m4/__inline.m4: Update.
2513         * gnulib/import/m4/absolute-header.m4: Update.
2514         * gnulib/import/m4/alloca.m4: Update.
2515         * gnulib/import/m4/builtin-expect.m4: Update.
2516         * gnulib/import/m4/canonicalize.m4: Update.
2517         * gnulib/import/m4/chdir-long.m4: Update.
2518         * gnulib/import/m4/close.m4: Update.
2519         * gnulib/import/m4/closedir.m4: Update.
2520         * gnulib/import/m4/configmake.m4: Update.
2521         * gnulib/import/m4/d-ino.m4: Update.
2522         * gnulib/import/m4/d-type.m4: Update.
2523         * gnulib/import/m4/dirent_h.m4: Update.
2524         * gnulib/import/m4/dirfd.m4: Update.
2525         * gnulib/import/m4/dirname.m4: Update.
2526         * gnulib/import/m4/double-slash-root.m4: Update.
2527         * gnulib/import/m4/dup.m4: Update.
2528         * gnulib/import/m4/dup2.m4: Update.
2529         * gnulib/import/m4/eealloc.m4: Update.
2530         * gnulib/import/m4/environ.m4: Update.
2531         * gnulib/import/m4/errno_h.m4: Update.
2532         * gnulib/import/m4/error.m4: Update.
2533         * gnulib/import/m4/exponentd.m4: Update.
2534         * gnulib/import/m4/exponentl.m4: Update.
2535         * gnulib/import/m4/extensions.m4: Update.
2536         * gnulib/import/m4/extern-inline.m4: Update.
2537         * gnulib/import/m4/fchdir.m4: Update.
2538         * gnulib/import/m4/fcntl-o.m4: Update.
2539         * gnulib/import/m4/fcntl.m4: Update.
2540         * gnulib/import/m4/fcntl_h.m4: Update.
2541         * gnulib/import/m4/fdopendir.m4: Update.
2542         * gnulib/import/m4/filenamecat.m4: Update.
2543         * gnulib/import/m4/flexmember.m4: Update.
2544         * gnulib/import/m4/float_h.m4: Update.
2545         * gnulib/import/m4/fnmatch.m4: Update.
2546         * gnulib/import/m4/fnmatch_h.m4: Update.
2547         * gnulib/import/m4/fpieee.m4: Update.
2548         * gnulib/import/m4/frexp.m4: Update.
2549         * gnulib/import/m4/frexpl.m4: Update.
2550         * gnulib/import/m4/fstat.m4: Update.
2551         * gnulib/import/m4/fstatat.m4: Update.
2552         * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2553         * gnulib/import/m4/getcwd-path-max.m4: Update.
2554         * gnulib/import/m4/getcwd.m4: Update.
2555         * gnulib/import/m4/getdtablesize.m4: Update.
2556         * gnulib/import/m4/getlogin.m4: Update.
2557         * gnulib/import/m4/getlogin_r.m4: Update.
2558         * gnulib/import/m4/getpagesize.m4: Update.
2559         * gnulib/import/m4/getprogname.m4: Update.
2560         * gnulib/import/m4/gettimeofday.m4: Update.
2561         * gnulib/import/m4/glibc21.m4: Update.
2562         * gnulib/import/m4/glob.m4: Update.
2563         * gnulib/import/m4/glob_h.m4: Update.
2564         * gnulib/import/m4/gnulib-cache.m4: Update.
2565         * gnulib/import/m4/gnulib-common.m4: Update.
2566         * gnulib/import/m4/gnulib-comp.m4: Update.
2567         * gnulib/import/m4/gnulib-tool.m4: Update.
2568         * gnulib/import/m4/hard-locale.m4: Update.
2569         * gnulib/import/m4/include_next.m4: Update.
2570         * gnulib/import/m4/inttypes-pri.m4: Update.
2571         * gnulib/import/m4/inttypes.m4: Update.
2572         * gnulib/import/m4/isnand.m4: Update.
2573         * gnulib/import/m4/isnanl.m4: Update.
2574         * gnulib/import/m4/largefile.m4: Update.
2575         * gnulib/import/m4/limits-h.m4: Update.
2576         * gnulib/import/m4/localcharset.m4: Update.
2577         * gnulib/import/m4/locale-fr.m4: Update.
2578         * gnulib/import/m4/locale-ja.m4: Update.
2579         * gnulib/import/m4/locale-zh.m4: Update.
2580         * gnulib/import/m4/localtime-buffer.m4: Update.
2581         * gnulib/import/m4/longlong.m4: Update.
2582         * gnulib/import/m4/lstat.m4: Update.
2583         * gnulib/import/m4/malloc.m4: Update.
2584         * gnulib/import/m4/malloca.m4: Update.
2585         * gnulib/import/m4/math_h.m4: Update.
2586         * gnulib/import/m4/mbrtowc.m4: Update.
2587         * gnulib/import/m4/mbsinit.m4: Update.
2588         * gnulib/import/m4/mbsrtowcs.m4: Update.
2589         * gnulib/import/m4/mbstate_t.m4: Update.
2590         * gnulib/import/m4/memchr.m4: Update.
2591         * gnulib/import/m4/memmem.m4: Update.
2592         * gnulib/import/m4/mempcpy.m4: Update.
2593         * gnulib/import/m4/memrchr.m4: Update.
2594         * gnulib/import/m4/mkdir.m4: Update.
2595         * gnulib/import/m4/mkstemp.m4: Update.
2596         * gnulib/import/m4/mmap-anon.m4: Update.
2597         * gnulib/import/m4/mode_t.m4: Update.
2598         * gnulib/import/m4/msvc-inval.m4: Update.
2599         * gnulib/import/m4/msvc-nothrow.m4: Update.
2600         * gnulib/import/m4/multiarch.m4: Update.
2601         * gnulib/import/m4/nocrash.m4: Update.
2602         * gnulib/import/m4/off_t.m4: Update.
2603         * gnulib/import/m4/onceonly.m4: Update.
2604         * gnulib/import/m4/open-cloexec.m4: Update.
2605         * gnulib/import/m4/open.m4: Update.
2606         * gnulib/import/m4/openat.m4: Update.
2607         * gnulib/import/m4/opendir.m4: Update.
2608         * gnulib/import/m4/pathmax.m4: Update.
2609         * gnulib/import/m4/rawmemchr.m4: Update.
2610         * gnulib/import/m4/readdir.m4: Update.
2611         * gnulib/import/m4/readlink.m4: Update.
2612         * gnulib/import/m4/realloc.m4: Update.
2613         * gnulib/import/m4/rename.m4: Update.
2614         * gnulib/import/m4/rewinddir.m4: Update.
2615         * gnulib/import/m4/rmdir.m4: Update.
2616         * gnulib/import/m4/save-cwd.m4: Update.
2617         * gnulib/import/m4/secure_getenv.m4: Update.
2618         * gnulib/import/m4/setenv.m4: Update.
2619         * gnulib/import/m4/signal_h.m4: Update.
2620         * gnulib/import/m4/ssize_t.m4: Update.
2621         * gnulib/import/m4/stat-time.m4: Update.
2622         * gnulib/import/m4/stat.m4: Update.
2623         * gnulib/import/m4/std-gnu11.m4: Update.
2624         * gnulib/import/m4/stdbool.m4: Update.
2625         * gnulib/import/m4/stddef_h.m4: Update.
2626         * gnulib/import/m4/stdint.m4: Update.
2627         * gnulib/import/m4/stdio_h.m4: Update.
2628         * gnulib/import/m4/stdlib_h.m4: Update.
2629         * gnulib/import/m4/strchrnul.m4: Update.
2630         * gnulib/import/m4/strdup.m4: Update.
2631         * gnulib/import/m4/strerror.m4: Update.
2632         * gnulib/import/m4/string_h.m4: Update.
2633         * gnulib/import/m4/strstr.m4: Update.
2634         * gnulib/import/m4/strtok_r.m4: Update.
2635         * gnulib/import/m4/sys_socket_h.m4: Update.
2636         * gnulib/import/m4/sys_stat_h.m4: Update.
2637         * gnulib/import/m4/sys_time_h.m4: Update.
2638         * gnulib/import/m4/sys_types_h.m4: Update.
2639         * gnulib/import/m4/tempname.m4: Update.
2640         * gnulib/import/m4/time_h.m4: Update.
2641         * gnulib/import/m4/unistd-safer.m4: Update.
2642         * gnulib/import/m4/unistd_h.m4: Update.
2643         * gnulib/import/m4/warn-on-use.m4: Update.
2644         * gnulib/import/m4/wchar_h.m4: Update.
2645         * gnulib/import/m4/wchar_t.m4: Update.
2646         * gnulib/import/m4/wctype_h.m4: Update.
2647         * gnulib/import/m4/wint_t.m4: Update.
2648         * gnulib/import/malloc.c: Update.
2649         * gnulib/import/malloc/scratch_buffer.h: Update.
2650         * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2651         * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2652         * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2653         * gnulib/import/malloca.c: Update.
2654         * gnulib/import/malloca.h: Update.
2655         * gnulib/import/malloca.valgrind: Update.
2656         * gnulib/import/math.in.h: Update.
2657         * gnulib/import/mbrtowc.c: Update.
2658         * gnulib/import/mbsinit.c: Update.
2659         * gnulib/import/mbsrtowcs-impl.h: Update.
2660         * gnulib/import/mbsrtowcs-state.c: Update.
2661         * gnulib/import/mbsrtowcs.c: Update.
2662         * gnulib/import/memchr.c: Update.
2663         * gnulib/import/memmem.c: Update.
2664         * gnulib/import/mempcpy.c: Update.
2665         * gnulib/import/memrchr.c: Update.
2666         * gnulib/import/mkdir.c: Update.
2667         * gnulib/import/mkstemp.c: Update.
2668         * gnulib/import/msvc-inval.c: Update.
2669         * gnulib/import/msvc-inval.h: Update.
2670         * gnulib/import/msvc-nothrow.c: Update.
2671         * gnulib/import/msvc-nothrow.h: Update.
2672         * gnulib/import/open.c: Update.
2673         * gnulib/import/openat-die.c: Update.
2674         * gnulib/import/openat-priv.h: Update.
2675         * gnulib/import/openat-proc.c: Update.
2676         * gnulib/import/openat.c: Update.
2677         * gnulib/import/openat.h: Update.
2678         * gnulib/import/opendir.c: Update.
2679         * gnulib/import/pathmax.h: Update.
2680         * gnulib/import/pipe-safer.c: Update.
2681         * gnulib/import/rawmemchr.c: Update.
2682         * gnulib/import/readdir.c: Update.
2683         * gnulib/import/readlink.c: Update.
2684         * gnulib/import/realloc.c: Update.
2685         * gnulib/import/ref-add.sin: Update.
2686         * gnulib/import/ref-del.sin: Update.
2687         * gnulib/import/rename.c: Update.
2688         * gnulib/import/rewinddir.c: Update.
2689         * gnulib/import/rmdir.c: Update.
2690         * gnulib/import/same-inode.h: Update.
2691         * gnulib/import/save-cwd.c: Update.
2692         * gnulib/import/save-cwd.h: Update.
2693         * gnulib/import/scratch_buffer.h: Update.
2694         * gnulib/import/secure_getenv.c: Update.
2695         * gnulib/import/setenv.c: Update.
2696         * gnulib/import/signal.in.h: Update.
2697         * gnulib/import/stat-time.c: Update.
2698         * gnulib/import/stat-time.h: Update.
2699         * gnulib/import/stat-w32.c: Update.
2700         * gnulib/import/stat-w32.h: Update.
2701         * gnulib/import/stat.c: Update.
2702         * gnulib/import/stdbool.in.h: Update.
2703         * gnulib/import/stddef.in.h: Update.
2704         * gnulib/import/stdint.in.h: Update.
2705         * gnulib/import/stdio.in.h: Update.
2706         * gnulib/import/stdlib.in.h: Update.
2707         * gnulib/import/str-two-way.h: Update.
2708         * gnulib/import/strchrnul.c: Update.
2709         * gnulib/import/strdup.c: Update.
2710         * gnulib/import/streq.h: Update.
2711         * gnulib/import/strerror-override.c: Update.
2712         * gnulib/import/strerror-override.h: Update.
2713         * gnulib/import/strerror.c: Update.
2714         * gnulib/import/string.in.h: Update.
2715         * gnulib/import/stripslash.c: Update.
2716         * gnulib/import/strnlen1.c: Update.
2717         * gnulib/import/strnlen1.h: Update.
2718         * gnulib/import/strstr.c: Update.
2719         * gnulib/import/strtok_r.c: Update.
2720         * gnulib/import/sys_stat.in.h: Update.
2721         * gnulib/import/sys_time.in.h: Update.
2722         * gnulib/import/sys_types.in.h: Update.
2723         * gnulib/import/tempname.c: Update.
2724         * gnulib/import/tempname.h: Update.
2725         * gnulib/import/time.in.h: Update.
2726         * gnulib/import/unistd--.h: Update.
2727         * gnulib/import/unistd-safer.h: Update.
2728         * gnulib/import/unistd.in.h: Update.
2729         * gnulib/import/unsetenv.c: Update.
2730         * gnulib/import/verify.h: Update.
2731         * gnulib/import/extra/snippet/warn-on-use.h: Update.
2732         * gnulib/import/wchar.in.h: Update.
2733         * gnulib/import/wctype.in.h: Update.
2734         * gnulib/import/xalloc-oversized.h: Update.
2735         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2736         "53e2c179f26a890fa6685af4b6c1397ee370433b".
2737
2738 2018-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2739
2740         * record-btrace.c (get_thread_current_frame): Remove
2741         old_inferior_ptid.
2742
2743 2018-09-10  Jerome Guitton  <guitton@adacore.com>
2744
2745         * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
2746         with check_tag to 1 if and only if the type is tagged and the
2747         component being searched cannot been found in the current
2748         view. Otherwise, always call ada_to_fixed_type with
2749         check_tag to 0.
2750
2751 2018-09-10  Xavier Roirand  <roirand@adacore.com>
2752
2753         * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
2754         declaration.
2755         * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
2756         * ada-varobj.c (ada_varobj_get_number_of_children,
2757         ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
2758
2759 2018-09-10  Xavier Roirand  <roirand@adacore.com>
2760
2761         * ada-valprint.c (ada_value_print): Use type instead of
2762         enclosing type.
2763
2764 2018-09-10  Xavier Roirand  <roirand@adacore.com>
2765
2766         * ada-lang.c (ada_value_subscript): Handle case when parameter is
2767         an array of access to unconstrained array.
2768
2769 2018-09-10  Xavier Roirand  <roirand@adacore.com>
2770
2771         * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
2772         (ada_check_typedef): Use it.
2773
2774 2018-09-10  Xavier Roirand  <roirand@adacore.com>
2775
2776         * ada-varobj.c (ada_varobj_describe_struct_child)
2777         (ada_varobj_describe_child): Handle union case like struct one.
2778
2779 2018-09-10  Tom Tromey  <tom@tromey.com>
2780
2781         PR python/18380:
2782         * python/python.c (_initialize_python): Make example in "python"
2783         help work in Python 3.
2784
2785 2018-09-10  Eli Zaretskii  <eliz@gnu.org>
2786
2787         * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
2788         INSTALL_PROGRAM to install gdb-add-index.sh.  Don't append
2789         $(EXEEXT) to the script, as it is not a program.
2790
2791 2018-09-09  Simon Marchi  <simon.marchi@ericsson.com>
2792
2793         * python/py-prettyprint.c (pretty_print_one_value): Return
2794         gdbpy_ref<>.
2795         (print_string_repr): Adjust.
2796         (apply_varobj_pretty_printer): Return gdbpy_ref<>.
2797         * python/python-internal.h (apply_varobj_pretty_printer): Return
2798         gdbpy_ref<>.
2799         * varobj.c (varobj_value_get_print_value): Adjust.
2800
2801 2018-09-08  Tom Tromey  <tom@tromey.com>
2802
2803         PR python/16047:
2804         * python/py-prettyprint.c (pretty_print_one_value): Check for
2805         to_string method.
2806
2807 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
2808
2809         * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
2810         replace_operator_with_call.
2811
2812 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
2813
2814         * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
2815
2816 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
2817
2818         * ada-typeprint.c (print_range): Print the bounds using TYPE
2819         rather than its TYPE_TARGET_TYPE.
2820
2821 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
2822
2823         * ada-lang.c (ada_to_fixed_value): Minor reformatting in
2824         call to ada_to_fixed_value_create.
2825
2826 2018-09-08  Jerome Guitton  <guitton@adacore.com>
2827
2828         * ada-lang.c (ada_decode): strip dot prefix in symbol name.
2829
2830 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
2831
2832         * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
2833         by calls to error.
2834
2835 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
2836
2837         * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
2838         Move update of loop variable "fi".
2839
2840 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
2841
2842         * ada-lang.c (value_assign_to_component): In the case of
2843         big-endian targets, extract the bits of the given VAL
2844         using an src_offset of zero if container is not a scalar.
2845
2846 2018-09-06  Simon Ser  <contact@emersion.fr>
2847
2848         PR gdb/23105
2849         * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
2850         TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2851         * fbsd-tdep.c (fbsd_make_note_desc): New.
2852         (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
2853         NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
2854         * target.h (enum target_object) Add FreeBSD-specific
2855         TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2856
2857 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
2858
2859         * compile/compile-c.h (generate_c_for_variable_locations):
2860         Change reference to pointer.
2861         * compile/compile-c-support.c (compile_program) <compute>:
2862         Likewise.
2863         * compile/compile-c-symbols.c (generate_vla_size): Likewise.
2864         (generate_c_for_for_one_variable): Likewise
2865         (generate_c_for_variable_locations): Likewise
2866         * compile/compile-c-types.c (compile_c_instance::convert_type):
2867         Likewise
2868         * compile/compile-cplus-symbols.c (convert_one_symbol):
2869         std::move the scope passed to enter_scope.
2870         * compile/compile-cplus-types.c
2871         (compile_cplus_instance::enter_scope): Make parameter
2872         rvalue-reference.
2873         (compile_cplus_instance::new_scope): Change reference to
2874         pointer.
2875         (compile_cplus_instance::convert_type): Likewise
2876         (compile_cplus_convert_typedef): std::move the scope passed to
2877         enter_scope.
2878         (compile_cplus_convert_struct_or_union): Likewise.
2879         (compile_cplus_convert_enum): Likewise.
2880         (compile_cplus_convert_namespace): Likewise.
2881         * compile/compile-cplus.h (compile_cplus_instance)
2882         <enter_scope>: Make parameter rvalue-reference.
2883         * compile/compile-internal.h (compile_instance)
2884         <get_cached_type>: Likewise
2885         * compile/compile-loc2c.c (push): Likewise
2886         (pushf): Likewise
2887         (unary): Likewise
2888         (binary): Likewise
2889         (print_label): Likewise
2890         (pushf_register_address): Likewise
2891         (pushf_register): Likewise
2892         (do_compile_dwarf_expr_to_c): Likewise
2893         (compile_dwarf_expr_to_c): Likewise
2894         (compile_dwarf_bounds_to_c): Likewise
2895         * compile/compile.c (compile_instance::get_cached_type):
2896         Likewise
2897         * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
2898         (compile_dwarf_bounds_to_c): Likewise
2899         * dwarf2loc.c (locexpr_generate_c_location): Likewise.
2900         (dwarf2_compile_property_to_c): Likewise
2901         * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
2902         * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2903         Likewise
2904
2905 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
2906
2907         * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
2908         * tui/tui-data.c (init_content_element): Don't initialize it.
2909
2910 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
2911
2912         * tui/tui-data.h (struct tui_win_info)
2913         <detail::opaque>: Remove.
2914         * tui/tui-data.c (init_win_info): Remove assignment.
2915
2916 2018-09-05  Tom Tromey  <tom@tromey.com>
2917
2918         * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
2919         -Wformat-nonliteral.
2920         * target-float.c (host_float_ops<T>::to_string)
2921         (host_float_ops<T>::from_string): Use
2922         DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2923         * configure: Rebuild.
2924
2925 2018-09-05  Simon Marchi  <simon.marchi@ericsson.com>
2926
2927         * printcmd.c (printf_c_string): Use
2928         DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2929         (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
2930
2931 2018-09-05  Tom Tromey  <tom@tromey.com>
2932
2933         * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
2934
2935 2018-09-05  Tom de Vries  <tdevries@suse.de>
2936
2937         * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
2938         with resolve_abstract_p == true.
2939         (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
2940         defaulting to false. Propagate resolve_abstract_p to
2941         dwarf2_fetch_die_loc_sect_off.
2942         * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
2943         parameter, defaulting to false.
2944         * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
2945         (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
2946         parameter.
2947         * dwarf2read.h (struct die_info): Forward-declare.
2948         (die_info_ptr): New typedef.
2949         (struct dwarf2_per_objfile): Add abstract_to_concrete field.
2950
2951 2018-09-05  Joel Brobecker  <brobecker@adacore.com>
2952
2953         GDB 8.2 released.
2954
2955 2018-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
2956             Pedro Alves  <palves@redhat.com>
2957
2958         * gnulib/Makefile.in (aclocal_m4_deps): Move to
2959         "aclocal-m4-deps.mk".  Include file here.
2960         $(srcdir)/aclocal.m4: Add "configure.ac".
2961         * gnulib/aclocal-m4-deps.mk: New file.
2962         * gnulib/update-gnulib.sh: Automatically update
2963         "aclocal-m4-deps.mk".
2964
2965 2018-09-04  Tom Tromey  <tom@tromey.com>
2966
2967         * configure: Rebuild.
2968         * configure.ac: Remove multi-ice code.
2969
2970 2018-09-04  Tom Tromey  <tom@tromey.com>
2971
2972         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
2973         (ada-exp.o): Update.
2974
2975 2018-09-04  Tom Tromey  <tom@tromey.com>
2976
2977         * Makefile.in (printcmd.o, target-float.o): Remove.
2978         (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
2979
2980 2018-09-04  Tom Tromey  <tom@tromey.com>
2981
2982         * gnulib/Makefile.in: Remove obsolete comment.
2983         * Makefile.in: Remove obsolete comment.
2984
2985 2018-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2986
2987         * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
2988         line with '+'.
2989
2990 2018-09-03  Andrew Burgess  <andrew.burgess@embecosm.com>
2991
2992         * riscv-tdep.c: Add 'prologue-value.h' include.
2993         (struct riscv_unwind_cache): New struct.
2994         (riscv_debug_unwinder): New global.
2995         (riscv_scan_prologue): Update arguments, capture register details
2996         from prologue scan.
2997         (riscv_skip_prologue): Reformat arguments line, move end of
2998         prologue calculation into riscv_scan_prologue.
2999         (riscv_frame_cache): Update return type, create
3000         riscv_unwind_cache, scan the prologue, and fill in remaining cache
3001         details.
3002         (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
3003         (riscv_frame_prev_register): Use the trad_frame within the
3004         riscv_unwind_cache.
3005         (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
3006         flag.
3007
3008 2018-09-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3009
3010         * trad-frame.h (trad_frame_set_realreg): Declare.
3011         (trad_frame_set_addr): Declare.
3012         * trad-frame.c (trad_frame_set_realreg): Define new function.
3013         (trad_frame_set_addr): Define new function.
3014         (trad_frame_set_reg_realreg): Use new function.
3015         (trad_frame_set_reg_addr): Use new function.
3016
3017 2018-09-01  Keith Seitz  <keiths@redhat.com>
3018
3019         * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
3020         pulongest instead of "%lld".
3021         * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
3022         ATTRIBUTE_UNUSED.
3023
3024 2018-08-31  Tom Tromey  <tom@tromey.com>
3025
3026         * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
3027         variant part type.
3028
3029 2018-08-31  Pedro Alves  <palves@redhat.com>
3030
3031         * gdbarch.h: Regenerate.
3032
3033 2018-08-31  Pedro Alves  <palves@redhat.com>
3034
3035         * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
3036         * target.h (Hardware watchpoint interfaces): Describe
3037         continuable/steppable/non-steppable watchpoints.
3038         * gdbarch.h, gdbarch.c: Regenerate.
3039
3040 2018-08-31  Pedro Alves  <palves@redhat.com>
3041
3042         * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
3043         Delete.
3044         * s390-linux-nat.c
3045         (s390_linux_nat_target::have_continuable_watchpoint): Delete.
3046         * target.h (target_ops::have_continuable_watchpoint): Delete.
3047         (target_have_continuable_watchpoint): Delete.
3048         * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
3049         * target-delegates.c: Regenerate.
3050
3051 2018-08-31  Sergio Durigan Junior  <sergiodj@redhat.com>
3052
3053         * gnulib/Makefile.in (aclocal_m4_deps): Update according to
3054         the files present in "gnulib/import/m4/".
3055
3056 2018-08-30  Andrew Burgess  <andrew.burgess@embecosm.com>
3057
3058         * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
3059         c.sw, c.swsp, and c.sdsp.
3060
3061 2018-08-30  Andrew Burgess  <andrew.burgess@embecosm.com>
3062
3063         * riscv-tdep.c (struct riscv_inferior_data): Delete.
3064         (riscv_read_misa_reg): Don't cache value read into inferior data.
3065         (riscv_new_inferior_data): Delete.
3066         (riscv_inferior_data_cleanup): Delete.
3067         (riscv_inferior_data): Delete.
3068         (riscv_invalidate_inferior_data): Delete.
3069         (_initialize_riscv_tdep): Remove initialisation of inferior data.
3070
3071 2018-08-30  Simon Marchi  <simon.marchi@ericsson.com>
3072
3073         * compile/compile-cplus-types.c
3074         (compile_cplus_instance::leave_scope): Take the address of scope
3075         object.
3076         (compile_cplus_instance::convert_qualified_base): Compare quals
3077         to 0.
3078
3079 2018-08-30  Keith Seitz  <keiths@redhat.com>
3080
3081         * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
3082         Use "%s" and host_address_to_string instead of "%p" in printf.
3083
3084 2018-08-29  Keith Seitz  <keiths@redhat.com>
3085
3086         * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
3087         and compile-cplus-types.c.
3088         (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
3089         * c-lang.c (cplus_language_defn): Set C++ compile functions.
3090         * c-lang.h (cplus_get_compile_context, cplus_compute_program):
3091         Declare.
3092         * compile/compile-c-support.c: Include compile-cplus.h.
3093         (load_libcompile): Templatize.
3094         (get_compile_context): "New" function.
3095         (c_get_compile_context): Use get_compile_context.
3096         (cplus_get_compile_context): New function.
3097         (cplus_push_user_expression, cplus_pop_user_expression)
3098         (cplus_add_code_header, cplus_add_input, cplus_compile_program)
3099         (cplus_compute_program): Define new structs/functions.
3100         * compile/compile-cplus-symmbols.c: New file.
3101         * compile/compile-cplus-types.c: New file.
3102         * compile/compile-cplus.h: New file.
3103         * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
3104         Declare.
3105         * compile/compile-object-load.c (get_out_value_type): Use
3106         strncmp_iw when comparing symbol names.
3107         (compile_object_load): Add mst_bss and mst_data.
3108         * compile/compile.c (_initialize_compile): Remove
3109         -Wno-implicit-function-declaration from `compile_args'.
3110         * compile/gcc-cp-plugin.h: New file.
3111         * NEWS: Mention C++ compile support and new debug options.
3112
3113 2018-08-29  Keith Seitz  <keiths@redhat.com>
3114
3115         * linespec.c (collect_info::add_symbol): Make virtual.
3116         (struct symbol_searcher_collect_info): New struct.
3117         (symbol_searcher::find_all_symbols): New method.
3118         * symtab.h (class symbol_searcher): New class.
3119
3120 2018-08-29  Keith Seitz  <keiths@redhat.com>
3121
3122         * linespec.c (struct linespec) <function_symbols, label_symbols>:
3123         Change to vector of block_symbol.  Update all users.
3124         (struct collect_info) <symbols>: Likewise.
3125         (collect_info::add_symbol): Take block_symbol as argument.
3126         Update all callers.
3127         (decode_compound_collector) <m_symbols>: Change type to vector
3128         of block_symbol.  Update all users.
3129         (decode_compound_collector::operator ()): Change parameter type
3130         to block_symbol.
3131         (find_method, find_function_symbols, find_linespec_symbols)
3132         (find_label_symbols_in_block, find_label_symbols): Change symbol
3133         vectors to block_symbol vectors.
3134         * symtab.h (symbol_found_callback_ftype): Change parameter type to
3135         block_symbol.
3136
3137 2018-08-29  Keith Seitz  <keiths@redhat.com>
3138
3139         * linespec.c (symbolp): Remove typedef and VEC definitions.
3140         (bound_minimal_symbol_d): Likewise.
3141
3142 2018-08-29  Keith Seitz  <keiths@redhat.com>
3143
3144         * linespec.c (decode_compound_collector::decode_compound_collector):
3145         Remove initialization for `m_symtabs'.
3146         (decode_compound_collector::release_symbols): Change return type
3147         to std::vector.  Update all callers.
3148         (class decode_compound_collector) <m_symbols>: Change type to
3149         std::vector.
3150         (lookup_prefix_sym): Change return type to std::vector.  Update all
3151         callers.
3152         (compare_symbols): Remove.
3153         (std_compare_symbols): Rename to `compare_symbols'.
3154         (find_method): Change `sym_classes' parameter to std::vector.
3155         Update all callers.  Use std::sort to sort sym_classes.
3156         (find_linespec_symbols): Remove cleanup.
3157
3158 2018-08-29  Keith Seitz  <keiths@redhat.com>
3159
3160         * linespec.c (struct linespec) <minimal_symbols>: Change type to
3161         std::vector.  Update all users.
3162         (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
3163         (struct collect_info) <minimal_symbols>: Likewise.
3164         (compare_msymbols): Return bool.  Change parameters to const
3165         bound_minimal_symbol references.
3166         (find_method, find_function_symbols, find_linespec_symbols): Change
3167         `minsyms' parameter to std::vector.  Update all callers.
3168
3169 2018-08-29  Keith Seitz  <keiths@redhat.com>
3170
3171         * linespec.c (struct linespec) <label_symbols>: Change type to
3172         std::vector.  Update all users.
3173         (find_label_symbols_in_block): Change `result' parameter to
3174         std::vector.  Update all callers.
3175         (find_label_symbols): Return std::vector.  Update all callers.
3176
3177 2018-08-29  Keith Seitz  <keiths@redhat.com>
3178
3179         * linespec.c (struct linespec) <function_symbols>: Change type to
3180         std::vector.  Update all users.
3181         (struct collect_info) <function_symbols>: Likewise.
3182         (convert_linespec_to_sals): Use std::sort to sort function_symbols.
3183         (std_compare_symbols): New function.
3184         (find_method, find_function_symbols, find_linespec_symbols)
3185         (find_label_symbols_in_block): Change `symbols' parameter to
3186         std::vector.  Update all callers.
3187         (find_label_symbols): Likewise for `function_symbols' and
3188         `label_funcs_ret'.
3189
3190 2018-08-29  Keith Seitz  <keiths@redhat.com>
3191
3192         * linespec.c (symtab_vector_up): Define.
3193         (struct linespec) <file_symtabs>: Change type to std::vector *.
3194         Update all uses.
3195         (struct collect_info) <file_symtabs>: Likewise.
3196         (collect_symtabs_from_filename): Return symtab_vector_up.
3197         Update all callers.
3198         (decode_objc): Remove cleanup.
3199         (symtab_collector::symtab_collector): Initialize `m_symtabs'.
3200         (symtab_collector::release_symtabs): Return symtab_vector_up.
3201         Update all callers.
3202         (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
3203         Update all users.
3204         (collect_symtabs_from_filename, symtabs_from_filename): Return
3205         symtab_vector_up.  Update all callers.
3206
3207 2018-08-29  Tom Tromey  <tom@tromey.com>
3208
3209         * csky-tdep.c (csky_analyze_prologue): Use
3210         core_addr_to_string_nz.
3211
3212 2018-08-29  Tom Tromey  <tom@tromey.com>
3213
3214         * windows-nat.c (struct xlate_exception) <them>: Change type to
3215         DWORD.
3216         (xlate): Fix formatting.  Remove last entry.
3217         (struct xlate_exception, xlate): Comment out.
3218         (windows_nat_target::resume): Use ranged for.
3219
3220 2018-08-29  Jim Wilson  <jimw@sifive.com>
3221
3222         * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
3223         (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
3224         of NT_PRFPREG.
3225         (riscv_linux_nat_target::store_registers): Likewise.
3226
3227 2018-08-29  Sergio Durigan Junior  <sergiodj@redhat.com>
3228
3229         PR gdb/23555
3230         PR gdb/23558
3231         * gnulib/aclocal.m4: Regenerate.
3232         * gnulib/config.in: Regenerate.
3233         * gnulib/configure: Regenerate.
3234         * gnulib/import/Makefile.am: Update.
3235         * gnulib/import/Makefile.in: Update.
3236         * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3237         * gnulib/import/_Noreturn.h: ... this.
3238         * gnulib/import/alloca.in.h: Update.
3239         * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3240         * gnulib/import/arg-nonnull.h: ... this.
3241         * gnulib/import/assure.h: Update.
3242         * gnulib/import/at-func.c: Update.
3243         * gnulib/import/basename-lgpl.c: Update.
3244         * gnulib/import/extra/snippet/c++defs.h: Rename to...
3245         * gnulib/import/c++defs.h: ... this.
3246         * gnulib/import/canonicalize-lgpl.c: Update.
3247         * gnulib/import/cdefs.h: Update.
3248         * gnulib/import/chdir-long.c: Update.
3249         * gnulib/import/chdir-long.h: Update.
3250         * gnulib/import/cloexec.c: Update.
3251         * gnulib/import/cloexec.h: Update.
3252         * gnulib/import/close.c: Update.
3253         * gnulib/import/closedir.c: Update.
3254         * gnulib/import/config.charset: Update.
3255         * gnulib/import/dirent-private.h: Update.
3256         * gnulib/import/dirent.in.h: Update.
3257         * gnulib/import/dirfd.c: Update.
3258         * gnulib/import/dirname-lgpl.c: Update.
3259         * gnulib/import/dirname.h: Update.
3260         * gnulib/import/dosname.h: Update.
3261         * gnulib/import/dup-safer-flag.c: Update.
3262         * gnulib/import/dup-safer.c: Update.
3263         * gnulib/import/dup.c: Update.
3264         * gnulib/import/dup2.c: Update.
3265         * gnulib/import/errno.in.h: Update.
3266         * gnulib/import/error.c: Update.
3267         * gnulib/import/error.h: Update.
3268         * gnulib/import/exitfail.c: Update.
3269         * gnulib/import/exitfail.h: Update.
3270         * gnulib/import/extra/update-copyright: Update.
3271         * gnulib/import/fchdir.c: Update.
3272         * gnulib/import/fcntl.c: Update.
3273         * gnulib/import/fcntl.in.h: Update.
3274         * gnulib/import/fd-hook.c: Update.
3275         * gnulib/import/fd-hook.h: Update.
3276         * gnulib/import/fd-safer-flag.c: Update.
3277         * gnulib/import/fd-safer.c: Update.
3278         * gnulib/import/fdopendir.c: Update.
3279         * gnulib/import/filename.h: Update.
3280         * gnulib/import/filenamecat-lgpl.c: Update.
3281         * gnulib/import/filenamecat.h: Update.
3282         * gnulib/import/flexmember.h: Update.
3283         * gnulib/import/float+.h: Update.
3284         * gnulib/import/float.c: Update.
3285         * gnulib/import/float.in.h: Update.
3286         * gnulib/import/fnmatch.c: Update.
3287         * gnulib/import/fnmatch.in.h: Update.
3288         * gnulib/import/fnmatch_loop.c: Update.
3289         * gnulib/import/fpucw.h: Update.
3290         * gnulib/import/frexp.c: Update.
3291         * gnulib/import/frexpl.c: Update.
3292         * gnulib/import/fstat.c: Update.
3293         * gnulib/import/fstatat.c: Update.
3294         * gnulib/import/getcwd-lgpl.c: Update.
3295         * gnulib/import/getcwd.c: Update.
3296         * gnulib/import/getdtablesize.c: Update.
3297         * gnulib/import/getlogin_r.c: Update.
3298         * gnulib/import/getprogname.c: Update.
3299         * gnulib/import/getprogname.h: Update.
3300         * gnulib/import/gettext.h: Update.
3301         * gnulib/import/gettimeofday.c: Update.
3302         * gnulib/import/glob-libc.h: Update.
3303         * gnulib/import/glob.c: Update.
3304         * gnulib/import/glob.in.h: Update.
3305         * gnulib/import/glob_internal.h: Update.
3306         * gnulib/import/glob_pattern_p.c: Update.
3307         * gnulib/import/globfree.c: Update.
3308         * gnulib/import/hard-locale.c: Update.
3309         * gnulib/import/hard-locale.h: Update.
3310         * gnulib/import/intprops.h: Update.
3311         * gnulib/import/inttypes.in.h: Update.
3312         * gnulib/import/isnan.c: Update.
3313         * gnulib/import/isnand-nolibm.h: Update.
3314         * gnulib/import/isnand.c: Update.
3315         * gnulib/import/isnanl-nolibm.h: Update.
3316         * gnulib/import/isnanl.c: Update.
3317         * gnulib/import/itold.c: Update.
3318         * gnulib/import/libc-config.h: Update.
3319         * gnulib/import/limits.in.h: Update.
3320         * gnulib/import/localcharset.c: Update.
3321         * gnulib/import/localcharset.h: Update.
3322         * gnulib/import/localtime-buffer.c: Update.
3323         * gnulib/import/localtime-buffer.h: Update.
3324         * gnulib/import/lstat.c: Update.
3325         * gnulib/import/m4/00gnulib.m4: Update.
3326         * gnulib/import/m4/__inline.m4: Update.
3327         * gnulib/import/m4/absolute-header.m4: Update.
3328         * gnulib/import/m4/alloca.m4: Update.
3329         * gnulib/import/m4/builtin-expect.m4: Update.
3330         * gnulib/import/m4/canonicalize.m4: Update.
3331         * gnulib/import/m4/chdir-long.m4: Update.
3332         * gnulib/import/m4/close.m4: Update.
3333         * gnulib/import/m4/closedir.m4: Update.
3334         * gnulib/import/m4/configmake.m4: Update.
3335         * gnulib/import/m4/d-ino.m4: Update.
3336         * gnulib/import/m4/d-type.m4: Update.
3337         * gnulib/import/m4/dirent_h.m4: Update.
3338         * gnulib/import/m4/dirfd.m4: Update.
3339         * gnulib/import/m4/dirname.m4: Update.
3340         * gnulib/import/m4/double-slash-root.m4: Update.
3341         * gnulib/import/m4/dup.m4: Update.
3342         * gnulib/import/m4/dup2.m4: Update.
3343         * gnulib/import/m4/eealloc.m4: Update.
3344         * gnulib/import/m4/environ.m4: Update.
3345         * gnulib/import/m4/errno_h.m4: Update.
3346         * gnulib/import/m4/error.m4: Update.
3347         * gnulib/import/m4/exponentd.m4: Update.
3348         * gnulib/import/m4/exponentl.m4: Update.
3349         * gnulib/import/m4/extensions.m4: Update.
3350         * gnulib/import/m4/extern-inline.m4: Update.
3351         * gnulib/import/m4/fchdir.m4: Update.
3352         * gnulib/import/m4/fcntl-o.m4: Update.
3353         * gnulib/import/m4/fcntl.m4: Update.
3354         * gnulib/import/m4/fcntl_h.m4: Update.
3355         * gnulib/import/m4/fdopendir.m4: Update.
3356         * gnulib/import/m4/filenamecat.m4: Update.
3357         * gnulib/import/m4/flexmember.m4: Update.
3358         * gnulib/import/m4/float_h.m4: Update.
3359         * gnulib/import/m4/fnmatch.m4: Update.
3360         * gnulib/import/m4/fnmatch_h.m4: Update.
3361         * gnulib/import/m4/fpieee.m4: Update.
3362         * gnulib/import/m4/frexp.m4: Update.
3363         * gnulib/import/m4/frexpl.m4: Update.
3364         * gnulib/import/m4/fstat.m4: Update.
3365         * gnulib/import/m4/fstatat.m4: Update.
3366         * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3367         * gnulib/import/m4/getcwd-path-max.m4: Update.
3368         * gnulib/import/m4/getcwd.m4: Update.
3369         * gnulib/import/m4/getdtablesize.m4: Update.
3370         * gnulib/import/m4/getlogin.m4: Update.
3371         * gnulib/import/m4/getlogin_r.m4: Update.
3372         * gnulib/import/m4/getpagesize.m4: Update.
3373         * gnulib/import/m4/getprogname.m4: Update.
3374         * gnulib/import/m4/gettimeofday.m4: Update.
3375         * gnulib/import/m4/glibc21.m4: Update.
3376         * gnulib/import/m4/glob.m4: Update.
3377         * gnulib/import/m4/glob_h.m4: Update.
3378         * gnulib/import/m4/gnulib-cache.m4: Update.
3379         * gnulib/import/m4/gnulib-common.m4: Update.
3380         * gnulib/import/m4/gnulib-comp.m4: Update.
3381         * gnulib/import/m4/gnulib-tool.m4: Update.
3382         * gnulib/import/m4/hard-locale.m4: Update.
3383         * gnulib/import/m4/include_next.m4: Update.
3384         * gnulib/import/m4/inttypes-pri.m4: Update.
3385         * gnulib/import/m4/inttypes.m4: Update.
3386         * gnulib/import/m4/isnand.m4: Update.
3387         * gnulib/import/m4/isnanl.m4: Update.
3388         * gnulib/import/m4/largefile.m4: Update.
3389         * gnulib/import/m4/limits-h.m4: Update.
3390         * gnulib/import/m4/localcharset.m4: Update.
3391         * gnulib/import/m4/locale-fr.m4: Update.
3392         * gnulib/import/m4/locale-ja.m4: Update.
3393         * gnulib/import/m4/locale-zh.m4: Update.
3394         * gnulib/import/m4/localtime-buffer.m4: Update.
3395         * gnulib/import/m4/longlong.m4: Update.
3396         * gnulib/import/m4/lstat.m4: Update.
3397         * gnulib/import/m4/malloc.m4: Update.
3398         * gnulib/import/m4/malloca.m4: Update.
3399         * gnulib/import/m4/math_h.m4: Update.
3400         * gnulib/import/m4/mbrtowc.m4: Update.
3401         * gnulib/import/m4/mbsinit.m4: Update.
3402         * gnulib/import/m4/mbsrtowcs.m4: Update.
3403         * gnulib/import/m4/mbstate_t.m4: Update.
3404         * gnulib/import/m4/memchr.m4: Update.
3405         * gnulib/import/m4/memmem.m4: Update.
3406         * gnulib/import/m4/mempcpy.m4: Update.
3407         * gnulib/import/m4/memrchr.m4: Update.
3408         * gnulib/import/m4/mkdir.m4: Update.
3409         * gnulib/import/m4/mkstemp.m4: Update.
3410         * gnulib/import/m4/mmap-anon.m4: Update.
3411         * gnulib/import/m4/mode_t.m4: Update.
3412         * gnulib/import/m4/msvc-inval.m4: Update.
3413         * gnulib/import/m4/msvc-nothrow.m4: Update.
3414         * gnulib/import/m4/multiarch.m4: Update.
3415         * gnulib/import/m4/nocrash.m4: Update.
3416         * gnulib/import/m4/off_t.m4: Update.
3417         * gnulib/import/m4/onceonly.m4: Update.
3418         * gnulib/import/m4/open-cloexec.m4: Update.
3419         * gnulib/import/m4/open.m4: Update.
3420         * gnulib/import/m4/openat.m4: Update.
3421         * gnulib/import/m4/opendir.m4: Update.
3422         * gnulib/import/m4/pathmax.m4: Update.
3423         * gnulib/import/m4/rawmemchr.m4: Update.
3424         * gnulib/import/m4/readdir.m4: Update.
3425         * gnulib/import/m4/readlink.m4: Update.
3426         * gnulib/import/m4/realloc.m4: Update.
3427         * gnulib/import/m4/rename.m4: Update.
3428         * gnulib/import/m4/rewinddir.m4: Update.
3429         * gnulib/import/m4/rmdir.m4: Update.
3430         * gnulib/import/m4/save-cwd.m4: Update.
3431         * gnulib/import/m4/secure_getenv.m4: Update.
3432         * gnulib/import/m4/setenv.m4: Update.
3433         * gnulib/import/m4/signal_h.m4: Update.
3434         * gnulib/import/m4/ssize_t.m4: Update.
3435         * gnulib/import/m4/stat-time.m4: Update.
3436         * gnulib/import/m4/stat.m4: Update.
3437         * gnulib/import/m4/std-gnu11.m4: Update.
3438         * gnulib/import/m4/stdbool.m4: Update.
3439         * gnulib/import/m4/stddef_h.m4: Update.
3440         * gnulib/import/m4/stdint.m4: Update.
3441         * gnulib/import/m4/stdio_h.m4: Update.
3442         * gnulib/import/m4/stdlib_h.m4: Update.
3443         * gnulib/import/m4/strchrnul.m4: Update.
3444         * gnulib/import/m4/strdup.m4: Update.
3445         * gnulib/import/m4/strerror.m4: Update.
3446         * gnulib/import/m4/string_h.m4: Update.
3447         * gnulib/import/m4/strstr.m4: Update.
3448         * gnulib/import/m4/strtok_r.m4: Update.
3449         * gnulib/import/m4/sys_socket_h.m4: Update.
3450         * gnulib/import/m4/sys_stat_h.m4: Update.
3451         * gnulib/import/m4/sys_time_h.m4: Update.
3452         * gnulib/import/m4/sys_types_h.m4: Update.
3453         * gnulib/import/m4/tempname.m4: Update.
3454         * gnulib/import/m4/time_h.m4: Update.
3455         * gnulib/import/m4/unistd-safer.m4: Update.
3456         * gnulib/import/m4/unistd_h.m4: Update.
3457         * gnulib/import/m4/warn-on-use.m4: Update.
3458         * gnulib/import/m4/wchar_h.m4: Update.
3459         * gnulib/import/m4/wchar_t.m4: Update.
3460         * gnulib/import/m4/wctype_h.m4: Update.
3461         * gnulib/import/m4/wint_t.m4: Update.
3462         * gnulib/import/malloc.c: Update.
3463         * gnulib/import/malloc/scratch_buffer.h: Update.
3464         * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3465         * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3466         * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3467         * gnulib/import/malloca.c: Update.
3468         * gnulib/import/malloca.h: Update.
3469         * gnulib/import/malloca.valgrind: Update.
3470         * gnulib/import/math.in.h: Update.
3471         * gnulib/import/mbrtowc.c: Update.
3472         * gnulib/import/mbsinit.c: Update.
3473         * gnulib/import/mbsrtowcs-impl.h: Update.
3474         * gnulib/import/mbsrtowcs-state.c: Update.
3475         * gnulib/import/mbsrtowcs.c: Update.
3476         * gnulib/import/memchr.c: Update.
3477         * gnulib/import/memmem.c: Update.
3478         * gnulib/import/mempcpy.c: Update.
3479         * gnulib/import/memrchr.c: Update.
3480         * gnulib/import/mkdir.c: Update.
3481         * gnulib/import/mkstemp.c: Update.
3482         * gnulib/import/msvc-inval.c: Update.
3483         * gnulib/import/msvc-inval.h: Update.
3484         * gnulib/import/msvc-nothrow.c: Update.
3485         * gnulib/import/msvc-nothrow.h: Update.
3486         * gnulib/import/open.c: Update.
3487         * gnulib/import/openat-die.c: Update.
3488         * gnulib/import/openat-priv.h: Update.
3489         * gnulib/import/openat-proc.c: Update.
3490         * gnulib/import/openat.c: Update.
3491         * gnulib/import/openat.h: Update.
3492         * gnulib/import/opendir.c: Update.
3493         * gnulib/import/pathmax.h: Update.
3494         * gnulib/import/pipe-safer.c: Update.
3495         * gnulib/import/rawmemchr.c: Update.
3496         * gnulib/import/readdir.c: Update.
3497         * gnulib/import/readlink.c: Update.
3498         * gnulib/import/realloc.c: Update.
3499         * gnulib/import/ref-add.sin: Update.
3500         * gnulib/import/ref-del.sin: Update.
3501         * gnulib/import/rename.c: Update.
3502         * gnulib/import/rewinddir.c: Update.
3503         * gnulib/import/rmdir.c: Update.
3504         * gnulib/import/same-inode.h: Update.
3505         * gnulib/import/save-cwd.c: Update.
3506         * gnulib/import/save-cwd.h: Update.
3507         * gnulib/import/scratch_buffer.h: Update.
3508         * gnulib/import/secure_getenv.c: Update.
3509         * gnulib/import/setenv.c: Update.
3510         * gnulib/import/signal.in.h: Update.
3511         * gnulib/import/stat-time.c: Update.
3512         * gnulib/import/stat-time.h: Update.
3513         * gnulib/import/stat-w32.c: Update.
3514         * gnulib/import/stat-w32.h: Update.
3515         * gnulib/import/stat.c: Update.
3516         * gnulib/import/stdbool.in.h: Update.
3517         * gnulib/import/stddef.in.h: Update.
3518         * gnulib/import/stdint.in.h: Update.
3519         * gnulib/import/stdio.in.h: Update.
3520         * gnulib/import/stdlib.in.h: Update.
3521         * gnulib/import/str-two-way.h: Update.
3522         * gnulib/import/strchrnul.c: Update.
3523         * gnulib/import/strdup.c: Update.
3524         * gnulib/import/streq.h: Update.
3525         * gnulib/import/strerror-override.c: Update.
3526         * gnulib/import/strerror-override.h: Update.
3527         * gnulib/import/strerror.c: Update.
3528         * gnulib/import/string.in.h: Update.
3529         * gnulib/import/stripslash.c: Update.
3530         * gnulib/import/strnlen1.c: Update.
3531         * gnulib/import/strnlen1.h: Update.
3532         * gnulib/import/strstr.c: Update.
3533         * gnulib/import/strtok_r.c: Update.
3534         * gnulib/import/sys_stat.in.h: Update.
3535         * gnulib/import/sys_time.in.h: Update.
3536         * gnulib/import/sys_types.in.h: Update.
3537         * gnulib/import/tempname.c: Update.
3538         * gnulib/import/tempname.h: Update.
3539         * gnulib/import/time.in.h: Update.
3540         * gnulib/import/unistd--.h: Update.
3541         * gnulib/import/unistd-safer.h: Update.
3542         * gnulib/import/unistd.in.h: Update.
3543         * gnulib/import/unsetenv.c: Update.
3544         * gnulib/import/verify.h: Update.
3545         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3546         * gnulib/import/wchar.in.h: Update.
3547         * gnulib/import/wctype.in.h: Update.
3548         * gnulib/import/xalloc-oversized.h: Update.
3549         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3550         "53e2c179f26a890fa6685af4b6c1397ee370433b".
3551
3552 2018-08-16  Gary Benson <gbenson@redhat.com>
3553
3554         PR gdb/13000:
3555         * gdb/main.c (captured_main_1): Exit with nonzero status
3556         in batch mode if the last command to be executed failed.
3557         * NEWS: Mention the above.
3558
3559 2018-08-29  Simon Marchi  <simon.marchi@ericsson.com>
3560
3561         * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
3562         end of warning message.
3563
3564 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
3565
3566         PR gdb/22943:
3567         * aarch64-tdep.c (is_hfa_or_hva): Remove function.
3568         (aarch64_extract_return_value): Use
3569         aapcs_is_vfp_call_or_return_candidate.
3570         (aarch64_return_in_memory): Likewise.
3571         (aarch64_store_return_value): Likewise.
3572
3573 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
3574
3575         * aarch64-tdep.c
3576         (aapcs_is_vfp_call_or_return_candidate): Make static
3577         (pass_in_v_or_stack): Remove function.
3578         (pass_in_v_vfp_candidate): New function.
3579         (aarch64_push_dummy_call): Check for float register candidates.
3580
3581 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
3582
3583         * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
3584         (aapcs_is_vfp_call_or_return_candidate_1): New function.
3585         (aapcs_is_vfp_call_or_return_candidate): Likewise.
3586
3587 2018-08-28  Simon Marchi  <simon.marchi@polymtl.ca>
3588
3589         PR build/23399
3590         * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
3591         (struct ipa_sym_addresses): Rename to...
3592         (struct ipa_sym_addresses_common): ... this.
3593         * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
3594
3595 2018-08-28  Tom Tromey  <tom@tromey.com>
3596
3597         * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3598         (token_fifo): Now a std::vector.
3599         (yylex, c_parse): Update.
3600         * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3601         (token_fifo): Now a std::vector.
3602         (yylex, d_parse): Update.
3603         * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3604         (token_fifo): Now a std::vector.
3605         (yylex, go_parse): Update.
3606
3607 2018-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3608
3609         * parser-defs.h (struct type_stack) <elements>: Change type to
3610         std::vector<union type_stack_elt>.
3611         <depth, size>: Remove.
3612         * parse.c (parse_exp_in_context_1): Adjust.
3613         (type_stack_reserve): Remove.
3614         (check_type_stack_depth): Remove.
3615         (insert_into_type_stack): Adjust to std::vector.
3616         (insert_type): Likewise.
3617         (push_type): Likewise.
3618         (push_type_int): Likewise.
3619         (insert_type_address_space): Likewise.
3620         (pop_type): Likewise.
3621         (pop_type_int): Likewise.
3622         (pop_typelist): Likewise.
3623         (pop_type_stack): Likewise.
3624         (append_type_stack): Likewise.
3625         (push_type_stack): Likewise.
3626         (get_type_stack): Likewise.
3627         (type_stack_cleanup): Likewise.
3628         (push_typelist): Likewise.
3629         (follow_types): Likewise.
3630         (_initialize_parse): Likewise.
3631
3632 2018-08-28  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3633
3634         * NEWS: Mention csky target.
3635
3636 2018-08-28  Jiangshuai Li  <jiangshuai_li@c-sky.com>
3637             Hafiz Abid Qadeer  <abidh@codesourcery.com>
3638             Don Breazeal  <donb@codesourcery.com>
3639
3640         * csky-linux-tdep.c: New file.
3641         * csky-tdep.c: Likewise.
3642         * csky-tdep.h: Likewise.
3643         * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
3644         csky-tdep.o.
3645         (HFILES_NO_SRCDIR): Add csky-tdep.h.
3646         (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
3647         * configure.tgt: Add csky support.
3648
3649 2018-08-27  Jan Vrany  <jan.vrany@fit.cvut.cz>
3650
3651         * python/py-framefilter.c (py_print_frame): Print frame architecture
3652         when printing on an MI output.
3653
3654 2018-08-27  Tom Tromey  <tom@tromey.com>
3655
3656         PR build/23087:
3657         * configure: Rebuild.
3658         * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
3659
3660 2018-08-27  Tom Tromey  <tom@tromey.com>
3661
3662         * aarch64-linux-tdep.c
3663         (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
3664         casts to int.
3665
3666 2018-08-27  Tom Tromey  <tom@tromey.com>
3667
3668         * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
3669         unsigned.
3670         (ppc64_standard_linkage1, ppc64_standard_linkage2)
3671         (ppc64_standard_linkage3, ppc64_standard_linkage4)
3672         (ppc64_standard_linkage5, ppc64_standard_linkage6)
3673         (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
3674         unsigned.
3675
3676 2018-08-27  Tom Tromey  <tom@tromey.com>
3677
3678         * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
3679         (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
3680
3681 2018-08-27  Tom Tromey  <tom@tromey.com>
3682
3683         * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
3684         * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
3685         ULONGEST_MAX.
3686         * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
3687         ULONGEST_MAX.
3688         * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
3689         ULONGEST_MAX.
3690         * sparc-linux-tdep.c (sparc32_linux_sigframe)
3691         (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
3692         * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
3693         ULONGEST_MAX.
3694         * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
3695         (ppc64_linux_sigaction_tramp_frame)
3696         (ppc32_linux_sighandler_tramp_frame)
3697         (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
3698         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
3699         (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
3700         * mn10300-linux-tdep.c (am33_linux_sigframe)
3701         (am33_linux_rt_sigframe): Use ULONGEST_MAX.
3702         * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
3703         * mips-linux-tdep.c (mips_linux_o32_sigframe)
3704         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3705         (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
3706         (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
3707         (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
3708         * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
3709         (mips64_fbsd_sigframe): Use ULONGEST_MAX.
3710         * microblaze-linux-tdep.c
3711         (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
3712         * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
3713         (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
3714         (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
3715         * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
3716         * common/common-types.h (ULONGEST_MAX): New define.
3717         (CORE_ADDR_MAX): Fix formatting.
3718         * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
3719         * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
3720         * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
3721         (arm_linux_rt_sigreturn_tramp_frame)
3722         (arm_eabi_linux_sigreturn_tramp_frame)
3723         (arm_eabi_linux_rt_sigreturn_tramp_frame)
3724         (thumb2_eabi_linux_sigreturn_tramp_frame)
3725         (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
3726         (arm_linux_restart_syscall_tramp_frame)
3727         (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
3728         * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
3729         * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
3730         ULONGEST_MAX.
3731         * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
3732
3733 2018-08-27  Tom Tromey  <tom@tromey.com>
3734
3735         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
3736         CORE_ADDR_MAX.
3737         * mips-tdep.c (mips_deal_with_atomic_sequence)
3738         (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
3739         * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
3740         (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
3741         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
3742         CORE_ADDR_MAX.
3743         * aarch64-tdep.c (aarch64_software_single_step): Use
3744         CORE_ADDR_MAX.
3745
3746 2018-08-27  Tom Tromey  <tom@tromey.com>
3747
3748         * linespec.c (complete_linespec_component): Add cast to "char".
3749         * completer.c (completion_tracker::build_completion_result): Add
3750         cast to "char".
3751
3752 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
3753
3754         * solist.h (struct solist, struct target_so_ops): Fix
3755         indentation.
3756
3757 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
3758
3759         * ada-tasks.c (ada_task_info_s): Remove typedef.
3760         (DEF_VEC_O(ada_task_info_s)): Remove.
3761         (struct ada_tasks_inferior_data): Initialize fields.
3762         <task_list>: Make an std::vector.
3763         (get_ada_tasks_inferior_data): Allocate with new.
3764         (ada_get_task_number): Adjust.
3765         (get_task_number_from_id): Likewise.
3766         (valid_task_id): Likewise.
3767         (ada_get_task_info_from_ptid): Likewise.
3768         (iterate_over_live_ada_tasks): Likewise.
3769         (add_ada_task): Likewise.
3770         (read_known_tasks): Likewise.
3771         (ada_build_task_list): Likewise.
3772         (print_ada_task_info): Likewise.
3773         (info_task): Likewise.
3774         (task_command_1): Likewise.
3775
3776 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
3777
3778         * ada-lang.c (add_angle_brackets): Return std::string.
3779
3780 2018-08-25  Simon Marchi  <simon.marchi@polymtl.ca>
3781
3782         * python/py-threadevent.c (py_get_event_thread): Initialize
3783         pythread.
3784
3785 2018-08-24  Pedro Alves  <palves@redhat.com>
3786
3787         * python/py-bpevent.c (create_breakpoint_event_object): Use
3788         copy-initialization.
3789         * python/py-continueevent.c (emit_continue_event): Use
3790         copy-initialization.
3791         * python/py-exitedevent.c (create_exited_event_object): Return a
3792         gdbpy_ref<>.
3793         (emit_exited_event): Use copy-initialization.
3794         * python/py-inferior.c (python_new_inferior)
3795         (python_inferior_deleted, add_thread_object): Use
3796         copy-initialization.
3797         * python/py-infevents.c (create_inferior_call_event_object)
3798         (create_register_changed_event_object)
3799         (create_memory_changed_event_object): Return a gdbpy_ref<>.
3800         (emit_inferior_call_event, emit_memory_changed_event)
3801         (emit_register_changed_event): Use copy-initialization.
3802         * python/py-newobjfileevent.c (create_new_objfile_event_object):
3803         Return a gdbpy_ref<>.
3804         (emit_new_objfile_event): Use copy-initialization.
3805         (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
3806         (emit_clear_objfiles_event): Use copy-initialization.
3807         * python/py-signalevent.c (create_signal_event_object): Use
3808         copy-initialization.
3809         * python/py-threadevent.c (create_thread_event_object): Use
3810         copy-initialization.
3811
3812 2018-08-24  Pedro Alves  <palves@redhat.com>
3813             Simon Marchi  <simon.marchi@ericsson.com>
3814
3815         PR gdb/23379
3816         * python/py-continueevent.c: Include "gdbthread.h".
3817         (create_continue_event_object): Add intro comment.  Add 'ptid'
3818         parameter.  Use it to find thread to pass to
3819         create_thread_event_object.
3820         (emit_continue_event): Pass PTID down to
3821         create_continue_event_object.
3822         * python/py-event.h (py_get_event_thread): Declare.
3823         (create_thread_event_object): Remove default from 'thread'
3824         parameter.
3825         * python/py-stopevent.c (create_stop_event_object): Use
3826         py_get_event_thread.
3827         * python/py-threadevent.c (get_event_thread): Rename to ...
3828         (py_get_event_thread): ... this, make extern, add 'ptid' parameter
3829         and use it to find the thread.
3830         (create_thread_event_object): Assert that THREAD isn't null.
3831         Don't find the event thread here.
3832
3833 2018-08-23  Kevin Buettner  <kevinb@redhat.com>
3834
3835         * block.h (blockrange, blockranges): New struct declarations.
3836         (struct block): Add new field named `ranges'.
3837         (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
3838         (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
3839         macros for accessing ranges in struct block.
3840         (make_blockranges): New declaration.
3841         block.c (make_blockranges): New function.
3842         * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
3843         for block.
3844         * symtab.h (find_pc_partial_function): Add new parameter `block'.
3845         * blockframe.c (cache_pc_function_block): New static global.
3846         (clear_pc_function_cache): Clear cache_pc_function_block.
3847         (find_pc_partial_function): Move comment to symtab.h.  Add
3848         support for non-contiguous blocks.
3849         * cli/cli-cmds.c (block.h): Include.
3850         (print_disassembly): Handle printing of non-contiguous blocks.
3851         (disassemble_current_function): Likewise.
3852         (disassemble_command): Likewise.
3853
3854         * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
3855         BLOCK_START.
3856         * blockframe.c (get_pc_function_start): Likewise.
3857         * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
3858         (gcc_symbol_address): Likewise.
3859         * compile/compile-object-run.c (compile_object_run): Likewise.
3860         * compile/compile.c (get_expr_block_and_pc): Likewise.
3861         * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
3862         (func_addr_to_tail_call_list): Likewise.
3863         * findvar.c (default_read_var_value): Likewise.
3864         * inline-frame.c (inline_frame_this_id): Likewise.
3865         (skip-inline_frames): Likewise.
3866         * infcmd.c (until_next_command): Likewise.
3867         * linespec.c (convert_linespec_to_sals): Likewise.
3868         * parse.c (parse_exp_in_context_1): Likewise.
3869         * printcmd.c (build_address_symbolic): likewise.
3870         (info_address_command): Likewise.
3871         symtab.c (find_function_start_sal): Likewise.
3872         (skip_prologue_sal): Likewise.
3873         (find_function_alias_target): Likewise.
3874         (find_gnu_ifunc): Likewise.
3875         * stack.c (find_frame_funname): Likewise.
3876         * symtab.c (fixup_symbol_section): Likewise.
3877         (find_function_start_sal): Likewise.
3878         (skip_prologue_sal): Likewsie.
3879         (find_function_alias_target): Likewise.
3880         (find_gnu_ifunc): Likewise.
3881         * tracepoint.c (info_scope_command): Likewise.
3882         * value.c (value_fn_field): Likewise.
3883
3884         * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
3885         in place of find_pc_partial_function.
3886         * blockframe.c (find_function_entry_range_from_pc): New function.
3887         * symtab.h (find_function_entry_range_from_pc): Declare and document.
3888         * objfiles.c (objfile_relocate1): Relocate start and end addresses
3889         for each range in a block.
3890
3891
3892 2018-08-23  Xavier Roirand  <roirand@adacore.com>
3893
3894         * machoread.c (macho_symfile_read_all_oso): Remove uneeded
3895         incrementation.
3896
3897 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
3898
3899         * solib-svr4.c (read_program_headers_from_bfd): Return
3900         gdb::optional<gdb::byte_vector>.
3901         (svr4_exec_displacement): Adjust.
3902
3903 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
3904
3905         * solib-svr4.c (read_program_header): Return
3906         gdb::optional<gdb::byte_vector>, remove p_sect_size param.
3907         (find_program_interpreter): Return
3908         gdb::optional<gdb::byte_vector>.
3909         (scan_dyntag_auxv): Adjust.
3910         (enable_break): Adjust.
3911         (svr4_exec_displacement): Adjust.
3912
3913 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
3914
3915         * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
3916         * inf-child.c (inf_child_target::terminal_save_inferior): New.
3917
3918 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
3919
3920         * guile/scm-string.c (gdbscm_scm_from_printf): Use
3921         string_vprintf.
3922         * guile/scm-utils.c (gdbscm_printf): Likewise.
3923         * serial.c (serial_printf): Likewise.
3924         * xml-support.c (gdb_xml_parser::vdebug): Likewise.
3925
3926 2018-08-22  Jan Vrany  <jan.vrany@fit.cvut.cz>
3927
3928         * stack.c (print_frame): Print frame architecture when printing on
3929         an MI output.
3930         * NEWS: Mention new "arch" attribute in frame output.
3931
3932 2018-08-21  Alan Hayward  <alan.hayward@arm.com>
3933
3934         * arch/aarch64.h (aarch64_regnum): Update comment.
3935
3936 2018-08-21  Alan Hayward  <alan.hayward@arm.com>
3937
3938         * NEWS: Add SVE to 8.2 section.
3939
3940 2018-08-21  Pedro Alves  <palves@redhat.com>
3941
3942         * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
3943         out from gdbscm_parse_function_args.
3944         (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
3945         gdbscm_parse_function_args_1.
3946
3947 2018-08-21  Simon Marchi  <simon.marchi@ericsson.com>
3948
3949         PR gdb/17816
3950         * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
3951         operator.
3952
3953 2018-08-19  Simon Marchi  <simon.marchi@polymtl.ca>
3954
3955         * solib-svr4.c (svr4_exec_displacement): Fix formatting.
3956
3957 2018-08-19  Michael Spang  <spang@google.com>
3958
3959         PR gdb/11786
3960         * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
3961         for PT_TLS segments.
3962
3963 2018-08-18  Kevin Buettner  <kevinb@redhat.com>
3964
3965         * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
3966         dwarf_variable_value.
3967         * dwarf2-frame.c (class dwarf_expr_executor):
3968         Add override for dwarf_variable_value.
3969         * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
3970         (class symbol_needs_eval_context): Likewise.
3971         (indirect_synthetic_pointer): Add forward declaration.
3972         (sect_variable_value): New function.
3973         (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
3974         * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
3975         for DW_OP_GNU_variable_value.
3976
3977 2018-08-16  Tom Tromey  <tom@tromey.com>
3978
3979         * top.c (read_command_file): Update.
3980         (command_line_input): Remove "repeat" argument.
3981         * ada-lang.c (get_selections): Update.
3982         * linespec.c (decode_line_2): Update.
3983         * defs.h (command_line_input): Remove argument.
3984         * cli/cli-script.c (read_next_line): Update.
3985         * python/py-gdb-readline.c: Update.
3986
3987 2018-08-17  Tom Tromey  <tom@tromey.com>
3988
3989         * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
3990         command_line_input.
3991
3992 2018-08-15  Tom Tromey  <tom@tromey.com>
3993
3994         * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3995
3996 2018-08-14  Jan Vrany  <jan.vrany@fit.cvut.cz>
3997
3998         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3999         If used, use find_pc_partial_function to find address range
4000         to disassemble.
4001         * mi/mi-main.c (mi_cmd_list_features): Report
4002         "data-disassemble-a-option" feature.
4003         * NEWS: Mention new -data-disassemble option -a.
4004
4005 2018-08-13  Tom Tromey  <tom@tromey.com>
4006
4007         * common/common-defs.h (_FORTIFY_SOURCE): Define.
4008
4009 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
4010
4011         * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
4012         (aarch64_linux_collect_sve_regset): Likewise.
4013         (aarch64_linux_iterate_over_regset_sections): Check for SVE.
4014         * regcache.h (regcache_map_entry_size): New function.
4015
4016 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
4017
4018         * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
4019         (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
4020         (SVE_HEADER_VL_LENGTH): Likewise.
4021         (SVE_HEADER_MAX_VL_LENGTH): Likewise.
4022         (SVE_HEADER_FLAGS_LENGTH): Likewise.
4023         (SVE_HEADER_RESERVED_LENGTH): Likewise.
4024         (SVE_HEADER_SIZE_OFFSET): Likewise.
4025         (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
4026         (SVE_HEADER_VL_OFFSET): Likewise.
4027         (SVE_HEADER_MAX_VL_OFFSET): Likewise.
4028         (SVE_HEADER_FLAGS_OFFSET): Likewise.
4029         (SVE_HEADER_RESERVED_OFFSET): Likewise.
4030         (SVE_HEADER_SIZE): Likewise.
4031         (aarch64_linux_core_read_vq): Add function.
4032         (aarch64_linux_core_read_description): Check for SVE section.
4033
4034 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
4035
4036         * aarch64-fbsd-tdep.c
4037         (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
4038         collect_size.
4039         * aarch64-linux-tdep.c
4040         (aarch64_linux_iterate_over_regset_sections): Likewise.
4041         * alpha-linux-tdep.c
4042         (alpha_linux_iterate_over_regset_sections):
4043         * alpha-nbsd-tdep.c
4044         (alphanbsd_iterate_over_regset_sections): Likewise.
4045         * amd64-fbsd-tdep.c
4046         (amd64fbsd_iterate_over_regset_sections): Likewise.
4047         * amd64-linux-tdep.c
4048         (amd64_linux_iterate_over_regset_sections): Likewise.
4049         * arm-bsd-tdep.c
4050         (armbsd_iterate_over_regset_sections): Likewise.
4051         * arm-fbsd-tdep.c
4052         (arm_fbsd_iterate_over_regset_sections): Likewise.
4053         * arm-linux-tdep.c
4054         (arm_linux_iterate_over_regset_sections): Likewise.
4055         * corelow.c (get_core_registers_cb): Likewise.
4056         (core_target::fetch_registers): Likewise.
4057         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
4058         * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
4059         * gdbarch.h (void): Regenerate.
4060         * gdbarch.sh: Add supply_size and collect_size.
4061         * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
4062         * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
4063         * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
4064         * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
4065         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
4066         * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
4067         * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
4068         * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
4069         * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
4070         * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
4071         * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
4072         * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
4073         * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
4074         * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
4075         * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
4076         * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
4077         * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
4078         * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
4079         * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
4080         * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
4081         * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
4082         * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
4083         * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
4084         * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
4085         * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
4086         * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
4087         * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
4088         * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
4089         * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
4090         * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
4091
4092 2018-08-10  Simon Marchi  <simon.marchi@ericsson.com>
4093
4094         * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
4095         with string_printf.
4096
4097 2018-08-10  Keith Seitz  <keiths@redhat.com>
4098
4099         * compile/compile-c-support.c (add_code_header, add_code_footer):
4100         Move into policy class.
4101         (c_push_user_expression, pop_user_expression_nop)
4102         (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
4103         (compile_program): New host class.
4104         (c_compile_program): New typedef.
4105         (c_compute_porgram): Use c_compile_program.
4106
4107 2018-08-10  Keith Seitz  <keiths@redhat.com>
4108
4109         * compile/compile-internal.h (compile_instance::~compile_instance):
4110         Remove calls to htab_delete.
4111         <m_type_map, m_symbol_err_map>: Switch type to htab_up.
4112         * compile.c (compile_instance::compile_instance): Initialize
4113         htab unique pointers.
4114         (compile_instance::get_cached_type, compile_instance::insert_type)
4115         (compile_instance::error_symbol_once): Update for unique_ptr.
4116
4117 2018-08-10  Keith Seitz  <keiths@redhat.com>
4118
4119         * compile/compile-c-symbols.c (struct symbol_error)
4120         (hash_symbol_error, eq_symbol_error, del_symbol_error)
4121         (compile_instance::insert_symbol_error)
4122         (compile_instance::error_symbol_once): Move to ...
4123         * compile/compile.c: ... here.
4124
4125 2018-08-10  Keith Seitz  <keiths@redhat.com>
4126
4127         * compile/compile-c-support.c (c_get_compile_context): Use `new'
4128         instead of `new_compile_instance'.
4129         * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
4130         Update description.
4131         If the symbol error map is not initialized, create it.
4132         (generate_c_for_for_one_symbol): Do not check/initialize
4133         the symbol error map.
4134         * compile/compile-c-types.c (compile_c_instance): Make a class.
4135         Update all callers.
4136         (compile_instance::compile_instance): Initialize the type cache.
4137         (get_cached_type): New function.
4138         (insert_type): Update description.
4139         (compile_c_instance::m_default_cflags): Define.
4140         (convert_type): Update description.  Use get_cached_type.
4141         (delete_instance): Moved to destructor.
4142         (new_compile_instance): Moved to constructor.
4143         * compile/compile-c.h (compile_c_instance): Make class inheriting
4144         from compile_instance.
4145         <base>: Remove field.
4146         <type_map, symbol_err_map>: Move to base class.
4147         <c_plugin>: Rename to `m_plugin' and remove pointer type.
4148         * compile/compile-internal.h (compile_instance): Make class.
4149         <type_map_t, symbol_err_map_t>: Define.
4150         <fe>: Rename to `m_gcc_fe'.
4151         <scope, block, gcc_target_options>: Add `m_' prefix.
4152         <m_type_map, m_symbol_err_map>: New fields, moved from
4153         compile_c_instance.
4154         <destroy>: Remove.
4155         (convert_type, new_compile_instance): Remove.
4156         * compile/compile.c (cleanup_compile_instance): Remove.
4157         (compile_to_object): Use unique_ptr to eliminate cleanups.
4158         (compile_instance::set_print_callback, compile_instance::version)
4159         (compile_instance::set_verbose)
4160         (compile_instance::set_driver_filename)
4161         (compile_instance::set_triplet_regexp)
4162         (compile_instance::set_arguments)
4163         (compile_instance::set_source_file)
4164         (compile_instance::compile): Define.
4165
4166 2018-08-10  Keith Seitz  <keiths@redhat.com>
4167
4168         * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
4169         * compile/compile-c-types.c: Define GCC_METHODN macros and include
4170         gcc-c-fe.def to define C plugin.
4171         (delete_instance): Delete `c_plugin'.
4172         (new_compile_instance): Initialize `c_plugin'.
4173         * compile/compile-c.h: Include gcc_c_plugin.h.
4174         (struct compile_c_instance) <c_plugin>: New member.
4175         * gcc-c-plugin.h: New file.
4176         Update all callers with API change.
4177
4178 2018-08-10  Keith Seitz  <keiths@redhat.com>
4179
4180         * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
4181         (HFILES_NO_SRCDIR): ... to here.
4182         Add compile-internal.h and compile-c.h.
4183         * compile/compile-c-support.c: Include compile-c.h.
4184         * compile/compile-c-symbols.c: Include compile-c.h.
4185         (generate_c_for_variable_locations): Update comment.
4186         * compile/compile-c-types.c: Include compile-c.h.
4187         * compile/compile-c.h: New file -- moved C language declarations
4188         from other files here.
4189         * compile/compile-internal.h: Do not include hashtab.h or
4190         common/enum-flags.h.
4191         (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
4192         (gcc_convert_symbol, gcc_symbol_address)
4193         (generate_c_for_variable_locations, c_get_mode_for_size)
4194         (c_get_range_decl_name): Definitions moved to compile-c.h.
4195         * compile/compile-loc2c.c: Include compile-c.h.
4196
4197 2018-08-10  Keith Seitz  <keiths@redhat.com>
4198
4199         * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
4200         (c_symbol_substitution_name): ... this.
4201         Update all callers.
4202
4203 2018-08-10  Keith Seitz  <keiths@redhat.com>
4204
4205         * compile/compile-c-support.c (c_compute_program): Use
4206         unique_xmalloc_ptr to eliminate cleanup.
4207         * compile/compile-c-symbols.c (generate_c_for_variable_locations):
4208         Return a unique_xmalloc_ptr and eliminate cleanup.
4209         * compile/compile-internal.h (generate_c_for_variable_locations):
4210         Return unique_xmalloc_ptr and update description.
4211
4212 2018-08-10  Alan Hayward  <alan.hayward@arm.com>
4213
4214         * corelow.c (core_target::get_core_register_section): Rename
4215         min_size to section_min_size.
4216
4217 2018-08-09  Jim Wilson  <jimw@sifive.com>
4218
4219         * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
4220         (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
4221         * NEWS: Mention new GNU/Linux RISC-V target.
4222         * configure.host: Add riscv*-*-linux*.
4223         * configure.nat: Add riscv*.
4224         * configure.tgt: Add riscv*-*-linux*.
4225         * riscv-linux-nat.c: New file.
4226         * riscv-linux-tdep.c: New file.
4227
4228 2018-08-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4229
4230         * infrun.c (resume): Make static, add forward declaration.
4231         (proceed): Update header comment.
4232         * infrun.h (resume): Delete declaration.
4233
4234 2018-08-09  Tom Tromey  <tom@tromey.com>
4235
4236         * riscv-tdep.h: Minor formatting fixes.
4237
4238 2018-08-09  Simon Marchi  <simon.marchi@ericsson.com>
4239
4240         * common/scoped_mmap.c (mmap_file): Silence ARI warning.
4241         * dwarf-index-cache.c (create_dir_and_check): Likewise.
4242         (test_mkdir_recursive): Likewise.
4243         * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
4244
4245 2018-08-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4246
4247         * valarith.c (value_subscripted_rvalue): If an array is not in
4248         memory, and we don't know the upper bound, then we can't know that
4249         the requested element exists or not.
4250
4251 2018-08-08  Simon Marchi  <simon.marchi@ericsson.com>
4252
4253         * target.c (str_comma_list_concat_elem): Fix typo in comment.
4254         (target_options_to_string): Add comment.
4255
4256 2018-08-08  Tom Tromey  <tom@tromey.com>
4257
4258         * unittests/scoped_mmap-selftests.c: Check result of "write".
4259
4260 2018-08-08  Jim Wilson  <jimw@sifive.com>
4261
4262         * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
4263         (decode_register_index_short): New.
4264         (decode_j_type_insn, decode_cj_type_insn): New.
4265         (decode_b_type_insn, decode_cb_type_insn): New.
4266         (riscv_insn::decode): Add support for jumps, branches, lr, and sc.  New
4267         local xlen.  Check xlen when decoding ambiguous compressed insns.  In
4268         compressed decode, use is_c_lui_insn instead of is_lui_insn, and
4269         is_c_sw_insn instead of is_sw_insn.
4270         (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
4271         (riscv_software_single_step): New.
4272         * riscv-tdep.h (riscv_software_single_step): Declare.
4273
4274         * riscv-tdep.c (riscv_isa_xlen): Drop static.
4275         * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
4276
4277 2018-08-08  Andrew Burgess  <andrew.burgess@embecosm.com>
4278
4279         PR gdb/18050:
4280         * target.c (dispose_inferior): Don't dispose of inferiors that are
4281         already killed.
4282
4283 2018-08-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4284
4285         * remote.c (remote_target::download_tracepoint): Change char* to
4286         const char*.
4287
4288 2018-08-07  Simon Marchi  <simon.marchi@polymtl.ca>
4289
4290         * target.h (target_options_to_string): Return an std::string.
4291         * target.c (str_comma_list_concat_elem): Return void, use
4292         std::string.
4293         (do_option): Likewise.
4294         (target_options_to_string): Return an std::string.
4295         * linux-nat.c (linux_nat_target::wait): Adjust.
4296         * target-debug.h (target_debug_print_options): Adjust.
4297
4298 2018-08-07  Tom Tromey  <tom@tromey.com>
4299
4300         * Makefile.in (CPPFLAGS): New variable.
4301         (INTERNAL_CPPFLAGS): Use it.
4302
4303 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4304
4305         * NEWS: Mention the index cache.
4306
4307 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4308
4309         * common/pathstuff.h (get_standard_cache_dir): New.
4310         * common/pathstuff.c (get_standard_cache_dir): New.
4311         * build-id.h (build_id_to_string): New.
4312         * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
4313         DEBUG_STR_SUFFIX): Move to here.
4314         * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
4315         DEBUG_STR_SUFFIX): Move from there.
4316         (write_psymtabs_to_index): Make non-static, add basename
4317         parameter.  Write to temporary files, rename when done.
4318         (save_gdb_index_command): Adjust call to
4319         write_psymtabs_to_index.
4320         * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
4321         field.
4322         * dwarf2read.c (dwz_file) <index_cache_res>: New field.
4323         (get_gdb_index_contents_from_cache): New.
4324         (get_gdb_index_contents_from_cache_dwz): New.
4325         (dwarf2_initialize_objfile): Read index from cache.
4326         (dwarf2_build_psymtabs): Save to index.
4327         * dwarf-index-cache.h: New file.
4328         * dwarf-index-cache.c: New file.
4329         * dwarf-index-write.h: New file.
4330
4331 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4332
4333         * gnulib/aclocal.m4: Re-generate.
4334         * gnulib/config.in: Re-generate.
4335         * gnulib/configure: Re-generate.
4336         * gnulib/import/Makefile.am: Re-generate.
4337         * gnulib/import/Makefile.in: Re-generate.
4338         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
4339         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4340         * gnulib/import/m4/mkdir.m4: New file.
4341         * gnulib/import/mkdir.c: New file.
4342         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
4343         module.
4344
4345 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4346
4347         * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
4348         * common/scoped_mmap.c: New file.
4349         * common/scoped_mmap.h (destroy): New method.
4350         (~scoped_mmap, reset): Use destroy.
4351         (scoped_mmap): New move constructor.
4352         (mmap_file): New declaration.
4353         * unittests/scoped_mmap-selftests.c (test_normal,
4354         test_invalid_filename, run_tests): New functions.
4355         (_initialize_scoped_mmap_selftests): Register selftest.
4356
4357 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4358
4359         * dwarf2read.c (read_gdb_index_from_section): Rename to...
4360         (read_gdb_index_from_buffer): ... this.  Remove section
4361         parameter, add buffer parameter.
4362         (get_gdb_index_contents_ftype,
4363         get_gdb_index_contents_dwz_ftype): New typedefs.
4364         (dwarf2_read_gdb_index): Add callback parameters to get the
4365         index contents.
4366         (get_gdb_index_contents_from_section): New.
4367         (dwarf2_initialize_objfile): Update call to
4368         dwarf2_read_gdb_index.
4369
4370 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4371
4372         * common/filestuff.h (gdb_fopen_cloexec): New overload.
4373         (gdb_open_cloexec): Likewise.
4374         * nat/linux-osdata.c (command_from_pid): Use string_printf.
4375         (commandline_from_pid): Likewise.
4376         (linux_xfer_osdata_threads): Likewise.
4377         (linux_xfer_osdata_fds): Likewise.
4378         * ada-lang.c (is_package_name): Likewise.
4379         * auxv.c (procfs_xfer_auxv): Likewise.
4380         * breakpoint.c (print_one_breakpoint_location): Use
4381         uiout::field_fmt.
4382         (print_one_catch_solib): Use string_printf.
4383         * coff-pe-read.c (add_pe_exported_sym): Likewise.
4384         (add_pe_forwarded_sym): Likewise.
4385         * dwarf2read.c (create_type_unit_group): Likewise.
4386         (build_error_marker_type): Likewise.
4387         * infcall.c (get_function_name): Likewise.
4388         * valprint.c (print_converted_chars_to_obstack): Likewise.
4389         * xtensa-tdep.c (xtensa_register_type): Likewise.
4390
4391 2018-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4392
4393         * remote.c (remote_target::download_tracepoint): Fix format
4394         string errors.
4395
4396 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4397
4398         * tracefile.c: Include common/byte-vector.h.
4399         (trace_save): Change type of buf to gdb::byte_vector.  Initialize
4400         with trace_regblock_size if needed.  Update uses of buf.
4401
4402 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4403
4404         * tracepoint.h (collection_list) <m_regs_mask>: Change type to
4405         std::vector<unsigned char>.
4406         * tracepoint.c (collection_list::collection_list): Remove
4407         m_regs_mask initializer from initializer list.  Resize
4408         m_regs_mask using the largest remote register number.
4409         (collection_list::add_remote_register): Remove size check on
4410         m_regs_mask.  Use at to access element.
4411         (collection_list::stringify): Change type of temp_buf to
4412         gdb::char_vector.  Update uses of temp_buf.  Resize if needed to
4413         stringify the register mask.  Use pack_hex_byte for the register
4414         mask.
4415
4416 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4417
4418         * tracepoint.h (class collection_list) <add_register>: Remove.
4419         <add_remote_register, add_ax_registers, add_local_register>:
4420         Declare.
4421         <add_memrange>: Add scope parameter.
4422         * tracepoint.c (encode_actions_1): Likewise.
4423         (collection_list::add_register): Rename to ...
4424         (collection_list::add_remote_register): ... this.  Update
4425         comment.
4426         (collection_list::add_ax_registers, add_local_register): New
4427         methods.
4428         (collection_list::add_memrange): Add scope parameter.  Call
4429         add_local_register instead of add_register.
4430         (finalize_tracepoint_aexpr): New function.
4431         (collection_list::collect_symbol): Update calls to add_memrange.
4432         Call add_local_register instead of add_register.  Call
4433         add_ax_registers.  Call finalize_tracepoint_aexpr.
4434         (encode_actions_1): Get remote regnos for $reg action.  Call
4435         add_remote_register, add_ax_registers, and add_local_register.
4436         Update call to add_memrange.  Call finalize_tracepoint_aexpr.
4437         (validate_actionline): Call finalize_tracepoint_aexpr.
4438
4439 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4440
4441         * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
4442         Replace array buf with gdb::char_vector buf, of size
4443         get_remote_packet_size ().  Replace references to buf and
4444         BUF_SIZE to buf.data () and buf.size ().  Replace strcpy, strcat
4445         and xsnprintf with snprintf.  Raise errors if the buffer is too
4446         small.
4447
4448 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4449
4450         * remote.c (remote_target::download_tracepoint): Fix the has_more
4451         predicate in the QTDP action list iteration.
4452
4453 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4454
4455         * remote.c (remote_target::download_tracepoint): Fix indentation
4456         in for block.
4457
4458 2018-08-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4459
4460         * proc-api.c (_initialize_proc_api): Remove c, unused.
4461         * procfs.c (procfs_init_inferior): Remove signals, unused.
4462         (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
4463         unused.
4464
4465 2018-08-06  Sergey Korolev  <s.korolev@ndmsystems.com>
4466             Andrew Burgess  <andrew.burgess@embecosm.com>
4467
4468         * linux-nat.c (linux_nat_target::follow_fork): Avoid using
4469         'W_STOPCODE (0)' as this could be ambiguous.
4470
4471 2018-08-03  Sergio Durigan Junior  <sergiodj@redhat.com>
4472
4473         * ser-tcp.c (net_open): Fix thinko when deciding whether to
4474         disable TCP's Nagle algorithm (use "ai_protocol" instead of
4475         "ai_socktype").
4476
4477 2018-08-02  Tom Tromey  <tom@tromey.com>
4478
4479         PR symtab/16842.
4480         * dwarf2read.c (read_func_scope): Set symtab on template parameter
4481         symbols.
4482         (process_structure_scope): Likewise.
4483
4484 2018-08-02  Xavier Roirand  <roirand@adacore.com>
4485
4486         PR gdb/22629:
4487         * darwin-nat.c (darwin_kill_inferior): Fix handling of
4488         kill inferior.
4489
4490 2018-08-02  Tom Tromey  <tom@tromey.com>
4491
4492         * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
4493         (darwin_suspend_inferior, darwin_resume_inferior)
4494         (darwin_decode_notify_message, darwin_resume_inferior_threads)
4495         (darwin_check_new_threads): Check result of get_darwin_inferior.
4496
4497 2018-07-31  Joel Brobecker  <brobecker@adacore.com>
4498
4499         GDB 8.1.1 released.
4500
4501 2018-07-31  Jan Vrany  <jan.vrany@fit.cvut.cz>
4502
4503         * varobj.c (varobj_get_path_expr_parent): Report an error if
4504         parent is a dynamic varobj.
4505
4506 2018-07-31  Simon Marchi  <simon.marchi@ericsson.com>
4507
4508         * gnulib/aclocal.m4: Re-generate.
4509         * gnulib/config.in: Re-generate.
4510         * gnulib/configure: Re-generate.
4511         * gnulib/import/Makefile.in: Re-generate.
4512         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4513         * gnulib/import/m4/onceonly.m4: Re-generate.
4514
4515 2018-07-31  Simon Marchi  <simon.marchi@ericsson.com>
4516
4517         * target-descriptions.c (struct xml_test_tdesc): New.
4518         (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
4519         (record_xml_tdesc): Update.
4520         (maintenance_check_xml_descriptions): Update.
4521         * target-descriptions.h (record_xml_tdesc): Update comment.
4522
4523 2018-07-30  Andrew Burgess  <andrew.burgess@embecosm.com>
4524
4525         * eval.c (evaluate_subexp_for_sizeof): Check for array type before
4526         checking array bounds are defined.
4527
4528 2018-07-30  Tom Tromey  <tom@tromey.com>
4529
4530         * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
4531         irreflexivity violation.
4532
4533 2018-07-30  Tom Tromey  <tom@tromey.com>
4534
4535         * cli/cli-decode.c (lookup_cmd): Remove lint code.
4536         * value.c (unpack_long): Remove lint code.
4537         * valops.c (value_ind): Remove lint code.
4538         * valarith.c (value_x_binop, value_x_unop, value_equal)
4539         (value_pos): Remove lint code.
4540
4541 2018-07-28  Tom de Vries  <tdevries@suse.de>
4542
4543         * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
4544         with undefined upper bound as <optimized out>.
4545
4546 2018-07-27  Sergio Durigan Junior  <sergiodj@redhat.com>
4547
4548         * gcore.in: Rename variable "name" to "prefix".  Expand
4549         "usage" text.
4550
4551 2018-07-14  Jon Turney  <jon.turney@dronecode.org.uk>
4552
4553         * windows-nat.c (windows_nat_target::create_inferior): Update to
4554         call close() in global namespace.
4555
4556 2018-07-26  Tom Tromey  <tom@tromey.com>
4557
4558         * dwarf-index-write.c (add_address_entry): Don't add objfile
4559         offsets.
4560         * dbxread.c (find_stab_function): Rename from
4561         find_stab_function_addr.  Return a bound_minimal_symbol.
4562         (read_dbx_symtab): Use raw_text_low, raw_text_high.
4563         Don't add objfile offsets.
4564         (end_psymtab): Use raw_text_low, raw_text_high,
4565         MSYMBOL_VALUE_RAW_ADDRESS.
4566         (read_ofile_symtab): Update.
4567         (process_one_symbol): Update.
4568         * dwarf2read.c (create_addrmap_from_index): Don't add objfile
4569         offsets.
4570         (dw2_relocate): Remove.
4571         (dw2_find_pc_sect_symtab): Bias PC by the text offset before
4572         searching addrmap.
4573         (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
4574         Update.
4575         (process_psymtab_comp_unit_reader, add_partial_symbol)
4576         (add_partial_subprogram, dwarf2_ranges_read): Update.
4577         (load_partial_dies): Update.
4578         (add_address_entry): Don't add objfile offsets.
4579         (dwarf2_build_include_psymtabs): Update.
4580         (create_addrmap_from_aranges): Don't add objfile offsets.
4581         (dw2_find_pc_sect_compunit_symtab): Update.
4582         * mdebugread.c (parse_symbol): Don't add objfile offsets.
4583         (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
4584         Update.
4585         (parse_partial_symbols): Don't add objfile offsets.  Use
4586         raw_text_low, raw_text_high.  Update.
4587         (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
4588         * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
4589         or call 'relocate' quick function.  Clear psymbol_map.
4590         * psympriv.h (struct partial_symbol) <address>: Add section
4591         offset.
4592         <set_unrelocated_address>: Rename from set_address.
4593         <raw_text_low, raw_text_high>: New methods.
4594         <text_low, text_high>: Add objfile parameter.
4595         (add_psymbol_to_bcache): Add 'section' parameter.  Call
4596         set_unrelocated_address.
4597         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4598         (find_pc_psymbol): Update.
4599         (fixup_psymbol_section, relocate_psymtabs): Remove.
4600         (dump_psymtab, psym_functions): Update.
4601         (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
4602         parameter.
4603         (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4604         (start_psymtab_common): Update.
4605         * symfile-debug.c (debug_qf_relocate): Remove.
4606         (debug_sym_quick_functions): Update.
4607         * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
4608         * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
4609         Update.
4610
4611 2018-07-26  Tom Tromey  <tromey@redhat.com>
4612
4613         * dbxread.c (end_psymtab): Use text_high_valid and
4614         text_low_valid.
4615         * mdebugread.c (parse_partial_symbols): Use text_low_valid.
4616         (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
4617         * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4618         Update comment.
4619         <text_low_valid, text_high_valid>: New fields.
4620         <set_text_low, set_text_high>: Update.
4621         * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
4622
4623 2018-07-26  Tom Tromey  <tom@tromey.com>
4624
4625         * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
4626         Update.
4627         * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
4628         textlow and texthigh fields.
4629         (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
4630         Update.
4631         * mdebugread.c (parse_lines, parse_partial_symbols)
4632         (psymtab_to_symtab_1): Update.
4633         * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4634         Rename fields.  Update comment.  Now private.
4635         <text_low, text_high, set_text_low, set_text_high>: New methods.
4636         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4637         (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
4638         (start_psymtab_common, maintenance_info_psymtabs)
4639         (maintenance_check_psymtabs): Update.
4640         * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
4641         texthigh fields.
4642         (scan_xcoff_symtab): Update.
4643
4644 2018-07-26  Tom Tromey  <tromey@redhat.com>
4645
4646         * psympriv.h (struct partial_symbol) <unrelocated_address,
4647         address, set_address>: New methods.
4648         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
4649         (fixup_psymbol_section, relocate_psymtabs): Update.
4650         (print_partial_symbols): Add 'objfile' parameter.  Update.
4651         (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
4652         Update.
4653
4654 2018-07-26  Tom Tromey  <tom@tromey.com>
4655
4656         * dwarf-index-write.c (write_psymbols, debug_names::insert)
4657         (debug_names::write_psymbols): Update.
4658         * psympriv.h (struct partial_symbol): Derive from
4659         general_symbol_info.
4660         <obj_section>: New method.
4661         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
4662         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4663         (find_pc_sect_psymbol, fixup_psymbol_section)
4664         (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
4665         (print_partial_symbols, recursively_search_psymtabs)
4666         (compare_psymbols, psymbol_hash, psymbol_compare)
4667         (add_psymbol_to_bcache, maintenance_check_psymtabs)
4668         (psymbol_name_matches, psym_fill_psymbol_map): Update.
4669
4670 2018-07-26  Tom Tromey  <tromey@redhat.com>
4671
4672         * dbxread.c (end_psymtab): Remove dead code.
4673
4674 2018-07-26  Andrew Burgess  <andrew.burgess@embecosm.com>
4675
4676         * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
4677         DWARF unwinders are disabled.
4678         * dwarf2-frame.c: Add dwarf2read.h include.
4679         (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
4680         disabled.
4681         (dwarf2_frame_unwinders_enabled_p): Define.
4682         (show_dwarf_unwinders_enabled_p): New function.
4683         (_initialize_dwarf2_frame): Register switch to control DWARF
4684         unwinder use.
4685         * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
4686         * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
4687         (show_dwarf_cmdlist): Remove static keyword.
4688         * dwarf2read.h (set_dwarf_cmdlist): Declare.
4689         (show_dwarf_cmdlist): Declare.
4690         * NEWS: Document new feature.
4691
4692 2018-07-26  Tom de Vries  <tdevries@suse.de>
4693
4694         PR breakpoints/23366
4695         * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
4696
4697 2018-07-26  Tom de Vries  <tdevries@suse.de>
4698
4699         * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
4700         DW_AT_count can't be translated to a dynamic prop.
4701
4702 2018-07-25  Tom de Vries  <tdevries@suse.de>
4703
4704         * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
4705         try/catch.
4706
4707 2018-07-25  Jan Vrany  <jan.vrany@fit.cvut.cz>
4708
4709         * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
4710
4711 2018-07-25  Joel Brobecker  <brobecker@adacore.com>
4712
4713         * MAINTAINERS (Global Maintainers): Add Tom Tromey.
4714
4715 2018-07-24  Keith Seitz  <keiths@redhat.comt
4716
4717         PR symtab/23010
4718         * dwarf2read.c (dw2_add_symbol_to_list): New function.
4719         (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
4720         instead of add_symbol_to_list.
4721         (read_file_scope): Call prepare_one_comp_unit before reading
4722         any other DIEs.
4723
4724 2018-07-24  Simon Marchi  <simon.marchi@ericsson.com>
4725
4726         * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
4727
4728 2018-07-24  Tom Tromey  <tom@tromey.com>
4729
4730         * utils.c (malloc, realloc, free): Don't declare.
4731         * configure, config.in: Rebuild.
4732         * configure.ac: Don't check for declarations of free, malloc, or
4733         realloc.
4734
4735 2018-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
4736
4737         * aarch64-linux-nat.c
4738         (aarch64_linux_nat_target::stopped_data_address): Remove unused
4739         variable.
4740         * arm-linux-nat.c (fetch_regs): Likewise.
4741         (store_regs): Likewise.
4742         (fetch_vfp_regs): Likewise.
4743         (store_vfp_regs): Likewise.
4744         (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
4745         (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
4746         (arm_linux_nat_target::insert_watchpoint): Likewise.
4747         (arm_linux_nat_target::remove_watchpoint): Likewise.
4748         * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
4749         Likewise.
4750         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
4751         Likewise.
4752         * ppc-linux-nat.c (fetch_register): Likewise.
4753         (fetch_all_gp_regs): Likewise.
4754         (fetch_ppc_registers): Likewise.
4755         (store_all_gp_regs): Likewise.
4756         (store_ppc_registers): Likewise.
4757         (hwdebug_insert_point): Likewise.
4758         (can_use_watchpoint_cond_accel): Likewise.
4759         * remote-sim.c (gdb_os_write_stdout): Likewise.
4760
4761 2018-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
4762             Tom Tromey  <tom@tromey.com>
4763
4764         * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
4765         test for it.
4766         * configure: Rebuild.
4767
4768 2018-07-22  Tom Tromey  <tom@tromey.com>
4769
4770         * regformats/regdat.sh: Define xmltarget_${name} inside
4771         #ifndef IN_PROCESS_AGENT.
4772
4773 2018-07-22  Tom Tromey  <tom@tromey.com>
4774
4775         * value.c (value_fetch_lazy_bitfield): Remove unused variable.
4776
4777 2018-07-22  Tom Tromey  <tom@tromey.com>
4778
4779         * symfile.c (reread_symbols): Notify iter, not objfile.
4780
4781 2018-07-22  Tom Tromey  <tom@tromey.com>
4782
4783         * ravenscar-thread.c (ravenscar_thread_target::store_registers):
4784         Use arch_ops.
4785         (ravenscar_thread_target::prepare_to_store): Likewise.
4786
4787 2018-07-22  Tom Tromey  <tom@tromey.com>
4788
4789         * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
4790         unused variable.  Call value_fetch_lazy when needed.
4791         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
4792         Remove unused variable.  Call value_fetch_lazy when needed.
4793
4794 2018-07-22  Tom Tromey  <tom@tromey.com>
4795
4796         * m32c-tdep.c (mark_dma): Return void.
4797         (make_regs): Remove unused declarations.
4798
4799 2018-07-22  Tom Tromey  <tom@tromey.com>
4800
4801         * guile/scm-cmd.c (gdbscm_dont_repeat): Call
4802         cmdscm_get_valid_command_smob_arg_unsafe for effect.
4803         * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
4804         bkscm_get_valid_block_smob_arg_unsafe for effect.
4805
4806 2018-07-22  Tom Tromey  <tom@tromey.com>
4807
4808         * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
4809         value_type.
4810
4811 2018-07-22  Tom Tromey  <tom@tromey.com>
4812
4813         * windows-nat.c (saved_context): Conditionally define.
4814         * remote.c (remote_target::remote_btrace_maybe_reopen):
4815         Conditionally declare "warned".
4816         * inflow.c (sigquit_ours): Conditionally define.
4817         (new_tty): Move "tty" declaration inside #if.
4818         * guile/guile.c (guile_datadir): Conditionally define.
4819         * charset.c (set_be_le_names): Move some declarations inside #if.
4820         * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
4821         #if.
4822         (parse_xml_btrace_conf): Likewise.
4823
4824 2018-07-22  Tom Tromey  <tom@tromey.com>
4825
4826         * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
4827
4828 2018-07-22  Tom Tromey  <tom@tromey.com>
4829
4830         * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
4831         * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
4832         (vlscm_convert_typed_value_from_scheme): Remove unused variable.
4833         * buildsym-legacy.c (get_macro_table): Remove unused variable.
4834         * stack.c (frame_apply_level_command): Remove unused variable.
4835         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
4836         * sparc64-tdep.c (adi_examine_command): Remove unused variable.
4837         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
4838         unused variable.
4839         * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
4840         * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
4841         * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
4842         variable.
4843         * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
4844         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
4845         variable.
4846         * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
4847         Remove unused variable.
4848         * cli/cli-script.c (recurse_read_control_structure): Remove unused
4849         variable.
4850         * common/tdesc.c (print_xml_feature::visit): Remove unused
4851         variable.
4852         * compile/compile-object-load.c (store_regs): Remove unused
4853         variables.
4854         * complaints.c (clear_complaints): Remove unused variable.
4855         * corelow.c (core_target_open): Remove unused variable.
4856         * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
4857         variable.
4858         * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
4859         variable.
4860         * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
4861         variable.
4862         * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
4863         variable.
4864         * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
4865         variable.
4866         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
4867         variable.
4868         * ia64-tdep.c (examine_prologue): Remove unused variable.
4869         * infcall.c (run_inferior_call): Remove unused variable.
4870         * inferior.c (exit_inferior): Remove unused variable.
4871         * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
4872         * linespec.c (decode_line_2): Remove unused variable.
4873         * linux-nat.c (super_close): Remove.
4874         * linux-tdep.c (linux_info_proc): Remove unused variable.
4875         * mi/mi-main.c (mi_execute_command): Remove unused variable.
4876         * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
4877         Remove unused variable.
4878         * parse.c (find_minsym_type_and_address): Remove unused variable.
4879         * printcmd.c (info_symbol_command, printf_floating): Remove unused
4880         variable.
4881         * python/py-breakpoint.c (bppy_set_commands): Remove unused
4882         variable.
4883         * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
4884         variables.
4885         * record-btrace.c (record_btrace_target::store_registers): Remove
4886         unused variable.
4887         (cmd_show_record_btrace_cpu): Remove unused variable.
4888         * riscv-tdep.c (riscv_register_reggroup_p)
4889         (riscv_push_dummy_call, riscv_return_value): Remove unused
4890         variable.
4891         * rust-exp.y (literal): Remove unused variable.
4892         * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
4893         unused variable.
4894         <STRUCTOP_ANONYMOUS>: Likewise.
4895         * s390-linux-tdep.c (s390_linux_init_abi_31)
4896         (s390_linux_init_abi_64): Remove unused variable.
4897         * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
4898         (file_select_thread, net_windows_open, _initialize_ser_windows):
4899         Remove unused variables.
4900         * symtab.c (find_pc_sect_line): Remove unused variable.
4901         * target-memory.c (compute_garbled_blocks): Remove unused
4902         variable.
4903         (target_write_memory_blocks): Remove unused variable.
4904         * target.c (target_stack::unpush): Remove unused variables.
4905         * tracepoint.c (start_tracing, all_tracepoint_actions)
4906         (merge_uploaded_trace_state_variables)
4907         (print_one_static_tracepoint_marker): Remove unused variable.
4908         * unittests/basic_string_view/element_access/char/1.cc (test01):
4909         Remove unused variable.
4910         * windows-nat.c (windows_continue, windows_add_all_dlls)
4911         (do_initial_windows_stuff, windows_nat_target::create_inferior):
4912         Remove unused variables.
4913
4914 2018-07-21  Simon Marchi  <simon.marchi@polymtl.ca>
4915
4916         * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
4917         attr_profile in HAVE_ELF.
4918         * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
4919         HAVE_ELF.
4920
4921 2018-07-20  Simon Marchi  <simon.marchi@polymtl.ca>
4922
4923         * frame.c (frame_register_unwind): Change parameter name.
4924         (frame_unwind_register): Likewise.
4925         (frame_unwind_register_value): Likewise.
4926         (frame_unwind_register_signed): Likewise.
4927         (frame_unwind_register_unsigned): Likewise.
4928         * frame.h (frame_register_unwind): Likewise.
4929         (frame_unwind_register): Likewise.
4930         (frame_unwind_register_value): Likewise.
4931         (frame_unwind_register_signed): Likewise.
4932         (frame_unwind_register_unsigned): Likewise.
4933         (frame_unwind_arch): Likewise.
4934
4935 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
4936
4937         * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
4938         ISA maintenance.
4939
4940 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
4941
4942         * mips-linux-nat.c (mips_linux_nat_target::read_description):
4943         Call `get_ptrace_pid' rather than extracting the ptrace PID by
4944         hand.
4945
4946 2018-07-20  Keith Seitz  <keiths@redhat.com>
4947
4948         * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
4949         m_main_subfile, m_comp_dir, m_producer, m_debugformat,
4950         m_compunit_symtab, m_language>: Add "m_" prefix.
4951         Update all uses.
4952         * buildsym.c: Update all uses.
4953
4954 2018-07-20  Tom Tromey  <tom@tromey.com>
4955
4956         * buildsym-legacy.h (record_line): Don't use record_line_ftype.
4957         * buildsym.h (record_line_ftype): Remove typedef.
4958
4959 2018-07-20  Tom Tromey  <tom@tromey.com>
4960
4961         * buildsym-legacy.h (augment_type_symtab): Don't declare.
4962         (end_expandable_symtab): Likewise.
4963         (end_symtab_get_static_block): Likewise.
4964         (end_symtab_from_static_block): Likewise.
4965         * buildsym-legacy.c (augment_type_symtab): Remove.
4966         (end_expandable_symtab): Remove.
4967         (end_symtab_get_static_block): Remove.
4968         (end_symtab_from_static_block): Remove.
4969
4970 2018-07-20  Tom Tromey  <tom@tromey.com>
4971
4972         * dwarf2read.c: Include buildsym.h.
4973         (struct dwarf2_cu) <builder>: New method.
4974         (fixup_go_packaging): Update.
4975         (process_full_comp_unit, process_full_type_unit): Update.  Don't
4976         use scoped_free_pendings.
4977         (using_directives): Add "cu" parameter, remove "language".
4978         (read_import_statement, setup_type_unit_groups, )
4979         (read_func_scope, read_lexical_block_scope)
4980         (dwarf2_record_block_ranges, read_namespace): Update.
4981         (lnp_state_machine::lnp_state_machine): Add cu parameter.
4982         (lnp_state_machine::handle_end_sequence): Update.
4983         (class lnp_state_machine) <m_cu>: New member.
4984         <m_record_line_callback>: Remove.
4985         <m_currently_recording_lines>: New member.
4986         (lnp_state_machine::handle_set_file): Update.
4987         (noop_record_line): Remove.
4988         (dwarf_record_line_p): Add cu parameter.
4989         (dwarf_record_line_1, dwarf_finish_line): Likewise.
4990         (lnp_state_machine::record_line)
4991         (lnp_state_machine::lnp_state_machine)
4992         (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4993         (dwarf_decode_lines): Update.
4994         (dwarf2_start_subfile): Add cu parameter.
4995         (dwarf2_start_symtab, new_symbol): Update.
4996         (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4997         Remove dwarf2_per_objfile parameter.
4998         (dwarf_decode_macros): Update.
4999
5000 2018-07-20  Tom Tromey  <tom@tromey.com>
5001
5002         * stabsread.c (define_symbol): Update.
5003         * buildsym-legacy.h (get_buildsym_compunit): Declare.
5004         * dwarf2read.c (new_symbol): Update.
5005         * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
5006         * cp-namespace.c: Include buildsym.h.
5007         (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
5008         * buildsym-legacy.c (get_buildsym_compunit): New function.
5009
5010 2018-07-20  Tom Tromey  <tom@tromey.com>
5011
5012         * xcoffread.c: Include buildsym-legacy.h.
5013         * windows-nat.c: Include buildsym-legacy.h.
5014         * stabsread.c: Include buildsym-legacy.h.
5015         * mdebugread.c: Include buildsym-legacy.h.
5016         * buildsym-legacy.h: New file.
5017         * buildsym-legacy.c: New file, from buildsym.c.
5018         * go32-nat.c: Include buildsym-legacy.h.
5019         * dwarf2read.c: Include buildsym-legacy.h.
5020         * dbxread.c: Include buildsym-legacy.h.
5021         * cp-namespace.c: Include buildsym-legacy.h.
5022         * coffread.c: Include buildsym-legacy.h.
5023         * buildsym.h: Move some contents to buildsym-legacy.h.
5024         * buildsym.c: Include buildsym-legacy.h.  Move many functions to
5025         buildsym-legacy.c.
5026         * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
5027
5028 2018-07-20  Tom Tromey  <tom@tromey.com>
5029
5030         * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
5031         * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
5032         (buildsym_compunit::buildsym_compunit)
5033         (buildsym_compunit::~buildsym_compunit)
5034         (buildsym_compunit::get_macro_table): Define.
5035
5036 2018-07-20  Tom Tromey  <tom@tromey.com>
5037
5038         * buildsym.c (reset_symtab_globals): Remove.
5039         (buildsym_compunit::end_symtab_from_static_block): Update.
5040         (buildsym_compunit::augment_type_symtab): Update.
5041         (end_symtab_from_static_block): Call free_buildsym_compunit.
5042         (augment_type_symtab, end_symtab, end_expandable_symtab):
5043         Likewise.
5044
5045 2018-07-20  Tom Tromey  <tom@tromey.com>
5046
5047         * arch-utils.c: Do not include buildsym.h.
5048         * mipsread.c: Do not include buildsym.h.
5049         * machoread.c: Do not include buildsym.h.
5050         * elfread.c: Do not include buildsym.h.
5051
5052 2018-07-20  Tom Tromey  <tom@tromey.com>
5053
5054         * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
5055         initialization.
5056         (buildsym_compunit): Add new constructor.
5057         (struct buildsym_compunit) <get_last_source_file, finish_block,
5058         record_block_range, start_subfile, patch_subfile_names,
5059         push_subfile, pop_subfile, record_line, get_compunit_symtab,
5060         set_last_source_start_addr, get_last_source_start_addr,
5061         get_local_using_directives, set_local_using_directives,
5062         get_global_using_directives, outermost_context_p,
5063         get_current_context_stack, get_context_stack_depth,
5064         get_current_subfile, get_local_symbols, get_file_symbols,
5065         get_global_symbols, record_debugformat, record_producer,
5066         push_context, pop_context, end_symtab_get_static_block,
5067         end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
5068         New public methods.
5069         <record_pending_block, finish_block_internal, make_blockvector,
5070         watch_main_source_file_lossage, end_symtab_with_blockvector>: New
5071         private methods.
5072         Update all users.
5073
5074 2018-05-22  Tom Tromey  <tom@tromey.com>
5075
5076         * buildsym.c (record_pending_block): Move earlier.  Remove objfile
5077         parameter.
5078         (finish_block_internal): Update.
5079
5080 2018-07-20  Tom Tromey  <tom@tromey.com>
5081
5082         * buildsym.c (record_pending_block): Move earlier.  Remove objfile
5083         parameter.
5084         (finish_block_internal): Update.
5085
5086 2018-07-20  Tom Tromey  <tom@tromey.com>
5087
5088         * buildsym.h (EXTERN): Don't define or undef.
5089         * buildsym.c (EXTERN): Don't define.
5090
5091 2018-07-20  Tom Tromey  <tom@tromey.com>
5092
5093         * buildsym.c: Remove TODO comment.
5094
5095 2018-07-20  Tom Tromey  <tom@tromey.com>
5096
5097         * coffread.c (coff_symtab_read): Update.
5098         * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5099         (xcoff_new_init): Update.
5100         * mipsread.c (mipscoff_new_init): Update.
5101         * mdebugread.c (mdebug_build_psymtabs): Update.
5102         * elfread.c (elf_new_init): Update.
5103         * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
5104         Update.
5105         * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
5106         (coffstab_build_psymtabs, elfstab_build_psymtabs)
5107         (stabsect_build_psymtabs): Update.
5108         * buildsym.h (buildsym_init): Don't declare.
5109         * buildsym.c: Update comment.
5110         (prepare_for_building): Remove.
5111         (start_symtab, restart_symtab): Update.
5112         (reset_symtab_globals): Update comment.
5113         (buildsym_init): Remove.
5114
5115 2018-07-20  Tom Tromey  <tom@tromey.com>
5116
5117         * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
5118         * stabsread.c (patch_block_stabs, define_symbol, read_type)
5119         (read_enum_type, common_block_start, common_block_end)
5120         (cleanup_undefined_types_1, finish_global_stabs): Update.
5121         * mdebugread.c (psymtab_to_symtab_1): Update.
5122         * dwarf2read.c (fixup_go_packaging, read_func_scope)
5123         (read_lexical_block_scope, new_symbol): Update.
5124         * dbxread.c (process_one_symbol): Update.
5125         * coffread.c (coff_symtab_read, process_coff_symbol)
5126         (coff_read_enum_type): Update.
5127         * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
5128         declare.
5129         (get_local_symbols, get_file_symbols, get_global_symbols): New
5130         functions.
5131         * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
5132         m_global_symbols.
5133         <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
5134         (~scoped_free_pendings): Update.
5135         (finish_block, prepare_for_building, reset_symtab_globals)
5136         (end_symtab_get_static_block, end_symtab_with_blockvector)
5137         (augment_type_symtab, push_context): Update.
5138         (get_local_symbols, get_file_symbols, get_global_symbols): New
5139         functions.
5140         (buildsym_init): Update.
5141
5142 2018-07-20  Tom Tromey  <tom@tromey.com>
5143
5144         * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
5145         (process_full_type_unit): Likewise.
5146         (dwarf2_start_symtab): Set list_in_scope.
5147
5148 2018-07-20  Tom Tromey  <tom@tromey.com>
5149
5150         * dwarf2read.c (process_psymtab_comp_unit_reader)
5151         (build_type_psymtabs_reader): Do not set list_in_scope.
5152
5153 2018-07-20  Tom Tromey  <tom@tromey.com>
5154
5155         * buildsym.c (free_pendings): Remove.
5156         (add_symbol_to_list, scoped_free_pendings)
5157         (finish_block_internal, buildsym_init): Update.
5158
5159 2018-07-20  Tom Tromey  <tom@tromey.com>
5160
5161         * xcoffread.c (read_xcoff_symtab): Update.
5162         * dwarf2read.c (read_func_scope, read_lexical_block_scope):
5163         Update.
5164         * dbxread.c (process_one_symbol): Update.
5165         * coffread.c (coff_symtab_read): Update.
5166         * buildsym.h (finish_block): Update.
5167         * buildsym.c (finish_block): Remove "listhead" argument.
5168         (end_symtab_get_static_block): Update.
5169
5170 2018-07-20  Tom Tromey  <tom@tromey.com>
5171
5172         * buildsym.h (class scoped_free_pendings): Remove constructor.
5173         * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
5174         method.
5175         <m_pending_block_obstack, m_pending_blocks>: New members.
5176         (pending_block_obstack, pending_blocks): Remove.
5177         (scoped_free_pendings::scoped_free_pendings): Default.
5178         (~scoped_free_pendings): Update.
5179         (free_pending_blocks): Remove.
5180         (finish_block_internal, record_pending_block, make_blockvector)
5181         (end_symtab_get_static_block, augment_type_symtab, push_context)
5182         (buildsym_init): Update.
5183
5184 2018-07-20  Tom Tromey  <tom@tromey.com>
5185
5186         * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
5187         m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
5188         members.
5189         (pending_addrmap, pending_addrmap_obstack)
5190         (pending_addrmap_interesting): Remove.
5191         (scoped_free_pendings, record_block_range, make_blockvector)
5192         (prepare_for_building, reset_symtab_globals, buildsym_init):
5193         Update.
5194
5195 2018-07-20  Tom Tromey  <tom@tromey.com>
5196
5197         * xcoffread.c (process_linenos): Update.
5198         * stabsread.c (define_symbol, read_type, read_enum_type): Update.
5199         * mdebugread.c (psymtab_to_symtab_1): Update.
5200         * dwarf2read.c (setup_type_unit_groups)
5201         (lnp_state_machine::handle_set_file, dwarf_record_line_p)
5202         (lnp_state_machine::record_line, dwarf_decode_lines): Update.
5203         * dbxread.c (process_one_symbol): Update.
5204         * coffread.c (coff_symtab_read, enter_linenos)
5205         (process_coff_symbol): Update.
5206         * buildsym.h (current_subfile): Don't declare.
5207         (get_current_subfile): Declare.
5208         * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
5209         member.
5210         (start_subfile, free_buildsym_compunit, push_subfile)
5211         (prepare_for_building, start_symtab): Update.
5212         (get_current_subfile): New function.
5213
5214 2018-07-20  Tom Tromey  <tom@tromey.com>
5215
5216         * coffread.c (coff_symtab_read): Update.
5217         * xcoffread.c (read_xcoff_symtab): Update.
5218         * dwarf2read.c (new_symbol): Update.
5219         (read_func_scope, read_lexical_block_scope): Update.
5220         * dbxread.c (process_one_symbol): Update.
5221         * buildsym.h (context_stack, context_stack_depth): Don't declare.
5222         (outermost_context_p): Remove macro.
5223         (outermost_context_p, get_current_context_stack)
5224         (get_context_stack_depth): Declare.
5225         (pop_context): Return struct context_stack.
5226         * buildsym.c (struct buildsym_compunit) <m_context_stack: New
5227         member.
5228         (context_stack_size): Remove.
5229         (INITIAL_CONTEXT_STACK_SIZE): Remove.
5230         (prepare_for_building, end_symtab_get_static_block)
5231         (augment_type_symtab, push_context): Update.
5232         (pop_context): Return struct context_stack.
5233         (outermost_context_p, get_current_context_stack)
5234         (get_context_stack_depth): New functions.
5235         (buildsym_init): Update.
5236
5237 2018-07-20  Tom Tromey  <tom@tromey.com>
5238
5239         * rust-exp.y: Now a pure parser.  Update all rules.
5240         (%union): Move earlier.
5241         (current_parser, work_obstack): Remove globals.
5242         (rust_parser, ~rust_parser): Update.
5243         (class rust_parser) <copy_name, concat3, crate_name, super_name,
5244         lex_character, lex_number, lex_string, lex_identifier,
5245         rust_lookup_type, convert_params_to_types, convert_ast_to_type,
5246         convert_name, convert_params_to_expression,
5247         convert_ast_to_expression, ast_basic_type, ast_operation,
5248         ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
5249         ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
5250         ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
5251         ast_array_type, ast_slice_type, ast_reference_type,
5252         ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
5253         (rust_parse): Update.
5254         (rustyyerror, rustyylex): Add parser parameter.
5255         (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
5256         (rust_lex_stringish_test, rust_lex_test_sequence)
5257         (rust_lex_test_trailing_dot, rust_lex_test_completion)
5258         (rust_lex_test_push_back, rust_lex_tests): Update.
5259
5260 2018-07-19  Pedro Alves  <palves@redhat.com>
5261
5262         * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
5263         gdb::unique_xmalloc_ptr.
5264         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
5265         Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
5266         * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
5267         copy-initialization.
5268         * guile/scm-pretty-print.c (ppscm_print_children): Use
5269         gdb::unique_xmalloc_ptr instead of cleanups.
5270         (gdbscm_apply_val_pretty_printer): Remove cleanups.
5271         * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
5272         gdb::unique_xmalloc_ptr.
5273         * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5274         Adjust to use gdb::unique_xmalloc_ptr.
5275         * guile/scm-utils.c (extract_arg): Adjust.
5276         * guile/scm-value.c (gdbscm_value_field): Adjust to use
5277         gdb::unique_xmalloc_ptr instead of a cleanup.
5278
5279 2018-07-19  Tom Tromey  <tom@tromey.com>
5280
5281         * utils.c (do_value_free_to_mark)
5282         (make_cleanup_value_free_to_mark): Remove.
5283         * utils.h (make_cleanup_value_free_to_mark): Remove.
5284
5285 2018-07-19  Pedro Alves  <palves@redhat.com>
5286
5287         * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
5288         forwarding reference.
5289
5290 2018-07-18  Pedro Alves  <palves@redhat.com>
5291
5292         * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
5293         gdbscm_wrap.  Use gdb::unique_xmalloc_ptr<char> instead of a
5294         cleanup.
5295
5296 2018-07-18  Pedro Alves  <palves@redhat.com>
5297
5298         * guile/guile-internal.h: Add comment about mixing GDB and Scheme
5299         exceptions.
5300         (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
5301         (gdbscm_wrap): New.
5302         * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
5303         directly instead of a cleanup.
5304         * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
5305         (vlscm_unop): ... this.  Reimplement using gdbscm_wrap.
5306         (vlscm_binop_gdbthrow): New, factored out from ...
5307         (vlscm_binop): ... this.  Reimplement using gdbscm_wrap.
5308         (vlscm_rich_compare): Use gdbscm_wrap.
5309         * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
5310         instead of a cleanup.
5311         (gdbscm_lookup_global_symbol): Use xfree directly instead of a
5312         cleanup.
5313         * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5314         Use xfree directly instead of a cleanup.
5315         * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
5316         Adjust to use gdbscm_wrap and scoped_value_mark.
5317         (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
5318         (gdbscm_value_address, gdbscm_value_dereference)
5319         (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
5320         scoped_value_mark.
5321         (gdbscm_value_dynamic_type): Use scoped_value_mark.
5322         (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
5323         scoped_value_mark.
5324         (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
5325         gdbscm_wrap and scoped_value_mark.
5326         (gdbscm_value_to_string): Use xfree directly instead of a
5327         cleanup.  Move 'buffer' unique_ptr to TRY scope.
5328         (gdbscm_value_to_lazy_string): Use xfree directly instead of a
5329         cleanup.  Move 'buffer' unique_ptr to TRY scope.  Use
5330         scoped_value_mark.
5331         (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
5332         (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
5333         scoped_value_mark.
5334         (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
5335         gdbscm_wrap.
5336
5337 2018-07-18  Tom de Vries  <tdevries@suse.de>
5338
5339         * findvar.c (default_read_var_value): Also resolve dynamic type for
5340         LOC_OPTIMIZED_OUT vars.
5341
5342 2018-07-18  Maciej W. Rozycki  <macro@mips.com>
5343
5344         * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
5345         decoding.
5346
5347 2018-07-17  Tom Tromey  <tom@tromey.com>
5348
5349         * guile/scm-param.c (pascm_set_func, pascm_show_func)
5350         (compute_enum_list, pascm_set_param_value_x)
5351         (gdbscm_parameter_value): Update.
5352         * guile/guile-internal.h (gdbscm_scm_to_string): Update.
5353         (gdbscm_scm_to_host_string): Update.
5354         * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
5355         Update.
5356         * guile/scm-cmd.c (cmdscm_add_completion): Update.
5357         * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
5358         * guile/scm-string.c (gdbscm_scm_to_string): Return
5359         unique_xmalloc_ptr.
5360         (gdbscm_scm_to_host_string): Likewise.
5361
5362 2018-07-17  Tom Tromey  <tom@tromey.com>
5363
5364         * guile/guile.c (gdbscm_eval_from_control_command): Update.
5365         * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
5366         * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
5367         * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
5368         unique_xmalloc_ptr.
5369
5370 2018-07-17  Tom Tromey  <tom@tromey.com>
5371
5372         * guile/scm-param.c (pascm_signal_setshow_error): Update.
5373         * guile/guile-internal.h (gdbscm_exception_message_to_string):
5374         Update.
5375         * guile/scm-cmd.c (cmdscm_function): Update.
5376         * guile/scm-pretty-print.c
5377         (ppscm_print_exception_unless_memory_error): Update.
5378         * guile/scm-exception.c (gdbscm_exception_message_to_string):
5379         Return unique_xmalloc_ptr.
5380
5381 2018-07-17  Tom Tromey  <tom@tromey.com>
5382
5383         * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
5384         Use string_printf.
5385
5386 2018-07-17  Jim Wilson  <jimw@sifive.com>
5387
5388         * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
5389         set_gdbarch_decr_pc_after_break.  Call riscv_read_misa_reg always.
5390         (riscv_gdbarch_init): Delete local has_compressed_isa.  Delete now
5391         unecessary braces after EF_RISCV_RVC test.  Delete call to
5392         set_gdbarch_decr_pc_after_break.
5393
5394         * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
5395         RISCV_LAST_FP_REGNUM + 1.
5396         (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
5397
5398 2018-07-17  Tom Tromey  <tom@tromey.com>
5399
5400         * configure.ac: Remove --disable-gdbcli.
5401         * configure: Rebuild.
5402         * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
5403         (SUBDIR_CLI_CFLAGS): Remove.
5404         (SFILES): Use SUBDIR_CLI_SRCS.
5405         (COMMON_OBS): Use SUBDIR_CLI_OBS.
5406
5407 2018-07-17  Tom Tromey  <tom@tromey.com>
5408
5409         PR gdb/18624:
5410         * coffread.c (coff_symtab_read): Use scoped_free_pendings.
5411
5412 2018-07-16  Jim Wilson  <jimw@sifive.com>
5413
5414         * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
5415
5416 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
5417
5418         * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
5419         variable.
5420         (libunwind_frame_sniffer): Likewise.
5421         (libunwind_frame_prev_register): Likewise.
5422         (libunwind_sigtramp_frame_sniffer): Likewise.
5423         * ia64-tdep.c (ia64_access_reg): Likewise.
5424         (ia64_access_rse_reg): Likewise.
5425         (ia64_libunwind_sigtramp_frame_this_id): Likewise.
5426         * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
5427
5428 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
5429
5430         * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
5431
5432 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
5433
5434         * remote-sim.c (gdbsim_target::close,
5435         gdbsim_target::mourn_inferior): Remove unused variables.
5436
5437 2018-07-16  Simon Marchi  <simon.marchi@polymtl.ca>
5438
5439         * ia64-tdep.c (ktab_buf): New global.
5440         (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
5441         (get_kernel_table): Adjust.
5442
5443 2018-07-16  Tom Tromey  <tom@tromey.com>
5444
5445         * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
5446         * dwarf2read.c (using_directives, new_symbol): Use
5447         outermost_context_p.
5448         * dbxread.c (process_one_symbol): Use outermost_context_p.
5449         * coffread.c (coff_symtab_read): Use outermost_context_p.
5450
5451 2018-07-16  Tom Tromey  <tom@tromey.com>
5452
5453         * dwarf2read.c (using_directives, read_func_scope)
5454         (read_lexical_block_scope): Update.
5455         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5456         * buildsym.h (local_using_directives, global_using_directives):
5457         Don't declare.
5458         (get_local_using_directives, set_local_using_directives)
5459         (get_global_using_directives): Declare.
5460         * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
5461         m_global_using_directives>: New members.
5462         (finish_block_internal, prepare_for_building)
5463         (reset_symtab_globals, end_symtab_get_static_block)
5464         (push_context): Update.
5465         (get_local_using_directives, set_local_using_directives)
5466         (get_global_using_directives): New functions.
5467         (buildsym_init): Update.
5468
5469 2018-07-16  Tom Tromey  <tom@tromey.com>
5470
5471         * xcoffread.c (xcoff_initial_scan): Don't call
5472         free_pending_blocks.
5473         * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
5474         * buildsym.h (class scoped_free_pendings): Add constructor.
5475         (free_pending_blocks): Don't declare.
5476         * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
5477         (free_pending_blocks): Now static.
5478
5479 2018-07-16  Tom Tromey  <tom@tromey.com>
5480
5481         * buildsym.h (push_subfile, pop_subfile): Update declarations.
5482         * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
5483         member.
5484         (struct subfile_stack): Remove.
5485         (subfile_stack): Remove.
5486         (push_subfile, pop_subfile, buildsym_init): Update.
5487
5488 2018-07-16  Tom Tromey  <tom@tromey.com>
5489
5490         * buildsym.c (push_subfile): Use gdb_assert.
5491         (pop_subfile): Use gdb_assert.
5492
5493 2018-07-16  Tom Tromey  <tom@tromey.com>
5494
5495         * buildsym.h (merge_symbol_lists): Remove.
5496         * buildsym.c (merge_symbol_lists): Remove.
5497
5498 2018-07-16  Tom Tromey  <tom@tromey.com>
5499
5500         * stabsread.c (scan_file_globals): Update comment.
5501         * stabsread.h (scan_file_globals): Move from buildsym.h.
5502         * buildsym.h (scan_file_globals): Move to stabsread.h.
5503
5504 2018-07-16  Tom Tromey  <tom@tromey.com>
5505
5506         * xcoffread.c (xcoff_new_init): Update.
5507         * mipsread.c (mipscoff_new_init): Update.
5508         * mdebugread.c (mdebug_build_psymtabs): Update.
5509         * elfread.c (elf_new_init): Update.
5510         * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
5511         (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
5512         * buildsym.h (buildsym_new_init): Don't declare.
5513         * buildsym.c (buildsym_new_init): Remove.
5514
5515 2018-07-16  Tom Tromey  <tom@tromey.com>
5516
5517         * stabsread.h (within_function): Move from buildsym.h.
5518         * stabsread.c (start_stabs): Clear within_function.
5519         * coffread.c (coff_start_symtab): Clear within_function.
5520         * buildsym.h (within_function): Move to stabsread.h.
5521         * buildsym.c (prepare_for_building): Update.
5522
5523 2018-07-16  Tom Tromey  <tom@tromey.com>
5524
5525         * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
5526         * dwarf2read.c (dwarf2_start_symtab): Don't set
5527         processing_gcc_compilation.
5528         * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
5529
5530 2018-07-16  Tom Tromey  <tom@tromey.com>
5531
5532         * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
5533         (next_symbol_text_func): Move from buildsym.h.
5534         * stabsread.c (hashname): Move from buildsym.c.
5535         * buildsym.h (HASHSIZE, symnum, next_symbol_text)
5536         (next_symbol_text_func, hashname): Move to stabsread.h.
5537         * buildsym.c: Don't include bcache.h
5538         (hashname): Move to stasbread.c.
5539
5540 2018-07-16  Tom Tromey  <tom@tromey.com>
5541
5542         * buildsym.h (context_stack_size): Don't declare.
5543         * buildsym.c (context_stack_size): New global.
5544
5545 2018-07-16  Tom Tromey  <tom@tromey.com>
5546
5547         * dbxread.c (processing_acc_compilation): New global.
5548         * buildsym.h (processing_acc_compilation): Don't declare.
5549
5550 2018-07-16  Tom Tromey  <tom@tromey.com>
5551
5552         * xcoffread.c (aix_process_linenos, complete_symtab): Update.
5553         * dbxread.c (read_ofile_symtab): Update.
5554         * coffread.c (coff_start_symtab, coff_end_symtab): Update.
5555         * buildsym.h (last_source_start_addr): Remove.
5556         (set_last_source_start_addr, get_last_source_start_addr):
5557         Declare.
5558         * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
5559         parameter.
5560         (struct buildsym_compunit) <m_last_source_start_addr>: New
5561         member.
5562         (prepare_for_building): Remove start_addr parameter.
5563         (start_symtab, restart_symtab, end_symtab_get_static_block)
5564         (end_symtab_with_blockvector): Update.
5565         (set_last_source_start_addr, get_last_source_start_addr): New
5566         functions.
5567
5568 2018-07-16  Tom Tromey  <tom@tromey.com>
5569
5570         * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
5571         member.
5572         (have_line_numbers): Remove.
5573         (record_line, prepare_for_building, end_symtab_get_static_block)
5574         (augment_type_symtab): Update.
5575
5576 2018-07-16  Tom Tromey  <tom@tromey.com>
5577
5578         * buildsym.c (~buildsym_compunit): Free the macro table.
5579         (struct buildsym_compunit) <get_macro_table, release_macros>: New
5580         methods.
5581         <m_pending_macros>: New member.
5582         (pending_macros): Remove.
5583         (~scoped_free_pendings, get_macro_table, prepare_for_building)
5584         (reset_symtab_globals, end_symtab_get_static_block)
5585         (end_symtab_with_blockvector, augment_type_symtab)
5586         (buildsym_init): Update.
5587
5588 2018-07-16  Tom Tromey  <tom@tromey.com>
5589
5590         * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
5591         parameter.
5592         (buildsym_compunit::set_last_source_file): New method.
5593         <m_last_source_file>: New member.
5594         (prepare_for_building): Remove "name" parameter.
5595         (start_symtab, restart_symtab, reset_symtab_globals): Update.
5596         (last_source_file): Remove.
5597         (set_last_source_file, get_last_source_file): Update.
5598
5599 2018-07-16  Tom Tromey  <tom@tromey.com>
5600
5601         * buildsym.c (prepare_for_building): Add assert.
5602
5603 2018-07-16  Tom Tromey  <tom@tromey.com>
5604
5605         * buildsym.c (~buildsym_compunit): Update.
5606         (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
5607         (start_subfile, patch_subfile_names)
5608         (end_symtab_with_blockvector): Update.
5609
5610 2018-07-16  Tom Tromey  <tom@tromey.com>
5611
5612         * buildsym.c (struct buildsym_compunit): Add constructor,
5613         destructor, initializers.
5614         (start_buildsym_compunit): Remove.
5615         (free_buildsym_compunit): Use "delete".
5616         (start_symtab, restart_symtab): Use "new".
5617
5618 2018-07-13  Simon Marchi  <simon.marchi@polymtl.ca>
5619
5620         * symfile.c (set_objfile_default_section_offset): Remove struct
5621         keyword.
5622
5623 2018-07-14  Stafford Horne  <shorne@gmail.com>
5624
5625         * (Responsible Maintainers): Add myself as or1k maintainer.
5626
5627 2018-07-13  Tom Tromey  <tom@tromey.com>
5628
5629         * symfile.c (set_objfile_default_section_offset): Use extra braces
5630         around initializer.
5631
5632 2018-07-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5633
5634         * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
5635         non-branching basr.
5636
5637 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5638
5639         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5640         unittests/cli-utils-selftests.c
5641         * unittests/cli-utils-selftests.c: New file.
5642
5643 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5644
5645         * NEWS: Mention new commands. Mention change to 'thread apply'.
5646
5647 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5648
5649         * thread.c (thr_try_catch_cmd): New function.
5650         (thread_apply_all_command): Handle qcs flags.
5651         (thread_apply_command): Handle qcs flags.
5652         (taas_command): New function.
5653         (tfaas_command): New function.
5654         (_initialize_thread): Update to setup the new commands 'taas
5655         and 'tfaas'. Change doc string for 'thread apply'.
5656
5657 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5658
5659         * stack.c: (trailing_outermost_frame): New function, mostly
5660         extracted from backtrace_command_1.
5661         (leading_innermost_frame): New function.
5662         (backtrace_command_1): Update to call trailing_outermost_frame.
5663         (frame_apply_command_count): New function.
5664         (frame_apply_level_command): New function.
5665         (frame_apply_all_command): New function.
5666         (frame_apply_command): New function.
5667         (faas_command): New function.
5668         (frame_cmd_list): New variable.
5669         (_initialize_stack): Update to setup the new commands 'frame apply'
5670         and 'faas'.
5671
5672 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5673
5674         * cli-utils.c (number_or_range_parser::get_number): Only handle
5675         numbers or convenience var as numbers.
5676         (parse_flags): New function.
5677         (parse_flags_qcs): New function.
5678         (number_or_range_parser::finished): Ensure parsing end is detected
5679         before end of string.
5680         * cli-utils.h (parse_flags): New function.
5681         (parse_flags_qcs): New function.
5682         (number_or_range_parser): Remove m_finished bool.
5683         (number_or_range_parser::skip_range): Set m_in_range to false.
5684
5685 2018-07-12  Sergio Durigan Junior  <sergiodj@redhat.com>
5686
5687         * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
5688         on Windows.
5689
5690 2018-07-11  Sergio Durigan Junior  <sergiodj@redhat.com>
5691             Jan Kratochvil  <jan.kratochvil@redhat.com>
5692             Paul Fertser  <fercerpav@gmail.com>
5693             Tsutomu Seki  <sekiriki@gmail.com>
5694             Pedro Alves  <palves@redhat.com>
5695
5696         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5697         'unittests/parse-connection-spec-selftests.c'.
5698         (COMMON_SFILES): Add 'common/netstuff.c'.
5699         (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
5700         * NEWS (Changes since GDB 8.2): Mention IPv6 support.
5701         * common/netstuff.c: New file.
5702         * common/netstuff.h: New file.
5703         * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
5704         (wait_for_connect): Update comment.  New parameter
5705         'gdb::optional<int> sock' instead of 'struct serial *scb'.
5706         Use 'sock' directly instead of 'scb->fd'.
5707         (try_connect): New function, with code from 'net_open'.
5708         (net_open): Rewrite main loop to deal with multiple
5709         sockets/addresses.  Handle IPv6-style hostnames; implement
5710         support for IPv6 connections.
5711         * unittests/parse-connection-spec-selftests.c: New file.
5712
5713 2018-07-11  Pedro Alves  <palves@redhat.com>
5714
5715         PR gdb/23377
5716         * remote.c (remote_target::remote_detach_pid): Call
5717         set_current_process.
5718
5719 2018-07-11  Pedro Alves  <palves@redhat.com>
5720
5721         * h8300-tdep.c (h8300_gdbarch_init): Remove
5722         set_gdbarch_ecoff_reg_to_regnum calls.
5723
5724 2018-07-11  Sergio Durigan Junior  <sergiodj@redhat.com>
5725
5726         PR c++/23373
5727         * c-typeprint.c (c_type_print_base_struct_union): Don't print
5728         offsets/sizes for static members of a class/struct.
5729
5730 2018-07-11  Alan Hayward  <alan.hayward@arm.com>
5731
5732         * target-descriptions.c (tdesc_register_bitsize): Rename.
5733         * target-descriptions.h (tdesc_register_bitsize): Likewise.
5734         * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
5735         * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
5736
5737 2018-07-10  Tom Tromey  <tom@tromey.com>
5738
5739         * breakpoint.c (moribund_locations): Now static and a
5740         std::vector.
5741         (breakpoint_init_inferior, moribund_breakpoint_here_p)
5742         (build_bpstat_chain, update_global_location_list)
5743         (breakpoint_retire_moribund): Update.
5744         * breakpoint.h (bp_location_p): Remove typedef.  Don't declare
5745         VEC.
5746
5747 2018-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5748
5749         * riscv-tdep.c (riscv_is_fp_regno_p): New function.
5750         (riscv_register_reggroup_p): Use new function, remove unneeded
5751         parenthesis.
5752         (riscv_push_dummy_call): Extend assert to compare against xlen or
5753         flen based on register type.
5754
5755 2018-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5756
5757         * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
5758
5759 2018-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
5760
5761         * remote.c (show_hardware_watchpoint_limit): New function.
5762         (show_hardware_watchpoint_length_limit): New function.
5763         (show_hardware_breakpoint_limit): New function.
5764         (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
5765         where appropriate, update help text.
5766
5767 2018-07-09  Tom Tromey  <tom@tromey.com>
5768
5769         * Makefile.in (CDEPS): Don't mention XM_CDEPS.
5770         (CLIBS): Don't mention NAT_CLIBS.
5771
5772 2018-07-09  Tom Tromey  <tom@tromey.com>
5773
5774         * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
5775         (LIBGDB_OBS, clean mostlyclean): Update.
5776         (gdb$(EXEEXT), insight$(EXEEXT)): Update.
5777
5778 2018-07-09  Tom Tromey  <tom@tromey.com>
5779
5780         * Makefile.in (%.c: %.y): Use ECHO_YACC.
5781         (%.c: %.l): Use ECHO_LEX.  Just fail if flex not available.
5782         * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
5783
5784 2018-07-09  Tom Tromey  <tom@tromey.com>
5785
5786         * Makefile.in (ALLDEPFILES): Remove exec.c.
5787         (COMMON_OBS): Remove exec.o.
5788         (COMMON_SFILES): Add exec.c.
5789
5790 2018-07-09  Tom Tromey  <tom@tromey.com>
5791
5792         * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
5793
5794 2018-07-09  Tom Tromey  <tom@tromey.com>
5795
5796         * Makefile.in (clean mostlyclean): Remove stamp-version.
5797         (version.c): Depend on stamp-version.
5798         (stamp-version): New rule, from version.c rule.
5799
5800 2018-07-09  Tom Tromey  <tom@tromey.com>
5801
5802         * Makefile.in (init.c): Depend on stamp-init.
5803         (stamp-init): New rule, from init.c rule.
5804         (clean mostlyclean): Remove stamp-init.
5805
5806 2018-07-09  Tom Tromey  <tom@tromey.com>
5807
5808         * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
5809         SUBDIR_GCC_COMPILE_SRCS.
5810
5811 2018-07-09  Tom Tromey  <tom@tromey.com>
5812
5813         * Makefile.in (init.c): Remove some unused sed rules.
5814
5815 2018-07-09  Tom Tromey  <tom@tromey.com>
5816
5817         * Makefile.in (TSOBS): Remove.
5818         (INIT_FILES): Update.
5819         (LIBGDB_OBS): Update.
5820         (COMMON_SFILES): Add inflow.c.
5821         (SFILES): Remove inflow.c.
5822
5823 2018-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5824
5825         * contrib/gdb-add-index.sh ($dwarf5): New, use it.
5826
5827 2018-07-07  Simon Marchi  <simon.marchi@polymtl.ca>
5828
5829         * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
5830         get_saveloc_name, is_signal_frame_name, step_name,
5831         init_remote_name, create_addr_space_name,
5832         destroy_addr_space_name, search_unwind_table_name,
5833         find_dyn_list_name): Constify.
5834
5835 2018-07-05  Simon Marchi  <simon.marchi@polymtl.ca>
5836
5837         * darwin-nat.c (darwin_pthread_kill): New function.
5838         (darwin_resume_thread): Use darwin_pthread_kill.
5839
5840 2018-07-05  Tom de Vries  <tdevries@suse.de>
5841
5842         * macroexp.c (macro_buffer) <operator=>: New member function.
5843
5844 2018-07-04  Tom Tromey  <tom@tromey.com>
5845
5846         * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
5847
5848 2018-07-04  Simon Marchi  <simon.marchi@polymtl.ca>
5849
5850         * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
5851         * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
5852         * maint.c: Likewise.
5853         * top.c: Likewise.
5854
5855 2018-07-04  Joel Brobecker  <brobecker@adacore.com>
5856
5857         * NEWS: Create a new section for the next release branch.
5858         Rename the section of the current branch, now that it has
5859         been cut.
5860
5861 2018-07-04  Joel Brobecker  <brobecker@adacore.com>
5862
5863         GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
5864         * version.in: Bump version to 8.2.50.DATE-git.
5865
5866 2018-07-04  Vyacheslav Barinov  <v.barinov@samsung.com>
5867             Pedro Alves  <palves@redhat.com>
5868
5869         * linux-nat.c (linux_init_ptrace): Rename to ...
5870         (linux_init_ptrace_procfs): ... this.  Call
5871         linux_proc_init_warnings.
5872         (linux_nat_target::post_attach)
5873         (linux_nat_target::post_startup_inferior): Adjust.
5874         * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
5875         * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
5876
5877 2018-07-04  Tom de Vries  <tdevries@suse.de>
5878
5879         * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
5880         check ...
5881         (read_comp_unit_head): ... here.
5882
5883 2018-07-03  Tom Tromey  <tom@tromey.com>
5884
5885         * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
5886         (stop_tracing, tstatus_command)
5887         (find_matching_tracepoint_location, merge_uploaded_tracepoints)
5888         (print_one_static_tracepoint_marker): Update.
5889         * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
5890         std::vector.
5891         * breakpoint.h (breakpoint_p): Remove typedef.  Don't declare
5892         VEC.
5893         (all_tracepoints, static_tracepoints_here): Return std::vector.
5894
5895 2018-07-03  Tom Tromey  <tom@tromey.com>
5896
5897         * common/ptid.c (ptid_equal): Remove.
5898         * common/ptid.h (ptid_equal): Don't declare.
5899         * ada-tasks.c: Update.
5900         * breakpoint.c: Update.
5901         * common/agent.c: Update.
5902         * corelow.c: Update.
5903         * darwin-nat-info.c: Update.
5904         * darwin-nat.c: Update.
5905         * dcache.c: Update.
5906         * dtrace-probe.c: Update.
5907         * dummy-frame.c: Update.
5908         * fbsd-nat.c: Update.
5909         * frame.c: Update.
5910         * gdbthread.h: Update.
5911         * gnu-nat.c: Update.
5912         * go32-nat.c: Update.
5913         * inf-loop.c: Update.
5914         * inf-ptrace.c: Update.
5915         * infcall.c: Update.
5916         * infcmd.c: Update.
5917         * inflow.c: Update.
5918         * infrun.c: Update.
5919         * linux-fork.c: Update.
5920         * linux-nat.c: Update.
5921         * linux-thread-db.c: Update.
5922         * mi/mi-cmd-var.c: Update.
5923         * mi/mi-interp.c: Update.
5924         * mi/mi-main.c: Update.
5925         * nto-procfs.c: Update.
5926         * ppc-linux-tdep.c: Update.
5927         * procfs.c: Update.
5928         * python/py-inferior.c: Update.
5929         * python/py-record-btrace.c: Update.
5930         * python/py-record.c: Update.
5931         * ravenscar-thread.c: Update.
5932         * regcache.c: Update.
5933         * remote-sim.c: Update.
5934         * remote.c: Update.
5935         * sol-thread.c: Update.
5936         * solib.c: Update.
5937         * target.c: Update.
5938         * tui/tui-stack.c: Update.
5939         * varobj.c: Update.
5940         * windows-nat.c: Update.
5941         * windows-tdep.c: Update.
5942
5943 2018-07-03  Tom Tromey  <tom@tromey.com>
5944
5945         * common/ptid.c (ptid_match): Remove.
5946         * common/ptid.h (ptid_match): Don't declare.
5947         * fbsd-nat.c: Update.
5948         * infcmd.c: Update.
5949         * infrun.c: Update.
5950         * linux-nat.c: Update.
5951         * record-btrace.c: Update.
5952         * regcache.c: Update.
5953         * remote.c: Update.
5954
5955 2018-07-03  Tom Tromey  <tom@tromey.com>
5956
5957         * common/ptid.c (ptid_tid_p): Remove.
5958         * common/ptid.h (ptid_tid_p): Don't declare.
5959         * sol-thread.c: Update.
5960
5961 2018-07-03  Tom Tromey  <tom@tromey.com>
5962
5963         * common/ptid.c (ptid_lwp_p): Remove.
5964         * common/ptid.h (ptid_lwp_p): Don't declare.
5965         * fbsd-nat.c: Update.
5966         * linux-nat.c: Update.
5967         * nat/linux-procfs.c: Update.
5968         * nat/x86-linux-dregs.c: Update.
5969         * sol-thread.c: Update.
5970
5971 2018-07-03  Tom Tromey  <tom@tromey.com>
5972
5973         * common/ptid.c (ptid_is_pid): Remove.
5974         * common/ptid.h (ptid_is_pid): Don't declare.
5975         * infrun.c: Update.
5976         * linux-nat.c: Update.
5977         * mi/mi-interp.c: Update.
5978         * remote.c: Update.
5979         * thread.c: Update.
5980
5981 2018-07-03  Tom Tromey  <tom@tromey.com>
5982
5983         * common/ptid.c (ptid_get_tid): Remove.
5984         * common/ptid.h (ptid_get_tid): Don't declare.
5985         * ada-tasks.c: Update.
5986         * aix-thread.c: Update.
5987         * bsd-uthread.c: Update.
5988         * darwin-nat.c: Update.
5989         * fbsd-nat.c: Update.
5990         * i386-darwin-nat.c: Update.
5991         * infrun.c: Update.
5992         * linux-tdep.c: Update.
5993         * nto-procfs.c: Update.
5994         * ppc-ravenscar-thread.c: Update.
5995         * python/py-infthread.c: Update.
5996         * ravenscar-thread.c: Update.
5997         * sol-thread.c: Update.
5998         * sparc-ravenscar-thread.c: Update.
5999         * windows-nat.c: Update.
6000
6001 2018-07-03  Tom Tromey  <tom@tromey.com>
6002
6003         * common/ptid.c (ptid_get_lwp): Remove.
6004         * common/ptid.h (ptid_get_lwp): Don't declare.
6005         * aarch64-linux-nat.c: Update.
6006         * ada-tasks.c: Update.
6007         * aix-thread.c: Update.
6008         * amd64-linux-nat.c: Update.
6009         * arm-linux-nat.c: Update.
6010         * corelow.c: Update.
6011         * fbsd-nat.c: Update.
6012         * fbsd-tdep.c: Update.
6013         * gnu-nat.c: Update.
6014         * i386-cygwin-tdep.c: Update.
6015         * i386-gnu-nat.c: Update.
6016         * i386-linux-nat.c: Update.
6017         * ia64-linux-nat.c: Update.
6018         * inf-ptrace.c: Update.
6019         * infrun.c: Update.
6020         * linux-fork.c: Update.
6021         * linux-nat.c: Update.
6022         * linux-tdep.c: Update.
6023         * linux-thread-db.c: Update.
6024         * mips-linux-nat.c: Update.
6025         * nat/aarch64-linux-hw-point.c: Update.
6026         * nat/aarch64-linux.c: Update.
6027         * nat/linux-btrace.c: Update.
6028         * nat/linux-osdata.c: Update.
6029         * nat/linux-procfs.c: Update.
6030         * nat/x86-linux-dregs.c: Update.
6031         * obsd-nat.c: Update.
6032         * ppc-fbsd-nat.c: Update.
6033         * ppc-linux-nat.c: Update.
6034         * procfs.c: Update.
6035         * python/py-infthread.c: Update.
6036         * ravenscar-thread.c: Update.
6037         * remote.c: Update.
6038         * s390-linux-nat.c: Update.
6039         * sol-thread.c: Update.
6040         * sol2-tdep.c: Update.
6041         * spu-linux-nat.c: Update.
6042         * x86-linux-nat.c: Update.
6043         * xtensa-linux-nat.c: Update.
6044
6045 2018-07-03  Tom Tromey  <tom@tromey.com>
6046
6047         * common/ptid.c (ptid_get_pid): Remove.
6048         * common/ptid.h (ptid_get_pid): Don't declare.
6049         * aarch64-linux-nat.c: Update.
6050         * ada-lang.c: Update.
6051         * aix-thread.c: Update.
6052         * alpha-bsd-nat.c: Update.
6053         * amd64-fbsd-nat.c: Update.
6054         * amd64-linux-nat.c: Update.
6055         * arm-linux-nat.c: Update.
6056         * arm-nbsd-nat.c: Update.
6057         * auxv.c: Update.
6058         * break-catch-syscall.c: Update.
6059         * breakpoint.c: Update.
6060         * bsd-uthread.c: Update.
6061         * corelow.c: Update.
6062         * ctf.c: Update.
6063         * darwin-nat.c: Update.
6064         * fbsd-nat.c: Update.
6065         * fbsd-tdep.c: Update.
6066         * gcore.c: Update.
6067         * gnu-nat.c: Update.
6068         * hppa-nbsd-nat.c: Update.
6069         * hppa-obsd-nat.c: Update.
6070         * i386-fbsd-nat.c: Update.
6071         * ia64-linux-nat.c: Update.
6072         * inf-ptrace.c: Update.
6073         * infcmd.c: Update.
6074         * inferior.c: Update.
6075         * inferior.h: Update.
6076         * inflow.c: Update.
6077         * infrun.c: Update.
6078         * linux-fork.c: Update.
6079         * linux-nat.c: Update.
6080         * linux-tdep.c: Update.
6081         * linux-thread-db.c: Update.
6082         * m68k-bsd-nat.c: Update.
6083         * mi/mi-interp.c: Update.
6084         * mi/mi-main.c: Update.
6085         * mips-linux-nat.c: Update.
6086         * mips-nbsd-nat.c: Update.
6087         * mips64-obsd-nat.c: Update.
6088         * nat/aarch64-linux-hw-point.c: Update.
6089         * nat/aarch64-linux.c: Update.
6090         * nat/linux-btrace.c: Update.
6091         * nat/linux-osdata.c: Update.
6092         * nat/linux-procfs.c: Update.
6093         * nat/x86-linux-dregs.c: Update.
6094         * nto-procfs.c: Update.
6095         * obsd-nat.c: Update.
6096         * ppc-linux-nat.c: Update.
6097         * ppc-nbsd-nat.c: Update.
6098         * ppc-obsd-nat.c: Update.
6099         * proc-service.c: Update.
6100         * procfs.c: Update.
6101         * python/py-inferior.c: Update.
6102         * python/py-infthread.c: Update.
6103         * ravenscar-thread.c: Update.
6104         * record.c: Update.
6105         * remote-sim.c: Update.
6106         * remote.c: Update.
6107         * rs6000-nat.c: Update.
6108         * s390-linux-nat.c: Update.
6109         * sh-nbsd-nat.c: Update.
6110         * sol-thread.c: Update.
6111         * sparc-nat.c: Update.
6112         * sparc64-tdep.c: Update.
6113         * spu-linux-nat.c: Update.
6114         * spu-tdep.c: Update.
6115         * target-debug.h: Update.
6116         * target.c: Update.
6117         * thread.c: Update.
6118         * tid-parse.c: Update.
6119         * tracefile-tfile.c: Update.
6120         * vax-bsd-nat.c: Update.
6121         * windows-nat.c: Update.
6122         * x86-linux-nat.c: Update.
6123         * x86-nat.c: Update.
6124
6125 2018-07-03  Tom Tromey  <tom@tromey.com>
6126
6127         * common/ptid.c (pid_to_ptid): Remove.
6128         * common/ptid.h (pid_to_ptid): Don't declare.
6129         * aix-thread.c: Update.
6130         * arm-linux-nat.c: Update.
6131         * common/ptid.c: Update.
6132         * common/ptid.h: Update.
6133         * corelow.c: Update.
6134         * ctf.c: Update.
6135         * darwin-nat.c: Update.
6136         * fbsd-nat.c: Update.
6137         * fork-child.c: Update.
6138         * gnu-nat.c: Update.
6139         * go32-nat.c: Update.
6140         * inf-ptrace.c: Update.
6141         * infcmd.c: Update.
6142         * inferior.c: Update.
6143         * infrun.c: Update.
6144         * linux-fork.c: Update.
6145         * linux-nat.c: Update.
6146         * nat/aarch64-linux-hw-point.c: Update.
6147         * nat/fork-inferior.c: Update.
6148         * nat/x86-linux-dregs.c: Update.
6149         * nto-procfs.c: Update.
6150         * obsd-nat.c: Update.
6151         * procfs.c: Update.
6152         * progspace.c: Update.
6153         * remote.c: Update.
6154         * rs6000-nat.c: Update.
6155         * s390-linux-nat.c: Update.
6156         * sol-thread.c: Update.
6157         * spu-linux-nat.c: Update.
6158         * target.c: Update.
6159         * top.c: Update.
6160         * tracefile-tfile.c: Update.
6161         * windows-nat.c: Update.
6162
6163 2018-07-03  Tom Tromey  <tom@tromey.com>
6164
6165         * common/ptid.h (ptid_build): Don't declare.
6166         * common/ptid.c (ptid_build): Remove.
6167         * aix-thread.c: Update.
6168         * bsd-kvm.c: Update.
6169         * bsd-uthread.c: Update.
6170         * common/agent.c: Update.
6171         * common/ptid.c: Update.
6172         * common/ptid.h: Update.
6173         * corelow.c: Update.
6174         * darwin-nat.c: Update.
6175         * fbsd-nat.c: Update.
6176         * gnu-nat.c: Update.
6177         * linux-fork.c: Update.
6178         * linux-nat.c: Update.
6179         * linux-thread-db.c: Update.
6180         * nat/linux-osdata.c: Update.
6181         * nat/linux-procfs.c: Update.
6182         * nto-procfs.c: Update.
6183         * obsd-nat.c: Update.
6184         * proc-service.c: Update.
6185         * procfs.c: Update.
6186         * ravenscar-thread.c: Update.
6187         * remote-sim.c: Update.
6188         * remote.c: Update.
6189         * sol-thread.c: Update.
6190         * target.c: Update.
6191         * windows-nat.c: Update.
6192
6193 2018-07-03  Tom Tromey  <tom@tromey.com>
6194
6195         * infrun.c (follow_exec): Use exit_inferior_silent.
6196         * inferior.c (exit_inferior_num_silent): Remove.
6197         * inferior.h (exit_inferior_num_silent): Don't declare.
6198
6199 2018-07-03  Tom Tromey  <tom@tromey.com>
6200
6201         PR cli/23340:
6202         * darwin-nat.c (darwin_attach_pid): Reset inferior and
6203         inferior_ptid on error.
6204
6205 2018-07-02  Maciej W. Rozycki  <macro@mips.com>
6206             Simon Marchi  <simon.marchi@polymtl.ca>
6207
6208         PR tdep/8282
6209         * disasm.h (gdb_disassembler): Add
6210         `m_disassembler_options_holder'. member
6211         * disasm.c (get_all_disassembler_options): New function.
6212         (gdb_disassembler::gdb_disassembler): Use it.
6213         (gdb_buffered_insn_length_init_dis): Likewise.
6214         (gdb_buffered_insn_length): Adjust accordingly.
6215         (set_disassembler_options): Handle options with arguments.
6216         (show_disassembler_options_sfunc): Likewise.  Add a leading new
6217         line if showing options with descriptions.
6218         (disassembler_options_completer): Adapt to using the
6219         `disasm_options_and_args_t' structure.
6220         * mips-tdep.c (mips_disassembler_options): New variable.
6221         (mips_disassembler_options_o32): Likewise.
6222         (mips_disassembler_options_n32): Likewise.
6223         (mips_disassembler_options_n64): Likewise.
6224         (gdb_print_insn_mips): Don't set `disassembler_options'.
6225         (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
6226         functions.
6227         (mips_gdbarch_init): Always set `gdbarch_print_insn' to
6228         `gdb_print_insn_mips'.  Set `gdbarch_disassembler_options',
6229         `gdbarch_disassembler_options_implicit' and
6230         `gdbarch_valid_disassembler_options'.
6231         * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
6232         `disasm_options_and_args_t' structure.
6233         * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
6234         method.
6235         (valid_disassembler_options): Switch from `disasm_options_t' to
6236         the `disasm_options_and_args_t' structure.
6237         * NEWS: Document `set disassembler-options' support for the MIPS
6238         target.
6239         * gdbarch.h: Regenerate.
6240         * gdbarch.c: Regenerate.
6241
6242 2018-07-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6243
6244         * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
6245
6246 2018-06-29  Joel Brobecker  <brobecker@adacore.com>
6247
6248         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
6249         parameter in call to amd64_target_description.
6250         * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
6251         * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
6252         (amd64fbsd_init_abi): Likewise.
6253         * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6254         * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6255         * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6256         * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
6257
6258 2018-06-29  Pedro Alves  <palves@redhat.com>
6259
6260         * gdb/amd64-tdep.h (amd64_create_target_description): Add
6261         "segments" parameter.
6262         * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
6263         (_initialize_amd64_tdep): Update call to
6264         amd64_create_target_description.
6265         (amd64_target_description): Add "segments" parameter.  Adjust
6266         the implementation to use it.
6267         * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
6268         call to amd64_create_target_description.
6269         * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
6270         * gdb/arch/amd64.h (amd64_create_target_description): Add
6271         "segments" register.
6272         * gdb/arch/amd64.c (amd64_create_target_description): Add
6273         "segments" parameter.  Call create_feature_i386_64bit_segments
6274         only if SEGMENTS is true.
6275         * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
6276         call to amd64_create_target_description.
6277
6278 2018-06-29  Pedro Alves  <palves@redhat.com>
6279
6280         * thread.c (thread_target_id_str): New, factored out from ...
6281         (print_thread_info_1): ... here.  Use it to compute the max
6282         "Target Id" column width.
6283
6284 2018-06-29  Pedro Alves  <palves@redhat.com>
6285
6286         * remote.c (remote_target::extra_thread_info): Delete
6287         'display_buf' and 'n' locals.  from the cache, regardless of
6288         packet mechanims is in use.  Use cache for qThreadExtra and qP
6289         methods too.
6290
6291 2018-06-29  Pedro Alves  <palves@redhat.com>
6292
6293         * blockframe.c (find_pc_sect_containing_function): New function.
6294         * breakpoint.c (print_breakpoint_location): Don't call
6295         find_pc_sect_function.
6296         * linespec.c (create_sals_line_offset): Record the location's
6297         symbol in the sal.
6298         * linespec.c (convert_address_location_to_sals): Fill in sal's
6299         symbol with find_pc_sect_containing_function.
6300         * symtab.c (find_function_start_sal): Rename to ...
6301         (find_function_start_sal_1): ... this.
6302         (find_function_start_sal): Reimplement as wrapper around
6303         find_function_start_sal_1, and use
6304         find_pc_sect_containing_function to fill in the sal's symbol.
6305         (find_function_start_sal(symbol*, bool)): Adjust.
6306         * symtab.h (find_pc_function, find_pc_sect_function): Adjust
6307         comments.
6308         (find_pc_sect_containing_function): Declare.
6309
6310 2018-06-29  Pedro Alves  <palves@redhat.com>
6311
6312         * inline-frame.c (stopped_by_user_bp_inline_frame): Return
6313         true if the the location has no symbol.
6314
6315 2018-06-28  Tom Tromey  <tom@tromey.com>
6316
6317         * NEWS: Mention --enable-codesign.
6318         * silent-rules.mk (ECHO_SIGN): New variable.
6319         * configure.ac: Add --enable-codesign.
6320         * configure: Rebuild.
6321         * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
6322         (gdb$(EXEEXT)): Optionally invoke codesign.
6323
6324 2018-06-28  Pedro Alves  <palves@redhat.com>
6325
6326         * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
6327         comments.
6328         (switch_to_thread_no_regs): Adjust comment.
6329         * infcmd.c (stop_pc): Delete.
6330         (post_create_inferior, info_program_command): Replace references
6331         to stop_pc with references to thread_info->suspend.stop_pc.
6332         * inferior.h (stop_pc): Delete declaration.
6333         * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
6334         (handle_inferior_event_1, handle_signal_stop)
6335         (process_event_stop_test, keep_going_stepped_thread)
6336         (handle_step_into_function, handle_step_into_function_backward)
6337         (print_stop_location): Replace references to stop_pc with
6338         references to thread_info->suspend.stop_pc.
6339         (struct infcall_suspend_state) <stop_pc>: Delete field.
6340         (save_infcall_suspend_state, restore_infcall_suspend_state):
6341         Remove references to inf_stat->stop_pc.
6342         * linux-fork.c (fork_load_infrun_state): Likewise.
6343         * record-btrace.c (record_btrace_set_replay): Likewise.
6344         * record-full.c (record_full_goto_entry): Likewise.
6345         * remote.c (print_one_stopped_thread): Likewise.
6346         * target.c (target_resume): Extend comment.
6347         * thread.c (set_executing_thread): New.
6348         (set_executing): Use it.
6349         (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
6350         Remove references to stop_pc.
6351
6352 2018-06-28  Pedro Alves  <palves@redhat.com>
6353
6354         * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
6355         Moving fetching stop_pc until after ecs->event_thread is refreshed.
6356
6357 2018-06-28  Tom Tromey  <tom@tromey.com>
6358
6359         * coffread.c (coff_symfile_finish): Update.
6360         * xcoffread.c (xcoff_symfile_finish): Update.
6361         * elfread.c (elf_symfile_finish): Update.
6362         * symfile.h (dwarf2_free_objfile): Don't declare.
6363         * dwarf2read.c (_initialize_dwarf2_read): Use
6364         register_objfile_data_with_cleanup.
6365         (dwarf2_free_objfile): Now static.  Change signature.
6366
6367 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6368
6369         * symfile.c (add_symbol_file_command, _initialize_symfile): Add
6370         option "-o" to add-symbol-file-load to add an offset to each
6371         section's load address.
6372         * symfile.c (set_objfile_default_section_offset): New function.
6373
6374 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6375
6376         * symfile.c (add_symbol_file_command): Make sure that sections
6377         with the same name are sorted in the same order.
6378
6379 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6380
6381         * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
6382         require the second argument.  If omitted, load sections at the
6383         addresses specified in the file.
6384
6385 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6386
6387         * symfile.c (symbol_file_command, symbol_file_add_main_1)
6388         (_initialize_symfile): Add option "-o" to symbol-file to add an
6389         offset to each section of the symbol file.
6390
6391 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6392
6393         * MAINTAINERS (Write After Approval): Add Petr Tesarik.
6394
6395 2018-06-27  Tom Tromey  <tom@tromey.com>
6396
6397         * stack.c (_initialize_stack): Update "func" help text.
6398
6399 2018-06-27  Tom Tromey  <tom@tromey.com>
6400
6401         * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
6402         std::vector.
6403         (unwind_infopy_str, pyuw_create_unwind_info)
6404         (unwind_infopy_add_saved_register, pyuw_sniffer)
6405         (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
6406         Update.
6407         (struct saved_reg): Add constructor.
6408         <value>: Now a gdbpy_ref<>.
6409
6410 2018-06-27  Tom Tromey  <tom@tromey.com>
6411
6412         * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
6413
6414 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6415
6416         * gdb-gdb.py.in: Format using autopep8.
6417
6418 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6419
6420         * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
6421         (type_lookup_function): Recognize CORE_ADDR values.
6422
6423 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6424
6425         * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
6426         print tag_name.
6427
6428 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6429
6430         * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
6431         <__lt__>: Add.
6432
6433 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6434
6435         * gdb-gdb.py: Move to...
6436         * gdb-gdb.py.in: ... here.
6437         * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
6438         * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
6439         dependencies.
6440         (distclean): Remove gdb-gdb.py when cleaning.
6441         (gdb-gdb.py, gdb-gdb.gdb): New rules.
6442         * configure: Re-generate.
6443
6444 2018-06-27  Pedro Alves  <palves@redhat.com>
6445
6446         * proc-service.c (get_ps_regcache): New.
6447         (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6448         (ps_lsetfpregs): Use it.
6449
6450 2018-06-27  Omair Javaid  <omair.javaid@linaro.org>
6451
6452         PR gdb/21695
6453         * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
6454         (dwarf_decode_lines_1): Adjust.
6455
6456 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6457
6458         * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
6459         override.
6460         <info_proc>: Likewise.
6461
6462 2018-06-26  Joel Brobecker  <brobecker@adacore.com>
6463
6464         * windows-nat.c (do_windows_fetch_inferior_registers): Rename
6465         to windows_fetch_one_register, and only handle the case of
6466         fetching one register.  Move the code that reloads the context
6467         and iterates over all registers if R is negative to...
6468         (windows_nat_target::fetch_registers): ... here.
6469         (do_windows_store_inferior_registers): Rename to
6470         windows_store_one_register, and only handle the case of storing
6471         one register.  Move the code that handles the case where r is
6472         negative to...
6473         (windows_nat_target::store_registers) ... here.
6474
6475 2018-06-26  Tom Tromey  <tom@tromey.com>
6476
6477         PR rust/22574:
6478         * typeprint.c (whatis_exp): Allow ptype/o for Rust.
6479         * rust-lang.c (rust_print_struct_def): Add podata parameter.
6480         Update.
6481         (rust_internal_print_type): Add podata parameter.
6482         (rust_print_type): Update.
6483
6484 2018-06-26  Tom Tromey  <tom@tromey.com>
6485
6486         * typeprint.h (struct print_offset_data) <update, finish,
6487         maybe_print_hole>: New methods.
6488         <indentation>: New constant.
6489         * typeprint.c (print_offset_data::indentation): Define.
6490         (print_offset_data::maybe_print_hole, print_offset_data::update)
6491         (print_offset_data::finish): Move from c-typeprint.c and rename.
6492         * c-typeprint.c (OFFSET_SPC_LEN): Remove.
6493         (print_spaces_filtered_with_print_options): Update.
6494         (c_print_type_union_field_offset, maybe_print_hole)
6495         (c_print_type_struct_field_offset): Move to typeprint.c and
6496         rename.
6497         (c_type_print_base_struct_union): Update.
6498
6499 2018-06-25  Pedro Alves  <palves@redhat.com>
6500
6501         * gdbthread.h (thread_info_ref, delete_thread)
6502         (delete_thread_silent, first_thread_of_inferior)
6503         (any_thread_of_inferior, switch_to_thread)
6504         (enable_thread_stack_temporaries)
6505         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6506         (get_last_thread_stack_temporary)
6507         (value_in_thread_stack_temporaries, can_access_registers_thread):
6508         Spell out "struct thread_info" instead of just "thread_info".
6509         * inferior.h (notice_new_inferior): Likewise.
6510
6511 2018-06-25  Pedro Alves  <palves@redhat.com>
6512
6513         * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6514         pass thread_info pointer to delete_thread.
6515         (windows_nat_target::detach): Pass inferior pointer to
6516         detach_inferior.
6517         * aix-thread.c (sync_threadlists): Pass thread_info pointer to
6518         delete_thread.
6519         * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
6520         * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
6521         and pass a thread_info pointer to delete_thread.
6522         * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
6523         pass thread_info pointer to delete_thread.
6524         * go32-nat.c (go32_nat_target::mourn_inferior): Remove
6525         delete_thread_silent call.
6526         * procfs.c (procfs_target::detach): Pass inferior pointer to
6527         detach_inferior.
6528         (procfs_target::wait): Pass thread_info pointer to delete_thread.
6529         * remote-sim.c (gdbsim_target::mourn_inferior): Remove
6530         delete_thread_silent call.
6531         * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6532         pass thread_info pointer to delete_thread.
6533         (windows_nat_target::detach): Pass inferior pointer to
6534         delete_inferior.
6535
6536 2018-06-22  Alan Hayward  <alan.hayward@arm.com>
6537
6538         * regcache.c (readable_regcache::read_part): Fix asserts.
6539         (reg_buffer::raw_collect_part): New function.
6540         (regcache::write_part): Fix asserts.
6541         (reg_buffer::raw_supply_part): New function.
6542         (regcache::transfer_regset_register): New helper function.
6543         (regcache::transfer_regset): Call new functions.
6544         (regcache_supply_regset): Use gdb_byte*.
6545         (regcache::supply_regset): Likewise.
6546         (regcache_collect_regset): Likewise.
6547         (regcache::collect_regset): Likewise.
6548         * regcache.h (reg_buffer::raw_collect_part): New declaration.
6549         (reg_buffer::raw_supply_part): Likewise.
6550         (regcache::transfer_regset_register): Likewise.
6551         (regcache::transfer_regset): Use gdb_byte*.
6552
6553 2018-06-22  Alan Hayward  <alan.hayward@arm.com>
6554
6555         * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
6556
6557 2018-06-21  Pedro Alves  <palves@redhat.com>
6558
6559         * ada-lang.h (ada_get_task_number): Take a thread_info pointer
6560         instead of a ptid_t.  All callers adjusted.
6561         * ada-tasks.c (ada_get_task_number): Likewise.  All callers
6562         adjusted.
6563         (print_ada_task_info, display_current_task_id, task_command_1):
6564         Adjust.
6565         * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
6566         inferior_thread.
6567         (breakpoint_kind): Adjust.
6568         (remove_breakpoints_pid): Rename to ...
6569         (remove_breakpoints_inf): ... this.  Adjust to take an inferior
6570         pointer.  All callers adjusted.
6571         (bpstat_clear_actions): Use inferior_thread.
6572         (get_bpstat_thread): New.
6573         (bpstat_do_actions): Use it.
6574         (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
6575         to take a thread_info pointer.  All callers adjusted.
6576         (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
6577         (breakpoint_re_set_thread): Use inferior_thread.
6578         * breakpoint.h (struct inferior): Forward declare.
6579         (bpstat_stop_status): Update.
6580         (remove_breakpoints_pid): Delete.
6581         (remove_breakpoints_inf): New.
6582         * bsd-uthread.c (bsd_uthread_target::wait)
6583         (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
6584         * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
6585         (maint_btrace_packet_history_cmd)
6586         (maint_btrace_clear_packet_history_cmd): Adjust.
6587         (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
6588         inferior_thread.
6589         * cli/cli-interp.c: Include "inferior.h".
6590         * common/refcounted-object.h (struct
6591         refcounted_object_ref_policy): New.
6592         * compile/compile-object-load.c: Include gdbthread.h.
6593         (store_regs): Use inferior_thread.
6594         * corelow.c (core_target::close): Use current_inferior.
6595         (core_target_open): Adjust to use first_thread_of_inferior and use
6596         the current inferior.
6597         * ctf.c (ctf_target::close): Adjust to use current_inferior.
6598         * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
6599         <thread>: ... this new field.  All references adjusted.
6600         (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
6601         Take a thread_info pointer instead of a ptid_t.
6602         * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
6603         (dummy_frame_discard, register_dummy_frame_dtor): Take a
6604         thread_info pointer instead of a ptid_t.
6605         * elfread.c: Include "inferior.h".
6606         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
6607         Use inferior_thread.
6608         * eval.c (evaluate_subexp): Likewise.
6609         * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
6610         inferior_thread.
6611         * gdb_proc_service.h (struct thread_info): Forward declare.
6612         (struct ps_prochandle) <ptid>: Delete, replaced by ...
6613         <thread>: ... this new field.  All references adjusted.
6614         * gdbarch.h, gdbarch.c: Regenerate.
6615         * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
6616         'thread' parameter.  All implementations and callers adjusted.
6617         * gdbthread.h (thread_info) <set_running>: New method.
6618         (delete_thread, delete_thread_silent): Take a thread_info pointer
6619         instead of a ptid.
6620         (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
6621         (first_thread_of_process): Delete, replaced by ...
6622         (first_thread_of_inferior): ... this new function.  All callers
6623         adjusted.
6624         (any_live_thread_of_process): Delete, replaced by ...
6625         (any_live_thread_of_inferior): ... this new function.  All callers
6626         adjusted.
6627         (switch_to_thread, switch_to_no_thread): Declare.
6628         (is_executing): Delete.
6629         (enable_thread_stack_temporaries): Update comment.
6630         <enable_thread_stack_temporaries>: Take a thread_info pointer
6631         instead of a ptid_t.  Incref the thread.
6632         <~enable_thread_stack_temporaries>: Decref the thread.
6633         <m_ptid>: Delete
6634         <m_thr>: New.
6635         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6636         (get_last_thread_stack_temporary)
6637         (value_in_thread_stack_temporaries, can_access_registers_thread):
6638         Take a thread_info pointer instead of a ptid_t.  All callers
6639         adjusted.
6640         * infcall.c (get_call_return_value): Use inferior_thread.
6641         (run_inferior_call): Work with thread pointers instead of ptid_t.
6642         (call_function_by_hand_dummy): Work with thread pointers instead
6643         of ptid_t.  Use thread_info_ref.
6644         * infcmd.c (proceed_thread_callback): Access thread's state
6645         directly.
6646         (ensure_valid_thread, ensure_not_running): Use inferior_thread,
6647         access thread's state directly.
6648         (continue_command): Use inferior_thread.
6649         (info_program_command): Use find_thread_ptid and access thread
6650         state directly.
6651         (proceed_after_attach_callback): Use thread state directly.
6652         (notice_new_inferior): Take a thread_info pointer instead of a
6653         ptid_t.  All callers adjusted.
6654         (exit_inferior): Take an inferior pointer instead of a pid.  All
6655         callers adjusted.
6656         (exit_inferior_silent): New.
6657         (detach_inferior): Delete.
6658         (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
6659         (gdb_inferior_id_to_pid, in_inferior_list): Delete.
6660         (detach_inferior_command, kill_inferior_command): Use
6661         find_inferior_id instead of valid_gdb_inferior_id and
6662         gdb_inferior_id_to_pid.
6663         (inferior_command): Use inferior and thread pointers.
6664         * inferior.h (struct thread_info): Forward declare.
6665         (notice_new_inferior): Take a thread_info pointer instead of a
6666         ptid_t.  All callers adjusted.
6667         (detach_inferior): Delete declaration.
6668         (exit_inferior, exit_inferior_silent): Take an inferior pointer
6669         instead of a pid.  All callers adjusted.
6670         (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
6671         (valid_gdb_inferior_id): Delete.
6672         * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
6673         (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
6674         (struct displaced_step_inferior_state) <pid>: Delete, replaced by
6675         ...
6676         <inf>: ... this new field.
6677         <step_ptid>: Delete, replaced by ...
6678         <step_thread>: ... this new field.
6679         (get_displaced_stepping_state): Take an inferior pointer instead
6680         of a pid.  All callers adjusted.
6681         (displaced_step_in_progress_any_inferior): Adjust.
6682         (displaced_step_in_progress_thread): Take a thread pointer instead
6683         of a ptid_t.  All callers adjusted.
6684         (displaced_step_in_progress, add_displaced_stepping_state): Take
6685         an inferior pointer instead of a pid.  All callers adjusted.
6686         (get_displaced_step_closure_by_addr): Adjust.
6687         (remove_displaced_stepping_state): Take an inferior pointer
6688         instead of a pid.  All callers adjusted.
6689         (displaced_step_prepare_throw, displaced_step_prepare)
6690         (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
6691         All callers adjusted.
6692         (start_step_over): Adjust.
6693         (infrun_thread_ptid_changed): Remove bit updating ptids in the
6694         displaced step queue.
6695         (do_target_resume): Adjust.
6696         (fetch_inferior_event): Use inferior_thread.
6697         (context_switch, get_inferior_stop_soon): Take an
6698         execution_control_state pointer instead of a ptid_t.  All callers
6699         adjusted.
6700         (switch_to_thread_cleanup): Delete.
6701         (stop_all_threads): Use scoped_restore_current_thread.
6702         * inline-frame.c: Include "gdbthread.h".
6703         (inline_state) <inline_state>: Take a thread pointer instead of a
6704         ptid_t.  All callers adjusted.
6705         <ptid>: Delete, replaced by ...
6706         <thread>: ... this new field.
6707         (find_inline_frame_state): Take a thread pointer instead of a
6708         ptid_t.  All callers adjusted.
6709         (skip_inline_frames, step_into_inline_frame)
6710         (inline_skipped_frames, inline_skipped_symbol): Take a thread
6711         pointer instead of a ptid_t.  All callers adjusted.
6712         * inline-frame.h (skip_inline_frames, step_into_inline_frame)
6713         (inline_skipped_frames, inline_skipped_symbol): Likewise.
6714         * linux-fork.c (delete_checkpoint_command): Adjust to use thread
6715         pointers directly.
6716         * linux-nat.c (get_detach_signal): Likewise.
6717         * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
6718         (thread_db_notice_clone): Adjust.
6719         (thread_db_find_new_threads_silently)
6720         (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
6721         a thread pointer instead of a ptid_t.  All callers adjusted.
6722         * mi/mi-cmd-var.c: Include "inferior.h".
6723         (mi_cmd_var_update_iter): Update to use thread pointers.
6724         * mi/mi-interp.c (mi_new_thread): Update to use the thread's
6725         inferior directly.
6726         (mi_output_running_pid, mi_inferior_count): Delete, bits factored
6727         out to ...
6728         (mi_output_running): ... this new function.
6729         (mi_on_resume_1): Adjust to use it.
6730         (mi_user_selected_context_changed): Adjust to use inferior_thread.
6731         * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
6732         directly.
6733         (interrupt_thread_callback): : Adjust to use thread and inferior
6734         pointers.
6735         * proc-service.c: Include "gdbthread.h".
6736         (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
6737         * progspace-and-thread.c: Include "inferior.h".
6738         * progspace.c: Include "inferior.h".
6739         * python/py-exitedevent.c (create_exited_event_object): Adjust to
6740         hold a reference to an inferior_object.
6741         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
6742         inferior_thread.
6743         * python/py-inferior.c (struct inferior_object): Give the type a
6744         tag name instead of a typedef.
6745         (python_on_normal_stop): No need to check if the current thread is
6746         listed.
6747         (inferior_to_inferior_object): Change return type to
6748         inferior_object.  All callers adjusted.
6749         (find_thread_object): Delete, bits factored out to ...
6750         (thread_to_thread_object): ... this new function.
6751         * python/py-infthread.c (create_thread_object): Use
6752         inferior_to_inferior_object.
6753         (thpy_is_stopped): Use thread pointer directly.
6754         (gdbpy_selected_thread): Use inferior_thread.
6755         * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
6756         field, replaced with ...
6757         <thread>: ... this new field.  All users adjusted.
6758         (btpy_insn_or_gap_new): Drop const.
6759         (btpy_list_new): Take a thread pointer instead of a ptid_t.  All
6760         callers adjusted.
6761         * python/py-record.c: Include "gdbthread.h".
6762         (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
6763         a ptid_t.  All callers adjusted.
6764         (gdbpy_current_recording): Use inferior_thread.
6765         * python/py-record.h (recpy_record_object) <ptid>: Delete
6766         field, replaced with ...
6767         <thread>: ... this new field.  All users adjusted.
6768         (recpy_element_object) <ptid>: Delete
6769         field, replaced with ...
6770         <thread>: ... this new field.  All users adjusted.
6771         (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
6772         a ptid_t.  All callers adjusted.
6773         * python/py-threadevent.c: Include "gdbthread.h".
6774         (get_event_thread): Use thread_to_thread_object.
6775         * python/python-internal.h (struct inferior_object): Forward
6776         declare.
6777         (find_thread_object, find_inferior_object): Delete declarations.
6778         (thread_to_thread_object, inferior_to_inferior_object): New
6779         declarations.
6780         * record-btrace.c: Include "inferior.h".
6781         (require_btrace_thread): Use inferior_thread.
6782         (record_btrace_frame_sniffer)
6783         (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
6784         (get_thread_current_frame): Use scoped_restore_current_thread and
6785         switch_to_thread.
6786         (get_thread_current_frame): Use thread pointer directly.
6787         (record_btrace_replay_at_breakpoint): Use thread's inferior
6788         pointer directly.
6789         * record-full.c: Include "inferior.h".
6790         * regcache.c: Include "gdbthread.h".
6791         (get_thread_arch_regcache): Use the inferior's address space
6792         directly.
6793         (get_thread_regcache, registers_changed_thread): New.
6794         * regcache.h (get_thread_regcache(thread_info *thread)): New
6795         overload.
6796         (registers_changed_thread): New.
6797         (remote_target) <remote_detach_1>: Swap order of parameters.
6798         (remote_add_thread): <remote_add_thread>: Return the new thread.
6799         (get_remote_thread_info(ptid_t)): New overload.
6800         (remote_target::remote_notice_new_inferior): Use thread pointers
6801         directly.
6802         (remote_target::process_initial_stop_replies): Use
6803         thread_info::set_running.
6804         (remote_target::remote_detach_1, remote_target::detach)
6805         (extended_remote_target::detach): Adjust.
6806         * stack.c (frame_show_address): Use inferior_thread.
6807         * target-debug.h (target_debug_print_thread_info_pp): New.
6808         * target-delegates.c: Regenerate.
6809         * target.c (default_thread_address_space): Delete.
6810         (memory_xfer_partial_1): Use current_inferior.
6811         (target_detach): Use current_inferior.
6812         (target_thread_address_space): Delete.
6813         (generic_mourn_inferior): Use current_inferior.
6814         * target.h (struct target_ops) <thread_address_space>: Delete.
6815         (target_thread_address_space): Delete.
6816         * thread.c (init_thread_list): Use ALL_THREADS_SAFE.  Use thread
6817         pointers directly.
6818         (delete_thread_1, delete_thread, delete_thread_silent): Take a
6819         thread pointer instead of a ptid_t.  Adjust all callers.
6820         (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
6821         (first_thread_of_process): Delete, replaced by ...
6822         (first_thread_of_inferior): ... this new function.  All callers
6823         adjusted.
6824         (any_thread_of_process): Rename to ...
6825         (any_thread_of_inferior): ... this, and take an inferior pointer.
6826         (any_live_thread_of_process): Rename to ...
6827         (any_live_thread_of_inferior): ... this, and take an inferior
6828         pointer.
6829         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6830         (value_in_thread_stack_temporaries)
6831         (get_last_thread_stack_temporary): Take a thread pointer instead
6832         of a ptid_t.  Adjust all callers.
6833         (thread_info::set_running): New.
6834         (validate_registers_access): Use inferior_thread.
6835         (can_access_registers_ptid): Rename to ...
6836         (can_access_registers_thread): ... this, and take a thread
6837         pointer.
6838         (print_thread_info_1): Adjust to compare thread pointers instead
6839         of ptids.
6840         (switch_to_no_thread, switch_to_thread): Make extern.
6841         (scoped_restore_current_thread::~scoped_restore_current_thread):
6842         Use m_thread pointer directly.
6843         (scoped_restore_current_thread::scoped_restore_current_thread):
6844         Use inferior_thread.
6845         (thread_command): Use thread pointer directly.
6846         (thread_num_make_value_helper): Use inferior_thread.
6847         * top.c (execute_command): Use inferior_thread.
6848         * tui/tui-interp.c: Include "inferior.h".
6849         * varobj.c (varobj_create): Use inferior_thread.
6850         (value_of_root_1): Use find_thread_global_id instead of
6851         global_thread_id_to_ptid.
6852
6853 2018-06-21  Alan Hayward  <alan.hayward@arm.com>
6854
6855         * regcache.c (readable_regcache::read_part): Avoid memcpy when
6856         possible.
6857         (regcache::write_part): Likewise.
6858         (readable_regcache::cooked_read_part): Update comment.
6859         (readable_regcache::cooked_write_part): Likewise.
6860         * regcache.h: (readable_regcache::read_part): Likewise.
6861         (regcache::write_part): Likewise.
6862
6863 2018-06-21  Richard Bunt  <richard.bunt@arm.com>
6864             Dirk Schubert  <dirk.schubert@arm.com>
6865
6866         * aarch64-linux-nat.c (post_attach): New.
6867         (aarch64_linux_nat_target::post_attach): Override post_attach to
6868         record the number of hardware debug registers.
6869
6870 2018-06-20  Tom Tromey  <tom@tromey.com>
6871
6872         * python/py-param.c (add_setshow_generic): Make parameters const.
6873         (parmpy_init): Update.
6874
6875 2018-06-20  Simon Marchi  <simon.marchi@polymtl.ca>
6876
6877         * regcache.h (regcache_cooked_read_ftype): Rename to...
6878         (register_read_ftype): ...this, change type to function_view.
6879         (class reg_buffer) <save>: Remove src parameter.
6880         (readonly_detached_regcache) <readonly_detached_regcache>: Make
6881         parameter non-const in first overload.  Remove src parameter in
6882         second overload.
6883         * regcache.c (do_cooked_read): Remove.
6884         (readonly_detached_regcache::readonly_detached_regcache): Make
6885         parameter non-const, adjust call to other constructor.
6886         (reg_buffer::save): Remove src parameter.
6887         * frame.c (do_frame_register_read): Remove.
6888         (frame_save_as_regcache): Use lambda function.
6889         * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
6890         parameter to ppu2spu_data *.
6891         (ppu2spu_sniffer): Use lambda function.
6892
6893 2018-06-20  Simon Marchi  <simon.marchi@polymtl.ca>
6894
6895         * record-full.c (record_full_target::insert_breakpoint): Remove
6896         "struct" keyword, add const.
6897
6898 2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
6899
6900         * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
6901         PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
6902         * configure.ac: Remove AC_PREREQ, add missing quoting.
6903         * gnulib/configure.ac: Modernize usage of
6904         AC_INIT/AM_INIT_AUTOMAKE.  Remove AC_PREREQ.
6905         * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
6906         (AUTOMAKE_VERSION): Bump to 1.15.1.
6907         * configure: Re-generate.
6908         * config.in: Re-generate.
6909         * aclocal.m4: Re-generate.
6910         * gnulib/aclocal.m4: Re-generate.
6911         * gnulib/config.in: Re-generate.
6912         * gnulib/configure: Re-generate.
6913         * gnulib/import/Makefile.in: Re-generate.
6914
6915 2018-06-19  Pedro Alves  <palves@redhat.com>
6916
6917         * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
6918         (lookup_minimal_symbol_by_pc_section): ... here with
6919         gdb_assert_not_reached added.
6920
6921 2018-06-19  Pedro Alves  <palves@redhat.com>
6922
6923         * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
6924         parameter with a block parameter.  Compare location's block symbol
6925         with the frame's block instead of addresses.
6926         (skip_inline_frames): Pass the current block instead of the
6927         frame's address.  Break out as soon as we determine the frame
6928         should not be skipped.
6929
6930 2018-06-18  Tom Tromey  <tom@tromey.com>
6931
6932         * solib-aix.c (solib_aix_get_section_offsets): Return
6933         unique_xmalloc_ptr.
6934         (solib_aix_solib_create_inferior_hook): Update.
6935
6936 2018-06-18  Tom Tromey  <tom@tromey.com>
6937
6938         * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
6939
6940 2018-06-18  Tom Tromey  <tom@tromey.com>
6941
6942         * solib-frv.c (frv_relocate_main_executable): Use
6943         unique_xmalloc_ptr.
6944         * solib-dsbt.c (dsbt_relocate_main_executable): Use
6945         unique_xmalloc_ptr.
6946
6947 2018-06-18  Tom Tromey  <tom@tromey.com>
6948
6949         * objfiles.h (inhibit_section_map_updates): Update.
6950         (resume_section_map_updates, resume_section_map_updates_cleanup):
6951         Remove.
6952         * solib-svr4.c (svr4_handle_solib_event): Update.
6953         * objfiles.c (inhibit_section_map_updates): Return
6954         scoped_restore_tmpl<int>.
6955         (resume_section_map_updates, resume_section_map_updates_cleanup):
6956         Remove.
6957
6958 2018-06-18  Tom Tromey  <tom@tromey.com>
6959
6960         * valprint.h (read_string): Update.
6961         * valprint.c (read_string): Change type of "buffer".
6962         (val_print_string): Update.
6963         * python/py-value.c (valpy_string): Update.
6964         * language.h (struct language_defn) <la_get_string>: Change
6965         type of "buffer".
6966         (default_get_string, c_get_string): Update.
6967         * language.c (default_get_string): Change type of "buffer".
6968         * guile/scm-value.c (gdbscm_value_to_string): Update.
6969         * c-lang.c (c_get_string): Change type of "buffer".
6970
6971 2018-06-18  Tom Tromey  <tom@tromey.com>
6972
6973         * ser-mingw.c (struct pipe_state_destroyer): New.
6974         (pipe_state_up): New typedef.
6975         (cleanup_pipe_state): Remove.
6976         (pipe_windows_open): Use pipe_state_up.  Don't release argv.
6977
6978 2018-06-18  Tom Tromey  <tom@tromey.com>
6979
6980         * rust-lang.h (rust_yyerror): Don't declare.
6981         * rust-lang.c (rust_language_defn): Update.
6982         * rust-exp.y (yyerror): Now static.
6983         * parse.c (parse_exp_in_context_1): Update.
6984         * p-lang.h (p_yyerror): Don't declare.
6985         * p-lang.c (p_language_defn): Update.
6986         * p-exp.y (yyerror): Now static.
6987         * opencl-lang.c (opencl_language_defn): Update.
6988         * objc-lang.c (objc_language_defn): Update.
6989         * m2-lang.h (m2_yyerror): Don't declare.
6990         * m2-lang.c (m2_language_defn): Update.
6991         * m2-exp.y (yyerror): Now static.
6992         * language.h (struct language_defn) <la_error>: Remove.
6993         * language.c (unk_lang_error): Remove.
6994         (unknown_language_defn, auto_language_defn): Remove.
6995         * go-lang.h (go_yyerror): Don't declare.
6996         * go-lang.c (go_language_defn): Update.
6997         * go-exp.y (yyerror): Now static.
6998         * f-lang.h (f_yyerror): Don't declare.
6999         * f-lang.c (f_language_defn): Update.
7000         * f-exp.y (yyerror): Now static.
7001         * d-lang.h (d_yyerror): Don't declare.
7002         * d-lang.c (d_language_defn): Update.
7003         * d-exp.y (yyerror): Now static.
7004         * c-lang.h (c_yyerror): Don't declare.
7005         * c-lang.c (c_language_defn, cplus_language_defn)
7006         (asm_language_defn, minimal_language_defn): Update.
7007         * c-exp.y (yyerror): Now static.
7008         * ada-lang.h (ada_yyerror): Don't declare.
7009         * ada-lang.c (ada_language_defn): Update.
7010         * ada-exp.y (yyerror): Now static.
7011
7012 2018-06-18  Alan Hayward  <alan.hayward@arm.com>
7013
7014         * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
7015         (store_sveregs_to_thread): Likewise.
7016         (aarch64_linux_fetch_inferior_registers): Check for SVE.
7017         (aarch64_linux_store_inferior_registers): Likewise.
7018         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
7019         function.
7020         (aarch64_sve_regs_copy_to_regcache): Likewise.
7021         (aarch64_sve_regs_copy_from_regcache): Likewise.
7022         * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
7023         declaration.
7024         (aarch64_sve_regs_copy_to_regcache): Likewise.
7025         (aarch64_sve_regs_copy_from_regcache): Likewise.
7026         (sve_context): Structure from Linux headers.
7027         (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
7028         (SVE_SIG_ZREG_SIZE): Likewise.
7029         (SVE_SIG_PREG_SIZE): Likewise.
7030         (SVE_SIG_FFR_SIZE): Likewise.
7031         (SVE_SIG_REGS_OFFSET): Likewise.
7032         (SVE_SIG_ZREGS_OFFSET): Likewise.
7033         (SVE_SIG_ZREG_OFFSET): Likewise.
7034         (SVE_SIG_ZREGS_SIZE): Likewise.
7035         (SVE_SIG_PREGS_OFFSET): Likewise.
7036         (SVE_SIG_PREG_OFFSET): Likewise.
7037         (SVE_SIG_PREGS_SIZE): Likewise.
7038         (SVE_SIG_FFR_OFFSET): Likewise.
7039         (SVE_SIG_REGS_SIZE): Likewise.
7040         (SVE_SIG_CONTEXT_SIZE): Likewise.
7041         (SVE_PT_REGS_MASK): Likewise.
7042         (SVE_PT_REGS_FPSIMD): Likewise.
7043         (SVE_PT_REGS_SVE): Likewise.
7044         (SVE_PT_VL_INHERIT): Likewise.
7045         (SVE_PT_VL_ONEXEC): Likewise.
7046         (SVE_PT_REGS_OFFSET): Likewise.
7047         (SVE_PT_FPSIMD_OFFSET): Likewise.
7048         (SVE_PT_FPSIMD_SIZE): Likewise.
7049         (SVE_PT_SVE_ZREG_SIZE): Likewise.
7050         (SVE_PT_SVE_PREG_SIZE): Likewise.
7051         (SVE_PT_SVE_FFR_SIZE): Likewise.
7052         (SVE_PT_SVE_FPSR_SIZE): Likewise.
7053         (SVE_PT_SVE_FPCR_SIZE): Likewise.
7054         (__SVE_SIG_TO_PT): Likewise.
7055         (SVE_PT_SVE_OFFSET): Likewise.
7056         (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
7057         (SVE_PT_SVE_ZREG_OFFSET): Likewise.
7058         (SVE_PT_SVE_ZREGS_SIZE): Likewise.
7059         (SVE_PT_SVE_PREGS_OFFSET): Likewise.
7060         (SVE_PT_SVE_PREG_OFFSET): Likewise.
7061         (SVE_PT_SVE_PREGS_SIZE): Likewise.
7062         (SVE_PT_SVE_FFR_OFFSET): Likewise.
7063         (SVE_PT_SVE_FPSR_OFFSET): Likewise.
7064         (SVE_PT_SVE_FPCR_OFFSET): Likewise.
7065         (SVE_PT_SVE_SIZE): Likewise.
7066         (SVE_PT_SIZE): Likewise.
7067         (HAS_SVE_STATE): New define.
7068
7069 2018-06-18  Alan Hayward  <alan.hayward@arm.com>
7070
7071         * nat/aarch64-sve-linux-sigcontext.h: New file.
7072         * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
7073         new files.
7074         (SVE_VQ_MIN): Likewise.
7075         (SVE_VQ_MAX): Likewise.
7076         (SVE_VL_MIN): Likewise.
7077         (SVE_VL_MAX): Likewise.
7078         (SVE_NUM_ZREGS): Likewise.
7079         (SVE_NUM_PREGS): Likewise.
7080         (sve_vl_valid): Likewise.
7081         (struct user_sve_header): Likewise.
7082
7083 2018-06-16  Andrew Burgess  <andrew.burgess@embecosm.com>
7084             Richard Bunt <Richard.Bunt@arm.com>
7085
7086         * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
7087         was requested by GDB.
7088
7089 2018-06-15  Tom de Vries  <tdevries@suse.de>
7090
7091         * MAINTAINERS (Write After Approval): Add Tom de Vries.
7092
7093 2018-06-14  Simon Marchi  <simon.marchi@polymtl.ca>
7094
7095         * gnulib/update-gnulib.sh: Print expected versions of
7096         autoconf/aclocal.
7097
7098 2018-06-14  Simon Marchi  <simon.marchi@ericsson.com>
7099
7100         * arch-utils.c (default_type_align): Use type_length_units.
7101         * gdbtypes.c (type_align): Use type_length_units.
7102
7103 2018-06-14  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7104
7105         * cli/cli-script.c (_initialize_cli_script): Fix online documentation
7106         of 'define' command.
7107
7108 2018-06-14  Tom de Vries  <tdevries@suse.de>
7109
7110         PR cli/22573
7111         * infcmd.c (print_return_value_1): Use get_user_print_options instead of
7112         get_no_prettyformat_print_options.
7113
7114 2018-06-13  Simon Marchi  <simon.marchi@ericsson.com>
7115
7116         * sparc-nat.h: Include target.h.
7117         * sparc64-linux-nat.c (class sparc64_linux_nat_target)
7118         <fetch_registers>: Remove this argument in function call.
7119         <store_registers>: Remove this argument in function call, remove
7120         extra semicolon.
7121         <low_forget_process>: Call sparc64_forget_process instead of
7122         sparc_forget_process.
7123
7124 2018-06-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7125
7126         * procfs.c (_initialize_procfs): Use add_inf_child_target.
7127         (procfs_target::make_corefile_notes): Adjust to new
7128         target_read_alloc return type.
7129
7130 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
7131             Stephen Roberts  <stephen.roberts@arm.com>
7132
7133         PR gdb/22882
7134         * infrun.c (fetch_inferior_event): If GDB is not proceeding then
7135         run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
7136         Move should_notify_stop local into more inner scope.
7137
7138 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
7139             Stephen Roberts  <stephen.roberts@arm.com>
7140
7141         PR gdb/22882
7142         * infrun.c (resume_1): Add call to mark_async_event_handler.
7143
7144 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
7145
7146         * infrun.c (do_target_wait): Change old version of $pc printed.
7147
7148 2018-06-11  Simon Marchi  <simon.marchi@ericsson.com>
7149
7150         * dwarf2read.c (read_index_from_section): Rename to...
7151         (read_gdb_index_from_section): ... this, update all callers.
7152         (dwarf2_read_index): Rename to...
7153         (dwarf2_read_gdb_index): ... this, update all callers.
7154
7155 2018-06-11  John David Anglin  <danglin@gcc.gnu.org>
7156
7157         * gdb/hppa-linux-nat.c
7158         (hppa_linux_nat_target::fetch_inferior_registers): Rename to
7159         hppa_linux_nat_target::fetch_registers.
7160
7161 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
7162
7163         * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
7164         * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
7165         (AARCH64_DWARF_SVE_FFR): Likewise.
7166         (AARCH64_DWARF_SVE_P0): Likewise.
7167         (AARCH64_DWARF_SVE_Z0): Likewise.
7168
7169 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
7170
7171         * common/common-regcache.h (raw_compare): New function.
7172         * regcache.c (regcache::raw_compare): Likewise.
7173         * regcache.h (regcache::raw_compare): New declaration.
7174
7175 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
7176
7177         * common/common-regcache.h (reg_buffer_common): New structure.
7178         * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
7179         (reg_buffer::raw_supply): Likewise.
7180         (reg_buffer::raw_supply_integer): Likewise.
7181         (reg_buffer::raw_supply_zeroed): Likewise.
7182         (reg_buffer::raw_collect): Likewise.
7183         (reg_buffer::raw_collect_integer): Likewise.
7184         * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
7185         (reg_buffer::raw_supply): Likewise.
7186         (reg_buffer::raw_supply_integer): Likewise.
7187         (reg_buffer::raw_supply_zeroed): Likewise.
7188         (reg_buffer::raw_collect): Likewise.
7189         (reg_buffer::raw_collect_integer): Likewise.
7190
7191 2018-06-10  Tom Tromey  <tom@tromey.com>
7192
7193         * remote.c (stop_reply_p): Remove typedef.  Don't declare queue.
7194         (class remote_state) <stop_reply_queue>: Now std::vector.
7195         (remote_state::~remote_state)
7196         (remote_target::stop_reply_queue_length): Update.
7197         (struct queue_iter_param, remove_child_of_pending_fork)
7198         (struct check_pending_event_prevents_wildcard_vcont_callback_data)
7199         (check_pending_event_prevents_wildcard_vcont_callback)
7200         (remove_stop_reply_for_inferior)
7201         (remove_stop_reply_of_remote_state)
7202         (remote_notif_remove_once_on_match)
7203         (stop_reply_match_ptid_and_ws)
7204         (remote_kill_child_of_pending_fork): Remove.
7205         (remote_target::remove_new_fork_children)
7206         (remote_target::check_pending_events_prevent_wildcard_vcont)
7207         (remote_target::discard_pending_stop_replies)
7208         (remote_target::discard_pending_stop_replies_in_queue)
7209         (remote_target::remote_notif_remove_queued_reply)
7210         (remote_target::queued_stop_reply)
7211         (remote_target::push_stop_reply, remote_target::peek_stop_reply)
7212         (remote_target::wait, remote_target::kill_new_fork_children)
7213         (remote_target::async): Update.
7214
7215 2018-06-10  Tom Tromey  <tom@tromey.com>
7216
7217         * record-full.c (record_full_arch_list_cleanups): Remove.
7218         (record_full_message): Use try/catch.
7219         (record_full_wait_cleanups): Remove.
7220         (record_full_wait_1): Use try/catch.
7221         (record_full_restore): Likewise.
7222
7223 2018-06-10  Tom Tromey  <tom@tromey.com>
7224
7225         * record-full.c (record_full_breakpoint_p): Remove typedef.  Don't
7226         declare VEC.  Add constructor.
7227         <in_target_beneath>: Now bool.
7228         (record_full_breakpoints): Now a std::vector, static.
7229         (record_full_sync_record_breakpoints)
7230         (record_full_init_record_breakpoints)
7231         (record_full_target::insert_breakpoint)
7232         (record_full_target::remove_breakpoint): Update.  Don't use XNEW.
7233
7234 2018-06-10  Simon Marchi  <simon.marchi@polymtl.ca>
7235
7236         * dwarf2read.c (process_cu_includes): Remove struct keyword.
7237         * serial.c (serial_interface_lookup): Remove struct keyword.
7238
7239 2018-06-10  Tom Tromey  <tom@tromey.com>
7240
7241         * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
7242         method.
7243         * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
7244         a method.
7245         * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
7246         method.
7247         * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
7248         "beneath" as a method.
7249         * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
7250         Use "beneath" as a method.
7251
7252 2018-06-10  Tom Tromey  <tom@tromey.com>
7253
7254         * tracefile.c (struct trace_file_writer_deleter): New.
7255         <operator()>: Rename from trace_file_writer_xfree.
7256         (trace_file_writer_up): New typedef.
7257         (tsave_command, trace_save_tfile, trace_save_ctf): Update.
7258
7259 2018-06-09  Simon Marchi  <simon.marchi@ericsson.com>
7260
7261         * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
7262         <m_registers, m_register_status>: Change type to
7263         std::unique_ptr.
7264         * regcache.c (reg_buffer::reg_buffer): Use new instead of
7265         XCNEWVEC.
7266
7267 2018-06-09  Simon Marchi  <simon.marchi@ericsson.com>
7268
7269         * common/common-regcache.h (enum register_status): Add
7270         underlying type "signed char".
7271         * regcache.h (reg_buffer) <m_register_status>: Change type to
7272         register_status *.
7273         * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
7274         register_status instead of signed char.
7275         (reg_buffer::save): Use REG_UNKNOWN instead of 0.
7276         (reg_buffer::get_register_status): Remove cast.
7277         (readable_regcache::raw_read): Remove cast.
7278         (readable_regcache::cooked_read): Remove cast.
7279
7280 2018-06-09  Tom Tromey  <tom@tromey.com>
7281
7282         * source.c (reverse_search_command, forward_search_command): Use
7283         scoped_fd.
7284
7285 2018-06-09  Tom Tromey  <tom@tromey.com>
7286
7287         * serial.c (serial_ops_p): Remove typedef.  Don't declare VEC.
7288         (serial_ops_list): Now static, std::vector.
7289         (serial_interface_lookup, serial_add_interface): Update.
7290
7291 2018-06-09  Tom Tromey  <tom@tromey.com>
7292
7293         * dwarf2read.c (process_cu_includes): Update.
7294         (process_full_comp_unit): Update.
7295         * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
7296         std::vector.
7297
7298 2018-06-08  Paul Koning  <paul_koning@dell.com>
7299
7300         PR gdb/23252
7301
7302         * python/python.c (do_start_initialization):
7303         Avoid call to internal Python API.
7304         (init__gdb_module): New function.
7305
7306 2018-06-08  Gary Benson <gbenson@redhat.com>
7307
7308         * linux-thread-db.c (valprint.h): New include.
7309         (struct check_thread_db_info): New structure.
7310         (check_thread_db_on_load, tdb_testinfo): New static globals.
7311         (check_thread_db, check_thread_db_callback): New functions.
7312         (try_thread_db_load_1): Run integrity checks if requested.
7313         (maintenance_check_libthread_db): New function.
7314         (_initialize_thread_db): Register "maint check libthread-db"
7315         and "maint set/show check-libthread-db".
7316         * NEWS: Mention the above new commands.
7317
7318 2018-06-08  Tom Tromey  <tom@tromey.com>
7319
7320         * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
7321         now a method.
7322
7323 2018-06-08  Tom Tromey  <tom@tromey.com>
7324
7325         * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
7326
7327 2018-06-08  Tom Tromey  <tom@tromey.com>
7328
7329         * common/btrace-common.h (struct btrace_data): Add constructor,
7330         destructor, move assignment operator.
7331         <empty, clear, fini>: New methods.
7332         <format>: Initialize.
7333         (btrace_data_init, btrace_data_fini, btrace_data_clear)
7334         (btrace_data_empty): Don't declare.
7335         * common/btrace-common.c (btrace_data_init): Remove.
7336         (btrace_data::fini): Rename from btrace_data_fini.
7337         (btrace_data::empty): Rename from btrace_data_empty.
7338         (btrace_data::clear): Rename from btrace_data_clear.  Return
7339         bool.
7340         * btrace.h (make_cleanup_btrace_data): Don't declare.
7341         * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
7342         (parse_xml_btrace): Update.
7343         (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
7344         (maint_btrace_clear_packet_history_cmd): Update.
7345
7346 2018-06-07  Pedro Alves  <palves@redhat.com>
7347
7348         * target.h (target_ops) <beneath>: Now a method.  All references
7349         updated.
7350         (class target_stack): New.
7351         * target.c (g_target_stack): New.
7352         (g_current_top_target): Delete.
7353         (current_top_target): Get the top target out of g_target_stack.
7354         (target_stack::push, target_stack::unpush): New.
7355         (push_target, unpush_target): Reimplement.
7356         (target_is_pushed): Reimplement in terms of g_target_stack.
7357         (target_ops::beneath, target_stack::find_beneath): New.
7358
7359 2018-06-07  Pedro Alves  <palves@redhat.com>
7360
7361         * target.h (find_target_beneath): Delete declaration.
7362         * target.c (find_target_beneath): Delete definition.
7363         * aix-thread.c: All callers of find_target_beneath adjusted to
7364         call target_ops::beneath instead.
7365         * bsd-uthread.c: Likewise.
7366         * linux-thread-db.c: Likewise.
7367         * ravenscar-thread.c: Likewise.
7368         * sol-thread.c: Likewise.
7369         * spu-multiarch.c: Likewise.
7370
7371 2018-06-07  Pedro Alves  <palves@redhat.com>
7372
7373         * target.h (target_ops) <beneath>: Now a method.  All references
7374         updated.
7375         (target_ops) <m_beneath>: New.
7376         * target.c (target_ops::beneath): New.
7377         * corelow.c: Adjust all references to target_ops::beneath.
7378         * linux-thread-db.c: Likewise.
7379         * make-target-delegates: Likewise.
7380         * record-btrace.c: Likewise.
7381         * record-full.c: Likewise.
7382         * remote.c: Likewise.
7383         * target.c: Likewise.
7384         * target-delegates.c: Regenerate.
7385
7386 2018-06-07  Pedro Alves  <palves@redhat.com>
7387
7388         * target.h (target_stack): Delete.
7389         (current_top_target): Declare function.
7390         * target.c (target_stack): Delete.
7391         (g_current_top_target): New.
7392         (current_top_target): New function.
7393         * auxv.c: Use current_top_target instead of target_stack
7394         throughout.
7395         * avr-tdep.c: Likewise.
7396         * breakpoint.c: Likewise.
7397         * corefile.c: Likewise.
7398         * elfread.c: Likewise.
7399         * eval.c: Likewise.
7400         * exceptions.c: Likewise.
7401         * frame.c: Likewise.
7402         * gdbarch-selftests.c: Likewise.
7403         * gnu-v3-abi.c: Likewise.
7404         * ia64-tdep.c: Likewise.
7405         * ia64-vms-tdep.c: Likewise.
7406         * infcall.c: Likewise.
7407         * infcmd.c: Likewise.
7408         * infrun.c: Likewise.
7409         * linespec.c: Likewise.
7410         * linux-tdep.c: Likewise.
7411         * minsyms.c: Likewise.
7412         * ppc-linux-nat.c: Likewise.
7413         * ppc-linux-tdep.c: Likewise.
7414         * procfs.c: Likewise.
7415         * regcache.c: Likewise.
7416         * remote.c: Likewise.
7417         * rs6000-tdep.c: Likewise.
7418         * s390-linux-nat.c: Likewise.
7419         * s390-tdep.c: Likewise.
7420         * solib-aix.c: Likewise.
7421         * solib-darwin.c: Likewise.
7422         * solib-dsbt.c: Likewise.
7423         * solib-spu.c: Likewise.
7424         * solib-svr4.c: Likewise.
7425         * solib-target.c: Likewise.
7426         * sparc-tdep.c: Likewise.
7427         * sparc64-tdep.c: Likewise.
7428         * spu-tdep.c: Likewise.
7429         * symfile.c: Likewise.
7430         * symtab.c: Likewise.
7431         * target-descriptions.c: Likewise.
7432         * target-memory.c: Likewise.
7433         * target.c: Likewise.
7434         * target.h: Likewise.
7435         * tracefile-tfile.c: Likewise.
7436         * tracepoint.c: Likewise.
7437         * valops.c: Likewise.
7438         * valprint.c: Likewise.
7439         * value.c: Likewise.
7440         * windows-tdep.c: Likewise.
7441         * mi/mi-main.c: Likewise.
7442
7443 2018-06-07  Tom Tromey  <tom@tromey.com>
7444
7445         * valprint.h (build_address_symbolic): Declare.
7446         * printcmd.c (print_address_symbolic): Update.
7447         (build_address_symbolic): Change "name" and "filename" to
7448         std::string.
7449         * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7450         Update.
7451         * defs.h (build_address_symbolic): Remove declaration.
7452
7453 2018-06-07  Alan Hayward  <alan.hayward@arm.com>
7454
7455         * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
7456         (aarch64_vnv_type): Add function.
7457         (aarch64_pseudo_register_name): Add V regs for SVE.
7458         (aarch64_pseudo_register_type): Likewise.
7459         (aarch64_pseudo_register_reggroup_p): Likewise.
7460         (aarch64_pseudo_read_value_2): Use V0 offset for SVE
7461         (aarch64_pseudo_read_value): Add V regs for SVE.
7462         (aarch64_pseudo_write_2): Use V0 offset for SVE
7463         (aarch64_pseudo_write): Add V regs for SVE.
7464         * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
7465
7466 2018-06-06  Sergio Durigan Junior  <sergiodj@redhat.com>
7467
7468         * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
7469         (sve_vl_from_vq): Likewise.
7470
7471 2018-06-05  Tom Tromey  <tom@tromey.com>
7472
7473         * cli/cli-cmds.c (show_version): Update.
7474         * top.c (print_gdb_version): Add "interactive" parameter.
7475         Update.
7476         * main.c (captured_main_1): Update.
7477         * top.h (print_gdb_version): Add "interactive" parameter and a
7478         comment.
7479
7480 2018-06-05  David Malcolm  <dmalcolm@redhat.com>
7481
7482         * common/enum-flags.h: Add trailing semicolon to example in
7483         comment.
7484
7485 2018-06-05  Tom Tromey  <tom@tromey.com>
7486
7487         PR cli/12326:
7488         * NEWS: Add entry about pager.
7489         * utils.c (pagination_disabled_for_command): New global.
7490         (prompt_for_continue): Allow "c" response to prompt.
7491         (reinitialize_more_filter): Clear
7492         pagination_disabled_for_command.
7493         (fputs_maybe_filtered): Check pagination_disabled_for_command.
7494
7495 2018-06-04  Tom Tromey  <tom@tromey.com>
7496
7497         * ada-lang.h (ada_lookup_symbol_list): Update.
7498         * ada-lang.c (resolve_subexp): Update.
7499         (symbols_are_identical_enums): Change type of syms.  Remove nsyms
7500         parameter.
7501         (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
7502         (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
7503         results parameter to std::vector.
7504         (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
7505         Update.
7506         * ada-exp.y (block_lookup): Update.
7507         (select_possible_type_sym): Change type of syms.  Remove nsyms
7508         parameter.
7509         (write_var_or_type, write_name_assoc): Update.
7510
7511 2018-06-04  Joel Brobecker  <brobecker@adacore.com>
7512
7513         * windows-nat.c (windows_nat_target::xfer_partial): Return
7514         TARGET_XFER_E_IO if we need to delegate to the target beneath
7515         but BENEATH is NULL.
7516
7517 2018-06-04  Simon Marchi  <simon.marchi@ericsson.com>
7518
7519         * Makefile.in (config.status): Add configure.nat as a
7520         dependency.
7521
7522 2018-06-04  Tom Tromey  <tom@tromey.com>
7523
7524         * cp-name-parser.y (cpname_state): Add method declarations.
7525         (HANDLE_QUAL): Update.
7526         (cpname_state::d_grab, cpname_state::fill_comp)
7527         (cpname_state::make_operator, cpname_state::make_dtor)
7528         (cpname_state::make_builtin_type, cpname_state::make_name)
7529         (cpname_state::d_qualify, cpname_state::d_int_type)
7530         (cpname_state::d_unary, cpname_state::d_binary): Now methods.
7531         (%union): Move earlier.
7532
7533 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
7534
7535         * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
7536
7537 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
7538
7539         * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
7540         (aarch64_pseudo_write_1): Likewise.
7541         (aarch64_pseudo_read_value): Use helper.
7542         (aarch64_pseudo_write): Likewise.
7543
7544 2018-06-04  Pedro Alves  <palves@redhat.com>
7545
7546         * darwin-nat.c (darwin_ops): Delete.
7547         (darwin_attach_pid): Use get_native_target.
7548
7549 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
7550
7551         * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
7552         * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
7553
7554 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
7555
7556         * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
7557         * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
7558         (aarch64_gdbarch_init): Check for SVE.
7559         * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
7560
7561 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
7562
7563         * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
7564         * aarch64-tdep.h (aarch64_read_description): Likewise.
7565         * arch/aarch64.c (aarch64_create_target_description): Likewise.
7566         * arch/aarch64.h (aarch64_create_target_description): Likewise.
7567         * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
7568         * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
7569         * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
7570
7571 2018-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7572
7573         * value.c (value_fetch_lazy_bitfield): New.
7574         (value_fetch_lazy_memory): New.
7575         (value_fetch_lazy_register): New.
7576         (value_fetch_lazy): Factor out to smaller functions.
7577
7578 2018-06-01  Tom Tromey  <tom@tromey.com>
7579
7580         * cp-name-parser.y (backslashable, represented): Now const.
7581
7582 2018-06-01  Tom Tromey  <tom@tromey.com>
7583
7584         * cp-name-parser.y: Include parser-defs.h.
7585         (parser_fprintf): Remove declaration.
7586
7587 2018-06-01  Tom Tromey  <tom@tromey.com>
7588
7589         * cp-name-parser.y: Use %pure-parser, %lex-param, and
7590         %parse-param.
7591         (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
7592         (global_result): Remove globals.
7593         (struct cpname_state): New.
7594         (yyparse): Don't declare.
7595         (yylex, yyerror): Move declarations after %union.
7596         (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
7597         (make_name): Add state parameter.
7598         Update all callers.
7599         (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
7600         parameter.
7601         (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
7602         Update.
7603         (yylex): Add lvalp, state parameters.
7604         (yyerror): Add state parameter.
7605         (cp_demangled_name_to_comp): Update.
7606
7607 2018-06-01  Tom Tromey  <tom@tromey.com>
7608
7609         * cp-name-parser.y (parser_fprintf): Declare.
7610         (GDB_YY_REMAP_PREFIX): Define.
7611         Include yy-remap.h.  Don't redefine yy* identifiers.
7612
7613 2018-06-01  Tom Tromey  <tom@tromey.com>
7614
7615         * python/py-type.c (typy_legacy_template_argument): Update.
7616         * cp-support.h (cp_demangled_name_to_comp): Update.
7617         * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
7618         parameter to be a "std::string *".
7619         (main): Update.
7620
7621 2018-06-01  H.J. Lu  <hongjiu.lu@intel.com>
7622
7623         * ada-lex.l: Include "diagnostics.h" instead of
7624         "common/diagnostics.h".
7625         * unittests/environ-selftests.c: Likewise.
7626         * common/diagnostics.h: Moved to ../include.
7627
7628 2018-06-01  Joel Brobecker  <brobecker@adacore.com>
7629
7630         * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
7631         to language_mode_manual while calling breakpoint_re_set_one.
7632
7633 2018-06-01  Tom Tromey  <tom@tromey.com>
7634
7635         * valops.c (value_cast_structs, destructor_name_p): Update.
7636         * symtab.c (gdb_mangle_name): Update.
7637         * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
7638         Update.
7639         * p-valprint.c (pascal_object_is_vtbl_ptr_type)
7640         (pascal_object_print_value_fields, pascal_object_print_value):
7641         Update.
7642         * p-typeprint.c (pascal_type_print_derivation_info): Update.
7643         * linespec.c (find_methods): Update.
7644         * gdbtypes.h (type_name_no_tag): Remove.
7645         (type_name_or_error): Rename from type_name_no_tag_or_error.
7646         * gdbtypes.c (type_name_no_tag): Remove.
7647         (type_name_or_error): Rename from type_name_no_tag_or_error.
7648         (lookup_struct_elt_type, check_typedef): Update.
7649         * expprint.c (print_subexp_standard): Update.
7650         * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
7651         * d-namespace.c (d_lookup_nested_symbol): Update.
7652         * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
7653         (cp_print_class_member): Update.
7654         * cp-namespace.c (cp_lookup_nested_symbol): Update.
7655         * completer.c (add_struct_fields): Update.
7656         * c-typeprint.c (cp_type_print_derivation_info)
7657         (c_type_print_varspec_prefix, c_type_print_base_struct_union):
7658         Update.
7659         * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
7660         (ada_prefer_type, ada_is_exception_sym): Update.
7661
7662 2018-06-01  Tom Tromey  <tom@tromey.com>
7663
7664         * valops.c (enum_constant_from_type, value_namespace_elt)
7665         (value_maybe_namespace_elt): Update.
7666         * valarith.c (find_size_for_pointer_math): Update.
7667         * target-descriptions.c (make_gdb_type): Update.
7668         * symmisc.c (print_symbol): Update.
7669         * stabsread.c (define_symbol, read_type)
7670         (complain_about_struct_wipeout, add_undefined_type)
7671         (cleanup_undefined_types_1): Update.
7672         * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
7673         (rust_range_type_p, val_print_struct, rust_print_struct_def)
7674         (rust_internal_print_type, rust_composite_type)
7675         (rust_evaluate_funcall, rust_evaluate_subexp)
7676         (rust_inclusive_range_type_p): Update.
7677         * python/py-type.c (typy_get_tag): Update.
7678         * p-typeprint.c (pascal_type_print_base): Update.
7679         * mdebugread.c (parse_symbol, parse_type): Update.
7680         * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
7681         Update.
7682         * guile/scm-type.c (gdbscm_type_tag): Update.
7683         * go-lang.c (sixg_string_p): Update.
7684         * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
7685         Update.
7686         * gdbtypes.h (struct main_type) <tag_name>: Remove.
7687         (TYPE_TAG_NAME): Remove.
7688         * gdbtypes.c (type_name_no_tag): Simplify.
7689         (check_typedef, check_types_equal, recursive_dump_type)
7690         (copy_type_recursive, arch_composite_type): Update.
7691         * f-typeprint.c (f_type_print_base): Update.  Print "Type" prefix
7692         in summary mode when needed.
7693         * eval.c (evaluate_funcall): Update.
7694         * dwarf2read.c (fixup_go_packaging, read_structure_type)
7695         (process_structure_scope, read_enumeration_type)
7696         (read_namespace_type, read_module_type, determine_prefix): Update.
7697         * cp-support.c (inspect_type): Update.
7698         * coffread.c (process_coff_symbol, decode_base_type): Update.
7699         * c-varobj.c (c_is_path_expr_parent): Update.
7700         * c-typeprint.c (c_type_print_base_struct_union): Update.
7701         (c_type_print_base_1): Update.  Print struct/class/union/enum in
7702         summary when using C language.
7703         * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
7704         (gen_maybe_namespace_elt): Update.
7705         * ada-lang.c (ada_type_name): Simplify.
7706         (empty_record, ada_template_to_fixed_record_type_1)
7707         (template_to_static_fixed_type)
7708         (to_record_with_fixed_variant_part, ada_check_typedef): Update.
7709
7710 2018-06-01  Tom Tromey  <tom@tromey.com>
7711
7712         * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
7713         c_print_type.
7714         * c-typeprint.c (c_print_type_1): Add "language" parameter.
7715         (c_print_type): Update.
7716         (c_print_type): New overload.
7717         (c_type_print_varspec_prefix, c_type_print_args)
7718         (c_type_print_varspec_suffix, c_print_type_no_offsets)
7719         (c_type_print_base_struct_union, c_type_print_base_1)
7720         (cp_type_print_method_args): Add "language" parameter.
7721         (c_type_print_base): Update.
7722         * c-lang.h (c_print_type): Add new overload.
7723
7724 2018-06-01  Tom Tromey  <tom@tromey.com>
7725
7726         * typeprint.h (c_type_print_varspec_suffix): Don't declare.
7727         * c-typeprint.c (c_type_print_varspec_suffix): Now static.
7728
7729 2018-06-01  Alan Hayward  <alan.hayward@arm.com>
7730
7731         * aarch64-tdep.c (aarch64_sve_register_names): New const
7732         var.
7733         * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
7734         (AARCH64_SVE_Z_REGS_NUM): New define.
7735         (AARCH64_SVE_P_REGS_NUM): Likewise.
7736         (AARCH64_SVE_NUM_REGS): Likewise.
7737
7738 2018-05-31  Uros Bizjak  <ubizjak@gmail.com>
7739
7740         * nat/linux-ptrace.h [__alpha__]
7741         (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
7742         definitions.
7743
7744 2018-05-31  Maciej W. Rozycki  <macro@mips.com>
7745
7746         * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
7747         the endianness selected.
7748         * NEWS: Document `set endian auto' mode operation update.
7749
7750 2018-05-31  Alan Hayward  <alan.hayward@arm.com>
7751
7752         * Makefile.in: Add new header.
7753         * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
7754         (sve_vl_from_vg): Likewise.
7755         (sve_vq_from_vl): Likewise.
7756         (sve_vl_from_vq): Likewise.
7757         (sve_vq_from_vg): Likewise.
7758         (sve_vg_from_vq): Likewise.
7759         * configure.nat: Add new c file.
7760         * nat/aarch64-sve-linux-ptrace.c: New file.
7761         * nat/aarch64-sve-linux-ptrace.h: New file.
7762
7763 2018-05-31  Alan Hayward  <alan.hayward@arm.com>
7764
7765         * aarch64-linux-nat.c (aarch64_linux_read_description):
7766         Add parmeter zero.
7767         * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7768         Likewise.
7769         * aarch64-tdep.c (tdesc_aarch64_list): Add.
7770         (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
7771         (aarch64_gdbarch_init): Add parmeter zero.
7772         * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
7773         * arch/aarch64.c (aarch64_create_target_description): Check VQ.
7774         * arch/aarch64.h (aarch64_create_target_description): Add VQ.
7775         parmeter.
7776         * doc/gdb.texinfo: Describe SVE feature
7777         * features/aarch64-sve.c: New file.
7778
7779 2018-05-31  Omair Javaid  <omair.javaid@linaro.org>
7780
7781         PR gdb/23210
7782         * gdbarch.sh (significant_addr_bit): Default to zero when
7783         not set by target architecture.
7784         * gdbarch.c: Re-generated.
7785         * utils.c (address_significant): Update.
7786
7787 2018-05-30  Joel Brobecker  <brobecker@adacore.com>
7788
7789         * stack.c (func_command): Remove trailing newline in call to error.
7790
7791 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7792
7793         * regcache.h (regcache_raw_collect): Remove, update callers to
7794         use regcache::raw_collect.
7795         * regcache.c (regcache_raw_collect): Remove.
7796
7797 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7798
7799         * regcache.h (regcache_raw_supply): Remove, update callers to
7800         use detached_regcache::raw_supply.
7801         * regcache.c (regcache_raw_supply): Remove.
7802
7803 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7804
7805         * regcache.h (regcache_cooked_write_part): Remove, update
7806         callers to use regcache::cooked_write_part.
7807         * regcache.c (regcache_cooked_write_part): Remove.
7808
7809 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7810
7811         * regcache.h (regcache_cooked_read_part): Remove, update callers
7812         to use readable_regcache::cooked_read_part.
7813         * regcache.c (regcache_cooked_read_part): Remove.
7814
7815 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7816
7817         * regcache.h (regcache_cooked_read_value): Remove, update
7818         callers to use readable_regcache::cooked_read_value.
7819         * regcache.c (regcache_cooked_read_value): Remove.
7820
7821 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7822
7823         * regcache.h (regcache_cooked_write): Remove, update callers to
7824         use regcache::cooked_write.
7825         * regcache.c (regcache_cooked_write): Remove.
7826
7827 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7828
7829         * regcache.h (regcache_invalidate): Remove, update callers to
7830         use detached_regcache::invalidate instead.
7831         * regcache.c (regcache_invalidate): Remove.
7832
7833 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7834
7835         * regcache.h (regcache_raw_write_part): Remove, update callers
7836         to use regcache::raw_write_part instead.
7837         * regcache.c (regcache_raw_write_part): Remove.
7838
7839 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7840
7841         * regcache.h (regcache_raw_read_part): Remove, update callers to
7842         use readable_regcache::raw_read_part instead.
7843         * regcache.c (regcache_raw_read_part): Remove.
7844
7845 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7846
7847         * regcache.h (regcache_cooked_read): Remove, update callers to
7848         use readable_regcache::cooked_read instead.
7849         * regcache.c (regcache_cooked_read): Remove.
7850
7851 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7852
7853         * regcache.h (regcache_raw_write): Remove, update callers to use
7854         regcache::raw_write instead.
7855         * regcache.c (regcache_raw_write): Remove.
7856
7857 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7858
7859         * regcache.h (regcache_raw_read): Remove, update callers to use
7860         readable_regcache::raw_read instead.
7861         * regcache.c (regcache_raw_read): Remove.
7862
7863 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7864
7865         * regcache.h (regcache_raw_update): Remove, update callers to
7866         use readable_regcache::raw_update instead.
7867         * regcache.c (regcache_raw_update): Remove.
7868
7869 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7870
7871         * regcache.h (regcache_register_status): Remove, update callers
7872         to use reg_buffer::get_register_status directly instead.
7873         * regcache.c (regcache_register_status): Remove.
7874
7875 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7876
7877         * regcache.h (regcache_get_ptid): Remove, update all callers to
7878         call regcache::ptid instead.
7879         * regcache.c (regcache_get_ptid): Remove.
7880
7881 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
7882
7883         * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
7884
7885 2018-05-30  Pedro Alves  <palves@redhat.com>
7886
7887         * common/common-exceptions.h (exception_rethrow): Use
7888         ATTRIBUTE_NORETURN.
7889
7890 2018-05-29  Simon Marchi  <simon.marchi@polymtl.ca>
7891
7892         * breakpoint.c (print_solib_event, check_status_catch_solib):
7893         Remove struct keyword in range-based for loops.
7894         * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
7895         * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
7896         Likewise.
7897         * linespec.c (find_superclass_methods, search_minsyms_for_name):
7898         Likewise.
7899         * symfile.c (addr_info_make_relative): Likewise.
7900         * thread.c (value_in_thread_stack_temporaries): Likewise.
7901
7902 2018-06-12  Weimin Pan  <weimin.pan@oracle.com>
7903
7904         PR gdb/16841
7905         * valops.c (value_struct_elt_for_reference): Call check_typedef on
7906         aggregate type to get its real type before accessing it.
7907
7908 2018-05-29  Weimin Pan  <weimin.pan@oracle.com>
7909
7910         * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
7911         * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
7912         * coff-pe-read.c (add_pe_forwarded_sym): Replace
7913         lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
7914         * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
7915         * jit.c (jit_breakpoint_re_set_internal): Likewise.
7916         * printcmd.c (info_address_command): Likewise.
7917
7918 2018-05-29  Tom Tromey  <tom@tromey.com>
7919
7920         * windows-nat.c (handle_exception): Update fall-through comment.
7921
7922 2018-05-29  Tom Tromey  <tom@tromey.com>
7923
7924         * progspace.h (so_list_ptr): Remove typedef.  Don't declare VEC.
7925         (struct program_space) <added_solibs>: Now a std::vector.
7926         * breakpoint.c (print_solib_event): Update.
7927         (check_status_catch_solib): Update.
7928         * progspace.c (clear_program_space_solib_cache): Update.
7929         * solib.c (update_solib_list): Update.
7930
7931 2018-05-29  Tom Tromey  <tom@tromey.com>
7932
7933         * python/py-type.c (typy_richcompare): Update.
7934         * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
7935         * gdbtypes.h (types_deeply_equal): Return bool.
7936         (types_equal): Likewise.
7937         * gdbtypes.c (type_equality_entry_d): Remove typedef.  Don't
7938         declare VEC.
7939         (check_types_equal): Change worklist to std::vector.  Return
7940         bool.
7941         (struct type_equality_entry): Add constructor.
7942         (compare_maybe_null_strings): Return bool.
7943         (check_types_worklist): Return bool.  Change worklist to
7944         std::vector.
7945         (types_deeply_equal): Use std::vector.
7946         (types_equal): Return bool.
7947         (compare_maybe_null_strings): Simplify.
7948
7949 2018-05-29  Tom Tromey  <tom@tromey.com>
7950
7951         * record-btrace.c (tp_t): Remove typedef.  Don't declare VEC.
7952
7953 2018-05-29  Tom Tromey  <tom@tromey.com>
7954
7955         * objc-lang.h: Don't include cp-support.h.
7956         * common/gdb_vecs.h (const_char_ptr): Remove typedef.  Don't
7957         declare VEC.
7958
7959 2018-05-27  Tom Tromey  <tom@tromey.com>
7960
7961         * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
7962
7963 2018-05-25  Tom Tromey  <tom@tromey.com>
7964
7965         * value.c (value::location): Initialize.
7966
7967 2018-05-25  Tom Tromey  <tom@tromey.com>
7968
7969         * dbxread.c (init_bincl_list): Remove.
7970         (bincl_list): Now a std::vector.
7971         (bincls_allocated, next_bincl): Remove.
7972         (free_bincl_list, do_free_bincl_list_cleanup)
7973         (make_cleanup_free_bincl_list): Remove.
7974         (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
7975         unique_xmalloc_ptr.
7976         (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
7977         (struct header_file_location): Add constructor.
7978         (add_bincl_to_list): Remove.
7979
7980 2018-05-25  Tom Tromey  <tom@tromey.com>
7981
7982         * tui/tui.c (tui_enable): Update.
7983         * mi/mi-interp.c (mi_interp::init): Update.
7984         * interps.h (class interp) <name>: New method.
7985         <m_name>: Rename from name.
7986         (~scoped_restore_interp): Update.
7987         * interps.c (interp::interp): Update.
7988         (interp_add, interp_set, interp_lookup_existing)
7989         (current_interp_named_p): Update.
7990
7991 2018-05-25  Tom Tromey  <tom@tromey.com>
7992
7993         * interps.c (interp_name): Remove.
7994         * mi/mi-interp.c (mi_interp::init): Update.
7995         * interps.h (interp_name): Remove.
7996         (~scoped_restore_interp): Update.
7997         * tui/tui.c (tui_enable): Update.
7998
7999 2018-05-25  Tom Tromey  <tom@tromey.com>
8000
8001         * utils.c (fputs_maybe_filtered): Update.
8002         * linespec.c (decode_line_full): Update.
8003         * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
8004         (mi_print_breakpoint_for_event, mi_solib_loaded)
8005         (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
8006         (mi_user_selected_context_changed): Update.
8007         * mi/mi-main.c (mi_execute_command): Update.
8008         * cli/cli-script.c (execute_control_command): Update.
8009         * python/python.c (execute_gdb_command): Update.
8010         * solib.c (info_sharedlibrary_command): Update.
8011         * interps.c (interp_ui_out): Remove.
8012         * interps.h (interp_ui_out): Remove.
8013
8014 2018-05-25  Tom Tromey  <tom@tromey.com>
8015
8016         * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
8017         * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
8018         * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
8019
8020 2018-05-25  Tom Tromey  <tom@tromey.com>
8021
8022         * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
8023         * interps.c (interp_exec): Use scoped_restore.
8024
8025 2018-05-25  Tom Tromey  <tom@tromey.com>
8026
8027         * remote.c (remote_target::remote_file_get): Use
8028         gdb::byte_vector.
8029         (remote_target::remote_file_put): Likewise.
8030
8031 2018-05-25  Tom Tromey  <tom@tromey.com>
8032
8033         * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
8034         a std::string.
8035         (get_pe_section_index, add_pe_exported_sym): Update.
8036         (read_pe_exported_syms): Use gdb::def_vector.
8037
8038 2018-05-25  Tom Tromey  <tom@tromey.com>
8039
8040         * frame.c (remove_prev_frame): Remove.
8041         (get_prev_frame_if_no_cycle): Use TRY/CATCH.
8042
8043 2018-05-25  Maciej W. Rozycki  <macro@mips.com>
8044
8045         * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
8046         Remove prototypes.
8047         * mips-linux-nat.c (supply_fpregset): Always call
8048         `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
8049         (fill_fpregset): Always call `mips64_fill_fpregset' rather than
8050         `mips_fill_fpregset'.
8051         * mips-linux-tdep.c (mips_supply_fpregset)
8052         (mips_supply_fpregset_wrapper, mips_fill_fpregset)
8053         (mips_fill_fpregset_wrapper): Remove functions.
8054         (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
8055         (mips_linux_fpregset): Remove variable.
8056         (mips_linux_iterate_over_regset_sections): Use
8057         `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
8058         (mips_linux_o32_sigframe_init): Remove comment.
8059
8060 2018-05-25  Pedro Alves  <palves@redhat.com>
8061
8062         * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
8063         (struct readahead_cache, struct packet_reg, struct
8064         remote_arch_state, class remote_state): Move higher up in the
8065         file.
8066         (remote_target::m_remote_state): Now an object instead of a pointer.
8067         (remote_target::get_remote_state): Adjust.
8068
8069 2018-05-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8070
8071         * stack.c (select_and_print_frame): Delete.
8072         (struct function_bounds): Move struct within function.
8073         (func_command): Most content moved into new function
8074         find_frame_for_function, use new function, print result, add
8075         function comment.
8076         (find_frame_for_function): New function, now returns a result.
8077
8078 2018-05-24  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
8079
8080         * stack.c (iterate_over_block_arg_vars): Fix comment.
8081         (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
8082
8083 2018-05-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8084
8085         PR gdb/23203
8086         * frame.c
8087         (scoped_restore_selected_frame::scoped_restore_selected_frame):
8088         Define.
8089         (scoped_restore_selected_frame::~scoped_restore_selected_frame):
8090         Define.
8091         * frame.h (class scoped_restore_selected_frame): New class.
8092         * stack.c (print_frame_local_vars): Remove catching and rethrowing
8093         of any exception, use scoped_restore_selected_frame to restore the
8094         frame instead.
8095
8096 2018-05-24  Pedro Alves  <palves@redhat.com>
8097
8098         * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
8099         override.
8100
8101 2018-05-23  Tom Tromey  <tom@tromey.com>
8102
8103         * complaints.c (struct complaints): Remove.
8104         (symfile_complaint_book): Remove.
8105         (series): New global.
8106         (complaint_internal): Update.
8107         (clear_complaints): Update.
8108
8109 2018-05-23  Tom Tromey  <tom@tromey.com>
8110
8111         * complaints.c (counters): New global.
8112         (struct complain): Remove.
8113         (struct complaints) <root>: Remove.
8114         (complaint_sentinel): Remove.
8115         (symfile_complaint_book): Update.
8116         (find_complaint) Remove.
8117         (complaint_internal, clear_complaints): Update.
8118
8119 2018-05-23  Tom Tromey  <tom@tromey.com>
8120
8121         * complaints.c (struct complain) <file, line>: Remove.
8122         (find_complaint): Remove file, line parameters.
8123         (complaint_internal): Update.
8124
8125 2018-05-23  Tom Tromey  <tom@tromey.com>
8126
8127         * complaints.c (vcomplaint): Remove.
8128         (complaint_internal) Merge in contents of vcomplaint.
8129
8130 2018-05-23  Tom Tromey  <tom@tromey.com>
8131
8132         * complaints.c (struct complaints) <explanation>: Remove.
8133         (symfile_explanations): Remove.
8134         (symfile_complaint_book): Update.
8135         (vcomplaint): Update.
8136         (struct explanation): Remove.
8137
8138 2018-05-23  Tom Tromey  <tom@tromey.com>
8139
8140         * complaints.c (symfile_complaints): Remove.
8141         (complaint_internal): Remove "complaints" parameter.
8142         (clear_complaints, vcomplaint): Remove "c" parameter.
8143         (get_complaints): Remove.
8144         * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
8145         (dwarf2_debug_line_missing_file_complaint)
8146         (dwarf2_debug_line_missing_end_sequence_complaint)
8147         (dwarf2_complex_location_expr_complaint)
8148         (dwarf2_const_value_length_mismatch_complaint)
8149         (dwarf2_section_buffer_overflow_complaint)
8150         (dwarf2_macro_malformed_definition_complaint)
8151         (dwarf2_invalid_attrib_class_complaint)
8152         (create_addrmap_from_index, dw2_symtab_iter_next)
8153         (dw2_expand_marked_cus)
8154         (dw2_debug_names_iterator::find_vec_in_debug_names)
8155         (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
8156         (create_debug_type_hash_table, init_cutu_and_read_dies)
8157         (partial_die_parent_scope, add_partial_enumeration)
8158         (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
8159         (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
8160         (read_import_statement, read_file_scope, create_dwo_cu_reader)
8161         (create_cus_hash_table, create_dwp_hash_table)
8162         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8163         (dwarf2_rnglists_process, dwarf2_ranges_process)
8164         (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
8165         (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
8166         (handle_struct_member_die, process_structure_scope)
8167         (read_array_type, read_common_block, read_module_type)
8168         (read_tag_pointer_type, read_typedef, read_base_type)
8169         (read_subrange_type, load_partial_dies, partial_die_info::read)
8170         (partial_die_info::read, partial_die_info::read)
8171         (partial_die_info::read, read_checked_initial_length_and_offset)
8172         (dwarf2_string_attr, read_formatted_entries)
8173         (dwarf_decode_line_header)
8174         (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
8175         (new_symbol, dwarf2_const_value_attr, lookup_die_type)
8176         (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
8177         (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8178         (get_signatured_type, get_DW_AT_signature_type)
8179         (decode_locdesc, file_file_name, consume_improper_spaces)
8180         (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
8181         (dwarf_decode_macro_bytes, dwarf_decode_macros)
8182         (dwarf2_symbol_mark_computed, set_die_type)
8183         (read_attribute_value): Update.
8184         * stap-probe.c (handle_stap_probe, get_stap_base_address):
8185         Update.
8186         * dbxread.c (unknown_symtype_complaint)
8187         (lbrac_mismatch_complaint, repeated_header_complaint)
8188         (set_namestring, function_outside_compilation_unit_complaint)
8189         (read_dbx_symtab, process_one_symbol): Update.
8190         * gdbtypes.c (stub_noname_complaint): Update.
8191         * windows-nat.c (handle_unload_dll): Update.
8192         * coffread.c (coff_symtab_read, enter_linenos, decode_type)
8193         (decode_base_type): Update.
8194         * xcoffread.c (bf_notfound_complaint, ef_complaint)
8195         (eb_complaint, record_include_begin, record_include_end)
8196         (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
8197         (process_xcoff_symbol, read_symbol)
8198         (function_outside_compilation_unit_complaint)
8199         (scan_xcoff_symtab): Update.
8200         * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
8201         * buildsym.c (finish_block_internal, make_blockvector)
8202         (end_symtab_get_static_block, augment_type_symtab): Update.
8203         * dtrace-probe.c (dtrace_process_dof)
8204         (dtrace_static_probe_ops::get_probes): Update.
8205         * complaints.h (struct complaint): Don't declare.
8206         (symfile_complaints): Remove.
8207         (complaint_internal): Remove "complaints" parameter.
8208         (complaint): Likewise.
8209         (clear_complaints): Likewise.
8210         * symfile.c (syms_from_objfile_1, finish_new_objfile)
8211         (reread_symbols): Update.
8212         * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
8213         (dwarf2_frame_cache, decode_frame_entry): Update.
8214         * dwarf2loc.c (dwarf_reg_to_regnum): Update.
8215         * objc-lang.c (lookup_objc_class, lookup_child_selector)
8216         (info_selectors_command): Update.
8217         * macrotab.c (macro_include, check_for_redefinition)
8218         (macro_undef): Update.
8219         * objfiles.c (filter_overlapping_sections): Update.
8220         * stabsread.c (invalid_cpp_abbrev_complaint)
8221         (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
8222         (define_symbol, error_type, read_type, rs6000_builtin_type)
8223         (stabs_method_name_from_physname, read_member_functions)
8224         (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
8225         (attach_fields_to_type, complain_about_struct_wipeout)
8226         (read_range_type, read_args, common_block_start)
8227         (common_block_end, cleanup_undefined_types_1, scan_file_globals):
8228         Update.
8229         * mdebugread.c (index_complaint, unknown_ext_complaint)
8230         (basic_type_complaint, bad_tag_guess_complaint)
8231         (bad_rfd_entry_complaint, unexpected_type_code_complaint)
8232         (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
8233         (parse_procedure, parse_lines)
8234         (function_outside_compilation_unit_complaint)
8235         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
8236         (bad_tag_guess_complaint, reg_value_complaint): Update.
8237         * cp-support.c (demangled_name_complaint): Update.
8238         * macroscope.c (sal_macro_scope): Update.
8239         * dwarf-index-write.c (class debug_names): Update.
8240
8241 2018-05-23  Tom Tromey  <tom@tromey.com>
8242
8243         * complaints.c (clear_complaints): Remove "noisy" parameter.
8244         * complaints.h (clear_complaints): Update.
8245         * symfile.c (syms_from_objfile_1, finish_new_objfile)
8246         (reread_symbols): Update.
8247
8248 2018-05-23  Tom Tromey  <tom@tromey.com>
8249
8250         * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
8251         SUBSEQUENT_MESSAGE.
8252         (vcomplaint, clear_complaints): Update.
8253         (symfile_explanations): Remove some messages.
8254
8255 2018-05-23  Tom Tromey  <tom@tromey.com>
8256
8257         * complaints.c (internal_complaint): Remove.
8258         * complaints.h (internal_complaint): Remove.
8259
8260 2018-05-22  Maciej W. Rozycki  <macro@mips.com>
8261
8262         * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
8263
8264 2018-05-22  Pedro Alves  <palves@redhat.com>
8265
8266         * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
8267         (remote_fileio_badfd, remote_fileio_return_errno)
8268         (remote_fileio_return_success, remote_fileio_func_open)
8269         (remote_fileio_func_open, remote_fileio_func_close)
8270         (remote_fileio_func_read, remote_fileio_func_write)
8271         (remote_fileio_func_lseek, remote_fileio_func_rename)
8272         (remote_fileio_func_unlink, remote_fileio_func_stat)
8273         (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
8274         (remote_fileio_func_isatty, remote_fileio_func_system): Add
8275         remote_target parameter.
8276         (remote_fio_func_map) <func>: Add remote_target parameter.
8277         (do_remote_fileio_request, remote_fileio_request):
8278         * remote-fileio.h (remote_fileio_request):
8279         * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
8280         remote_target parameter.
8281         (remote_notif_process, handle_notification): Adjust to pass down
8282         the remote.
8283         (remote_notif_state_allocate): Add remote_target parameter.  Save
8284         it.
8285         * remote-notif.h (struct remote_target): Forward declare.
8286         (struct notif_client) <parse, ack, can_get_pending_events>: Add
8287         remote_target parameter.
8288         (struct remote_notif_state) <remote>: New field.
8289         (remote_notif_ack, remote_notif_parse): Add remote_target
8290         parameter.
8291         (remote_notif_state_allocate, remote_notif_state_allocate): Add
8292         remote_target parameter.
8293         * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
8294         (threads_listing_context, rmt_thread_action, protocol_feature)
8295         (packet_reg, stop_reply, stop_reply_p, enum packet_support)
8296         (packet_result, struct threads_listing_context, remote_state):
8297         Move definitions and declarations higher up.
8298         (remote_target) <~remote_target>: Declare.
8299         (remote_download_command_source, remote_file_put, remote_file_get)
8300         (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
8301         (remote_hostio_pread_vFile, remote_hostio_send_command)
8302         (remote_hostio_set_filesystem, remote_hostio_open)
8303         (remote_hostio_close, remote_hostio_unlink, remote_state)
8304         (get_remote_state, get_remote_packet_size, get_memory_packet_size)
8305         (get_memory_write_packet_size, get_memory_read_packet_size)
8306         (append_pending_thread_resumptions, remote_detach_1)
8307         (append_resumption, remote_resume_with_vcont)
8308         (add_current_inferior_and_thread, wait_ns, wait_as)
8309         (process_stop_reply, remote_notice_new_inferior)
8310         (process_initial_stop_replies, remote_add_thread)
8311         (btrace_sync_conf, remote_btrace_maybe_reopen)
8312         (remove_new_fork_children, kill_new_fork_children)
8313         (discard_pending_stop_replies, stop_reply_queue_length)
8314         (check_pending_events_prevent_wildcard_vcont)
8315         (discard_pending_stop_replies_in_queue, stop_reply)
8316         (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
8317         (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
8318         (remote_interrupt_as, remote_interrupt_ns)
8319         (remote_get_noisy_reply, remote_query_attached)
8320         (remote_add_inferior, remote_current_thread, get_current_thread)
8321         (set_thread, set_general_thread, set_continue_thread)
8322         (set_general_process, write_ptid)
8323         (remote_unpack_thread_info_response, remote_get_threadinfo)
8324         (parse_threadlist_response, remote_get_threadlist)
8325         (remote_threadlist_iterator, remote_get_threads_with_ql)
8326         (remote_get_threads_with_qxfer)
8327         (remote_get_threads_with_qthreadinfo, extended_remote_restart)
8328         (get_offsets, remote_check_symbols, remote_supported_packet)
8329         (remote_query_supported, remote_packet_size)
8330         (remote_serial_quit_handler, remote_detach_pid)
8331         (remote_vcont_probe, remote_resume_with_hc)
8332         (send_interrupt_sequence, interrupt_query)
8333         (remote_notif_get_pending_events, fetch_register_using_p)
8334         (send_g_packet, process_g_packet, fetch_registers_using_g)
8335         (store_register_using_P, store_registers_using_G)
8336         (set_remote_traceframe, check_binary_download)
8337         (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
8338         (remote_xfer_live_readonly_partial, remote_read_bytes)
8339         (remote_send_printf, remote_flash_write, readchar)
8340         (remote_serial_write, putpkt, putpkt_binary, skip_frame)
8341         (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
8342         (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
8343         (extended_remote_disable_randomization, extended_remote_run)
8344         (send_environment_packet, extended_remote_environment_support)
8345         (extended_remote_set_inferior_cwd, remote_write_qxfer)
8346         (remote_read_qxfer, push_stop_reply, vcont_r_supported)
8347         (packet_command): Now methods of ...
8348         (remote_target): ... this class.
8349         (m_remote_state) <remote_target>: New field.
8350         (struct remote_state) <stop_reply_queue,
8351         remote_async_inferior_event_token, wait_forever_enabled_p>: New
8352         fields.
8353         (remote_state::remote_state): Allocate stop_reply_queue.
8354         (remote_state): Delete global.
8355         (get_remote_state_raw): Delete.
8356         (remote_target::get_remote_state): Allocate m_remote_state on
8357         demand.
8358         (get_current_remote_target): New.
8359         (remote_ops, extended_remote_ops): Delete.
8360         (wait_forever_enabled_p, remote_async_inferior_event_token):
8361         Delete, moved to struct remote_state.
8362         (remote_target::close): Delete self.  Destruction bits split to
8363         ...
8364         (remote_target::~remote_target): ... this.
8365         (show_memory_packet_size): Adjust to use
8366         get_current_remote_target.
8367         (struct protocol_feature) <func>: Add remote_target parameter.
8368         All callers adjusted.
8369         (curr_quit_handler_target): New.
8370         (remote_serial_quit_handler): Reimplement.
8371         (remote_target::open_1): Adjust to use get_current_remote_target.
8372         Heap-allocate remote_target/extended_remote_target instances.
8373         (vcont_builder::vcont_builder): Add remote_target parameter, and
8374         save it in m_remote.  All callers adjusted.
8375         (vcont_builder::m_remote): New field.
8376         (vcont_builder::restart, vcont_builder::flush)
8377         (vcont_builder::push_action): Use it.
8378         (remote_target::commit_resume): Use it.
8379         (struct queue_iter_param) <remote>: New field.
8380         (remote_target::remove_new_fork_children): Fill in 'remote' field.
8381         (check_pending_event_prevents_wildcard_vcont_callback_data): New.
8382         (check_pending_event_prevents_wildcard_vcont_callback)
8383         (remote_target::check_pending_events_prevent_wildcard_vcont)
8384         (remote_target::discard_pending_stop_replies)
8385         (remote_target::discard_pending_stop_replies_in_queue)
8386         (remote_target::remote_notif_remove_queued_reply): Fill in
8387         'remote' field.
8388         (remote_notif_get_pending_events): New.
8389         (remote_target::readchar, remote_target::remote_serial_write):
8390         Save/restore curr_quit_handler_target.
8391         (putpkt): New.
8392         (kill_new_fork_children): Fill in 'remote' field.
8393         (packet_command): Use get_current_remote_target, defer to
8394         remote_target method of same name.
8395         (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
8396         parameter, and save it in m_remote.  All callers adjusted.
8397         (scoped_remote_fd::release): Use m_remote.
8398         (scoped_remote_fd::m_remote): New field.
8399         (remote_file_put, remote_file_get, remote_file_delete): Use
8400         get_current_remote_target, defer to remote_target method of same
8401         name.
8402         (remote_btrace_reset): Add remote_state paremeter.  Update all
8403         callers.
8404         (remote_async_inferior_event_handler). Pass down 'data'.
8405         (remote_new_objfile): Use get_current_remote_target.
8406         (remote_target::vcont_r_supported): New.
8407         (set_range_stepping): Use get_current_remote_target and
8408         remote_target::vcont_r_supported.
8409         (_initialize_remote): Don't allocate 'remote_state' and
8410         'stop_reply_queue' globals.
8411         * remote.h (struct remote_target): Forward declare.
8412         (getpkt, putpkt, remote_notif_get_pending_events): Add
8413         'remote_target' parameter.
8414
8415 2018-05-22  Pedro Alves  <palves@redhat.com>
8416
8417         * remote.c (vcont_builder): Now a class.  Make all data members
8418         private.
8419         (vcont_builder) <vcont_builder, restart, flush, push_action>:
8420         Declare methods.
8421         (vcont_builder_restart): Rename to ...
8422         (vcont_builder::restart): ... this.
8423         (vcont_builder_flush): Rename to ...
8424         (vcont_builder::flush): ... this.
8425         (vcont_builder_push_action): Rename to ...
8426         (vcont_builder::push_action): ... this.
8427         (remote_target::commit_resume): Adjust.
8428
8429 2018-05-22  Pedro Alves  <palves@redhat.com>
8430
8431         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
8432         (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
8433         (get_fixed_memory_packet_size): New.
8434         (get_memory_packet_size): Use it.
8435         (set_memory_packet_size): Don't override the config size with
8436         DEFAULT_MAX_MEMORY_PACKET_SIZE.
8437         (show_memory_packet_size): Use get_fixed_memory_packet_size.
8438         Don't refer to get_memory_packet_size if not connected to a remote
8439         target.  Show "(default)" if configured size is 0.
8440
8441 2018-05-22  Pedro Alves  <palves@redhat.com>
8442
8443         * remote.c (remote_target::mourn_inferior): Move
8444         discard_pending_stop_replies call here from ...
8445         (_initialize_remote): ... here.
8446
8447 2018-05-22  Pedro Alves  <palves@redhat.com>
8448
8449         * remote.c (compare_section_command): Remove set_general_process
8450         call.
8451
8452 2018-05-22  Pedro Alves  <palves@redhat.com>
8453
8454         * remote.c (struct packet_reg, struct remote_arch_state):
8455         Move higher up in the file.
8456         (remote_state) <m_arch_states>: Store remote_arch_state values
8457         instead of remote_arch_state pointers.
8458         (remote_state::get_remote_arch_state): Adjust.
8459
8460 2018-05-22  Pedro Alves  <palves@redhat.com>
8461
8462         * remote.c: Include <unordered_map>.
8463         (remote_state): Now a class.
8464         (remote_state) <get_remote_arch_state>: Declare method.
8465         <get_remote_arch_state>: New field.
8466         (remote_arch_state) <remote_arch_state>: Declare ctor.
8467         <regs>: Now a unique_ptr.
8468         (remote_gdbarch_data_handle): Delete.
8469         (get_remote_arch_state): Delete.
8470         (remote_state::get_remote_arch_state): New.
8471         (get_remote_state): Adjust to call remote_state's
8472         get_remote_arch_state method.
8473         (init_remote_state): Delete, bits factored out to ...
8474         (remote_arch_state::remote_arch_state): ... this new method.
8475         (get_remote_packet_size, get_memory_packet_size)
8476         (process_g_packet, remote_target::fetch_registers)
8477         (remote_target::prepare_to_store, store_registers_using_G)
8478         (remote_target::store_registers, remote_target::get_trace_status):
8479         Adjust to call remote_state's method.
8480         (_initialize_remote): Remove reference to
8481         remote_gdbarch_data_handle.
8482
8483 2018-05-22  Pedro Alves  <palves@redhat.com>
8484
8485         * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
8486         pread>: New method declarations.
8487         (remote_target::open_1): Adjust.
8488         (readahead_cache_invalidate): Rename to ...
8489         (readahead_cache::invalidate): ... this, and adjust to be a class
8490         method.
8491         (readahead_cache_invalidate_fd): Rename to ...
8492         (readahead_cache::invalidate_fd): ... this, and adjust to be a
8493         class method.
8494         (remote_hostio_pwrite): Adjust.
8495         (remote_hostio_pread_from_cache): Rename to ...
8496         (readahead_cache::pread): ... this, and adjust to be a class
8497         method.
8498         (remote_hostio_close): Adjust.
8499
8500 2018-05-22  Pedro Alves  <palves@redhat.com>
8501
8502         * remote.c (remote_hostio_close_cleanup): Delete.
8503         (class scoped_remote_fd): New.
8504         (remote_file_put, remote_file_get): Use it.
8505
8506 2018-05-22  Pedro Alves  <palves@redhat.com>
8507
8508         (struct vCont_action_support): Use bool and initialize all fields.
8509         (struct readahead_cache): Initialize all fields.
8510         (remote_state): Use bool and initialize all fields.
8511         (remote_state::remote_state, remote_state::~remote_state): New.
8512         (new_remote_state): Delete.
8513         (_initialize_remote): Use new to allocate remote_state.
8514
8515 2018-05-22  Pedro Alves  <palves@redhat.com>
8516             張俊芝  <zjz@zjz.name>
8517
8518         PR gdb/22973
8519         * c-exp.y: Include "c-support.h".
8520         (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
8521         of tolower.  Use c_ident_is_alpha to scan names.
8522         * c-lang.c: Include "c-support.h".
8523         (convert_ucn, convert_octal, convert_hex, convert_escape): Use
8524         ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
8525         * c-support.h: New file, with bits factored out from ...
8526         * cp-name-parser.y: ... this file.
8527         Include "c-support.h".
8528         (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
8529         c-support.h and renamed.
8530         (symbol_end, yylex): Adjust.
8531
8532 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8533
8534         * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
8535         parameter type to CORE_ADDR.
8536         * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
8537         parameter type in declaration to CORE_ADDR.
8538         * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
8539         target_auxv_search to get AT_HWCAP and use the result to get the
8540         target description.
8541         * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
8542         to CORE_ADDR. Remove the cast of the return value to unsigned
8543         long. Fix error predicate of target_auxv_search.
8544         (ppc_linux_nat_target::read_description): Change the type of the
8545         hwcap variable to CORE_ADDR.
8546
8547 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8548
8549         * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
8550         if the size of fpscr is larger than 32 bits.
8551
8552 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8553
8554         * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
8555         (ppc32_linux_vsxregmap): New global.
8556         (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
8557         regcache_supply_regset, and regcache_collect_regset.
8558         * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
8559         * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
8560         (fetch_vsx_register, store_vsx_register): Remove.
8561         (fetch_vsx_registers): Add regno parameter. Get regset using
8562         ppc_linux_vsxregset. Use regset to supply registers.
8563         (store_vsx_registers): Add regno parameter. Get regset using
8564         ppc_linux_vsxregset. Use regset to collect registers.
8565         (fetch_register): Call fetch_vsx_registers instead of
8566         fetch_vsx_register.
8567         (store_register): Call store_vsx_registers instead of
8568         store_vsx_register.
8569         (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
8570         new regno parameter.
8571         (store_ppc_registers): Call store_vsx_registers with -1 for the
8572         new regno parameter.
8573         * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
8574         (ppc_collect_vsxregset): Remove.
8575
8576 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8577
8578         * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
8579         offset fields.
8580         * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
8581         for vector register offset fields.
8582         (ppc64_fbsd_reg_offsets): Likewise.
8583         * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8584         to vector register offset fields.
8585         * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8586         to vector register offset fields.
8587         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
8588         vector register offset fields.
8589         * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
8590         initializers for vector register offset fields.
8591         (rs6000_aix64_reg_offsets): Likewise.
8592         * rs6000-tdep.c (ppc_vrreg_offset): Remove.
8593         (ppc_supply_vrregset): Remove.
8594         (ppc_collect_vrregset): Remove.
8595         * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
8596         (ppc_linux_vrregset) : New function.
8597         (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
8598         (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
8599         (ppc32_linux_vrregset): Remove.
8600         (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
8601         and use result instead of ppc32_linux_vrregset.
8602         (ppc32_linux_reg_offsets): Remove initializers for vector register
8603         offset fields.
8604         (ppc64_linux_reg_offsets): Likewise.
8605         * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
8606         * ppc-linux-nat.c: Include regset.h.
8607         (gdb_vrregset_t): Adjust comment to account for little-endian
8608         mode.
8609         (supply_vrregset, fill_vrregset): Remove.
8610         (fetch_altivec_register, store_altivec_register): Remove.
8611         (fetch_altivec_registers): Add regno parameter. Get regset using
8612         ppc_linux_vrregset. Use regset to supply registers.
8613         (store_altivec_registers): Add regno parameter. Get regset using
8614         ppc_linux_vrregset. Use regset to collect registers.
8615         (fetch_register): Call fetch_altivec_registers instead of
8616         fetch_altivec_register.
8617         (store_register): Call store_altivec_registers instead of
8618         store_altivec_register.
8619         (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
8620         the new regno parameter.
8621         (store_ppc_registers): Call store_altivec_registers with -1 for
8622         the new regno parameter.
8623
8624 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8625
8626         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
8627         (PPC_LINUX_SIZEOF_VSXREGSET): Define.
8628         * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
8629         (gdb_vrregset_t): Change array type size to
8630         PPC_LINUX_SIZEOF_VRREGSET.
8631         (gdb_vsxregset_t): Change array type size to
8632         PPC_LINUX_SIZEOF_VSXREGSET.
8633         * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
8634         Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
8635         PPC_LINUX_SIZEOF_VSXREGSET.
8636
8637 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8638
8639         * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
8640         * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
8641         nat/ppc-linux.c.
8642         (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
8643         ppc_linux_target_wordsize with tid.
8644         (ppc_linux_nat_target::read_description): Call ppc_linux_target
8645         wordsize with tid.
8646         * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
8647         (ppc64_64bit_inferior_p): Add static and inline specifiers.
8648         (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
8649         tid parameter. Remove static specifier.
8650         * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
8651         (ppc_linux_target_wordsize): New declaration.
8652
8653 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8654
8655         * arch/ppc-linux-common.c: New file.
8656         * arch/ppc-linux-common.h: New file.
8657         * arch/ppc-linux-tdesc.h: New file.
8658         * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
8659         * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
8660         (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
8661         arch/ppc-linux-tdesc.h.
8662         * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
8663         arch/ppc-linux-tdesc.h.
8664         (ppc_linux_nat_target::read_description): Remove target
8665         description matching code. Fill a ppc_linux_features struct and
8666         call ppc_linux_match_description with it. Move comment about ISA
8667         2.05 to ppc-linux-common.c.
8668         * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
8669         arch/ppc-linux-tdesc.h.
8670         (ppc_linux_core_read_description): Remove target description
8671         matching code. Fill a ppc_linux_features struct and call
8672         ppc_linux_match_description with it.
8673         * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
8674         (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
8675         (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
8676         (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
8677         (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
8678         (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
8679         (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
8680         (tdesc_powerpc_e500l): Remove.
8681
8682 2018-05-22  Joel Brobecker  <brobecker@adacore.com>
8683
8684         * ada-lang.c (catch_assert_command): Pass empty string instead
8685         of NULL for excep_string argument.
8686
8687 2018-05-22  Maciej W. Rozycki  <macro@mips.com>
8688
8689         * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
8690         the width of the requested register exceeds the width of the
8691         `ptrace' data type.
8692
8693 2018-05-21  Tom Tromey  <tom@tromey.com>
8694
8695         * printcmd.c (output_command): Remove.
8696         (output_command_const): Rename to output_command.
8697         * valprint.h (output_command): Rename from output_command_const.
8698         * tracepoint.c (trace_dump_actions): Call output_command.
8699
8700 2018-05-21  Tom Tromey  <tom@tromey.com>
8701
8702         * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
8703         (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
8704         * ada-lang.h (create_ada_exception_catchpoint): Update.
8705         * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
8706         std::string.
8707         (create_excep_cond_exprs, ~ada_catchpoint)
8708         (should_stop_exception, print_one_exception)
8709         (print_mention_exception, print_recreate_exception): Update.
8710         (ada_get_next_arg): Remove.
8711         (catch_ada_exception_command_split): Use std::string.  Change type
8712         of "excep_string", "cond_string".
8713         (catch_ada_exception_command): Update.
8714         (create_ada_exception_catchpoint): Change type of excep_string.
8715         (ada_exception_sal): Remove excep_string parameter.
8716         (~ada_catchpoint): Remove.
8717
8718 2018-05-21  Tom Tromey  <tom@tromey.com>
8719
8720         * ada-lang.c (ada_collect_symbol_completion_matches): Remove
8721         cleanup.
8722
8723 2018-05-21  Tom Tromey  <tom@tromey.com>
8724
8725         * ada-lang.c (ada_exception_message_1, ada_exception_message):
8726         Return unique_xmalloc_ptr.
8727         (print_it_exception): Update.
8728
8729 2018-05-21  Tom Tromey  <tom@tromey.com>
8730
8731         * tracepoint.c (trace_dump_actions): Use std::string.
8732
8733 2018-05-21  Tom Tromey  <tom@tromey.com>
8734
8735         * symfile.c (reread_symbols): Use std::string for original_name.
8736
8737 2018-05-21  Tom Tromey  <tom@tromey.com>
8738
8739         * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
8740         (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN.  Default
8741         constructor.
8742
8743 2018-05-20  Simon Marchi  <simon.marchi@polymtl.ca>
8744
8745         * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
8746         instance to...
8747         (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
8748         * objfiles.c (get_objfile_bfd_data): Allocate
8749         objfile_per_bfd_storage with obstack_new when allocating on
8750         obstack.
8751
8752 2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
8753
8754         * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
8755         OBSTACK_ZALLOC.
8756         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
8757         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
8758         * mdebugread.c (mdebug_build_psymtabs): Likewise.
8759         (add_pending): Likewise.
8760         (parse_symbol): Likewise.
8761         (parse_partial_symbols): Likewise.
8762         (psymtab_to_symtab_1): Likewise.
8763         (new_psymtab): Likewise.
8764         (elfmdebug_build_psymtabs): Likewise.
8765         * minsyms.c (terminate_minimal_symbol_table): Likewise.
8766         * objfiles.c (get_objfile_bfd_data): Likewise.
8767         (objfile_register_static_link): Likewise.
8768         * psymtab.c (allocate_psymtab): Likewise.
8769         * stabsread.c (read_member_functions): Likewise.
8770         * xcoffread.c (xcoff_end_psymtab): Likewise.
8771
8772 2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
8773
8774         * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
8775         compiler supports std::is_trivially_constructible.
8776         * common/poison.h: Include obstack.h.
8777         (IsMallocable): Define to is_trivially_constructible if the
8778         compiler supports it, define to true_type otherwise.
8779         (xobnew): New.
8780         (XOBNEW): Redefine.
8781         (xobnewvec): New.
8782         (XOBNEWVEC): Redefine.
8783         * gdb_obstack.h (obstack_zalloc): New.
8784         (OBSTACK_ZALLOC): Redefine.
8785         (obstack_calloc): New.
8786         (OBSTACK_CALLOC): Redefine.
8787         (obstack_new): New.
8788         * gdbarch.sh: Include gdb_obstack in gdbarch.h.
8789         (gdbarch_obstack): New declaration in gdbarch.h, definition in
8790         gdbarch.c.
8791         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
8792         obstack_calloc/obstack_zalloc.
8793         (gdbarch_obstack_zalloc): Remove.
8794         * target-descriptions.c (tdesc_data_init): Use obstack_new.
8795
8796 2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
8797
8798         * stack.c (backtrace_command_1): Remove useless variable int i.
8799
8800 2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
8801
8802         * stack.c (print_frame_info): Fix comment.
8803
8804 2018-05-18  Tom Tromey  <tom@tromey.com>
8805
8806         * dwarf2read.c (struct dwz_file): Add constructor, initializers.
8807         <dwz_bfd>: Now a gdb_bfd_ref_ptr.
8808         (~dwarf2_per_objfile): Update
8809         (dwarf2_get_dwz_file): Use new.
8810         * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
8811         unique_ptr.
8812
8813 2018-05-18  Tom Tromey  <tom@tromey.com>
8814
8815         * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
8816         unique_ptr.
8817         * dwarf2read.c (struct dwp_file): Add constructor and
8818         initializers.
8819         (open_and_init_dwp_file): Return a unique_ptr.
8820         (dwarf2_per_objfile, create_dwp_hash_table)
8821         (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
8822         (lookup_dwo_unit_in_dwp): Update.
8823         (open_and_init_dwp_file, get_dwp_file): Update.
8824
8825 2018-05-18  Tom Tromey  <tom@tromey.com>
8826
8827         * dwarf2read.c (dwarf2_per_objfile): Update.
8828         (struct mapped_index): Add initializers.
8829         (dwarf2_read_index): Use new.
8830         (dw2_symtab_iter_init): Update.
8831         * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
8832         unique_ptr.
8833
8834 2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
8835
8836         * dwarf2read.c (mapped_index) <total_size>: Remove.
8837
8838 2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
8839
8840         * unittests/format_pieces-selftests.c (test_format_specifier):
8841         Add ARI comments.
8842
8843 2018-05-18  Tom Tromey  <tom@tromey.com>
8844
8845         * c-typeprint.c (maybe_print_hole): New function.
8846         (c_print_type_struct_field_offset): Update.
8847         (c_type_print_base_struct_union): Call maybe_print_hole.
8848
8849 2018-05-17  Keith Seitz  <keiths@redhat.com>
8850
8851         * breakpoint.c (build_bpstat_chain): New function, moved from
8852         bpstat_stop_status.
8853         (bpstat_stop_status): Add optional parameter, `stop_chain'.
8854         If no stop chain is passed, call build_bpstat_chain to build it.
8855         * breakpoint.h (build_bpstat_chain): Declare.
8856         (bpstat_stop_status): Move documentation here from breakpoint.c.
8857         * infrun.c (handle_signal_stop): Before eliding inlined frames,
8858         build the stop chain and pass it to skip_inline_frames.
8859         Pass this stop chain to bpstat_stop_status.
8860         * inline-frame.c: Include breakpoint.h.
8861         (stopped_by_user_bp_inline_frame): New function.
8862         (skip_inline_frames): Add parameter `stop_chain'.
8863         Move documention to inline-frame.h.
8864         If non-NULL, use stopped_by_user_bp_inline_frame to determine
8865         whether the frame should be elided.
8866         * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
8867         Add moved documentation and update for new parameter.
8868
8869 2018-05-17  Simon Marchi  <simon.marchi@ericsson.com>
8870
8871         PR cli/14975
8872         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8873         unittests/format_pieces-selftests.c.
8874         * common/format.h (format_piece) <operator==>: New.
8875         (format_pieces) <operator[]>: Remove.
8876         * common/format.c (format_pieces::format_pieces): Handle \e.
8877         * unittests/format_pieces-selftests.c: New.
8878
8879 2018-05-17  Tom Tromey  <tom@tromey.com>
8880
8881         PR symtab/23010:
8882         * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
8883         (dw2_instantiate_symtab): Add skip_partial parameter.
8884         (dw2_find_last_source_symtab, dw2_map_expand_apply)
8885         (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
8886         (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
8887         (dw2_expand_symtabs_matching_one)
8888         (dw2_find_pc_sect_compunit_symtab)
8889         (dw2_debug_names_lookup_symbol)
8890         (dw2_debug_names_expand_symtabs_for_function): Update.
8891         (init_cutu_and_read_dies): Add skip_partial parameter.
8892         (process_psymtab_comp_unit, build_type_psymtabs_1)
8893         (process_skeletonless_type_unit, load_partial_comp_unit)
8894         (psymtab_to_symtab_1): Update.
8895         (load_full_comp_unit): Add skip_partial parameter.
8896         (process_imported_unit_die, dwarf2_read_addr_index)
8897         (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
8898         (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
8899         (read_signatured_type): Update.
8900
8901 2018-05-17  Simon Marchi  <simon.marchi@ericsson.com>
8902
8903         * value.c (release_value): Remove unused variable.
8904         (record_latest_value): Likewise.
8905         (access_value_history): Likewise.
8906         (preserve_values): Likewise.
8907
8908 2018-05-17  Tom Tromey  <tom@tromey.com>
8909
8910         * extension.h (struct ext_lang_type_printers) <py_type_printers>:
8911         Initialize.
8912
8913 2018-05-16  Maciej W. Rozycki  <macro@mips.com>
8914
8915         PR gdb/22286
8916         * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
8917         Also handle registers whose width is not a multiple of
8918         PTRACE_TYPE_RET.
8919         (linux_nat_trad_target::store_register): Likewise.
8920
8921 2018-05-16  Tom Tromey  <tom@tromey.com>
8922
8923         * gdbcore.h (core_bfd): Redefine.
8924         * corelow.c (core_target::close): Update.
8925         (core_target_open): Update.
8926         * progspace.h (struct program_space) <cbfd>: Now a
8927         gdb_bfd_ref_ptr.
8928
8929 2018-05-16  Tom Tromey  <tom@tromey.com>
8930
8931         PR cli/19551:
8932         * symfile-add-flags.h (enum symfile_add_flags)
8933         <SYMFILE_NOT_FILENAME>: New constant.
8934         * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME.  Get
8935         objfile name from BFD.
8936         (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
8937         * minidebug.c (find_separate_debug_file_in_section): Put
8938         ".gnu_debugdata" into BFD's file name.
8939
8940 2018-05-16  Simon Marchi  <simon.marchi@ericsson.com>
8941
8942         * regcache.c (regcache_read_ftype, regcache_write_ftype):
8943         Remove.
8944
8945 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
8946
8947         PR binutils/21446
8948         * aarch64-tdep.c (aarch64_analyze_prologue,
8949         aarch64_software_single_step, aarch64_displaced_step_copy_insn):
8950         Indicate not interested in errors.
8951
8952 2018-05-15  Maciej W. Rozycki  <macro@mips.com>
8953
8954         * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
8955         Supply the MIPS_ZERO_REGNUM register.
8956
8957 2018-05-15  Maciej W. Rozycki  <macro@mips.com>
8958
8959         * mips-tdep.c (mask_address_var): Make variable static.
8960
8961 2018-05-14  Tom Tromey  <tom@tromey.com>
8962
8963         * dwarf2read.c (rust_union_quirks): Clear rust_unions.
8964
8965 2018-05-11  Andrew Burgess  <andrew.burgess@embecosm.com>
8966
8967         * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
8968         FXSAVE_ADDR for the mxcsr register.
8969
8970 2018-05-11  Max Filippov  <jcmvbkbc@gmail.com>
8971
8972         * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
8973
8974 2018-05-11  Pedro Alves  <palves@redhat.com>
8975
8976         * corelow.c (core_target) <core_target>: No longer inline.
8977         Initialize m_core_gdbarch, m_core_vec and build the section table
8978         here.
8979         <~core_target>: New.
8980         <core_gdbarch, get_core_register_section>: New methods.
8981         <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
8982         factored out from ...
8983         <core_data, core_vec, core_gdbarch>: ... these deleted globals.
8984         (core_ops): Delete.
8985         (sniff_core_bfd): Add gdbarch parameter.
8986         (core_close): Delete, merged into ...
8987         (core_target::close): ... here.  Delete self.
8988         (core_close_cleanup): Delete.
8989         (core_target_open): Allocate a core_target on the heap.  Use a
8990         unique_ptr instead of a cleanup.  Bits moved into the core_target
8991         ctor.  Adjust to use core_target methods instead of globals.
8992         (get_core_register_section): Rename to ...
8993         (core_target::get_core_register_section): ... this and adjust.
8994         (struct get_core_registers_cb_data): New.
8995         (get_core_registers_cb): Use it.  Use bool.
8996         (core_target::fetch_registers, core_target::files_info)
8997         (core_target::xfer_partial, core_target::read_description)
8998         (core_target::pid_to, core_target::thread_name): Adjust to
8999         reference class fields instead of globals.
9000         * target.h (struct target_ops_deleter, target_ops_up): New.
9001
9002 2018-05-11  Pedro Alves  <palves@redhat.com>
9003
9004         * corefile.c (core_file_command): Move to corelow.c.
9005         * corelow.c (the_core_target): Delete.
9006         (core_file_command): Moved from corefile.c.  Check exec_bfd
9007         instead of the_core_target.  Use target_detach instead of calling
9008         into the_core_target directly.
9009         (maybe_say_no_core_file_now): New.
9010         (core_target::detach): Use it.
9011         (_initialize_corelow): Remove references to the_core_target.
9012         * gdbcore.h (the_core_target): Delete.
9013
9014 2018-05-11  Tom Tromey  <tromey@redhat.com>
9015             Pedro Alves  <palves@redhat.com>
9016
9017         * corefile.c (core_bfd): Remove.
9018         * gdbcore.h (core_bfd): Now a macro.
9019         * progspace.h (struct program_space) <cbfd>: New field.
9020
9021 2018-05-11  Tom Tromey  <tom@tromey.com>
9022
9023         * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
9024         gdb::def_vector.
9025
9026 2018-05-10  Tom Tromey  <tom@tromey.com>
9027
9028         * configure: Rebuild.
9029         * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
9030
9031 2018-05-10  Joel Brobecker  <brobecker@adacore.com>
9032
9033         PR server/23158:
9034         * regformats/regdat.sh: Adjust script, following the addition
9035         of the new expedite_regs parameter to init_target_desc.
9036
9037 2018-05-10  Omair Javaid  <omair.javaid@linaro.org>
9038     
9039         PR gdb/23127
9040         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
9041         set_gdbarch_significant_addr_bit.
9042         * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
9043         set_gdbarch_significant_addr_bit.
9044         * utils.c (address_significant): Update to sign extend addr.
9045
9046 2018-05-09  Max Filippov  <jcmvbkbc@gmail.com>
9047
9048         * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
9049         (xtensa_linux_init_abi): Limit tdep->num_regs by
9050         tdep->num_nopriv_regs.
9051         * xtensa-tdep.c (xtensa_derive_tdep): Calculate
9052         tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
9053         not initialized.
9054
9055 2018-05-08  Simon Marchi  <simon.marchi@ericsson.com>
9056
9057         * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
9058
9059 2018-05-08  Andrew Burgess  <andrew.burgess@embecosm.com>
9060
9061         * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
9062         (I387_MXCSR_INIT_VAL): New constant.
9063         * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
9064         buffer if it was supplied by the inferior.
9065         * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
9066         (i387_xsave_get_clear_bv): New function.
9067         (i387_supply_xsave): Only read x87 control registers from the
9068         xsave buffer if the feature is enabled, and the state will have
9069         been written, otherwise, provide a suitable default.
9070         (i387_collect_xsave): Pre-clear all registers in xsave buffer,
9071         including x87 control registers.  Update control registers if they
9072         have changed from the default value, and mark features as enabled
9073         as required.
9074         * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
9075
9076 2018-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
9077
9078         * spu-tdep.c (info_spu_event_command): Fix output formatting.
9079
9080 2018-05-07  Tom Tromey  <tom@tromey.com>
9081
9082         * configure: Rebuild.
9083         * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
9084
9085 2018-05-07  Tom Tromey  <tom@tromey.com>
9086
9087         PR tdep/20362:
9088         * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
9089         bit.  Use correct value for VDIV.
9090
9091 2018-05-04  Tom Tromey  <tom@tromey.com>
9092
9093         * configure: Rebuild.
9094         * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
9095
9096 2018-05-04  Tom Tromey  <tom@tromey.com>
9097
9098         * linux-record.c (record_linux_system_call) <case
9099         RECORD_SYS_RECVFROM>: Add "break".
9100
9101 2018-05-04  Tom Tromey  <tom@tromey.com>
9102
9103         * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
9104         Add missing "break".
9105         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
9106         Add missing "break".
9107
9108 2018-05-04  Tom Tromey  <tom@tromey.com>
9109
9110         * rs6000-tdep.c (ppc_process_record_op4)
9111         (ppc_process_record_op63): Add fall-through comment.
9112
9113 2018-05-04  Tom Tromey  <tom@tromey.com>
9114
9115         * i386-tdep.c (i386_process_record): Add fall-through comment.
9116
9117 2018-05-04  Tom Tromey  <tom@tromey.com>
9118
9119         * stabsread.c (define_symbol) <case 'p'>: Add fall-through
9120         comment.
9121
9122 2018-05-04  Tom Tromey  <tom@tromey.com>
9123
9124         * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
9125         * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
9126         * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
9127         comment.
9128         * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
9129         comment.
9130         * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
9131         comment.
9132
9133 2018-05-04  Tom Tromey  <tom@tromey.com>
9134
9135         * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
9136
9137 2018-05-04  Tom Tromey  <tom@tromey.com>
9138
9139         * s390-tdep.c (s390_process_record): Fix fall-through comments.
9140         * xcoffread.c (scan_xcoff_symtab): Move comment later.
9141         * symfile.c (section_is_mapped): Fix fall-through comment.
9142         * stabsread.c (define_symbol, read_member_functions): Fix
9143         fall-through comment.
9144         * s390-linux-tdep.c (s390_process_record): Fix fall-through
9145         comment.
9146         * remote.c (remote_wait_as): Fix fall-through comment.
9147         * p-exp.y (yylex): Fix fall-through comment.
9148         * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
9149         comment.
9150         * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
9151         * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
9152         * jv-exp.y (yylex): Fix fall-through comment.
9153         * go-exp.y (lex_one_token): Fix fall-through comment.
9154         * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
9155         fall-through comment.
9156         * f-exp.y (yylex): Fix fall-through comment.
9157         * dwarf2read.c (process_die): Fix fall-through comments.
9158         * dbxread.c (process_one_symbol): Fix fall-through comment.
9159         * d-exp.y (lex_one_token): Fix fall-through comment.
9160         * cp-name-parser.y (yylex): Fix fall-through comment.
9161         * coffread.c (coff_symtab_read): Fix fall-through comment.
9162         * c-exp.y (lex_one_token): Fix fall-through comment.
9163         * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
9164         comment.
9165         * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
9166         comment.
9167
9168 2018-05-04  Tom Tromey  <tom@tromey.com>
9169
9170         PR python/22730:
9171         * NEWS: Mention gdb.execute change.
9172         * gdbcmd.h (execute_control_command): Don't declare.
9173         * python/python.c (execute_gdb_command): Use read_command_lines_1,
9174         execute_control_commands, execute_control_commands_to_string.
9175         * cli/cli-script.h (execute_control_commands)
9176         (execute_control_commands_to_string): Declare.
9177         (execute_control_command): Add from_tty parameter.
9178         * cli/cli-script.c (execute_control_commands)
9179         (execute_control_commands_to_string): New functions.
9180         (execute_user_command): Use execute_control_commands.
9181         (execute_control_command_1): Add "from_tty" parameter.  Update.
9182         (execute_control_command): Likewise.
9183
9184 2018-05-04  Tom Tromey  <tom@tromey.com>
9185
9186         PR python/22731:
9187         * NEWS: Mention that breakpoint commands are writable.
9188         * python/py-breakpoint.c (bppy_set_commands): New function.
9189         (breakpoint_object_getset) <"commands">: Use it.
9190
9191 2018-05-04  Tom Tromey  <tom@tromey.com>
9192
9193         * tracepoint.c (actions_command): Update.
9194         * mi/mi-cmd-break.c (mi_command_line_array)
9195         (mi_command_line_array_cnt, mi_command_line_array_ptr)
9196         (mi_read_next_line): Remove.
9197         (mi_cmd_break_commands): Update.
9198         * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
9199         function_view.
9200         * cli/cli-script.c (get_command_line): Update.
9201         (process_next_line): Use function_view.  Constify.
9202         (recurse_read_control_structure, read_command_lines)
9203         (read_command_lines_1): Change argument types to function_view.
9204         (do_define_command, document_command): Update.
9205         * breakpoint.h (check_tracepoint_command): Don't declare.
9206         * breakpoint.c (check_tracepoint_command): Remove.
9207         (commands_command_1, create_tracepoint_from_upload): Update.
9208
9209 2018-05-04  Tom Tromey  <tom@tromey.com>
9210
9211         PR gdb/11750:
9212         * cli/cli-script.h (enum command_control_type) <define_control>:
9213         New constant.
9214         * cli/cli-script.c (multi_line_command_p): Handle define_control.
9215         (build_command_line, execute_control_command_1)
9216         (process_next_line): Likewise.
9217         (do_define_command): New function, extracted from define_command.
9218         (define_command): Use it.
9219
9220 2018-05-04  Tom Tromey  <tom@tromey.com>
9221
9222         * tracepoint.c (actions_command): Update.
9223         * cli/cli-script.h (read_command_lines): Update.
9224         * cli/cli-script.c (read_command_lines): Constify prompt_arg.
9225         (MAX_TMPBUF): Remove define.
9226         (define_command): Use string_printf.
9227         (document_command): Likewise.
9228         * breakpoint.c (commands_command_1): Update.
9229
9230 2018-05-04  Tom Tromey  <tom@tromey.com>
9231
9232         * top.c (execute_command): Update.
9233         * cli/cli-script.h (print_command_lines): Now varargs.
9234         * cli/cli-script.c (print_command_lines): Now varargs.
9235         (execute_control_command_1) <case while_control, case if_control>:
9236         Update.
9237
9238 2018-05-04  Tom Tromey  <tom@tromey.com>
9239
9240         * tracepoint.c (all_tracepoint_actions): Rename from
9241         all_tracepoint_actions_and_cleanup.  Change return type.
9242         (actions_command, encode_actions_1, encode_actions)
9243         (trace_dump_actions, tdump_command): Update.
9244         * remote.c (remote_download_command_source): Update.
9245         * python/python.c (gdbpy_eval_from_control_command)
9246         (python_command, python_interactive_command): Update.
9247         * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
9248         * guile/guile.c (guile_command)
9249         (gdbscm_eval_from_control_command, guile_command): Update.
9250         * compile/compile.c (compile_code_command)
9251         (compile_print_command, compile_to_object): Update.
9252         * cli/cli-script.h (struct command_lines_deleter): New.
9253         (counted_command_line): New typedef.
9254         (struct command_line): Add constructor, destructor.
9255         <body_list>: Remove.
9256         <body_list_0, body_list_1>: New members.
9257         (command_line_up): Remove typedef.
9258         (read_command_lines, read_command_lines_1, get_command_line):
9259         Update.
9260         (copy_command_lines): Don't declare.
9261         * cli/cli-script.c (build_command_line): Use "new".
9262         (get_command_line): Return counted_command_line.
9263         (print_command_lines, execute_user_command)
9264         (execute_control_command_1, while_command, if_command): Update.
9265         (realloc_body_list): Remove.
9266         (process_next_line, recurse_read_control_structure): Update.
9267         (read_command_lines, read_command_lines_1): Return counted_command_line.
9268         (free_command_lines): Use "delete".
9269         (copy_command_lines): Remove.
9270         (define_command, document_command, show_user_1): Update.
9271         * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
9272         a counted_command_line.
9273         * breakpoint.h (counted_command_line): Remove typedef.
9274         (breakpoint_set_commands): Update.
9275         * breakpoint.c (check_no_tracepoint_commands)
9276         (validate_commands_for_breakpoint): Update.
9277         (breakpoint_set_commands): Change commands to be a
9278         counted_command_line.
9279         (commands_command_1, update_dprintf_command_list)
9280         (create_tracepoint_from_upload): Update.
9281
9282 2018-05-04  Tom Tromey  <tom@tromey.com>
9283
9284         * cli/cli-decode.h (cmd_list_element): New constructor.
9285         (~cmd_list_element): New destructor.
9286         (struct cmd_list_element): Add initializers.
9287         * cli/cli-decode.c (do_add_cmd): Use "new".
9288         (delete_cmd): Use "delete".
9289
9290 2018-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9291             Pedro Alves <palves@redhat.com>
9292
9293         PR breakpoints/19806 and support for PR external/20207.
9294         * NEWS: Mention Aarch64 watchpoint improvements.
9295         * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
9296         watchpoints and PR external/20207 watchpoints.
9297         * nat/aarch64-linux-hw-point.c
9298         (kernel_supports_any_contiguous_range): New.
9299         (aarch64_watchpoint_offset): New.
9300         (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
9301         (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
9302         (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
9303         (aarch64_align_watchpoint): New parameters aligned_offset_p and
9304         next_addr_orig_p.  Support PR external/20207 watchpoints.
9305         (aarch64_downgrade_regs): New.
9306         (aarch64_dr_state_insert_one_point): New parameters offset and
9307         addr_orig.
9308         (aarch64_dr_state_remove_one_point): Likewise.
9309         (aarch64_handle_breakpoint): Update caller.
9310         (aarch64_handle_aligned_watchpoint): Likewise.
9311         (aarch64_handle_unaligned_watchpoint): Support addr_orig and
9312         aligned_offset.
9313         (aarch64_linux_set_debug_regs): Remove const from state.  Call
9314         aarch64_downgrade_regs.
9315         (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
9316         * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
9317         (DR_CONTROL_MASK): ... this.
9318         (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
9319         (unsigned int aarch64_watchpoint_offset): New prototype.
9320         (aarch64_linux_set_debug_regs): Remove const from state.
9321         * utils.c (align_up, align_down): Move to ...
9322         * common/common-utils.c (align_up, align_down): ... here.
9323         * utils.h (align_up, align_down): Move to ...
9324         * common/common-utils.h (align_up, align_down): ... here.
9325
9326 2018-05-04  Joel Brobecker  <brobecker@adacore.com>
9327
9328         * sparc-tdep.c (sparc_structure_return_p): Re-implement to
9329         match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
9330         (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
9331         Re-implement to match the ABI as summarized in GCC's
9332         gcc/config/sparc/sparc.c.  All callers updated.
9333         (sparc32_store_arguments): Remove assertion.
9334
9335 2018-05-04  Tom Tromey  <tom@tromey.com>
9336
9337         * printcmd.c: Don't include tui.h.
9338         (decode_format): Use skip_spaces.
9339
9340 2018-05-04  Tom Tromey  <tom@tromey.com>
9341
9342         PR gdb/22619:
9343         * printcmd.c (last_count): New global.
9344         (x_command): Use saved count when repeating.
9345
9346 2018-05-04  Tom Tromey  <tom@tromey.com>
9347
9348         * nto-procfs.c (do_closedir_cleanup): Remove.
9349         (procfs_pidlist): Use gdb_dir_up.
9350         * procfs.c (do_closedir_cleanup): Remove.
9351         (proc_update_threads): Use gdb_dir_up.
9352         * common/filestuff.h (struct gdb_dir_deleter): New.
9353         (gdb_dir_up): New typedef.
9354
9355 2018-05-04  Tom Tromey  <tom@tromey.com>
9356
9357         * ada-lang.c (print_mention_exception): Use std::string.
9358
9359 2018-05-04  Tom Tromey  <tom@tromey.com>
9360
9361         * ada-lang.c (create_excep_cond_exprs): Update.
9362         (ada_exception_catchpoint_cond_string): Use std::string.
9363
9364 2018-05-04  Tom Tromey  <tom@tromey.com>
9365
9366         * ada-lang.c (xget_renaming_scope): Return std::string.
9367         (old_renaming_is_invisible): Update.
9368
9369 2018-05-04  Tom Tromey  <tom@tromey.com>
9370
9371         * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
9372         (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
9373
9374 2018-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
9375
9376         * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
9377
9378 2018-05-04  Tom Tromey  <tom@tromey.com>
9379
9380         * remote.c (remote_query_supported_append): Change type.
9381         (remote_check_symbols): Update.
9382
9383 2018-05-04  Paul Pluzhnikov  <ppluzhnikov@google.com>
9384
9385         PR gdb/11420
9386         * configure.ac: Prepend libpython.
9387         * python/python-config.py: Likewise.
9388         * configure: Regenerate.
9389
9390 2018-05-03  Simon Marchi  <simon.marchi@ericsson.com>
9391
9392         * Makefile.in (%.c: %.l): Use -t instead of --stdout.
9393
9394 2018-05-03  Pedro Alves  <palves@redhat.com>
9395
9396         * s390-linux-nat.c
9397         (s390_linux_nat_target::have_continuable_watchpoint): Mark with
9398         override.  Write 'true' instead of '1'.
9399         (s390_linux_nat_target::watchpoint_addr_within_range): Remove
9400         declaration.
9401
9402 2018-05-02  Pedro Alves  <palves@redhat.com>
9403
9404         * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
9405         add_inf_child_target.
9406         * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
9407         add_inf_child_target.
9408         * aix-thread.c (aix_thread_target_info): New.
9409         (aix_thread_target) <shortname, longname, doc>: Delete.
9410         <info>: New.
9411         * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
9412         add_inf_child_target.
9413         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
9414         add_inf_child_target.
9415         * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
9416         add_inf_child_target.
9417         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
9418         add_inf_child_target.
9419         * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
9420         add_inf_child_target.
9421         * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
9422         add_inf_child_target.
9423         * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
9424         add_inf_child_target.
9425         * arm-linux-nat.c (_initialize_arm_linux_nat): Use
9426         add_inf_child_target.
9427         * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
9428         add_inf_child_target.
9429         * bfd-target.c (target_bfd_target_info): New.
9430         (target_bfd) <shortname, longname, doc>: Delete.
9431         <info>: New.
9432         * bsd-kvm.c (bsd_kvm_target_info): New.
9433         (bsd_kvm_target) <shortname, longname, doc>: Delete.
9434         <info>: New.
9435         (bsd_kvm_target::open): Rename to ...
9436         (bsd_kvm_target_open): ... this.  Adjust.
9437         * bsd-uthread.c (bsd_uthread_target_info): New.
9438         (bsd_uthread_target) <shortname, longname, doc>: Delete.
9439         <info>: New.
9440         * corefile.c (core_file_command): Adjust.
9441         * corelow.c (core_target_info): New.
9442         (core_target) <shortname, longname, doc>: Delete.
9443         <info>: New.
9444         (core_target::open): Rename to ...
9445         (core_target_open): ... this.  Adjust.
9446         * ctf.c (ctf_target_info): New.
9447         (ctf_target) <shortname, longname, doc>: Delete.
9448         <info>: New.
9449         (ctf_target::open): Rename to ...
9450         (ctf_target_open): ... this.
9451         (_initialize_ctf): Adjust.
9452         * exec.c (exec_target_info): New.
9453         (exec_target) <shortname, longname, doc>: Delete.
9454         <info>: New.
9455         (exec_target::open): Rename to ...
9456         (exec_target_open): ... this.
9457         * gdbcore.h (core_target_open): Declare.
9458         * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
9459         * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
9460         add_inf_child_target.
9461         * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
9462         add_inf_child_target.
9463         * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
9464         add_inf_child_target.
9465         * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
9466         add_inf_child_target.
9467         * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
9468         add_inf_child_target.
9469         * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
9470         add_inf_child_target.
9471         * i386-linux-nat.c (_initialize_i386_linux_nat): Use
9472         add_inf_child_target.
9473         * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
9474         add_inf_child_target.
9475         * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
9476         add_inf_child_target.
9477         * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
9478         add_inf_child_target.
9479         * inf-child.c (inf_child_target_info): New.
9480         (inf_child_target::info): New.
9481         (inf_child_open_target): Remove 'target' parameter.  Use
9482         get_native_target instead.
9483         (inf_child_target::open): Delete.
9484         (add_inf_child_target): New.
9485         * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
9486         Delete.
9487         <info>: New.
9488         (add_inf_child_target): Declare.
9489         (inf_child_open_target): Declare.
9490         * linux-thread-db.c (thread_db_target_info): New.
9491         (thread_db_target) <shortname, longname, doc>: Delete.
9492         <info>: New.
9493         * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
9494         add_inf_child_target.
9495         * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
9496         add_inf_child_target.
9497         * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
9498         add_inf_child_target.
9499         * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
9500         add_inf_child_target.
9501         * make-target-delegates (print_class): Adjust.
9502         * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
9503         add_inf_child_target.
9504         * mips-linux-nat.c (_initialize_mips_linux_nat): Use
9505         add_inf_child_target.
9506         * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
9507         add_inf_child_target.
9508         * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
9509         add_inf_child_target.
9510         * nto-procfs.c (nto_native_target_info): New.
9511         (nto_procfs_target_native) <shortname, longname, doc>:
9512         Delete.
9513         <info>: New.
9514         (nto_procfs_target_info): New.
9515         (nto_procfs_target_procfs) <shortname, longname, doc>:
9516         Delete.
9517         <info>: New.
9518         (init_procfs_targets): Adjust.
9519         * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
9520         add_inf_child_target.
9521         * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
9522         add_inf_child_target.
9523         * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
9524         add_inf_child_target.
9525         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
9526         add_inf_child_target.
9527         * ravenscar-thread.c (ravenscar_target_info): New.
9528         (ravenscar_thread_target) <shortname, longname, doc>:
9529         Delete.
9530         <info>: New.
9531         * record-btrace.c (record_btrace_target_info):
9532         (record_btrace_target) <shortname, longname, doc>: Delete.
9533         <info>: New.
9534         (record_btrace_target::open): Rename to ...
9535         (record_btrace_target_open): ... this.  Adjust.
9536         * record-full.c (record_longname, record_doc): New.
9537         (record_full_base_target) <shortname, longname, doc>: Delete.
9538         <info>: New.
9539         (record_full_target_info): New.
9540         (record_full_target): <shortname>: Delete.
9541         <info>: New.
9542         (record_full_core_open_1, record_full_open_1): Update comments.
9543         (record_full_base_target::open): Rename to ...
9544         (record_full_open): ... this.
9545         (cmd_record_full_restore): Update.
9546         (_initialize_record_full): Update.
9547         * remote-sim.c (remote_sim_target_info): New.
9548         (gdbsim_target) <shortname, longname, doc>: Delete.
9549         <info>: New.
9550         (gdbsim_target::open): Rename to ...
9551         (gdbsim_target_open): ... this.
9552         (_initialize_remote_sim): Adjust.
9553         * remote.c (remote_doc): New.
9554         (remote_target_info): New.
9555         (remote_target) <shortname, longname, doc>: Delete.
9556         <info>: New.
9557         (extended_remote_target_info): New.
9558         (extended_remote_target) <shortname, longname, doc>: Delete.
9559         <info>: New.
9560         (remote_target::open_1): Make static.  Adjust.
9561         * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
9562         * s390-linux-nat.c (_initialize_s390_nat): Use
9563         add_inf_child_target.
9564         * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
9565         add_inf_child_target.
9566         * sol-thread.c (thread_db_target_info): New.
9567         (sol_thread_target) <shortname, longname, doc>: Delete.
9568         <info>: New.
9569         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
9570         add_inf_child_target.
9571         * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
9572         add_inf_child_target.
9573         * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
9574         add_inf_child_target.
9575         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
9576         add_inf_child_target.
9577         * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
9578         add_inf_child_target.
9579         * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
9580         add_inf_child_target.
9581         * spu-linux-nat.c (_initialize_spu_nat): Use
9582         add_inf_child_target.
9583         * spu-multiarch.c (spu_multiarch_target_info): New.
9584         (spu_multiarch_target) <shortname, longname, doc>: Delete.
9585         <info>: New.
9586         * target-delegates.c: Regenerate.
9587         * target.c: Include <unordered_map>.
9588         (target_ops_p): Delete.
9589         (DEF_VEC_P(target_ops_p)): Delete.
9590         (target_factories): New.
9591         (test_target_info): New.
9592         (test_target_ops::info): New.
9593         (open_target): Adjust to use target_factories.
9594         (add_target_with_completer): Rename to ...
9595         (add_target): ... this.  Change prototype.  Register target_info
9596         and open callback in target_factories.  Register target_info in
9597         command context instead of target_ops.
9598         (add_target): Delete old implementation.
9599         (add_deprecated_target_alias): Change prototype.  Adjust.
9600         (the_native_target): New.
9601         (set_native_target, get_native_target): New.
9602         (find_default_run_target): Use the_native_target.
9603         (find_attach_target, find_run_target): Simplify.
9604         (target_ops::open): Delete.
9605         (dummy_target_info): New.
9606         (dummy_target::shortname, dummy_target::longname)
9607         (dummy_target::doc): Delete.
9608         (dummy_target::info): New.
9609         (debug_target::shortname, debug_target::longname)
9610         (debug_target::doc): Delete.
9611         (debug_target::info): New.
9612         * target.h (struct target_info): New.
9613         (target_ops::~target_ops): Add comment.
9614         (target_ops::info): New.
9615         (target_ops::shortname, target_ops::longname, target_ops::doc): No
9616         longer virtual.  Implement in terms of target_info.
9617         (set_native_target, get_native_target): Declare.
9618         (target_open_ftype): New.
9619         (add_target, add_target_with_completer)
9620         (add_deprecated_target_alias): Change prototype.
9621         (test_target) <shortname, longname, doc>: Delete.
9622         <info>: New.
9623         * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
9624         add_inf_child_target.
9625         * tracefile-tfile.c (tfile_target_info): New.
9626         (tfile_target) <shortname, longname, doc>: Delete.
9627         <info>: New.
9628         (tfile_target::open): Rename to ...
9629         (tfile_target_open): ... this.
9630         (_initialize_tracefile_tfile): Adjust.
9631         * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
9632         add_inf_child_target.
9633         * windows-nat.c (_initialize_windows_nat): Use
9634         add_inf_child_target.
9635         * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
9636         add_inf_child_target.
9637
9638 2018-05-02  Pedro Alves  <palves@redhat.com>
9639
9640         * linux-nat.h (linux_nat_target) <low_new_thread,
9641         low_delete_thread, low_new_fork, low_forget_process,
9642         low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
9643         New virtual methods.
9644         (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9645         (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
9646         (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
9647         (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9648         (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
9649         Delete.
9650         * linux-fork.c (delete_fork): Adjust to call low method.
9651         * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
9652         (linux_nat_new_fork, linux_nat_forget_process_hook)
9653         (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
9654         (linux_nat_status_is_event):
9655         (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
9656         (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
9657         to call low method.
9658         (sigtrap_is_event): Rename to ...
9659         (linux_nat_target::low_status_is_event): ... this.
9660         (linux_nat_set_status_is_event): Delete.
9661         (save_stop_reason, linux_nat_wait_1)
9662         (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
9663         low methods.
9664         (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9665         (linux_nat_set_new_fork, linux_nat_set_forget_process)
9666         (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9667         (linux_nat_set_prepare_to_resume): Delete.
9668         * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
9669         low virtual methods.
9670         * amd64-linux-nat.c: Likewise.
9671         * arm-linux-nat.c: Likewise.
9672         * i386-linux-nat.c: Likewise.
9673         * ia64-linux-nat.c: Likewise.
9674         * mips-linux-nat.c: Likewise.
9675         * ppc-linux-nat.c: Likewise.
9676         * s390-linux-nat.c: Likewise.
9677         * sparc64-linux-nat.c: Likewise.
9678         * x86-linux-nat.c: Likewise.
9679         * x86-linux-nat.h: Include "nat/x86-linux.h".
9680         (x86_linux_nat_target) <low_new_fork, low_forget_process,
9681         low_prepare_to_resume, low_new_thread, low_delete_thread>:
9682         Override methods.
9683
9684 2018-05-02  Pedro Alves  <palves@redhat.com>
9685
9686         * target.h (target_ops)
9687         <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9688         stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
9689         stopped_by_watchpoint, have_continuable_watchpoint,
9690         stopped_data_address, watchpoint_addr_within_range,
9691         can_accel_watchpoint_condition, can_run, thread_alive,
9692         has_all_memory, has_memory, has_stack, has_registers,
9693         has_execution, can_async_p, is_async_p, supports_non_stop,
9694         always_non_stop_p, can_execute_reverse, supports_multi_process,
9695         supports_enable_disable_tracepoint,
9696         supports_disable_randomization, supports_string_tracing,
9697         supports_evaluation_of_breakpoint_conditions,
9698         can_run_breakpoint_commands, filesystem_is_local,
9699         can_download_tracepoint, get_trace_state_variable_value,
9700         set_trace_notes, get_tib_address, use_agent, can_use_agent,
9701         record_is_replaying, record_will_replay,
9702         augmented_libraries_svr4_read>: Adjust to return bool.
9703         * aarch64-linux-nat.c: All implementations adjusted.
9704         * aix-thread.c: All implementations adjusted.
9705         * arm-linux-nat.c: All implementations adjusted.
9706         * breakpoint.c: All implementations adjusted.
9707         * bsd-kvm.c: All implementations adjusted.
9708         * bsd-uthread.c: All implementations adjusted.
9709         * corelow.c: All implementations adjusted.
9710         * ctf.c: All implementations adjusted.
9711         * darwin-nat.c: All implementations adjusted.
9712         * darwin-nat.h: All implementations adjusted.
9713         * exec.c: All implementations adjusted.
9714         * fbsd-nat.c: All implementations adjusted.
9715         * fbsd-nat.h: All implementations adjusted.
9716         * gnu-nat.c: All implementations adjusted.
9717         * gnu-nat.h: All implementations adjusted.
9718         * go32-nat.c: All implementations adjusted.
9719         * ia64-linux-nat.c: All implementations adjusted.
9720         * inf-child.c: All implementations adjusted.
9721         * inf-child.h: All implementations adjusted.
9722         * inf-ptrace.c: All implementations adjusted.
9723         * inf-ptrace.h: All implementations adjusted.
9724         * linux-nat.c: All implementations adjusted.
9725         * linux-nat.h: All implementations adjusted.
9726         * mips-linux-nat.c: All implementations adjusted.
9727         * nto-procfs.c: All implementations adjusted.
9728         * ppc-linux-nat.c: All implementations adjusted.
9729         * procfs.c: All implementations adjusted.
9730         * ravenscar-thread.c: All implementations adjusted.
9731         * record-btrace.c: All implementations adjusted.
9732         * record-full.c: All implementations adjusted.
9733         * remote-sim.c: All implementations adjusted.
9734         * remote.c: All implementations adjusted.
9735         * s390-linux-nat.c: All implementations adjusted.
9736         * sol-thread.c: All implementations adjusted.
9737         * spu-multiarch.c: All implementations adjusted.
9738         * target-delegates.c: All implementations adjusted.
9739         * target.c: All implementations adjusted.
9740         * target.h: All implementations adjusted.
9741         * tracefile-tfile.c: All implementations adjusted.
9742         * tracefile.c: All implementations adjusted.
9743         * tracefile.h: All implementations adjusted.
9744         * windows-nat.c: All implementations adjusted.
9745         * x86-linux-nat.h: All implementations adjusted.
9746         * x86-nat.h: All implementations adjusted.
9747
9748 2018-05-02  Pedro Alves  <palves@redhat.com>
9749
9750         * make-target-delegates (scan_target_h): Don't trim lines here.
9751         Replace sequences of tabs and/or whitespace with a single
9752         whitespace.
9753         (top level, parsing methods): Trim each line before processing it
9754         here.
9755
9756 2018-05-02  Pedro Alves  <palves@redhat.com>
9757             John Baldwin  <jhb@freebsd.org>
9758
9759         * target.h (enum strata) <debug_stratum>: New.
9760         (struct target_ops) <all delegation methods>: Replace by C++
9761         virtual methods, and drop "to_" prefix.  All references updated
9762         throughout.
9763         <to_shortname, to_longname, to_doc, to_data,
9764         to_have_steppable_watchpoint, to_have_continuable_watchpoint,
9765         to_has_thread_control, to_attach_no_wait>: Delete, replaced by
9766         virtual methods.  All references updated throughout.
9767         <can_attach, supports_terminal_ours, can_create_inferior,
9768         get_thread_control_capabilities, attach_no_wait>: New
9769         virtual methods.
9770         <insert_breakpoint, remove_breakpoint>: Now
9771         TARGET_DEFAULT_NORETURN methods.
9772         <info_proc>: Now returns bool.
9773         <to_magic>: Delete.
9774         (OPS_MAGIC): Delete.
9775         (current_target): Delete.  All references replaced by references
9776         to ...
9777         (target_stack): ... this.  New.
9778         (target_shortname, target_longname): Adjust.
9779         (target_can_run): Now a function declaration.
9780         (default_child_has_all_memory, default_child_has_memory)
9781         (default_child_has_stack, default_child_has_registers)
9782         (default_child_has_execution): Remove target_ops parameter.
9783         (complete_target_initialization): Delete.
9784         (memory_breakpoint_target): New template class.
9785         (test_target_ops): Refactor as a C++ class with virtual methods.
9786         * make-target-delegates (NAME_PART): Tighten.
9787         (POINTER_PART, CP_SYMBOL): New.
9788         (SIMPLE_RETURN_PART): Reimplement.
9789         (VEC_RETURN_PART): Expect less.
9790         (RETURN_PART, VIRTUAL_PART): New.
9791         (METHOD): Adjust to C++ virtual methods.
9792         (scan_target_h): Remove reference to C99.
9793         (dname): Output "target_ops::" prefix.
9794         (write_function_header): Adjust to output a C++ class method.
9795         (write_declaration): New.
9796         (write_delegator): Adjust to output a C++ class method.
9797         (tdname): Output "dummy_target::" prefix.
9798         (write_tdefault, write_debugmethod): Adjust to output a C++ class
9799         method.
9800         (tdefault_names, debug_names): Delete.
9801         (return_types, tdefaults, styles, argtypes_array): New.
9802         (top level): All methods are delegators.
9803         (print_class): New.
9804         (top level): Print dummy_target and debug_target classes.
9805         * target-delegates.c: Regenerate.
9806         * target-debug.h (target_debug_print_enum_info_proc_what)
9807         (target_debug_print_thread_control_capabilities)
9808         (target_debug_print_thread_info_p): New.
9809         * target.c (dummy_target): Delete.
9810         (the_dummy_target, the_debug_target): New.
9811         (target_stack): Now extern.
9812         (set_targetdebug): Push/unpush debug target.
9813         (default_child_has_all_memory, default_child_has_memory)
9814         (default_child_has_stack, default_child_has_registers)
9815         (default_child_has_execution): Remove target_ops parameter.
9816         (complete_target_initialization): Delete.
9817         (add_target_with_completer): No longer call
9818         complete_target_initialization.
9819         (target_supports_terminal_ours): Use regular delegation.
9820         (update_current_target): Delete.
9821         (push_target): No longer check magic number.  Don't call
9822         update_current_target.
9823         (unpush_target): Don't call update_current_target.
9824         (target_is_pushed): No longer check magic number.
9825         (target_require_runnable): Skip for all stratums over
9826         process_stratum.
9827         (target_ops::info_proc): New.
9828         (target_info_proc): Use find_target_at and
9829         find_default_run_target.
9830         (target_supports_disable_randomization): Use regular delegation.
9831         (target_get_osdata): Use find_target_at.
9832         (target_ops::open, target_ops::close, target_ops::can_attach)
9833         (target_ops::attach, target_ops::can_create_inferior)
9834         (target_ops::create_inferior, target_ops::can_run)
9835         (target_can_run): New.
9836         (default_fileio_target): Use regular delegation.
9837         (target_ops::fileio_open, target_ops::fileio_pwrite)
9838         (target_ops::fileio_pread, target_ops::fileio_fstat)
9839         (target_ops::fileio_close, target_ops::fileio_unlink)
9840         (target_ops::fileio_readlink): New.
9841         (target_fileio_open_1, target_fileio_unlink)
9842         (target_fileio_readlink): Always call the target method.  Handle
9843         FILEIO_ENOSYS.
9844         (return_zero, return_zero_has_execution): Delete.
9845         (init_dummy_target): Delete.
9846         (dummy_target::dummy_target, dummy_target::shortname)
9847         (dummy_target::longname, dummy_target::doc)
9848         (debug_target::debug_target, debug_target::shortname)
9849         (debug_target::longname, debug_target::doc): New.
9850         (target_supports_delete_record): Use regular delegation.
9851         (setup_target_debug): Delete.
9852         (maintenance_print_target_stack): Skip debug_stratum.
9853         (initialize_targets): Instantiate the_dummy_target and
9854         the_debug_target.
9855         * auxv.c (target_auxv_parse): Remove 'ops' parameter.  Adjust to
9856         use target_stack.
9857         (target_auxv_search, fprint_target_auxv): Adjust.
9858         (info_auxv_command): Adjust to use target_stack.
9859         * auxv.h (target_auxv_parse): Remove 'ops' parameter.
9860         * exceptions.c (print_flush): Handle a NULL target_stack.
9861         * regcache.c (target_ops_no_register): Refactor as class with
9862         virtual methods.
9863
9864         * exec.c (exec_target): New class.
9865         (exec_ops): Now an exec_target.
9866         (exec_open, exec_close_1, exec_get_section_table)
9867         (exec_xfer_partial, exec_files_info, exec_has_memory)
9868         (exec_make_note_section): Refactor as exec_target methods.
9869         (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
9870         Delete.
9871         (exec_target::find_memory_regions): New.
9872         (_initialize_exec): Don't call init_exec_ops.
9873         * gdbcore.h (exec_file_clear): Delete.
9874
9875         * corefile.c (core_target): Delete.
9876         (core_file_command): Adjust.
9877         * corelow.c (core_target): New class.
9878         (the_core_target): New.
9879         (core_close): Remove target_ops parameter.
9880         (core_close_cleanup): Adjust.
9881         (core_target::close): New.
9882         (core_open, core_detach, get_core_registers, core_files_info)
9883         (core_xfer_partial, core_thread_alive, core_read_description)
9884         (core_pid_to_str, core_thread_name, core_has_memory)
9885         (core_has_stack, core_has_registers, core_info_proc): Rework as
9886         core_target methods.
9887         (ignore, core_remove_breakpoint, init_core_ops): Delete.
9888         (_initialize_corelow): Initialize the_core_target.
9889         * gdbcore.h (core_target): Delete.
9890         (the_core_target): New.
9891
9892         * ctf.c: (ctf_target): New class.
9893         (ctf_ops): Now a ctf_target.
9894         (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
9895         (ctf_xfer_partial, ctf_get_trace_state_variable_value)
9896         (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
9897         methods.
9898         (init_ctf_ops): Delete.
9899         (_initialize_ctf): Don't call it.
9900         * tracefile-tfile.c (tfile_target): New class.
9901         (tfile_ops): Now a tfile_target.
9902         (tfile_open, tfile_close, tfile_files_info)
9903         (tfile_get_tracepoint_status, tfile_trace_find)
9904         (tfile_fetch_registers, tfile_xfer_partial)
9905         (tfile_get_trace_state_variable_value, tfile_traceframe_info):
9906         Refactor as tfile_target methods.
9907         (tfile_xfer_partial_features): Remove target_ops parameter.
9908         (init_tfile_ops): Delete.
9909         (_initialize_tracefile_tfile): Don't call it.
9910         * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
9911         (tracefile_has_stack, tracefile_has_registers)
9912         (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
9913         tracefile_target methods.
9914         (init_tracefile_ops): Delete.
9915         (tracefile_target::tracefile_target): New.
9916         * tracefile.h: Include "target.h".
9917         (tracefile_target): New class.
9918         (init_tracefile_ops): Delete.
9919
9920         * spu-multiarch.c (spu_multiarch_target): New class.
9921         (spu_ops): Now a spu_multiarch_target.
9922         (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
9923         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
9924         (spu_search_memory, spu_mourn_inferior): Refactor as
9925         spu_multiarch_target methods.
9926         (init_spu_ops): Delete.
9927         (_initialize_spu_multiarch): Remove references to init_spu_ops,
9928         complete_target_initialization.
9929
9930         * ravenscar-thread.c (ravenscar_thread_target): New class.
9931         (ravenscar_ops): Now a ravenscar_thread_target.
9932         (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
9933         (ravenscar_thread_alive, ravenscar_pid_to_str)
9934         (ravenscar_fetch_registers, ravenscar_store_registers)
9935         (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
9936         (ravenscar_stopped_by_hw_breakpoint)
9937         (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
9938         (ravenscar_mourn_inferior, ravenscar_core_of_thread)
9939         (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
9940         methods.
9941         (init_ravenscar_thread_ops): Delete.
9942         (_initialize_ravenscar): Remove references to
9943         init_ravenscar_thread_ops and complete_target_initialization.
9944
9945         * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
9946         (bsd_uthread_target): New class.
9947         (bsd_uthread_ops): Now a bsd_uthread_target.
9948         (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
9949         (bsd_uthread_close, bsd_uthread_mourn_inferior)
9950         (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
9951         (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
9952         (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
9953         (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
9954         (bsd_uthread_target): Delete function.
9955         (_initialize_bsd_uthread): Remove reference to
9956         complete_target_initialization.
9957
9958         * bfd-target.c (target_bfd_data): Delete.  Fields folded into ...
9959         (target_bfd): ... this new class.
9960         (target_bfd_xfer_partial, target_bfd_get_section_table)
9961         (target_bfd_close): Refactor as target_bfd methods.
9962         (target_bfd::~target_bfd): New.
9963         (target_bfd_reopen): Adjust.
9964         (target_bfd::close): New.
9965
9966         * record-btrace.c (record_btrace_target): New class.
9967         (record_btrace_ops): Now a record_btrace_target.
9968         (record_btrace_open, record_btrace_stop_recording)
9969         (record_btrace_disconnect, record_btrace_close)
9970         (record_btrace_async, record_btrace_info)
9971         (record_btrace_insn_history, record_btrace_insn_history_range)
9972         (record_btrace_insn_history_from, record_btrace_call_history)
9973         (record_btrace_call_history_range)
9974         (record_btrace_call_history_from, record_btrace_record_method)
9975         (record_btrace_is_replaying, record_btrace_will_replay)
9976         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
9977         (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
9978         (record_btrace_store_registers, record_btrace_prepare_to_store)
9979         (record_btrace_to_get_unwinder)
9980         (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
9981         (record_btrace_commit_resume, record_btrace_wait)
9982         (record_btrace_stop, record_btrace_can_execute_reverse)
9983         (record_btrace_stopped_by_sw_breakpoint)
9984         (record_btrace_supports_stopped_by_sw_breakpoint)
9985         (record_btrace_stopped_by_hw_breakpoint)
9986         (record_btrace_supports_stopped_by_hw_breakpoint)
9987         (record_btrace_update_thread_list, record_btrace_thread_alive)
9988         (record_btrace_goto_begin, record_btrace_goto_end)
9989         (record_btrace_goto, record_btrace_stop_replaying_all)
9990         (record_btrace_execution_direction)
9991         (record_btrace_prepare_to_generate_core)
9992         (record_btrace_done_generating_core): Refactor as
9993         record_btrace_target methods.
9994         (init_record_btrace_ops): Delete.
9995         (_initialize_record_btrace): Remove reference to
9996         init_record_btrace_ops.
9997         * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9998         the execution_direction global.
9999         (record_full_base_target, record_full_target)
10000         (record_full_core_target): New classes.
10001         (record_full_ops): Now a record_full_target.
10002         (record_full_core_ops): Now a record_full_core_target.
10003         (record_full_target::detach, record_full_target::disconnect)
10004         (record_full_core_target::disconnect)
10005         (record_full_target::mourn_inferior, record_full_target::kill):
10006         New.
10007         (record_full_open, record_full_close, record_full_async): Refactor
10008         as methods of the record_full_base_target class.
10009         (record_full_resume, record_full_commit_resume): Refactor
10010         as methods of the record_full_target class.
10011         (record_full_wait, record_full_stopped_by_watchpoint)
10012         (record_full_stopped_data_address)
10013         (record_full_stopped_by_sw_breakpoint)
10014         (record_full_supports_stopped_by_sw_breakpoint)
10015         (record_full_stopped_by_hw_breakpoint)
10016         (record_full_supports_stopped_by_hw_breakpoint): Refactor as
10017         methods of the record_full_base_target class.
10018         (record_full_store_registers, record_full_xfer_partial)
10019         (record_full_insert_breakpoint, record_full_remove_breakpoint):
10020         Refactor as methods of the record_full_target class.
10021         (record_full_can_execute_reverse, record_full_get_bookmark)
10022         (record_full_goto_bookmark, record_full_execution_direction)
10023         (record_full_record_method, record_full_info, record_full_delete)
10024         (record_full_is_replaying, record_full_will_replay)
10025         (record_full_goto_begin, record_full_goto_end, record_full_goto)
10026         (record_full_stop_replaying): Refactor as methods of the
10027         record_full_base_target class.
10028         (record_full_core_resume, record_full_core_kill)
10029         (record_full_core_fetch_registers)
10030         (record_full_core_prepare_to_store)
10031         (record_full_core_store_registers, record_full_core_xfer_partial)
10032         (record_full_core_insert_breakpoint)
10033         (record_full_core_remove_breakpoint)
10034         (record_full_core_has_execution): Refactor
10035         as methods of the record_full_core_target class.
10036         (record_full_base_target::supports_delete_record): New.
10037         (init_record_full_ops): Delete.
10038         (init_record_full_core_ops): Delete.
10039         (record_full_save): Refactor as method of the
10040         record_full_base_target class.
10041         (_initialize_record_full): Remove references to
10042         init_record_full_ops and init_record_full_core_ops.
10043
10044         * remote.c (remote_target, extended_remote_target): New classes.
10045         (remote_ops): Now a remote_target.
10046         (extended_remote_ops): Now an extended_remote_target.
10047         (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
10048         (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
10049         (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
10050         (remote_pass_signals, remote_set_syscall_catchpoint)
10051         (remote_program_signals, )
10052         (remote_thread_always_alive): Remove target_ops parameter.
10053         (remote_thread_alive, remote_thread_name)
10054         (remote_update_thread_list, remote_threads_extra_info)
10055         (remote_static_tracepoint_marker_at)
10056         (remote_static_tracepoint_markers_by_strid)
10057         (remote_get_ada_task_ptid, remote_close, remote_start_remote)
10058         (remote_open): Refactor as methods of remote_target.
10059         (extended_remote_open, extended_remote_detach)
10060         (extended_remote_attach, extended_remote_post_attach):
10061         (extended_remote_supports_disable_randomization)
10062         (extended_remote_create_inferior): : Refactor as method of
10063         extended_remote_target.
10064         (remote_set_permissions, remote_open_1, remote_detach)
10065         (remote_follow_fork, remote_follow_exec, remote_disconnect)
10066         (remote_resume, remote_commit_resume, remote_stop)
10067         (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
10068         (remote_terminal_ours, remote_wait, remote_fetch_registers)
10069         (remote_prepare_to_store, remote_store_registers)
10070         (remote_flash_erase, remote_flash_done, remote_files_info)
10071         (remote_kill, remote_mourn, remote_insert_breakpoint)
10072         (remote_remove_breakpoint, remote_insert_watchpoint)
10073         (remote_watchpoint_addr_within_range)
10074         (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
10075         (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
10076         (remote_supports_stopped_by_sw_breakpoint)
10077         (remote_stopped_by_hw_breakpoint)
10078         (remote_supports_stopped_by_hw_breakpoint)
10079         (remote_stopped_by_watchpoint, remote_stopped_data_address)
10080         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
10081         (remote_verify_memory): Refactor as methods of remote_target.
10082         (remote_write_qxfer, remote_read_qxfer): Remove target_ops
10083         parameter.
10084         (remote_xfer_partial, remote_get_memory_xfer_limit)
10085         (remote_search_memory, remote_rcmd, remote_memory_map)
10086         (remote_pid_to_str, remote_get_thread_local_address)
10087         (remote_get_tib_address, remote_read_description): Refactor as
10088         methods of remote_target.
10089         (remote_target::fileio_open, remote_target::fileio_pwrite)
10090         (remote_target::fileio_pread, remote_target::fileio_close): New.
10091         (remote_hostio_readlink, remote_hostio_fstat)
10092         (remote_filesystem_is_local, remote_can_execute_reverse)
10093         (remote_supports_non_stop, remote_supports_disable_randomization)
10094         (remote_supports_multi_process, remote_supports_cond_breakpoints)
10095         (remote_supports_enable_disable_tracepoint)
10096         (remote_supports_string_tracing)
10097         (remote_can_run_breakpoint_commands, remote_trace_init)
10098         (remote_download_tracepoint, remote_can_download_tracepoint)
10099         (remote_download_trace_state_variable, remote_enable_tracepoint)
10100         (remote_disable_tracepoint, remote_trace_set_readonly_regions)
10101         (remote_trace_start, remote_get_trace_status)
10102         (remote_get_tracepoint_status, remote_trace_stop)
10103         (remote_trace_find, remote_get_trace_state_variable_value)
10104         (remote_save_trace_data, remote_get_raw_trace_data)
10105         (remote_set_disconnected_tracing, remote_core_of_thread)
10106         (remote_set_circular_trace_buffer, remote_traceframe_info)
10107         (remote_get_min_fast_tracepoint_insn_len)
10108         (remote_set_trace_buffer_size, remote_set_trace_notes)
10109         (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
10110         (remote_disable_btrace, remote_teardown_btrace)
10111         (remote_read_btrace, remote_btrace_conf)
10112         (remote_augmented_libraries_svr4_read, remote_load)
10113         (remote_pid_to_exec_file, remote_can_do_single_step)
10114         (remote_execution_direction, remote_thread_handle_to_thread_info):
10115         Refactor as methods of remote_target.
10116         (init_remote_ops, init_extended_remote_ops): Delete.
10117         (remote_can_async_p, remote_is_async_p, remote_async)
10118         (remote_thread_events, remote_upload_tracepoints)
10119         (remote_upload_trace_state_variables): Refactor as methods of
10120         remote_target.
10121         (_initialize_remote): Remove references to init_remote_ops and
10122         init_extended_remote_ops.
10123
10124         * remote-sim.c (gdbsim_target): New class.
10125         (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
10126         (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
10127         (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
10128         (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
10129         (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
10130         (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
10131         Refactor as methods of gdbsim_target.
10132         (gdbsim_ops): Now a gdbsim_target.
10133         (init_gdbsim_ops): Delete.
10134         (gdbsim_cntrl_c): Adjust.
10135         (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
10136
10137         * amd64-linux-nat.c (amd64_linux_nat_target): New class.
10138         (the_amd64_linux_nat_target): New.
10139         (amd64_linux_fetch_inferior_registers)
10140         (amd64_linux_store_inferior_registers): Refactor as methods of
10141         amd64_linux_nat_target.
10142         (_initialize_amd64_linux_nat): Adjust.  Set linux_target.
10143         * i386-linux-nat.c: Don't include "linux-nat.h".
10144         (i386_linux_nat_target): New class.
10145         (the_i386_linux_nat_target): New.
10146         (i386_linux_fetch_inferior_registers)
10147         (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
10148         as methods of i386_linux_nat_target.
10149         (_initialize_i386_linux_nat): Adjust.  Set linux_target.
10150         * inf-child.c (inf_child_ops): Delete.
10151         (inf_child_fetch_inferior_registers)
10152         (inf_child_store_inferior_registers): Delete.
10153         (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
10154         methods of inf_child_target.
10155         (inf_child_target::supports_terminal_ours)
10156         (inf_child_target::terminal_init)
10157         (inf_child_target::terminal_inferior)
10158         (inf_child_target::terminal_ours_for_output)
10159         (inf_child_target::terminal_ours, inf_child_target::interrupt)
10160         (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
10161         New.
10162         (inf_child_open, inf_child_disconnect, inf_child_close)
10163         (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
10164         (inf_child_post_startup_inferior, inf_child_can_run)
10165         (inf_child_pid_to_exec_file): Refactor as methods of
10166         inf_child_target.
10167         (inf_child_follow_fork): Delete.
10168         (inf_child_target::can_create_inferior)
10169         (inf_child_target::can_attach): New.
10170         (inf_child_target::has_all_memory, inf_child_target::has_memory)
10171         (inf_child_target::has_stack, inf_child_target::has_registers)
10172         (inf_child_target::has_execution): New.
10173         (inf_child_fileio_open, inf_child_fileio_pwrite)
10174         (inf_child_fileio_pread, inf_child_fileio_fstat)
10175         (inf_child_fileio_close, inf_child_fileio_unlink)
10176         (inf_child_fileio_readlink, inf_child_use_agent)
10177         (inf_child_can_use_agent): Refactor as methods of
10178         inf_child_target.
10179         (return_zero, inf_child_target): Delete.
10180         (inf_child_target::inf_child_target): New.
10181         * inf-child.h: Include "target.h".
10182         (inf_child_target): Delete function prototype.
10183         (inf_child_target): New class.
10184         (inf_child_open_target, inf_child_mourn_inferior)
10185         (inf_child_maybe_unpush_target): Delete.
10186         * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
10187         (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
10188         (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
10189         (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
10190         (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
10191         (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
10192         (inf_ptrace_wait, inf_ptrace_xfer_partial)
10193         (inf_ptrace_thread_alive, inf_ptrace_files_info)
10194         (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
10195         methods of inf_ptrace_target.
10196         (inf_ptrace_target): Delete function.
10197         * inf-ptrace.h: Include "inf-child.h".
10198         (inf_ptrace_target): Delete function declaration.
10199         (inf_ptrace_target): New class.
10200         (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
10201         * linux-nat.c (linux_target): New.
10202         (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
10203         (linux_nat_target::~linux_nat_target): New.
10204         (linux_child_post_attach, linux_child_post_startup_inferior)
10205         (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
10206         (linux_child_remove_fork_catchpoint)
10207         (linux_child_insert_vfork_catchpoint)
10208         (linux_child_remove_vfork_catchpoint)
10209         (linux_child_insert_exec_catchpoint)
10210         (linux_child_remove_exec_catchpoint)
10211         (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
10212         (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
10213         (linux_nat_resume, linux_nat_stopped_by_watchpoint)
10214         (linux_nat_stopped_data_address)
10215         (linux_nat_stopped_by_sw_breakpoint)
10216         (linux_nat_supports_stopped_by_sw_breakpoint)
10217         (linux_nat_stopped_by_hw_breakpoint)
10218         (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
10219         (linux_nat_kill, linux_nat_mourn_inferior)
10220         (linux_nat_xfer_partial, linux_nat_thread_alive)
10221         (linux_nat_update_thread_list, linux_nat_pid_to_str)
10222         (linux_nat_thread_name, linux_child_pid_to_exec_file)
10223         (linux_child_static_tracepoint_markers_by_strid)
10224         (linux_nat_is_async_p, linux_nat_can_async_p)
10225         (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
10226         (linux_nat_supports_multi_process)
10227         (linux_nat_supports_disable_randomization, linux_nat_async)
10228         (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
10229         (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
10230         (linux_nat_fileio_open, linux_nat_fileio_readlink)
10231         (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
10232         methods of linux_nat_target.
10233         (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
10234         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
10235         parameter.
10236         (check_stopped_by_watchpoint): Adjust.
10237         (linux_xfer_partial): Delete.
10238         (linux_target_install_ops, linux_target, linux_nat_add_target):
10239         Delete.
10240         (linux_nat_target::linux_nat_target): New.
10241         * linux-nat.h: Include "inf-ptrace.h".
10242         (linux_nat_target): New.
10243         (linux_target, linux_target_install_ops, linux_nat_add_target):
10244         Delete function declarations.
10245         (linux_target): Declare global.
10246         * linux-thread-db.c (thread_db_target): New.
10247         (thread_db_target::thread_db_target): New.
10248         (thread_db_ops): Delete.
10249         (the_thread_db_target): New.
10250         (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
10251         (thread_db_update_thread_list, thread_db_pid_to_str)
10252         (thread_db_extra_thread_info)
10253         (thread_db_thread_handle_to_thread_info)
10254         (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
10255         (thread_db_resume): Refactor as methods of thread_db_target.
10256         (init_thread_db_ops): Delete.
10257         (_initialize_thread_db): Remove reference to init_thread_db_ops.
10258         * x86-linux-nat.c: Don't include "linux-nat.h".
10259         (super_post_startup_inferior): Delete.
10260         (x86_linux_nat_target::~x86_linux_nat_target): New.
10261         (x86_linux_child_post_startup_inferior)
10262         (x86_linux_read_description, x86_linux_enable_btrace)
10263         (x86_linux_disable_btrace, x86_linux_teardown_btrace)
10264         (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
10265         methods of x86_linux_nat_target.
10266         (x86_linux_create_target): Delete.  Bits folded ...
10267         (x86_linux_add_target): ... here.  Now takes a linux_nat_target
10268         pointer.
10269         * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
10270         (x86_linux_nat_target): New class.
10271         (x86_linux_create_target): Delete.
10272         (x86_linux_add_target): Now takes a linux_nat_target pointer.
10273         * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
10274         (x86_region_ok_for_watchpoint, x86_stopped_data_address)
10275         (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
10276         (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
10277         (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
10278         make extern.
10279         (x86_use_watchpoints): Delete.
10280         * x86-nat.h: Include "breakpoint.h" and "target.h".
10281         (x86_use_watchpoints): Delete.
10282         (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
10283         (x86_stopped_by_watchpoint, x86_stopped_data_address)
10284         (x86_insert_watchpoint, x86_remove_watchpoint)
10285         (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
10286         (x86_stopped_by_hw_breakpoint): New declarations.
10287         (x86_nat_target): New template class.
10288
10289         * ppc-linux-nat.c (ppc_linux_nat_target): New class.
10290         (the_ppc_linux_nat_target): New.
10291         (ppc_linux_fetch_inferior_registers)
10292         (ppc_linux_can_use_hw_breakpoint)
10293         (ppc_linux_region_ok_for_hw_watchpoint)
10294         (ppc_linux_ranged_break_num_registers)
10295         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
10296         (ppc_linux_insert_mask_watchpoint)
10297         (ppc_linux_remove_mask_watchpoint)
10298         (ppc_linux_can_accel_watchpoint_condition)
10299         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
10300         (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
10301         (ppc_linux_watchpoint_addr_within_range)
10302         (ppc_linux_masked_watch_num_registers)
10303         (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
10304         (ppc_linux_read_description): Refactor as methods of
10305         ppc_linux_nat_target.
10306         (_initialize_ppc_linux_nat): Adjust.  Set linux_target.
10307
10308         * procfs.c (procfs_xfer_partial): Delete forward declaration.
10309         (procfs_target): New class.
10310         (the_procfs_target): New.
10311         (procfs_target): Delete function.
10312         (procfs_auxv_parse, procfs_attach, procfs_detach)
10313         (procfs_fetch_registers, procfs_store_registers, procfs_wait)
10314         (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
10315         (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
10316         (procfs_create_inferior, procfs_update_thread_list)
10317         (procfs_thread_alive, procfs_pid_to_str)
10318         (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
10319         (procfs_stopped_data_address, procfs_insert_watchpoint)
10320         (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
10321         (proc_find_memory_regions, procfs_info_proc)
10322         (procfs_make_note_section): Refactor as methods of procfs_target.
10323         (_initialize_procfs): Adjust.
10324         * sol-thread.c (sol_thread_target): New class.
10325         (sol_thread_ops): Now a sol_thread_target.
10326         (sol_thread_detach, sol_thread_resume, sol_thread_wait)
10327         (sol_thread_fetch_registers, sol_thread_store_registers)
10328         (sol_thread_xfer_partial, sol_thread_mourn_inferior)
10329         (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
10330         (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
10331         (init_sol_thread_ops): Delete.
10332         (_initialize_sol_thread): Adjust.  Remove references to
10333         init_sol_thread_ops and complete_target_initialization.
10334
10335         * windows-nat.c (windows_nat_target): New class.
10336         (windows_fetch_inferior_registers)
10337         (windows_store_inferior_registers, windows_resume, windows_wait)
10338         (windows_attach, windows_detach, windows_pid_to_exec_file)
10339         (windows_files_info, windows_create_inferior)
10340         (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
10341         (windows_close, windows_pid_to_str, windows_xfer_partial)
10342         (windows_get_tib_address, windows_get_ada_task_ptid)
10343         (windows_thread_name, windows_thread_alive): Refactor as
10344         windows_nat_target methods.
10345         (do_initial_windows_stuff): Adjust.
10346         (windows_target): Delete function.
10347         (_initialize_windows_nat): Adjust.
10348
10349         * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
10350         (darwin_mourn_inferior, darwin_kill_inferior)
10351         (darwin_create_inferior, darwin_attach, darwin_detach)
10352         (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
10353         (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
10354         (darwin_supports_multi_process): Refactor as darwin_nat_target
10355         methods.
10356         (darwin_resume_to, darwin_files_info): Delete.
10357         (_initialize_darwin_inferior): Rename to ...
10358         (_initialize_darwin_nat): ... this.  Adjust to C++ification.
10359         * darwin-nat.h: Include "inf-child.h".
10360         (darwin_nat_target): New class.
10361         (darwin_complete_target): Delete.
10362         * i386-darwin-nat.c (i386_darwin_nat_target): New class.
10363         (darwin_target): New.
10364         (i386_darwin_fetch_inferior_registers)
10365         (i386_darwin_store_inferior_registers): Refactor as methods of
10366         darwin_nat_target.
10367         (darwin_complete_target): Delete, with ...
10368         (_initialize_i386_darwin_nat): ... bits factored out here.
10369
10370         * alpha-linux-nat.c (alpha_linux_nat_target): New class.
10371         (the_alpha_linux_nat_target): New.
10372         (alpha_linux_register_u_offset): Refactor as
10373         alpha_linux_nat_target method.
10374         (_initialize_alpha_linux_nat): Adjust.
10375         * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
10376         (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10377         (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
10378         methods of linux_nat_trad_target.
10379         (linux_trad_target): Delete.
10380         * linux-nat-trad.h (linux_trad_target): Delete function.
10381         (linux_nat_trad_target): New class.
10382         * mips-linux-nat.c (mips_linux_nat_target): New class.
10383         (super_fetch_registers, super_store_registers, super_close):
10384         Delete.
10385         (the_mips_linux_nat_target): New.
10386         (mips64_linux_regsets_fetch_registers)
10387         (mips64_linux_regsets_store_registers)
10388         (mips64_linux_fetch_registers, mips64_linux_store_registers)
10389         (mips_linux_register_u_offset, mips_linux_read_description)
10390         (mips_linux_can_use_hw_breakpoint)
10391         (mips_linux_stopped_by_watchpoint)
10392         (mips_linux_stopped_data_address)
10393         (mips_linux_region_ok_for_hw_watchpoint)
10394         (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
10395         (mips_linux_close): Refactor as methods of mips_linux_nat.
10396         (_initialize_mips_linux_nat): Adjust to C++ification.
10397
10398         * aix-thread.c (aix_thread_target): New class.
10399         (aix_thread_ops): Now an aix_thread_target.
10400         (aix_thread_detach, aix_thread_resume, aix_thread_wait)
10401         (aix_thread_fetch_registers, aix_thread_store_registers)
10402         (aix_thread_xfer_partial, aix_thread_mourn_inferior)
10403         (aix_thread_thread_alive, aix_thread_pid_to_str)
10404         (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
10405         Refactor as methods of aix_thread_target.
10406         (init_aix_thread_ops): Delete.
10407         (_initialize_aix_thread): Remove references to init_aix_thread_ops
10408         and complete_target_initialization.
10409         * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
10410         (rs6000_nat_target): New class.
10411         (the_rs6000_nat_target): New.
10412         (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
10413         (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
10414         (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
10415         (super_create_inferior): Delete.
10416         (_initialize_rs6000_nat): Adjust to C++ification.
10417
10418         * arm-linux-nat.c (arm_linux_nat_target): New class.
10419         (the_arm_linux_nat_target): New.
10420         (arm_linux_fetch_inferior_registers)
10421         (arm_linux_store_inferior_registers, arm_linux_read_description)
10422         (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
10423         (arm_linux_remove_hw_breakpoint)
10424         (arm_linux_region_ok_for_hw_watchpoint)
10425         (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
10426         (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
10427         (arm_linux_watchpoint_addr_within_range): Refactor as methods of
10428         arm_linux_nat_target.
10429         (_initialize_arm_linux_nat): Adjust to C++ification.
10430
10431         * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
10432         (the_aarch64_linux_nat_target): New.
10433         (aarch64_linux_fetch_inferior_registers)
10434         (aarch64_linux_store_inferior_registers)
10435         (aarch64_linux_child_post_startup_inferior)
10436         (aarch64_linux_read_description)
10437         (aarch64_linux_can_use_hw_breakpoint)
10438         (aarch64_linux_insert_hw_breakpoint)
10439         (aarch64_linux_remove_hw_breakpoint)
10440         (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
10441         (aarch64_linux_region_ok_for_hw_watchpoint)
10442         (aarch64_linux_stopped_data_address)
10443         (aarch64_linux_stopped_by_watchpoint)
10444         (aarch64_linux_watchpoint_addr_within_range)
10445         (aarch64_linux_can_do_single_step): Refactor as methods of
10446         aarch64_linux_nat_target.
10447         (super_post_startup_inferior): Delete.
10448         (_initialize_aarch64_linux_nat): Adjust to C++ification.
10449
10450         * hppa-linux-nat.c (hppa_linux_nat_target): New class.
10451         (the_hppa_linux_nat_target): New.
10452         (hppa_linux_fetch_inferior_registers)
10453         (hppa_linux_store_inferior_registers): Refactor as methods of
10454         hppa_linux_nat_target.
10455         (_initialize_hppa_linux_nat): Adjust to C++ification.
10456
10457         * ia64-linux-nat.c (ia64_linux_nat_target): New class.
10458         (the_ia64_linux_nat_target): New.
10459         (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
10460         (ia64_linux_stopped_data_address)
10461         (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
10462         (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
10463         ia64_linux_nat_target methods.
10464         (super_xfer_partial): Delete.
10465         (_initialize_ia64_linux_nat): Adjust to C++ification.
10466
10467         * m32r-linux-nat.c (m32r_linux_nat_target): New class.
10468         (the_m32r_linux_nat_target): New.
10469         (m32r_linux_fetch_inferior_registers)
10470         (m32r_linux_store_inferior_registers): Refactor as
10471         m32r_linux_nat_target methods.
10472         (_initialize_m32r_linux_nat): Adjust to C++ification.
10473
10474         * m68k-linux-nat.c (m68k_linux_nat_target): New class.
10475         (the_m68k_linux_nat_target): New.
10476         (m68k_linux_fetch_inferior_registers)
10477         (m68k_linux_store_inferior_registers): Refactor as
10478         m68k_linux_nat_target methods.
10479         (_initialize_m68k_linux_nat): Adjust to C++ification.
10480
10481         * s390-linux-nat.c (s390_linux_nat_target): New class.
10482         (the_s390_linux_nat_target): New.
10483         (s390_linux_fetch_inferior_registers)
10484         (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
10485         (s390_insert_watchpoint, s390_remove_watchpoint)
10486         (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
10487         (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
10488         (s390_auxv_parse, s390_read_description): Refactor as methods of
10489         s390_linux_nat_target.
10490         (_initialize_s390_nat): Adjust to C++ification.
10491
10492         * sparc-linux-nat.c (sparc_linux_nat_target): New class.
10493         (the_sparc_linux_nat_target): New.
10494         (_initialize_sparc_linux_nat): Adjust to C++ification.
10495         * sparc-nat.c (sparc_fetch_inferior_registers)
10496         (sparc_store_inferior_registers): Remove target_ops parameter.
10497         * sparc-nat.h (sparc_fetch_inferior_registers)
10498         (sparc_store_inferior_registers): Remove target_ops parameter.
10499         * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
10500         (the_sparc64_linux_nat_target): New.
10501         (_initialize_sparc64_linux_nat): Adjust to C++ification.
10502
10503         * spu-linux-nat.c (spu_linux_nat_target): New class.
10504         (the_spu_linux_nat_target): New.
10505         (spu_child_post_startup_inferior, spu_child_post_attach)
10506         (spu_child_wait, spu_fetch_inferior_registers)
10507         (spu_store_inferior_registers, spu_xfer_partial)
10508         (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
10509         methods.
10510         (_initialize_spu_nat): Adjust to C++ification.
10511
10512         * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
10513         (the_tilegx_linux_nat_target): New.
10514         (fetch_inferior_registers, store_inferior_registers):
10515         Refactor as methods.
10516         (_initialize_tile_linux_nat): Adjust to C++ification.
10517
10518         * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
10519         (the_xtensa_linux_nat_target): New.
10520         (xtensa_linux_fetch_inferior_registers)
10521         (xtensa_linux_store_inferior_registers): Refactor as
10522         xtensa_linux_nat_target methods.
10523         (_initialize_xtensa_linux_nat): Adjust to C++ification.
10524
10525         * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
10526         (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
10527         (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
10528         (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
10529         (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
10530         (fbsd_stopped_by_sw_breakpoint)
10531         (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
10532         (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
10533         (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
10534         (fbsd_post_startup_inferior, fbsd_post_attach)
10535         (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
10536         (fbsd_set_syscall_catchpoint)
10537         (super_xfer_partial, super_resume, super_wait)
10538         (fbsd_supports_stopped_by_hw_breakpoint): Delete.
10539         (fbsd_handle_debug_trap): Remove target_ops parameter.
10540         (fbsd_nat_add_target): Delete.
10541         * fbsd-nat.h: Include "inf-ptrace.h".
10542         (fbsd_nat_add_target): Delete.
10543         (USE_SIGTRAP_SIGINFO): Define.
10544         (fbsd_nat_target): New class.
10545
10546         * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
10547         (amd64bsd_store_inferior_registers): Remove target_ops parameter.
10548         (amd64bsd_target): Delete.
10549         * amd64-bsd-nat.h: New file.
10550         * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
10551         "x86-bsd-nat.h".
10552         (amd64_fbsd_nat_target): New class.
10553         (the_amd64_fbsd_nat_target): New.
10554         (amd64fbsd_read_description): Refactor as method of
10555         amd64_fbsd_nat_target.
10556         (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10557         (_initialize_amd64fbsd_nat): Adjust to C++ification.
10558         * amd64-nat.h (amd64bsd_target): Delete function declaration.
10559         * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
10560         (i386bsd_store_inferior_registers): Remove target_ops parameter.
10561         (i386bsd_target): Delete.
10562         * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
10563         (i386bsd_fetch_inferior_registers)
10564         (i386bsd_store_inferior_registers): Declare.
10565         (i386_bsd_nat_target): New class.
10566         * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
10567         (the_i386_fbsd_nat_target): New.
10568         (i386fbsd_resume, i386fbsd_read_description): Refactor as
10569         i386_fbsd_nat_target methods.
10570         (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10571         (_initialize_i386fbsd_nat): Adjust to C++ification.
10572         * x86-bsd-nat.c (super_mourn_inferior): Delete.
10573         (x86bsd_mourn_inferior, x86bsd_target): Delete.
10574         (_initialize_x86_bsd_nat): Adjust to C++ification.
10575         * x86-bsd-nat.h: Include "x86-nat.h".
10576         (x86bsd_target): Delete declaration.
10577         (x86bsd_nat_target): New class.
10578
10579         * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
10580         (the_aarch64_fbsd_nat_target): New.
10581         (aarch64_fbsd_fetch_inferior_registers)
10582         (aarch64_fbsd_store_inferior_registers): Refactor as methods of
10583         aarch64_fbsd_nat_target.
10584         (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
10585         * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
10586         (the_alpha_bsd_nat_target): New.
10587         (alphabsd_fetch_inferior_registers)
10588         (alphabsd_store_inferior_registers): Refactor as
10589         alpha_bsd_nat_target methods.
10590         (_initialize_alphabsd_nat): Refactor as methods of
10591         alpha_bsd_nat_target.
10592         * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
10593         (the_amd64_nbsd_nat_target): New.
10594         (_initialize_amd64nbsd_nat): Adjust to C++ification.
10595         * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
10596         (the_amd64_obsd_nat_target): New.
10597         (_initialize_amd64obsd_nat): Adjust to C++ification.
10598         * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
10599         (the_arm_fbsd_nat_target): New.
10600         (arm_fbsd_fetch_inferior_registers)
10601         (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
10602         (_initialize_arm_fbsd_nat): Refactor as methods of
10603         arm_fbsd_nat_target.
10604         (_initialize_arm_fbsd_nat): Adjust to C++ification.
10605         * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
10606         (the_arm_netbsd_nat_target): New.
10607         (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
10608         arm_netbsd_nat_target.
10609         (_initialize_arm_netbsd_nat): Adjust to C++ification.
10610         * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
10611         (the_hppa_nbsd_nat_target): New.
10612         (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
10613         hppa_nbsd_nat_target methods.
10614         (_initialize_hppanbsd_nat): Adjust to C++ification.
10615         * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
10616         (the_hppa_obsd_nat_target): New.
10617         (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
10618         methods of hppa_obsd_nat_target.
10619         (_initialize_hppaobsd_nat): Adjust to C++ification.  Use
10620         add_target.
10621         * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
10622         (_initialize_i386nbsd_nat): Adjust to C++ification.  Use
10623         add_target.
10624         * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
10625         (_initialize_i386obsd_nat): Use add_target.
10626         * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
10627         (the_m68k_bsd_nat_target): New.
10628         (m68kbsd_fetch_inferior_registers)
10629         (m68kbsd_store_inferior_registers): Refactor as methods of
10630         m68k_bsd_nat_target.
10631         (_initialize_m68kbsd_nat): Adjust to C++ification.
10632         * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
10633         (the_mips_fbsd_nat_target): New.
10634         (mips_fbsd_fetch_inferior_registers)
10635         (mips_fbsd_store_inferior_registers): Refactor as methods of
10636         mips_fbsd_nat_target.
10637         (_initialize_mips_fbsd_nat): Adjust to C++ification.  Use
10638         add_target.
10639         * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
10640         (the_mips_nbsd_nat_target): New.
10641         (mipsnbsd_fetch_inferior_registers)
10642         (mipsnbsd_store_inferior_registers): Refactor as methods of
10643         mips_nbsd_nat_target.
10644         (_initialize_mipsnbsd_nat): Adjust to C++ification.
10645         * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
10646         (the_mips64_obsd_nat_target): New.
10647         (mips64obsd_fetch_inferior_registers)
10648         (mips64obsd_store_inferior_registers): Refactor as methods of
10649         mips64_obsd_nat_target.
10650         (_initialize_mips64obsd_nat): Adjust to C++ification.  Use
10651         add_target.
10652         * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
10653         nbsd_nat_target.
10654         * nbsd-nat.h: Include "inf-ptrace.h".
10655         (nbsd_nat_target): New class.
10656         * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
10657         (obsd_wait): Refactor as methods of obsd_nat_target.
10658         (obsd_add_target): Delete.
10659         * obsd-nat.h: Include "inf-ptrace.h".
10660         (obsd_nat_target): New class.
10661         * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
10662         (the_ppc_fbsd_nat_target): New.
10663         (ppcfbsd_fetch_inferior_registers)
10664         (ppcfbsd_store_inferior_registers): Refactor as methods of
10665         ppc_fbsd_nat_target.
10666         (_initialize_ppcfbsd_nat): Adjust to C++ification.  Use
10667         add_target.
10668         * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
10669         (the_ppc_nbsd_nat_target): New.
10670         (ppcnbsd_fetch_inferior_registers)
10671         (ppcnbsd_store_inferior_registers): Refactor as methods of
10672         ppc_nbsd_nat_target.
10673         (_initialize_ppcnbsd_nat): Adjust to C++ification.
10674         * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
10675         (the_ppc_obsd_nat_target): New.
10676         (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
10677         methods of ppc_obsd_nat_target.
10678         (_initialize_ppcobsd_nat): Adjust to C++ification.  Use
10679         add_target.
10680         * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
10681         (the_sh_nbsd_nat_target): New.
10682         (shnbsd_fetch_inferior_registers)
10683         (shnbsd_store_inferior_registers): Refactor as methods of
10684         sh_nbsd_nat_target.
10685         (_initialize_shnbsd_nat): Adjust to C++ification.
10686         * sparc-nat.c (sparc_xfer_wcookie): Make extern.
10687         (inf_ptrace_xfer_partial): Delete.
10688         (sparc_xfer_partial, sparc_target): Delete.
10689         * sparc-nat.h (sparc_fetch_inferior_registers)
10690         (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
10691         (sparc_target): Delete function declaration.
10692         (sparc_target): New template class.
10693         * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
10694         (_initialize_sparcnbsd_nat): Adjust to C++ification.
10695         * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
10696         (_initialize_sparc64fbsd_nat): Adjust to C++ification.  Use
10697         add_target.
10698         * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
10699         (_initialize_sparc64nbsd_nat): Adjust to C++ification.
10700         * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
10701         (_initialize_sparc64obsd_nat): Adjust to C++ification.  Use
10702         add_target.
10703         * vax-bsd-nat.c (vax_bsd_nat_target): New class.
10704         (the_vax_bsd_nat_target): New.
10705         (vaxbsd_fetch_inferior_registers)
10706         (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
10707         methods.
10708         (_initialize_vaxbsd_nat): Adjust to C++ification.
10709
10710         * bsd-kvm.c (bsd_kvm_target): New class.
10711         (bsd_kvm_ops): Now a bsd_kvm_target.
10712         (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
10713         (bsd_kvm_files_info, bsd_kvm_fetch_registers)
10714         (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
10715         bsd_kvm_target.
10716         (bsd_kvm_return_one): Delete.
10717         (bsd_kvm_add_target): Adjust to C++ification.
10718
10719         * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
10720         (nto_procfs_target_procfs): New classes.
10721         (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
10722         (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
10723         (procfs_post_attach, procfs_wait, procfs_fetch_registers)
10724         (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
10725         (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
10726         (procfs_remove_hw_breakpoint, procfs_resume)
10727         (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
10728         (procfs_kill_inferior, procfs_store_registers)
10729         (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
10730         as methods of nto_procfs_target.
10731         (nto_procfs_ops): Now an nto_procfs_target_procfs.
10732         (nto_native_ops): Delete.
10733         (procfs_open, procfs_native_open): Delete.
10734         (nto_native_ops): Now an nto_procfs_target_native.
10735         (init_procfs_targets): Adjust to C++ification.
10736         (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
10737         (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
10738         Refactor as methods of nto_procfs_target.
10739
10740         * go32-nat.c (go32_nat_target): New class.
10741         (the_go32_nat_target): New.
10742         (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
10743         (go32_store_registers, go32_xfer_partial, go32_files_info)
10744         (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
10745         (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
10746         (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
10747         (go32_pid_to_str): Refactor as methods of go32_nat_target.
10748         (go32_target): Delete.
10749         (_initialize_go32_nat): Adjust to C++ification.
10750
10751         * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
10752         (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
10753         (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
10754         (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
10755         gnu_nat_target.
10756         (gnu_target): Delete.
10757         * gnu-nat.h (gnu_target): Delete.
10758         (gnu_nat_target): New class.
10759         * i386-gnu-nat.c (gnu_base_target): New.
10760         (i386_gnu_nat_target): New class.
10761         (the_i386_gnu_nat_target): New.
10762         (_initialize_i386gnu_nat): Adjust to C++ification.
10763
10764 2018-05-02  Pedro Alves  <palves@redhat.com>
10765
10766         * bfd-target.c (target_bfd_xclose): Rename to ...
10767         (target_bfd_close): ... this.
10768         (target_bfd_reopen): Adjust.
10769         * target.c (target_close): Remove references to to_xclose.
10770         * target.h (target_ops::to_xclose): Delete.
10771         (target_ops::to_close): Update comments.
10772
10773 2018-05-02  Pedro Alves  <palves@redhat.com>
10774
10775         * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
10776         "linux-nat.h".
10777         * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
10778         * inf-ptrace.c (inf_ptrace_register_u_offset)
10779         (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10780         (inf_ptrace_store_register, inf_ptrace_store_registers)
10781         (inf_ptrace_trad_target): Move to ...
10782         * linux-nat-trad.c: ... this new file.
10783         * linux-nat-trad.h: New file.
10784         * linux-nat.c (linux_target_install_ops): Make extern.
10785         (linux_trad_target): Delete.
10786         * linux-nat.h (linux_trad_target): Delete declaration.
10787         (linux_target_install_ops): Declare.
10788         * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
10789         "linux-nat.h".
10790
10791 2018-05-02  Pedro Alves  <palves@redhat.com>
10792
10793         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10794         procfs_target/add_target here.
10795         * procfs.c (procfs_target): Make static.
10796         (_initialize_procfs): Call add_target here.
10797         * procfs.h (struct target_ops): Remove forward declaration.
10798         (procfs_target): Remove declaration.
10799         * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
10800
10801 2018-05-02  Pedro Alves  <palves@redhat.com>
10802
10803         * procfs.c (procfs_stopped_by_watchpoint)
10804         (procfs_insert_watchpoint, procfs_remove_watchpoint)
10805         (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
10806         Forward declare.
10807         (procfs_use_watchpoints): Delete, move contents...
10808         (procfs_target): ... here.
10809         * procfs.h (procfs_use_watchpoints): Delete declaration.
10810         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10811         procfs_use_watchpoints.
10812         * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
10813         procfs_use_watchpoints.
10814
10815 2018-05-02  Tom Tromey  <tom@tromey.com>
10816
10817         PR python/20084:
10818         * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
10819         and var_zuinteger_unlimited.
10820         * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
10821         and PARAM_ZUINTEGER_UNLIMITED.
10822         (set_parameter_value): Handle var_zuinteger and
10823         var_zuinteger_unlimited.
10824         (add_setshow_generic): Likewise.
10825         (parmpy_init): Likewise.
10826
10827 2018-04-28  Dan Robertson  <danlrobertson89@gmail.com>
10828
10829         PR rust/23124
10830         * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
10831         pointer is not null before dereferencing it.
10832
10833 2018-04-30  Tom Tromey  <tom@tromey.com>
10834
10835         * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
10836         is_mi_like_p.
10837
10838 2018-04-30  Tom Tromey  <tom@tromey.com>
10839
10840         * breakpoint.c (mention): Remove use of is_mi_like_p.
10841         (print_mention_ranged_breakpoint): Likewise.
10842         * break-catch-throw.c (print_it_exception_catchpoint): Remove use
10843         of is_mi_like_p.
10844
10845 2018-04-30  Tom Tromey  <tom@tromey.com>
10846
10847         * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
10848
10849 2018-04-30  Tom Tromey  <tom@tromey.com>
10850
10851         * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
10852         (info_spu_event_command): Remove some uses of is_mi_like_p.
10853
10854 2018-04-30  Tom Tromey  <tom@tromey.com>
10855
10856         * python/py-framefilter.c (py_print_single_arg)
10857         (enumerate_locals, py_print_args, py_print_frame): Remove some
10858         uses of is_mi_like_p.
10859
10860 2018-04-30  Tom Tromey  <tom@tromey.com>
10861
10862         * ui-out.c: Update.
10863         * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
10864         * ui-out.h (ui_out::is_mi_like_p): Now const.
10865         (ui_out::do_is_mi_like_p): Now const.
10866         * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
10867
10868 2018-04-30  Tom Tromey  <tom@tromey.com>
10869
10870         * varobj.c (varobj_set_visualizer): Use new_reference.
10871         * python/python.c (gdbpy_decode_line): Use new_reference.
10872         * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
10873         new_reference.
10874
10875 2018-04-30  Tom Tromey  <tom@tromey.com>
10876
10877         * varobj.c (install_new_value): Use new_reference.
10878         * value.h (value_incref): Return void.  Swap intro comment with
10879         value_decref.
10880         * value.c (set_value_parent): Use new_reference.
10881         (value_incref): Return void.  Update intro comment.
10882         (release_value): Use new_reference.
10883         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
10884
10885 2018-04-30  Tom Tromey  <tom@tromey.com>
10886
10887         * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
10888         * gdb_bfd.h (new_bfd_ref): Remove.
10889         (gdb_bfd_open): Update comment.
10890         * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10891         (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
10892         (gdb_bfd_fdopenr): Use new_reference.
10893         * exec.c (exec_file_attach): Use new_reference.
10894
10895 2018-04-30  Tom Tromey  <tom@tromey.com>
10896
10897         * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
10898         method.
10899
10900 2018-04-30  Tom Tromey  <tom@tromey.com>
10901
10902         * jit.c (jit_read_code_entry): Use type_align.
10903         * i386-tdep.c (i386_gdbarch_init): Don't call
10904         set_gdbarch_long_long_align_bit.
10905         * gdbarch.sh: Remove long_long_align_bit.
10906         * gdbarch.c, gdbarch.h: Rebuild.
10907         * arc-tdep.c (arc_type_align): New function.
10908         (arc_gdbarch_init): Use arc_type_align.  Don't call
10909         set_gdbarch_long_long_align_bit.
10910
10911 2018-04-30  Tom Tromey  <tom@tromey.com>
10912
10913         * rust-lang.c (rust_type_alignment): Remove.
10914         (rust_composite_type): Use type_align.
10915
10916 2018-04-30  Tom Tromey  <tom@tromey.com>
10917
10918         * NEWS: Mention Type.align.
10919         * python/py-type.c (typy_get_alignof): New function.
10920         (type_object_getset): Add "alignof".
10921
10922 2018-04-30  Tom Tromey  <tom@tromey.com>
10923
10924         PR exp/17095:
10925         * NEWS: Update.
10926         * std-operator.def (UNOP_ALIGNOF): New operator.
10927         * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
10928         New.
10929         * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
10930         * c-lang.c (c_op_print_tab): Add alignof.
10931         * c-exp.y (ALIGNOF): New token.
10932         (exp): Add "ALIGNOF" production.
10933         (ident_tokens): Add _Alignof and alignof.
10934
10935 2018-04-30  Tom Tromey  <tom@tromey.com>
10936
10937         * i386-tdep.c (i386_type_align): New function.
10938         (i386_gdbarch_init): Update.
10939         * gdbarch.sh (type_align): New method.
10940         * gdbarch.c, gdbarch.h: Rebuild.
10941         * arch-utils.h (default_type_align): Declare.
10942         * arch-utils.c (default_type_align): New function.
10943         * gdbtypes.h (TYPE_ALIGN_BITS): New define.
10944         (struct type) <align_log2>: New field.
10945         <instance_flags>: Now a bitfield.
10946         (TYPE_RAW_ALIGN): New macro.
10947         (type_align, type_raw_align, set_type_align): Declare.
10948         * gdbtypes.c (type_align, type_raw_align, set_type_align): New
10949         functions.
10950         * dwarf2read.c (quirk_rust_enum): Set type alignment.
10951         (get_alignment, maybe_set_alignment): New functions.
10952         (read_structure_type, read_enumeration_type, read_array_type)
10953         (read_set_type, read_tag_pointer_type, read_tag_reference_type)
10954         (read_subrange_type, read_base_type): Set type alignment.
10955
10956 2018-04-30  Simon Marchi  <simon.marchi@ericsson.com>
10957
10958         * dwarf2read.c (read_index_from_section): Use bool.
10959
10960 2018-04-29  Fabian Groffen  <grobian@gentoo.org>
10961
10962         PR gdb/22950
10963         * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
10964         with #ifdef.
10965
10966 2018-04-29  John Reiser  <jreiser@BitWagon.com>
10967
10968         PR build/22873
10969         * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
10970         last step, and do it atomically.
10971
10972 2018-04-27  Alexandre Oliva  <aoliva@redhat.com>
10973
10974         * compile/compile-c-types.c (convert_int, convert_float):
10975         Update for C FE v1.
10976
10977 2018-04-27  Tom Tromey  <tom@tromey.com>
10978
10979         PR rust/22545:
10980         * rust-lang.c (rust_inclusive_range_type_p): New function.
10981         (rust_range): Handle inclusive ranges.
10982         (rust_compute_range): Likewise.
10983         * rust-exp.y (struct rust_op) <inclusive>: New field.
10984         (DOTDOTEQ): New constant.
10985         (range_expr): Add "..=" productions.
10986         (operator_tokens): Add "..=" token.
10987         (ast_range): Add "inclusive" parameter.
10988         (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
10989         ranges.
10990         * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
10991         bounds values.
10992         * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
10993         LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10994         Update comments.
10995         * expprint.c (print_subexp_standard): Handle new bounds values.
10996         (dump_subexp_body_standard): Likewise.
10997
10998 2018-04-27  Tom Tromey  <tom@tromey.com>
10999
11000         * configure: Rebuild.
11001         * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
11002         * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
11003         "OVERRIDE".
11004         (class symbol_needs_eval_context): Likewise.
11005         * dwarf2read.c (mock_mapped_index::symbol_name_count)
11006         (mock_mapped_index::symbol_name_at): Use "override".  Remove
11007         "virtual".
11008         * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
11009         "override".
11010         (class dwarf_expr_executor): Use "override", not "OVERRIDE".
11011         * aarch64-tdep.c (instruction_reader::read): Use "override".
11012         (instruction_reader_test::read): Likewise.
11013         * arm-tdep.c (instruction_reader::read): Use "override".
11014         (instruction_reader_thumb::read): Likewise.
11015
11016 2018-04-26  Andrzej Kaczmarek  <andrzej.kaczmarek@codecoup.pl>
11017
11018         PR remote/9665
11019         * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
11020         instead of remote_send.
11021         (remote_send): Remove.
11022
11023 2018-04-26  Pedro Alves  <palves@redhat.com>
11024
11025         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
11026         find_function_start_sal instead of find_pc_line.
11027
11028 2018-04-26  Pedro Alves  <palves@redhat.com>
11029
11030         * breakpoint.c (set_breakpoint_location_function): Handle
11031         mst_data_gnu_ifunc.
11032         * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
11033         * elfread.c (elf_symtab_read): Give data symbols with
11034         BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
11035         (elf_rel_plt_read): Update comment.
11036         * linespec.c (convert_linespec_to_sals): Handle
11037         mst_data_gnu_ifunc.
11038         (minsym_found): Handle mst_data_gnu_ifunc.
11039         * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
11040         (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
11041         * parse.c (find_minsym_type_and_address): Handle
11042         mst_data_gnu_ifunc.
11043         * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
11044         * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
11045         * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
11046         comment.
11047         <mst_data_gnu_ifunc>: New enumerator.
11048
11049 2018-04-26  Pedro Alves  <palves@redhat.com>
11050
11051         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
11052         (lookup_minimal_symbol_by_pc_section): ... this.  Replace
11053         'want_trampoline' parameter by a lookup_msym_prefer parameter.
11054         Handle it.
11055         (lookup_minimal_symbol_by_pc_section): Delete old implementation.
11056         (lookup_minimal_symbol_by_pc): Adjust.
11057         (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
11058         (lookup_solib_trampoline_symbol_by_pc): Adjust.
11059         * minsyms.h (lookup_msym_prefer): New enum.
11060         (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11061         parameter by a lookup_msym_prefer parameter.
11062
11063 2018-04-26  Pedro Alves  <palves@redhat.com>
11064
11065         * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
11066         ends in "@plt" instead of looking at the symbol's section.
11067
11068 2018-04-26  Pedro Alves  <palves@redhat.com>
11069
11070         * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete.  Remove
11071         all references.
11072         (find_pc_partial_function_gnu_ifunc): Rename to ...
11073         (find_pc_partial_function): ... this, and remove references to
11074         'is_gnu_ifunc_p'.
11075         (find_pc_partial_function): Delete old implementation.
11076         * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
11077
11078 2018-04-26  Pedro Alves  <palves@redhat.com>
11079
11080         * linespec.c (struct bound_minimal_symbol_search_key): New.
11081         (convert_linespec_to_sals): Sort minimal symbols earlier.  Don't
11082         skip first line if we found a GNU ifunc minimal symbol by name.
11083         (compare_msymbols): Change parameters to work with a destructured
11084         lhs minsym.
11085         (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
11086         functions.
11087
11088 2018-04-26  Pedro Alves  <palves@redhat.com>
11089
11090         * breakpoint.c (set_breakpoint_location_function): Don't resolve
11091         ifunc targets here.  Instead, if we have an ifunc minsym, use its
11092         address/name.
11093         (add_location_to_breakpoint): Store the minsym and the objfile in
11094         the breakpoint location.
11095         * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
11096         * linespec.c (minsym_found): Resolve GNU ifunc targets here.
11097         Record the minsym in the sal.
11098         * symtab.h (symtab_and_line) <msymbol>: New field.
11099
11100 2018-04-26  Pedro Alves  <palves@redhat.com>
11101
11102         * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
11103         unless we actually resolved the ifunc.
11104
11105 2018-04-26  Pedro Alves  <palves@redhat.com>
11106
11107         * c-exp.y (variable production): Prefer ifunc minsyms over
11108         regular function symbols.
11109         * symtab.c (find_gnu_ifunc): New function.
11110         * minsyms.h (lookup_msym_prefer): New enum.
11111         (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11112         parameter by a lookup_msym_prefer parameter.
11113         * symtab.h (find_gnu_ifunc): New declaration.
11114
11115 2018-04-26  Pedro Alves  <palves@redhat.com>
11116
11117         * blockframe.c (find_gnu_ifunc_target_type): New function.
11118         (find_function_type): New.
11119         * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
11120         return a value with a memory address.
11121         (eval_call): For calls to GNU ifunc functions, try to find the
11122         type of the target function from the type that the resolver
11123         returns.
11124         * gdbtypes.c (objfile_type): Don't install a return type for ifunc
11125         symbols.
11126         * infcall.c (find_function_return_type): Delete.
11127         (find_function_addr): Add 'function_type' parameter.  For calls to
11128         GNU ifunc functions, try to find the type of the target function
11129         from the type that the resolver returns, and return it via
11130         FUNCTION_TYPE.
11131         (call_function_by_hand_dummy): Adjust to use the function type
11132         returned by find_function_addr.
11133         (find_function_addr): Add 'function_type' parameter and move
11134         description here.
11135         * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
11136         declarations.
11137
11138 2018-04-26  Pedro Alves  <palves@redhat.com>
11139
11140         * c-exp.y (variable production): Skip finding an alias for ifunc
11141         symbols.
11142
11143 2018-04-26  Pedro Alves  <palves@redhat.com>
11144
11145         * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
11146
11147 2018-04-25  Pedro Alves  <palves@redhat.com>
11148
11149         * infcmd.c (kill_command): Print the pid as string, not the whole
11150         thread's ptid.  Add comment.  s/has been killed/killed/ in output
11151         message.
11152         * remote.c (remote_detach_1): Print the pid as string, not the
11153         whole thread's ptid.
11154
11155 2018-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11156             Sergio Durigan Junior  <sergiodj@redhat.com>
11157             Pedro Alves  <palves@redhat.com>
11158
11159         * infcmd.c (kill_command): Print message when inferior has
11160         been killed.
11161         * inferior.c (print_inferior_events): Remove 'static'.  Set as
11162         '1'.
11163         (add_inferior): Improve message printed when
11164         'print_inferior_events' is on.
11165         (exit_inferior): Remove message printed when
11166         'print_inferior_events' is on.
11167         (detach_inferior): Improve message printed when
11168         'print_inferior_events' is on.
11169         (initialize_inferiors): Use 'add_inferior_silent' to set
11170         'current_inferior_'.
11171         * inferior.h (print_inferior_events): Declare here as
11172         'extern'.
11173         * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
11174         '[Detaching...]' messages when 'print_inferior_events' is on.
11175         Use 'add_thread_silent' instead of 'add_thread'.  Add '[' and ']'
11176         as prefix/suffix for messages.  Remove periods.  Fix erroneous
11177         'Detaching after fork from child...', replace it by '... from
11178         parent...'.
11179         (handle_vfork_child_exec_or_exit): Add '[' and ']' as
11180         prefix/suffix when printing 'Detaching...' messages.  Print
11181         them when 'print_inferior_events' is on.
11182         * remote.c (remote_detach_1): Print message when detaching
11183         from inferior and '!is_fork_parent'.
11184
11185 2018-04-24  Tom Tromey  <tom@tromey.com>
11186
11187         * cli-out.h: Reindent.
11188
11189 2018-04-24  Tom Tromey  <tom@tromey.com>
11190
11191         * cli-out.c (cli_ui_out::out_field_fmt): Remove.
11192         (cli_ui_out::do_field_string): Use fputs_filtered.
11193         * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
11194
11195 2018-04-23  Tom Tromey  <tom@tromey.com>
11196
11197         * guile/scm-frame.c (gdbscm_frame_read_var): Use
11198         gdb::unique_xmalloc_ptr.
11199
11200 2018-04-23  Tom Tromey  <tom@tromey.com>
11201
11202         * configure: Rebuild.
11203
11204 2018-04-22  Rajendra SY  <rajendra.sy@gmail.com>
11205
11206         PR gdb/23095
11207         * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
11208         prepare_for_testing.  Set normal_bp to r_debug_state if target
11209         is bsd.
11210
11211 2018-04-21  Pedro Alves  <palves@redhat.com>
11212             Rajendra SY  <rajendra.sy@gmail.com>
11213
11214         * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
11215         * remote.c (extended_remote_attach): In all-stop mode, mark the
11216         thread as executing.
11217
11218 2018-04-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
11219
11220         * thread.c (thread_apply_all_command): Fix comment.
11221         (thread_command): Fix comment.
11222
11223 2018-04-10  Alan Hayward  <alan.hayward@arm.com>
11224
11225         * common/tdesc.h (tdesc_create_feature): Remove xml filename
11226         parameter.
11227         * features/aarch64-core.c (create_feature_aarch64_core):
11228         Regenerate.
11229         * features/aarch64-fpu.c (create_feature_aarch64_fpu):
11230         Likewise.
11231         * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
11232         Likewise.
11233         * features/i386/32bit-avx512.c
11234         (create_feature_i386_32bit_avx512): Likewise.
11235         * features/i386/32bit-core.c (create_feature_i386_32bit_core):
11236         Likewise.
11237         * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
11238         Likewise.
11239         * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
11240         Likewise.
11241         * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
11242         Likewise.
11243         * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
11244         Likewise.
11245         * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
11246         Likewise.
11247         * features/i386/64bit-avx512.c
11248         (create_feature_i386_64bit_avx512): Likewise.
11249         * features/i386/64bit-core.c (create_feature_i386_64bit_core):
11250         Likewise.
11251         * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
11252         Likewise.
11253         * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
11254         Likewise.
11255         * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
11256         Likewise.
11257         * features/i386/64bit-segments.c
11258         (create_feature_i386_64bit_segments): Likewise.
11259         * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
11260         Likewise.
11261         * features/i386/x32-core.c
11262         (create_feature_i386_x32_core): Likewise.
11263         * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
11264         * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
11265         * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
11266         * target-descriptions.c: In generated code, don't pass xml
11267         filename.
11268
11269 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11270
11271         * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
11272         (print_xml_feature::visit_post): Likewise.
11273         (print_xml_feature::visit): Likewise.
11274         * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
11275         (print_xml_feature): Add new class.
11276         * regformats/regdat.sh: Null xmltarget on feature targets.
11277         * target-descriptions.c (struct target_desc): Add xmltarget.
11278         (maintenance_check_tdesc_xml_convert): Add unittest function.
11279         (tdesc_get_features_xml): Add function to get xml.
11280         (maintenance_check_xml_descriptions): Test xml generation.
11281         * xml-tdesc.c (string_read_description_xml): Add function.
11282         * xml-tdesc.h (string_read_description_xml): Add declaration.
11283
11284 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11285
11286         * features/Makefile: Add feature marker to targets with new style
11287         target descriptions.
11288         * regformats/aarch64.dat: Regenerate.
11289         * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
11290         * regformats/i386/amd64-avx-linux.dat: Likewise.
11291         * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
11292         * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
11293         * regformats/i386/amd64-linux.dat: Likewise.
11294         * regformats/i386/amd64-mpx-linux.dat: Likewise.
11295         * regformats/i386/amd64.dat: Likewise.
11296         * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
11297         * regformats/i386/i386-avx-linux.dat: Likewise.
11298         * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
11299         * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
11300         * regformats/i386/i386-linux.dat: Likewise.
11301         * regformats/i386/i386-mmx-linux.dat: Likewise.
11302         * regformats/i386/i386-mpx-linux.dat: Likewise.
11303         * regformats/i386/i386.dat: Likewise.
11304         * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
11305         * regformats/i386/x32-avx-linux.dat: Likewise.
11306         * regformats/i386/x32-linux.dat: Likewise.
11307         * regformats/tic6x-c62x-linux.dat: Likewise.
11308         * regformats/tic6x-c64x-linux.dat: Likewise.
11309         * regformats/tic6x-c64xp-linux.dat: Likewise.
11310         * regformats/regdat.sh: Parse feature marker.
11311
11312 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11313
11314         * common/tdesc.h (tdesc_architecture_name): Add new declaration.
11315         (tdesc_osabi_name): Likewise.
11316         * target-descriptions.c (tdesc_architecture_name): Add new
11317         function.
11318         (tdesc_osabi_name): Likewise.
11319
11320 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11321
11322         * common/tdesc.c (tdesc_predefined_type): Move to here.
11323         (tdesc_named_type): Likewise.
11324         (tdesc_create_vector): Likewise.
11325         (tdesc_create_struct): Likewise.
11326         (tdesc_set_struct_size): Likewise.
11327         (tdesc_create_union): Likewise.
11328         (tdesc_create_flags): Likewise.
11329         (tdesc_create_enum): Likewise.
11330         (tdesc_add_field): Likewise.
11331         (tdesc_add_typed_bitfield): Likewise.
11332         (tdesc_add_bitfield): Likewise.
11333         (tdesc_add_flag): Likewise.
11334         (tdesc_add_enum_value): Likewise.
11335         * common/tdesc.h (struct tdesc_type_builtin): Likewise.
11336         (struct tdesc_type_vector): Likewise.
11337         (struct tdesc_type_field): Likewise.
11338         (struct tdesc_type_with_fields): Likewise.
11339         (tdesc_create_enum): Add declaration.
11340         (tdesc_add_typed_bitfield): Likewise.
11341         (tdesc_add_enum_value): Likewise.
11342         * target-descriptions.c (tdesc_type_field): Move from here.
11343         (tdesc_type_builtin): Likewise.
11344         (tdesc_type_vector): Likewise.
11345         (tdesc_type_with_fields): Likewise.
11346         (tdesc_predefined_types): Likewise.
11347         (tdesc_named_type): Likewise.
11348         (tdesc_create_vector): Likewise.
11349         (tdesc_create_struct): Likewise.
11350         (tdesc_set_struct_size): Likewise.
11351         (tdesc_create_union): Likewise.
11352         (tdesc_create_flags): Likewise.
11353         (tdesc_create_enum): Likewise.
11354         (tdesc_add_field): Likewise.
11355         (tdesc_add_typed_bitfield): Likewise.
11356         (tdesc_add_bitfield): Likewise.
11357         (tdesc_add_flag): Likewise.
11358         (tdesc_add_enum_value): Likewise.
11359         * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
11360         (tdesc_add_typed_bitfield): Likewise.
11361         (tdesc_add_enum_value): Likewise.
11362
11363 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11364
11365         * common/tdesc.c (tdesc_feature::accept): Move to here.
11366         (tdesc_feature::operator==): Likewise.
11367         (tdesc_create_reg): Likewise.
11368         * common/tdesc.h (tdesc_type_kind): Likewise.
11369         (struct tdesc_type): Likewise.
11370         (struct tdesc_feature): Likewise.
11371         * regformats/regdat.sh: Create a feature.
11372         * target-descriptions.c (tdesc_type_kind): Move from here.
11373         (tdesc_type): Likewise.
11374         (tdesc_type_up): Likewise.
11375         (tdesc_feature): Likewise.
11376         (tdesc_create_reg): Likewise.
11377
11378 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11379
11380         * Makefile.in: Add arch/tdesc.c
11381         * common/tdesc.c: New file.
11382         * common/tdesc.h (tdesc_element_visitor): Move to here.
11383         (tdesc_element): Likewise.
11384         (tdesc_reg): Likewise.
11385         (tdesc_reg_up): Likewise.
11386         * regformats/regdef.h (reg): Add offset to constructors.
11387         * target-descriptions.c (tdesc_element_visitor): Move from here.
11388         (tdesc_element): Likewise.
11389         (tdesc_reg): Likewise.
11390         (tdesc_reg_up): Likewise.
11391
11392 2018-04-17  Tom Tromey  <tom@tromey.com>
11393
11394         * dwarf2read.c (quirk_rust_enum): Conditionally drop the
11395         discriminant field.
11396
11397 2018-04-17  Tom Tromey  <tom@tromey.com>
11398
11399         * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
11400
11401 2018-04-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11402
11403         * symtab.c (print_symbol_info): Skip printing filename and line
11404         number when `last' is NULL.
11405         (symtab_symbol_info): Use empty string instead of NULL for first
11406         invocation of print_symbol_info.
11407         (rbreak_command): Pass NULL to `last' parameter of
11408         print_symbol_info.
11409
11410 2018-04-16  Simon Marchi  <simon.marchi@ericsson.com>
11411
11412         * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
11413         instead of nullptr.
11414
11415 2018-04-16  Pedro Alves  <palves@redhat.com>
11416
11417         * MAINTAINERS (sh): Remove.
11418         * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
11419         (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
11420         (ALLDEPFILES): Remove sh64-tdep.c.
11421         * NEWS: Mentions that support for SH-5/SH64 is removed.
11422         * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
11423         (sh*-*-openbsd*): Ditto.
11424         (sh64-*-elf*): Remove.
11425         (sh*): Remove.
11426         * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
11427         * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
11428         * sh-tdep.c: No longer include "sh64-tdep.h".
11429         (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
11430         * sh64-tdep.c, sh64-tdep.h: Remove files.
11431
11432 2018-04-16  Pedro Alves  <palves@redhat.com>
11433
11434         * MAINTAINERS: Remove m88k.
11435         * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
11436         (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
11437         (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
11438         * NEWS: Mention that support for m88k was removed.
11439         * configure.host (m88*-*-*): Remove support.
11440         * configure.nat (m88k-*-*): Remove support.
11441         * configure.tgt (m88*-*-openbsd*): Remove.
11442         * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
11443
11444 2018-04-15  Simon Marchi  <simon.marchi@polymtl.ca>
11445
11446         * configure.tgt (x86_tobjs): New variable.
11447         (amd64_tobjs, i386_tobjs): Use it.
11448
11449 2018-04-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11450
11451         * symtab.c (print_symbol_info): Precede the symbol definition by
11452         the line number when available.
11453         * NEWS: Advertise this enhancement.
11454
11455 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
11456
11457         * NEWS (New options): announce set/show record btrace cpu.
11458         * btrace.c: Include record-btrace.h.
11459         (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
11460         the vendor is unknown.
11461         (btrace_compute_ftrace_1): Add cpu parameter.  Update callers.
11462         Maybe overwrite the btrace configuration's cpu.
11463         (btrace_compute_ftrace): Add cpu parameter.  Update callers.
11464         (btrace_fetch): Add cpu parameter.  Update callers.
11465         (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
11466         Maybe overwrite the btrace configuration's cpu.  Skip enabling
11467         errata workarounds if the vendor is unknown.
11468         * python/py-record-btrace.c: Include record-btrace.h.
11469         (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
11470         (recpy_bt_function_call_history): Call record_btrace_get_cpu.
11471         * record-btrace.c (record_btrace_cpu_state_kind): New.
11472         (record_btrace_cpu): New.
11473         (set_record_btrace_cpu_cmdlist): New.
11474         (record_btrace_get_cpu): New.
11475         (require_btrace_thread, record_btrace_info)
11476         (record_btrace_resume_thread): Call record_btrace_get_cpu.
11477         (cmd_set_record_btrace_cpu_none): New.
11478         (cmd_set_record_btrace_cpu_auto): New.
11479         (cmd_set_record_btrace_cpu): New.
11480         (cmd_show_record_btrace_cpu): New.
11481         (_initialize_record_btrace): Initialize set/show record btrace cpu
11482         commands.
11483         * record-btrace.h (record_btrace_get_cpu): New.
11484
11485 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
11486
11487         * record.c (set_record_command): Fix typo in message.
11488
11489 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
11490
11491         * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
11492
11493 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
11494
11495         * infrun.c (process_event_stop_test): Call
11496         gdbarch_in_indirect_branch_thunk.
11497         * gdbarch.sh (in_indirect_branch_thunk): New.
11498         * gdbarch.c: Regenerated.
11499         * gdbarch.h: Regenerated.
11500         * x86-tdep.h: New.
11501         * x86-tdep.c: New.
11502         * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
11503         (HFILES_NO_SRCDIR): Add x86-tdep.h.
11504         (ALLDEPFILES): Add x86-tdep.c.
11505         * arch-utils.h (default_in_indirect_branch_thunk): New.
11506         * arch-utils.c (default_in_indirect_branch_thunk): New.
11507         * i386-tdep: Include x86-tdep.h.
11508         (i386_in_indirect_branch_thunk): New.
11509         (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
11510         function.
11511         * amd64-tdep: Include x86-tdep.h.
11512         (amd64_in_indirect_branch_thunk): New.
11513         (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
11514
11515 2018-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11516
11517         PR gdb/23053
11518         * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
11519         (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
11520         (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
11521         regression.
11522
11523 2018-04-12  Tom Tromey  <tom@tromey.com>
11524
11525         * rust-lang.c (rust_print_struct_def): Remove univariant code.
11526         (rust_evaluate_subexp): Likewise.
11527
11528 2018-04-12  Pedro Alves  <palves@redhat.com>
11529
11530         * procfs.c (procfs_detach): Make forward declaration's prototype
11531         match definition's protototype.
11532         (proc_get_LDT_entry): Remove stale do_cleanups call.
11533
11534 2018-04-12  Pedro Alves  <palves@redhat.com>
11535
11536         * target.h (target_ops::to_has_exited): Delete.
11537         (target_has_exited): Delete.
11538         * target-delegates.c: Regenerate.
11539
11540 2018-04-11  Pedro Alves  <palves@redhat.com>
11541
11542         * target.c (fileio_fh_t::t): Add comment.
11543         (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11544         (target_fileio_close): Handle a NULL target.
11545         (invalidate_fileio_fh): New.
11546         (target_close): Call it.
11547         * remote.c (remote_hostio_send_command): No longer check whether
11548         remote_desc is open.
11549
11550 2018-04-11  Pedro Alves  <palves@redhat.com>
11551
11552         * target.c (fileio_fh_t): Make it a named struct instead of a
11553         typedef.
11554         (fileio_fh_t::is_closed): New method.
11555         (DEF_VEC_O (fileio_fh_t)): Remove.
11556         (fileio_fhandles): Now a std::vector.
11557         (is_closed_fileio_fh): Delete.
11558         (acquire_fileio_fd): Adjust.  Rename parameters.
11559         (release_fileio_fd): Adjust.
11560         (fileio_fd_to_fh): Reimplement as a function instead of a macro.
11561         (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11562         (target_fileio_close): Adjust.
11563
11564 2018-04-10  Simon Marchi  <simon.marchi@ericsson.com>
11565
11566         * auto-load.c (auto_load_safe_path_vec_update): Iterate by
11567         index.
11568
11569 2018-04-10  Pedro Alves  <palves@redhat.com>
11570
11571         * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
11572         (scoped_finish_thread_state): New class.
11573         * infcmd.c (run_command_1): Use it instead of finish_thread_state
11574         cleanup.
11575         * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
11576         (fetch_inferior_event, normal_stop): Likewise.
11577         * thread.c (finish_thread_state_cleanup): Delete.
11578
11579 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11580             Pedro Alves  <palves@redhat.com>
11581
11582         * value.c: Include "selftest.h" and "common/array-view.h".
11583         (struct range) <operator ==>: New.
11584         (test_ranges_contain): New.
11585         (check_ranges_vector): New.
11586         (test_insert_into_bit_range_vector): New.
11587         (_initialize_values): Register selftests.
11588         * common/array-view.h (operator==, operator!=): New.
11589
11590 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11591
11592         * common/gdb_vecs.h (unordered_remove): Add overload that takes
11593         an iterator.
11594         * inline-frame.c: Include <algorithm>.
11595         (struct inline_state): Add constructor.
11596         (inline_state_s): Remove.
11597         (DEF_VEC_O(inline_state_s)): Remove.
11598         (inline_states): Change type to std::vector.
11599         (find_inline_frame_state): Adjust to std::vector.
11600         (allocate_inline_frame_state): Remove.
11601         (clear_inline_frame_state): Adjust to std::vector.
11602         (skip_inline_frames): Adjust to std::vector.
11603
11604 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11605
11606         * tracepoint.h (struct trace_state_variable): Add constructor.
11607         <name>: Change type to std::string.
11608         * tracepoint.c (tsv_s): Remove.
11609         (DEF_VEC_O(tsv_s)): Remove.
11610         (tvariables): Change to std::vector.
11611         (create_trace_state_variable): Adjust to std::vector.
11612         (find_trace_state_variable): Likewise.
11613         (find_trace_state_variable_by_number): Likewise.
11614         (delete_trace_state_variable): Likewise.
11615         (trace_variable_command): Adjust to std::string.
11616         (delete_trace_variable_command): Likewise.
11617         (tvariables_info_1): Adjust to std::vector.
11618         (save_trace_state_variables): Likewise.
11619         (start_tracing): Likewise.
11620         (merge_uploaded_trace_state_variables): Adjust to std::vector
11621         and std::string.
11622         * target.h (struct target_ops)
11623         <to_download_trace_state_variable>: Pass reference to
11624         trace_state_variable.
11625         * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
11626         * target-delegates.c: Re-generate.
11627         * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
11628         (mi_tsv_deleted): Likewise.
11629         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
11630         * remote.c (remote_download_trace_state_variable): Change
11631         pointer to reference and adjust.
11632         * make-target-delegates (parse_argtypes): Handle references.
11633         (write_function_header): Likewise.
11634         (munge_type): Likewise.
11635
11636 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11637
11638         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11639         string_view-selftests.c.
11640         * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
11641         testsuite.
11642         * unittests/basic_string_view/cons/char/1.cc: Likewise.
11643         * unittests/basic_string_view/cons/char/2.cc: Likewise.
11644         * unittests/basic_string_view/cons/char/3.cc: Likewise.
11645         * unittests/basic_string_view/element_access/char/1.cc:
11646         Likewise.
11647         * unittests/basic_string_view/element_access/char/empty.cc:
11648         Likewise.
11649         * unittests/basic_string_view/element_access/char/front_back.cc:
11650         Likewise.
11651         * unittests/basic_string_view/inserters/char/2.cc: Likewise.
11652         * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
11653         Likewise.
11654         * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
11655         Likewise.
11656         * unittests/basic_string_view/modifiers/swap/char/1.cc:
11657         Likewise.
11658         * unittests/basic_string_view/operations/compare/char/1.cc:
11659         Likewise.
11660         * unittests/basic_string_view/operations/compare/char/13650.cc:
11661         Likewise.
11662         * unittests/basic_string_view/operations/copy/char/1.cc:
11663         Likewise.
11664         * unittests/basic_string_view/operations/data/char/1.cc:
11665         Likewise.
11666         * unittests/basic_string_view/operations/find/char/1.cc:
11667         Likewise.
11668         * unittests/basic_string_view/operations/find/char/2.cc:
11669         Likewise.
11670         * unittests/basic_string_view/operations/find/char/3.cc:
11671         Likewise.
11672         * unittests/basic_string_view/operations/find/char/4.cc:
11673         Likewise.
11674         * unittests/basic_string_view/operations/rfind/char/1.cc:
11675         Likewise.
11676         * unittests/basic_string_view/operations/rfind/char/2.cc:
11677         Likewise.
11678         * unittests/basic_string_view/operations/rfind/char/3.cc:
11679         Likewise.
11680         * unittests/basic_string_view/operations/substr/char/1.cc:
11681         Likewise.
11682         * unittests/basic_string_view/operators/char/2.cc: Likewise.
11683         * unittests/string_view-selftests.c: New file.
11684
11685 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11686
11687         * unittests/basic_string_view/capacity/1.cc: New file.
11688         * unittests/basic_string_view/capacity/empty_neg.cc: New file.
11689         * unittests/basic_string_view/cons/char/1.cc: New file.
11690         * unittests/basic_string_view/cons/char/2.cc: New file.
11691         * unittests/basic_string_view/cons/char/3.cc: New file.
11692         * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
11693         * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
11694         * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
11695         * unittests/basic_string_view/element_access/char/1.cc: New file.
11696         * unittests/basic_string_view/element_access/char/2.cc: New file.
11697         * unittests/basic_string_view/element_access/char/empty.cc: New file.
11698         * unittests/basic_string_view/element_access/char/front_back.cc: New file.
11699         * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
11700         * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
11701         * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
11702         * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
11703         * unittests/basic_string_view/include.cc: New file.
11704         * unittests/basic_string_view/inserters/char/1.cc: New file.
11705         * unittests/basic_string_view/inserters/char/2.cc: New file.
11706         * unittests/basic_string_view/inserters/char/3.cc: New file.
11707         * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
11708         * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
11709         * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
11710         * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
11711         * unittests/basic_string_view/literals/types.cc: New file.
11712         * unittests/basic_string_view/literals/values.cc: New file.
11713         * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
11714         * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
11715         * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
11716         * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
11717         * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
11718         * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
11719         * unittests/basic_string_view/operations/compare/char/1.cc: New file.
11720         * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
11721         * unittests/basic_string_view/operations/compare/char/2.cc: New file.
11722         * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
11723         * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
11724         * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
11725         * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
11726         * unittests/basic_string_view/operations/copy/char/1.cc: New file.
11727         * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
11728         * unittests/basic_string_view/operations/data/char/1.cc: New file.
11729         * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
11730         * unittests/basic_string_view/operations/find/char/1.cc: New file.
11731         * unittests/basic_string_view/operations/find/char/2.cc: New file.
11732         * unittests/basic_string_view/operations/find/char/3.cc: New file.
11733         * unittests/basic_string_view/operations/find/char/4.cc: New file.
11734         * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
11735         * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
11736         * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
11737         * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
11738         * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
11739         * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
11740         * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
11741         * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
11742         * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
11743         * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
11744         * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
11745         * unittests/basic_string_view/operations/substr/char/1.cc: New file.
11746         * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
11747         * unittests/basic_string_view/operators/char/2.cc: New file.
11748         * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
11749         * unittests/basic_string_view/range_access/char/1.cc: New file.
11750         * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
11751         * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
11752         * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
11753         * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
11754         * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
11755         * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
11756         * unittests/basic_string_view/requirements/typedefs.cc: New file.
11757         * unittests/basic_string_view/typedefs.cc: New file.
11758         * unittests/basic_string_view/types/1.cc: New file.
11759
11760 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11761
11762         * common/gdb_string_view.h: Remove libstdc++ implementation
11763         details, adjust to gdb reality.
11764         * common/gdb_string_view.tcc: Likewise.
11765         * cli/cli-script.c (struct string_view): Remove.
11766         (user_args) <m_args>: Change element type to gdb::string_view.
11767         (user_args::insert_args): Adjust.
11768
11769 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11770
11771         * common/gdb_string_view.h: New file.
11772         * common/gdb_string_view.tcc: New file.
11773
11774 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11775
11776         * ax_cxx_compile_stdcxx.m4: Sync with upstream.
11777         * configure: Re-generate.
11778
11779 2018-04-09  Pedro Alves  <palves@redhat.com>
11780
11781         * gdbarch.sh: Include "observable.h" instead of "observer.h".
11782         (set_target_gdbarch): Call
11783         gdb::observers::architecture_changed.notify instead of
11784         observer_notify_architecture_changed.
11785
11786 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11787
11788         * tracepoint.c (struct current_traceframe_cleanup): Remove.
11789         (do_restore_current_traceframe_cleanup): Remove.
11790         (restore_current_traceframe_cleanup_dtor): Remove.
11791         (make_cleanup_restore_current_traceframe): Remove.
11792         (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
11793         New.
11794         * tracepoint.h (struct scoped_restore_current_traceframe): New.
11795         * infrun.c (fetch_inferior_event): Use
11796         scoped_restore_current_traceframe.
11797
11798 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11799
11800         * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
11801         Remove.
11802         <n_allocated_type_units>: Remove.
11803         <all_type_units>: Change to std::vector.
11804         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11805         to std::vector change.
11806         (dwarf2_per_objfile::get_cutu): Likewise.
11807         (dwarf2_per_objfile::get_tu): Likewise.
11808         (create_signatured_type_table_from_index): Likewise.
11809         (create_signatured_type_table_from_debug_names): Likewise.
11810         (dw2_symtab_iter_next): Likewise.
11811         (dw2_print_stats): Likewise.
11812         (dw2_expand_all_symtabs): Likewise.
11813         (dw2_expand_marked_cus): Likewise.
11814         (dw2_debug_names_iterator::next): Likewise.
11815         (dwarf2_initialize_objfile): Likewise.
11816         (add_signatured_type_cu_to_table): Likewise.
11817         (create_all_type_units): Likewise.
11818         (add_type_unit): Likewise.
11819         (struct tu_abbrev_offset): Add constructor.
11820         (build_type_psymtabs_1): Adjust to std::vector change.
11821         (print_tu_stats): Likewise.
11822         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11823         (write_debug_names): Likewise.
11824
11825 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11826
11827         * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
11828         Make an std::vector.
11829         <n_comp_units>: Remove.
11830         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11831         to std::vector change.
11832         (dwarf2_per_objfile::get_cutu): Likewise.
11833         (dwarf2_per_objfile::get_cu): Likewise.
11834         (create_cus_from_index): Likewise.
11835         (create_addrmap_from_index): Likewise.
11836         (create_addrmap_from_aranges): Likewise.
11837         (dwarf2_read_index): Likewise.
11838         (dw2_find_last_source_symtab): Likewise.
11839         (dw2_map_symtabs_matching_filename): Likewise.
11840         (dw2_symtab_iter_next): Likewise.
11841         (dw2_print_stats): Likewise.
11842         (dw2_expand_all_symtabs): Likewise.
11843         (dw2_expand_symtabs_with_fullname): Likewise.
11844         (dw2_expand_marked_cus): Likewise.
11845         (dw2_map_symbol_filenames): Likewise.
11846         (create_cus_from_debug_names): Likewise.
11847         (dwarf2_read_debug_names): Likewise.
11848         (dw2_debug_names_iterator::next): Likewise.
11849         (dwarf2_initialize_objfile): Likewise.
11850         (set_partial_user): Likewise.
11851         (dwarf2_build_psymtabs_hard): Likewise.
11852         (read_comp_units_from_section): Remove arguments, adjust to
11853         std::vector change.
11854         (create_all_comp_units): Adjust to std::vector and
11855         read_comp_units_from_section changes.
11856         (dwarf2_find_containing_comp_unit): Adjust to std::vector
11857         change.
11858         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11859         (psyms_seen_size): Likewise.
11860         (write_gdbindex): Likewise.
11861         (write_debug_names): Likewise.
11862
11863 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11864
11865         * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
11866         with dwarf2_per_objfile.
11867         (create_cus_from_index): Likewise.
11868         (create_signatured_type_table_from_index): Likewise.
11869         (dwarf2_read_index): Likewise.
11870         (dwarf2_initialize_objfile): Likewise.
11871         (dwarf2_fetch_die_loc_sect_off):  Get dwarf2_per_objfile from
11872         per_cu rather than get_dwarf2_per_objfile.
11873
11874 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11875
11876         * dwarf2read.h (struct signatured_type): Forward declare.
11877         (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
11878         New methods.
11879         * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
11880         (dw2_get_cutu): ...this.
11881         (dwarf2_per_objfile::get_cu): Rename from...
11882         (dw2_get_cu): ...this.
11883         (dwarf2_per_objfile::get_tu): New.
11884         (create_addrmap_from_index): Adjust.
11885         (create_addrmap_from_aranges): Adjust.
11886         (dw2_find_last_source_symtab): Adjust.
11887         (dw2_map_symtabs_matching_filename): Adjust.
11888         (dw2_symtab_iter_next): Adjust.
11889         (dw2_print_stats): Adjust.
11890         (dw2_expand_all_symtabs): Adjust.
11891         (dw2_expand_symtabs_with_fullname): Adjust.
11892         (dw2_expand_marked_cus): Adjust.
11893         (dw_expand_symtabs_matching_file_matcher): Adjust.
11894         (dw2_map_symbol_filenames): Adjust.
11895         (dw2_debug_names_iterator::next): Adjust.
11896         (dwarf2_initialize_objfile): Adjust.
11897         (set_partial_user): Adjust.
11898         (dwarf2_build_psymtabs_hard): Adjust.
11899
11900 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11901
11902         * dwarf2read.c (create_signatured_type_table_from_debug_names):
11903         Remove unused variables.
11904         (dw2_map_symtabs_matching_filename): Likewise.
11905         (dwarf2_record_block_ranges): Likewise.
11906         (dwarf2_read_addr_index): Likewise.
11907         (follow_die_offset): Likewise.
11908
11909 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11910
11911         * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
11912         to symbol_file_add_main.
11913
11914 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11915
11916         PR mi/22299
11917         * mi/mi-console.c (do_fputc_async_safe): New.
11918         (mi_console_file::write_async_safe): New.
11919         (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
11920         * mi/mi-console.h (class mi_console_file) <write_async_safe>:
11921         New.
11922         * ui-file.c (ui_file::putstrn): Adjust call to
11923         fputstrn_unfiltered.
11924         * utils.c (printchar): Replace do_fputs and do_fprintf
11925         parameters by do_fputc.
11926         (fputstr_filtered): Adjust call to printchar.
11927         (fputstr_unfiltered): Likewise.
11928         (fputstrn_filtered): Likewise.
11929         (fputstrn_unfiltered): Add do_fputc parameter, pass to
11930         printchar.
11931         * utils.h (do_fputc_ftype): New typedef.
11932         (fputstrn_unfiltered): Add do_fputc parameter.
11933
11934 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11935
11936         * regformats/i386/i386-avx.dat: Remove.
11937
11938 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
11939
11940         PR gdb/22979
11941         * amd64-tdep.c (amd64_none_init_abi): New function.
11942         (amd64_x32_none_init_abi): New function.
11943         (_initialize_amd64_tdep): Register handlers for x86-64 and
11944         x64_32 with GDB_OSABI_NONE.
11945         * osabi.c (gdbarch_init_osabi): Allow running handlers for the
11946         GDB_OSABI_NONE osabi.
11947
11948 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
11949
11950         PR gdb/22980
11951         * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
11952         GDB_OSABI_NONE.
11953         * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
11954         * osabi.c (gdb_osabi_names): Add "unknown" entry.
11955
11956 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
11957
11958         * common/byte-vector.h (char_vector): New type.
11959         * target.h (target_read_alloc): Return
11960         gdb::optional<byte_vector>.
11961         (target_read_stralloc): Return gdb::optional<char_vector>.
11962         (target_get_osdata): Return gdb::optional<char_vector>.
11963         * target.c (target_read_alloc_1): Templatize.  Replacement
11964         manual memory management with vector.
11965         (target_read_alloc): Change return type, adjust.
11966         (target_read_stralloc): Change return type, adjust.
11967         (target_get_osdata): Change return type, adjust.
11968         * auxv.c (struct auxv_info) <length>: Remove.
11969         <data>: Change type to gdb::optional<byte_vector>.
11970         (auxv_inferior_data_cleanup): Free auxv_info with delete.
11971         (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
11972         (target_auxv_search): Adjust.
11973         (fprint_target_auxv): Adjust.
11974         * avr-tdep.c (avr_io_reg_read_command): Adjust.
11975         * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
11976         (linux_make_corefile_notes): Adjust.
11977         * osdata.c (get_osdata): Adjust.
11978         * remote.c (remote_get_threads_with_qxfer): Adjust.
11979         (remote_memory_map): Adjust.
11980         (remote_traceframe_info): Adjust.
11981         (btrace_read_config): Adjust.
11982         (remote_read_btrace): Adjust.
11983         (remote_pid_to_exec_file): Adjust.
11984         * solib-aix.c (solib_aix_get_library_list): Adjust.
11985         * solib-dsbt.c (decode_loadmap): Don't free buf.
11986         (dsbt_get_initial_loadmaps): Adjust.
11987         * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
11988         * solib-target.c (solib_target_current_sos): Adjust.
11989         * tracepoint.c (sdata_make_value): Adjust.
11990         * xml-support.c (xinclude_start_include): Adjust.
11991         (xml_fetch_content_from_file): Adjust.
11992         * xml-support.h (xml_fetch_another): Change return type.
11993         (xml_fetch_content_from_file): Change return type.
11994         * xml-syscall.c (xml_init_syscalls_info): Adjust.
11995         * xml-tdesc.c (file_read_description_xml): Adjust.
11996         (fetch_available_features_from_target): Change return type.
11997         (target_fetch_description_xml): Adjust.
11998         (target_read_description_xml): Adjust.
11999
12000 2018-04-06  Tom Tromey  <tom@tromey.com>
12001
12002         * value.c (~value): Update.
12003         (struct value) <contents>: Now unique_xmalloc_ptr.
12004         (value_contents_bits_eq, allocate_value_contents)
12005         (value_contents_raw, value_contents_all_raw)
12006         (value_contents_for_printing, value_contents_for_printing_const)
12007         (set_value_enclosing_type): Update.
12008
12009 2018-04-06  Tom Tromey  <tom@tromey.com>
12010
12011         * value.c (range_s): Remove typedef, VEC.
12012         (struct range): Add operator<.
12013         (range_lessthan): Remove.
12014         (ranges_contain): Change type.
12015         (~value): Update.
12016         (struct value) <unavailable, optimized_out>: Now std::vector.
12017         (value_entirely_available)
12018         (value_entirely_covered_by_range_vector)
12019         (value_entirely_unavailable, value_entirely_optimized_out):
12020         Update.
12021         (insert_into_bit_range_vector): Change argument type.
12022         (find_first_range_overlap): Likewise.
12023         (struct ranges_and_idx, value_contents_bits_eq)
12024         (require_not_optimized_out, require_available): Update.
12025         (ranges_copy_adjusted): Change argument types.
12026         (value_optimized_out, value_copy, value_fetch_lazy): Update.
12027
12028 2018-04-06  Tom Tromey  <tom@tromey.com>
12029
12030         * value.c (~value): Update.
12031         (struct value) <parent>: Now a value_ref_ptr.
12032         (value_parent, set_value_parent, value_address, value_copy):
12033         Update.
12034
12035 2018-04-06  Tom Tromey  <tom@tromey.com>
12036
12037         * value.c (struct value): Add constructor, destructor, and member
12038         initializers.
12039         (allocate_value_lazy, value_decref): Update.
12040
12041 2018-04-06  Tom Tromey  <tom@tromey.com>
12042
12043         * value.c (struct value) <released, next>: Remove.
12044         (all_values): Now a std::vector.
12045         (allocate_value_lazy): Update.
12046         (value_next): Remove.
12047         (value_mark, value_free_to_mark, release_value)
12048         (value_release_to_mark): Update.
12049
12050 2018-04-06  Tom Tromey  <tom@tromey.com>
12051
12052         * value.h (fetch_subexp_value, value_release_to_mark): Update.
12053         (free_value_chain): Remove.
12054         * value.c (free_value_chain): Remove.
12055         (value_release_to_mark): Return a std::vector.
12056         * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
12057         std::vector.
12058         (check_condition): Update.
12059         * eval.c (fetch_subexp_value): Change "val_chain" to a
12060         std::vector.
12061         * breakpoint.c (update_watchpoint): Update.
12062         (can_use_hardware_watchpoint): Change "vals" to a std::vector.
12063
12064 2018-04-06  Tom Tromey  <tom@tromey.com>
12065
12066         * value.h (free_all_values): Remove.
12067         * value.c (free_all_values): Remove.
12068
12069 2018-04-06  Tom Tromey  <tom@tromey.com>
12070
12071         * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
12072         (value_history_chain, value_history_count): Remove.
12073         (value_history): New global.
12074         (record_latest_value, access_value_history, show_values)
12075         (preserve_values): Update.
12076
12077 2018-04-06  Tom Tromey  <tom@tromey.com>
12078
12079         * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
12080         * varobj.c (varobj_set_display_format, varobj_set_value)
12081         (install_default_visualizer, construct_visualizer)
12082         (install_new_value, ~varobj, varobj_get_value_type)
12083         (my_value_of_variable, varobj_editable_p): Update.
12084         * c-varobj.c (c_describe_child, c_value_of_variable)
12085         (cplus_number_of_children, cplus_describe_child): Update.
12086         * ada-varobj.c (ada_number_of_children, ada_name_of_child)
12087         (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
12088         (ada_value_of_variable, ada_value_is_changeable_p): Update.
12089
12090 2018-04-06  Tom Tromey  <tom@tromey.com>
12091
12092         * printcmd.c (last_examine_address): Change type to
12093         value_ref_ptr.
12094         (do_examine, x_command): Update.
12095
12096 2018-04-06  Tom Tromey  <tom@tromey.com>
12097
12098         * value.c (release_value): Update.
12099         * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
12100         (struct bpstats) <val>: Now a value_ref_ptr.
12101         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12102         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12103         (~watchpoint, print_it_watchpoint, watch_command_1)
12104         (invalidate_bp_value_on_memory_change): Update.
12105
12106 2018-04-06  Tom Tromey  <tom@tromey.com>
12107
12108         * varobj.c (varobj_clear_saved_item)
12109         (update_dynamic_varobj_children, install_new_value, ~varobj):
12110         Update.
12111         * value.h (value_incref): Move declaration earlier.
12112         (value_decref): Rename from value_free.
12113         (struct value_ref_policy): New.
12114         (value_ref_ptr): New typedef.
12115         (struct value_deleter): Remove.
12116         (gdb_value_up): Remove typedef.
12117         (release_value): Change return type.
12118         (release_value_or_incref): Remove.
12119         * value.c (set_value_parent): Update.
12120         (value_incref): Change return type.
12121         (value_decref): Rename from value_free.
12122         (value_free_to_mark, free_all_values, free_value_chain): Update.
12123         (release_value): Return value_ref_ptr.
12124         (release_value_or_incref): Remove.
12125         (record_latest_value, set_internalvar, clear_internalvar):
12126         Update.
12127         * stack.c (info_frame_command): Don't call value_free.
12128         * python/py-value.c (valpy_dealloc, valpy_new)
12129         (value_to_value_object): Update.
12130         * printcmd.c (do_examine): Update.
12131         * opencl-lang.c (lval_func_free_closure): Update.
12132         * mi/mi-main.c (register_changed_p): Don't call value_free.
12133         * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
12134         * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
12135         * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
12136         value_free.
12137         * guile/scm-value.c (vlscm_free_value_smob)
12138         (vlscm_scm_from_value): Update.
12139         * frame.c (frame_register_unwind, frame_unwind_register_signed)
12140         (frame_unwind_register_unsigned, get_frame_register_bytes)
12141         (put_frame_register_bytes): Don't call value_free.
12142         * findvar.c (address_from_register): Don't call value_free.
12143         * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
12144         * dwarf2loc.c (entry_data_value_free_closure)
12145         (value_of_dwarf_reg_entry, free_pieced_value_closure)
12146         (dwarf2_evaluate_loc_desc_full): Update.
12147         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12148         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12149         (~watchpoint, watch_command_1)
12150         (invalidate_bp_value_on_memory_change): Update.
12151         * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
12152
12153 2018-04-06  Simon Marchi  <simon.marchi@polymtl.ca>
12154
12155         PR gdb/23022
12156         * warning.m4: Add -Wno-error=deprecated-register.
12157         * configure: Re-generate.
12158
12159 2018-04-05  Tom Tromey  <tom@tromey.com>
12160
12161         * linespec.h: Remove include of "vec.h".
12162
12163 2018-04-05  Tom Tromey  <tom@tromey.com>
12164
12165         * linespec.c (typep): Remove typedef.
12166         (find_methods, find_superclass_methods): Take a std::vector.
12167         (find_method): Use std::vector.
12168
12169 2018-04-05  Tom Tromey  <tom@tromey.com>
12170
12171         * utils.c (compare_strings): Remove.
12172         * utils.h (compare_strings): Remove.
12173         * objc-lang.h (find_imps): Update.
12174         * objc-lang.c (find_methods): Take a std::vector.
12175         (uniquify_strings, find_imps): Likewise.
12176         * linespec.c (find_methods): Take a std::vector.
12177         (decode_objc): Use std::vector.
12178         (add_all_symbol_names_from_pspace, find_superclass_methods): Take
12179         a std::vector.
12180         (find_method, find_function_symbols): Use std::vector.
12181
12182 2018-04-05  Tom Tromey  <tom@tromey.com>
12183
12184         * completer.c (completion_tracker::completion_tracker): Remove
12185         cast.
12186         (completion_tracker::discard_completions): Likewise.
12187         * breakpoint.c (ambiguous_names_p): Remove cast.
12188         * ada-lang.c (_initialize_ada_language): Remove cast.
12189         * utils.h (streq): Update.
12190         (streq_hash): Add new declaration.
12191         * utils.c (streq): Return bool.
12192         (streq_hash): New function.
12193
12194 2018-04-05  Tom Tromey  <tom@tromey.com>
12195
12196         * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
12197         Remove a string copy.
12198
12199 2018-04-05  Tom Tromey  <tom@tromey.com>
12200
12201         * linespec.c (filter_results): Use std::vector.
12202         (decode_line_2, decode_line_full): Update.
12203
12204 2018-04-05  Tom Tromey  <tom@tromey.com>
12205
12206         * linespec.c (canonical_to_fullform): Return std::string.
12207         (filter_results): Update.
12208         (struct decode_line_2_item): Add constructor.
12209         <fullform, displayform>: Now std::string.
12210         (decode_line_2_compare_items): Now a std::sort comparator.
12211         (decode_line_2): Update.
12212
12213 2018-04-05  Tom Tromey  <tom@tromey.com>
12214
12215         * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
12216         (unexpected_linespec_error): Update.
12217         (linespec_parse_basic, parse_linespec): Update.
12218
12219 2018-04-05  Tom Tromey  <tom@tromey.com>
12220
12221         * linespec.c (linespec_parse_basic): Reindent.
12222
12223 2018-04-05  Tom Tromey  <tom@tromey.com>
12224
12225         * minsyms.h (iterate_over_minimal_symbols): Update.
12226         * minsyms.c (iterate_over_minimal_symbols): Take a
12227         gdb::function_view.
12228         * linespec.c (struct collect_minsyms): Remove.
12229         (compare_msyms): Now a std::sort comparator.
12230         (add_minsym): Add parameters.
12231         (search_minsyms_for_name): Update.  Use std::vector.
12232
12233 2018-04-03  Tom Tromey  <tom@tromey.com>
12234
12235         * mipsread.c (read_alphacoff_dynamic_symtab): Use
12236         gdb::byte_vector.
12237
12238 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
12239
12240         * MAINTAINERS (Write After Approval): Add Weimin Pan.
12241
12242 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
12243
12244         PR gdb/16959
12245         * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when 
12246         printing static type.
12247
12248 2018-04-01  Tom Tromey  <tom@tromey.com>
12249
12250         * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
12251         (rs6000_xfer_shared_libraries): Update.
12252
12253 2018-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
12254
12255         * common/gdb_vecs.h (char_ptr): Remove.
12256         * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
12257
12258 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
12259
12260         * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
12261         with std::vector.
12262         * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
12263
12264 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
12265
12266         * tracepoint.h (struct uploaded_tp): Initialize fields.
12267         <actions, step_actions, cmd_strings>: Change type to
12268         std::vector<char *>.
12269         * tracepoint.c (get_uploaded_tp): Allocate with new.
12270         (free_uploaded_tps): Free with delete.
12271         (parse_tracepoint_definition): Adjust to std::vector change.
12272         * breakpoint.c (read_uploaded_action): Likewise.
12273         (create_tracepoint_from_upload): Likewise.
12274         * ctf.c (ctf_write_uploaded_tp): Likewise.
12275         (SET_ARRAY_FIELD): Likewise.
12276         * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
12277
12278 2018-03-30  Tom Tromey  <tom@tromey.com>
12279
12280         * solib-svr4.c (lm_info_read): Use gdb::byte_vector.  Return
12281         std::unique_ptr.
12282         (svr4_keep_data_in_core): Update.
12283         (svr4_read_so_list): Update.
12284
12285 2018-03-30  Tom Tromey  <tom@tromey.com>
12286
12287         * windows-nat.c (handle_output_debug_string, handle_exception):
12288         Update.
12289         * target.h (target_read_string): Update.
12290         * target.c (target_read_string): Change "string" to
12291         unique_xmalloc_ptr.
12292         * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
12293         Update.
12294         * solib-frv.c (frv_current_sos): Update.
12295         * solib-dsbt.c (dsbt_current_sos): Update.
12296         * solib-darwin.c (darwin_current_sos): Update.
12297         * linux-thread-db.c (inferior_has_bug): Update.
12298         * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
12299         Update.  Remove alloca.
12300         * ada-lang.c (ada_main_name): Update.
12301
12302 2018-03-30  Tom Tromey  <tom@tromey.com>
12303
12304         * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
12305         (struct dwo_file_deleter): New.
12306         (dwo_file_up): New typedef.
12307         (open_and_init_dwo_file): Use dwo_file_up.
12308         (free_dwo_file_cleanup): Remove.
12309
12310 2018-03-30  Tom Tromey  <tom@tromey.com>
12311
12312         * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
12313         (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
12314
12315 2018-03-30  Tom Tromey  <tom@tromey.com>
12316
12317         * dwarf2read.c (class free_cached_comp_units): New class.
12318         (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
12319         (free_cached_comp_units): Remove function.
12320
12321 2018-03-30  Tom Tromey  <tom@tromey.com>
12322
12323         * utils.h (make_cleanup_unpush_target): Remove.
12324         * inf-ptrace.c (struct target_unpusher): New.
12325         (target_unpush_up) New typedef.
12326         (inf_ptrace_create_inferior, inf_ptrace_attach): Use
12327         target_unpush_up.
12328         * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
12329
12330 2018-03-27  Tom Tromey  <tom@tromey.com>
12331
12332         * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
12333
12334 2018-03-27  Pedro Alves  <palves@redhat.com>
12335             Tom Tromey  <tom@tromey.com>
12336
12337         * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
12338         destructor.  Now a class.
12339         (gdb_readline_wrapper_cleanup): Remove function.
12340         (gdb_readline_wrapper): Remove cleanups.
12341
12342 2018-03-27  Tom Tromey  <tom@tromey.com>
12343
12344         * typeprint.h (struct type_print_options) <local_typedefs,
12345         global_typedefs>: Remove "struct" keyword.
12346         (class typedef_hash_table): New class.
12347         (recursively_update_typedef_hash, add_template_parameters)
12348         (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
12349         (find_typedef_in_hash): Don't declare.
12350         * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
12351         (typedef_hash_table::recursively_update): Rename from
12352         recursively_update_typedef_hash.  Now a member.
12353         (typedef_hash_table::add_template_parameters): Rename from
12354         add_template_parameters.  Now a member.
12355         (typedef_hash_table::typedef_hash_table): Now a constructor;
12356         rename from create_typedef_hash.
12357         (typedef_hash_table::~typedef_hash_table): Now a destructor;
12358         rename from free_typedef_hash.
12359         (do_free_typedef_hash, make_cleanup_free_typedef_hash)
12360         (do_free_global_table): Remove.
12361         (typedef_hash_table::typedef_hash_table): New constructor; renamed
12362         from copy_type_recursive.
12363         (create_global_typedef_table): Remove.
12364         (typedef_hash_table::find_global_typedef): Now a member of
12365         typedef_hash_table.
12366         (typedef_hash_table::find_typedef): Rename from
12367         find_typedef_in_hash; now a member.
12368         (whatis_exp): Update.
12369         * extension.h (struct ext_lang_type_printers): Add constructor and
12370         destructor.
12371         (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
12372         declare.
12373         * extension.c (ext_lang_type_printers::ext_lang_type_printers):
12374         Now a constructor; rename from start_ext_lang_type_printers.
12375         (ext_lang_type_printers): Now a destructor; rename from
12376         free_ext_lang_type_printers.
12377         * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
12378         Update.
12379         (c_type_print_base_struct_union): Update.  Remove cleanups.
12380
12381 2018-03-27  Tom Tromey  <tom@tromey.com>
12382
12383         * dwarf-index-write.c: Include <cmath>.
12384
12385 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
12386
12387         * NEWS: Add entry describing new "set|show varsize-limit" command.
12388         * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
12389         command.
12390         * printcmd.c (_initialize_printcmd): Add "set var" alias of
12391         "set variable".
12392
12393 2018-03-27  Simon Marchi  <simon.marchi@ericsson.com>
12394
12395         * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
12396         dwarf-index-write.c
12397         (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
12398         * dwarf-index-common.c: New file.
12399         * dwarf-index-common.h: New file.
12400         * dwarf-index-write.c: New file.
12401         * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
12402         (struct dwarf2_section_info): Move from here.
12403         (dwarf2_section_info_def): Likewise.
12404         (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
12405         (offset_type): Likewise.
12406         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
12407         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
12408         (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
12409         (byte_swap): Likewise.
12410         (MAYBE_SWAP): Likewise.
12411         (dwarf2_per_cu_ptr): Likewise.
12412         (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
12413         (struct tu_stats): Likewise.
12414         (struct dwarf2_per_objfile): Likewise.
12415         (struct dwarf2_per_cu_data): Likewise.
12416         (struct signatured_type): Likewise.
12417         (sig_type_ptr): Likewise.
12418         (DEF_VEC_P (sig_type_ptr)): Likewise.
12419         (INDEX4_SUFFIX): Likewise.
12420         (INDEX5_SUFFIX): Likewise.
12421         (DEBUG_STR_SUFFIX): Likewise.
12422         (dwarf2_read_section): Make non-static.
12423         (mapped_index_string_hash): Move from here.
12424         (dwarf5_djb_hash): Likewise.
12425         (file_write): Likewise.
12426         (class data_buf): Likewise.
12427         (struct symtab_index_entry): Likewise.
12428         (struct mapped_symtab): Likewise.
12429         (find_slot): Likewise.
12430         (hash_expand): Likewise.
12431         (add_index_entry): Likewise.
12432         (uniquify_cu_indices): Likewise.
12433         (class c_str_view): Likewise.
12434         (class c_str_view_hasher): Likewise.
12435         (class vector_hasher): Likewise.
12436         (write_hash_table): Likewise.
12437         (psym_index_map): Likewise.
12438         (struct addrmap_index_data): Likewise.
12439         (add_address_entry): Likewise.
12440         (add_address_entry_worker): Likewise.
12441         (write_address_map): Likewise.
12442         (symbol_kind): Likewise.
12443         (write_psymbols): Likewise.
12444         (struct signatured_type_index_data): Likewise.
12445         (write_one_signatured_type): Likewise.
12446         (recursively_count_psymbols): Likewise.
12447         (recursively_write_psymbols): Likewise.
12448         (class debug_names): Likewise.
12449         (check_dwarf64_offsets): Likewise.
12450         (psyms_seen_size): Likewise.
12451         (write_gdbindex): Likewise.
12452         (write_debug_names): Likewise.
12453         (assert_file_size): Likewise.
12454         (write_psymtabs_to_index): Likewise.
12455         (save_gdb_index_command): Likewise.
12456         (_initialize_dwarf2_read): Don't register the "save gdb-index"
12457         command.
12458         * dwarf2read.h: New file.
12459
12460 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
12461
12462         PR gdb/22670
12463         * dwarf2read.c (dwarf2_physname): Do not return the demangled
12464         symbol name if the CU's language stores symbol names in linkage
12465         format.
12466         * language.h (struct language_defn)
12467         <la_store_sym_names_in_linkage_form_p>: New field.  Adjust
12468         all instances of this struct.
12469
12470 2018-03-26  Tom Tromey  <tom@tromey.com>
12471
12472         * stack.c (backtrace_command_1): Remove verbose code.
12473
12474 2018-03-26  Tom Tromey  <tom@tromey.com>
12475
12476         * python/py-framefilter.c (py_print_type): Don't catch
12477         exceptions.  Return void.
12478         (py_print_value): Likewise.
12479         (py_print_single_arg): Likewise.
12480         (enumerate_args): Don't catch exceptions.
12481         (py_print_args): Likewise.
12482         (py_print_frame): Likewise.
12483         (gdbpy_apply_frame_filter): Catch exceptions here.
12484
12485 2018-03-26  Tom Tromey  <tom@tromey.com>
12486
12487         * stack.c (_initialize_stack): Remove trailing newlines from help
12488         text.  Add "Usage" line to "backtrace" help.
12489
12490 2018-03-26  Tom Tromey  <tom@tromey.com>
12491
12492         PR python/16486:
12493         * python/py-framefilter.c (py_print_args): Call wrap_hint.
12494
12495 2018-03-26  Tom Tromey  <tom@tromey.com>
12496
12497         * python/py-framefilter.c (py_print_single_arg): Return
12498         EXT_LANG_BT_ERROR from catch.
12499
12500 2018-03-26  Tom Tromey  <tom@tromey.com>
12501
12502         PR backtrace/15584:
12503         * stack.c (backtrace_command_1): Move some code into no-filters
12504         "if".
12505
12506 2018-03-26  Tom Tromey  <tom@tromey.com>
12507
12508         * python/py-framefilter.c (throw_quit_or_print_exception): New
12509         function.
12510         (gdbpy_apply_frame_filter): Use it.
12511
12512 2018-03-26  Tom Tromey  <tom@tromey.com>
12513
12514         PR cli/17716:
12515         * python/py-framefilter.c (py_print_type, py_print_value)
12516         (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
12517         RETURN_MASK_ERROR.
12518
12519 2018-03-26  Tom Tromey  <tom@tromey.com>
12520
12521         * python/py-framefilter.c (enumerate_args): Use
12522         gdb::unique_xmalloc_ptr.
12523
12524 2018-03-26  Tom Tromey  <tom@tromey.com>
12525
12526         * python/py-framefilter.c (py_print_frame): Return
12527         EXT_LANG_BT_OK.
12528         (gdbpy_apply_frame_filter): Update comment.
12529         * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
12530         Remove.
12531         <EXT_LANG_BT_NO_FILTERS>: Change value.
12532
12533 2018-03-26  Tom Tromey  <tom@tromey.com>
12534
12535         PR backtrace/15582:
12536         * stack.c (backtrace_command): Parse "hide" argument.
12537         * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
12538         * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
12539         constant.
12540
12541 2018-03-26  Tom Tromey  <tom@tromey.com>
12542
12543         * stack.c (backtrace_command_1): Remove "show_locals" parameter,
12544         add "flags".
12545         (backtrace_command): Remove "fulltrace", add "flags".
12546
12547 2018-03-26  Tom Tromey  <tom@tromey.com>
12548
12549         * stack.c (backtrace_command): Rewrite command line parsing.
12550
12551 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
12552
12553         * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
12554
12555 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
12556
12557         * filename-seen-cache.h: Add include guard.
12558
12559 2018-03-26  Keith Seitz  <keiths@redhat.com>
12560
12561         * symfile.c (place_section): Remove "struct" from section_addr_info
12562         in comment.
12563         * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
12564         "struct" keyword from section_addr_info.
12565
12566 2018-03-26  Alan Hayward  <alan.hayward@arm.com>
12567
12568         * regformats/regdef.h (reg): Add constructors.
12569
12570 2018-03-25  Pedro Alves  <palves@redhat.com>
12571
12572         * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
12573         if then/else bodies in var_func_name extraction.
12574
12575 2018-03-23  Weimin Pan  <weimin.pan@oracle.com>
12576
12577         * minsyms.c (lookup_minimal_symbol_and_objfile): Use
12578         lookup_minimal_symbol() to find symbol entry.
12579         * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
12580
12581 2018-03-23  Keith Seitz  <keiths@redhat.com>
12582
12583         PR c++/22968
12584         * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
12585         nested type definitions for C++, too.
12586
12587 2018-03-23  Tom Tromey  <tom@tromey.com>
12588
12589         * machoread.c (struct oso_el): Add a constructor.  Don't define as
12590         a typedef.
12591         (macho_register_oso): Remove.
12592         (macho_symtab_read): Take a std::vector.
12593         (oso_el_compare_name): Now a std::sort comparator.
12594         (macho_symfile_read_all_oso): Take a std::vector.
12595         (macho_symfile_read): Use std::vector.  Remove cleanups.
12596
12597 2018-03-22  Tom Tromey  <tom@tromey.com>
12598
12599         * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
12600         (record_full_goto_bookmark): Use std::string.
12601
12602 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
12603
12604         PR tdep/18295
12605         * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
12606         a single mask.
12607
12608 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
12609
12610         * rs6000-tdep.c (store_insn_p): New function.
12611         (skip_prologue): New variable alloca_reg_offset. Set lr_reg
12612         and cr_reg to their unshifted values. Use store_insn_p to
12613         match LR saves using either R1 or fdata->alloca_reg. Use
12614         store_insn_p to match CR saves. Set alloca_reg_offset
12615         when alloca_reg and framep are set. Remove lr_reg shift
12616         when assigning to fdata->lr_register.
12617
12618 2018-03-22  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12619
12620         * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
12621         command line args instead of emitting a warning.
12622
12623 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
12624
12625         * tracepoint.h (struct static_tracepoint_marker): Initialize
12626         fields, define default constructor, move constructor and move
12627         assignment, disable the rest.
12628         <str_id, extra>: Make std::string.
12629         (release_static_tracepoint_marker): Remove.
12630         (free_current_marker): Remove.
12631         * tracepoint.c (free_current_marker): Remove.
12632         (parse_static_tracepoint_marker_definition): Adjust to
12633         std::string, use new hex2str overload.
12634         (release_static_tracepoint_marker): Remove.
12635         (print_one_static_tracepoint_marker): Get marker by reference
12636         and adjust to std::string.
12637         (info_static_tracepoint_markers_command): Adjust to std::vector
12638         changes
12639         * target.h (static_tracepoint_marker_p): Remove typedef.
12640         (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
12641         (struct target_ops) <to_static_tracepoint_marker_at>: Return
12642         bool.
12643         <to_static_tracepoint_markers_by_strid>: Return std::vector.
12644         * target-debug.h
12645         (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
12646         (target_debug_print_std_vector_static_tracepoint_marker): New.
12647         (target_debug_print_struct_static_tracepoint_marker_p): Rename
12648         to...
12649         (target_debug_print_static_tracepoint_marker_p): ... this.
12650         * target-delegates.c: Re-generate.
12651         * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
12652         Make std::string.
12653         * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
12654         (decode_static_tracepoint_spec): Adjust to std::vector.
12655         (tracepoint_print_one_detail): Adjust to std::string.
12656         (strace_marker_decode_location): Adjust to std::string.
12657         (update_static_tracepoint): Adjust to std::string, remove call
12658         to release_static_tracepoint_marker.
12659         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
12660         Adjust to std::vector.
12661         * remote.c (remote_static_tracepoint_marker_at): Return bool.
12662         (remote_static_tracepoint_markers_by_strid): Adjust to
12663         std::vector.
12664         * common/rsp-low.h (hex2str): New overload with explicit count
12665         of bytes.
12666         * common/rsp-low.c (hex2str): New overload with explicit count
12667         of bytes.
12668         * unittests/rsp-low-selftests.c (test_hex2str): New function.
12669         (_initialize_rsp_low_selftests): Add test_hex2str test.
12670         * unittests/tracepoint-selftests.c
12671         (test_parse_static_tracepoint_marker_definition): Adjust to
12672         std::string.
12673
12674 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
12675
12676         * tracepoint.c (parse_static_tracepoint_marker_definition):
12677         Consider case where the definition is followed by more
12678         definitions.
12679         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12680         tracepoint-selftests.c.
12681         * unittests/tracepoint-selftests.c: New.
12682
12683 2018-03-21  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
12684
12685         * MAINTAINERS (Write After Approval): Add Pedro Franco de
12686         Carvalho.
12687
12688 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
12689
12690         * symtab.c (find_pc_sect_line): fixed indentation.
12691
12692 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
12693
12694         * symtab.c (find_pc_sect_line): now uses binary search.
12695
12696 2018-03-19  Tom Tromey  <tom@tromey.com>
12697
12698         * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
12699         "IDENT" production.
12700
12701 2018-03-19  Pedro Alves  <palves@redhat.com>
12702             Tom Tromey  <tom@tromey.com>
12703
12704         * unittests/observable-selftests.c: New file.
12705         * common/observable.h: New file.
12706         * observable.h: New file.
12707         * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
12708         arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
12709         breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
12710         corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
12711         extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
12712         infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
12713         linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
12714         mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
12715         ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
12716         python/py-breakpoint.c, python/py-finishbreakpoint.c,
12717         python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
12718         record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
12719         riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
12720         spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
12721         symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
12722         tui/tui-interp.c, valops.c: Update all users.
12723         * tui/tui-hooks.c (tui_bp_created_observer)
12724         (tui_bp_deleted_observer, tui_bp_modified_observer)
12725         (tui_inferior_exit_observer, tui_before_prompt_observer)
12726         (tui_normal_stop_observer, tui_register_changed_observer):
12727         Remove.
12728         (tui_observers_token): New global.
12729         (attach_or_detach, tui_attach_detach_observers): New functions.
12730         (tui_install_hooks, tui_remove_hooks): Use
12731         tui_attach_detach_observers.
12732         * record-btrace.c (record_btrace_thread_observer): Remove.
12733         (record_btrace_thread_observer_token): New global.
12734         * observer.sh: Remove.
12735         * observer.c: Rename to observable.c.
12736         * observable.c (namespace gdb_observers): Define new objects.
12737         (observer_debug): Move into gdb_observers namespace.
12738         (struct observer, struct observer_list, xalloc_observer_list_node)
12739         (xfree_observer_list_node, generic_observer_attach)
12740         (generic_observer_detach, generic_observer_notify): Remove.
12741         (_initialize_observer): Update.
12742         Don't include observer.inc.
12743         * Makefile.in (generated_files): Remove observer.h, observer.inc.
12744         (clean mostlyclean): Likewise.
12745         (observer.h, observer.inc): Remove targets.
12746         (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
12747         (COMMON_SFILES): Use observable.c, not observer.c.
12748         * .gitignore: Remove observer.h.
12749
12750 2018-03-18  Tom Tromey  <tom@tromey.com>
12751
12752         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
12753         gdb::def_vector.
12754         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
12755
12756 2018-03-17  Tom Tromey  <tom@tromey.com>
12757
12758         * auto-load.c (auto_load_objfile_script_1): Use std::string.
12759
12760 2018-03-17  Tom Tromey  <tom@tromey.com>
12761
12762         * target.c (class scoped_target_fd): New.
12763         (target_fileio_close_cleanup): Remove.
12764         (target_fileio_read_alloc_1): Use scoped_target_fd.
12765
12766 2018-03-16  Simon Marchi  <simon.marchi@polymtl.ca>
12767
12768         * silent-rules.mk: New.
12769         * Makefile.in: Include silent-rules.mk
12770         (srcdir, VPATH, top_srcdir): Move up.
12771         (COMPILE): Add ECHO_CXX.
12772         (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
12773         (init.c): Add ECHO_INIT_C.
12774         (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
12775         (version.c): Add ECHO_GEN.
12776         (printcmd.o): Add ECHO_CXX.
12777         (target-float.o): Add ECHO_CXX.
12778         (ada-exp.o): Add ECHO_CXX.
12779         (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
12780         (insight$(EXEEXT)): Add ECHO_CXXLD.
12781         * gnulib/configure.ac: Add AM_SILENT_RULES.
12782         * gnulib/aclocal.m4: Re-generate.
12783         * gnulib/configure: Re-generate.
12784         * gnulib/import/Makefile.in: Re-generate.
12785
12786 2018-03-16  Tom Tromey  <tom@tromey.com>
12787
12788         * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
12789         * utils.h (make_cleanup_free_section_addr_info): Don't declare.
12790         * utils.c (do_free_section_addr_info)
12791         (make_cleanup_free_section_addr_info): Remove.
12792         * symfile.h (struct other_sections): Add constructor.
12793         (struct section_addr_info): Remove.
12794         (section_addr_info): New typedef.
12795         (struct sym_fns) <sym_offsets>: Change type of parameter.
12796         (build_section_addr_info_from_objfile)
12797         (relative_addr_info_to_section_offsets, addr_info_make_relative)
12798         (default_symfile_offsets, symbol_file_add)
12799         (symbol_file_add_from_bfd)
12800         (build_section_addr_info_from_section_table): Update.
12801         (alloc_section_addr_info, free_section_addr_info): Don't declare.
12802         * symfile.c (alloc_section_addr_info): Remove.
12803         (build_section_addr_info_from_section_table): Change return type.
12804         Update.
12805         (build_section_addr_info_from_bfd)
12806         (build_section_addr_info_from_objfile): Likewise.
12807         (free_section_addr_info): Remove.
12808         (relative_addr_info_to_section_offsets): Change type of "addrs".
12809         (addrs_section_compar): Now a std::sort comparator.
12810         (addrs_section_sort): Change return type.
12811         (addr_info_make_relative): Change type of "addrs".  Update.
12812         (default_symfile_offsets, syms_from_objfile_1)
12813         (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
12814         (symbol_file_add_separate): Update.
12815         (symbol_file_add): Change type of "addrs".  Update.
12816         (add_symbol_file_command): Update.  Remove cleanups.
12817         * symfile-mem.c (symbol_file_add_from_memory): Update.  Remove
12818         cleanups.
12819         * symfile-debug.c (debug_sym_offsets): Change type of "info".
12820         * solib.c (solib_read_symbols): Update.
12821         * objfiles.c (objfile_relocate): Update.  Remove cleanups.
12822         * machoread.c (macho_symfile_offsets): Update.
12823         * jit.c (jit_bfd_try_read_symtab): Update.
12824
12825 2018-03-15  Simon Marchi  <simon.marchi@polymtl.ca>
12826
12827         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12828         unittests/utils-selftests.c.
12829         * unittests/utils-selftests.c: New file.
12830
12831 2018-03-14  Tom Tromey  <tom@tromey.com>
12832
12833         PR cli/14977:
12834         * printcmd.c (printf_c_string, printf_wide_c_string): Special case
12835         for NULL.
12836
12837 2018-03-14  Tom Tromey  <tom@tromey.com>
12838
12839         PR cli/19918:
12840         * printcmd.c (printf_pointer): Allow "-" in format.
12841
12842 2018-03-14  Tom Tromey  <tom@tromey.com>
12843
12844         * printcmd.c (_initialize_printcmd): Add usage to printf.
12845
12846 2018-03-14  Yao Qi  <qiyao@sourceware.org>
12847
12848         * MAINTAINERS: Update my email address.
12849
12850 2018-03-13  Tom Tromey  <tom@tromey.com>
12851
12852         * machoread.c (macho_check_dsym): Change filenamep to a
12853         std::string*.
12854         (macho_symfile_read): Update.
12855         * symfile.c (load_command): Use std::string.
12856
12857 2018-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
12858
12859         * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
12860         to error message string.
12861         (riscv_register_name): Use xsnprintf instead of sprintf.
12862         (riscv_insn::fetch_instruction): Use gdb_assert instead of
12863         internal_error.
12864         (riscv_print_arg_location): Use gdb_assert_not_reached instead of
12865         error.
12866         (riscv_push_dummy_call): Likewise.
12867
12868 2018-03-12  Tom Tromey  <tom@tromey.com>
12869
12870         * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
12871         Use gdb::byte_vector.
12872         * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
12873
12874 2018-03-12  Yao Qi  <yao.qi@linaro.org>
12875
12876         * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
12877         parameter type to readable_regcache.
12878         * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
12879         the declaration.
12880
12881 2018-03-11  Tom Tromey  <tom@tromey.com>
12882
12883         * dwarf2read.c (struct nextfield): Add initializers.
12884         (struct nextfnfield): Remove.
12885         (struct fnfieldlist): Add initializers.  Remove "length" and
12886         "head", use std::vector.
12887         (struct decl_field_list): Remove.
12888         (struct field_info): Add initializers.
12889         <fields, baseclasses>: Now std::vector.
12890         <nbaseclasses, nfnfields, typedef_field_list_count,
12891         nested_types_list_count>: Remove.
12892         (dwarf2_add_field, dwarf2_add_type_defn)
12893         (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
12894         (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
12895         (process_structure_scope): Update.
12896
12897 2018-03-11  Tom Tromey  <tom@tromey.com>
12898
12899         * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
12900         for use by std::sort.
12901         (build_type_psymtabs_1): Use std::vector.
12902
12903 2018-03-09  Eli Zaretskii  <eliz@gnu.org>
12904
12905         * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
12906         and LIBMPFR in the printed configuration.
12907
12908 2018-03-08  Tom Tromey  <tom@tromey.com>
12909
12910         * source.c (get_filename_and_charpos): Use scoped_fd.
12911         * nto-procfs.c (procfs_open_1): Use scoped_fd.
12912         (procfs_pidlist): Likewise.
12913         * procfs.c (proc_get_LDT_entry): Use scoped_fd.
12914         (iterate_over_mappings): Likewise.
12915
12916 2018-03-08  Tom Tromey  <tom@tromey.com>
12917
12918         * infcall.c (struct call_return_meta_info)
12919         <stack_temporaries_enabled>: Remove.
12920         (get_call_return_value, call_function_by_hand_dummy): Update.
12921         * thread.c (disable_thread_stack_temporaries): Remove.
12922         (enable_thread_stack_temporaries): Remove.
12923         (thread_stack_temporaries_enabled_p): Return bool.
12924         (push_thread_stack_temporary, value_in_thread_stack_temporaries)
12925         (get_last_thread_stack_temporary): Update.
12926         * eval.c (evaluate_subexp): Update.
12927         * gdbthread.h (class enable_thread_stack_temporaries): Now a
12928         class, not a function.
12929         (value_ptr, value_vec): Remove typedefs.
12930         (class thread_info) <stack_temporaries_enabled>: Now bool.
12931         <stack_temporaries>: Now a std::vector.
12932         (thread_stack_temporaries_enabled_p)
12933         (value_in_thread_stack_temporaries): Return bool.
12934
12935 2018-03-08  Simon Marchi  <simon.marchi@ericsson.com>
12936
12937         * remote.c (putpkt_binary): Fix omitted bytes reporting.
12938         (getpkt_or_notif_sane_1): Likewise.
12939
12940 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
12941
12942         * build-id.c (build_id_to_debug_bfd): Use std::string.
12943
12944 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
12945
12946         * build-id.c (find_separate_debug_file_by_buildid): Return
12947         std::string.
12948         * build-id.h (find_separate_debug_file_by_buildid): Return
12949         std::string.
12950         * coffread.c (coff_symfile_read): Adjust to std::string.
12951         * elfread.c (elf_symfile_read): Adjust to std::string.
12952         * symfile.c (separate_debug_file_exists): Change parameter to
12953         std::string.
12954         (find_separate_debug_file): Return std::string.
12955         (find_separate_debug_file_by_debuglink): Return std::string.
12956         * symfile.h (find_separate_debug_file_by_debuglink): Return
12957         std::string.
12958
12959 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
12960
12961         * common/xml-utils.c (xml_escape_text): Move code to...
12962         (xml_escape_text_append): ... this new function.
12963         * common/xml-utils.h (xml_escape_text_append): New declaration.
12964         * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
12965         New function.
12966         (_initialize_xml_utils): register test_xml_escape_text_append as
12967         a selftest.
12968
12969 2018-03-07  Alan Hayward  <alan.hayward@arm.com>
12970
12971         * defs.h: Remove MAX_REGISTER_SIZE.
12972         * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
12973         asserts.
12974         * python/py-unwind.c (pyuw_sniffer): Likewise.
12975
12976 2018-03-07  Tom Tromey  <tom@tromey.com>
12977
12978         * linux-tdep.c (linux_info_proc): Update.
12979         * target.h (struct target_ops) <to_fileio_readlink>: Return
12980         optional<string>.
12981         (target_fileio_readlink): Return optional<string>.
12982         * remote.c (remote_hostio_readlink): Return optional<string>.
12983         * inf-child.c (inf_child_fileio_readlink): Return
12984         optional<string>.
12985         * target.c (target_fileio_readlink): Return optional<string>.
12986
12987 2018-03-07  Andrew Burgess  <andrew.burgess@embecosm.com>
12988
12989         * regcache.c (cooked_read_test): Add riscv to the list of
12990         architectures that have a save_reggroup.
12991
12992 2018-03-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12993
12994         * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12995         value is not a dynamic class object.
12996
12997 2018-03-06  Tom Tromey  <tom@tromey.com>
12998
12999         * rust-exp.y: Formatting fixes.
13000
13001 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13002
13003         * riscv-tdep.c (riscv_register_name): Remove target description
13004         support.
13005         (riscv_gdbarch_init): Remove target description check.
13006
13007 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13008
13009         * riscv-tdep.c: Remove 'Contributed by ...' lines from header
13010         comment.
13011         * riscv-tdep.h: Likewise.
13012
13013 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13014
13015         * riscv-tdep.c (riscv_pseudo_register_read): Delete.
13016         (riscv_pseudo_register_write): Delete.
13017         (riscv_gdbarch_init): Remove all use of pseudo registers.
13018
13019 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
13020
13021         * record-btrace.c (btrace_print_lines): Replace cleanup
13022         parameter with RAII equivalents.
13023         (btrace_insn_history): Replace cleanup with RAII equivalents.
13024         * ui-out.h (make_cleanup_ui_out_list_begin_end,
13025         make_cleanup_ui_out_tuple_begin_end): Remove.
13026         * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
13027         make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
13028         make_cleanup_ui_out_list_begin_end): Remove.
13029
13030 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
13031
13032         * record-btrace.c (record_btrace_maybe_mark_async_event): Change
13033         parameter types to std::vector.  Use bool.
13034         (record_btrace_wait): Replace VEC(tp_t) with
13035         std::vector<thread_info *>.
13036         * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
13037
13038 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
13039
13040         * record-btrace.c (record_btrace_disable_callback): Remove.
13041         (struct scoped_btrace_disable): New.
13042         (record_btrace_open): Use scoped_btrace_disable.
13043
13044 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13045
13046         * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
13047         reading values from registers.
13048
13049 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13050
13051         * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
13052         where appropriate.
13053
13054 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13055
13056         * riscv-tdep.c (riscv_print_arg_location): Add header comment,
13057         change parameter type.  Use GDB's print functions, and use
13058         core_addr_to_string where appropriate.
13059         (riscv_push_dummy_call): Use core_addr_to_string where
13060         appropriate, update call to riscv_print_arg_location, and reindent
13061         a few lines.
13062         (riscv_return_value): Update call to riscv_print_arg_location.
13063
13064 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13065             Tim Newsome <tim@sifive.com>
13066             Albert Ou <a0u@eecs.berkeley.edu>
13067             Darius Rad <darius@bluespec.com>
13068
13069         * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
13070         (HFILES_NO_SRCDIR): Add riscv-tdep.h.
13071         (ALLDEPFILES): Add riscv-tdep.c
13072         * configure.tgt: Add riscv support.
13073         * riscv-tdep.c: New file.
13074         * riscv-tdep.h: New file.
13075         * NEWS: Mention new target.
13076         * MAINTAINERS: Add entry for riscv.
13077
13078 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13079
13080         * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
13081         fields within aggregates.
13082
13083 2018-03-04  Simon Marchi  <simon.marchi@polymtl.ca>
13084
13085         * record-btrace.c (btrace_print_lines): Change type of flags to
13086         gdb_disassembly_flags.
13087
13088 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
13089
13090         * fbsd-nat.c: Include "inf-ptrace.h".
13091         (USE_SIGTRAP_SIGINFO): Conditionally define.
13092         [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
13093         (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
13094         [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
13095         function.
13096         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
13097         Likewise.
13098         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
13099         Likewise.
13100         (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
13101         "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
13102         "supports_stopped_by_hw_breakpoint" target methods.
13103
13104 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
13105
13106         * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
13107         * fbsd-nat.c (debug_fbsd_nat): New variable.
13108         (show_fbsd_nat_debug): New function.
13109         (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
13110         (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
13111
13112 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
13113
13114         * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
13115         * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
13116         prototype.
13117         * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
13118         (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
13119         method.
13120
13121 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13122
13123         * common/gdb_vecs.c (free_char_ptr_vec): Remove.
13124         * common/gdb_vecs.h (free_char_ptr_vec): Remove.
13125
13126 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13127
13128         * charset.c (struct charset_vector): New.
13129         (charsets): Change type to charset_vector.
13130         (find_charset_names): Adjust.
13131         (add_one): Adjust.
13132         (_initialize_charset): Adjust.
13133
13134 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13135
13136         * progspace.h (struct program_space) <deleted_solibs>: Change
13137         type to std::vector<std::string>.
13138         * progspace.c (clear_program_space_solib_cache): Adjust.
13139         * breakpoint.c (print_solib_event): Adjust.
13140         (check_status_catch_solib): Adjust.
13141         * solib.c (update_solib_list): Adjust.
13142         * ui-out.h (class ui_out) <field_string>: New overload.
13143         * ui-out.c (ui_out::field_string): New overload.
13144
13145 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13146
13147         * progspace.h (struct program_space): Add constructor and
13148         destructor, initialize fields.
13149         (add_program_space): Remove.
13150         * progspace.c (add_program_space): Rename to...
13151         (program_space::program_space): ... this.
13152         (release_program_space): Rename to...
13153         (program_space::~program_space): ... this.
13154         (delete_program_space): Use delete to delete program_space.
13155         (initialize_progspace): Use new to allocate program_space.
13156         * inferior.c (add_inferior_with_spaces): Likewise.
13157         (clone_inferior_command): Likewise.
13158         * infrun.c (follow_fork_inferior): Likewise.
13159         (handle_vfork_child_exec_or_exit): Likewise.
13160
13161 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13162
13163         * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
13164         (delim_string_to_char_ptr_vec): Return std::vector of
13165         gdb::unique_xmalloc_ptr.
13166         (dirnames_to_char_ptr_vec_append): Take std::vector of
13167         gdb::unique_xmalloc_ptr.
13168         (dirnames_to_char_ptr_vec): Return std::vector of
13169         gdb::unique_xmalloc_ptr.
13170         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
13171         Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
13172         (delim_string_to_char_ptr_vec): Return an std::vector of
13173         gdb::unique_xmalloc_ptr, adjust the code.
13174         (dirnames_to_char_ptr_vec_append): Take an std::vector of
13175         gdb::unique_xmalloc_ptr, adjust the code.
13176         (dirnames_to_char_ptr_vec): Return an std::vector of
13177         gdb::unique_xmalloc_ptr, adjust the code.
13178         * auto-load.c (auto_load_safe_path_vec): Change type to
13179         std::vector of gdb::unique_xmalloc_ptr.
13180         (auto_load_expand_dir_vars): Return an std::vector of
13181         gdb::unique_xmalloc_ptr, adjust the code.
13182         (auto_load_safe_path_vec_update): Adjust.
13183         (filename_is_in_auto_load_safe_path_vec): Adjust.
13184         (auto_load_objfile_script_1): Adjust.
13185         * build-id.c (build_id_to_debug_bfd): Adjust.
13186         * linux-thread-db.c (thread_db_load_search): Adjust.
13187         * source.c (add_path): Adjust.
13188         (openp): Adjust.
13189         * symfile.c (find_separate_debug_file): Adjust.
13190         * utils.c (do_free_char_ptr_vec): Remove.
13191         (make_cleanup_free_char_ptr_vec): Remove.
13192
13193 2018-03-01  Sergio Durigan Junior  <sergiodj@redhat.com>
13194
13195         PR gdb/22907
13196         * common/pathstuff.c: Conditionally include "<windows.h>".
13197
13198 2018-03-01  Georg Sauthoff  <mail@georg.so>
13199
13200         PR gdb/22888
13201         * gcore.in: Quote variables and switch interpreter to bash.
13202
13203 2018-03-01  Tom Tromey  <tom@tromey.com>
13204
13205         * dwarf2read.c (alloc_discriminant_info): Fix default_index
13206         assertion.  Add assertion for discriminant_index.
13207         (quirk_rust_enum): Use correct base type name in univariant case.
13208
13209 2018-03-01  Simon Marchi  <simon.marchi@ericsson.com>
13210
13211         * record.c (get_call_history_modifiers): Return a
13212         record_print_flags.
13213         (cmd_record_call_history): Adjust.
13214         * record-btrace.c (record_btrace_call_history): Adjust.
13215         (record_btrace_call_history_range): Adjust.
13216         (record_btrace_call_history_from): Adjust.
13217         * target-debug.h (target_debug_print_record_print_flags): New.
13218         * target-delegates.c: Re-generate.
13219         * target.c (target_call_history): Change flags type.
13220         (target_call_history_from): Likewise.
13221         (target_call_history_range): Likewise.
13222         * target.h (struct target_ops) <target_call_history>: Likewise.
13223         (target_call_history_from): Likewise.
13224         (target_call_history_range): Likewise.
13225
13226 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
13227             Simon Marchi  <simon.marchi@polymtl.ca>
13228
13229         * common/common-utils.c: Include "sys/stat.h".
13230         (is_regular_file): Move here from "source.c"; change return
13231         type to "bool".
13232         * common/common-utils.h (is_regular_file): New prototype.
13233         * common/pathstuff.c (contains_dir_separator): New function.
13234         * common/pathstuff.h (contains_dir_separator): New prototype.
13235         * source.c: Don't include "sys/stat.h".
13236         (is_regular_file): Move to "common/common-utils.c".
13237
13238 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
13239
13240         * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
13241         (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
13242         * auto-load.c: Include "common/pathstuff.h".
13243         * common/common-def.h (current_directory): Move here.
13244         * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
13245         function.
13246         * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
13247         prototype.
13248         * common/pathstuff.c: New file.
13249         * common/pathstuff.h: New file.
13250         * compile/compile.c: Include "common/pathstuff.h".
13251         * defs.h (current_directory): Move to "common/common-defs.h".
13252         * dwarf2read.c: Include "common/pathstuff.h".
13253         * exec.c: Likewise.
13254         * guile/scm-safe-call.c: Likewise.
13255         * linux-thread-db.c: Likewise.
13256         * main.c: Likewise.
13257         * nto-tdep.c: Likewise.
13258         * objfiles.c: Likewise.
13259         * source.c: Likewise.
13260         * symtab.c: Likewise.
13261         * utils.c: Include "common/pathstuff.h".
13262         (gdb_realpath): Move to "common/pathstuff.c".
13263         (gdb_realpath_keepfile): Likewise.
13264         (gdb_abspath): Likewise.
13265         * utils.h (gdb_realpath): Move to "common/pathstuff.h".
13266         (gdb_realpath_keepfile): Likewise.
13267         (gdb_abspath): Likewise.
13268
13269 2018-02-28  John Baldwin  <jhb@FreeBSD.org>
13270
13271         * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
13272         wildcard process pid for super_resume for kernels with a
13273         specific bug.
13274
13275 2018-02-27  Phil Muldoon  <pmuldoon@redhat.com>
13276
13277         * compile/compile.c (get_args): Add additional comments
13278         explaining function.
13279
13280 2018-02-27  Simon Marchi  <simon.marchi@polymtl.ca>
13281             Tom Tromey  <tom@tromey.com>
13282
13283         * target.h (memory_write_request_s): Remove typedef.  Don't define
13284         VEC.
13285         (target_write_memory_blocks): Change argument to std::vector.
13286         (struct memory_write_request): Add constructor.
13287         * target-memory.c (compare_block_starting_address): Return bool.
13288         Change argument types.
13289         (claim_memory): Change arguments to use std::vector.
13290         (split_regular_and_flash_blocks, blocks_to_erase)
13291         (compute_garbled_blocks): Likewise.
13292         (cleanup_request_data, cleanup_write_requests_vector): Remove.
13293         (target_write_memory_blocks): Change argument to std::vector.
13294         * symfile.c (struct load_section_data): Add constructor and
13295         destructor.  Use std::vector for "requests".
13296         (struct load_progress_data): Add initializers.
13297         (load_section_callback): Update.  Use "new".
13298         (clear_memory_write_data): Remove.
13299         (generic_load): Update.
13300
13301 2018-02-27  Alan Hayward  <alan.hayward@arm.com>
13302
13303         * arch/aarch64.h: Use common/tdesc.h.
13304
13305 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
13306
13307         * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
13308         architecture with a 64-bit ABI.
13309
13310 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
13311
13312         * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
13313         ahead of target description loading.
13314
13315 2018-02-26  Tom Tromey  <tom@tromey.com>
13316
13317         * stack.c (backtrace_command_1): Update.
13318         * python/python-internal.h (gdbpy_apply_frame_filter): Change type
13319         of "flags".
13320         * python/py-framefilter.c (py_print_frame)
13321         (gdbpy_apply_frame_filter): Change type of "flags".
13322         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
13323         of "flags".
13324         (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
13325         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
13326         * extension.h (enum frame_filter_flag): Rename from
13327         frame_filter_flags.
13328         (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
13329         (apply_ext_lang_frame_filter): Change type of "flags".
13330         * extension.c (apply_ext_lang_frame_filter): Change type of
13331         "flags".
13332         * extension-priv.h (struct extension_language_ops)
13333         <apply_frame_filter>: Change type of "flags".
13334
13335 2018-02-26  Tom Tromey  <tom@tromey.com>
13336
13337         PR python/16497:
13338         * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag.  Fix
13339         off-by-one in py_end computation.
13340         * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
13341         PRINT_MORE_FRAMES.
13342         * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
13343         constant.
13344
13345 2018-02-26  Tom Tromey  <tom@tromey.com>
13346
13347         * dwarf2read.c (struct variant_field): New.
13348         (struct nextfield) <variant>: New field.
13349         (dwarf2_add_field): Handle DW_TAG_variant_part.
13350         (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
13351         discriminated union.
13352         (read_structure_type): Handle DW_TAG_variant_part.
13353         (handle_struct_member_die): New function, extracted from
13354         process_structure_scope.  Handle DW_TAG_variant.
13355         (process_structure_scope): Handle discriminated unions.  Call
13356         handle_struct_member_die.
13357
13358 2018-02-26  Tom Tromey  <tom@tromey.com>
13359
13360         * rust-lang.h (rust_last_path_segment): Declare.
13361         * rust-lang.c (rust_last_path_segment): Now public.  Change
13362         contract.
13363         (struct disr_info): Remove.
13364         (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
13365         (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
13366         (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
13367         (rust_enum_p, rust_enum_variant): New function.
13368         (rust_underscore_fields): Remove "offset" parameter.
13369         (rust_print_enum): New function.
13370         (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
13371         <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
13372         (rust_print_struct_def): Add "for_rust_enum" parameter.  Handle
13373         enums.
13374         (rust_internal_print_type): New function, from rust_print_type.
13375         Remove enum code.
13376         (rust_print_type): Call rust_internal_print_type.
13377         (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
13378         Update enum handling.
13379         * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
13380         (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
13381         (rust_union_quirks): New functions.
13382         (process_full_comp_unit, process_full_type_unit): Call
13383         rust_union_quirks.
13384         (process_structure_scope): Update rust_unions if necessary.
13385
13386 2018-02-26  Tom Tromey  <tom@tromey.com>
13387
13388         * value.h (value_union_variant): Declare.
13389         * valops.c (value_union_variant): New function.
13390         * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
13391         (struct discriminant_info): New.
13392         (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
13393         enumerator.
13394         (struct main_type) <flag_discriminated_union>: New field.
13395
13396 2018-02-26  Tom Tromey  <tom@tromey.com>
13397
13398         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13399         unittests/unpack-selftests.c.
13400         * unittests/unpack-selftests.c: New file.
13401         * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
13402
13403 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13404
13405         * dwarf2read.c (struct partial_die_info) <read>: New method.
13406         (read_partial_die): Remove the declaration.
13407         (load_partial_dies): Update.
13408         (partial_die_info::partial_die_info):
13409         (read_partial_die): Change it to partial_die_info::read.
13410
13411 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13412
13413         * dwarf2read.c (struct partial_die_info) <fixup>: New method.
13414         (fixup_partial_die): Remove declaration.
13415         (scan_partial_symbols): Update.
13416         (partial_die_parent_scope): Likewise.
13417         (partial_die_full_name): Likewise.
13418         (fixup_partial_die): Change it to partial_die_info::fixup.
13419
13420 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13421
13422         * dwarf2read.c (read_partial_die): Update the declaration.
13423         (load_partial_dies): Caller update.
13424         (read_partial_die): Remove one argument abbrev_len.
13425
13426 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13427
13428         * dwarf2read.c (struct partial_die_info): Add ctor, delete
13429         assignment operator.
13430         (load_partial_dies): Use ctor and copy ctor.
13431         (read_partial_die): Update.
13432         (dwarf2_cu::find_partial_die): Use ctor.
13433
13434 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13435
13436         * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
13437         (find_partial_die_in_comp_unit): Change it to
13438         dwarf2_cu::find_partial_die.
13439         (find_partial_die): Update.
13440
13441 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13442
13443         * dwarf2read.c (read_partial_die): Remove the code checking abbrev
13444         is NULL.
13445
13446 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13447
13448         * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
13449
13450 2018-02-26  Alan Hayward  <alan.hayward@arm.com>
13451
13452         * arch/amd64.h: Use common/tdesc.h.
13453         * arch/i386.c: Likewise.
13454         * arch/i386.h: Likewise.
13455         * arch/tic6x.c: Likewise.
13456         * arch/tdesc.h: Move file from here...
13457         * common/tdesc.h: ...to here.
13458         * features/aarch64-core.c: Regenerate.
13459         * features/aarch64-fpu.c: Regenerate.
13460         * features/i386/32bit-avx.c: Regenerate.
13461         * features/i386/32bit-avx512.c: Regenerate.
13462         * features/i386/32bit-core.c: Regenerate.
13463         * features/i386/32bit-linux.c: Regenerate.
13464         * features/i386/32bit-mpx.c: Regenerate.
13465         * features/i386/32bit-pkeys.c: Regenerate.
13466         * features/i386/32bit-sse.c: Regenerate.
13467         * features/i386/64bit-avx.c: Regenerate.
13468         * features/i386/64bit-avx512.c: Regenerate.
13469         * features/i386/64bit-core.c: Regenerate.
13470         * features/i386/64bit-linux.c: Regenerate.
13471         * features/i386/64bit-mpx.c: Regenerate.
13472         * features/i386/64bit-pkeys.c: Regenerate.
13473         * features/i386/64bit-segments.c: Regenerate.
13474         * features/i386/64bit-sse.c: Regenerate.
13475         * features/i386/x32-core.c: Regenerate.
13476         * features/tic6x-c6xp.c: Regenerate.
13477         * features/tic6x-core.c: Regenerate.
13478         * features/tic6x-gp.c: Regenerate.
13479         * target-descriptions.c: Use common/tdesc.h.
13480         * target-descriptions.h: Likewise.
13481
13482 2018-02-24  Tom Tromey  <tom@tromey.com>
13483
13484         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
13485         (try_thread_db_load_from_dir, thread_db_load_search): Use
13486         std::string.
13487         (info_auto_load_libthread_db_compare): Return bool.  Change
13488         argument types.
13489         (info_auto_load_libthread_db): Use std::vector, std::string.
13490         Remove cleanups.
13491
13492 2018-02-24  Tom Tromey  <tom@tromey.com>
13493
13494         * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
13495         std::string.
13496         * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
13497         std::string*.
13498         * gdbarch.c: Rebuild.
13499         * gdbarch.h: Rebuild.
13500         * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
13501         * arch-utils.h (default_fast_tracepoint_valid_at): Update.
13502         * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
13503         std::string*.
13504
13505 2018-02-23  Simon Marchi  <simon.marchi@polymtl.ca>
13506
13507         * gdbtypes.h (sect_offset): Change type to uint64_t.
13508         (sect_offset_str): New function.
13509         * dwarf2read.c (create_addrmap_from_aranges): Use
13510         sect_offset_str.
13511         (error_check_comp_unit_head): Likewise.
13512         (create_debug_type_hash_table): Likewise.
13513         (read_cutu_die_from_dwo): Likewise.
13514         (init_cutu_and_read_dies): Likewise.
13515         (init_cutu_and_read_dies_no_follow): Likewise.
13516         (process_psymtab_comp_unit_reader): Likewise.
13517         (partial_die_parent_scope): Likewise.
13518         (peek_die_abbrev): Likewise.
13519         (process_queue): Likewise.
13520         (dwarf2_physname): Likewise.
13521         (read_namespace_alias): Likewise.
13522         (read_import_statement): Likewise.
13523         (create_dwo_cu_reader): Likewise.
13524         (create_cus_hash_table): Likewise.
13525         (lookup_dwo_cutu): Likewise.
13526         (inherit_abstract_dies): Likewise.
13527         (read_func_scope): Likewise.
13528         (read_call_site_scope): Likewise.
13529         (dwarf2_add_member_fn): Likewise.
13530         (read_common_block): Likewise.
13531         (read_module_type): Likewise.
13532         (read_typedef): Likewise.
13533         (read_subrange_type): Likewise.
13534         (load_partial_dies): Likewise.
13535         (read_partial_die): Likewise.
13536         (find_partial_die): Likewise.
13537         (read_str_index): Likewise.
13538         (dwarf2_string_attr): Likewise.
13539         (build_error_marker_type): Likewise.
13540         (lookup_die_type): Likewise.
13541         (dump_die_shallow): Likewise.
13542         (follow_die_ref): Likewise.
13543         (dwarf2_fetch_die_loc_sect_off): Likewise.
13544         (dwarf2_fetch_constant_bytes): Likewise.
13545         (follow_die_sig): Likewise.
13546         (get_signatured_type): Likewise.
13547         (get_DW_AT_signature_type): Likewise.
13548         (dwarf2_find_containing_comp_unit): Likewise.
13549         (set_die_type): Likewise.
13550
13551 2018-02-21  John Baldwin  <jhb@FreeBSD.org>
13552
13553         * arch/aarch64.c: Include "common-defs.h".
13554         * arch/amd64.c: Likewise.
13555         * arch/i386.c: Likewise.
13556
13557 2018-02-21  Tom Tromey  <tom@tromey.com>
13558
13559         * value.h: (extract_field_op): Update.
13560         * eval.c (extract_field_op): Return a const char *.
13561         * expression.h (parse_expression_for_completion): Update.
13562         * completer.c (complete_expression): Update.
13563         (add_struct_fields): Make fieldname const.
13564         * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
13565         (mark_completion_tag, parse_exp_in_context_1): Update.
13566         (parse_expression_for_completion): Change "name" to
13567         unique_xmalloc_ptr*.
13568
13569 2018-02-21  Tom Tromey  <tom@tromey.com>
13570
13571         * infcall.c (call_function_by_hand_dummy): Use std::vector.
13572
13573 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13574
13575         * avr-tdep.c (avr_read_pc): Change parameter type to
13576         readable_regcache.
13577         * gdbarch.sh (read_pc): Likewise.
13578         * gdbarch.c: Re-generated.
13579         * gdbarch.h: Re-generated.
13580         * hppa-tdep.c (hppa_read_pc): Change parameter type to
13581         readable_regcache.
13582         * ia64-tdep.c (ia64_read_pc): Likewise.
13583         * mips-tdep.c (mips_read_pc): Likewise.
13584         * spu-tdep.c (spu_read_pc): Likewise.
13585
13586 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13587
13588         * Makefile.in (COMMON_SFILES): Add regcache-dump.c
13589         * regcache-dump.c: New file.
13590         * regcache.c: Move register_dump to regcache-dump.c.
13591         (maintenance_print_registers): Likewise.
13592         (maintenance_print_raw_registers): Likewise.
13593         (maintenance_print_cooked_registers): Likewise.
13594         (maintenance_print_register_groups): Likewise.
13595         (maintenance_print_remote_registers): Likewise.
13596         (_initialize_regcache): Likewise.
13597         * regcache.h (register_dump): Moved from regcache.c.
13598
13599 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13600
13601         * regcache.c (regcache::regcache): Update.
13602         (regcache::invalidate): Move it to detached_regcache::invalidate.
13603         (get_thread_arch_aspace_regcache): Update.
13604         (regcache::raw_update): Update.
13605         (regcache::cooked_read): Remove some code.
13606         (regcache::cooked_read_value): Likewise.
13607         (regcache::raw_write): Remove assert on m_readonly_p.
13608         (regcache::raw_supply_integer): Move it to
13609         detached_regcache::raw_supply_integer.
13610         (regcache::raw_supply_zeroed): Likewise.
13611         * regcache.h (detached_regcache) <raw_supply_integer>: New
13612         declaration.
13613         <raw_supply_zeroed, invalidate>: Likewise.
13614         (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
13615         <invalidate>: Likewise.
13616         <m_readonly_p>: Removed.
13617
13618 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13619
13620         * infcmd.c (get_return_value): Let stop_regs point to
13621         get_current_regcache.
13622         * regcache.c (regcache::regcache): Remove.
13623         (register_dump_reg_buffer): New class.
13624         (regcache_print): Adjust.
13625         * regcache.h (regcache): Remove constructors.
13626
13627 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13628
13629         * regcache.c (class register_dump): New class.
13630         (register_dump_regcache, register_dump_none): New class.
13631         (register_dump_remote, register_dump_groups): New class.
13632         (regcache_print): Update.
13633         * regcache.h (regcache_dump_what): Move it to regcache.c.
13634         (regcache) <dump>: Remove.
13635
13636 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13637
13638         * jit.c (struct jit_unwind_private) <regcache>: Change its type to
13639          reg_buffer_rw *.
13640         (jit_unwind_reg_set_impl): Call raw_supply.
13641         (jit_frame_sniffer): Use reg_buffer_rw.
13642         * record-full.c (record_full_core_regbuf): Change its type.
13643         (record_full_core_open_1): Use reg_buffer_rw.
13644         (record_full_close): Likewise.
13645         (record_full_core_fetch_registers): Use regcache->raw_supply.
13646         (record_full_core_store_registers): Likewise.
13647         * regcache.c (regcache::get_register_status): Move it to
13648         reg_buffer.
13649         (regcache_raw_set_cached_value): Remove.
13650         (regcache::raw_set_cached_value): Remove.
13651         (regcache::raw_write): Call raw_supply.
13652         (regcache::raw_supply): Move it to reg_buffer_rw.
13653         * regcache.h (regcache_raw_set_cached_value): Remove.
13654         (reg_buffer_rw): New class.
13655
13656 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13657
13658         * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
13659         readonly_detached_regcache.
13660         (dummy_frame_prev_register): Use regcache->cooked_read.
13661         * frame.c (frame_save_as_regcache): Change return type.
13662         (frame_pop): Update.
13663         * frame.h (frame_save_as_regcache): Update declaration.
13664         * inferior.h (get_infcall_suspend_state_regcache): Update
13665         declaration.
13666         * infrun.c (infcall_suspend_state) <registers>: use
13667         readonly_detached_regcache.
13668         (save_infcall_suspend_state): Don't use regcache_dup.
13669         (get_infcall_suspend_state_regcache): Change return type.
13670         * linux-fork.c (struct fork_info) <savedregs>: Change to
13671         readonly_detached_regcache.
13672         <pc>: New field.
13673         (fork_save_infrun_state): Don't use regcache_dup.
13674         (info_checkpoints_command): Adjust.
13675         * mi/mi-main.c (register_changed_p): Update declaration.
13676         (mi_cmd_data_list_changed_registers): Use
13677         readonly_detached_regcache.
13678         (register_changed_p): Change parameter type to
13679         readonly_detached_regcache.
13680         * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
13681         readonly_detached_regcache.
13682         (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
13683         * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
13684         New.
13685         (regcache::save): Move it to reg_buffer.
13686         (regcache::restore): Change parameter type.
13687         (regcache_dup): Remove.
13688         * regcache.h (reg_buffer) <save>: New method.
13689         (readonly_detached_regcache): New class.
13690         * spu-tdep.c (spu2ppu_cache) <regcache>: Use
13691         readonly_detached_regcache.
13692         (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
13693
13694 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13695
13696         * frame.c (frame_save_as_regcache): Use regcache method save.
13697         (frame_pop): Use regcache method restore.
13698         * infrun.c (restore_infcall_suspend_state): Likewise.
13699         * linux-fork.c (fork_load_infrun_state): Likewise.
13700         * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
13701         save.
13702         * regcache.c (regcache_save): Remove.
13703         (regcache::restore): More asserts.
13704         (regcache_cpy): Remove.
13705         * regcache.h (regcache_save): Remove the declaration.
13706         (regcache::restore): Move from private to public.
13707         Remove the friend declaration of regcache_cpy.
13708         (regcache_cpy): Remove declaration.
13709
13710 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13711
13712         * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
13713         parameter type to 'readable_regcache *'.
13714         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13715         * arm-tdep.c (arm_neon_quad_read): Likewise.
13716         (arm_pseudo_read): Likewise.
13717         * avr-tdep.c (avr_pseudo_register_read): Likewise.
13718         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13719         * frv-tdep.c (frv_pseudo_register_read): Likewise.
13720         * gdbarch.c: Re-generated.
13721         * gdbarch.h: Re-generated.
13722         * gdbarch.sh (pseudo_register_read): Change parameter type to
13723         'readable_regcache *'.
13724         (pseudo_register_read_value): Likewise.
13725         * h8300-tdep.c (pseudo_from_raw_register): Likewise.
13726         (h8300_pseudo_register_read): Likewise.
13727         * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
13728         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13729         (i386_pseudo_register_read_into_value): Likewise.
13730         (i386_pseudo_register_read_value): Likewise.
13731         * i386-tdep.h (i386_pseudo_register_read_into_value): Update
13732         declaration.
13733         * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
13734         * m32c-tdep.c (m32c_raw_read): Likewise.
13735         (m32c_read_flg): Likewise.
13736         (m32c_banked_register): Likewise.
13737         (m32c_banked_read): Likewise.
13738         (m32c_sb_read): Likewise.
13739         (m32c_part_read): Likewise.
13740         (m32c_cat_read): Likewise.
13741         (m32c_r3r2r1r0_read): Likewise.
13742         (m32c_pseudo_register_read): Likewise.
13743         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13744         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13745         (mep_pseudo_cr64_read): Likewise.
13746         (mep_pseudo_register_read): Likewise.
13747         * mips-tdep.c (mips_pseudo_register_read): Likewise.
13748         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13749         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13750         * regcache.c (regcache::raw_read): Move it to readable_regcache.
13751         (regcache::cooked_read): Likewise.
13752         (regcache::cooked_read_value): Likewise.
13753         (regcache_cooked_read_signed):
13754         (regcache::cooked_read): Likewise.
13755         * regcache.h (readable_regcache): New class.
13756         (regcache): Inherit readable_regcache.  Move some methods to
13757         readable_regcache.
13758         * rl78-tdep.c (rl78_pseudo_register_read): Change
13759         parameter type to 'readable_regcache *'.
13760         * rs6000-tdep.c (do_regcache_raw_read): Remove.
13761         (e500_pseudo_register_read): Change parameter type to
13762         'readable_regcache *'.
13763         (dfp_pseudo_register_read): Likewise.
13764         (vsx_pseudo_register_read): Likewise.
13765         (efpr_pseudo_register_read): Likewise.
13766         * s390-tdep.c (s390_pseudo_register_read): Likewise.
13767         * sh-tdep.c (sh_pseudo_register_read): Likewise.
13768         * sh64-tdep.c (pseudo_register_read_portions): Likewise.
13769         (sh64_pseudo_register_read): Likewise.
13770         * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13771         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13772         * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13773         (spu_pseudo_register_read): Likewise.
13774         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13775         (xtensa_pseudo_register_read): Likewise.
13776
13777 2018-02-21  Yao Qi  <yao.qi@linaro.org>
13778
13779         * regcache.c (regcache::regcache): Call reg_buffer ctor.
13780         (regcache::arch): Move it to reg_buffer::arch.
13781         (regcache::register_buffer): Likewise.
13782         (regcache::assert_regnum): Likewise.
13783         (regcache::num_raw_registers): Likewise.
13784         * regcache.h (reg_buffer): New class.
13785         (regcache): Inherit reg_buffer.
13786
13787 2018-02-20  Simon Marchi  <simon.marchi@ericsson.com>
13788
13789         * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
13790         gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
13791
13792 2018-02-20  Markus Metzger  <markus.t.metzger@intel.com>
13793
13794         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
13795
13796 2018-02-19  Alan Hayward  <alan.hayward@arm.com>
13797
13798         * Makefile.in: (COMMON_SFILES): Add common/*.c files.
13799         (SFILES): Remove common/*.c files.
13800         (COMMON_OBS): Remove some *.o files built from common/*.c files.
13801         * common/common.host: Add common reference.
13802         * configure.ac: Likewise.
13803         * configure: Regenerate.
13804
13805 2018-02-16  Yao Qi  <yao.qi@linaro.org>
13806
13807         * block.c (block_namespace_info): Inherit allocate_on_obstack.
13808         (block_initialize_namespace): Use new.
13809         * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
13810         (dwarf2_free_objfile): Use delete.
13811         * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
13812         (copy_type_recursive): Use new.
13813         * gdb_obstack.h (allocate_on_obstack): New.
13814
13815 2018-02-15  Yao Qi  <yao.qi@linaro.org>
13816
13817         PR gdb/22849
13818         * inferior.c (exit_inferior_1): Reset inf->control.
13819
13820 2018-02-15  Joel Brobecker  <brobecker@adacore.com>
13821
13822         * ada-lang.c (ada_to_fixed_value_create): Delete advance
13823         declaration.
13824
13825 2018-02-14  Pedro Alves  <palves@redhat.com>
13826
13827         * frame-unwind.c (frame_unwind_try_unwinder): Always call
13828         frame_cleanup_after_sniffer on exception.
13829
13830 2018-02-14  Tom Tromey  <tom@tromey.com>
13831
13832         * solist.h (struct target_so_ops) <bfd_open>: Make pathname
13833         const.
13834         (solib_bfd_open): Make pathname const.
13835         * solib.c (solib_bfd_open): Make pathname const.
13836         * solib-spu.c (spu_bfd_fopen): Make name const.
13837         (spu_bfd_open): Make pathname const.
13838         * solib-darwin.c (darwin_bfd_open): Make pathname const.
13839         * solib-aix.c (solib_aix_bfd_open): Make pathname const.
13840
13841 2018-02-14  Tom Tromey  <tom@tromey.com>
13842
13843         * symfile.c (symfile_bfd_open): Update.
13844         * source.h (openp, source_full_path_of, find_and_open_source):
13845         Change argument type to unique_xmalloc_ptr.
13846         * source.c (openp): Take a unique_xmalloc_ptr.
13847         (source_full_path_of, find_and_open_source): Likewise.
13848         (open_source_file, symtab_to_fullname): Update.
13849         * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
13850         unique_xmalloc_ptr.
13851         * solib.c (solib_find_1): Use unique_xmalloc_ptr.
13852         (exec_file_find): Update.
13853         * psymtab.c (psymtab_to_fullname): Update.
13854         * nto-tdep.h (nto_find_and_open_solib): Update.
13855         * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
13856         unique_xmalloc_ptr.
13857         * exec.c (exec_file_attach): Update.
13858         * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
13859         * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
13860
13861 2018-02-14  Tom Tromey  <tom@tromey.com>
13862
13863         * solib.c: Include source.h.
13864         * nto-tdep.c: Include source.h.
13865         * mi/mi-cmd-env.c: Include source.h.
13866         * infcmd.c: Include source.h.
13867         * exec.c: Include source.h.
13868         * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
13869         (add_path, directory_switch, source_path, init_source_path): Move
13870         declarations...
13871         * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
13872         (add_path, directory_switch, source_path, init_source_path):
13873         ...here.
13874
13875 2018-02-14  Tom Tromey  <tom@tromey.com>
13876
13877         * solist.h (exec_file_find, solib_find): Return
13878         unique_xmalloc_ptr.
13879         (solib_bfd_fopen): Take a const char *.
13880         * solib.c (solib_find_1): Return unique_xmalloc_ptr.
13881         (exec_file_find, solib_find): Likewise.
13882         (solib_bfd_fopen): Do not take ownership of "pathname".
13883         (solib_bfd_open): Use unique_xmalloc_ptr.
13884         * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
13885         * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
13886         * infrun.c (follow_exec): Use unique_xmalloc_ptr.
13887         * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
13888
13889 2018-02-14  Joel Brobecker  <brobecker@adacore.com>
13890
13891         * ada-lang.c (name_match_type_from_name): Remove reference to
13892         ada_name_for_lookup in function's documentation.
13893         * ada-lang.h (ada_name_for_lookup): Delete declaration.
13894
13895 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
13896
13897         * defs.h (enum openp_flags): New enum.
13898         (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
13899         Move to enum openp_flags.
13900         (openp_flags): New enum flags.
13901         (openp): Change parameter type to openp_flags.
13902         * source.c (openp): Change parameter type to openp_flags.
13903         * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
13904         * dwarf2read.c (try_open_dwop_file): Use openp_flags.
13905
13906 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
13907
13908         * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
13909         per-command.
13910
13911 2018-02-12  Andrew Burgess  <andrew.burgess@embecosm.com>
13912
13913         * dwarf2read.c (dwarf2_release_queue): Delete function, move body
13914         into...
13915         (class dwarf2_queue_guard): ...the destructor of this new class.
13916         (dw2_do_instantiate_symtab): Create instance of the new class
13917         dwarf2_queue_guard, remove cleanup.
13918
13919 2018-02-09  Tom Tromey  <tom@tromey.com>
13920
13921         * source.c (find_source_lines): Don't reference past the end of
13922         the vector.
13923
13924 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13925
13926         * remote.c (remote_btrace_maybe_reopen): Change error message.
13927         * btrace.c (btrace_enable): Likewise.
13928         (parse_xml_btrace): Likewise.
13929         (parse_xml_btrace_conf): Likewise.
13930
13931 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13932
13933         * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
13934         (linux_enable_pt, linux_enable_bts): Call
13935         diagnose_perf_event_open_fail.
13936
13937 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13938
13939         * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
13940         Remove parameter and change return type.  Update callers.  Move it.
13941         (linux_enable_bts, linux_enable_pt): Improve error message.
13942         (linux_enable_pt): Remove zero buffer size check.
13943         (linux_enable_btrace): Improve error messages.  Remove NULL return
13944         check.
13945
13946 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13947
13948         * btrace.c (btrace_enable): Remove target_supports_btrace call.
13949         * nat/linux-btrace.c (perf_event_pt_event_type): Move.
13950         (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
13951         (linux_supports_pt, linux_supports_btrace): Remove.
13952         (linux_enable_bts): Call cpu_supports_bts.
13953         * nat/linux-btrace.h (linux_supports_btrace): Remove.
13954         * remote.c (remote_supports_btrace): Remove.
13955         (init_remote_ops): Remove remote_supports_btrace.
13956         * target-delegates.c: Regenerated.
13957         * target.c (target_supports_btrace): Remove.
13958         * target.h (target_ops) <to_supports_btrace>: Remove
13959         (target_supports_btrace): Remove.
13960         * x86-linux-nat.c (x86_linux_create_target): Remove
13961         linux_supports_btrace.
13962
13963 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13964
13965         * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
13966         btrace failed.
13967         * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
13968         exception and use message in own exception.
13969
13970 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13971
13972         * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
13973         (perf_event_pt_event_type): Use gdb_file_up.
13974         (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
13975         scoped_fd, and scoped_mmap.
13976
13977 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13978
13979         * common/scoped_mmap.h: New.
13980         * unittests/scoped_mmap-selftest.c: New.
13981         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13982         unittests/scoped_mmap-selftest.c.
13983
13984 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13985
13986         * common/scoped_fd.h: New.
13987         * unittests/scoped_fd-selftest.c: New.
13988         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13989         unittests/scoped_fd-selftest.c.
13990
13991 2018-02-09  Tom Tromey  <tom@tromey.com>
13992
13993         * auto-load.c (auto_load_section_scripts): Use
13994         gdb::unique_xmalloc_ptr.
13995
13996 2018-02-09  Tom Tromey  <tom@tromey.com>
13997
13998         * auto-load.c (execute_script_contents): Use std::string.
13999
14000 2018-02-09  Joel Brobecker  <brobecker@adacore.com>
14001
14002         * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
14003         Python function, rather than a new command.
14004
14005 2018-02-08  Tom Tromey  <tom@tromey.com>
14006
14007         * solib.c (solib_find_1): Use std::string.
14008         (solib_bfd_fopen): Use unique_xmalloc_ptr.
14009
14010 2018-02-08  Tom Tromey  <tom@tromey.com>
14011
14012         * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
14013
14014 2018-02-08  Tom Tromey  <tom@tromey.com>
14015
14016         * source.c (find_source_lines): Use gdb::def_vector.
14017
14018 2018-02-08  Tom Tromey  <tom@tromey.com>
14019
14020         * macrocmd.c (struct temporary_macro_definition): New.
14021         (macro_define_command): Use temporary_macro_definition.  Remove
14022         cleanups.
14023         (free_macro_definition_ptr): Remove.
14024
14025 2018-02-08  Tom Tromey  <tom@tromey.com>
14026
14027         * macroexp.c (maybe_expand): Use std::string.
14028
14029 2018-02-08  Tom Tromey  <tom@tromey.com>
14030
14031         * macroexp.c (struct macro_buffer): Add initializers for some
14032         members.
14033         (init_buffer, init_shared_buffer, free_buffer)
14034         (free_buffer_return_text): Remove.
14035         (macro_buffer): New constructors.
14036         (~macro_buffer): New destructor.
14037         (macro_buffer::set_shared): New method.
14038         (macro_buffer::resize_buffer, macro_buffer::appendc)
14039         (macro_buffer::appendmem): Now methods, not free functions.
14040         (set_token, append_tokens_without_splicing, stringify)
14041         (macro_stringify): Update.
14042         (gather_arguments): Change return type.  Remove argc_p argument,
14043         add args_ptr argument.  Use std::vector.
14044         (substitute_args): Remove argc argument.  Accept std::vector.
14045         (expand): Update.  Use std::vector.
14046         (scan, macro_expand, macro_expand_next): Update.
14047
14048 2018-02-08  Tom Tromey  <tom@tromey.com>
14049
14050         * symtab.c (default_collect_symbol_completion_matches_break_on):
14051         Use unique_xmalloc_ptr.
14052         * macroscope.h: (sal_macro_scope, user_macro_scope)
14053         (default_macro_scope): Return unique_xmalloc_ptr.
14054         * macroscope.c (sal_macro_scope, user_macro_scope)
14055         (default_macro_scope): Return unique_xmalloc_ptr.
14056         * macroexp.h (macro_expand, macro_expand_once): Return
14057         unique_xmalloc_ptr.
14058         * macroexp.c (macro_expand, macro_expand_once): Return
14059         unique_xmalloc_ptr.
14060         * macrocmd.c (macro_expand_command, macro_expand_once_command)
14061         (info_macro_command, info_macros_command): Use
14062         unique_xmalloc_ptr.
14063         * compile/compile-c-support.c (write_macro_definitions): Use
14064         unique_xmalloc_ptr.
14065         * c-exp.y (c_parse): Use unique_xmalloc_ptr.
14066
14067 2018-02-07  Simon Marchi  <simon.marchi@ericsson.com>
14068
14069         * value.c (value_static_field): Assign field type instead of
14070         containing type when returning an optimized out value.
14071
14072 2018-02-06  Yao Qi  <yao.qi@linaro.org>
14073
14074         * ft32-tdep.c (ft32_read_pc): Remove.
14075         (ft32_write_pc): Remove.
14076         (ft32_gdbarch_init): Update.
14077         * m32r-tdep.c (m32r_read_pc): Remove.
14078         (m32r_gdbarch_init): Update.
14079         * mep-tdep.c (mep_read_pc): Remove.
14080         (mep_gdbarch_init): Update.
14081         * microblaze-tdep.c (microblaze_write_pc): Remove.
14082         (microblaze_gdbarch_init): Update.
14083         * mn10300-tdep.c (mn10300_read_pc): Remove.
14084         (mn10300_write_pc): Remove.
14085         (mn10300_gdbarch_init): Update.
14086         * moxie-tdep.c (moxie_read_pc): Remove.
14087         (moxie_write_pc): Remove.
14088         (moxie_gdbarch_init): Update.
14089
14090 2018-02-06  Yao Qi  <yao.qi@linaro.org>
14091
14092         * expprint.c (print_subexp_standard): Handle
14093         OP_F77_UNDETERMINED_ARGLIST.
14094         (dump_subexp_body_standard): Likewise.
14095
14096 2018-02-05  Alan Hayward  <alan.hayward@arm.com>
14097
14098         * target-descriptions.c (tdesc_element_visitor) Add empty
14099         implementations.
14100         (tdesc_type): Move make_gdb_type from here.
14101         (tdesc_type_builtin): Likewise.
14102         (tdesc_type_vector): Likewise.
14103         (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
14104         (make_gdb_type_struct): Move from tdesc_type_with_fields.
14105         (make_gdb_type_union): Likewise.
14106         (make_gdb_type_flags): Likewise.
14107         (make_gdb_type_enum): Likewise.
14108         (make_gdb_type): New function.
14109         (tdesc_register_type): Use static make_gdb_type.
14110
14111 2018-02-05  Ruslan Kabatsayev <b7.10110111@gmail.com>
14112
14113         * infcmd.c (default_print_one_register_info): Align natural-format
14114         column values consistently one under another.
14115         (pad_to_column): New function.
14116
14117 2018-02-05  Joel Brobecker  <brobecker@adacore.com>
14118
14119         * dwarf2read.c (dwarf2_physname): Move commment.
14120
14121 2018-02-01  Leszek Swirski  <leszeks@google.com>
14122
14123         * varobj.c (varobj_formatted_print_options): Allow recursive
14124         pretty printing if pretty printing is enabled.
14125
14126 2018-02-01  Leszek Swirski  <leszeks@google.com>
14127
14128         * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
14129         names after a structop as a filename.
14130
14131 2018-02-01  Yao Qi  <yao.qi@linaro.org>
14132
14133         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
14134         (arm_record_coproc_data_proc): Likewise.
14135
14136 2018-02-01  Yao Qi  <yao.qi@linaro.org>
14137
14138         * arm-tdep.c (arm_record_extension_space): Change ret to signed.
14139
14140 2018-01-31  Nikola Prica  <nikola.prica@rt-rk.com>
14141
14142         * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
14143         assign shifted lr_reg to fdata->lr_register when lr_reg is set.
14144
14145 2018-01-31  Pedro Alves  <palves@redhat.com>
14146
14147         * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
14148         * inflow.c (child_terminal_save_inferior): Wrap reference to
14149         tcgetpgrp in HAVE_TERMIOS_H.
14150         (child_interrupt, child_pass_ctrlc): Wrap references to signal in
14151         _WIN32.
14152         * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
14153         always iterate over all inferiors.
14154         (gdbsim_cntrl_c): Adjust.
14155         * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
14156
14157 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
14158
14159         * gdbtypes.c (lookup_array_range_type): Make sure the array's
14160         index type is objfile-owned if the element type is as well.
14161
14162 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
14163
14164         GDB 8.1 released.
14165
14166 2018-01-30  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14167
14168         * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
14169         "features/s390x-linux64.c".
14170         (_initialize_s390_linux_tdep): Remove initialization of tdescs
14171         s390_linux32 and s390x_linux64.
14172         (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
14173         default tdesc.
14174         * s390-tdep.c: Include "features/s390-linux32.c" and
14175         "features/s390x-linux64.c".
14176         (s390_tdesc_valid): Add check for tdesc_has_registers.
14177         (s390_gdbarch_init): Make sure there is always a valid tdesc.
14178         (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
14179         tdesc_s390x_linux64.
14180         * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
14181         tdesc_s390x_linux64 to...
14182         * s390-tdep.h: ...here.
14183
14184 2018-01-30  Pedro Alves  <palves@redhat.com>
14185
14186         PR gdb/13211
14187         * config.in, configure: Regenerate.
14188         * configure.ac: Check for getpgid.
14189         * go32-nat.c (go32_pass_ctrlc): New.
14190         (go32_target): Install it.
14191         * inf-child.c (inf_child_target): Install
14192         child_terminal_save_inferior, child_pass_ctrlc and
14193         child_interrupt.
14194         * inf-ptrace.c (inf_ptrace_interrupt): Delete.
14195         (inf_ptrace_target): No longer install it.
14196         * infcmd.c (interrupt_target_1): Adjust.
14197         * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
14198         (child_interrupt): Declare.
14199         (inferior::terminal_state): New.
14200         * inflow.c (struct terminal_info): Update comments.
14201         (inferior_process_group): Delete.
14202         (terminal_is_ours): Delete.
14203         (gdb_tty_state): New.
14204         (child_terminal_init): Adjust.
14205         (is_gdb_terminal, sharing_input_terminal_1)
14206         (sharing_input_terminal): New functions.
14207         (child_terminal_inferior): Adjust.  Use sharing_input_terminal.
14208         Set the process's actual process group in the foreground if
14209         possible.  Handle is_ours_for_output/is_ours distinction.  Don't
14210         mark terminal as the inferior's if not sharing GDB's terminal.
14211         Don't check attach_flag.
14212         (child_terminal_ours_for_output, child_terminal_ours): Adjust to
14213         pass down a target_terminal_state.
14214         (child_terminal_save_inferior): New, factored out from ...
14215         (child_terminal_ours_1): ... this.  Handle
14216         target_terminal_state::is_ours_for_output.
14217         (child_interrupt, child_pass_ctrlc): New.
14218         (inflow_inferior_exit): Clear the inferior's terminal_state.
14219         (copy_terminal_info): Copy the inferior's terminal state.
14220         (_initialize_inflow): Remove reference to terminal_is_ours.
14221         * inflow.h (inferior_process_group): Delete.
14222         * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
14223         * procfs.c (procfs_target): Don't install procfs_interrupt.
14224         (procfs_interrupt): Delete.
14225         * remote.c (remote_serial_quit_handler): Adjust.
14226         (remote_interrupt): Remove ptid parameter.  Adjust.
14227         * target-delegates.c: Regenerate.
14228         * target.c: Include "terminal.h".
14229         (target_terminal::terminal_state): Rename to ...
14230         (target_terminal::m_terminal_state): ... this.
14231         (target_terminal::init): Adjust.
14232         (target_terminal::inferior): Adjust to per-inferior
14233         terminal_state.
14234         (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
14235         (target_terminal::ours, target_terminal::ours_for_output): Use
14236         target_terminal_is_ours_kind.
14237         (target_interrupt): Remove ptid parameter.  Adjust.
14238         (default_target_pass_ctrlc): Adjust.
14239         * target.h (target_ops::to_terminal_save_inferior): New field.
14240         (target_ops::to_interrupt): Remove ptid_t parameter.
14241         (target_interrupt): Remove ptid_t parameter.  Update comment.
14242         (target_pass_ctrlc): Update comment.
14243         * target/target.h (target_terminal_state): New scoped enum,
14244         factored out of ...
14245         (target_terminal::terminal_state): ... here.
14246         (target_terminal::inferior): Update comments.
14247         (target_terminal::restore_inferior): New.
14248         (target_terminal::is_inferior, target_terminal::is_ours)
14249         (target_terminal::is_ours_for_output): Adjust.
14250         (target_terminal::scoped_restore_terminal_state): Adjust to
14251         rename, and call restore_inferior() instead of inferior().
14252         (target_terminal::scoped_restore_terminal_state::m_state): Change
14253         type.
14254         (target_terminal::terminal_state): Rename to ...
14255         (target_terminal::m_terminal_state): ... this and change type.
14256
14257 2018-01-30  Pedro Alves  <palves@redhat.com>
14258
14259         * linux-nat.c (wait_for_signal): New function.
14260         (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
14261         directly.
14262         (async_terminal_is_ours)
14263         (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
14264         (linux_nat_add_target): Don't override
14265         to_terminal_inferior/to_terminal_ours.
14266
14267 2018-01-29  Sergio Durigan Junior  <sergiodj@redhat.com>
14268
14269         * remote.c (remote_follow_fork): Don't call "detach_inferior".
14270
14271 2018-01-28  Simon Marchi  <simon.marchi@ericsson.com>
14272
14273         * dwarf2read.c (free_dwo_files): Add forward-declaration.
14274         (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
14275         dwarf2_per_objfile_free here.
14276         (dwarf2_per_objfile_free): Remove.
14277         (_initialize_dwarf2_read): Don't register
14278         dwarf2_per_objfile_free as a registry cleanup.
14279
14280 2018-01-27  Eli Zaretskii  <eliz@gnu.org>
14281
14282         Avoid compilation errors in MinGW native builds
14283
14284         The error is triggered by including python-internal.h, and the
14285         error message is:
14286
14287              In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
14288                       from build-gnulib/import/math.h:27,
14289                       from d:/usr/Python26/include/pyport.h:235,
14290                       from d:/usr/Python26/include/Python.h:58,
14291                       from python/python-internal.h:94,
14292                       from python/py-arch.c:24:
14293              d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
14294         using ::hypot;
14295                 ^~~~~
14296
14297         This happens because Python headers define 'hypot' to expand t
14298         '_hypot' in the Windows builds.
14299         * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
14300         'hypoth'.  This avoids a compilation error.
14301
14302 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
14303
14304         * MAINTAINERS (Write After Approval): Fix ordering.
14305
14306 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
14307
14308         * MAINTAINERS (Write After Approval): Add Alan Hayward.
14309
14310 2018-01-26  Alan Modra  <amodra@gmail.com>
14311
14312         * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
14313         (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
14314         Remove nop.  Make const.  Comment.
14315         (powerpc32_plt_stub_so_2): New.
14316         (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
14317         Correct count.  Update uses.
14318         (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
14319         Move common code reading PLT entry word.  Correct
14320         powerpc32_plt_stub PLT address calculation.
14321         * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
14322         (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
14323         (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
14324         (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
14325         (ppc64_standard_linkage8): Likewise.
14326         * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
14327         Correct insns description.
14328         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
14329
14330 2018-01-24  Pedro Alves  <palves@redhat.com>
14331
14332         GCC PR libstdc++/83906
14333         * gdbtypes.c (operator==(const dynamic_prop &,
14334         const dynamic_prop &)): New.
14335         (operator==(const range_bounds &, const range_bounds &)): New.
14336         (check_types_equal): Use them instead of memcmp.
14337         * gdbtypes.h (operator==(const dynamic_prop &,
14338         const dynamic_prop &)): Declare.
14339         (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
14340         (operator==(const range_bounds &, const range_bounds &)): Declare.
14341         (operator!=(const range_bounds &, const range_bounds &)): Declare.
14342
14343 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14344
14345         * s390-linux-tdep.c (s390_record_address_mask)
14346         (s390_record_calc_disp_common, s390_record_calc_disp)
14347         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14348         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14349         (s390_process_record): Move to s390-tdep.c.
14350         (s390_linux_init_abi_any): Adjust.
14351         * s390-tdep.c (s390_record_address_mask)
14352         (s390_record_calc_disp_common, s390_record_calc_disp)
14353         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14354         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14355         (s390_process_record): Moved from s390-linux-tdep.c
14356         (s390_gdbarch_init): Adjust.
14357
14358 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14359
14360         * s390-linux-nat.c (s390-tdep.h): New include.
14361         * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
14362         (HFILES_NO_SRCDIR): Add s390-tdep.h.
14363         (ALLDEPFILES): Add s390-tdep.c.
14364         * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
14365         * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
14366         * s390-tdep.h: ...this.  New file.
14367         * s390-linux-tdep.c (s390-tdep.h): New include.
14368         (_initialize_s390_tdep): Rename to...
14369         (_initialize_s390_linux_tdep): ...this and adjust.
14370         (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
14371         (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
14372         s390-tdep.h.
14373         (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
14374         (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
14375         (s390_is_partial_instruction, s390_software_single_step)
14376         (is_non_branch_ril, s390_displaced_step_copy_insn)
14377         (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
14378         (s390_prologue_data, s390_addr, s390_store, s390_load)
14379         (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
14380         (s390_register_call_saved, s390_guess_tracepoint_registers)
14381         (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
14382         (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
14383         (s390_pseudo_register_name, s390_pseudo_register_type)
14384         (s390_pseudo_register_read, s390_pseudo_register_write)
14385         (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
14386         (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
14387         (s390_addr_bits_remove, s390_address_class_type_flags)
14388         (s390_address_class_type_flags_to_name)
14389         (s390_address_class_name_to_type_flags, s390_effective_inner_type)
14390         (s390_function_arg_float, s390_function_arg_vector)
14391         (is_power_of_two, s390_function_arg_integer, s390_arg_state)
14392         (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
14393         (s390_frame_align, s390_register_return_value, s390_return_value)
14394         (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
14395         (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
14396         (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
14397         (s390_trad_frame_prev_register, s390_unwind_cache)
14398         (s390_prologue_frame_unwind_cache)
14399         (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
14400         (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
14401         (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
14402         (s390_stub_frame_this_id, s390_stub_frame_prev_register)
14403         (s390_stub_frame_sniffer, s390_stub_frame_unwind)
14404         (s390_frame_base_address, s390_local_base_address)
14405         (s390_frame_base, s390_gcc_target_options)
14406         (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
14407         (s390_validate_reg_range, s390_tdesc_valid)
14408         (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
14409         * s390-tdep.c: ...this.  New file.
14410
14411 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14412
14413         * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
14414         (s390_process_record, s390_gdbarch_tdep_alloc)
14415         (s390_linux_init_abi_any): Use/set new hook.
14416
14417 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14418
14419         * s390-linux-tdep.c (osabi.h): New include.
14420         (s390_linux_init_abi_31, s390_linux_init_abi_64)
14421         (s390_linux_init_abi_any): New functions.
14422         (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
14423
14424 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14425
14426         * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
14427         tdesc_has_registers check
14428
14429 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14430
14431         * s390-linux-tdep.c (s390_tdesc_valid): New function.
14432         (s390_validate_reg_range): New macro.
14433         (s390_gdbarch_init): Adjust.
14434
14435 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14436
14437         * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
14438         (s390_gdbarch_tdep_alloc): Adjust.
14439         (s390_gdbarch_init): Adjust.
14440
14441 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14442
14443         * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
14444         <have_tdb>: Change type to bool.
14445         (s390_gdbarch_tdep_alloc): Adjust.
14446         (s390_gdbarch_init): Adjust.
14447
14448 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14449
14450         * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
14451         (gdbarch_tdep) <have_upper, have_vx>: New fields.
14452         (s390_gdbarch_tdep_alloc): New function.
14453         (s390_gdbarch_init): Allocate tdep at start and use its fields
14454         instead of separate variables.
14455
14456 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14457
14458         * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
14459         when looking for cached gdbarch and add comment for remaining.
14460
14461 2018-01-22  Pedro Alves  <palves@redhat.com>
14462             Sergio Durigan Junior  <sergiodj@redhat.com>
14463
14464         * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
14465         case.
14466
14467 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
14468
14469         * MAINTAINERS: Update my company e-mail address.
14470
14471 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14472
14473         * regcache.c (cooked_write_test): New function.
14474         (_initialize_regcache): Register the test.
14475
14476 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14477
14478         * ia64-tdep.c (ia64_pseudo_register_read): Call
14479         regcache->cooked_read instead of regcache_cooked_read_unsigned.
14480         * m32c-tdep.c (m32c_cat_read): Likewise.
14481         (m32c_r3r2r1r0_read): Likewise.
14482         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14483         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14484
14485 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14486
14487         * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
14488         method raw_read instead of regcache_raw_read.
14489         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14490         * arm-tdep.c (arm_neon_quad_read): Likewise.
14491         * avr-tdep.c (avr_pseudo_register_read): Likewise.
14492         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14493         * frv-tdep.c (frv_pseudo_register_read): Likewise.
14494         * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
14495         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14496         (i386_pseudo_register_read_into_value): Likewise.
14497         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14498         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14499         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14500         * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
14501         * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
14502         * sparc-tdep.c (sparc32_pseudo_register_read):  Likewise.
14503         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14504         * spu-tdep.c (spu_pseudo_register_read_spu):  Likewise.
14505         * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
14506
14507 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14508
14509         * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
14510         * configure.tgt: Remove target mt.
14511         * mt-tdep.c: Remove.
14512         * regcache.c (cooked_read_test): Remove the check for mt.
14513
14514 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14515
14516         * jit.c (jit_frame_prev_register): Call regcache::cooked_read
14517         instead of gdbarch_pseudo_register_read_value.
14518
14519 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
14520
14521         * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
14522         language is Ada.
14523
14524 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
14525
14526         * linespec.c (create_sals_line_offset): Remove code that preserved
14527         the symtab_and_line's line number.
14528
14529 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
14530
14531         * varobj.c (varobj_create): Don't set valid_block when creating a
14532         floating varobj.
14533
14534 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
14535
14536         * varobj.c (varobj_create): Remove out of date comment.
14537
14538 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
14539
14540         PR mi/20395
14541         * ada-exp.y (write_var_from_sym): Pass extra parameter when
14542         updating innermost block.
14543         * parse.c (innermost_block_tracker::update): Take extra type
14544         parameter, and check types match before updating innermost block.
14545         (write_dollar_variable): Update innermost block for registers.
14546         * parser-defs.h (enum innermost_block_tracker_type): New enum.
14547         (innermost_block_tracker::innermost_block_tracker): Initialise
14548         m_types member.
14549         (innermost_block_tracker::reset): Take type parameter.
14550         (innermost_block_tracker::update): Take type parameter, and pass
14551         type through as needed.
14552         (innermost_block_tracker::m_types): New member.
14553         * varobj.c (varobj_create): Pass type when reseting innermost
14554         block.
14555
14556 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
14557
14558         * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
14559         * ada-lang.c (resolve_subexp): Likewise.
14560         * breakpoint.c (set_breakpoint_condition) Likewise.
14561         (watch_command_1) Likewise.
14562         * c-exp.y (variable): Likewise.
14563         * d-exp.y (PrimaryExpression): Likewise.
14564         * f-exp.y (variable): Likewise.
14565         * go-exp.y (variable): Likewise.
14566         * m2-exp.y (variable): Likewise.
14567         * objfiles.c (objfile::~objfile): Likewise.
14568         * p-exp.y (variable): Likewise.
14569         * parse.c (innermost_block): Change type.
14570         * parser-defs.h (class innermost_block_tracker): New.
14571         (innermost_block): Change to innermost_block_tracker.
14572         * printcmd.c (display_command): Switch to innermost_block API.
14573         (do_one_display): Likewise.
14574         * rust-exp.y (do_one_display): Likewise.
14575         * symfile.c (clear_symtab_users): Likewise.
14576         * varobj.c (varobj_create): Switch to innermost_block API, replace
14577         use of innermost_block with block stored on varobj object.
14578
14579 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
14580
14581         * expression.h (innermost_block): Remove declaration.
14582         * varobj.c: Add 'parser-defs.h' include.
14583
14584 2018-01-19  Tom Tromey  <tom@tromey.com>
14585
14586         * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
14587         symbols in the static and global blocks.
14588
14589 2018-01-19  James Clarke  <jrtc27@jrtc27.com>
14590
14591         * nat/linux-ptrace.c: Remove unnecessary reinclusion of
14592         gdb_ptrace.h, and move including gdb_wait.h ...
14593         * nat/linux-ptrace.h: ... to here.
14594
14595 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
14596
14597         * inf-ptrace.c (inf_ptrace_detach): Adjust call to
14598         inf_ptrace_detach_success.
14599         (inf_ptrace_detach_success): Add inferior parameter, use it
14600         instead of inferior_ptid, pass it to detach_inferior.
14601         * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
14602         parameter.
14603         * inferior.c (detach_inferior): Add overload that takes an
14604         inferior object.
14605         * inferior.h (detach_inferior): Likewise.
14606         * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
14607         use inferior_ptid, adjust call to inf_ptrace_detach_success.
14608         * linux-thread-db.c (thread_db_detach): Use inf parameter.
14609
14610 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
14611
14612         * target.h (struct target_ops) <to_detach>: Add inferior
14613         parameter.
14614         (target_detach): Likewise.
14615         * target.c (dispose_inferior): Pass inferior down.
14616         (target_detach): Pass inferior down.  Assert that it is equal to
14617         the current inferior.
14618         * aix-thread.c (aix_thread_detach): Pass inferior down.
14619         * corefile.c (core_file_command): Pass current_inferior() down.
14620         * corelow.c (core_detach): Add inferior parameter.
14621         * darwin-nat.c (darwin_detach): Likewise.
14622         * gnu-nat.c (gnu_detach): Likewise.
14623         * inf-ptrace.c (inf_ptrace_detach): Likewise.
14624         * infcmd.c (detach_command): Pass current_inferior() down to
14625         target_detach.
14626         * infrun.c (follow_fork_inferior): Pass parent_inf to
14627         target_detach.
14628         (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
14629         target_detach.
14630         * linux-nat.c (linux_nat_detach): Add inferior parameter.
14631         * linux-thread-db.c (thread_db_detach): Likewise.
14632         * nto-procfs.c (procfs_detach): Likewise.
14633         * procfs.c (procfs_detach): Likewise.
14634         * record.c (record_detach): Likewise.
14635         * record.h (struct inferior): Forward-declare.
14636         (record_detach): Add inferior parameter.
14637         * remote-sim.c (gdbsim_detach): Likewise.
14638         * remote.c (remote_detach_1): Likewise.
14639         (remote_detach): Likewise.
14640         (extended_remote_detach): Likewise.
14641         * sol-thread.c (sol_thread_detach): Likewise.
14642         * target-debug.h (target_debug_print_inferior_p): New macro.
14643         * target-delegates.c: Re-generate.
14644         * top.c (kill_or_detach): Pass inferior down to target_detach.
14645         * windows-nat.c (windows_detach): Add inferior parameter.
14646
14647 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
14648
14649         * target.h (struct target_ops) <to_detach>: Remove args
14650         parameter.
14651         (target_detach): Likewise.
14652         * target.c (dispose_inferior): Adjust.
14653         (target_detach): Remove args parameter, adjust.
14654         * aix-thread.c (aix_thread_detach): Adjust.
14655         * corefile.c (core_file_command): Adjust.
14656         * corelow.c (core_detach): Adjust.
14657         * darwin-nat.c (darwin_detach): Adjust.
14658         * gnu-nat.c (gnu_detach): Adjust.
14659         * inf-ptrace.c (inf_ptrace_detach): Adjust.
14660         * infcmd.c (detach_command): Adjust
14661         * infrun.c (follow_fork_inferior): Adjust.
14662         (handle_vfork_child_exec_or_exit): Adjust.
14663         * linux-fork.c (linux_fork_detach): Remove args parameter.
14664         * linux-fork.h (linux_fork_detach): Likewise.
14665         * linux-nat.c (linux_nat_detach): Likewise, and adjust.
14666         * linux-thread-db.c (thread_db_detach): Likewise.
14667         * nto-procfs.c (procfs_detach): Likewise.
14668         * procfs.c (procfs_detach): Likewise.
14669         (do_detach): Remove signo parameter.
14670         * record.c (record_detach): Remove args parameter.
14671         * record.h (record_detach): Likewise.
14672         * remote-sim.c (gdbsim_detach): Likewise.
14673         * remote.c (remote_detach_1): Likewise.
14674         (remote_detach): Likewise.
14675         (extended_remote_detach): Likewise.
14676         * sol-thread.c (sol_thread_detach): Likewise.
14677         * target-delegates.c: Re-generate.
14678         * top.c (struct qt_args) <args>: Remove field.
14679         (kill_or_detach): Don't pass args.
14680         (quit_force): Don't set args.
14681         * windows-nat.c (windows_detach): Remove args parameter.
14682
14683 2018-01-19  Yao Qi  <yao.qi@linaro.org>
14684
14685         * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
14686         (arm_linux_init_abi): Install it.
14687
14688 2018-01-19  Yao Qi  <yao.qi@linaro.org>
14689
14690         * osabi.c (gdb_osabi_names): Extend the regexp for
14691         arm-linux-gnueabihf.
14692
14693 2018-01-18  Yao Qi  <yao.qi@linaro.org>
14694
14695         * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
14696         m_abbrevs.
14697         (abbrev_table::add_abbrev): Update.
14698         (abbrev_table::lookup_abbrev): Update.
14699
14700 2018-01-18  Yao Qi  <yao.qi@linaro.org>
14701
14702         * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
14703
14704 2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
14705
14706         * compile/compile.c (compile_to_object): Convert "triplet_rx"
14707         to "std::string".
14708
14709 2018-01-17  Tom Tromey  <tom@tromey.com>
14710
14711         * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
14712
14713 2018-01-17  Tom Tromey  <tom@tromey.com>
14714
14715         * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
14716         * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
14717         (create_array_type_with_stride): Update.
14718         * dwarf2read.c (set_die_type): Update.
14719
14720 2018-01-17  Tom Tromey  <tom@tromey.com>
14721
14722         * dwarf2read.c (delayed_method_info): Remove typedef.
14723         (dwarf2_cu::method_info): Now a std::vector.
14724         (add_to_method_list): Update.
14725         (free_delayed_list): Remove.
14726         (compute_delayed_physnames): Update.
14727         (process_full_comp_unit, process_full_type_unit): Clear the method
14728         list.  Remove cleanups.
14729         (psymtab_include_file_name): Add name_holder parameter.  Use
14730         unique_xmalloc_ptr.
14731         (dwarf_decode_lines): Update.
14732
14733 2018-01-17  Tom Tromey  <tom@tromey.com>
14734             Simon Marchi  <simon.marchi@ericsson.com>
14735
14736         * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
14737         (dwarf2_per_objfile::free_cached_comp_units)
14738         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
14739         (init_cutu_and_read_dies_no_follow): Update.
14740         (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
14741         (dwarf2_cu::~dwarf2_cu): New.
14742         (free_heap_comp_unit, free_stack_comp_unit): Remove.
14743         (age_cached_comp_units, free_one_cached_comp_unit): Update.
14744
14745 2018-01-17  Tom Tromey  <tom@tromey.com>
14746             Simon Marchi  <simon.marchi@ericsson.com>
14747
14748         * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
14749         (struct die_reader_specs) <abbrev_table>: New member.
14750         (struct abbrev_table): Add constructor.
14751         <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
14752         <abbrev_obstack>: Now an auto_obstack.
14753         (abbrev_table_up): New typedef.
14754         (init_cu_die_reader): Add abbrev_table parameter.
14755         (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
14756         Add result_dwo_abbrev_table.
14757         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
14758         (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
14759         Update.
14760         (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
14761         parameter.
14762         (skip_children): Update.
14763         (abbrev_table::alloc_abbrev): Rename from
14764         abbrev_table_alloc_abbrev.
14765         (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
14766         (abbrev_table::lookup_abbrev): Rename from
14767         abbrev_table_lookup_abbrev.
14768         (abbrev_table_read_table): Return abbrev_table_up.
14769         (abbrev_table_free, abbrev_table_free_cleanup)
14770         (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
14771         (load_partial_dies): Update.
14772
14773 2018-01-17  Tom Tromey  <tom@tromey.com>
14774
14775         * dwarf2read.c (dwarf2_compute_name): Update comment.
14776         (read_func_scope, read_variable): Update.
14777         (new_symbol): Remove.
14778         (new_symbol_full): Rename to new_symbol.
14779
14780 2018-01-17  Mike Gulick  <mgulick@mathworks.com>
14781
14782         PR gdb/16577
14783         * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
14784         a warning instead of throwing an error, set section size to 0 and return
14785         NULL.
14786         * gdb_bfd.h (gdb_bfd_map_section): Update description.
14787
14788 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
14789
14790         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
14791         std::string.
14792         (linux_ptrace_attach_fail_reason_string): Likewise.
14793         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
14794         Likewise.
14795         (linux_ptrace_attach_fail_reason_string): Likewise.
14796         * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
14797
14798 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
14799
14800         * linux-nat.c (linux_nat_attach): Remove xstrdup.
14801
14802 2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
14803
14804         PR gdb/21559
14805         * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
14806         checking for fs_base/gs_base fields in struct user_regs_struct.
14807         * configure: Regenerate.
14808
14809 2018-01-17  Yao Qi  <yao.qi@linaro.org>
14810
14811         * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
14812         function.
14813         (aarch64_linux_init_abi): Install it to gdbarch hook
14814         gcc_target_options.
14815
14816 2018-01-15  Pedro Alves  <palves@redhat.com>
14817
14818         * common/signals-state-save-restore.c
14819         (save_original_signals_state): Fix typos.
14820
14821 2017-01-12  Tom Tromey  <tom@tromey.com>
14822             Sergio Durigan Junior  <sergiodj@redhat.com>
14823
14824         * Makefile.in (install-only): Install gdb-add-index.
14825
14826 2018-01-12  John Baldwin  <jhb@FreeBSD.org>
14827
14828         * fbsd-tdep.c (KVE_PROTECTION): Correct value.
14829
14830 2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
14831
14832         * infrun.c (keep_going_pass_signal): Clear step-over info when
14833         insert_breakpoints fails.
14834
14835 2018-01-11  Pedro Alves  <palves@redhat.com>
14836
14837         PR gdb/22583
14838         * infrun.c (resume): Rename to ...
14839         (resume_1): ... this.
14840         (resume): Reimplement as wrapper around resume_1.
14841
14842 2018-01-11  Pedro Alves  <palves@redhat.com>
14843
14844         PR remote/22597
14845         * remote.c (remote_parse_stop_reply): Default to the last-set
14846         general thread instead of to 'magic_null_ptid'.
14847
14848 2018-01-10  Pedro Alves  <palves@redhat.com>
14849
14850         * language.h (language_get_symbol_name_matcher): Rename ...
14851         (get_symbol_name_matcher): ... this.
14852         * language.c (language_get_symbol_name_matcher): Ditto.
14853         * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
14854         callers adjusted.
14855
14856 2018-01-10  Pedro Alves  <palves@redhat.com>
14857
14858         PR gdb/22670
14859         * dwarf2read.c
14860         (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
14861         Adjust to use language_get_symbol_name_matcher instead of
14862         language_defn::la_get_symbol_name_matcher.
14863         * language.c (language_get_symbol_name_matcher): If in Ada mode
14864         and the lookup name is a verbatim match, return Ada's matcher.
14865         * language.h (language_get_symbol_name_matcher): Adjust comment.
14866         (ada_lookup_name_info::verbatim_p):: New method.
14867
14868 2018-01-10  Pedro Alves  <palves@redhat.com>
14869
14870         PR gdb/22670
14871         * ada-lang.c (ada_collect_symbol_completion_matches): If the
14872         minsym's language is language_auto or language_cplus, pass down
14873         language_ada instead.
14874         * symtab.c (compare_symbol_name): Don't frob symbol language here.
14875
14876 2018-01-10  Pedro Alves  <palves@redhat.com>
14877
14878         PR gdb/22670
14879         * minsyms.c (linkage_name_str): New function.
14880         (iterate_over_minimal_symbols): Use it.
14881
14882 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
14883
14884         * NEWS: Document that 'info proc' now works on FreeBSD.
14885
14886 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
14887
14888         * configure.ac: Check for kinfo_getfile in libutil.
14889         * configure: Regenerate.
14890         * config.in: Regenerate.
14891         * fbsd-nat.c: Include "fbsd-tdep.h".
14892         (fbsd_fetch_cmdline): New.
14893         (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
14894         rather than calling error.
14895         (fbsd_info_proc): New.
14896         (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
14897         (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
14898         (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
14899
14900 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
14901
14902         * fbsd-nat.c (struct free_deleter): Remove.
14903         (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
14904
14905 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
14906
14907         * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
14908         NULL for an empty pathname.
14909
14910 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
14911
14912         * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
14913         (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
14914         (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
14915         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
14916         (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
14917         (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
14918         (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
14919         (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
14920         (kinfo_proc_layout_32, kinfo_proc_layout_i386)
14921         (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
14922         (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
14923         (fbsd_core_fetch_timeval, fbsd_print_sigset)
14924         (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
14925         (fbsd_init_abi):  Install gdbarch "core_info_proc" method.
14926         * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
14927
14928 2018-01-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14929
14930         * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
14931         (gnu_xfer_auxv): New function.
14932         (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
14933         TARGET_OBJECT_AUXV.
14934
14935 2018-01-08  Yao Qi  <yao.qi@linaro.org>
14936             Simon Marchi  <simon.marchi@ericsson.com>
14937
14938         * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
14939         common/selftest.c.
14940         (COMMON_OBS): Remove selftest.o.
14941         * configure.ac: Append selftest-arch.c and common/selftest.c to
14942         CONFIG_SRCS.  Append selftest-arch.o and selftest.o to COMMON_OBS.
14943         * configure: Re-generated.
14944         * maint.c (maintenance_selftest): Wrap selftests::run_tests with
14945         GDB_SELF_TEST.
14946         (maintenance_info_selftests): Likewise.
14947
14948 2018-01-08  Xavier Roirand  <roirand@adacore.com>
14949
14950         * ada-valprint.c (val_print_packed_array_elements): Use
14951         proper number of elements when printing an array indexed
14952         by an enumeration type.
14953
14954 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
14955
14956         * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
14957         (dw2_get_file_names_reader): Adjust.
14958         (lookup_dwo_signatured_type): Adjust.
14959         (lookup_dwp_signatured_type): Adjust.
14960         (lookup_signatured_type): Adjust.
14961         (create_type_unit_group): Adjust.
14962         (get_type_unit_group): Adjust.
14963         (process_psymtab_comp_unit_reader): Adjust.
14964         (build_type_psymtabs_reader): Adjust.
14965         (scan_partial_symbols): Adjust.
14966         (add_partial_symbol): Adjust.
14967         (add_partial_subprogram): Adjust.
14968         (peek_die_abbrev): Adjust.
14969         (fixup_go_packaging): Adjust.
14970         (process_imported_unit_die): Adjust.
14971         (dwarf2_compute_name): Adjust.
14972         (dwarf2_physname): Adjust.
14973         (read_import_statement): Adjust.
14974         (handle_DW_AT_stmt_list): Adjust.
14975         (read_file_scope): Adjust.
14976         (read_func_scope): Adjust.
14977         (read_lexical_block_scope): Adjust.
14978         (read_call_site_scope): Adjust.
14979         (read_variable): Adjust.
14980         (dwarf2_rnglists_process): Adjust.
14981         (dwarf2_ranges_process): Adjust.
14982         (dwarf2_ranges_read): Adjust.
14983         (dwarf2_get_pc_bounds): Adjust.
14984         (dwarf2_record_block_ranges): Adjust.
14985         (dwarf2_add_field): Adjust.
14986         (dwarf2_add_member_fn): Adjust.
14987         (read_structure_type): Adjust.
14988         (process_structure_scope): Adjust.
14989         (read_enumeration_type): Adjust.
14990         (read_array_type): Adjust.
14991         (mark_common_block_symbol_computed): Adjust.
14992         (read_common_block): Adjust.
14993         (read_namespace_type): Adjust.
14994         (read_namespace): Adjust.
14995         (read_module_type): Adjust.
14996         (read_tag_pointer_type): Adjust.
14997         (read_tag_ptr_to_member_type): Adjust.
14998         (read_tag_string_type): Adjust.
14999         (read_subroutine_type): Adjust.
15000         (read_typedef): Adjust.
15001         (read_base_type): Adjust.
15002         (attr_to_dynamic_prop): Adjust.
15003         (read_subrange_type): Adjust.
15004         (read_unspecified_type): Adjust.
15005         (dwarf2_read_abbrevs): Adjust.
15006         (load_partial_dies): Adjust.
15007         (read_partial_die): Adjust.
15008         (find_partial_die): Adjust.
15009         (guess_partial_die_structure_name): Adjust.
15010         (fixup_partial_die): Adjust.
15011         (read_attribute_value): Adjust.
15012         (read_addr_index): Adjust.
15013         (read_addr_index_from_leb128): Adjust.
15014         (read_str_index): Adjust.
15015         (dwarf2_string_attr): Adjust.
15016         (get_debug_line_section): Adjust.
15017         (dwarf_decode_line_header): Adjust.
15018         (lnp_state_machine::check_line_address): Adjust.
15019         (dwarf_decode_lines_1): Adjust.
15020         (dwarf_decode_lines): Adjust.
15021         (dwarf2_start_symtab): Adjust.
15022         (var_decode_location): Adjust.
15023         (new_symbol_full): Adjust.
15024         (dwarf2_const_value_data): Adjust.
15025         (dwarf2_const_value_attr): Adjust.
15026         (dwarf2_const_value): Adjust.
15027         (die_type): Adjust.
15028         (die_containing_type): Adjust.
15029         (build_error_marker_type): Adjust.
15030         (lookup_die_type): Adjust.
15031         (guess_full_die_structure_name): Adjust.
15032         (anonymous_struct_prefix): Adjust.
15033         (determine_prefix): Adjust.
15034         (dwarf2_name): Adjust.
15035         (follow_die_ref_or_sig): Adjust.
15036         (follow_die_offset): Adjust.
15037         (follow_die_ref): Adjust.
15038         (follow_die_sig_1): Adjust.
15039         (follow_die_sig): Adjust.
15040         (get_signatured_type): Adjust.
15041         (get_DW_AT_signature_type): Adjust.
15042         (decode_locdesc): Adjust.
15043         (dwarf_decode_macros): Adjust.
15044         (cu_debug_loc_section): Adjust.
15045         (fill_in_loclist_baton): Adjust.
15046         (dwarf2_symbol_mark_computed): Adjust.
15047         (init_one_comp_unit): Don't assign
15048         dwarf2_cu::dwarf2_per_objfile.
15049         (set_die_type): Adjust.
15050
15051 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
15052
15053         * dwarf2read.c (struct mapped_debug_names): Add constructor.
15054         <dwarf2_per_objfile>: New field.
15055         (dwarf2_per_objfile): Remove global.
15056         (get_dwarf2_per_objfile): New function.
15057         (set_dwarf2_per_objfile): New function.
15058         (dwarf2_build_psymtabs_hard): Change objfile parameter to
15059         dwarf2_per_objfile.
15060         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15061         (read_abbrev_offset): Likewise.
15062         (read_indirect_string): Likewise.
15063         (read_indirect_line_string): Likewise.
15064         (read_indirect_string_at_offset): Likewise.
15065         (read_indirect_string_from_dwz): Likewise.
15066         (dwarf2_find_containing_comp_unit): Change objfile parameter to
15067         dwarf2_per_objfile.
15068         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15069         (create_all_comp_units): Change objfile parameter to
15070         dwarf2_per_objfile.
15071         (create_all_type_units): Likewise.
15072         (process_queue): Add dwarf2_per_objfile parameter.
15073         (read_and_check_comp_unit_head): Likewise.
15074         (lookup_dwo_unit_in_dwp): Likewise.
15075         (get_dwp_file): Likewise.
15076         (process_cu_includes): Likewise.
15077         (struct free_dwo_file_cleanup_data): New struct.
15078         (dwarf2_has_info): Use get_dwarf2_per_objfile and
15079         set_dwarf2_per_objfile.
15080         (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
15081         (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
15082         context, adjust calls.
15083         (dw2_instantiate_symtab): Likewise.
15084         (dw2_get_cutu): Add dwarf2_per_objfile parameter.
15085         (dw2_get_cu): Likewise.
15086         (create_cu_from_index_list): Change objfile parameter to
15087         dwarf2_per_objfile.
15088         (create_cus_from_index_list): Get dwarf2_per_objfile from
15089         context, adjust calls.
15090         (create_cus_from_index): Likewise.
15091         (create_signatured_type_table_from_index): Change objfile
15092         parameter to dwarf2_per_objfile.
15093         (create_signatured_type_table_from_debug_names): Change objfile
15094         parameter to dwarf2_per_objfile.
15095         (create_addrmap_from_index): Likewise.
15096         (create_addrmap_from_aranges): Likewise.
15097         (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
15098         (dw2_setup): Remove.
15099         (dw2_get_file_names_reader): Get dwarf2_per_objfile from
15100         context.
15101         (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
15102         get_dwarf2_per_objfile.
15103         (dw2_forget_cached_source_info): Likewise.
15104         (dw2_map_symtabs_matching_filename): Likewise.
15105         (struct dw2_symtab_iterator) <index>: Remove.
15106         <dwarf2_per_objfile>: New field.
15107         (dw2_symtab_iter_init): Replace index parameter with
15108         dwarf2_per_objfile.
15109         (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
15110         (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
15111         (dw2_print_stats): Likewise.
15112         (dw2_dump): Likewise.
15113         (dw2_expand_symtabs_for_function): Likewise.
15114         (dw2_expand_all_symtabs): Likewise.
15115         (dw2_expand_symtabs_with_fullname): Likewise.
15116         (dw2_expand_marked_cus): Replace index and objfile parameters
15117         with dwarf2_per_objfile.
15118         (dw_expand_symtabs_matching_file_matcher): Add
15119         dwarf2_per_objfile parameter and adjust calls.
15120         (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
15121         adjust calls.
15122         (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
15123         (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
15124         adjust calls.
15125         (create_cus_from_debug_names_list): Replace objfile parameter
15126         with dwarf2_per_objfile and adjust calls.
15127         (create_cus_from_debug_names): Likewise.
15128         (dwarf2_read_debug_names): Likewise.
15129         (mapped_debug_names::namei_to_name): Adjust call.
15130         (dw2_debug_names_iterator::next): Likewise.
15131         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
15132         (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
15133         (dw2_debug_names_dump): Likewise.
15134         (dw2_debug_names_expand_symtabs_for_function): Likewise.
15135         (dw2_debug_names_expand_symtabs_matching): Likewise.
15136         (dwarf2_initialize_objfile): Likewise.
15137         (dwarf2_build_psymtabs): Likewise.
15138         (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
15139         this_cu.
15140         (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
15141         (read_and_check_comp_unit_head): Likewise.
15142         (read_abbrev_offset): Likewise.
15143         (create_debug_type_hash_table): Likewise.
15144         (create_debug_types_hash_table): Likewise.
15145         (create_all_type_units): Replace objfile parameter with
15146         dwarf2_per_objfile.
15147         (add_type_unit): Add dwarf2_per_objfile parameter.
15148         (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
15149         with dwarf2_per_objfile.
15150         (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
15151         (lookup_dwp_signatured_type): Likewise.
15152         (lookup_signatured_type): Likewise.
15153         (read_cutu_die_from_dwo): Likewise.
15154         (init_tu_and_read_dwo_dies): Likewise.
15155         (init_cutu_and_read_dies): Likewise.
15156         (init_cutu_and_read_dies_no_follow): Likewise.
15157         (allocate_type_unit_groups_table): Add objfile parameter.
15158         (create_type_unit_group): Use dwarf2_per_objfile from cu.
15159         (get_type_unit_group): Likewise.
15160         (process_psymtab_comp_unit): Update call.
15161         (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
15162         (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
15163         (print_tu_stats): Likewise.
15164         (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
15165         in void* parameter.
15166         (build_type_psymtabs): Change objfile parameter to
15167         dwarf2_per_objfile.
15168         (process_skeletonless_type_unit): Use dwarf2_per_objfile
15169         passed in void* parameter.
15170         (process_skeletonless_type_units): Change objfile parameter to
15171         dwarf2_per_objfile.
15172         (set_partial_user): Likewise.
15173         (dwarf2_build_psymtabs_hard): Likewise.
15174         (read_comp_units_from_section): Likewise.
15175         (create_all_comp_units): Likewise.
15176         (scan_partial_symbols): Update calls.
15177         (add_partial_symbol): Likewise.
15178         (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
15179         (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
15180         (process_queue): Add dwarf2_per_objfile parameter.
15181         (get_compunit_symtab): Use dwarf2_per_objfile from cu.
15182         (compute_compunit_symtab_includes): Likewise.
15183         (process_cu_includes): Add dwarf2_per_objfile parameter.
15184         (process_full_comp_unit): Use dwarf2_per_objfile from cu.
15185         (process_full_type_unit): Likewise.
15186         (process_imported_unit_die): Update call.
15187         (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
15188         (read_file_scope): Likewise.
15189         (allocate_dwo_file_hash_table): Add objfile parameter.
15190         (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
15191         (create_cus_hash_table): Likewise.
15192         (create_dwp_hash_table): Likewise.
15193         (create_dwo_unit_in_dwp_v1): Likewise.
15194         (create_dwp_v2_section): Likewise.
15195         (create_dwo_unit_in_dwp_v2): Likewise.
15196         (lookup_dwo_unit_in_dwp): Likewise.
15197         (try_open_dwop_file): Likewise.
15198         (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
15199         (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
15200         cleanup to include a reference to dwarf2_per_objfile.
15201         (open_dwp_file): Add dwarf2_per_objfile parameter.
15202         (open_and_init_dwp_file): Likewise.
15203         (get_dwp_file): Likewise.
15204         (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
15205         (queue_and_load_all_dwo_tus): Update call.
15206         (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
15207         data.
15208         (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
15209         (dwarf2_ranges_process): Likewise.
15210         (dwarf2_get_pc_bounds): Likewise.
15211         (mark_common_block_symbol_computed): Likewise.
15212         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15213         (dwarf2_read_abbrevs): Update call.
15214         (read_partial_die): Use dwarf2_per_objfile from cu.
15215         (find_partial_die): Likewise.
15216         (fixup_partial_die): Likewise.
15217         (read_attribute_value): Likewise.
15218         (read_indirect_string_at_offset_from): Add objfile parameter.
15219         (read_indirect_string_at_offset): Add dwarf2_per_objfile
15220         parameter.
15221         (read_indirect_string_from_dwz): Add objfile parameter.
15222         (read_indirect_string): Add objfile parameter.
15223         (read_addr_index_1): Add dwarf2_per_objfile parameter.
15224         (read_addr_index): Use dwarf2_per_objfile from cu.
15225         (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
15226         call dw2_setup.
15227         (read_str_index): Use dwarf2_per_objfile from cu.
15228         (get_debug_line_section): Likewise.
15229         (read_formatted_entries): Add dwarf2_per_objfile parameter.
15230         (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
15231         (new_symbol_full): Use dwarf2_per_objfile from cu.
15232         (build_error_marker_type): Likewise.
15233         (lookup_die_type): Likewise.
15234         (determine_prefix): Likewise.
15235         (follow_die_offset): Likewise.
15236         (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
15237         (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
15238         (dwarf2_fetch_die_type_sect_off): Likewise.
15239         (dwarf2_get_die_type): Likewise.
15240         (follow_die_sig_1): Use dwarf2_per_objfile from cu.
15241         (get_signatured_type): Likewise.
15242         (get_DW_AT_signature_type): Likewise.
15243         (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
15244         (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
15245         (cu_debug_loc_section): Likewise.
15246         (fill_in_loclist_baton): Likewise.
15247         (dwarf2_symbol_mark_computed): Likewise.
15248         (dwarf2_find_containing_comp_unit): Change objfile parameter to
15249         dwarf2_per_objfile.
15250         (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
15251         parameter.
15252         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15253         (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
15254         (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
15255         (set_die_type): Use dwarf2_free_objfile from cu.
15256         (get_die_type_at_offset): Likewise.
15257         (dwarf2_per_objfile_free): Don't assign global variable.
15258         (debug_names) <constructor>: Add dwarf2_per_objfile
15259         parameter, update m_debugstrlookup construction.
15260         (debug_names::debug_str_lookup): Add dwarf2_per_objfile
15261         parameter.
15262         <m_dwarf2_per_objfile>: New field.
15263         <lookup>: Use m_dwarf2_per_objfile.
15264         (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
15265         (psyms_seen_size): Likewise.
15266         (write_gdbindex): Replace objfile parameter with
15267         dwarf2_per_objfile.
15268         (write_debug_names): Likewise.
15269         (write_psymtabs_to_index): Likewise.
15270         (save_gdb_index_command): Use get_dwarf2_per_objfile, update
15271         calls.
15272
15273 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
15274
15275         * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
15276         <dwarf2_per_objfile>: New field.
15277         (struct dwarf2_per_cu_data) <objfile>: Remove.
15278         <dwarf2_per_objfile>: New field.
15279         (create_cu_from_index_list): Assign dwarf2_per_objfile instead
15280         of objfile.
15281         (create_signatured_type_table_from_index): Likewise.
15282         (create_debug_type_hash_table): Likewise.
15283         (fill_in_sig_entry_from_dwo_entry): Likewise.
15284         (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
15285         (create_type_unit_group): Assign dwarf2_per_objfile instead of
15286         objfile.
15287         (create_partial_symtab): Access objfile through
15288         dwarf2_per_objfile.
15289         (process_psymtab_comp_unit_reader): Likewise.
15290         (read_comp_units_from_section): Likewise.
15291         (scan_partial_symbols): Likewise.
15292         (add_partial_symbol): Likewise.
15293         (add_partial_subprogram): Likewise.
15294         (peek_die_abbrev): Likewise.
15295         (fixup_go_packaging): Likewise.
15296         (process_full_comp_unit): Likewise.
15297         (process_full_type_unit): Likewise.
15298         (process_imported_unit_die): Likewise.
15299         (dwarf2_compute_name): Likewise.
15300         (dwarf2_physname): Likewise.
15301         (read_import_statement): Likewise.
15302         (create_cus_hash_table): Assign dwarf2_physname instead of
15303         objfile.
15304         (read_func_scope): Access objfile through dwarf2_per_objfile.
15305         (read_lexical_block_scope): Likewise.
15306         (read_call_site_scope): Likewise.
15307         (read_variable): Likewise.
15308         (dwarf2_rnglists_process): Likewise.
15309         (dwarf2_ranges_process): Likewise.
15310         (dwarf2_ranges_read): Likewise.
15311         (dwarf2_record_block_ranges): Likewise.
15312         (dwarf2_add_field): Likewise.
15313         (dwarf2_add_member_fn): Likewise.
15314         (read_structure_type): Likewise.
15315         (process_structure_scope): Likewise.
15316         (read_enumeration_type): Likewise.
15317         (read_array_type): Likewise.
15318         (read_common_block): Likewise.
15319         (read_namespace_type): Likewise.
15320         (read_namespace): Likewise.
15321         (read_module_type): Likewise.
15322         (read_tag_pointer_type): Likewise.
15323         (read_tag_ptr_to_member_type): Likewise.
15324         (read_tag_string_type): Likewise.
15325         (read_subroutine_type): Likewise.
15326         (read_typedef): Likewise.
15327         (read_base_type): Likewise.
15328         (attr_to_dynamic_prop): Likewise.
15329         (read_subrange_type): Likewise.
15330         (read_unspecified_type): Likewise.
15331         (load_partial_dies): Likewise.
15332         (read_partial_die): Likewise.
15333         (find_partial_die): Likewise.
15334         (guess_partial_die_structure_name): Likewise.
15335         (fixup_partial_die): Likewise.
15336         (read_attribute_value): Likewise.
15337         (read_addr_index_from_leb128): Likewise.
15338         (dwarf2_read_addr_index): Likewise.
15339         (dwarf2_string_attr): Likewise.
15340         (lnp_state_machine::check_line_address): Likewise.
15341         (dwarf_decode_lines_1): Likewise.
15342         (dwarf_decode_lines): Likewise.
15343         (dwarf2_start_symtab): Likewise.
15344         (var_decode_location): Likewise.
15345         (new_symbol_full): Likewise.
15346         (dwarf2_const_value_data): Likewise.
15347         (dwarf2_const_value_attr): Likewise.
15348         (dwarf2_const_value): Likewise.
15349         (die_type): Likewise.
15350         (die_containing_type): Likewise.
15351         (lookup_die_type): Likewise.
15352         (guess_full_die_structure_name): Likewise.
15353         (anonymous_struct_prefix): Likewise.
15354         (dwarf2_name): Likewise.
15355         (follow_die_ref_or_sig): Likewise.
15356         (follow_die_offset): Likewise.
15357         (follow_die_ref): Likewise.
15358         (dwarf2_fetch_die_loc_sect_off): Likewise.
15359         (dwarf2_fetch_constant_bytes): Likewise.
15360         (dwarf2_fetch_die_type_sect_off): Likewise.
15361         (dwarf2_get_die_type): Likewise.
15362         (follow_die_sig): Likewise.
15363         (decode_locdesc): Likewise.
15364         (dwarf2_per_cu_objfile): Likewise.
15365         (dwarf2_per_cu_text_offset): Likewise.
15366         (init_one_comp_unit): Assign dwarf2_per_objfile instead of
15367         objfile.
15368         (set_die_type): Access objfile through
15369         dwarf2_per_objfile.
15370
15371 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
15372
15373         * valprint.c (converted_character_d): Remove typedef.
15374         (DEF_VEC_O (converted_character_d)): Remove.
15375         (count_next_character): Use std::vector.
15376         (print_converted_chars_to_obstack): Likewise.
15377         (generic_printstr): Likewise.
15378
15379 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
15380
15381         * xml-support.h (struct gdb_xml_value): Add constructor.
15382         <value>: Change type to unique_xmalloc_ptr.
15383         (gdb_xml_value_s): Remove typedef.
15384         (DEF_VEC_O (gdb_xml_value_s)): Remove.
15385         (gdb_xml_element_start_handler): Change parameter type to
15386         std::vector.
15387         (xml_find_attribute): Likewise.
15388         * xml-support.c (xml_find_attribute): Change parameter type to
15389         std::vector and adjust.
15390         (gdb_xml_values_cleanup): Remove.
15391         (gdb_xml_parser::start_element): Adjust to std::vector.
15392         (xinclude_start_include): Change paraeter type to std::vector
15393         and adjust.
15394         * btrace.c (check_xml_btrace_version): Likewise.
15395         (parse_xml_btrace_block): Likewise.
15396         (parse_xml_btrace_pt_config_cpu): Likewise.
15397         (parse_xml_btrace_pt): Likewise.
15398         (parse_xml_btrace_conf_bts): Likewise.
15399         (parse_xml_btrace_conf_pt): Likewise.
15400         * memory-map.c (memory_map_start_memory): Likewise.
15401         (memory_map_start_property): Likewise.
15402         * osdata.c (osdata_start_osdata): Likewise.
15403         (osdata_start_item): Likewise.
15404         (osdata_start_column): Likewise.
15405         * remote.c (start_thread): Likewise.
15406         * solib-aix.c (library_list_start_library): Likewise.
15407         (library_list_start_list): Likewise.
15408         * solib-svr4.c (library_list_start_library): Likewise.
15409         (svr4_library_list_start_list): Likewise.
15410         * solib-target.c (library_list_start_segment): Likewise.
15411         (library_list_start_section): Likewise.
15412         (library_list_start_library): Likewise.
15413         (library_list_start_list): Likewise.
15414         * tracepoint.c (traceframe_info_start_memory): Likewise.
15415         (traceframe_info_start_tvar): Likewise.
15416         * xml-syscall.c (syscall_start_syscall): Likewise.
15417         * xml-tdesc.c (tdesc_start_target): Likewise.
15418         (tdesc_start_feature): Likewise.
15419         (tdesc_start_reg): Likewise.
15420         (tdesc_start_union): Likewise.
15421         (tdesc_start_struct): Likewise.
15422         (tdesc_start_flags): Likewise.
15423         (tdesc_start_enum): Likewise.
15424         (tdesc_start_field): Likewise.
15425         (tdesc_start_enum_value): Likewise.
15426         (tdesc_start_vector): Likewise.
15427
15428 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
15429
15430         * extension.h (struct xmethod_worker) <clone>: Remove.
15431         * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
15432         Remove.
15433         (python_xmethod_worker::clone): Remove.
15434         * valops.c (find_overload_match): Use std::move instead of
15435         clone.
15436
15437 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
15438
15439         * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
15440         (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
15441         <free_xmethod_worker_data>: Remove.
15442         <get_matching_xmethod_workers>: Chance VEC to std::vector.
15443         <get_xmethod_arg_types>: Remove.
15444         <get_xmethod_result_type>: Remove.
15445         <invoke_xmethod>: Remove.
15446         * extension.c (new_xmethod_worker): Remove.
15447         (clone_xmethod_worker): Remove.
15448         (get_matching_xmethod_workers): Return void, pass std::vector by
15449         pointer.
15450         (get_xmethod_arg_types): Rename to...
15451         (xmethod_worker::get_arg_types): ... this, and adjust.
15452         (get_xmethod_result_type): Rename to...
15453         (xmethod_worker::get_result_type): ... this, and adjust.
15454         (invoke_xmethod): Remove.
15455         (free_xmethod_worker): Remove.
15456         (free_xmethod_worker_vec): Remove.
15457         * extension.h (enum ext_lang_rc): Move here from
15458         extension-priv.h.
15459         (struct xmethod_worker): Add constructor and destructor.
15460         <data>: Remove.
15461         <value>: Remove.
15462         <invoke, clone, do_get_result_type, do_get_arg_types>: New
15463         virtual pure methods.
15464         <get_arg_types, get_result_type>: New methods.
15465         (xmethod_worker_ptr): Remove typedef.
15466         (DEF_VEC_P (xmethod_worker_ptr)): Remove.
15467         (xmethod_worker_vec): Remove typedef.
15468         (xmethod_worker_up): New typedef.
15469         (invoke_xmethod): Remove.
15470         (clone_xmethod_worker): Remove.
15471         (free_xmethod_worker): Remove.
15472         (free_xmethod_worker_vec): Remove.
15473         (get_xmethod_arg_types): Remove.
15474         (get_xmethod_result_type): Remove.
15475         * valops.c (find_method_list): Use std::vector, don't use
15476         intermediate vector.
15477         (value_find_oload_method_list): Use std::vector.
15478         (find_overload_match): Use std::vector.
15479         (find_oload_champ): Use std::vector.
15480         * value.c (value_free): Use operator delete.
15481         (value_of_xmethod): Rename to...
15482         (value_from_xmethod): ... this.  Don't assign
15483         xmethod_worker::value, take rvalue-reference.
15484         (result_type_of_xmethod): Adjust.
15485         (call_xmethod): Adjust.
15486         * value.h: Include extension.h.
15487         (struct xmethod_worker): Don't forward-declare.
15488         (value_of_xmethod): Rename to...
15489         (value_from_xmethod): ... this, take rvalue-reference.
15490         * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
15491         (struct python_xmethod_worker): ... this, add constructor and
15492         destructor.
15493         <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
15494         (gdbpy_free_xmethod_worker_data): Rename to...
15495         (python_xmethod_worker::~python_xmethod_worker): ... this and
15496         adjust.
15497         (gdbpy_clone_xmethod_worker_data): Rename to...
15498         (python_xmethod_worker::clone): ... this and adjust.
15499         (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
15500         temporary vector.
15501         (gdbpy_get_xmethod_arg_types): Rename to...
15502         (python_xmethod_worker::do_get_arg_types): ... this and adjust.
15503         (gdbpy_get_xmethod_result_type): Rename to...
15504         (python_xmethod_worker::do_get_result_type): ... this and
15505         adjust.
15506         (gdbpy_invoke_xmethod): Rename to...
15507         (python_xmethod_worker::invoke): ... this and adjust.
15508         (new_python_xmethod_worker): Rename to...
15509         (python_xmethod_worker::python_xmethod_worker): ... this and
15510         adjust.
15511         * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
15512         Remove.
15513         (gdbpy_free_xmethod_worker_data): Remove.
15514         (gdbpy_get_matching_xmethod_workers): Use std::vector.
15515         (gdbpy_get_xmethod_arg_types): Remove.
15516         (gdbpy_get_xmethod_result_type): Remove.
15517         (gdbpy_invoke_xmethod): Remove.
15518         * python/python.c (python_extension_ops): Remove obsolete
15519         callbacks.
15520
15521 2018-01-05  Pedro Alves  <palves@redhat.com>
15522
15523         PR gdb/18653
15524         * common/signals-state-save-restore.c
15525         (save_original_signals_state): New parameter 'quiet'.  Warn if we
15526         find a custom handler preinstalled, instead of internal erroring.
15527         But only warn if !quiet.
15528         * common/signals-state-save-restore.h
15529         (save_original_signals_state): New parameter 'quiet'.
15530         * main.c (captured_main_1): Move save_original_signals_state call
15531         after option handling, and pass QUIET.
15532
15533 2018-01-05  Pedro Alves  <palves@redhat.com>
15534
15535         * spu-tdep.c (spu_catch_start): Pass
15536         symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
15537
15538 2018-01-05  Pedro Alves  <palves@redhat.com>
15539
15540         PR gdb/22670
15541         * ada-lang.c (literal_symbol_name_matcher): New function.
15542         (ada_get_symbol_name_matcher): Use it for
15543         symbol_name_match_type::SEARCH_NAME.
15544         * block.c (block_lookup_symbol): New parameter 'match_type'.  Pass
15545         it down instead of assuming symbol_name_match_type::FULL.
15546         * block.h (block_lookup_symbol): New parameter 'match_type'.
15547         * c-valprint.c (print_unpacked_pointer): Use
15548         lookup_symbol_search_name instead of lookup_symbol.
15549         * compile/compile-object-load.c (get_out_value_type): Pass down
15550         symbol_name_match_type::SEARCH_NAME.
15551         * cp-namespace.c (cp_basic_lookup_symbol): Pass down
15552         symbol_name_match_type::FULL.
15553         * cp-support.c (cp_get_symbol_name_matcher): Handle
15554         symbol_name_match_type::SEARCH_NAME.
15555         * infrun.c (insert_exception_resume_breakpoint): Use
15556         lookup_symbol_search_name.
15557         * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
15558         * psymtab.c (maintenance_check_psymtabs): Use
15559         symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
15560         * stack.c (print_frame_args): Use lookup_symbol_search_name and
15561         SYMBOL_SEARCH_NAME.
15562         * symtab.c (lookup_local_symbol): Don't demangle the lookup name
15563         if symbol_name_match_type::SEARCH_NAME.
15564         (lookup_symbol_in_language): Pass down
15565         symbol_name_match_type::FULL.
15566         (lookup_symbol_search_name): New.
15567         (lookup_language_this): Pass down
15568         symbol_name_match_type::SEARCH_NAME.
15569         (lookup_symbol_aux, lookup_local_symbol): New parameter
15570         'match_type'.  Pass it down.
15571         * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
15572         (lookup_symbol_search_name): New declaration.
15573         (lookup_symbol_in_block): New 'match_type' parameter.
15574
15575 2018-01-05  Pedro Alves  <palves@redhat.com>
15576
15577         PR gdb/22670
15578         * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
15579         ada_lookup_symbol.
15580         (ada_lookup_symbol): Reimplement in terms of
15581         ada_lookup_symbol_list, bits factored out from
15582         ada_lookup_encoded_symbol.
15583
15584 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
15585
15586         * ada-exp.y (write_object_renaming): When subscripting an array
15587         using a symbol as the index, pass the block in call to
15588         ada_lookup_encoded_symbol when looking that symbol up.
15589
15590 2018-01-05  Jerome Guitton  <guitton@adacore.com>
15591
15592         * ada-lang.c (ada_array_length): Use ada_index_type instead of
15593         TYPE_INDEX_TYPE.
15594
15595 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
15596
15597         * ada-lang.c (ada_to_fixed_value_create): Add handling of
15598         the case where VALUE_LVAL (val0) is not lval_memory.
15599
15600 2018-01-05  Xavier Roirand  <roirand@adacore.com>
15601
15602         * ada-valprint.c (print_optional_low_bound): Handle
15603         character-indexed array printing like boolean-indexed array
15604         printing.
15605
15606 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
15607
15608         * NEWS: Create a new section for the next release branch.
15609         Rename the section of the current branch, now that it has
15610         been cut.
15611
15612 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
15613
15614         GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
15615         * version.in: Bump version to 8.1.50.DATE-git.
15616
15617 2018-01-03  Xavier Roirand  <roirand@adacore.com>
15618
15619         * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
15620         Add field.
15621         * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
15622         Add field.
15623         (default_exception_support_info) <catch_handlers_sym>: Add field.
15624         (exception_support_info_fallback) <catch_handlers_sym>: Add field.
15625         (ada_exception_name_addr_1): Add "catch handlers" handling.
15626         (ada_exception_catchpoint_cond_string) <ex>: New parameter.
15627         Update all callers.
15628         (create_excep_cond_exprs) <ex>: Add parameter.
15629         (re_set_exception): Update create_excep_cond_exprs call.
15630         (print_it_exception, print_one_exception, print_mention_exception)
15631         (print_recreate_exception): Add "catch handler" handling.
15632         (allocate_location_catch_handlers, re_set_catch_handlers)
15633         (check_status_catch_handlers, print_it_catch_handlers)
15634         (print_one_catch_handlers, print_mention_catch_handlers)
15635         (print_recreate_catch_handlers): New function.
15636         (catch_handlers_breakpoint_ops): New variable.
15637         (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
15638         Add parameter.  Add "catch handler" handling.
15639         (ada_exception_sym_name, ada_exception_breakpoint_ops):
15640         Add "catch handler" handling.
15641         (ada_exception_catchpoint_cond_string): Add "catch handler"
15642         handling.
15643         (create_ada_exception_catchpoint): Update create_excep_cond_exprs
15644         call.
15645         (catch_ada_handlers_command): New function.
15646         (initialize_ada_catchpoint_ops): Initialize "catch handlers"
15647         operations structure.
15648         (_initialize_ada_language): Add "catch handlers" command entry.
15649         * NEWS: Document "catch handlers" feature.
15650
15651 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
15652
15653         * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
15654         account when creating the array type of the slice.
15655         (ada_value_slice): Likewise.
15656
15657 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
15658
15659         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
15660         New enum value.
15661         (create_array_type_with_stride): Add byte_stride_prop parameter.
15662         * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
15663         New parameter.  Update all callers in this file.
15664         (array_type_has_dynamic_stride): New function.
15665         (is_dynamic_type_internal, resolve_dynamic_array): Add handling
15666         of arrays with dynamic byte strides.
15667         * dwarf2read.c (read_array_type): Add support for dynamic
15668         DW_AT_byte_stride attributes.
15669
15670 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
15671
15672         * dwarf2read.c (read_unspecified_type): Treat
15673         DW_TAG_enumeration_type DIEs from Ada units as stubs.
15674
15675 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
15676
15677         Update copyright year range in all GDB files.
15678
15679 2018-01-01, 18  Joel Brobecker  <brobecker@adacore.com>
15680
15681         * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
15682         and gdb/testsuite/gdb.base/step-line.c.
15683
15684 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
15685
15686         * copyright.py (main): Dump the contents of
15687         MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
15688         even if BY_HAND is empty.
15689
15690 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
15691
15692         * top.c (print_gdb_version): Update Copyright year in version
15693         message.
15694
15695 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
15696
15697         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
15698
15699 For older changes see ChangeLog-2017.
15700 \f
15701 Local Variables:
15702 mode: change-log
15703 left-margin: 8
15704 fill-column: 74
15705 version-control: never
15706 coding: utf-8
15707 End: