Fix crash with empty Rust enum
[external/binutils.git] / gdb / ChangeLog
1 2018-09-13  Tom Tromey  <tom@tromey.com>
2
3         PR rust/23626:
4         * rust-lang.c (rust_enum_variant): Now static.
5         (rust_empty_enum_p): New function.
6         (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
7         Handle empty enum.
8
9 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
10
11         * python/py-inferior.c (infpy_repr): New.
12         (inferior_object_type): Register infpy_repr.
13         * python/py-objfile.c (objfpy_repr): New.
14         (objfile_object_type): Register objfpy_repr.
15
16 2018-09-12  John Baldwin  <jhb@FreeBSD.org>
17
18         * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
19
20 2018-09-12  John Baldwin  <jhb@FreeBSD.org>
21
22         * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
23         typo.
24
25 2018-09-12  Sergio Durigan Junior  <sergiodj@redhat.com>
26
27         * common/common-utils.c: Don't include '<sys/stat.h>'.
28         (is_regular_file): Move to...
29         * common/filestuff.c (is_regular_file): ... here.
30         * common/common-utils.h (is_regular_file): Move to...
31         * common/filestuff.h (is_regular_file): ... here.
32
33 2018-09-12  Simon Marchi  <simon.marchi@ericsson.com>
34
35         * skip.c (debug_skip): New variable.
36         (skiplist_entry::do_skip_file_p): Add debug output.
37         (skiplist_entry::do_skip_gfile_p): Likewise.
38         (skiplist_entry::skip_function_p): Likewise.
39         (_initialize_step_skip): Create debug command.
40         * NEWS: Mention set/show debug skip.
41
42 2018-09-11  Xavier Roirand  <roirand@adacore.com>
43
44         * darwin-nat.c (should_disable_startup_with_shell):
45         New function.
46         (darwin_nat_target::create_inferior): Add call.
47
48 2018-09-11  Xavier Roirand  <roirand@adacore.com>
49
50         * darwin-nat.h (struct darwin_thread_info) <gdb_port,
51         inf_port, msg_state>: Initialize.
52         (struct darwin_thread_info) <signaled, single_step>: Change
53         type and initialize.
54         (struct darwin_thread_info) <event>: Initialize.
55
56 2018-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>
57
58         PR gdb/23555
59         PR gdb/23558
60         * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
61         guesses.
62
63 2018-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>
64
65         Revert:
66         2018-08-29  Sergio Durigan Junior  <sergiodj@redhat.com>
67
68         PR gdb/23555
69         PR gdb/23558
70         * gnulib/aclocal.m4: Regenerate.
71         * gnulib/config.in: Regenerate.
72         * gnulib/configure: Regenerate.
73         * gnulib/import/Makefile.am: Update.
74         * gnulib/import/Makefile.in: Update.
75         * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
76         * gnulib/import/_Noreturn.h: ... this.
77         * gnulib/import/alloca.in.h: Update.
78         * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
79         * gnulib/import/arg-nonnull.h: ... this.
80         * gnulib/import/assure.h: Update.
81         * gnulib/import/at-func.c: Update.
82         * gnulib/import/basename-lgpl.c: Update.
83         * gnulib/import/extra/snippet/c++defs.h: Rename to...
84         * gnulib/import/c++defs.h: ... this.
85         * gnulib/import/canonicalize-lgpl.c: Update.
86         * gnulib/import/cdefs.h: Update.
87         * gnulib/import/chdir-long.c: Update.
88         * gnulib/import/chdir-long.h: Update.
89         * gnulib/import/cloexec.c: Update.
90         * gnulib/import/cloexec.h: Update.
91         * gnulib/import/close.c: Update.
92         * gnulib/import/closedir.c: Update.
93         * gnulib/import/config.charset: Update.
94         * gnulib/import/dirent-private.h: Update.
95         * gnulib/import/dirent.in.h: Update.
96         * gnulib/import/dirfd.c: Update.
97         * gnulib/import/dirname-lgpl.c: Update.
98         * gnulib/import/dirname.h: Update.
99         * gnulib/import/dosname.h: Update.
100         * gnulib/import/dup-safer-flag.c: Update.
101         * gnulib/import/dup-safer.c: Update.
102         * gnulib/import/dup.c: Update.
103         * gnulib/import/dup2.c: Update.
104         * gnulib/import/errno.in.h: Update.
105         * gnulib/import/error.c: Update.
106         * gnulib/import/error.h: Update.
107         * gnulib/import/exitfail.c: Update.
108         * gnulib/import/exitfail.h: Update.
109         * gnulib/import/extra/update-copyright: Update.
110         * gnulib/import/fchdir.c: Update.
111         * gnulib/import/fcntl.c: Update.
112         * gnulib/import/fcntl.in.h: Update.
113         * gnulib/import/fd-hook.c: Update.
114         * gnulib/import/fd-hook.h: Update.
115         * gnulib/import/fd-safer-flag.c: Update.
116         * gnulib/import/fd-safer.c: Update.
117         * gnulib/import/fdopendir.c: Update.
118         * gnulib/import/filename.h: Update.
119         * gnulib/import/filenamecat-lgpl.c: Update.
120         * gnulib/import/filenamecat.h: Update.
121         * gnulib/import/flexmember.h: Update.
122         * gnulib/import/float+.h: Update.
123         * gnulib/import/float.c: Update.
124         * gnulib/import/float.in.h: Update.
125         * gnulib/import/fnmatch.c: Update.
126         * gnulib/import/fnmatch.in.h: Update.
127         * gnulib/import/fnmatch_loop.c: Update.
128         * gnulib/import/fpucw.h: Update.
129         * gnulib/import/frexp.c: Update.
130         * gnulib/import/frexpl.c: Update.
131         * gnulib/import/fstat.c: Update.
132         * gnulib/import/fstatat.c: Update.
133         * gnulib/import/getcwd-lgpl.c: Update.
134         * gnulib/import/getcwd.c: Update.
135         * gnulib/import/getdtablesize.c: Update.
136         * gnulib/import/getlogin_r.c: Update.
137         * gnulib/import/getprogname.c: Update.
138         * gnulib/import/getprogname.h: Update.
139         * gnulib/import/gettext.h: Update.
140         * gnulib/import/gettimeofday.c: Update.
141         * gnulib/import/glob-libc.h: Update.
142         * gnulib/import/glob.c: Update.
143         * gnulib/import/glob.in.h: Update.
144         * gnulib/import/glob_internal.h: Update.
145         * gnulib/import/glob_pattern_p.c: Update.
146         * gnulib/import/globfree.c: Update.
147         * gnulib/import/hard-locale.c: Update.
148         * gnulib/import/hard-locale.h: Update.
149         * gnulib/import/intprops.h: Update.
150         * gnulib/import/inttypes.in.h: Update.
151         * gnulib/import/isnan.c: Update.
152         * gnulib/import/isnand-nolibm.h: Update.
153         * gnulib/import/isnand.c: Update.
154         * gnulib/import/isnanl-nolibm.h: Update.
155         * gnulib/import/isnanl.c: Update.
156         * gnulib/import/itold.c: Update.
157         * gnulib/import/libc-config.h: Update.
158         * gnulib/import/limits.in.h: Update.
159         * gnulib/import/localcharset.c: Update.
160         * gnulib/import/localcharset.h: Update.
161         * gnulib/import/localtime-buffer.c: Update.
162         * gnulib/import/localtime-buffer.h: Update.
163         * gnulib/import/lstat.c: Update.
164         * gnulib/import/m4/00gnulib.m4: Update.
165         * gnulib/import/m4/__inline.m4: Update.
166         * gnulib/import/m4/absolute-header.m4: Update.
167         * gnulib/import/m4/alloca.m4: Update.
168         * gnulib/import/m4/builtin-expect.m4: Update.
169         * gnulib/import/m4/canonicalize.m4: Update.
170         * gnulib/import/m4/chdir-long.m4: Update.
171         * gnulib/import/m4/close.m4: Update.
172         * gnulib/import/m4/closedir.m4: Update.
173         * gnulib/import/m4/configmake.m4: Update.
174         * gnulib/import/m4/d-ino.m4: Update.
175         * gnulib/import/m4/d-type.m4: Update.
176         * gnulib/import/m4/dirent_h.m4: Update.
177         * gnulib/import/m4/dirfd.m4: Update.
178         * gnulib/import/m4/dirname.m4: Update.
179         * gnulib/import/m4/double-slash-root.m4: Update.
180         * gnulib/import/m4/dup.m4: Update.
181         * gnulib/import/m4/dup2.m4: Update.
182         * gnulib/import/m4/eealloc.m4: Update.
183         * gnulib/import/m4/environ.m4: Update.
184         * gnulib/import/m4/errno_h.m4: Update.
185         * gnulib/import/m4/error.m4: Update.
186         * gnulib/import/m4/exponentd.m4: Update.
187         * gnulib/import/m4/exponentl.m4: Update.
188         * gnulib/import/m4/extensions.m4: Update.
189         * gnulib/import/m4/extern-inline.m4: Update.
190         * gnulib/import/m4/fchdir.m4: Update.
191         * gnulib/import/m4/fcntl-o.m4: Update.
192         * gnulib/import/m4/fcntl.m4: Update.
193         * gnulib/import/m4/fcntl_h.m4: Update.
194         * gnulib/import/m4/fdopendir.m4: Update.
195         * gnulib/import/m4/filenamecat.m4: Update.
196         * gnulib/import/m4/flexmember.m4: Update.
197         * gnulib/import/m4/float_h.m4: Update.
198         * gnulib/import/m4/fnmatch.m4: Update.
199         * gnulib/import/m4/fnmatch_h.m4: Update.
200         * gnulib/import/m4/fpieee.m4: Update.
201         * gnulib/import/m4/frexp.m4: Update.
202         * gnulib/import/m4/frexpl.m4: Update.
203         * gnulib/import/m4/fstat.m4: Update.
204         * gnulib/import/m4/fstatat.m4: Update.
205         * gnulib/import/m4/getcwd-abort-bug.m4: Update.
206         * gnulib/import/m4/getcwd-path-max.m4: Update.
207         * gnulib/import/m4/getcwd.m4: Update.
208         * gnulib/import/m4/getdtablesize.m4: Update.
209         * gnulib/import/m4/getlogin.m4: Update.
210         * gnulib/import/m4/getlogin_r.m4: Update.
211         * gnulib/import/m4/getpagesize.m4: Update.
212         * gnulib/import/m4/getprogname.m4: Update.
213         * gnulib/import/m4/gettimeofday.m4: Update.
214         * gnulib/import/m4/glibc21.m4: Update.
215         * gnulib/import/m4/glob.m4: Update.
216         * gnulib/import/m4/glob_h.m4: Update.
217         * gnulib/import/m4/gnulib-cache.m4: Update.
218         * gnulib/import/m4/gnulib-common.m4: Update.
219         * gnulib/import/m4/gnulib-comp.m4: Update.
220         * gnulib/import/m4/gnulib-tool.m4: Update.
221         * gnulib/import/m4/hard-locale.m4: Update.
222         * gnulib/import/m4/include_next.m4: Update.
223         * gnulib/import/m4/inttypes-pri.m4: Update.
224         * gnulib/import/m4/inttypes.m4: Update.
225         * gnulib/import/m4/isnand.m4: Update.
226         * gnulib/import/m4/isnanl.m4: Update.
227         * gnulib/import/m4/largefile.m4: Update.
228         * gnulib/import/m4/limits-h.m4: Update.
229         * gnulib/import/m4/localcharset.m4: Update.
230         * gnulib/import/m4/locale-fr.m4: Update.
231         * gnulib/import/m4/locale-ja.m4: Update.
232         * gnulib/import/m4/locale-zh.m4: Update.
233         * gnulib/import/m4/localtime-buffer.m4: Update.
234         * gnulib/import/m4/longlong.m4: Update.
235         * gnulib/import/m4/lstat.m4: Update.
236         * gnulib/import/m4/malloc.m4: Update.
237         * gnulib/import/m4/malloca.m4: Update.
238         * gnulib/import/m4/math_h.m4: Update.
239         * gnulib/import/m4/mbrtowc.m4: Update.
240         * gnulib/import/m4/mbsinit.m4: Update.
241         * gnulib/import/m4/mbsrtowcs.m4: Update.
242         * gnulib/import/m4/mbstate_t.m4: Update.
243         * gnulib/import/m4/memchr.m4: Update.
244         * gnulib/import/m4/memmem.m4: Update.
245         * gnulib/import/m4/mempcpy.m4: Update.
246         * gnulib/import/m4/memrchr.m4: Update.
247         * gnulib/import/m4/mkdir.m4: Update.
248         * gnulib/import/m4/mkstemp.m4: Update.
249         * gnulib/import/m4/mmap-anon.m4: Update.
250         * gnulib/import/m4/mode_t.m4: Update.
251         * gnulib/import/m4/msvc-inval.m4: Update.
252         * gnulib/import/m4/msvc-nothrow.m4: Update.
253         * gnulib/import/m4/multiarch.m4: Update.
254         * gnulib/import/m4/nocrash.m4: Update.
255         * gnulib/import/m4/off_t.m4: Update.
256         * gnulib/import/m4/onceonly.m4: Update.
257         * gnulib/import/m4/open-cloexec.m4: Update.
258         * gnulib/import/m4/open.m4: Update.
259         * gnulib/import/m4/openat.m4: Update.
260         * gnulib/import/m4/opendir.m4: Update.
261         * gnulib/import/m4/pathmax.m4: Update.
262         * gnulib/import/m4/rawmemchr.m4: Update.
263         * gnulib/import/m4/readdir.m4: Update.
264         * gnulib/import/m4/readlink.m4: Update.
265         * gnulib/import/m4/realloc.m4: Update.
266         * gnulib/import/m4/rename.m4: Update.
267         * gnulib/import/m4/rewinddir.m4: Update.
268         * gnulib/import/m4/rmdir.m4: Update.
269         * gnulib/import/m4/save-cwd.m4: Update.
270         * gnulib/import/m4/secure_getenv.m4: Update.
271         * gnulib/import/m4/setenv.m4: Update.
272         * gnulib/import/m4/signal_h.m4: Update.
273         * gnulib/import/m4/ssize_t.m4: Update.
274         * gnulib/import/m4/stat-time.m4: Update.
275         * gnulib/import/m4/stat.m4: Update.
276         * gnulib/import/m4/std-gnu11.m4: Update.
277         * gnulib/import/m4/stdbool.m4: Update.
278         * gnulib/import/m4/stddef_h.m4: Update.
279         * gnulib/import/m4/stdint.m4: Update.
280         * gnulib/import/m4/stdio_h.m4: Update.
281         * gnulib/import/m4/stdlib_h.m4: Update.
282         * gnulib/import/m4/strchrnul.m4: Update.
283         * gnulib/import/m4/strdup.m4: Update.
284         * gnulib/import/m4/strerror.m4: Update.
285         * gnulib/import/m4/string_h.m4: Update.
286         * gnulib/import/m4/strstr.m4: Update.
287         * gnulib/import/m4/strtok_r.m4: Update.
288         * gnulib/import/m4/sys_socket_h.m4: Update.
289         * gnulib/import/m4/sys_stat_h.m4: Update.
290         * gnulib/import/m4/sys_time_h.m4: Update.
291         * gnulib/import/m4/sys_types_h.m4: Update.
292         * gnulib/import/m4/tempname.m4: Update.
293         * gnulib/import/m4/time_h.m4: Update.
294         * gnulib/import/m4/unistd-safer.m4: Update.
295         * gnulib/import/m4/unistd_h.m4: Update.
296         * gnulib/import/m4/warn-on-use.m4: Update.
297         * gnulib/import/m4/wchar_h.m4: Update.
298         * gnulib/import/m4/wchar_t.m4: Update.
299         * gnulib/import/m4/wctype_h.m4: Update.
300         * gnulib/import/m4/wint_t.m4: Update.
301         * gnulib/import/malloc.c: Update.
302         * gnulib/import/malloc/scratch_buffer.h: Update.
303         * gnulib/import/malloc/scratch_buffer_grow.c: Update.
304         * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
305         * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
306         * gnulib/import/malloca.c: Update.
307         * gnulib/import/malloca.h: Update.
308         * gnulib/import/malloca.valgrind: Update.
309         * gnulib/import/math.in.h: Update.
310         * gnulib/import/mbrtowc.c: Update.
311         * gnulib/import/mbsinit.c: Update.
312         * gnulib/import/mbsrtowcs-impl.h: Update.
313         * gnulib/import/mbsrtowcs-state.c: Update.
314         * gnulib/import/mbsrtowcs.c: Update.
315         * gnulib/import/memchr.c: Update.
316         * gnulib/import/memmem.c: Update.
317         * gnulib/import/mempcpy.c: Update.
318         * gnulib/import/memrchr.c: Update.
319         * gnulib/import/mkdir.c: Update.
320         * gnulib/import/mkstemp.c: Update.
321         * gnulib/import/msvc-inval.c: Update.
322         * gnulib/import/msvc-inval.h: Update.
323         * gnulib/import/msvc-nothrow.c: Update.
324         * gnulib/import/msvc-nothrow.h: Update.
325         * gnulib/import/open.c: Update.
326         * gnulib/import/openat-die.c: Update.
327         * gnulib/import/openat-priv.h: Update.
328         * gnulib/import/openat-proc.c: Update.
329         * gnulib/import/openat.c: Update.
330         * gnulib/import/openat.h: Update.
331         * gnulib/import/opendir.c: Update.
332         * gnulib/import/pathmax.h: Update.
333         * gnulib/import/pipe-safer.c: Update.
334         * gnulib/import/rawmemchr.c: Update.
335         * gnulib/import/readdir.c: Update.
336         * gnulib/import/readlink.c: Update.
337         * gnulib/import/realloc.c: Update.
338         * gnulib/import/ref-add.sin: Update.
339         * gnulib/import/ref-del.sin: Update.
340         * gnulib/import/rename.c: Update.
341         * gnulib/import/rewinddir.c: Update.
342         * gnulib/import/rmdir.c: Update.
343         * gnulib/import/same-inode.h: Update.
344         * gnulib/import/save-cwd.c: Update.
345         * gnulib/import/save-cwd.h: Update.
346         * gnulib/import/scratch_buffer.h: Update.
347         * gnulib/import/secure_getenv.c: Update.
348         * gnulib/import/setenv.c: Update.
349         * gnulib/import/signal.in.h: Update.
350         * gnulib/import/stat-time.c: Update.
351         * gnulib/import/stat-time.h: Update.
352         * gnulib/import/stat-w32.c: Update.
353         * gnulib/import/stat-w32.h: Update.
354         * gnulib/import/stat.c: Update.
355         * gnulib/import/stdbool.in.h: Update.
356         * gnulib/import/stddef.in.h: Update.
357         * gnulib/import/stdint.in.h: Update.
358         * gnulib/import/stdio.in.h: Update.
359         * gnulib/import/stdlib.in.h: Update.
360         * gnulib/import/str-two-way.h: Update.
361         * gnulib/import/strchrnul.c: Update.
362         * gnulib/import/strdup.c: Update.
363         * gnulib/import/streq.h: Update.
364         * gnulib/import/strerror-override.c: Update.
365         * gnulib/import/strerror-override.h: Update.
366         * gnulib/import/strerror.c: Update.
367         * gnulib/import/string.in.h: Update.
368         * gnulib/import/stripslash.c: Update.
369         * gnulib/import/strnlen1.c: Update.
370         * gnulib/import/strnlen1.h: Update.
371         * gnulib/import/strstr.c: Update.
372         * gnulib/import/strtok_r.c: Update.
373         * gnulib/import/sys_stat.in.h: Update.
374         * gnulib/import/sys_time.in.h: Update.
375         * gnulib/import/sys_types.in.h: Update.
376         * gnulib/import/tempname.c: Update.
377         * gnulib/import/tempname.h: Update.
378         * gnulib/import/time.in.h: Update.
379         * gnulib/import/unistd--.h: Update.
380         * gnulib/import/unistd-safer.h: Update.
381         * gnulib/import/unistd.in.h: Update.
382         * gnulib/import/unsetenv.c: Update.
383         * gnulib/import/verify.h: Update.
384         * gnulib/import/extra/snippet/warn-on-use.h: Update.
385         * gnulib/import/wchar.in.h: Update.
386         * gnulib/import/wctype.in.h: Update.
387         * gnulib/import/xalloc-oversized.h: Update.
388         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
389         "53e2c179f26a890fa6685af4b6c1397ee370433b".
390
391 2018-09-10  Simon Marchi  <simon.marchi@ericsson.com>
392
393         * record-btrace.c (get_thread_current_frame): Remove
394         old_inferior_ptid.
395
396 2018-09-10  Jerome Guitton  <guitton@adacore.com>
397
398         * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
399         with check_tag to 1 if and only if the type is tagged and the
400         component being searched cannot been found in the current
401         view. Otherwise, always call ada_to_fixed_type with
402         check_tag to 0.
403
404 2018-09-10  Xavier Roirand  <roirand@adacore.com>
405
406         * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
407         declaration.
408         * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
409         * ada-varobj.c (ada_varobj_get_number_of_children,
410         ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
411
412 2018-09-10  Xavier Roirand  <roirand@adacore.com>
413
414         * ada-valprint.c (ada_value_print): Use type instead of
415         enclosing type.
416
417 2018-09-10  Xavier Roirand  <roirand@adacore.com>
418
419         * ada-lang.c (ada_value_subscript): Handle case when parameter is
420         an array of access to unconstrained array.
421
422 2018-09-10  Xavier Roirand  <roirand@adacore.com>
423
424         * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
425         (ada_check_typedef): Use it.
426
427 2018-09-10  Xavier Roirand  <roirand@adacore.com>
428
429         * ada-varobj.c (ada_varobj_describe_struct_child)
430         (ada_varobj_describe_child): Handle union case like struct one.
431
432 2018-09-10  Tom Tromey  <tom@tromey.com>
433
434         PR python/18380:
435         * python/python.c (_initialize_python): Make example in "python"
436         help work in Python 3.
437
438 2018-09-10  Eli Zaretskii  <eliz@gnu.org>
439
440         * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
441         INSTALL_PROGRAM to install gdb-add-index.sh.  Don't append
442         $(EXEEXT) to the script, as it is not a program.
443
444 2018-09-09  Simon Marchi  <simon.marchi@ericsson.com>
445
446         * python/py-prettyprint.c (pretty_print_one_value): Return
447         gdbpy_ref<>.
448         (print_string_repr): Adjust.
449         (apply_varobj_pretty_printer): Return gdbpy_ref<>.
450         * python/python-internal.h (apply_varobj_pretty_printer): Return
451         gdbpy_ref<>.
452         * varobj.c (varobj_value_get_print_value): Adjust.
453
454 2018-09-08  Tom Tromey  <tom@tromey.com>
455
456         PR python/16047:
457         * python/py-prettyprint.c (pretty_print_one_value): Check for
458         to_string method.
459
460 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
461
462         * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
463         replace_operator_with_call.
464
465 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
466
467         * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
468
469 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
470
471         * ada-typeprint.c (print_range): Print the bounds using TYPE
472         rather than its TYPE_TARGET_TYPE.
473
474 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
475
476         * ada-lang.c (ada_to_fixed_value): Minor reformatting in
477         call to ada_to_fixed_value_create.
478
479 2018-09-08  Jerome Guitton  <guitton@adacore.com>
480
481         * ada-lang.c (ada_decode): strip dot prefix in symbol name.
482
483 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
484
485         * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
486         by calls to error.
487
488 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
489
490         * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
491         Move update of loop variable "fi".
492
493 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
494
495         * ada-lang.c (value_assign_to_component): In the case of
496         big-endian targets, extract the bits of the given VAL
497         using an src_offset of zero if container is not a scalar.
498
499 2018-09-06  Simon Ser  <contact@emersion.fr>
500
501         PR gdb/23105
502         * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
503         TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
504         * fbsd-tdep.c (fbsd_make_note_desc): New.
505         (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
506         NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
507         * target.h (enum target_object) Add FreeBSD-specific
508         TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
509
510 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
511
512         * compile/compile-c.h (generate_c_for_variable_locations):
513         Change reference to pointer.
514         * compile/compile-c-support.c (compile_program) <compute>:
515         Likewise.
516         * compile/compile-c-symbols.c (generate_vla_size): Likewise.
517         (generate_c_for_for_one_variable): Likewise
518         (generate_c_for_variable_locations): Likewise
519         * compile/compile-c-types.c (compile_c_instance::convert_type):
520         Likewise
521         * compile/compile-cplus-symbols.c (convert_one_symbol):
522         std::move the scope passed to enter_scope.
523         * compile/compile-cplus-types.c
524         (compile_cplus_instance::enter_scope): Make parameter
525         rvalue-reference.
526         (compile_cplus_instance::new_scope): Change reference to
527         pointer.
528         (compile_cplus_instance::convert_type): Likewise
529         (compile_cplus_convert_typedef): std::move the scope passed to
530         enter_scope.
531         (compile_cplus_convert_struct_or_union): Likewise.
532         (compile_cplus_convert_enum): Likewise.
533         (compile_cplus_convert_namespace): Likewise.
534         * compile/compile-cplus.h (compile_cplus_instance)
535         <enter_scope>: Make parameter rvalue-reference.
536         * compile/compile-internal.h (compile_instance)
537         <get_cached_type>: Likewise
538         * compile/compile-loc2c.c (push): Likewise
539         (pushf): Likewise
540         (unary): Likewise
541         (binary): Likewise
542         (print_label): Likewise
543         (pushf_register_address): Likewise
544         (pushf_register): Likewise
545         (do_compile_dwarf_expr_to_c): Likewise
546         (compile_dwarf_expr_to_c): Likewise
547         (compile_dwarf_bounds_to_c): Likewise
548         * compile/compile.c (compile_instance::get_cached_type):
549         Likewise
550         * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
551         (compile_dwarf_bounds_to_c): Likewise
552         * dwarf2loc.c (locexpr_generate_c_location): Likewise.
553         (dwarf2_compile_property_to_c): Likewise
554         * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
555         * symtab.h (struct symbol_computed_ops) <generate_c_location>:
556         Likewise
557
558 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
559
560         * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
561         * tui/tui-data.c (init_content_element): Don't initialize it.
562
563 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
564
565         * tui/tui-data.h (struct tui_win_info)
566         <detail::opaque>: Remove.
567         * tui/tui-data.c (init_win_info): Remove assignment.
568
569 2018-09-05  Tom Tromey  <tom@tromey.com>
570
571         * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
572         -Wformat-nonliteral.
573         * target-float.c (host_float_ops<T>::to_string)
574         (host_float_ops<T>::from_string): Use
575         DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
576         * configure: Rebuild.
577
578 2018-09-05  Simon Marchi  <simon.marchi@ericsson.com>
579
580         * printcmd.c (printf_c_string): Use
581         DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
582         (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
583
584 2018-09-05  Tom Tromey  <tom@tromey.com>
585
586         * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
587
588 2018-09-05  Tom de Vries  <tdevries@suse.de>
589
590         * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
591         with resolve_abstract_p == true.
592         (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
593         defaulting to false. Propagate resolve_abstract_p to
594         dwarf2_fetch_die_loc_sect_off.
595         * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
596         parameter, defaulting to false.
597         * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
598         (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
599         parameter.
600         * dwarf2read.h (struct die_info): Forward-declare.
601         (die_info_ptr): New typedef.
602         (struct dwarf2_per_objfile): Add abstract_to_concrete field.
603
604 2018-09-05  Joel Brobecker  <brobecker@adacore.com>
605
606         GDB 8.2 released.
607
608 2018-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
609             Pedro Alves  <palves@redhat.com>
610
611         * gnulib/Makefile.in (aclocal_m4_deps): Move to
612         "aclocal-m4-deps.mk".  Include file here.
613         $(srcdir)/aclocal.m4: Add "configure.ac".
614         * gnulib/aclocal-m4-deps.mk: New file.
615         * gnulib/update-gnulib.sh: Automatically update
616         "aclocal-m4-deps.mk".
617
618 2018-09-04  Tom Tromey  <tom@tromey.com>
619
620         * configure: Rebuild.
621         * configure.ac: Remove multi-ice code.
622
623 2018-09-04  Tom Tromey  <tom@tromey.com>
624
625         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
626         (ada-exp.o): Update.
627
628 2018-09-04  Tom Tromey  <tom@tromey.com>
629
630         * Makefile.in (printcmd.o, target-float.o): Remove.
631         (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
632
633 2018-09-04  Tom Tromey  <tom@tromey.com>
634
635         * gnulib/Makefile.in: Remove obsolete comment.
636         * Makefile.in: Remove obsolete comment.
637
638 2018-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
639
640         * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
641         line with '+'.
642
643 2018-09-03  Andrew Burgess  <andrew.burgess@embecosm.com>
644
645         * riscv-tdep.c: Add 'prologue-value.h' include.
646         (struct riscv_unwind_cache): New struct.
647         (riscv_debug_unwinder): New global.
648         (riscv_scan_prologue): Update arguments, capture register details
649         from prologue scan.
650         (riscv_skip_prologue): Reformat arguments line, move end of
651         prologue calculation into riscv_scan_prologue.
652         (riscv_frame_cache): Update return type, create
653         riscv_unwind_cache, scan the prologue, and fill in remaining cache
654         details.
655         (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
656         (riscv_frame_prev_register): Use the trad_frame within the
657         riscv_unwind_cache.
658         (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
659         flag.
660
661 2018-09-03  Andrew Burgess  <andrew.burgess@embecosm.com>
662
663         * trad-frame.h (trad_frame_set_realreg): Declare.
664         (trad_frame_set_addr): Declare.
665         * trad-frame.c (trad_frame_set_realreg): Define new function.
666         (trad_frame_set_addr): Define new function.
667         (trad_frame_set_reg_realreg): Use new function.
668         (trad_frame_set_reg_addr): Use new function.
669
670 2018-09-01  Keith Seitz  <keiths@redhat.com>
671
672         * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
673         pulongest instead of "%lld".
674         * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
675         ATTRIBUTE_UNUSED.
676
677 2018-08-31  Tom Tromey  <tom@tromey.com>
678
679         * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
680         variant part type.
681
682 2018-08-31  Pedro Alves  <palves@redhat.com>
683
684         * gdbarch.h: Regenerate.
685
686 2018-08-31  Pedro Alves  <palves@redhat.com>
687
688         * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
689         * target.h (Hardware watchpoint interfaces): Describe
690         continuable/steppable/non-steppable watchpoints.
691         * gdbarch.h, gdbarch.c: Regenerate.
692
693 2018-08-31  Pedro Alves  <palves@redhat.com>
694
695         * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
696         Delete.
697         * s390-linux-nat.c
698         (s390_linux_nat_target::have_continuable_watchpoint): Delete.
699         * target.h (target_ops::have_continuable_watchpoint): Delete.
700         (target_have_continuable_watchpoint): Delete.
701         * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
702         * target-delegates.c: Regenerate.
703
704 2018-08-31  Sergio Durigan Junior  <sergiodj@redhat.com>
705
706         * gnulib/Makefile.in (aclocal_m4_deps): Update according to
707         the files present in "gnulib/import/m4/".
708
709 2018-08-30  Andrew Burgess  <andrew.burgess@embecosm.com>
710
711         * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
712         c.sw, c.swsp, and c.sdsp.
713
714 2018-08-30  Andrew Burgess  <andrew.burgess@embecosm.com>
715
716         * riscv-tdep.c (struct riscv_inferior_data): Delete.
717         (riscv_read_misa_reg): Don't cache value read into inferior data.
718         (riscv_new_inferior_data): Delete.
719         (riscv_inferior_data_cleanup): Delete.
720         (riscv_inferior_data): Delete.
721         (riscv_invalidate_inferior_data): Delete.
722         (_initialize_riscv_tdep): Remove initialisation of inferior data.
723
724 2018-08-30  Simon Marchi  <simon.marchi@ericsson.com>
725
726         * compile/compile-cplus-types.c
727         (compile_cplus_instance::leave_scope): Take the address of scope
728         object.
729         (compile_cplus_instance::convert_qualified_base): Compare quals
730         to 0.
731
732 2018-08-30  Keith Seitz  <keiths@redhat.com>
733
734         * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
735         Use "%s" and host_address_to_string instead of "%p" in printf.
736
737 2018-08-29  Keith Seitz  <keiths@redhat.com>
738
739         * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
740         and compile-cplus-types.c.
741         (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
742         * c-lang.c (cplus_language_defn): Set C++ compile functions.
743         * c-lang.h (cplus_get_compile_context, cplus_compute_program):
744         Declare.
745         * compile/compile-c-support.c: Include compile-cplus.h.
746         (load_libcompile): Templatize.
747         (get_compile_context): "New" function.
748         (c_get_compile_context): Use get_compile_context.
749         (cplus_get_compile_context): New function.
750         (cplus_push_user_expression, cplus_pop_user_expression)
751         (cplus_add_code_header, cplus_add_input, cplus_compile_program)
752         (cplus_compute_program): Define new structs/functions.
753         * compile/compile-cplus-symmbols.c: New file.
754         * compile/compile-cplus-types.c: New file.
755         * compile/compile-cplus.h: New file.
756         * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
757         Declare.
758         * compile/compile-object-load.c (get_out_value_type): Use
759         strncmp_iw when comparing symbol names.
760         (compile_object_load): Add mst_bss and mst_data.
761         * compile/compile.c (_initialize_compile): Remove
762         -Wno-implicit-function-declaration from `compile_args'.
763         * compile/gcc-cp-plugin.h: New file.
764         * NEWS: Mention C++ compile support and new debug options.
765
766 2018-08-29  Keith Seitz  <keiths@redhat.com>
767
768         * linespec.c (collect_info::add_symbol): Make virtual.
769         (struct symbol_searcher_collect_info): New struct.
770         (symbol_searcher::find_all_symbols): New method.
771         * symtab.h (class symbol_searcher): New class.
772
773 2018-08-29  Keith Seitz  <keiths@redhat.com>
774
775         * linespec.c (struct linespec) <function_symbols, label_symbols>:
776         Change to vector of block_symbol.  Update all users.
777         (struct collect_info) <symbols>: Likewise.
778         (collect_info::add_symbol): Take block_symbol as argument.
779         Update all callers.
780         (decode_compound_collector) <m_symbols>: Change type to vector
781         of block_symbol.  Update all users.
782         (decode_compound_collector::operator ()): Change parameter type
783         to block_symbol.
784         (find_method, find_function_symbols, find_linespec_symbols)
785         (find_label_symbols_in_block, find_label_symbols): Change symbol
786         vectors to block_symbol vectors.
787         * symtab.h (symbol_found_callback_ftype): Change parameter type to
788         block_symbol.
789
790 2018-08-29  Keith Seitz  <keiths@redhat.com>
791
792         * linespec.c (symbolp): Remove typedef and VEC definitions.
793         (bound_minimal_symbol_d): Likewise.
794
795 2018-08-29  Keith Seitz  <keiths@redhat.com>
796
797         * linespec.c (decode_compound_collector::decode_compound_collector):
798         Remove initialization for `m_symtabs'.
799         (decode_compound_collector::release_symbols): Change return type
800         to std::vector.  Update all callers.
801         (class decode_compound_collector) <m_symbols>: Change type to
802         std::vector.
803         (lookup_prefix_sym): Change return type to std::vector.  Update all
804         callers.
805         (compare_symbols): Remove.
806         (std_compare_symbols): Rename to `compare_symbols'.
807         (find_method): Change `sym_classes' parameter to std::vector.
808         Update all callers.  Use std::sort to sort sym_classes.
809         (find_linespec_symbols): Remove cleanup.
810
811 2018-08-29  Keith Seitz  <keiths@redhat.com>
812
813         * linespec.c (struct linespec) <minimal_symbols>: Change type to
814         std::vector.  Update all users.
815         (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
816         (struct collect_info) <minimal_symbols>: Likewise.
817         (compare_msymbols): Return bool.  Change parameters to const
818         bound_minimal_symbol references.
819         (find_method, find_function_symbols, find_linespec_symbols): Change
820         `minsyms' parameter to std::vector.  Update all callers.
821
822 2018-08-29  Keith Seitz  <keiths@redhat.com>
823
824         * linespec.c (struct linespec) <label_symbols>: Change type to
825         std::vector.  Update all users.
826         (find_label_symbols_in_block): Change `result' parameter to
827         std::vector.  Update all callers.
828         (find_label_symbols): Return std::vector.  Update all callers.
829
830 2018-08-29  Keith Seitz  <keiths@redhat.com>
831
832         * linespec.c (struct linespec) <function_symbols>: Change type to
833         std::vector.  Update all users.
834         (struct collect_info) <function_symbols>: Likewise.
835         (convert_linespec_to_sals): Use std::sort to sort function_symbols.
836         (std_compare_symbols): New function.
837         (find_method, find_function_symbols, find_linespec_symbols)
838         (find_label_symbols_in_block): Change `symbols' parameter to
839         std::vector.  Update all callers.
840         (find_label_symbols): Likewise for `function_symbols' and
841         `label_funcs_ret'.
842
843 2018-08-29  Keith Seitz  <keiths@redhat.com>
844
845         * linespec.c (symtab_vector_up): Define.
846         (struct linespec) <file_symtabs>: Change type to std::vector *.
847         Update all uses.
848         (struct collect_info) <file_symtabs>: Likewise.
849         (collect_symtabs_from_filename): Return symtab_vector_up.
850         Update all callers.
851         (decode_objc): Remove cleanup.
852         (symtab_collector::symtab_collector): Initialize `m_symtabs'.
853         (symtab_collector::release_symtabs): Return symtab_vector_up.
854         Update all callers.
855         (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
856         Update all users.
857         (collect_symtabs_from_filename, symtabs_from_filename): Return
858         symtab_vector_up.  Update all callers.
859
860 2018-08-29  Tom Tromey  <tom@tromey.com>
861
862         * csky-tdep.c (csky_analyze_prologue): Use
863         core_addr_to_string_nz.
864
865 2018-08-29  Tom Tromey  <tom@tromey.com>
866
867         * windows-nat.c (struct xlate_exception) <them>: Change type to
868         DWORD.
869         (xlate): Fix formatting.  Remove last entry.
870         (struct xlate_exception, xlate): Comment out.
871         (windows_nat_target::resume): Use ranged for.
872
873 2018-08-29  Jim Wilson  <jimw@sifive.com>
874
875         * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
876         (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
877         of NT_PRFPREG.
878         (riscv_linux_nat_target::store_registers): Likewise.
879
880 2018-08-29  Sergio Durigan Junior  <sergiodj@redhat.com>
881
882         PR gdb/23555
883         PR gdb/23558
884         * gnulib/aclocal.m4: Regenerate.
885         * gnulib/config.in: Regenerate.
886         * gnulib/configure: Regenerate.
887         * gnulib/import/Makefile.am: Update.
888         * gnulib/import/Makefile.in: Update.
889         * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
890         * gnulib/import/_Noreturn.h: ... this.
891         * gnulib/import/alloca.in.h: Update.
892         * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
893         * gnulib/import/arg-nonnull.h: ... this.
894         * gnulib/import/assure.h: Update.
895         * gnulib/import/at-func.c: Update.
896         * gnulib/import/basename-lgpl.c: Update.
897         * gnulib/import/extra/snippet/c++defs.h: Rename to...
898         * gnulib/import/c++defs.h: ... this.
899         * gnulib/import/canonicalize-lgpl.c: Update.
900         * gnulib/import/cdefs.h: Update.
901         * gnulib/import/chdir-long.c: Update.
902         * gnulib/import/chdir-long.h: Update.
903         * gnulib/import/cloexec.c: Update.
904         * gnulib/import/cloexec.h: Update.
905         * gnulib/import/close.c: Update.
906         * gnulib/import/closedir.c: Update.
907         * gnulib/import/config.charset: Update.
908         * gnulib/import/dirent-private.h: Update.
909         * gnulib/import/dirent.in.h: Update.
910         * gnulib/import/dirfd.c: Update.
911         * gnulib/import/dirname-lgpl.c: Update.
912         * gnulib/import/dirname.h: Update.
913         * gnulib/import/dosname.h: Update.
914         * gnulib/import/dup-safer-flag.c: Update.
915         * gnulib/import/dup-safer.c: Update.
916         * gnulib/import/dup.c: Update.
917         * gnulib/import/dup2.c: Update.
918         * gnulib/import/errno.in.h: Update.
919         * gnulib/import/error.c: Update.
920         * gnulib/import/error.h: Update.
921         * gnulib/import/exitfail.c: Update.
922         * gnulib/import/exitfail.h: Update.
923         * gnulib/import/extra/update-copyright: Update.
924         * gnulib/import/fchdir.c: Update.
925         * gnulib/import/fcntl.c: Update.
926         * gnulib/import/fcntl.in.h: Update.
927         * gnulib/import/fd-hook.c: Update.
928         * gnulib/import/fd-hook.h: Update.
929         * gnulib/import/fd-safer-flag.c: Update.
930         * gnulib/import/fd-safer.c: Update.
931         * gnulib/import/fdopendir.c: Update.
932         * gnulib/import/filename.h: Update.
933         * gnulib/import/filenamecat-lgpl.c: Update.
934         * gnulib/import/filenamecat.h: Update.
935         * gnulib/import/flexmember.h: Update.
936         * gnulib/import/float+.h: Update.
937         * gnulib/import/float.c: Update.
938         * gnulib/import/float.in.h: Update.
939         * gnulib/import/fnmatch.c: Update.
940         * gnulib/import/fnmatch.in.h: Update.
941         * gnulib/import/fnmatch_loop.c: Update.
942         * gnulib/import/fpucw.h: Update.
943         * gnulib/import/frexp.c: Update.
944         * gnulib/import/frexpl.c: Update.
945         * gnulib/import/fstat.c: Update.
946         * gnulib/import/fstatat.c: Update.
947         * gnulib/import/getcwd-lgpl.c: Update.
948         * gnulib/import/getcwd.c: Update.
949         * gnulib/import/getdtablesize.c: Update.
950         * gnulib/import/getlogin_r.c: Update.
951         * gnulib/import/getprogname.c: Update.
952         * gnulib/import/getprogname.h: Update.
953         * gnulib/import/gettext.h: Update.
954         * gnulib/import/gettimeofday.c: Update.
955         * gnulib/import/glob-libc.h: Update.
956         * gnulib/import/glob.c: Update.
957         * gnulib/import/glob.in.h: Update.
958         * gnulib/import/glob_internal.h: Update.
959         * gnulib/import/glob_pattern_p.c: Update.
960         * gnulib/import/globfree.c: Update.
961         * gnulib/import/hard-locale.c: Update.
962         * gnulib/import/hard-locale.h: Update.
963         * gnulib/import/intprops.h: Update.
964         * gnulib/import/inttypes.in.h: Update.
965         * gnulib/import/isnan.c: Update.
966         * gnulib/import/isnand-nolibm.h: Update.
967         * gnulib/import/isnand.c: Update.
968         * gnulib/import/isnanl-nolibm.h: Update.
969         * gnulib/import/isnanl.c: Update.
970         * gnulib/import/itold.c: Update.
971         * gnulib/import/libc-config.h: Update.
972         * gnulib/import/limits.in.h: Update.
973         * gnulib/import/localcharset.c: Update.
974         * gnulib/import/localcharset.h: Update.
975         * gnulib/import/localtime-buffer.c: Update.
976         * gnulib/import/localtime-buffer.h: Update.
977         * gnulib/import/lstat.c: Update.
978         * gnulib/import/m4/00gnulib.m4: Update.
979         * gnulib/import/m4/__inline.m4: Update.
980         * gnulib/import/m4/absolute-header.m4: Update.
981         * gnulib/import/m4/alloca.m4: Update.
982         * gnulib/import/m4/builtin-expect.m4: Update.
983         * gnulib/import/m4/canonicalize.m4: Update.
984         * gnulib/import/m4/chdir-long.m4: Update.
985         * gnulib/import/m4/close.m4: Update.
986         * gnulib/import/m4/closedir.m4: Update.
987         * gnulib/import/m4/configmake.m4: Update.
988         * gnulib/import/m4/d-ino.m4: Update.
989         * gnulib/import/m4/d-type.m4: Update.
990         * gnulib/import/m4/dirent_h.m4: Update.
991         * gnulib/import/m4/dirfd.m4: Update.
992         * gnulib/import/m4/dirname.m4: Update.
993         * gnulib/import/m4/double-slash-root.m4: Update.
994         * gnulib/import/m4/dup.m4: Update.
995         * gnulib/import/m4/dup2.m4: Update.
996         * gnulib/import/m4/eealloc.m4: Update.
997         * gnulib/import/m4/environ.m4: Update.
998         * gnulib/import/m4/errno_h.m4: Update.
999         * gnulib/import/m4/error.m4: Update.
1000         * gnulib/import/m4/exponentd.m4: Update.
1001         * gnulib/import/m4/exponentl.m4: Update.
1002         * gnulib/import/m4/extensions.m4: Update.
1003         * gnulib/import/m4/extern-inline.m4: Update.
1004         * gnulib/import/m4/fchdir.m4: Update.
1005         * gnulib/import/m4/fcntl-o.m4: Update.
1006         * gnulib/import/m4/fcntl.m4: Update.
1007         * gnulib/import/m4/fcntl_h.m4: Update.
1008         * gnulib/import/m4/fdopendir.m4: Update.
1009         * gnulib/import/m4/filenamecat.m4: Update.
1010         * gnulib/import/m4/flexmember.m4: Update.
1011         * gnulib/import/m4/float_h.m4: Update.
1012         * gnulib/import/m4/fnmatch.m4: Update.
1013         * gnulib/import/m4/fnmatch_h.m4: Update.
1014         * gnulib/import/m4/fpieee.m4: Update.
1015         * gnulib/import/m4/frexp.m4: Update.
1016         * gnulib/import/m4/frexpl.m4: Update.
1017         * gnulib/import/m4/fstat.m4: Update.
1018         * gnulib/import/m4/fstatat.m4: Update.
1019         * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1020         * gnulib/import/m4/getcwd-path-max.m4: Update.
1021         * gnulib/import/m4/getcwd.m4: Update.
1022         * gnulib/import/m4/getdtablesize.m4: Update.
1023         * gnulib/import/m4/getlogin.m4: Update.
1024         * gnulib/import/m4/getlogin_r.m4: Update.
1025         * gnulib/import/m4/getpagesize.m4: Update.
1026         * gnulib/import/m4/getprogname.m4: Update.
1027         * gnulib/import/m4/gettimeofday.m4: Update.
1028         * gnulib/import/m4/glibc21.m4: Update.
1029         * gnulib/import/m4/glob.m4: Update.
1030         * gnulib/import/m4/glob_h.m4: Update.
1031         * gnulib/import/m4/gnulib-cache.m4: Update.
1032         * gnulib/import/m4/gnulib-common.m4: Update.
1033         * gnulib/import/m4/gnulib-comp.m4: Update.
1034         * gnulib/import/m4/gnulib-tool.m4: Update.
1035         * gnulib/import/m4/hard-locale.m4: Update.
1036         * gnulib/import/m4/include_next.m4: Update.
1037         * gnulib/import/m4/inttypes-pri.m4: Update.
1038         * gnulib/import/m4/inttypes.m4: Update.
1039         * gnulib/import/m4/isnand.m4: Update.
1040         * gnulib/import/m4/isnanl.m4: Update.
1041         * gnulib/import/m4/largefile.m4: Update.
1042         * gnulib/import/m4/limits-h.m4: Update.
1043         * gnulib/import/m4/localcharset.m4: Update.
1044         * gnulib/import/m4/locale-fr.m4: Update.
1045         * gnulib/import/m4/locale-ja.m4: Update.
1046         * gnulib/import/m4/locale-zh.m4: Update.
1047         * gnulib/import/m4/localtime-buffer.m4: Update.
1048         * gnulib/import/m4/longlong.m4: Update.
1049         * gnulib/import/m4/lstat.m4: Update.
1050         * gnulib/import/m4/malloc.m4: Update.
1051         * gnulib/import/m4/malloca.m4: Update.
1052         * gnulib/import/m4/math_h.m4: Update.
1053         * gnulib/import/m4/mbrtowc.m4: Update.
1054         * gnulib/import/m4/mbsinit.m4: Update.
1055         * gnulib/import/m4/mbsrtowcs.m4: Update.
1056         * gnulib/import/m4/mbstate_t.m4: Update.
1057         * gnulib/import/m4/memchr.m4: Update.
1058         * gnulib/import/m4/memmem.m4: Update.
1059         * gnulib/import/m4/mempcpy.m4: Update.
1060         * gnulib/import/m4/memrchr.m4: Update.
1061         * gnulib/import/m4/mkdir.m4: Update.
1062         * gnulib/import/m4/mkstemp.m4: Update.
1063         * gnulib/import/m4/mmap-anon.m4: Update.
1064         * gnulib/import/m4/mode_t.m4: Update.
1065         * gnulib/import/m4/msvc-inval.m4: Update.
1066         * gnulib/import/m4/msvc-nothrow.m4: Update.
1067         * gnulib/import/m4/multiarch.m4: Update.
1068         * gnulib/import/m4/nocrash.m4: Update.
1069         * gnulib/import/m4/off_t.m4: Update.
1070         * gnulib/import/m4/onceonly.m4: Update.
1071         * gnulib/import/m4/open-cloexec.m4: Update.
1072         * gnulib/import/m4/open.m4: Update.
1073         * gnulib/import/m4/openat.m4: Update.
1074         * gnulib/import/m4/opendir.m4: Update.
1075         * gnulib/import/m4/pathmax.m4: Update.
1076         * gnulib/import/m4/rawmemchr.m4: Update.
1077         * gnulib/import/m4/readdir.m4: Update.
1078         * gnulib/import/m4/readlink.m4: Update.
1079         * gnulib/import/m4/realloc.m4: Update.
1080         * gnulib/import/m4/rename.m4: Update.
1081         * gnulib/import/m4/rewinddir.m4: Update.
1082         * gnulib/import/m4/rmdir.m4: Update.
1083         * gnulib/import/m4/save-cwd.m4: Update.
1084         * gnulib/import/m4/secure_getenv.m4: Update.
1085         * gnulib/import/m4/setenv.m4: Update.
1086         * gnulib/import/m4/signal_h.m4: Update.
1087         * gnulib/import/m4/ssize_t.m4: Update.
1088         * gnulib/import/m4/stat-time.m4: Update.
1089         * gnulib/import/m4/stat.m4: Update.
1090         * gnulib/import/m4/std-gnu11.m4: Update.
1091         * gnulib/import/m4/stdbool.m4: Update.
1092         * gnulib/import/m4/stddef_h.m4: Update.
1093         * gnulib/import/m4/stdint.m4: Update.
1094         * gnulib/import/m4/stdio_h.m4: Update.
1095         * gnulib/import/m4/stdlib_h.m4: Update.
1096         * gnulib/import/m4/strchrnul.m4: Update.
1097         * gnulib/import/m4/strdup.m4: Update.
1098         * gnulib/import/m4/strerror.m4: Update.
1099         * gnulib/import/m4/string_h.m4: Update.
1100         * gnulib/import/m4/strstr.m4: Update.
1101         * gnulib/import/m4/strtok_r.m4: Update.
1102         * gnulib/import/m4/sys_socket_h.m4: Update.
1103         * gnulib/import/m4/sys_stat_h.m4: Update.
1104         * gnulib/import/m4/sys_time_h.m4: Update.
1105         * gnulib/import/m4/sys_types_h.m4: Update.
1106         * gnulib/import/m4/tempname.m4: Update.
1107         * gnulib/import/m4/time_h.m4: Update.
1108         * gnulib/import/m4/unistd-safer.m4: Update.
1109         * gnulib/import/m4/unistd_h.m4: Update.
1110         * gnulib/import/m4/warn-on-use.m4: Update.
1111         * gnulib/import/m4/wchar_h.m4: Update.
1112         * gnulib/import/m4/wchar_t.m4: Update.
1113         * gnulib/import/m4/wctype_h.m4: Update.
1114         * gnulib/import/m4/wint_t.m4: Update.
1115         * gnulib/import/malloc.c: Update.
1116         * gnulib/import/malloc/scratch_buffer.h: Update.
1117         * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1118         * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1119         * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1120         * gnulib/import/malloca.c: Update.
1121         * gnulib/import/malloca.h: Update.
1122         * gnulib/import/malloca.valgrind: Update.
1123         * gnulib/import/math.in.h: Update.
1124         * gnulib/import/mbrtowc.c: Update.
1125         * gnulib/import/mbsinit.c: Update.
1126         * gnulib/import/mbsrtowcs-impl.h: Update.
1127         * gnulib/import/mbsrtowcs-state.c: Update.
1128         * gnulib/import/mbsrtowcs.c: Update.
1129         * gnulib/import/memchr.c: Update.
1130         * gnulib/import/memmem.c: Update.
1131         * gnulib/import/mempcpy.c: Update.
1132         * gnulib/import/memrchr.c: Update.
1133         * gnulib/import/mkdir.c: Update.
1134         * gnulib/import/mkstemp.c: Update.
1135         * gnulib/import/msvc-inval.c: Update.
1136         * gnulib/import/msvc-inval.h: Update.
1137         * gnulib/import/msvc-nothrow.c: Update.
1138         * gnulib/import/msvc-nothrow.h: Update.
1139         * gnulib/import/open.c: Update.
1140         * gnulib/import/openat-die.c: Update.
1141         * gnulib/import/openat-priv.h: Update.
1142         * gnulib/import/openat-proc.c: Update.
1143         * gnulib/import/openat.c: Update.
1144         * gnulib/import/openat.h: Update.
1145         * gnulib/import/opendir.c: Update.
1146         * gnulib/import/pathmax.h: Update.
1147         * gnulib/import/pipe-safer.c: Update.
1148         * gnulib/import/rawmemchr.c: Update.
1149         * gnulib/import/readdir.c: Update.
1150         * gnulib/import/readlink.c: Update.
1151         * gnulib/import/realloc.c: Update.
1152         * gnulib/import/ref-add.sin: Update.
1153         * gnulib/import/ref-del.sin: Update.
1154         * gnulib/import/rename.c: Update.
1155         * gnulib/import/rewinddir.c: Update.
1156         * gnulib/import/rmdir.c: Update.
1157         * gnulib/import/same-inode.h: Update.
1158         * gnulib/import/save-cwd.c: Update.
1159         * gnulib/import/save-cwd.h: Update.
1160         * gnulib/import/scratch_buffer.h: Update.
1161         * gnulib/import/secure_getenv.c: Update.
1162         * gnulib/import/setenv.c: Update.
1163         * gnulib/import/signal.in.h: Update.
1164         * gnulib/import/stat-time.c: Update.
1165         * gnulib/import/stat-time.h: Update.
1166         * gnulib/import/stat-w32.c: Update.
1167         * gnulib/import/stat-w32.h: Update.
1168         * gnulib/import/stat.c: Update.
1169         * gnulib/import/stdbool.in.h: Update.
1170         * gnulib/import/stddef.in.h: Update.
1171         * gnulib/import/stdint.in.h: Update.
1172         * gnulib/import/stdio.in.h: Update.
1173         * gnulib/import/stdlib.in.h: Update.
1174         * gnulib/import/str-two-way.h: Update.
1175         * gnulib/import/strchrnul.c: Update.
1176         * gnulib/import/strdup.c: Update.
1177         * gnulib/import/streq.h: Update.
1178         * gnulib/import/strerror-override.c: Update.
1179         * gnulib/import/strerror-override.h: Update.
1180         * gnulib/import/strerror.c: Update.
1181         * gnulib/import/string.in.h: Update.
1182         * gnulib/import/stripslash.c: Update.
1183         * gnulib/import/strnlen1.c: Update.
1184         * gnulib/import/strnlen1.h: Update.
1185         * gnulib/import/strstr.c: Update.
1186         * gnulib/import/strtok_r.c: Update.
1187         * gnulib/import/sys_stat.in.h: Update.
1188         * gnulib/import/sys_time.in.h: Update.
1189         * gnulib/import/sys_types.in.h: Update.
1190         * gnulib/import/tempname.c: Update.
1191         * gnulib/import/tempname.h: Update.
1192         * gnulib/import/time.in.h: Update.
1193         * gnulib/import/unistd--.h: Update.
1194         * gnulib/import/unistd-safer.h: Update.
1195         * gnulib/import/unistd.in.h: Update.
1196         * gnulib/import/unsetenv.c: Update.
1197         * gnulib/import/verify.h: Update.
1198         * gnulib/import/extra/snippet/warn-on-use.h: Update.
1199         * gnulib/import/wchar.in.h: Update.
1200         * gnulib/import/wctype.in.h: Update.
1201         * gnulib/import/xalloc-oversized.h: Update.
1202         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1203         "53e2c179f26a890fa6685af4b6c1397ee370433b".
1204
1205 2018-08-16  Gary Benson <gbenson@redhat.com>
1206
1207         PR gdb/13000:
1208         * gdb/main.c (captured_main_1): Exit with nonzero status
1209         in batch mode if the last command to be executed failed.
1210         * NEWS: Mention the above.
1211
1212 2018-08-29  Simon Marchi  <simon.marchi@ericsson.com>
1213
1214         * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1215         end of warning message.
1216
1217 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
1218
1219         PR gdb/22943:
1220         * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1221         (aarch64_extract_return_value): Use
1222         aapcs_is_vfp_call_or_return_candidate.
1223         (aarch64_return_in_memory): Likewise.
1224         (aarch64_store_return_value): Likewise.
1225
1226 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
1227
1228         * aarch64-tdep.c
1229         (aapcs_is_vfp_call_or_return_candidate): Make static
1230         (pass_in_v_or_stack): Remove function.
1231         (pass_in_v_vfp_candidate): New function.
1232         (aarch64_push_dummy_call): Check for float register candidates.
1233
1234 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
1235
1236         * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1237         (aapcs_is_vfp_call_or_return_candidate_1): New function.
1238         (aapcs_is_vfp_call_or_return_candidate): Likewise.
1239
1240 2018-08-28  Simon Marchi  <simon.marchi@polymtl.ca>
1241
1242         PR build/23399
1243         * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1244         (struct ipa_sym_addresses): Rename to...
1245         (struct ipa_sym_addresses_common): ... this.
1246         * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1247
1248 2018-08-28  Tom Tromey  <tom@tromey.com>
1249
1250         * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1251         (token_fifo): Now a std::vector.
1252         (yylex, c_parse): Update.
1253         * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1254         (token_fifo): Now a std::vector.
1255         (yylex, d_parse): Update.
1256         * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1257         (token_fifo): Now a std::vector.
1258         (yylex, go_parse): Update.
1259
1260 2018-08-28  Simon Marchi  <simon.marchi@ericsson.com>
1261
1262         * parser-defs.h (struct type_stack) <elements>: Change type to
1263         std::vector<union type_stack_elt>.
1264         <depth, size>: Remove.
1265         * parse.c (parse_exp_in_context_1): Adjust.
1266         (type_stack_reserve): Remove.
1267         (check_type_stack_depth): Remove.
1268         (insert_into_type_stack): Adjust to std::vector.
1269         (insert_type): Likewise.
1270         (push_type): Likewise.
1271         (push_type_int): Likewise.
1272         (insert_type_address_space): Likewise.
1273         (pop_type): Likewise.
1274         (pop_type_int): Likewise.
1275         (pop_typelist): Likewise.
1276         (pop_type_stack): Likewise.
1277         (append_type_stack): Likewise.
1278         (push_type_stack): Likewise.
1279         (get_type_stack): Likewise.
1280         (type_stack_cleanup): Likewise.
1281         (push_typelist): Likewise.
1282         (follow_types): Likewise.
1283         (_initialize_parse): Likewise.
1284
1285 2018-08-28  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1286
1287         * NEWS: Mention csky target.
1288
1289 2018-08-28  Jiangshuai Li  <jiangshuai_li@c-sky.com>
1290             Hafiz Abid Qadeer  <abidh@codesourcery.com>
1291             Don Breazeal  <donb@codesourcery.com>
1292
1293         * csky-linux-tdep.c: New file.
1294         * csky-tdep.c: Likewise.
1295         * csky-tdep.h: Likewise.
1296         * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1297         csky-tdep.o.
1298         (HFILES_NO_SRCDIR): Add csky-tdep.h.
1299         (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1300         * configure.tgt: Add csky support.
1301
1302 2018-08-27  Jan Vrany  <jan.vrany@fit.cvut.cz>
1303
1304         * python/py-framefilter.c (py_print_frame): Print frame architecture
1305         when printing on an MI output.
1306
1307 2018-08-27  Tom Tromey  <tom@tromey.com>
1308
1309         PR build/23087:
1310         * configure: Rebuild.
1311         * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1312
1313 2018-08-27  Tom Tromey  <tom@tromey.com>
1314
1315         * aarch64-linux-tdep.c
1316         (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1317         casts to int.
1318
1319 2018-08-27  Tom Tromey  <tom@tromey.com>
1320
1321         * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1322         unsigned.
1323         (ppc64_standard_linkage1, ppc64_standard_linkage2)
1324         (ppc64_standard_linkage3, ppc64_standard_linkage4)
1325         (ppc64_standard_linkage5, ppc64_standard_linkage6)
1326         (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1327         unsigned.
1328
1329 2018-08-27  Tom Tromey  <tom@tromey.com>
1330
1331         * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1332         (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1333
1334 2018-08-27  Tom Tromey  <tom@tromey.com>
1335
1336         * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1337         * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1338         ULONGEST_MAX.
1339         * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1340         ULONGEST_MAX.
1341         * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1342         ULONGEST_MAX.
1343         * sparc-linux-tdep.c (sparc32_linux_sigframe)
1344         (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1345         * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1346         ULONGEST_MAX.
1347         * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1348         (ppc64_linux_sigaction_tramp_frame)
1349         (ppc32_linux_sighandler_tramp_frame)
1350         (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1351         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1352         (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1353         * mn10300-linux-tdep.c (am33_linux_sigframe)
1354         (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1355         * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1356         * mips-linux-tdep.c (mips_linux_o32_sigframe)
1357         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1358         (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1359         (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1360         (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1361         * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1362         (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1363         * microblaze-linux-tdep.c
1364         (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1365         * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1366         (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1367         (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1368         * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1369         * common/common-types.h (ULONGEST_MAX): New define.
1370         (CORE_ADDR_MAX): Fix formatting.
1371         * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1372         * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1373         * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1374         (arm_linux_rt_sigreturn_tramp_frame)
1375         (arm_eabi_linux_sigreturn_tramp_frame)
1376         (arm_eabi_linux_rt_sigreturn_tramp_frame)
1377         (thumb2_eabi_linux_sigreturn_tramp_frame)
1378         (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1379         (arm_linux_restart_syscall_tramp_frame)
1380         (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1381         * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1382         * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1383         ULONGEST_MAX.
1384         * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1385
1386 2018-08-27  Tom Tromey  <tom@tromey.com>
1387
1388         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1389         CORE_ADDR_MAX.
1390         * mips-tdep.c (mips_deal_with_atomic_sequence)
1391         (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1392         * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1393         (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1394         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1395         CORE_ADDR_MAX.
1396         * aarch64-tdep.c (aarch64_software_single_step): Use
1397         CORE_ADDR_MAX.
1398
1399 2018-08-27  Tom Tromey  <tom@tromey.com>
1400
1401         * linespec.c (complete_linespec_component): Add cast to "char".
1402         * completer.c (completion_tracker::build_completion_result): Add
1403         cast to "char".
1404
1405 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
1406
1407         * solist.h (struct solist, struct target_so_ops): Fix
1408         indentation.
1409
1410 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
1411
1412         * ada-tasks.c (ada_task_info_s): Remove typedef.
1413         (DEF_VEC_O(ada_task_info_s)): Remove.
1414         (struct ada_tasks_inferior_data): Initialize fields.
1415         <task_list>: Make an std::vector.
1416         (get_ada_tasks_inferior_data): Allocate with new.
1417         (ada_get_task_number): Adjust.
1418         (get_task_number_from_id): Likewise.
1419         (valid_task_id): Likewise.
1420         (ada_get_task_info_from_ptid): Likewise.
1421         (iterate_over_live_ada_tasks): Likewise.
1422         (add_ada_task): Likewise.
1423         (read_known_tasks): Likewise.
1424         (ada_build_task_list): Likewise.
1425         (print_ada_task_info): Likewise.
1426         (info_task): Likewise.
1427         (task_command_1): Likewise.
1428
1429 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
1430
1431         * ada-lang.c (add_angle_brackets): Return std::string.
1432
1433 2018-08-25  Simon Marchi  <simon.marchi@polymtl.ca>
1434
1435         * python/py-threadevent.c (py_get_event_thread): Initialize
1436         pythread.
1437
1438 2018-08-24  Pedro Alves  <palves@redhat.com>
1439
1440         * python/py-bpevent.c (create_breakpoint_event_object): Use
1441         copy-initialization.
1442         * python/py-continueevent.c (emit_continue_event): Use
1443         copy-initialization.
1444         * python/py-exitedevent.c (create_exited_event_object): Return a
1445         gdbpy_ref<>.
1446         (emit_exited_event): Use copy-initialization.
1447         * python/py-inferior.c (python_new_inferior)
1448         (python_inferior_deleted, add_thread_object): Use
1449         copy-initialization.
1450         * python/py-infevents.c (create_inferior_call_event_object)
1451         (create_register_changed_event_object)
1452         (create_memory_changed_event_object): Return a gdbpy_ref<>.
1453         (emit_inferior_call_event, emit_memory_changed_event)
1454         (emit_register_changed_event): Use copy-initialization.
1455         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1456         Return a gdbpy_ref<>.
1457         (emit_new_objfile_event): Use copy-initialization.
1458         (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1459         (emit_clear_objfiles_event): Use copy-initialization.
1460         * python/py-signalevent.c (create_signal_event_object): Use
1461         copy-initialization.
1462         * python/py-threadevent.c (create_thread_event_object): Use
1463         copy-initialization.
1464
1465 2018-08-24  Pedro Alves  <palves@redhat.com>
1466             Simon Marchi  <simon.marchi@ericsson.com>
1467
1468         PR gdb/23379
1469         * python/py-continueevent.c: Include "gdbthread.h".
1470         (create_continue_event_object): Add intro comment.  Add 'ptid'
1471         parameter.  Use it to find thread to pass to
1472         create_thread_event_object.
1473         (emit_continue_event): Pass PTID down to
1474         create_continue_event_object.
1475         * python/py-event.h (py_get_event_thread): Declare.
1476         (create_thread_event_object): Remove default from 'thread'
1477         parameter.
1478         * python/py-stopevent.c (create_stop_event_object): Use
1479         py_get_event_thread.
1480         * python/py-threadevent.c (get_event_thread): Rename to ...
1481         (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1482         and use it to find the thread.
1483         (create_thread_event_object): Assert that THREAD isn't null.
1484         Don't find the event thread here.
1485
1486 2018-08-23  Kevin Buettner  <kevinb@redhat.com>
1487
1488         * block.h (blockrange, blockranges): New struct declarations.
1489         (struct block): Add new field named `ranges'.
1490         (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1491         (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1492         macros for accessing ranges in struct block.
1493         (make_blockranges): New declaration.
1494         block.c (make_blockranges): New function.
1495         * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1496         for block.
1497         * symtab.h (find_pc_partial_function): Add new parameter `block'.
1498         * blockframe.c (cache_pc_function_block): New static global.
1499         (clear_pc_function_cache): Clear cache_pc_function_block.
1500         (find_pc_partial_function): Move comment to symtab.h.  Add
1501         support for non-contiguous blocks.
1502         * cli/cli-cmds.c (block.h): Include.
1503         (print_disassembly): Handle printing of non-contiguous blocks.
1504         (disassemble_current_function): Likewise.
1505         (disassemble_command): Likewise.
1506
1507         * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1508         BLOCK_START.
1509         * blockframe.c (get_pc_function_start): Likewise.
1510         * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1511         (gcc_symbol_address): Likewise.
1512         * compile/compile-object-run.c (compile_object_run): Likewise.
1513         * compile/compile.c (get_expr_block_and_pc): Likewise.
1514         * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1515         (func_addr_to_tail_call_list): Likewise.
1516         * findvar.c (default_read_var_value): Likewise.
1517         * inline-frame.c (inline_frame_this_id): Likewise.
1518         (skip-inline_frames): Likewise.
1519         * infcmd.c (until_next_command): Likewise.
1520         * linespec.c (convert_linespec_to_sals): Likewise.
1521         * parse.c (parse_exp_in_context_1): Likewise.
1522         * printcmd.c (build_address_symbolic): likewise.
1523         (info_address_command): Likewise.
1524         symtab.c (find_function_start_sal): Likewise.
1525         (skip_prologue_sal): Likewise.
1526         (find_function_alias_target): Likewise.
1527         (find_gnu_ifunc): Likewise.
1528         * stack.c (find_frame_funname): Likewise.
1529         * symtab.c (fixup_symbol_section): Likewise.
1530         (find_function_start_sal): Likewise.
1531         (skip_prologue_sal): Likewsie.
1532         (find_function_alias_target): Likewise.
1533         (find_gnu_ifunc): Likewise.
1534         * tracepoint.c (info_scope_command): Likewise.
1535         * value.c (value_fn_field): Likewise.
1536
1537         * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1538         in place of find_pc_partial_function.
1539         * blockframe.c (find_function_entry_range_from_pc): New function.
1540         * symtab.h (find_function_entry_range_from_pc): Declare and document.
1541         * objfiles.c (objfile_relocate1): Relocate start and end addresses
1542         for each range in a block.
1543
1544
1545 2018-08-23  Xavier Roirand  <roirand@adacore.com>
1546
1547         * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1548         incrementation.
1549
1550 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
1551
1552         * solib-svr4.c (read_program_headers_from_bfd): Return
1553         gdb::optional<gdb::byte_vector>.
1554         (svr4_exec_displacement): Adjust.
1555
1556 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
1557
1558         * solib-svr4.c (read_program_header): Return
1559         gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1560         (find_program_interpreter): Return
1561         gdb::optional<gdb::byte_vector>.
1562         (scan_dyntag_auxv): Adjust.
1563         (enable_break): Adjust.
1564         (svr4_exec_displacement): Adjust.
1565
1566 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
1567
1568         * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1569         * inf-child.c (inf_child_target::terminal_save_inferior): New.
1570
1571 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
1572
1573         * guile/scm-string.c (gdbscm_scm_from_printf): Use
1574         string_vprintf.
1575         * guile/scm-utils.c (gdbscm_printf): Likewise.
1576         * serial.c (serial_printf): Likewise.
1577         * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1578
1579 2018-08-22  Jan Vrany  <jan.vrany@fit.cvut.cz>
1580
1581         * stack.c (print_frame): Print frame architecture when printing on
1582         an MI output.
1583         * NEWS: Mention new "arch" attribute in frame output.
1584
1585 2018-08-21  Alan Hayward  <alan.hayward@arm.com>
1586
1587         * arch/aarch64.h (aarch64_regnum): Update comment.
1588
1589 2018-08-21  Alan Hayward  <alan.hayward@arm.com>
1590
1591         * NEWS: Add SVE to 8.2 section.
1592
1593 2018-08-21  Pedro Alves  <palves@redhat.com>
1594
1595         * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1596         out from gdbscm_parse_function_args.
1597         (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1598         gdbscm_parse_function_args_1.
1599
1600 2018-08-21  Simon Marchi  <simon.marchi@ericsson.com>
1601
1602         PR gdb/17816
1603         * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1604         operator.
1605
1606 2018-08-19  Simon Marchi  <simon.marchi@polymtl.ca>
1607
1608         * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1609
1610 2018-08-19  Michael Spang  <spang@google.com>
1611
1612         PR gdb/11786
1613         * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1614         for PT_TLS segments.
1615
1616 2018-08-18  Kevin Buettner  <kevinb@redhat.com>
1617
1618         * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1619         dwarf_variable_value.
1620         * dwarf2-frame.c (class dwarf_expr_executor):
1621         Add override for dwarf_variable_value.
1622         * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1623         (class symbol_needs_eval_context): Likewise.
1624         (indirect_synthetic_pointer): Add forward declaration.
1625         (sect_variable_value): New function.
1626         (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1627         * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1628         for DW_OP_GNU_variable_value.
1629
1630 2018-08-16  Tom Tromey  <tom@tromey.com>
1631
1632         * top.c (read_command_file): Update.
1633         (command_line_input): Remove "repeat" argument.
1634         * ada-lang.c (get_selections): Update.
1635         * linespec.c (decode_line_2): Update.
1636         * defs.h (command_line_input): Remove argument.
1637         * cli/cli-script.c (read_next_line): Update.
1638         * python/py-gdb-readline.c: Update.
1639
1640 2018-08-17  Tom Tromey  <tom@tromey.com>
1641
1642         * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1643         command_line_input.
1644
1645 2018-08-15  Tom Tromey  <tom@tromey.com>
1646
1647         * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1648
1649 2018-08-14  Jan Vrany  <jan.vrany@fit.cvut.cz>
1650
1651         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1652         If used, use find_pc_partial_function to find address range
1653         to disassemble.
1654         * mi/mi-main.c (mi_cmd_list_features): Report
1655         "data-disassemble-a-option" feature.
1656         * NEWS: Mention new -data-disassemble option -a.
1657
1658 2018-08-13  Tom Tromey  <tom@tromey.com>
1659
1660         * common/common-defs.h (_FORTIFY_SOURCE): Define.
1661
1662 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
1663
1664         * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1665         (aarch64_linux_collect_sve_regset): Likewise.
1666         (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1667         * regcache.h (regcache_map_entry_size): New function.
1668
1669 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
1670
1671         * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1672         (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1673         (SVE_HEADER_VL_LENGTH): Likewise.
1674         (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1675         (SVE_HEADER_FLAGS_LENGTH): Likewise.
1676         (SVE_HEADER_RESERVED_LENGTH): Likewise.
1677         (SVE_HEADER_SIZE_OFFSET): Likewise.
1678         (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1679         (SVE_HEADER_VL_OFFSET): Likewise.
1680         (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1681         (SVE_HEADER_FLAGS_OFFSET): Likewise.
1682         (SVE_HEADER_RESERVED_OFFSET): Likewise.
1683         (SVE_HEADER_SIZE): Likewise.
1684         (aarch64_linux_core_read_vq): Add function.
1685         (aarch64_linux_core_read_description): Check for SVE section.
1686
1687 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
1688
1689         * aarch64-fbsd-tdep.c
1690         (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1691         collect_size.
1692         * aarch64-linux-tdep.c
1693         (aarch64_linux_iterate_over_regset_sections): Likewise.
1694         * alpha-linux-tdep.c
1695         (alpha_linux_iterate_over_regset_sections):
1696         * alpha-nbsd-tdep.c
1697         (alphanbsd_iterate_over_regset_sections): Likewise.
1698         * amd64-fbsd-tdep.c
1699         (amd64fbsd_iterate_over_regset_sections): Likewise.
1700         * amd64-linux-tdep.c
1701         (amd64_linux_iterate_over_regset_sections): Likewise.
1702         * arm-bsd-tdep.c
1703         (armbsd_iterate_over_regset_sections): Likewise.
1704         * arm-fbsd-tdep.c
1705         (arm_fbsd_iterate_over_regset_sections): Likewise.
1706         * arm-linux-tdep.c
1707         (arm_linux_iterate_over_regset_sections): Likewise.
1708         * corelow.c (get_core_registers_cb): Likewise.
1709         (core_target::fetch_registers): Likewise.
1710         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1711         * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1712         * gdbarch.h (void): Regenerate.
1713         * gdbarch.sh: Add supply_size and collect_size.
1714         * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1715         * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1716         * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1717         * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1718         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1719         * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1720         * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1721         * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1722         * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1723         * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1724         * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1725         * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1726         * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1727         * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1728         * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1729         * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1730         * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1731         * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1732         * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1733         * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1734         * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1735         * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1736         * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1737         * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1738         * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1739         * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1740         * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1741         * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1742         * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1743         * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1744
1745 2018-08-10  Simon Marchi  <simon.marchi@ericsson.com>
1746
1747         * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1748         with string_printf.
1749
1750 2018-08-10  Keith Seitz  <keiths@redhat.com>
1751
1752         * compile/compile-c-support.c (add_code_header, add_code_footer):
1753         Move into policy class.
1754         (c_push_user_expression, pop_user_expression_nop)
1755         (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1756         (compile_program): New host class.
1757         (c_compile_program): New typedef.
1758         (c_compute_porgram): Use c_compile_program.
1759
1760 2018-08-10  Keith Seitz  <keiths@redhat.com>
1761
1762         * compile/compile-internal.h (compile_instance::~compile_instance):
1763         Remove calls to htab_delete.
1764         <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1765         * compile.c (compile_instance::compile_instance): Initialize
1766         htab unique pointers.
1767         (compile_instance::get_cached_type, compile_instance::insert_type)
1768         (compile_instance::error_symbol_once): Update for unique_ptr.
1769
1770 2018-08-10  Keith Seitz  <keiths@redhat.com>
1771
1772         * compile/compile-c-symbols.c (struct symbol_error)
1773         (hash_symbol_error, eq_symbol_error, del_symbol_error)
1774         (compile_instance::insert_symbol_error)
1775         (compile_instance::error_symbol_once): Move to ...
1776         * compile/compile.c: ... here.
1777
1778 2018-08-10  Keith Seitz  <keiths@redhat.com>
1779
1780         * compile/compile-c-support.c (c_get_compile_context): Use `new'
1781         instead of `new_compile_instance'.
1782         * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1783         Update description.
1784         If the symbol error map is not initialized, create it.
1785         (generate_c_for_for_one_symbol): Do not check/initialize
1786         the symbol error map.
1787         * compile/compile-c-types.c (compile_c_instance): Make a class.
1788         Update all callers.
1789         (compile_instance::compile_instance): Initialize the type cache.
1790         (get_cached_type): New function.
1791         (insert_type): Update description.
1792         (compile_c_instance::m_default_cflags): Define.
1793         (convert_type): Update description.  Use get_cached_type.
1794         (delete_instance): Moved to destructor.
1795         (new_compile_instance): Moved to constructor.
1796         * compile/compile-c.h (compile_c_instance): Make class inheriting
1797         from compile_instance.
1798         <base>: Remove field.
1799         <type_map, symbol_err_map>: Move to base class.
1800         <c_plugin>: Rename to `m_plugin' and remove pointer type.
1801         * compile/compile-internal.h (compile_instance): Make class.
1802         <type_map_t, symbol_err_map_t>: Define.
1803         <fe>: Rename to `m_gcc_fe'.
1804         <scope, block, gcc_target_options>: Add `m_' prefix.
1805         <m_type_map, m_symbol_err_map>: New fields, moved from
1806         compile_c_instance.
1807         <destroy>: Remove.
1808         (convert_type, new_compile_instance): Remove.
1809         * compile/compile.c (cleanup_compile_instance): Remove.
1810         (compile_to_object): Use unique_ptr to eliminate cleanups.
1811         (compile_instance::set_print_callback, compile_instance::version)
1812         (compile_instance::set_verbose)
1813         (compile_instance::set_driver_filename)
1814         (compile_instance::set_triplet_regexp)
1815         (compile_instance::set_arguments)
1816         (compile_instance::set_source_file)
1817         (compile_instance::compile): Define.
1818
1819 2018-08-10  Keith Seitz  <keiths@redhat.com>
1820
1821         * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1822         * compile/compile-c-types.c: Define GCC_METHODN macros and include
1823         gcc-c-fe.def to define C plugin.
1824         (delete_instance): Delete `c_plugin'.
1825         (new_compile_instance): Initialize `c_plugin'.
1826         * compile/compile-c.h: Include gcc_c_plugin.h.
1827         (struct compile_c_instance) <c_plugin>: New member.
1828         * gcc-c-plugin.h: New file.
1829         Update all callers with API change.
1830
1831 2018-08-10  Keith Seitz  <keiths@redhat.com>
1832
1833         * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1834         (HFILES_NO_SRCDIR): ... to here.
1835         Add compile-internal.h and compile-c.h.
1836         * compile/compile-c-support.c: Include compile-c.h.
1837         * compile/compile-c-symbols.c: Include compile-c.h.
1838         (generate_c_for_variable_locations): Update comment.
1839         * compile/compile-c-types.c: Include compile-c.h.
1840         * compile/compile-c.h: New file -- moved C language declarations
1841         from other files here.
1842         * compile/compile-internal.h: Do not include hashtab.h or
1843         common/enum-flags.h.
1844         (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1845         (gcc_convert_symbol, gcc_symbol_address)
1846         (generate_c_for_variable_locations, c_get_mode_for_size)
1847         (c_get_range_decl_name): Definitions moved to compile-c.h.
1848         * compile/compile-loc2c.c: Include compile-c.h.
1849
1850 2018-08-10  Keith Seitz  <keiths@redhat.com>
1851
1852         * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1853         (c_symbol_substitution_name): ... this.
1854         Update all callers.
1855
1856 2018-08-10  Keith Seitz  <keiths@redhat.com>
1857
1858         * compile/compile-c-support.c (c_compute_program): Use
1859         unique_xmalloc_ptr to eliminate cleanup.
1860         * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1861         Return a unique_xmalloc_ptr and eliminate cleanup.
1862         * compile/compile-internal.h (generate_c_for_variable_locations):
1863         Return unique_xmalloc_ptr and update description.
1864
1865 2018-08-10  Alan Hayward  <alan.hayward@arm.com>
1866
1867         * corelow.c (core_target::get_core_register_section): Rename
1868         min_size to section_min_size.
1869
1870 2018-08-09  Jim Wilson  <jimw@sifive.com>
1871
1872         * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1873         (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1874         * NEWS: Mention new GNU/Linux RISC-V target.
1875         * configure.host: Add riscv*-*-linux*.
1876         * configure.nat: Add riscv*.
1877         * configure.tgt: Add riscv*-*-linux*.
1878         * riscv-linux-nat.c: New file.
1879         * riscv-linux-tdep.c: New file.
1880
1881 2018-08-09  Andrew Burgess  <andrew.burgess@embecosm.com>
1882
1883         * infrun.c (resume): Make static, add forward declaration.
1884         (proceed): Update header comment.
1885         * infrun.h (resume): Delete declaration.
1886
1887 2018-08-09  Tom Tromey  <tom@tromey.com>
1888
1889         * riscv-tdep.h: Minor formatting fixes.
1890
1891 2018-08-09  Simon Marchi  <simon.marchi@ericsson.com>
1892
1893         * common/scoped_mmap.c (mmap_file): Silence ARI warning.
1894         * dwarf-index-cache.c (create_dir_and_check): Likewise.
1895         (test_mkdir_recursive): Likewise.
1896         * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
1897
1898 2018-08-09  Andrew Burgess  <andrew.burgess@embecosm.com>
1899
1900         * valarith.c (value_subscripted_rvalue): If an array is not in
1901         memory, and we don't know the upper bound, then we can't know that
1902         the requested element exists or not.
1903
1904 2018-08-08  Simon Marchi  <simon.marchi@ericsson.com>
1905
1906         * target.c (str_comma_list_concat_elem): Fix typo in comment.
1907         (target_options_to_string): Add comment.
1908
1909 2018-08-08  Tom Tromey  <tom@tromey.com>
1910
1911         * unittests/scoped_mmap-selftests.c: Check result of "write".
1912
1913 2018-08-08  Jim Wilson  <jimw@sifive.com>
1914
1915         * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
1916         (decode_register_index_short): New.
1917         (decode_j_type_insn, decode_cj_type_insn): New.
1918         (decode_b_type_insn, decode_cb_type_insn): New.
1919         (riscv_insn::decode): Add support for jumps, branches, lr, and sc.  New
1920         local xlen.  Check xlen when decoding ambiguous compressed insns.  In
1921         compressed decode, use is_c_lui_insn instead of is_lui_insn, and
1922         is_c_sw_insn instead of is_sw_insn.
1923         (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
1924         (riscv_software_single_step): New.
1925         * riscv-tdep.h (riscv_software_single_step): Declare.
1926
1927         * riscv-tdep.c (riscv_isa_xlen): Drop static.
1928         * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
1929
1930 2018-08-08  Andrew Burgess  <andrew.burgess@embecosm.com>
1931
1932         PR gdb/18050:
1933         * target.c (dispose_inferior): Don't dispose of inferiors that are
1934         already killed.
1935
1936 2018-08-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1937
1938         * remote.c (remote_target::download_tracepoint): Change char* to
1939         const char*.
1940
1941 2018-08-07  Simon Marchi  <simon.marchi@polymtl.ca>
1942
1943         * target.h (target_options_to_string): Return an std::string.
1944         * target.c (str_comma_list_concat_elem): Return void, use
1945         std::string.
1946         (do_option): Likewise.
1947         (target_options_to_string): Return an std::string.
1948         * linux-nat.c (linux_nat_target::wait): Adjust.
1949         * target-debug.h (target_debug_print_options): Adjust.
1950
1951 2018-08-07  Tom Tromey  <tom@tromey.com>
1952
1953         * Makefile.in (CPPFLAGS): New variable.
1954         (INTERNAL_CPPFLAGS): Use it.
1955
1956 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
1957
1958         * NEWS: Mention the index cache.
1959
1960 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
1961
1962         * common/pathstuff.h (get_standard_cache_dir): New.
1963         * common/pathstuff.c (get_standard_cache_dir): New.
1964         * build-id.h (build_id_to_string): New.
1965         * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
1966         DEBUG_STR_SUFFIX): Move to here.
1967         * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
1968         DEBUG_STR_SUFFIX): Move from there.
1969         (write_psymtabs_to_index): Make non-static, add basename
1970         parameter.  Write to temporary files, rename when done.
1971         (save_gdb_index_command): Adjust call to
1972         write_psymtabs_to_index.
1973         * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
1974         field.
1975         * dwarf2read.c (dwz_file) <index_cache_res>: New field.
1976         (get_gdb_index_contents_from_cache): New.
1977         (get_gdb_index_contents_from_cache_dwz): New.
1978         (dwarf2_initialize_objfile): Read index from cache.
1979         (dwarf2_build_psymtabs): Save to index.
1980         * dwarf-index-cache.h: New file.
1981         * dwarf-index-cache.c: New file.
1982         * dwarf-index-write.h: New file.
1983
1984 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
1985
1986         * gnulib/aclocal.m4: Re-generate.
1987         * gnulib/config.in: Re-generate.
1988         * gnulib/configure: Re-generate.
1989         * gnulib/import/Makefile.am: Re-generate.
1990         * gnulib/import/Makefile.in: Re-generate.
1991         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1992         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1993         * gnulib/import/m4/mkdir.m4: New file.
1994         * gnulib/import/mkdir.c: New file.
1995         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
1996         module.
1997
1998 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
1999
2000         * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2001         * common/scoped_mmap.c: New file.
2002         * common/scoped_mmap.h (destroy): New method.
2003         (~scoped_mmap, reset): Use destroy.
2004         (scoped_mmap): New move constructor.
2005         (mmap_file): New declaration.
2006         * unittests/scoped_mmap-selftests.c (test_normal,
2007         test_invalid_filename, run_tests): New functions.
2008         (_initialize_scoped_mmap_selftests): Register selftest.
2009
2010 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
2011
2012         * dwarf2read.c (read_gdb_index_from_section): Rename to...
2013         (read_gdb_index_from_buffer): ... this.  Remove section
2014         parameter, add buffer parameter.
2015         (get_gdb_index_contents_ftype,
2016         get_gdb_index_contents_dwz_ftype): New typedefs.
2017         (dwarf2_read_gdb_index): Add callback parameters to get the
2018         index contents.
2019         (get_gdb_index_contents_from_section): New.
2020         (dwarf2_initialize_objfile): Update call to
2021         dwarf2_read_gdb_index.
2022
2023 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
2024
2025         * common/filestuff.h (gdb_fopen_cloexec): New overload.
2026         (gdb_open_cloexec): Likewise.
2027         * nat/linux-osdata.c (command_from_pid): Use string_printf.
2028         (commandline_from_pid): Likewise.
2029         (linux_xfer_osdata_threads): Likewise.
2030         (linux_xfer_osdata_fds): Likewise.
2031         * ada-lang.c (is_package_name): Likewise.
2032         * auxv.c (procfs_xfer_auxv): Likewise.
2033         * breakpoint.c (print_one_breakpoint_location): Use
2034         uiout::field_fmt.
2035         (print_one_catch_solib): Use string_printf.
2036         * coff-pe-read.c (add_pe_exported_sym): Likewise.
2037         (add_pe_forwarded_sym): Likewise.
2038         * dwarf2read.c (create_type_unit_group): Likewise.
2039         (build_error_marker_type): Likewise.
2040         * infcall.c (get_function_name): Likewise.
2041         * valprint.c (print_converted_chars_to_obstack): Likewise.
2042         * xtensa-tdep.c (xtensa_register_type): Likewise.
2043
2044 2018-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2045
2046         * remote.c (remote_target::download_tracepoint): Fix format
2047         string errors.
2048
2049 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2050
2051         * tracefile.c: Include common/byte-vector.h.
2052         (trace_save): Change type of buf to gdb::byte_vector.  Initialize
2053         with trace_regblock_size if needed.  Update uses of buf.
2054
2055 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2056
2057         * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2058         std::vector<unsigned char>.
2059         * tracepoint.c (collection_list::collection_list): Remove
2060         m_regs_mask initializer from initializer list.  Resize
2061         m_regs_mask using the largest remote register number.
2062         (collection_list::add_remote_register): Remove size check on
2063         m_regs_mask.  Use at to access element.
2064         (collection_list::stringify): Change type of temp_buf to
2065         gdb::char_vector.  Update uses of temp_buf.  Resize if needed to
2066         stringify the register mask.  Use pack_hex_byte for the register
2067         mask.
2068
2069 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2070
2071         * tracepoint.h (class collection_list) <add_register>: Remove.
2072         <add_remote_register, add_ax_registers, add_local_register>:
2073         Declare.
2074         <add_memrange>: Add scope parameter.
2075         * tracepoint.c (encode_actions_1): Likewise.
2076         (collection_list::add_register): Rename to ...
2077         (collection_list::add_remote_register): ... this.  Update
2078         comment.
2079         (collection_list::add_ax_registers, add_local_register): New
2080         methods.
2081         (collection_list::add_memrange): Add scope parameter.  Call
2082         add_local_register instead of add_register.
2083         (finalize_tracepoint_aexpr): New function.
2084         (collection_list::collect_symbol): Update calls to add_memrange.
2085         Call add_local_register instead of add_register.  Call
2086         add_ax_registers.  Call finalize_tracepoint_aexpr.
2087         (encode_actions_1): Get remote regnos for $reg action.  Call
2088         add_remote_register, add_ax_registers, and add_local_register.
2089         Update call to add_memrange.  Call finalize_tracepoint_aexpr.
2090         (validate_actionline): Call finalize_tracepoint_aexpr.
2091
2092 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2093
2094         * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2095         Replace array buf with gdb::char_vector buf, of size
2096         get_remote_packet_size ().  Replace references to buf and
2097         BUF_SIZE to buf.data () and buf.size ().  Replace strcpy, strcat
2098         and xsnprintf with snprintf.  Raise errors if the buffer is too
2099         small.
2100
2101 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2102
2103         * remote.c (remote_target::download_tracepoint): Fix the has_more
2104         predicate in the QTDP action list iteration.
2105
2106 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
2107
2108         * remote.c (remote_target::download_tracepoint): Fix indentation
2109         in for block.
2110
2111 2018-08-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2112
2113         * proc-api.c (_initialize_proc_api): Remove c, unused.
2114         * procfs.c (procfs_init_inferior): Remove signals, unused.
2115         (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2116         unused.
2117
2118 2018-08-06  Sergey Korolev  <s.korolev@ndmsystems.com>
2119             Andrew Burgess  <andrew.burgess@embecosm.com>
2120
2121         * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2122         'W_STOPCODE (0)' as this could be ambiguous.
2123
2124 2018-08-03  Sergio Durigan Junior  <sergiodj@redhat.com>
2125
2126         * ser-tcp.c (net_open): Fix thinko when deciding whether to
2127         disable TCP's Nagle algorithm (use "ai_protocol" instead of
2128         "ai_socktype").
2129
2130 2018-08-02  Tom Tromey  <tom@tromey.com>
2131
2132         PR symtab/16842.
2133         * dwarf2read.c (read_func_scope): Set symtab on template parameter
2134         symbols.
2135         (process_structure_scope): Likewise.
2136
2137 2018-08-02  Xavier Roirand  <roirand@adacore.com>
2138
2139         PR gdb/22629:
2140         * darwin-nat.c (darwin_kill_inferior): Fix handling of
2141         kill inferior.
2142
2143 2018-08-02  Tom Tromey  <tom@tromey.com>
2144
2145         * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2146         (darwin_suspend_inferior, darwin_resume_inferior)
2147         (darwin_decode_notify_message, darwin_resume_inferior_threads)
2148         (darwin_check_new_threads): Check result of get_darwin_inferior.
2149
2150 2018-07-31  Joel Brobecker  <brobecker@adacore.com>
2151
2152         GDB 8.1.1 released.
2153
2154 2018-07-31  Jan Vrany  <jan.vrany@fit.cvut.cz>
2155
2156         * varobj.c (varobj_get_path_expr_parent): Report an error if
2157         parent is a dynamic varobj.
2158
2159 2018-07-31  Simon Marchi  <simon.marchi@ericsson.com>
2160
2161         * gnulib/aclocal.m4: Re-generate.
2162         * gnulib/config.in: Re-generate.
2163         * gnulib/configure: Re-generate.
2164         * gnulib/import/Makefile.in: Re-generate.
2165         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2166         * gnulib/import/m4/onceonly.m4: Re-generate.
2167
2168 2018-07-31  Simon Marchi  <simon.marchi@ericsson.com>
2169
2170         * target-descriptions.c (struct xml_test_tdesc): New.
2171         (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2172         (record_xml_tdesc): Update.
2173         (maintenance_check_xml_descriptions): Update.
2174         * target-descriptions.h (record_xml_tdesc): Update comment.
2175
2176 2018-07-30  Andrew Burgess  <andrew.burgess@embecosm.com>
2177
2178         * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2179         checking array bounds are defined.
2180
2181 2018-07-30  Tom Tromey  <tom@tromey.com>
2182
2183         * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2184         irreflexivity violation.
2185
2186 2018-07-30  Tom Tromey  <tom@tromey.com>
2187
2188         * cli/cli-decode.c (lookup_cmd): Remove lint code.
2189         * value.c (unpack_long): Remove lint code.
2190         * valops.c (value_ind): Remove lint code.
2191         * valarith.c (value_x_binop, value_x_unop, value_equal)
2192         (value_pos): Remove lint code.
2193
2194 2018-07-28  Tom de Vries  <tdevries@suse.de>
2195
2196         * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2197         with undefined upper bound as <optimized out>.
2198
2199 2018-07-27  Sergio Durigan Junior  <sergiodj@redhat.com>
2200
2201         * gcore.in: Rename variable "name" to "prefix".  Expand
2202         "usage" text.
2203
2204 2018-07-14  Jon Turney  <jon.turney@dronecode.org.uk>
2205
2206         * windows-nat.c (windows_nat_target::create_inferior): Update to
2207         call close() in global namespace.
2208
2209 2018-07-26  Tom Tromey  <tom@tromey.com>
2210
2211         * dwarf-index-write.c (add_address_entry): Don't add objfile
2212         offsets.
2213         * dbxread.c (find_stab_function): Rename from
2214         find_stab_function_addr.  Return a bound_minimal_symbol.
2215         (read_dbx_symtab): Use raw_text_low, raw_text_high.
2216         Don't add objfile offsets.
2217         (end_psymtab): Use raw_text_low, raw_text_high,
2218         MSYMBOL_VALUE_RAW_ADDRESS.
2219         (read_ofile_symtab): Update.
2220         (process_one_symbol): Update.
2221         * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2222         offsets.
2223         (dw2_relocate): Remove.
2224         (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2225         searching addrmap.
2226         (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2227         Update.
2228         (process_psymtab_comp_unit_reader, add_partial_symbol)
2229         (add_partial_subprogram, dwarf2_ranges_read): Update.
2230         (load_partial_dies): Update.
2231         (add_address_entry): Don't add objfile offsets.
2232         (dwarf2_build_include_psymtabs): Update.
2233         (create_addrmap_from_aranges): Don't add objfile offsets.
2234         (dw2_find_pc_sect_compunit_symtab): Update.
2235         * mdebugread.c (parse_symbol): Don't add objfile offsets.
2236         (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2237         Update.
2238         (parse_partial_symbols): Don't add objfile offsets.  Use
2239         raw_text_low, raw_text_high.  Update.
2240         (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2241         * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2242         or call 'relocate' quick function.  Clear psymbol_map.
2243         * psympriv.h (struct partial_symbol) <address>: Add section
2244         offset.
2245         <set_unrelocated_address>: Rename from set_address.
2246         <raw_text_low, raw_text_high>: New methods.
2247         <text_low, text_high>: Add objfile parameter.
2248         (add_psymbol_to_bcache): Add 'section' parameter.  Call
2249         set_unrelocated_address.
2250         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2251         (find_pc_psymbol): Update.
2252         (fixup_psymbol_section, relocate_psymtabs): Remove.
2253         (dump_psymtab, psym_functions): Update.
2254         (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2255         parameter.
2256         (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2257         (start_psymtab_common): Update.
2258         * symfile-debug.c (debug_qf_relocate): Remove.
2259         (debug_sym_quick_functions): Update.
2260         * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2261         * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2262         Update.
2263
2264 2018-07-26  Tom Tromey  <tromey@redhat.com>
2265
2266         * dbxread.c (end_psymtab): Use text_high_valid and
2267         text_low_valid.
2268         * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2269         (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2270         * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2271         Update comment.
2272         <text_low_valid, text_high_valid>: New fields.
2273         <set_text_low, set_text_high>: Update.
2274         * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2275
2276 2018-07-26  Tom Tromey  <tom@tromey.com>
2277
2278         * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2279         Update.
2280         * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2281         textlow and texthigh fields.
2282         (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2283         Update.
2284         * mdebugread.c (parse_lines, parse_partial_symbols)
2285         (psymtab_to_symtab_1): Update.
2286         * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2287         Rename fields.  Update comment.  Now private.
2288         <text_low, text_high, set_text_low, set_text_high>: New methods.
2289         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2290         (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2291         (start_psymtab_common, maintenance_info_psymtabs)
2292         (maintenance_check_psymtabs): Update.
2293         * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2294         texthigh fields.
2295         (scan_xcoff_symtab): Update.
2296
2297 2018-07-26  Tom Tromey  <tromey@redhat.com>
2298
2299         * psympriv.h (struct partial_symbol) <unrelocated_address,
2300         address, set_address>: New methods.
2301         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2302         (fixup_psymbol_section, relocate_psymtabs): Update.
2303         (print_partial_symbols): Add 'objfile' parameter.  Update.
2304         (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2305         Update.
2306
2307 2018-07-26  Tom Tromey  <tom@tromey.com>
2308
2309         * dwarf-index-write.c (write_psymbols, debug_names::insert)
2310         (debug_names::write_psymbols): Update.
2311         * psympriv.h (struct partial_symbol): Derive from
2312         general_symbol_info.
2313         <obj_section>: New method.
2314         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2315         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2316         (find_pc_sect_psymbol, fixup_psymbol_section)
2317         (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2318         (print_partial_symbols, recursively_search_psymtabs)
2319         (compare_psymbols, psymbol_hash, psymbol_compare)
2320         (add_psymbol_to_bcache, maintenance_check_psymtabs)
2321         (psymbol_name_matches, psym_fill_psymbol_map): Update.
2322
2323 2018-07-26  Tom Tromey  <tromey@redhat.com>
2324
2325         * dbxread.c (end_psymtab): Remove dead code.
2326
2327 2018-07-26  Andrew Burgess  <andrew.burgess@embecosm.com>
2328
2329         * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2330         DWARF unwinders are disabled.
2331         * dwarf2-frame.c: Add dwarf2read.h include.
2332         (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2333         disabled.
2334         (dwarf2_frame_unwinders_enabled_p): Define.
2335         (show_dwarf_unwinders_enabled_p): New function.
2336         (_initialize_dwarf2_frame): Register switch to control DWARF
2337         unwinder use.
2338         * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2339         * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2340         (show_dwarf_cmdlist): Remove static keyword.
2341         * dwarf2read.h (set_dwarf_cmdlist): Declare.
2342         (show_dwarf_cmdlist): Declare.
2343         * NEWS: Document new feature.
2344
2345 2018-07-26  Tom de Vries  <tdevries@suse.de>
2346
2347         PR breakpoints/23366
2348         * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2349
2350 2018-07-26  Tom de Vries  <tdevries@suse.de>
2351
2352         * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2353         DW_AT_count can't be translated to a dynamic prop.
2354
2355 2018-07-25  Tom de Vries  <tdevries@suse.de>
2356
2357         * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2358         try/catch.
2359
2360 2018-07-25  Jan Vrany  <jan.vrany@fit.cvut.cz>
2361
2362         * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2363
2364 2018-07-25  Joel Brobecker  <brobecker@adacore.com>
2365
2366         * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2367
2368 2018-07-24  Keith Seitz  <keiths@redhat.comt
2369
2370         PR symtab/23010
2371         * dwarf2read.c (dw2_add_symbol_to_list): New function.
2372         (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2373         instead of add_symbol_to_list.
2374         (read_file_scope): Call prepare_one_comp_unit before reading
2375         any other DIEs.
2376
2377 2018-07-24  Simon Marchi  <simon.marchi@ericsson.com>
2378
2379         * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2380
2381 2018-07-24  Tom Tromey  <tom@tromey.com>
2382
2383         * utils.c (malloc, realloc, free): Don't declare.
2384         * configure, config.in: Rebuild.
2385         * configure.ac: Don't check for declarations of free, malloc, or
2386         realloc.
2387
2388 2018-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
2389
2390         * aarch64-linux-nat.c
2391         (aarch64_linux_nat_target::stopped_data_address): Remove unused
2392         variable.
2393         * arm-linux-nat.c (fetch_regs): Likewise.
2394         (store_regs): Likewise.
2395         (fetch_vfp_regs): Likewise.
2396         (store_vfp_regs): Likewise.
2397         (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2398         (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2399         (arm_linux_nat_target::insert_watchpoint): Likewise.
2400         (arm_linux_nat_target::remove_watchpoint): Likewise.
2401         * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2402         Likewise.
2403         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2404         Likewise.
2405         * ppc-linux-nat.c (fetch_register): Likewise.
2406         (fetch_all_gp_regs): Likewise.
2407         (fetch_ppc_registers): Likewise.
2408         (store_all_gp_regs): Likewise.
2409         (store_ppc_registers): Likewise.
2410         (hwdebug_insert_point): Likewise.
2411         (can_use_watchpoint_cond_accel): Likewise.
2412         * remote-sim.c (gdb_os_write_stdout): Likewise.
2413
2414 2018-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
2415             Tom Tromey  <tom@tromey.com>
2416
2417         * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2418         test for it.
2419         * configure: Rebuild.
2420
2421 2018-07-22  Tom Tromey  <tom@tromey.com>
2422
2423         * regformats/regdat.sh: Define xmltarget_${name} inside
2424         #ifndef IN_PROCESS_AGENT.
2425
2426 2018-07-22  Tom Tromey  <tom@tromey.com>
2427
2428         * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2429
2430 2018-07-22  Tom Tromey  <tom@tromey.com>
2431
2432         * symfile.c (reread_symbols): Notify iter, not objfile.
2433
2434 2018-07-22  Tom Tromey  <tom@tromey.com>
2435
2436         * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2437         Use arch_ops.
2438         (ravenscar_thread_target::prepare_to_store): Likewise.
2439
2440 2018-07-22  Tom Tromey  <tom@tromey.com>
2441
2442         * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2443         unused variable.  Call value_fetch_lazy when needed.
2444         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2445         Remove unused variable.  Call value_fetch_lazy when needed.
2446
2447 2018-07-22  Tom Tromey  <tom@tromey.com>
2448
2449         * m32c-tdep.c (mark_dma): Return void.
2450         (make_regs): Remove unused declarations.
2451
2452 2018-07-22  Tom Tromey  <tom@tromey.com>
2453
2454         * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2455         cmdscm_get_valid_command_smob_arg_unsafe for effect.
2456         * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2457         bkscm_get_valid_block_smob_arg_unsafe for effect.
2458
2459 2018-07-22  Tom Tromey  <tom@tromey.com>
2460
2461         * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2462         value_type.
2463
2464 2018-07-22  Tom Tromey  <tom@tromey.com>
2465
2466         * windows-nat.c (saved_context): Conditionally define.
2467         * remote.c (remote_target::remote_btrace_maybe_reopen):
2468         Conditionally declare "warned".
2469         * inflow.c (sigquit_ours): Conditionally define.
2470         (new_tty): Move "tty" declaration inside #if.
2471         * guile/guile.c (guile_datadir): Conditionally define.
2472         * charset.c (set_be_le_names): Move some declarations inside #if.
2473         * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2474         #if.
2475         (parse_xml_btrace_conf): Likewise.
2476
2477 2018-07-22  Tom Tromey  <tom@tromey.com>
2478
2479         * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2480
2481 2018-07-22  Tom Tromey  <tom@tromey.com>
2482
2483         * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2484         * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2485         (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2486         * buildsym-legacy.c (get_macro_table): Remove unused variable.
2487         * stack.c (frame_apply_level_command): Remove unused variable.
2488         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2489         * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2490         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2491         unused variable.
2492         * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2493         * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2494         * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2495         variable.
2496         * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2497         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2498         variable.
2499         * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2500         Remove unused variable.
2501         * cli/cli-script.c (recurse_read_control_structure): Remove unused
2502         variable.
2503         * common/tdesc.c (print_xml_feature::visit): Remove unused
2504         variable.
2505         * compile/compile-object-load.c (store_regs): Remove unused
2506         variables.
2507         * complaints.c (clear_complaints): Remove unused variable.
2508         * corelow.c (core_target_open): Remove unused variable.
2509         * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2510         variable.
2511         * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2512         variable.
2513         * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2514         variable.
2515         * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2516         variable.
2517         * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2518         variable.
2519         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2520         variable.
2521         * ia64-tdep.c (examine_prologue): Remove unused variable.
2522         * infcall.c (run_inferior_call): Remove unused variable.
2523         * inferior.c (exit_inferior): Remove unused variable.
2524         * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2525         * linespec.c (decode_line_2): Remove unused variable.
2526         * linux-nat.c (super_close): Remove.
2527         * linux-tdep.c (linux_info_proc): Remove unused variable.
2528         * mi/mi-main.c (mi_execute_command): Remove unused variable.
2529         * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2530         Remove unused variable.
2531         * parse.c (find_minsym_type_and_address): Remove unused variable.
2532         * printcmd.c (info_symbol_command, printf_floating): Remove unused
2533         variable.
2534         * python/py-breakpoint.c (bppy_set_commands): Remove unused
2535         variable.
2536         * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2537         variables.
2538         * record-btrace.c (record_btrace_target::store_registers): Remove
2539         unused variable.
2540         (cmd_show_record_btrace_cpu): Remove unused variable.
2541         * riscv-tdep.c (riscv_register_reggroup_p)
2542         (riscv_push_dummy_call, riscv_return_value): Remove unused
2543         variable.
2544         * rust-exp.y (literal): Remove unused variable.
2545         * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2546         unused variable.
2547         <STRUCTOP_ANONYMOUS>: Likewise.
2548         * s390-linux-tdep.c (s390_linux_init_abi_31)
2549         (s390_linux_init_abi_64): Remove unused variable.
2550         * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2551         (file_select_thread, net_windows_open, _initialize_ser_windows):
2552         Remove unused variables.
2553         * symtab.c (find_pc_sect_line): Remove unused variable.
2554         * target-memory.c (compute_garbled_blocks): Remove unused
2555         variable.
2556         (target_write_memory_blocks): Remove unused variable.
2557         * target.c (target_stack::unpush): Remove unused variables.
2558         * tracepoint.c (start_tracing, all_tracepoint_actions)
2559         (merge_uploaded_trace_state_variables)
2560         (print_one_static_tracepoint_marker): Remove unused variable.
2561         * unittests/basic_string_view/element_access/char/1.cc (test01):
2562         Remove unused variable.
2563         * windows-nat.c (windows_continue, windows_add_all_dlls)
2564         (do_initial_windows_stuff, windows_nat_target::create_inferior):
2565         Remove unused variables.
2566
2567 2018-07-21  Simon Marchi  <simon.marchi@polymtl.ca>
2568
2569         * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2570         attr_profile in HAVE_ELF.
2571         * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2572         HAVE_ELF.
2573
2574 2018-07-20  Simon Marchi  <simon.marchi@polymtl.ca>
2575
2576         * frame.c (frame_register_unwind): Change parameter name.
2577         (frame_unwind_register): Likewise.
2578         (frame_unwind_register_value): Likewise.
2579         (frame_unwind_register_signed): Likewise.
2580         (frame_unwind_register_unsigned): Likewise.
2581         * frame.h (frame_register_unwind): Likewise.
2582         (frame_unwind_register): Likewise.
2583         (frame_unwind_register_value): Likewise.
2584         (frame_unwind_register_signed): Likewise.
2585         (frame_unwind_register_unsigned): Likewise.
2586         (frame_unwind_arch): Likewise.
2587
2588 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
2589
2590         * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2591         ISA maintenance.
2592
2593 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
2594
2595         * mips-linux-nat.c (mips_linux_nat_target::read_description):
2596         Call `get_ptrace_pid' rather than extracting the ptrace PID by
2597         hand.
2598
2599 2018-07-20  Keith Seitz  <keiths@redhat.com>
2600
2601         * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2602         m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2603         m_compunit_symtab, m_language>: Add "m_" prefix.
2604         Update all uses.
2605         * buildsym.c: Update all uses.
2606
2607 2018-07-20  Tom Tromey  <tom@tromey.com>
2608
2609         * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2610         * buildsym.h (record_line_ftype): Remove typedef.
2611
2612 2018-07-20  Tom Tromey  <tom@tromey.com>
2613
2614         * buildsym-legacy.h (augment_type_symtab): Don't declare.
2615         (end_expandable_symtab): Likewise.
2616         (end_symtab_get_static_block): Likewise.
2617         (end_symtab_from_static_block): Likewise.
2618         * buildsym-legacy.c (augment_type_symtab): Remove.
2619         (end_expandable_symtab): Remove.
2620         (end_symtab_get_static_block): Remove.
2621         (end_symtab_from_static_block): Remove.
2622
2623 2018-07-20  Tom Tromey  <tom@tromey.com>
2624
2625         * dwarf2read.c: Include buildsym.h.
2626         (struct dwarf2_cu) <builder>: New method.
2627         (fixup_go_packaging): Update.
2628         (process_full_comp_unit, process_full_type_unit): Update.  Don't
2629         use scoped_free_pendings.
2630         (using_directives): Add "cu" parameter, remove "language".
2631         (read_import_statement, setup_type_unit_groups, )
2632         (read_func_scope, read_lexical_block_scope)
2633         (dwarf2_record_block_ranges, read_namespace): Update.
2634         (lnp_state_machine::lnp_state_machine): Add cu parameter.
2635         (lnp_state_machine::handle_end_sequence): Update.
2636         (class lnp_state_machine) <m_cu>: New member.
2637         <m_record_line_callback>: Remove.
2638         <m_currently_recording_lines>: New member.
2639         (lnp_state_machine::handle_set_file): Update.
2640         (noop_record_line): Remove.
2641         (dwarf_record_line_p): Add cu parameter.
2642         (dwarf_record_line_1, dwarf_finish_line): Likewise.
2643         (lnp_state_machine::record_line)
2644         (lnp_state_machine::lnp_state_machine)
2645         (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2646         (dwarf_decode_lines): Update.
2647         (dwarf2_start_subfile): Add cu parameter.
2648         (dwarf2_start_symtab, new_symbol): Update.
2649         (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2650         Remove dwarf2_per_objfile parameter.
2651         (dwarf_decode_macros): Update.
2652
2653 2018-07-20  Tom Tromey  <tom@tromey.com>
2654
2655         * stabsread.c (define_symbol): Update.
2656         * buildsym-legacy.h (get_buildsym_compunit): Declare.
2657         * dwarf2read.c (new_symbol): Update.
2658         * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2659         * cp-namespace.c: Include buildsym.h.
2660         (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2661         * buildsym-legacy.c (get_buildsym_compunit): New function.
2662
2663 2018-07-20  Tom Tromey  <tom@tromey.com>
2664
2665         * xcoffread.c: Include buildsym-legacy.h.
2666         * windows-nat.c: Include buildsym-legacy.h.
2667         * stabsread.c: Include buildsym-legacy.h.
2668         * mdebugread.c: Include buildsym-legacy.h.
2669         * buildsym-legacy.h: New file.
2670         * buildsym-legacy.c: New file, from buildsym.c.
2671         * go32-nat.c: Include buildsym-legacy.h.
2672         * dwarf2read.c: Include buildsym-legacy.h.
2673         * dbxread.c: Include buildsym-legacy.h.
2674         * cp-namespace.c: Include buildsym-legacy.h.
2675         * coffread.c: Include buildsym-legacy.h.
2676         * buildsym.h: Move some contents to buildsym-legacy.h.
2677         * buildsym.c: Include buildsym-legacy.h.  Move many functions to
2678         buildsym-legacy.c.
2679         * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2680
2681 2018-07-20  Tom Tromey  <tom@tromey.com>
2682
2683         * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2684         * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2685         (buildsym_compunit::buildsym_compunit)
2686         (buildsym_compunit::~buildsym_compunit)
2687         (buildsym_compunit::get_macro_table): Define.
2688
2689 2018-07-20  Tom Tromey  <tom@tromey.com>
2690
2691         * buildsym.c (reset_symtab_globals): Remove.
2692         (buildsym_compunit::end_symtab_from_static_block): Update.
2693         (buildsym_compunit::augment_type_symtab): Update.
2694         (end_symtab_from_static_block): Call free_buildsym_compunit.
2695         (augment_type_symtab, end_symtab, end_expandable_symtab):
2696         Likewise.
2697
2698 2018-07-20  Tom Tromey  <tom@tromey.com>
2699
2700         * arch-utils.c: Do not include buildsym.h.
2701         * mipsread.c: Do not include buildsym.h.
2702         * machoread.c: Do not include buildsym.h.
2703         * elfread.c: Do not include buildsym.h.
2704
2705 2018-07-20  Tom Tromey  <tom@tromey.com>
2706
2707         * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2708         initialization.
2709         (buildsym_compunit): Add new constructor.
2710         (struct buildsym_compunit) <get_last_source_file, finish_block,
2711         record_block_range, start_subfile, patch_subfile_names,
2712         push_subfile, pop_subfile, record_line, get_compunit_symtab,
2713         set_last_source_start_addr, get_last_source_start_addr,
2714         get_local_using_directives, set_local_using_directives,
2715         get_global_using_directives, outermost_context_p,
2716         get_current_context_stack, get_context_stack_depth,
2717         get_current_subfile, get_local_symbols, get_file_symbols,
2718         get_global_symbols, record_debugformat, record_producer,
2719         push_context, pop_context, end_symtab_get_static_block,
2720         end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2721         New public methods.
2722         <record_pending_block, finish_block_internal, make_blockvector,
2723         watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2724         private methods.
2725         Update all users.
2726
2727 2018-05-22  Tom Tromey  <tom@tromey.com>
2728
2729         * buildsym.c (record_pending_block): Move earlier.  Remove objfile
2730         parameter.
2731         (finish_block_internal): Update.
2732
2733 2018-07-20  Tom Tromey  <tom@tromey.com>
2734
2735         * buildsym.c (record_pending_block): Move earlier.  Remove objfile
2736         parameter.
2737         (finish_block_internal): Update.
2738
2739 2018-07-20  Tom Tromey  <tom@tromey.com>
2740
2741         * buildsym.h (EXTERN): Don't define or undef.
2742         * buildsym.c (EXTERN): Don't define.
2743
2744 2018-07-20  Tom Tromey  <tom@tromey.com>
2745
2746         * buildsym.c: Remove TODO comment.
2747
2748 2018-07-20  Tom Tromey  <tom@tromey.com>
2749
2750         * coffread.c (coff_symtab_read): Update.
2751         * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2752         (xcoff_new_init): Update.
2753         * mipsread.c (mipscoff_new_init): Update.
2754         * mdebugread.c (mdebug_build_psymtabs): Update.
2755         * elfread.c (elf_new_init): Update.
2756         * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2757         Update.
2758         * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2759         (coffstab_build_psymtabs, elfstab_build_psymtabs)
2760         (stabsect_build_psymtabs): Update.
2761         * buildsym.h (buildsym_init): Don't declare.
2762         * buildsym.c: Update comment.
2763         (prepare_for_building): Remove.
2764         (start_symtab, restart_symtab): Update.
2765         (reset_symtab_globals): Update comment.
2766         (buildsym_init): Remove.
2767
2768 2018-07-20  Tom Tromey  <tom@tromey.com>
2769
2770         * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2771         * stabsread.c (patch_block_stabs, define_symbol, read_type)
2772         (read_enum_type, common_block_start, common_block_end)
2773         (cleanup_undefined_types_1, finish_global_stabs): Update.
2774         * mdebugread.c (psymtab_to_symtab_1): Update.
2775         * dwarf2read.c (fixup_go_packaging, read_func_scope)
2776         (read_lexical_block_scope, new_symbol): Update.
2777         * dbxread.c (process_one_symbol): Update.
2778         * coffread.c (coff_symtab_read, process_coff_symbol)
2779         (coff_read_enum_type): Update.
2780         * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2781         declare.
2782         (get_local_symbols, get_file_symbols, get_global_symbols): New
2783         functions.
2784         * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2785         m_global_symbols.
2786         <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2787         (~scoped_free_pendings): Update.
2788         (finish_block, prepare_for_building, reset_symtab_globals)
2789         (end_symtab_get_static_block, end_symtab_with_blockvector)
2790         (augment_type_symtab, push_context): Update.
2791         (get_local_symbols, get_file_symbols, get_global_symbols): New
2792         functions.
2793         (buildsym_init): Update.
2794
2795 2018-07-20  Tom Tromey  <tom@tromey.com>
2796
2797         * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2798         (process_full_type_unit): Likewise.
2799         (dwarf2_start_symtab): Set list_in_scope.
2800
2801 2018-07-20  Tom Tromey  <tom@tromey.com>
2802
2803         * dwarf2read.c (process_psymtab_comp_unit_reader)
2804         (build_type_psymtabs_reader): Do not set list_in_scope.
2805
2806 2018-07-20  Tom Tromey  <tom@tromey.com>
2807
2808         * buildsym.c (free_pendings): Remove.
2809         (add_symbol_to_list, scoped_free_pendings)
2810         (finish_block_internal, buildsym_init): Update.
2811
2812 2018-07-20  Tom Tromey  <tom@tromey.com>
2813
2814         * xcoffread.c (read_xcoff_symtab): Update.
2815         * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2816         Update.
2817         * dbxread.c (process_one_symbol): Update.
2818         * coffread.c (coff_symtab_read): Update.
2819         * buildsym.h (finish_block): Update.
2820         * buildsym.c (finish_block): Remove "listhead" argument.
2821         (end_symtab_get_static_block): Update.
2822
2823 2018-07-20  Tom Tromey  <tom@tromey.com>
2824
2825         * buildsym.h (class scoped_free_pendings): Remove constructor.
2826         * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2827         method.
2828         <m_pending_block_obstack, m_pending_blocks>: New members.
2829         (pending_block_obstack, pending_blocks): Remove.
2830         (scoped_free_pendings::scoped_free_pendings): Default.
2831         (~scoped_free_pendings): Update.
2832         (free_pending_blocks): Remove.
2833         (finish_block_internal, record_pending_block, make_blockvector)
2834         (end_symtab_get_static_block, augment_type_symtab, push_context)
2835         (buildsym_init): Update.
2836
2837 2018-07-20  Tom Tromey  <tom@tromey.com>
2838
2839         * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2840         m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2841         members.
2842         (pending_addrmap, pending_addrmap_obstack)
2843         (pending_addrmap_interesting): Remove.
2844         (scoped_free_pendings, record_block_range, make_blockvector)
2845         (prepare_for_building, reset_symtab_globals, buildsym_init):
2846         Update.
2847
2848 2018-07-20  Tom Tromey  <tom@tromey.com>
2849
2850         * xcoffread.c (process_linenos): Update.
2851         * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2852         * mdebugread.c (psymtab_to_symtab_1): Update.
2853         * dwarf2read.c (setup_type_unit_groups)
2854         (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2855         (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2856         * dbxread.c (process_one_symbol): Update.
2857         * coffread.c (coff_symtab_read, enter_linenos)
2858         (process_coff_symbol): Update.
2859         * buildsym.h (current_subfile): Don't declare.
2860         (get_current_subfile): Declare.
2861         * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2862         member.
2863         (start_subfile, free_buildsym_compunit, push_subfile)
2864         (prepare_for_building, start_symtab): Update.
2865         (get_current_subfile): New function.
2866
2867 2018-07-20  Tom Tromey  <tom@tromey.com>
2868
2869         * coffread.c (coff_symtab_read): Update.
2870         * xcoffread.c (read_xcoff_symtab): Update.
2871         * dwarf2read.c (new_symbol): Update.
2872         (read_func_scope, read_lexical_block_scope): Update.
2873         * dbxread.c (process_one_symbol): Update.
2874         * buildsym.h (context_stack, context_stack_depth): Don't declare.
2875         (outermost_context_p): Remove macro.
2876         (outermost_context_p, get_current_context_stack)
2877         (get_context_stack_depth): Declare.
2878         (pop_context): Return struct context_stack.
2879         * buildsym.c (struct buildsym_compunit) <m_context_stack: New
2880         member.
2881         (context_stack_size): Remove.
2882         (INITIAL_CONTEXT_STACK_SIZE): Remove.
2883         (prepare_for_building, end_symtab_get_static_block)
2884         (augment_type_symtab, push_context): Update.
2885         (pop_context): Return struct context_stack.
2886         (outermost_context_p, get_current_context_stack)
2887         (get_context_stack_depth): New functions.
2888         (buildsym_init): Update.
2889
2890 2018-07-20  Tom Tromey  <tom@tromey.com>
2891
2892         * rust-exp.y: Now a pure parser.  Update all rules.
2893         (%union): Move earlier.
2894         (current_parser, work_obstack): Remove globals.
2895         (rust_parser, ~rust_parser): Update.
2896         (class rust_parser) <copy_name, concat3, crate_name, super_name,
2897         lex_character, lex_number, lex_string, lex_identifier,
2898         rust_lookup_type, convert_params_to_types, convert_ast_to_type,
2899         convert_name, convert_params_to_expression,
2900         convert_ast_to_expression, ast_basic_type, ast_operation,
2901         ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
2902         ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
2903         ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
2904         ast_array_type, ast_slice_type, ast_reference_type,
2905         ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
2906         (rust_parse): Update.
2907         (rustyyerror, rustyylex): Add parser parameter.
2908         (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
2909         (rust_lex_stringish_test, rust_lex_test_sequence)
2910         (rust_lex_test_trailing_dot, rust_lex_test_completion)
2911         (rust_lex_test_push_back, rust_lex_tests): Update.
2912
2913 2018-07-19  Pedro Alves  <palves@redhat.com>
2914
2915         * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
2916         gdb::unique_xmalloc_ptr.
2917         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
2918         Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
2919         * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
2920         copy-initialization.
2921         * guile/scm-pretty-print.c (ppscm_print_children): Use
2922         gdb::unique_xmalloc_ptr instead of cleanups.
2923         (gdbscm_apply_val_pretty_printer): Remove cleanups.
2924         * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
2925         gdb::unique_xmalloc_ptr.
2926         * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2927         Adjust to use gdb::unique_xmalloc_ptr.
2928         * guile/scm-utils.c (extract_arg): Adjust.
2929         * guile/scm-value.c (gdbscm_value_field): Adjust to use
2930         gdb::unique_xmalloc_ptr instead of a cleanup.
2931
2932 2018-07-19  Tom Tromey  <tom@tromey.com>
2933
2934         * utils.c (do_value_free_to_mark)
2935         (make_cleanup_value_free_to_mark): Remove.
2936         * utils.h (make_cleanup_value_free_to_mark): Remove.
2937
2938 2018-07-19  Pedro Alves  <palves@redhat.com>
2939
2940         * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
2941         forwarding reference.
2942
2943 2018-07-18  Pedro Alves  <palves@redhat.com>
2944
2945         * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
2946         gdbscm_wrap.  Use gdb::unique_xmalloc_ptr<char> instead of a
2947         cleanup.
2948
2949 2018-07-18  Pedro Alves  <palves@redhat.com>
2950
2951         * guile/guile-internal.h: Add comment about mixing GDB and Scheme
2952         exceptions.
2953         (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
2954         (gdbscm_wrap): New.
2955         * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
2956         directly instead of a cleanup.
2957         * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
2958         (vlscm_unop): ... this.  Reimplement using gdbscm_wrap.
2959         (vlscm_binop_gdbthrow): New, factored out from ...
2960         (vlscm_binop): ... this.  Reimplement using gdbscm_wrap.
2961         (vlscm_rich_compare): Use gdbscm_wrap.
2962         * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
2963         instead of a cleanup.
2964         (gdbscm_lookup_global_symbol): Use xfree directly instead of a
2965         cleanup.
2966         * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2967         Use xfree directly instead of a cleanup.
2968         * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
2969         Adjust to use gdbscm_wrap and scoped_value_mark.
2970         (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
2971         (gdbscm_value_address, gdbscm_value_dereference)
2972         (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
2973         scoped_value_mark.
2974         (gdbscm_value_dynamic_type): Use scoped_value_mark.
2975         (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
2976         scoped_value_mark.
2977         (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
2978         gdbscm_wrap and scoped_value_mark.
2979         (gdbscm_value_to_string): Use xfree directly instead of a
2980         cleanup.  Move 'buffer' unique_ptr to TRY scope.
2981         (gdbscm_value_to_lazy_string): Use xfree directly instead of a
2982         cleanup.  Move 'buffer' unique_ptr to TRY scope.  Use
2983         scoped_value_mark.
2984         (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
2985         (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
2986         scoped_value_mark.
2987         (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
2988         gdbscm_wrap.
2989
2990 2018-07-18  Tom de Vries  <tdevries@suse.de>
2991
2992         * findvar.c (default_read_var_value): Also resolve dynamic type for
2993         LOC_OPTIMIZED_OUT vars.
2994
2995 2018-07-18  Maciej W. Rozycki  <macro@mips.com>
2996
2997         * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
2998         decoding.
2999
3000 2018-07-17  Tom Tromey  <tom@tromey.com>
3001
3002         * guile/scm-param.c (pascm_set_func, pascm_show_func)
3003         (compute_enum_list, pascm_set_param_value_x)
3004         (gdbscm_parameter_value): Update.
3005         * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3006         (gdbscm_scm_to_host_string): Update.
3007         * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3008         Update.
3009         * guile/scm-cmd.c (cmdscm_add_completion): Update.
3010         * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3011         * guile/scm-string.c (gdbscm_scm_to_string): Return
3012         unique_xmalloc_ptr.
3013         (gdbscm_scm_to_host_string): Likewise.
3014
3015 2018-07-17  Tom Tromey  <tom@tromey.com>
3016
3017         * guile/guile.c (gdbscm_eval_from_control_command): Update.
3018         * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3019         * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3020         * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3021         unique_xmalloc_ptr.
3022
3023 2018-07-17  Tom Tromey  <tom@tromey.com>
3024
3025         * guile/scm-param.c (pascm_signal_setshow_error): Update.
3026         * guile/guile-internal.h (gdbscm_exception_message_to_string):
3027         Update.
3028         * guile/scm-cmd.c (cmdscm_function): Update.
3029         * guile/scm-pretty-print.c
3030         (ppscm_print_exception_unless_memory_error): Update.
3031         * guile/scm-exception.c (gdbscm_exception_message_to_string):
3032         Return unique_xmalloc_ptr.
3033
3034 2018-07-17  Tom Tromey  <tom@tromey.com>
3035
3036         * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3037         Use string_printf.
3038
3039 2018-07-17  Jim Wilson  <jimw@sifive.com>
3040
3041         * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3042         set_gdbarch_decr_pc_after_break.  Call riscv_read_misa_reg always.
3043         (riscv_gdbarch_init): Delete local has_compressed_isa.  Delete now
3044         unecessary braces after EF_RISCV_RVC test.  Delete call to
3045         set_gdbarch_decr_pc_after_break.
3046
3047         * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3048         RISCV_LAST_FP_REGNUM + 1.
3049         (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3050
3051 2018-07-17  Tom Tromey  <tom@tromey.com>
3052
3053         * configure.ac: Remove --disable-gdbcli.
3054         * configure: Rebuild.
3055         * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3056         (SUBDIR_CLI_CFLAGS): Remove.
3057         (SFILES): Use SUBDIR_CLI_SRCS.
3058         (COMMON_OBS): Use SUBDIR_CLI_OBS.
3059
3060 2018-07-17  Tom Tromey  <tom@tromey.com>
3061
3062         PR gdb/18624:
3063         * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3064
3065 2018-07-16  Jim Wilson  <jimw@sifive.com>
3066
3067         * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3068
3069 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
3070
3071         * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3072         variable.
3073         (libunwind_frame_sniffer): Likewise.
3074         (libunwind_frame_prev_register): Likewise.
3075         (libunwind_sigtramp_frame_sniffer): Likewise.
3076         * ia64-tdep.c (ia64_access_reg): Likewise.
3077         (ia64_access_rse_reg): Likewise.
3078         (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3079         * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3080
3081 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
3082
3083         * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3084
3085 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
3086
3087         * remote-sim.c (gdbsim_target::close,
3088         gdbsim_target::mourn_inferior): Remove unused variables.
3089
3090 2018-07-16  Simon Marchi  <simon.marchi@polymtl.ca>
3091
3092         * ia64-tdep.c (ktab_buf): New global.
3093         (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3094         (get_kernel_table): Adjust.
3095
3096 2018-07-16  Tom Tromey  <tom@tromey.com>
3097
3098         * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3099         * dwarf2read.c (using_directives, new_symbol): Use
3100         outermost_context_p.
3101         * dbxread.c (process_one_symbol): Use outermost_context_p.
3102         * coffread.c (coff_symtab_read): Use outermost_context_p.
3103
3104 2018-07-16  Tom Tromey  <tom@tromey.com>
3105
3106         * dwarf2read.c (using_directives, read_func_scope)
3107         (read_lexical_block_scope): Update.
3108         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3109         * buildsym.h (local_using_directives, global_using_directives):
3110         Don't declare.
3111         (get_local_using_directives, set_local_using_directives)
3112         (get_global_using_directives): Declare.
3113         * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3114         m_global_using_directives>: New members.
3115         (finish_block_internal, prepare_for_building)
3116         (reset_symtab_globals, end_symtab_get_static_block)
3117         (push_context): Update.
3118         (get_local_using_directives, set_local_using_directives)
3119         (get_global_using_directives): New functions.
3120         (buildsym_init): Update.
3121
3122 2018-07-16  Tom Tromey  <tom@tromey.com>
3123
3124         * xcoffread.c (xcoff_initial_scan): Don't call
3125         free_pending_blocks.
3126         * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3127         * buildsym.h (class scoped_free_pendings): Add constructor.
3128         (free_pending_blocks): Don't declare.
3129         * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3130         (free_pending_blocks): Now static.
3131
3132 2018-07-16  Tom Tromey  <tom@tromey.com>
3133
3134         * buildsym.h (push_subfile, pop_subfile): Update declarations.
3135         * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3136         member.
3137         (struct subfile_stack): Remove.
3138         (subfile_stack): Remove.
3139         (push_subfile, pop_subfile, buildsym_init): Update.
3140
3141 2018-07-16  Tom Tromey  <tom@tromey.com>
3142
3143         * buildsym.c (push_subfile): Use gdb_assert.
3144         (pop_subfile): Use gdb_assert.
3145
3146 2018-07-16  Tom Tromey  <tom@tromey.com>
3147
3148         * buildsym.h (merge_symbol_lists): Remove.
3149         * buildsym.c (merge_symbol_lists): Remove.
3150
3151 2018-07-16  Tom Tromey  <tom@tromey.com>
3152
3153         * stabsread.c (scan_file_globals): Update comment.
3154         * stabsread.h (scan_file_globals): Move from buildsym.h.
3155         * buildsym.h (scan_file_globals): Move to stabsread.h.
3156
3157 2018-07-16  Tom Tromey  <tom@tromey.com>
3158
3159         * xcoffread.c (xcoff_new_init): Update.
3160         * mipsread.c (mipscoff_new_init): Update.
3161         * mdebugread.c (mdebug_build_psymtabs): Update.
3162         * elfread.c (elf_new_init): Update.
3163         * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3164         (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3165         * buildsym.h (buildsym_new_init): Don't declare.
3166         * buildsym.c (buildsym_new_init): Remove.
3167
3168 2018-07-16  Tom Tromey  <tom@tromey.com>
3169
3170         * stabsread.h (within_function): Move from buildsym.h.
3171         * stabsread.c (start_stabs): Clear within_function.
3172         * coffread.c (coff_start_symtab): Clear within_function.
3173         * buildsym.h (within_function): Move to stabsread.h.
3174         * buildsym.c (prepare_for_building): Update.
3175
3176 2018-07-16  Tom Tromey  <tom@tromey.com>
3177
3178         * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3179         * dwarf2read.c (dwarf2_start_symtab): Don't set
3180         processing_gcc_compilation.
3181         * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3182
3183 2018-07-16  Tom Tromey  <tom@tromey.com>
3184
3185         * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3186         (next_symbol_text_func): Move from buildsym.h.
3187         * stabsread.c (hashname): Move from buildsym.c.
3188         * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3189         (next_symbol_text_func, hashname): Move to stabsread.h.
3190         * buildsym.c: Don't include bcache.h
3191         (hashname): Move to stasbread.c.
3192
3193 2018-07-16  Tom Tromey  <tom@tromey.com>
3194
3195         * buildsym.h (context_stack_size): Don't declare.
3196         * buildsym.c (context_stack_size): New global.
3197
3198 2018-07-16  Tom Tromey  <tom@tromey.com>
3199
3200         * dbxread.c (processing_acc_compilation): New global.
3201         * buildsym.h (processing_acc_compilation): Don't declare.
3202
3203 2018-07-16  Tom Tromey  <tom@tromey.com>
3204
3205         * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3206         * dbxread.c (read_ofile_symtab): Update.
3207         * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3208         * buildsym.h (last_source_start_addr): Remove.
3209         (set_last_source_start_addr, get_last_source_start_addr):
3210         Declare.
3211         * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3212         parameter.
3213         (struct buildsym_compunit) <m_last_source_start_addr>: New
3214         member.
3215         (prepare_for_building): Remove start_addr parameter.
3216         (start_symtab, restart_symtab, end_symtab_get_static_block)
3217         (end_symtab_with_blockvector): Update.
3218         (set_last_source_start_addr, get_last_source_start_addr): New
3219         functions.
3220
3221 2018-07-16  Tom Tromey  <tom@tromey.com>
3222
3223         * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3224         member.
3225         (have_line_numbers): Remove.
3226         (record_line, prepare_for_building, end_symtab_get_static_block)
3227         (augment_type_symtab): Update.
3228
3229 2018-07-16  Tom Tromey  <tom@tromey.com>
3230
3231         * buildsym.c (~buildsym_compunit): Free the macro table.
3232         (struct buildsym_compunit) <get_macro_table, release_macros>: New
3233         methods.
3234         <m_pending_macros>: New member.
3235         (pending_macros): Remove.
3236         (~scoped_free_pendings, get_macro_table, prepare_for_building)
3237         (reset_symtab_globals, end_symtab_get_static_block)
3238         (end_symtab_with_blockvector, augment_type_symtab)
3239         (buildsym_init): Update.
3240
3241 2018-07-16  Tom Tromey  <tom@tromey.com>
3242
3243         * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3244         parameter.
3245         (buildsym_compunit::set_last_source_file): New method.
3246         <m_last_source_file>: New member.
3247         (prepare_for_building): Remove "name" parameter.
3248         (start_symtab, restart_symtab, reset_symtab_globals): Update.
3249         (last_source_file): Remove.
3250         (set_last_source_file, get_last_source_file): Update.
3251
3252 2018-07-16  Tom Tromey  <tom@tromey.com>
3253
3254         * buildsym.c (prepare_for_building): Add assert.
3255
3256 2018-07-16  Tom Tromey  <tom@tromey.com>
3257
3258         * buildsym.c (~buildsym_compunit): Update.
3259         (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3260         (start_subfile, patch_subfile_names)
3261         (end_symtab_with_blockvector): Update.
3262
3263 2018-07-16  Tom Tromey  <tom@tromey.com>
3264
3265         * buildsym.c (struct buildsym_compunit): Add constructor,
3266         destructor, initializers.
3267         (start_buildsym_compunit): Remove.
3268         (free_buildsym_compunit): Use "delete".
3269         (start_symtab, restart_symtab): Use "new".
3270
3271 2018-07-13  Simon Marchi  <simon.marchi@polymtl.ca>
3272
3273         * symfile.c (set_objfile_default_section_offset): Remove struct
3274         keyword.
3275
3276 2018-07-14  Stafford Horne  <shorne@gmail.com>
3277
3278         * (Responsible Maintainers): Add myself as or1k maintainer.
3279
3280 2018-07-13  Tom Tromey  <tom@tromey.com>
3281
3282         * symfile.c (set_objfile_default_section_offset): Use extra braces
3283         around initializer.
3284
3285 2018-07-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3286
3287         * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3288         non-branching basr.
3289
3290 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3291
3292         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3293         unittests/cli-utils-selftests.c
3294         * unittests/cli-utils-selftests.c: New file.
3295
3296 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3297
3298         * NEWS: Mention new commands. Mention change to 'thread apply'.
3299
3300 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3301
3302         * thread.c (thr_try_catch_cmd): New function.
3303         (thread_apply_all_command): Handle qcs flags.
3304         (thread_apply_command): Handle qcs flags.
3305         (taas_command): New function.
3306         (tfaas_command): New function.
3307         (_initialize_thread): Update to setup the new commands 'taas
3308         and 'tfaas'. Change doc string for 'thread apply'.
3309
3310 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3311
3312         * stack.c: (trailing_outermost_frame): New function, mostly
3313         extracted from backtrace_command_1.
3314         (leading_innermost_frame): New function.
3315         (backtrace_command_1): Update to call trailing_outermost_frame.
3316         (frame_apply_command_count): New function.
3317         (frame_apply_level_command): New function.
3318         (frame_apply_all_command): New function.
3319         (frame_apply_command): New function.
3320         (faas_command): New function.
3321         (frame_cmd_list): New variable.
3322         (_initialize_stack): Update to setup the new commands 'frame apply'
3323         and 'faas'.
3324
3325 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3326
3327         * cli-utils.c (number_or_range_parser::get_number): Only handle
3328         numbers or convenience var as numbers.
3329         (parse_flags): New function.
3330         (parse_flags_qcs): New function.
3331         (number_or_range_parser::finished): Ensure parsing end is detected
3332         before end of string.
3333         * cli-utils.h (parse_flags): New function.
3334         (parse_flags_qcs): New function.
3335         (number_or_range_parser): Remove m_finished bool.
3336         (number_or_range_parser::skip_range): Set m_in_range to false.
3337
3338 2018-07-12  Sergio Durigan Junior  <sergiodj@redhat.com>
3339
3340         * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3341         on Windows.
3342
3343 2018-07-11  Sergio Durigan Junior  <sergiodj@redhat.com>
3344             Jan Kratochvil  <jan.kratochvil@redhat.com>
3345             Paul Fertser  <fercerpav@gmail.com>
3346             Tsutomu Seki  <sekiriki@gmail.com>
3347             Pedro Alves  <palves@redhat.com>
3348
3349         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3350         'unittests/parse-connection-spec-selftests.c'.
3351         (COMMON_SFILES): Add 'common/netstuff.c'.
3352         (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3353         * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3354         * common/netstuff.c: New file.
3355         * common/netstuff.h: New file.
3356         * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3357         (wait_for_connect): Update comment.  New parameter
3358         'gdb::optional<int> sock' instead of 'struct serial *scb'.
3359         Use 'sock' directly instead of 'scb->fd'.
3360         (try_connect): New function, with code from 'net_open'.
3361         (net_open): Rewrite main loop to deal with multiple
3362         sockets/addresses.  Handle IPv6-style hostnames; implement
3363         support for IPv6 connections.
3364         * unittests/parse-connection-spec-selftests.c: New file.
3365
3366 2018-07-11  Pedro Alves  <palves@redhat.com>
3367
3368         PR gdb/23377
3369         * remote.c (remote_target::remote_detach_pid): Call
3370         set_current_process.
3371
3372 2018-07-11  Pedro Alves  <palves@redhat.com>
3373
3374         * h8300-tdep.c (h8300_gdbarch_init): Remove
3375         set_gdbarch_ecoff_reg_to_regnum calls.
3376
3377 2018-07-11  Sergio Durigan Junior  <sergiodj@redhat.com>
3378
3379         PR c++/23373
3380         * c-typeprint.c (c_type_print_base_struct_union): Don't print
3381         offsets/sizes for static members of a class/struct.
3382
3383 2018-07-11  Alan Hayward  <alan.hayward@arm.com>
3384
3385         * target-descriptions.c (tdesc_register_bitsize): Rename.
3386         * target-descriptions.h (tdesc_register_bitsize): Likewise.
3387         * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3388         * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3389
3390 2018-07-10  Tom Tromey  <tom@tromey.com>
3391
3392         * breakpoint.c (moribund_locations): Now static and a
3393         std::vector.
3394         (breakpoint_init_inferior, moribund_breakpoint_here_p)
3395         (build_bpstat_chain, update_global_location_list)
3396         (breakpoint_retire_moribund): Update.
3397         * breakpoint.h (bp_location_p): Remove typedef.  Don't declare
3398         VEC.
3399
3400 2018-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
3401
3402         * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3403         (riscv_register_reggroup_p): Use new function, remove unneeded
3404         parenthesis.
3405         (riscv_push_dummy_call): Extend assert to compare against xlen or
3406         flen based on register type.
3407
3408 2018-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
3409
3410         * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3411
3412 2018-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
3413
3414         * remote.c (show_hardware_watchpoint_limit): New function.
3415         (show_hardware_watchpoint_length_limit): New function.
3416         (show_hardware_breakpoint_limit): New function.
3417         (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3418         where appropriate, update help text.
3419
3420 2018-07-09  Tom Tromey  <tom@tromey.com>
3421
3422         * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3423         (CLIBS): Don't mention NAT_CLIBS.
3424
3425 2018-07-09  Tom Tromey  <tom@tromey.com>
3426
3427         * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3428         (LIBGDB_OBS, clean mostlyclean): Update.
3429         (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3430
3431 2018-07-09  Tom Tromey  <tom@tromey.com>
3432
3433         * Makefile.in (%.c: %.y): Use ECHO_YACC.
3434         (%.c: %.l): Use ECHO_LEX.  Just fail if flex not available.
3435         * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3436
3437 2018-07-09  Tom Tromey  <tom@tromey.com>
3438
3439         * Makefile.in (ALLDEPFILES): Remove exec.c.
3440         (COMMON_OBS): Remove exec.o.
3441         (COMMON_SFILES): Add exec.c.
3442
3443 2018-07-09  Tom Tromey  <tom@tromey.com>
3444
3445         * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3446
3447 2018-07-09  Tom Tromey  <tom@tromey.com>
3448
3449         * Makefile.in (clean mostlyclean): Remove stamp-version.
3450         (version.c): Depend on stamp-version.
3451         (stamp-version): New rule, from version.c rule.
3452
3453 2018-07-09  Tom Tromey  <tom@tromey.com>
3454
3455         * Makefile.in (init.c): Depend on stamp-init.
3456         (stamp-init): New rule, from init.c rule.
3457         (clean mostlyclean): Remove stamp-init.
3458
3459 2018-07-09  Tom Tromey  <tom@tromey.com>
3460
3461         * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3462         SUBDIR_GCC_COMPILE_SRCS.
3463
3464 2018-07-09  Tom Tromey  <tom@tromey.com>
3465
3466         * Makefile.in (init.c): Remove some unused sed rules.
3467
3468 2018-07-09  Tom Tromey  <tom@tromey.com>
3469
3470         * Makefile.in (TSOBS): Remove.
3471         (INIT_FILES): Update.
3472         (LIBGDB_OBS): Update.
3473         (COMMON_SFILES): Add inflow.c.
3474         (SFILES): Remove inflow.c.
3475
3476 2018-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3477
3478         * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3479
3480 2018-07-07  Simon Marchi  <simon.marchi@polymtl.ca>
3481
3482         * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3483         get_saveloc_name, is_signal_frame_name, step_name,
3484         init_remote_name, create_addr_space_name,
3485         destroy_addr_space_name, search_unwind_table_name,
3486         find_dyn_list_name): Constify.
3487
3488 2018-07-05  Simon Marchi  <simon.marchi@polymtl.ca>
3489
3490         * darwin-nat.c (darwin_pthread_kill): New function.
3491         (darwin_resume_thread): Use darwin_pthread_kill.
3492
3493 2018-07-05  Tom de Vries  <tdevries@suse.de>
3494
3495         * macroexp.c (macro_buffer) <operator=>: New member function.
3496
3497 2018-07-04  Tom Tromey  <tom@tromey.com>
3498
3499         * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3500
3501 2018-07-04  Simon Marchi  <simon.marchi@polymtl.ca>
3502
3503         * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3504         * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3505         * maint.c: Likewise.
3506         * top.c: Likewise.
3507
3508 2018-07-04  Joel Brobecker  <brobecker@adacore.com>
3509
3510         * NEWS: Create a new section for the next release branch.
3511         Rename the section of the current branch, now that it has
3512         been cut.
3513
3514 2018-07-04  Joel Brobecker  <brobecker@adacore.com>
3515
3516         GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3517         * version.in: Bump version to 8.2.50.DATE-git.
3518
3519 2018-07-04  Vyacheslav Barinov  <v.barinov@samsung.com>
3520             Pedro Alves  <palves@redhat.com>
3521
3522         * linux-nat.c (linux_init_ptrace): Rename to ...
3523         (linux_init_ptrace_procfs): ... this.  Call
3524         linux_proc_init_warnings.
3525         (linux_nat_target::post_attach)
3526         (linux_nat_target::post_startup_inferior): Adjust.
3527         * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3528         * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3529
3530 2018-07-04  Tom de Vries  <tdevries@suse.de>
3531
3532         * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3533         check ...
3534         (read_comp_unit_head): ... here.
3535
3536 2018-07-03  Tom Tromey  <tom@tromey.com>
3537
3538         * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3539         (stop_tracing, tstatus_command)
3540         (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3541         (print_one_static_tracepoint_marker): Update.
3542         * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3543         std::vector.
3544         * breakpoint.h (breakpoint_p): Remove typedef.  Don't declare
3545         VEC.
3546         (all_tracepoints, static_tracepoints_here): Return std::vector.
3547
3548 2018-07-03  Tom Tromey  <tom@tromey.com>
3549
3550         * common/ptid.c (ptid_equal): Remove.
3551         * common/ptid.h (ptid_equal): Don't declare.
3552         * ada-tasks.c: Update.
3553         * breakpoint.c: Update.
3554         * common/agent.c: Update.
3555         * corelow.c: Update.
3556         * darwin-nat-info.c: Update.
3557         * darwin-nat.c: Update.
3558         * dcache.c: Update.
3559         * dtrace-probe.c: Update.
3560         * dummy-frame.c: Update.
3561         * fbsd-nat.c: Update.
3562         * frame.c: Update.
3563         * gdbthread.h: Update.
3564         * gnu-nat.c: Update.
3565         * go32-nat.c: Update.
3566         * inf-loop.c: Update.
3567         * inf-ptrace.c: Update.
3568         * infcall.c: Update.
3569         * infcmd.c: Update.
3570         * inflow.c: Update.
3571         * infrun.c: Update.
3572         * linux-fork.c: Update.
3573         * linux-nat.c: Update.
3574         * linux-thread-db.c: Update.
3575         * mi/mi-cmd-var.c: Update.
3576         * mi/mi-interp.c: Update.
3577         * mi/mi-main.c: Update.
3578         * nto-procfs.c: Update.
3579         * ppc-linux-tdep.c: Update.
3580         * procfs.c: Update.
3581         * python/py-inferior.c: Update.
3582         * python/py-record-btrace.c: Update.
3583         * python/py-record.c: Update.
3584         * ravenscar-thread.c: Update.
3585         * regcache.c: Update.
3586         * remote-sim.c: Update.
3587         * remote.c: Update.
3588         * sol-thread.c: Update.
3589         * solib.c: Update.
3590         * target.c: Update.
3591         * tui/tui-stack.c: Update.
3592         * varobj.c: Update.
3593         * windows-nat.c: Update.
3594         * windows-tdep.c: Update.
3595
3596 2018-07-03  Tom Tromey  <tom@tromey.com>
3597
3598         * common/ptid.c (ptid_match): Remove.
3599         * common/ptid.h (ptid_match): Don't declare.
3600         * fbsd-nat.c: Update.
3601         * infcmd.c: Update.
3602         * infrun.c: Update.
3603         * linux-nat.c: Update.
3604         * record-btrace.c: Update.
3605         * regcache.c: Update.
3606         * remote.c: Update.
3607
3608 2018-07-03  Tom Tromey  <tom@tromey.com>
3609
3610         * common/ptid.c (ptid_tid_p): Remove.
3611         * common/ptid.h (ptid_tid_p): Don't declare.
3612         * sol-thread.c: Update.
3613
3614 2018-07-03  Tom Tromey  <tom@tromey.com>
3615
3616         * common/ptid.c (ptid_lwp_p): Remove.
3617         * common/ptid.h (ptid_lwp_p): Don't declare.
3618         * fbsd-nat.c: Update.
3619         * linux-nat.c: Update.
3620         * nat/linux-procfs.c: Update.
3621         * nat/x86-linux-dregs.c: Update.
3622         * sol-thread.c: Update.
3623
3624 2018-07-03  Tom Tromey  <tom@tromey.com>
3625
3626         * common/ptid.c (ptid_is_pid): Remove.
3627         * common/ptid.h (ptid_is_pid): Don't declare.
3628         * infrun.c: Update.
3629         * linux-nat.c: Update.
3630         * mi/mi-interp.c: Update.
3631         * remote.c: Update.
3632         * thread.c: Update.
3633
3634 2018-07-03  Tom Tromey  <tom@tromey.com>
3635
3636         * common/ptid.c (ptid_get_tid): Remove.
3637         * common/ptid.h (ptid_get_tid): Don't declare.
3638         * ada-tasks.c: Update.
3639         * aix-thread.c: Update.
3640         * bsd-uthread.c: Update.
3641         * darwin-nat.c: Update.
3642         * fbsd-nat.c: Update.
3643         * i386-darwin-nat.c: Update.
3644         * infrun.c: Update.
3645         * linux-tdep.c: Update.
3646         * nto-procfs.c: Update.
3647         * ppc-ravenscar-thread.c: Update.
3648         * python/py-infthread.c: Update.
3649         * ravenscar-thread.c: Update.
3650         * sol-thread.c: Update.
3651         * sparc-ravenscar-thread.c: Update.
3652         * windows-nat.c: Update.
3653
3654 2018-07-03  Tom Tromey  <tom@tromey.com>
3655
3656         * common/ptid.c (ptid_get_lwp): Remove.
3657         * common/ptid.h (ptid_get_lwp): Don't declare.
3658         * aarch64-linux-nat.c: Update.
3659         * ada-tasks.c: Update.
3660         * aix-thread.c: Update.
3661         * amd64-linux-nat.c: Update.
3662         * arm-linux-nat.c: Update.
3663         * corelow.c: Update.
3664         * fbsd-nat.c: Update.
3665         * fbsd-tdep.c: Update.
3666         * gnu-nat.c: Update.
3667         * i386-cygwin-tdep.c: Update.
3668         * i386-gnu-nat.c: Update.
3669         * i386-linux-nat.c: Update.
3670         * ia64-linux-nat.c: Update.
3671         * inf-ptrace.c: Update.
3672         * infrun.c: Update.
3673         * linux-fork.c: Update.
3674         * linux-nat.c: Update.
3675         * linux-tdep.c: Update.
3676         * linux-thread-db.c: Update.
3677         * mips-linux-nat.c: Update.
3678         * nat/aarch64-linux-hw-point.c: Update.
3679         * nat/aarch64-linux.c: Update.
3680         * nat/linux-btrace.c: Update.
3681         * nat/linux-osdata.c: Update.
3682         * nat/linux-procfs.c: Update.
3683         * nat/x86-linux-dregs.c: Update.
3684         * obsd-nat.c: Update.
3685         * ppc-fbsd-nat.c: Update.
3686         * ppc-linux-nat.c: Update.
3687         * procfs.c: Update.
3688         * python/py-infthread.c: Update.
3689         * ravenscar-thread.c: Update.
3690         * remote.c: Update.
3691         * s390-linux-nat.c: Update.
3692         * sol-thread.c: Update.
3693         * sol2-tdep.c: Update.
3694         * spu-linux-nat.c: Update.
3695         * x86-linux-nat.c: Update.
3696         * xtensa-linux-nat.c: Update.
3697
3698 2018-07-03  Tom Tromey  <tom@tromey.com>
3699
3700         * common/ptid.c (ptid_get_pid): Remove.
3701         * common/ptid.h (ptid_get_pid): Don't declare.
3702         * aarch64-linux-nat.c: Update.
3703         * ada-lang.c: Update.
3704         * aix-thread.c: Update.
3705         * alpha-bsd-nat.c: Update.
3706         * amd64-fbsd-nat.c: Update.
3707         * amd64-linux-nat.c: Update.
3708         * arm-linux-nat.c: Update.
3709         * arm-nbsd-nat.c: Update.
3710         * auxv.c: Update.
3711         * break-catch-syscall.c: Update.
3712         * breakpoint.c: Update.
3713         * bsd-uthread.c: Update.
3714         * corelow.c: Update.
3715         * ctf.c: Update.
3716         * darwin-nat.c: Update.
3717         * fbsd-nat.c: Update.
3718         * fbsd-tdep.c: Update.
3719         * gcore.c: Update.
3720         * gnu-nat.c: Update.
3721         * hppa-nbsd-nat.c: Update.
3722         * hppa-obsd-nat.c: Update.
3723         * i386-fbsd-nat.c: Update.
3724         * ia64-linux-nat.c: Update.
3725         * inf-ptrace.c: Update.
3726         * infcmd.c: Update.
3727         * inferior.c: Update.
3728         * inferior.h: Update.
3729         * inflow.c: Update.
3730         * infrun.c: Update.
3731         * linux-fork.c: Update.
3732         * linux-nat.c: Update.
3733         * linux-tdep.c: Update.
3734         * linux-thread-db.c: Update.
3735         * m68k-bsd-nat.c: Update.
3736         * mi/mi-interp.c: Update.
3737         * mi/mi-main.c: Update.
3738         * mips-linux-nat.c: Update.
3739         * mips-nbsd-nat.c: Update.
3740         * mips64-obsd-nat.c: Update.
3741         * nat/aarch64-linux-hw-point.c: Update.
3742         * nat/aarch64-linux.c: Update.
3743         * nat/linux-btrace.c: Update.
3744         * nat/linux-osdata.c: Update.
3745         * nat/linux-procfs.c: Update.
3746         * nat/x86-linux-dregs.c: Update.
3747         * nto-procfs.c: Update.
3748         * obsd-nat.c: Update.
3749         * ppc-linux-nat.c: Update.
3750         * ppc-nbsd-nat.c: Update.
3751         * ppc-obsd-nat.c: Update.
3752         * proc-service.c: Update.
3753         * procfs.c: Update.
3754         * python/py-inferior.c: Update.
3755         * python/py-infthread.c: Update.
3756         * ravenscar-thread.c: Update.
3757         * record.c: Update.
3758         * remote-sim.c: Update.
3759         * remote.c: Update.
3760         * rs6000-nat.c: Update.
3761         * s390-linux-nat.c: Update.
3762         * sh-nbsd-nat.c: Update.
3763         * sol-thread.c: Update.
3764         * sparc-nat.c: Update.
3765         * sparc64-tdep.c: Update.
3766         * spu-linux-nat.c: Update.
3767         * spu-tdep.c: Update.
3768         * target-debug.h: Update.
3769         * target.c: Update.
3770         * thread.c: Update.
3771         * tid-parse.c: Update.
3772         * tracefile-tfile.c: Update.
3773         * vax-bsd-nat.c: Update.
3774         * windows-nat.c: Update.
3775         * x86-linux-nat.c: Update.
3776         * x86-nat.c: Update.
3777
3778 2018-07-03  Tom Tromey  <tom@tromey.com>
3779
3780         * common/ptid.c (pid_to_ptid): Remove.
3781         * common/ptid.h (pid_to_ptid): Don't declare.
3782         * aix-thread.c: Update.
3783         * arm-linux-nat.c: Update.
3784         * common/ptid.c: Update.
3785         * common/ptid.h: Update.
3786         * corelow.c: Update.
3787         * ctf.c: Update.
3788         * darwin-nat.c: Update.
3789         * fbsd-nat.c: Update.
3790         * fork-child.c: Update.
3791         * gnu-nat.c: Update.
3792         * go32-nat.c: Update.
3793         * inf-ptrace.c: Update.
3794         * infcmd.c: Update.
3795         * inferior.c: Update.
3796         * infrun.c: Update.
3797         * linux-fork.c: Update.
3798         * linux-nat.c: Update.
3799         * nat/aarch64-linux-hw-point.c: Update.
3800         * nat/fork-inferior.c: Update.
3801         * nat/x86-linux-dregs.c: Update.
3802         * nto-procfs.c: Update.
3803         * obsd-nat.c: Update.
3804         * procfs.c: Update.
3805         * progspace.c: Update.
3806         * remote.c: Update.
3807         * rs6000-nat.c: Update.
3808         * s390-linux-nat.c: Update.
3809         * sol-thread.c: Update.
3810         * spu-linux-nat.c: Update.
3811         * target.c: Update.
3812         * top.c: Update.
3813         * tracefile-tfile.c: Update.
3814         * windows-nat.c: Update.
3815
3816 2018-07-03  Tom Tromey  <tom@tromey.com>
3817
3818         * common/ptid.h (ptid_build): Don't declare.
3819         * common/ptid.c (ptid_build): Remove.
3820         * aix-thread.c: Update.
3821         * bsd-kvm.c: Update.
3822         * bsd-uthread.c: Update.
3823         * common/agent.c: Update.
3824         * common/ptid.c: Update.
3825         * common/ptid.h: Update.
3826         * corelow.c: Update.
3827         * darwin-nat.c: Update.
3828         * fbsd-nat.c: Update.
3829         * gnu-nat.c: Update.
3830         * linux-fork.c: Update.
3831         * linux-nat.c: Update.
3832         * linux-thread-db.c: Update.
3833         * nat/linux-osdata.c: Update.
3834         * nat/linux-procfs.c: Update.
3835         * nto-procfs.c: Update.
3836         * obsd-nat.c: Update.
3837         * proc-service.c: Update.
3838         * procfs.c: Update.
3839         * ravenscar-thread.c: Update.
3840         * remote-sim.c: Update.
3841         * remote.c: Update.
3842         * sol-thread.c: Update.
3843         * target.c: Update.
3844         * windows-nat.c: Update.
3845
3846 2018-07-03  Tom Tromey  <tom@tromey.com>
3847
3848         * infrun.c (follow_exec): Use exit_inferior_silent.
3849         * inferior.c (exit_inferior_num_silent): Remove.
3850         * inferior.h (exit_inferior_num_silent): Don't declare.
3851
3852 2018-07-03  Tom Tromey  <tom@tromey.com>
3853
3854         PR cli/23340:
3855         * darwin-nat.c (darwin_attach_pid): Reset inferior and
3856         inferior_ptid on error.
3857
3858 2018-07-02  Maciej W. Rozycki  <macro@mips.com>
3859             Simon Marchi  <simon.marchi@polymtl.ca>
3860
3861         PR tdep/8282
3862         * disasm.h (gdb_disassembler): Add
3863         `m_disassembler_options_holder'. member
3864         * disasm.c (get_all_disassembler_options): New function.
3865         (gdb_disassembler::gdb_disassembler): Use it.
3866         (gdb_buffered_insn_length_init_dis): Likewise.
3867         (gdb_buffered_insn_length): Adjust accordingly.
3868         (set_disassembler_options): Handle options with arguments.
3869         (show_disassembler_options_sfunc): Likewise.  Add a leading new
3870         line if showing options with descriptions.
3871         (disassembler_options_completer): Adapt to using the
3872         `disasm_options_and_args_t' structure.
3873         * mips-tdep.c (mips_disassembler_options): New variable.
3874         (mips_disassembler_options_o32): Likewise.
3875         (mips_disassembler_options_n32): Likewise.
3876         (mips_disassembler_options_n64): Likewise.
3877         (gdb_print_insn_mips): Don't set `disassembler_options'.
3878         (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3879         functions.
3880         (mips_gdbarch_init): Always set `gdbarch_print_insn' to
3881         `gdb_print_insn_mips'.  Set `gdbarch_disassembler_options',
3882         `gdbarch_disassembler_options_implicit' and
3883         `gdbarch_valid_disassembler_options'.
3884         * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
3885         `disasm_options_and_args_t' structure.
3886         * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
3887         method.
3888         (valid_disassembler_options): Switch from `disasm_options_t' to
3889         the `disasm_options_and_args_t' structure.
3890         * NEWS: Document `set disassembler-options' support for the MIPS
3891         target.
3892         * gdbarch.h: Regenerate.
3893         * gdbarch.c: Regenerate.
3894
3895 2018-07-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3896
3897         * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
3898
3899 2018-06-29  Joel Brobecker  <brobecker@adacore.com>
3900
3901         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
3902         parameter in call to amd64_target_description.
3903         * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3904         * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
3905         (amd64fbsd_init_abi): Likewise.
3906         * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3907         * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3908         * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3909         * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
3910
3911 2018-06-29  Pedro Alves  <palves@redhat.com>
3912
3913         * gdb/amd64-tdep.h (amd64_create_target_description): Add
3914         "segments" parameter.
3915         * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
3916         (_initialize_amd64_tdep): Update call to
3917         amd64_create_target_description.
3918         (amd64_target_description): Add "segments" parameter.  Adjust
3919         the implementation to use it.
3920         * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
3921         call to amd64_create_target_description.
3922         * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
3923         * gdb/arch/amd64.h (amd64_create_target_description): Add
3924         "segments" register.
3925         * gdb/arch/amd64.c (amd64_create_target_description): Add
3926         "segments" parameter.  Call create_feature_i386_64bit_segments
3927         only if SEGMENTS is true.
3928         * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
3929         call to amd64_create_target_description.
3930
3931 2018-06-29  Pedro Alves  <palves@redhat.com>
3932
3933         * thread.c (thread_target_id_str): New, factored out from ...
3934         (print_thread_info_1): ... here.  Use it to compute the max
3935         "Target Id" column width.
3936
3937 2018-06-29  Pedro Alves  <palves@redhat.com>
3938
3939         * remote.c (remote_target::extra_thread_info): Delete
3940         'display_buf' and 'n' locals.  from the cache, regardless of
3941         packet mechanims is in use.  Use cache for qThreadExtra and qP
3942         methods too.
3943
3944 2018-06-29  Pedro Alves  <palves@redhat.com>
3945
3946         * blockframe.c (find_pc_sect_containing_function): New function.
3947         * breakpoint.c (print_breakpoint_location): Don't call
3948         find_pc_sect_function.
3949         * linespec.c (create_sals_line_offset): Record the location's
3950         symbol in the sal.
3951         * linespec.c (convert_address_location_to_sals): Fill in sal's
3952         symbol with find_pc_sect_containing_function.
3953         * symtab.c (find_function_start_sal): Rename to ...
3954         (find_function_start_sal_1): ... this.
3955         (find_function_start_sal): Reimplement as wrapper around
3956         find_function_start_sal_1, and use
3957         find_pc_sect_containing_function to fill in the sal's symbol.
3958         (find_function_start_sal(symbol*, bool)): Adjust.
3959         * symtab.h (find_pc_function, find_pc_sect_function): Adjust
3960         comments.
3961         (find_pc_sect_containing_function): Declare.
3962
3963 2018-06-29  Pedro Alves  <palves@redhat.com>
3964
3965         * inline-frame.c (stopped_by_user_bp_inline_frame): Return
3966         true if the the location has no symbol.
3967
3968 2018-06-28  Tom Tromey  <tom@tromey.com>
3969
3970         * NEWS: Mention --enable-codesign.
3971         * silent-rules.mk (ECHO_SIGN): New variable.
3972         * configure.ac: Add --enable-codesign.
3973         * configure: Rebuild.
3974         * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
3975         (gdb$(EXEEXT)): Optionally invoke codesign.
3976
3977 2018-06-28  Pedro Alves  <palves@redhat.com>
3978
3979         * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
3980         comments.
3981         (switch_to_thread_no_regs): Adjust comment.
3982         * infcmd.c (stop_pc): Delete.
3983         (post_create_inferior, info_program_command): Replace references
3984         to stop_pc with references to thread_info->suspend.stop_pc.
3985         * inferior.h (stop_pc): Delete declaration.
3986         * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
3987         (handle_inferior_event_1, handle_signal_stop)
3988         (process_event_stop_test, keep_going_stepped_thread)
3989         (handle_step_into_function, handle_step_into_function_backward)
3990         (print_stop_location): Replace references to stop_pc with
3991         references to thread_info->suspend.stop_pc.
3992         (struct infcall_suspend_state) <stop_pc>: Delete field.
3993         (save_infcall_suspend_state, restore_infcall_suspend_state):
3994         Remove references to inf_stat->stop_pc.
3995         * linux-fork.c (fork_load_infrun_state): Likewise.
3996         * record-btrace.c (record_btrace_set_replay): Likewise.
3997         * record-full.c (record_full_goto_entry): Likewise.
3998         * remote.c (print_one_stopped_thread): Likewise.
3999         * target.c (target_resume): Extend comment.
4000         * thread.c (set_executing_thread): New.
4001         (set_executing): Use it.
4002         (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4003         Remove references to stop_pc.
4004
4005 2018-06-28  Pedro Alves  <palves@redhat.com>
4006
4007         * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4008         Moving fetching stop_pc until after ecs->event_thread is refreshed.
4009
4010 2018-06-28  Tom Tromey  <tom@tromey.com>
4011
4012         * coffread.c (coff_symfile_finish): Update.
4013         * xcoffread.c (xcoff_symfile_finish): Update.
4014         * elfread.c (elf_symfile_finish): Update.
4015         * symfile.h (dwarf2_free_objfile): Don't declare.
4016         * dwarf2read.c (_initialize_dwarf2_read): Use
4017         register_objfile_data_with_cleanup.
4018         (dwarf2_free_objfile): Now static.  Change signature.
4019
4020 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
4021
4022         * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4023         option "-o" to add-symbol-file-load to add an offset to each
4024         section's load address.
4025         * symfile.c (set_objfile_default_section_offset): New function.
4026
4027 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
4028
4029         * symfile.c (add_symbol_file_command): Make sure that sections
4030         with the same name are sorted in the same order.
4031
4032 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
4033
4034         * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4035         require the second argument.  If omitted, load sections at the
4036         addresses specified in the file.
4037
4038 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
4039
4040         * symfile.c (symbol_file_command, symbol_file_add_main_1)
4041         (_initialize_symfile): Add option "-o" to symbol-file to add an
4042         offset to each section of the symbol file.
4043
4044 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
4045
4046         * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4047
4048 2018-06-27  Tom Tromey  <tom@tromey.com>
4049
4050         * stack.c (_initialize_stack): Update "func" help text.
4051
4052 2018-06-27  Tom Tromey  <tom@tromey.com>
4053
4054         * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4055         std::vector.
4056         (unwind_infopy_str, pyuw_create_unwind_info)
4057         (unwind_infopy_add_saved_register, pyuw_sniffer)
4058         (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4059         Update.
4060         (struct saved_reg): Add constructor.
4061         <value>: Now a gdbpy_ref<>.
4062
4063 2018-06-27  Tom Tromey  <tom@tromey.com>
4064
4065         * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4066
4067 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
4068
4069         * gdb-gdb.py.in: Format using autopep8.
4070
4071 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
4072
4073         * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4074         (type_lookup_function): Recognize CORE_ADDR values.
4075
4076 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
4077
4078         * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4079         print tag_name.
4080
4081 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
4082
4083         * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4084         <__lt__>: Add.
4085
4086 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
4087
4088         * gdb-gdb.py: Move to...
4089         * gdb-gdb.py.in: ... here.
4090         * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4091         * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4092         dependencies.
4093         (distclean): Remove gdb-gdb.py when cleaning.
4094         (gdb-gdb.py, gdb-gdb.gdb): New rules.
4095         * configure: Re-generate.
4096
4097 2018-06-27  Pedro Alves  <palves@redhat.com>
4098
4099         * proc-service.c (get_ps_regcache): New.
4100         (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4101         (ps_lsetfpregs): Use it.
4102
4103 2018-06-27  Omair Javaid  <omair.javaid@linaro.org>
4104
4105         PR gdb/21695
4106         * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4107         (dwarf_decode_lines_1): Adjust.
4108
4109 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
4110
4111         * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4112         override.
4113         <info_proc>: Likewise.
4114
4115 2018-06-26  Joel Brobecker  <brobecker@adacore.com>
4116
4117         * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4118         to windows_fetch_one_register, and only handle the case of
4119         fetching one register.  Move the code that reloads the context
4120         and iterates over all registers if R is negative to...
4121         (windows_nat_target::fetch_registers): ... here.
4122         (do_windows_store_inferior_registers): Rename to
4123         windows_store_one_register, and only handle the case of storing
4124         one register.  Move the code that handles the case where r is
4125         negative to...
4126         (windows_nat_target::store_registers) ... here.
4127
4128 2018-06-26  Tom Tromey  <tom@tromey.com>
4129
4130         PR rust/22574:
4131         * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4132         * rust-lang.c (rust_print_struct_def): Add podata parameter.
4133         Update.
4134         (rust_internal_print_type): Add podata parameter.
4135         (rust_print_type): Update.
4136
4137 2018-06-26  Tom Tromey  <tom@tromey.com>
4138
4139         * typeprint.h (struct print_offset_data) <update, finish,
4140         maybe_print_hole>: New methods.
4141         <indentation>: New constant.
4142         * typeprint.c (print_offset_data::indentation): Define.
4143         (print_offset_data::maybe_print_hole, print_offset_data::update)
4144         (print_offset_data::finish): Move from c-typeprint.c and rename.
4145         * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4146         (print_spaces_filtered_with_print_options): Update.
4147         (c_print_type_union_field_offset, maybe_print_hole)
4148         (c_print_type_struct_field_offset): Move to typeprint.c and
4149         rename.
4150         (c_type_print_base_struct_union): Update.
4151
4152 2018-06-25  Pedro Alves  <palves@redhat.com>
4153
4154         * gdbthread.h (thread_info_ref, delete_thread)
4155         (delete_thread_silent, first_thread_of_inferior)
4156         (any_thread_of_inferior, switch_to_thread)
4157         (enable_thread_stack_temporaries)
4158         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4159         (get_last_thread_stack_temporary)
4160         (value_in_thread_stack_temporaries, can_access_registers_thread):
4161         Spell out "struct thread_info" instead of just "thread_info".
4162         * inferior.h (notice_new_inferior): Likewise.
4163
4164 2018-06-25  Pedro Alves  <palves@redhat.com>
4165
4166         * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4167         pass thread_info pointer to delete_thread.
4168         (windows_nat_target::detach): Pass inferior pointer to
4169         detach_inferior.
4170         * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4171         delete_thread.
4172         * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4173         * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4174         and pass a thread_info pointer to delete_thread.
4175         * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4176         pass thread_info pointer to delete_thread.
4177         * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4178         delete_thread_silent call.
4179         * procfs.c (procfs_target::detach): Pass inferior pointer to
4180         detach_inferior.
4181         (procfs_target::wait): Pass thread_info pointer to delete_thread.
4182         * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4183         delete_thread_silent call.
4184         * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4185         pass thread_info pointer to delete_thread.
4186         (windows_nat_target::detach): Pass inferior pointer to
4187         delete_inferior.
4188
4189 2018-06-22  Alan Hayward  <alan.hayward@arm.com>
4190
4191         * regcache.c (readable_regcache::read_part): Fix asserts.
4192         (reg_buffer::raw_collect_part): New function.
4193         (regcache::write_part): Fix asserts.
4194         (reg_buffer::raw_supply_part): New function.
4195         (regcache::transfer_regset_register): New helper function.
4196         (regcache::transfer_regset): Call new functions.
4197         (regcache_supply_regset): Use gdb_byte*.
4198         (regcache::supply_regset): Likewise.
4199         (regcache_collect_regset): Likewise.
4200         (regcache::collect_regset): Likewise.
4201         * regcache.h (reg_buffer::raw_collect_part): New declaration.
4202         (reg_buffer::raw_supply_part): Likewise.
4203         (regcache::transfer_regset_register): Likewise.
4204         (regcache::transfer_regset): Use gdb_byte*.
4205
4206 2018-06-22  Alan Hayward  <alan.hayward@arm.com>
4207
4208         * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4209
4210 2018-06-21  Pedro Alves  <palves@redhat.com>
4211
4212         * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4213         instead of a ptid_t.  All callers adjusted.
4214         * ada-tasks.c (ada_get_task_number): Likewise.  All callers
4215         adjusted.
4216         (print_ada_task_info, display_current_task_id, task_command_1):
4217         Adjust.
4218         * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4219         inferior_thread.
4220         (breakpoint_kind): Adjust.
4221         (remove_breakpoints_pid): Rename to ...
4222         (remove_breakpoints_inf): ... this.  Adjust to take an inferior
4223         pointer.  All callers adjusted.
4224         (bpstat_clear_actions): Use inferior_thread.
4225         (get_bpstat_thread): New.
4226         (bpstat_do_actions): Use it.
4227         (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4228         to take a thread_info pointer.  All callers adjusted.
4229         (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4230         (breakpoint_re_set_thread): Use inferior_thread.
4231         * breakpoint.h (struct inferior): Forward declare.
4232         (bpstat_stop_status): Update.
4233         (remove_breakpoints_pid): Delete.
4234         (remove_breakpoints_inf): New.
4235         * bsd-uthread.c (bsd_uthread_target::wait)
4236         (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4237         * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4238         (maint_btrace_packet_history_cmd)
4239         (maint_btrace_clear_packet_history_cmd): Adjust.
4240         (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4241         inferior_thread.
4242         * cli/cli-interp.c: Include "inferior.h".
4243         * common/refcounted-object.h (struct
4244         refcounted_object_ref_policy): New.
4245         * compile/compile-object-load.c: Include gdbthread.h.
4246         (store_regs): Use inferior_thread.
4247         * corelow.c (core_target::close): Use current_inferior.
4248         (core_target_open): Adjust to use first_thread_of_inferior and use
4249         the current inferior.
4250         * ctf.c (ctf_target::close): Adjust to use current_inferior.
4251         * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4252         <thread>: ... this new field.  All references adjusted.
4253         (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4254         Take a thread_info pointer instead of a ptid_t.
4255         * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4256         (dummy_frame_discard, register_dummy_frame_dtor): Take a
4257         thread_info pointer instead of a ptid_t.
4258         * elfread.c: Include "inferior.h".
4259         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4260         Use inferior_thread.
4261         * eval.c (evaluate_subexp): Likewise.
4262         * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4263         inferior_thread.
4264         * gdb_proc_service.h (struct thread_info): Forward declare.
4265         (struct ps_prochandle) <ptid>: Delete, replaced by ...
4266         <thread>: ... this new field.  All references adjusted.
4267         * gdbarch.h, gdbarch.c: Regenerate.
4268         * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4269         'thread' parameter.  All implementations and callers adjusted.
4270         * gdbthread.h (thread_info) <set_running>: New method.
4271         (delete_thread, delete_thread_silent): Take a thread_info pointer
4272         instead of a ptid.
4273         (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4274         (first_thread_of_process): Delete, replaced by ...
4275         (first_thread_of_inferior): ... this new function.  All callers
4276         adjusted.
4277         (any_live_thread_of_process): Delete, replaced by ...
4278         (any_live_thread_of_inferior): ... this new function.  All callers
4279         adjusted.
4280         (switch_to_thread, switch_to_no_thread): Declare.
4281         (is_executing): Delete.
4282         (enable_thread_stack_temporaries): Update comment.
4283         <enable_thread_stack_temporaries>: Take a thread_info pointer
4284         instead of a ptid_t.  Incref the thread.
4285         <~enable_thread_stack_temporaries>: Decref the thread.
4286         <m_ptid>: Delete
4287         <m_thr>: New.
4288         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4289         (get_last_thread_stack_temporary)
4290         (value_in_thread_stack_temporaries, can_access_registers_thread):
4291         Take a thread_info pointer instead of a ptid_t.  All callers
4292         adjusted.
4293         * infcall.c (get_call_return_value): Use inferior_thread.
4294         (run_inferior_call): Work with thread pointers instead of ptid_t.
4295         (call_function_by_hand_dummy): Work with thread pointers instead
4296         of ptid_t.  Use thread_info_ref.
4297         * infcmd.c (proceed_thread_callback): Access thread's state
4298         directly.
4299         (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4300         access thread's state directly.
4301         (continue_command): Use inferior_thread.
4302         (info_program_command): Use find_thread_ptid and access thread
4303         state directly.
4304         (proceed_after_attach_callback): Use thread state directly.
4305         (notice_new_inferior): Take a thread_info pointer instead of a
4306         ptid_t.  All callers adjusted.
4307         (exit_inferior): Take an inferior pointer instead of a pid.  All
4308         callers adjusted.
4309         (exit_inferior_silent): New.
4310         (detach_inferior): Delete.
4311         (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4312         (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4313         (detach_inferior_command, kill_inferior_command): Use
4314         find_inferior_id instead of valid_gdb_inferior_id and
4315         gdb_inferior_id_to_pid.
4316         (inferior_command): Use inferior and thread pointers.
4317         * inferior.h (struct thread_info): Forward declare.
4318         (notice_new_inferior): Take a thread_info pointer instead of a
4319         ptid_t.  All callers adjusted.
4320         (detach_inferior): Delete declaration.
4321         (exit_inferior, exit_inferior_silent): Take an inferior pointer
4322         instead of a pid.  All callers adjusted.
4323         (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4324         (valid_gdb_inferior_id): Delete.
4325         * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4326         (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4327         (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4328         ...
4329         <inf>: ... this new field.
4330         <step_ptid>: Delete, replaced by ...
4331         <step_thread>: ... this new field.
4332         (get_displaced_stepping_state): Take an inferior pointer instead
4333         of a pid.  All callers adjusted.
4334         (displaced_step_in_progress_any_inferior): Adjust.
4335         (displaced_step_in_progress_thread): Take a thread pointer instead
4336         of a ptid_t.  All callers adjusted.
4337         (displaced_step_in_progress, add_displaced_stepping_state): Take
4338         an inferior pointer instead of a pid.  All callers adjusted.
4339         (get_displaced_step_closure_by_addr): Adjust.
4340         (remove_displaced_stepping_state): Take an inferior pointer
4341         instead of a pid.  All callers adjusted.
4342         (displaced_step_prepare_throw, displaced_step_prepare)
4343         (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4344         All callers adjusted.
4345         (start_step_over): Adjust.
4346         (infrun_thread_ptid_changed): Remove bit updating ptids in the
4347         displaced step queue.
4348         (do_target_resume): Adjust.
4349         (fetch_inferior_event): Use inferior_thread.
4350         (context_switch, get_inferior_stop_soon): Take an
4351         execution_control_state pointer instead of a ptid_t.  All callers
4352         adjusted.
4353         (switch_to_thread_cleanup): Delete.
4354         (stop_all_threads): Use scoped_restore_current_thread.
4355         * inline-frame.c: Include "gdbthread.h".
4356         (inline_state) <inline_state>: Take a thread pointer instead of a
4357         ptid_t.  All callers adjusted.
4358         <ptid>: Delete, replaced by ...
4359         <thread>: ... this new field.
4360         (find_inline_frame_state): Take a thread pointer instead of a
4361         ptid_t.  All callers adjusted.
4362         (skip_inline_frames, step_into_inline_frame)
4363         (inline_skipped_frames, inline_skipped_symbol): Take a thread
4364         pointer instead of a ptid_t.  All callers adjusted.
4365         * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4366         (inline_skipped_frames, inline_skipped_symbol): Likewise.
4367         * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4368         pointers directly.
4369         * linux-nat.c (get_detach_signal): Likewise.
4370         * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4371         (thread_db_notice_clone): Adjust.
4372         (thread_db_find_new_threads_silently)
4373         (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4374         a thread pointer instead of a ptid_t.  All callers adjusted.
4375         * mi/mi-cmd-var.c: Include "inferior.h".
4376         (mi_cmd_var_update_iter): Update to use thread pointers.
4377         * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4378         inferior directly.
4379         (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4380         out to ...
4381         (mi_output_running): ... this new function.
4382         (mi_on_resume_1): Adjust to use it.
4383         (mi_user_selected_context_changed): Adjust to use inferior_thread.
4384         * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4385         directly.
4386         (interrupt_thread_callback): : Adjust to use thread and inferior
4387         pointers.
4388         * proc-service.c: Include "gdbthread.h".
4389         (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4390         * progspace-and-thread.c: Include "inferior.h".
4391         * progspace.c: Include "inferior.h".
4392         * python/py-exitedevent.c (create_exited_event_object): Adjust to
4393         hold a reference to an inferior_object.
4394         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4395         inferior_thread.
4396         * python/py-inferior.c (struct inferior_object): Give the type a
4397         tag name instead of a typedef.
4398         (python_on_normal_stop): No need to check if the current thread is
4399         listed.
4400         (inferior_to_inferior_object): Change return type to
4401         inferior_object.  All callers adjusted.
4402         (find_thread_object): Delete, bits factored out to ...
4403         (thread_to_thread_object): ... this new function.
4404         * python/py-infthread.c (create_thread_object): Use
4405         inferior_to_inferior_object.
4406         (thpy_is_stopped): Use thread pointer directly.
4407         (gdbpy_selected_thread): Use inferior_thread.
4408         * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4409         field, replaced with ...
4410         <thread>: ... this new field.  All users adjusted.
4411         (btpy_insn_or_gap_new): Drop const.
4412         (btpy_list_new): Take a thread pointer instead of a ptid_t.  All
4413         callers adjusted.
4414         * python/py-record.c: Include "gdbthread.h".
4415         (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4416         a ptid_t.  All callers adjusted.
4417         (gdbpy_current_recording): Use inferior_thread.
4418         * python/py-record.h (recpy_record_object) <ptid>: Delete
4419         field, replaced with ...
4420         <thread>: ... this new field.  All users adjusted.
4421         (recpy_element_object) <ptid>: Delete
4422         field, replaced with ...
4423         <thread>: ... this new field.  All users adjusted.
4424         (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4425         a ptid_t.  All callers adjusted.
4426         * python/py-threadevent.c: Include "gdbthread.h".
4427         (get_event_thread): Use thread_to_thread_object.
4428         * python/python-internal.h (struct inferior_object): Forward
4429         declare.
4430         (find_thread_object, find_inferior_object): Delete declarations.
4431         (thread_to_thread_object, inferior_to_inferior_object): New
4432         declarations.
4433         * record-btrace.c: Include "inferior.h".
4434         (require_btrace_thread): Use inferior_thread.
4435         (record_btrace_frame_sniffer)
4436         (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4437         (get_thread_current_frame): Use scoped_restore_current_thread and
4438         switch_to_thread.
4439         (get_thread_current_frame): Use thread pointer directly.
4440         (record_btrace_replay_at_breakpoint): Use thread's inferior
4441         pointer directly.
4442         * record-full.c: Include "inferior.h".
4443         * regcache.c: Include "gdbthread.h".
4444         (get_thread_arch_regcache): Use the inferior's address space
4445         directly.
4446         (get_thread_regcache, registers_changed_thread): New.
4447         * regcache.h (get_thread_regcache(thread_info *thread)): New
4448         overload.
4449         (registers_changed_thread): New.
4450         (remote_target) <remote_detach_1>: Swap order of parameters.
4451         (remote_add_thread): <remote_add_thread>: Return the new thread.
4452         (get_remote_thread_info(ptid_t)): New overload.
4453         (remote_target::remote_notice_new_inferior): Use thread pointers
4454         directly.
4455         (remote_target::process_initial_stop_replies): Use
4456         thread_info::set_running.
4457         (remote_target::remote_detach_1, remote_target::detach)
4458         (extended_remote_target::detach): Adjust.
4459         * stack.c (frame_show_address): Use inferior_thread.
4460         * target-debug.h (target_debug_print_thread_info_pp): New.
4461         * target-delegates.c: Regenerate.
4462         * target.c (default_thread_address_space): Delete.
4463         (memory_xfer_partial_1): Use current_inferior.
4464         (target_detach): Use current_inferior.
4465         (target_thread_address_space): Delete.
4466         (generic_mourn_inferior): Use current_inferior.
4467         * target.h (struct target_ops) <thread_address_space>: Delete.
4468         (target_thread_address_space): Delete.
4469         * thread.c (init_thread_list): Use ALL_THREADS_SAFE.  Use thread
4470         pointers directly.
4471         (delete_thread_1, delete_thread, delete_thread_silent): Take a
4472         thread pointer instead of a ptid_t.  Adjust all callers.
4473         (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4474         (first_thread_of_process): Delete, replaced by ...
4475         (first_thread_of_inferior): ... this new function.  All callers
4476         adjusted.
4477         (any_thread_of_process): Rename to ...
4478         (any_thread_of_inferior): ... this, and take an inferior pointer.
4479         (any_live_thread_of_process): Rename to ...
4480         (any_live_thread_of_inferior): ... this, and take an inferior
4481         pointer.
4482         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4483         (value_in_thread_stack_temporaries)
4484         (get_last_thread_stack_temporary): Take a thread pointer instead
4485         of a ptid_t.  Adjust all callers.
4486         (thread_info::set_running): New.
4487         (validate_registers_access): Use inferior_thread.
4488         (can_access_registers_ptid): Rename to ...
4489         (can_access_registers_thread): ... this, and take a thread
4490         pointer.
4491         (print_thread_info_1): Adjust to compare thread pointers instead
4492         of ptids.
4493         (switch_to_no_thread, switch_to_thread): Make extern.
4494         (scoped_restore_current_thread::~scoped_restore_current_thread):
4495         Use m_thread pointer directly.
4496         (scoped_restore_current_thread::scoped_restore_current_thread):
4497         Use inferior_thread.
4498         (thread_command): Use thread pointer directly.
4499         (thread_num_make_value_helper): Use inferior_thread.
4500         * top.c (execute_command): Use inferior_thread.
4501         * tui/tui-interp.c: Include "inferior.h".
4502         * varobj.c (varobj_create): Use inferior_thread.
4503         (value_of_root_1): Use find_thread_global_id instead of
4504         global_thread_id_to_ptid.
4505
4506 2018-06-21  Alan Hayward  <alan.hayward@arm.com>
4507
4508         * regcache.c (readable_regcache::read_part): Avoid memcpy when
4509         possible.
4510         (regcache::write_part): Likewise.
4511         (readable_regcache::cooked_read_part): Update comment.
4512         (readable_regcache::cooked_write_part): Likewise.
4513         * regcache.h: (readable_regcache::read_part): Likewise.
4514         (regcache::write_part): Likewise.
4515
4516 2018-06-21  Richard Bunt  <richard.bunt@arm.com>
4517             Dirk Schubert  <dirk.schubert@arm.com>
4518
4519         * aarch64-linux-nat.c (post_attach): New.
4520         (aarch64_linux_nat_target::post_attach): Override post_attach to
4521         record the number of hardware debug registers.
4522
4523 2018-06-20  Tom Tromey  <tom@tromey.com>
4524
4525         * python/py-param.c (add_setshow_generic): Make parameters const.
4526         (parmpy_init): Update.
4527
4528 2018-06-20  Simon Marchi  <simon.marchi@polymtl.ca>
4529
4530         * regcache.h (regcache_cooked_read_ftype): Rename to...
4531         (register_read_ftype): ...this, change type to function_view.
4532         (class reg_buffer) <save>: Remove src parameter.
4533         (readonly_detached_regcache) <readonly_detached_regcache>: Make
4534         parameter non-const in first overload.  Remove src parameter in
4535         second overload.
4536         * regcache.c (do_cooked_read): Remove.
4537         (readonly_detached_regcache::readonly_detached_regcache): Make
4538         parameter non-const, adjust call to other constructor.
4539         (reg_buffer::save): Remove src parameter.
4540         * frame.c (do_frame_register_read): Remove.
4541         (frame_save_as_regcache): Use lambda function.
4542         * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4543         parameter to ppu2spu_data *.
4544         (ppu2spu_sniffer): Use lambda function.
4545
4546 2018-06-20  Simon Marchi  <simon.marchi@polymtl.ca>
4547
4548         * record-full.c (record_full_target::insert_breakpoint): Remove
4549         "struct" keyword, add const.
4550
4551 2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
4552
4553         * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4554         PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4555         * configure.ac: Remove AC_PREREQ, add missing quoting.
4556         * gnulib/configure.ac: Modernize usage of
4557         AC_INIT/AM_INIT_AUTOMAKE.  Remove AC_PREREQ.
4558         * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4559         (AUTOMAKE_VERSION): Bump to 1.15.1.
4560         * configure: Re-generate.
4561         * config.in: Re-generate.
4562         * aclocal.m4: Re-generate.
4563         * gnulib/aclocal.m4: Re-generate.
4564         * gnulib/config.in: Re-generate.
4565         * gnulib/configure: Re-generate.
4566         * gnulib/import/Makefile.in: Re-generate.
4567
4568 2018-06-19  Pedro Alves  <palves@redhat.com>
4569
4570         * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4571         (lookup_minimal_symbol_by_pc_section): ... here with
4572         gdb_assert_not_reached added.
4573
4574 2018-06-19  Pedro Alves  <palves@redhat.com>
4575
4576         * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4577         parameter with a block parameter.  Compare location's block symbol
4578         with the frame's block instead of addresses.
4579         (skip_inline_frames): Pass the current block instead of the
4580         frame's address.  Break out as soon as we determine the frame
4581         should not be skipped.
4582
4583 2018-06-18  Tom Tromey  <tom@tromey.com>
4584
4585         * solib-aix.c (solib_aix_get_section_offsets): Return
4586         unique_xmalloc_ptr.
4587         (solib_aix_solib_create_inferior_hook): Update.
4588
4589 2018-06-18  Tom Tromey  <tom@tromey.com>
4590
4591         * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4592
4593 2018-06-18  Tom Tromey  <tom@tromey.com>
4594
4595         * solib-frv.c (frv_relocate_main_executable): Use
4596         unique_xmalloc_ptr.
4597         * solib-dsbt.c (dsbt_relocate_main_executable): Use
4598         unique_xmalloc_ptr.
4599
4600 2018-06-18  Tom Tromey  <tom@tromey.com>
4601
4602         * objfiles.h (inhibit_section_map_updates): Update.
4603         (resume_section_map_updates, resume_section_map_updates_cleanup):
4604         Remove.
4605         * solib-svr4.c (svr4_handle_solib_event): Update.
4606         * objfiles.c (inhibit_section_map_updates): Return
4607         scoped_restore_tmpl<int>.
4608         (resume_section_map_updates, resume_section_map_updates_cleanup):
4609         Remove.
4610
4611 2018-06-18  Tom Tromey  <tom@tromey.com>
4612
4613         * valprint.h (read_string): Update.
4614         * valprint.c (read_string): Change type of "buffer".
4615         (val_print_string): Update.
4616         * python/py-value.c (valpy_string): Update.
4617         * language.h (struct language_defn) <la_get_string>: Change
4618         type of "buffer".
4619         (default_get_string, c_get_string): Update.
4620         * language.c (default_get_string): Change type of "buffer".
4621         * guile/scm-value.c (gdbscm_value_to_string): Update.
4622         * c-lang.c (c_get_string): Change type of "buffer".
4623
4624 2018-06-18  Tom Tromey  <tom@tromey.com>
4625
4626         * ser-mingw.c (struct pipe_state_destroyer): New.
4627         (pipe_state_up): New typedef.
4628         (cleanup_pipe_state): Remove.
4629         (pipe_windows_open): Use pipe_state_up.  Don't release argv.
4630
4631 2018-06-18  Tom Tromey  <tom@tromey.com>
4632
4633         * rust-lang.h (rust_yyerror): Don't declare.
4634         * rust-lang.c (rust_language_defn): Update.
4635         * rust-exp.y (yyerror): Now static.
4636         * parse.c (parse_exp_in_context_1): Update.
4637         * p-lang.h (p_yyerror): Don't declare.
4638         * p-lang.c (p_language_defn): Update.
4639         * p-exp.y (yyerror): Now static.
4640         * opencl-lang.c (opencl_language_defn): Update.
4641         * objc-lang.c (objc_language_defn): Update.
4642         * m2-lang.h (m2_yyerror): Don't declare.
4643         * m2-lang.c (m2_language_defn): Update.
4644         * m2-exp.y (yyerror): Now static.
4645         * language.h (struct language_defn) <la_error>: Remove.
4646         * language.c (unk_lang_error): Remove.
4647         (unknown_language_defn, auto_language_defn): Remove.
4648         * go-lang.h (go_yyerror): Don't declare.
4649         * go-lang.c (go_language_defn): Update.
4650         * go-exp.y (yyerror): Now static.
4651         * f-lang.h (f_yyerror): Don't declare.
4652         * f-lang.c (f_language_defn): Update.
4653         * f-exp.y (yyerror): Now static.
4654         * d-lang.h (d_yyerror): Don't declare.
4655         * d-lang.c (d_language_defn): Update.
4656         * d-exp.y (yyerror): Now static.
4657         * c-lang.h (c_yyerror): Don't declare.
4658         * c-lang.c (c_language_defn, cplus_language_defn)
4659         (asm_language_defn, minimal_language_defn): Update.
4660         * c-exp.y (yyerror): Now static.
4661         * ada-lang.h (ada_yyerror): Don't declare.
4662         * ada-lang.c (ada_language_defn): Update.
4663         * ada-exp.y (yyerror): Now static.
4664
4665 2018-06-18  Alan Hayward  <alan.hayward@arm.com>
4666
4667         * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4668         (store_sveregs_to_thread): Likewise.
4669         (aarch64_linux_fetch_inferior_registers): Check for SVE.
4670         (aarch64_linux_store_inferior_registers): Likewise.
4671         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4672         function.
4673         (aarch64_sve_regs_copy_to_regcache): Likewise.
4674         (aarch64_sve_regs_copy_from_regcache): Likewise.
4675         * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4676         declaration.
4677         (aarch64_sve_regs_copy_to_regcache): Likewise.
4678         (aarch64_sve_regs_copy_from_regcache): Likewise.
4679         (sve_context): Structure from Linux headers.
4680         (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4681         (SVE_SIG_ZREG_SIZE): Likewise.
4682         (SVE_SIG_PREG_SIZE): Likewise.
4683         (SVE_SIG_FFR_SIZE): Likewise.
4684         (SVE_SIG_REGS_OFFSET): Likewise.
4685         (SVE_SIG_ZREGS_OFFSET): Likewise.
4686         (SVE_SIG_ZREG_OFFSET): Likewise.
4687         (SVE_SIG_ZREGS_SIZE): Likewise.
4688         (SVE_SIG_PREGS_OFFSET): Likewise.
4689         (SVE_SIG_PREG_OFFSET): Likewise.
4690         (SVE_SIG_PREGS_SIZE): Likewise.
4691         (SVE_SIG_FFR_OFFSET): Likewise.
4692         (SVE_SIG_REGS_SIZE): Likewise.
4693         (SVE_SIG_CONTEXT_SIZE): Likewise.
4694         (SVE_PT_REGS_MASK): Likewise.
4695         (SVE_PT_REGS_FPSIMD): Likewise.
4696         (SVE_PT_REGS_SVE): Likewise.
4697         (SVE_PT_VL_INHERIT): Likewise.
4698         (SVE_PT_VL_ONEXEC): Likewise.
4699         (SVE_PT_REGS_OFFSET): Likewise.
4700         (SVE_PT_FPSIMD_OFFSET): Likewise.
4701         (SVE_PT_FPSIMD_SIZE): Likewise.
4702         (SVE_PT_SVE_ZREG_SIZE): Likewise.
4703         (SVE_PT_SVE_PREG_SIZE): Likewise.
4704         (SVE_PT_SVE_FFR_SIZE): Likewise.
4705         (SVE_PT_SVE_FPSR_SIZE): Likewise.
4706         (SVE_PT_SVE_FPCR_SIZE): Likewise.
4707         (__SVE_SIG_TO_PT): Likewise.
4708         (SVE_PT_SVE_OFFSET): Likewise.
4709         (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4710         (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4711         (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4712         (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4713         (SVE_PT_SVE_PREG_OFFSET): Likewise.
4714         (SVE_PT_SVE_PREGS_SIZE): Likewise.
4715         (SVE_PT_SVE_FFR_OFFSET): Likewise.
4716         (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4717         (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4718         (SVE_PT_SVE_SIZE): Likewise.
4719         (SVE_PT_SIZE): Likewise.
4720         (HAS_SVE_STATE): New define.
4721
4722 2018-06-18  Alan Hayward  <alan.hayward@arm.com>
4723
4724         * nat/aarch64-sve-linux-sigcontext.h: New file.
4725         * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4726         new files.
4727         (SVE_VQ_MIN): Likewise.
4728         (SVE_VQ_MAX): Likewise.
4729         (SVE_VL_MIN): Likewise.
4730         (SVE_VL_MAX): Likewise.
4731         (SVE_NUM_ZREGS): Likewise.
4732         (SVE_NUM_PREGS): Likewise.
4733         (sve_vl_valid): Likewise.
4734         (struct user_sve_header): Likewise.
4735
4736 2018-06-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4737             Richard Bunt <Richard.Bunt@arm.com>
4738
4739         * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4740         was requested by GDB.
4741
4742 2018-06-15  Tom de Vries  <tdevries@suse.de>
4743
4744         * MAINTAINERS (Write After Approval): Add Tom de Vries.
4745
4746 2018-06-14  Simon Marchi  <simon.marchi@polymtl.ca>
4747
4748         * gnulib/update-gnulib.sh: Print expected versions of
4749         autoconf/aclocal.
4750
4751 2018-06-14  Simon Marchi  <simon.marchi@ericsson.com>
4752
4753         * arch-utils.c (default_type_align): Use type_length_units.
4754         * gdbtypes.c (type_align): Use type_length_units.
4755
4756 2018-06-14  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4757
4758         * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4759         of 'define' command.
4760
4761 2018-06-14  Tom de Vries  <tdevries@suse.de>
4762
4763         PR cli/22573
4764         * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4765         get_no_prettyformat_print_options.
4766
4767 2018-06-13  Simon Marchi  <simon.marchi@ericsson.com>
4768
4769         * sparc-nat.h: Include target.h.
4770         * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4771         <fetch_registers>: Remove this argument in function call.
4772         <store_registers>: Remove this argument in function call, remove
4773         extra semicolon.
4774         <low_forget_process>: Call sparc64_forget_process instead of
4775         sparc_forget_process.
4776
4777 2018-06-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4778
4779         * procfs.c (_initialize_procfs): Use add_inf_child_target.
4780         (procfs_target::make_corefile_notes): Adjust to new
4781         target_read_alloc return type.
4782
4783 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
4784             Stephen Roberts  <stephen.roberts@arm.com>
4785
4786         PR gdb/22882
4787         * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4788         run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4789         Move should_notify_stop local into more inner scope.
4790
4791 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
4792             Stephen Roberts  <stephen.roberts@arm.com>
4793
4794         PR gdb/22882
4795         * infrun.c (resume_1): Add call to mark_async_event_handler.
4796
4797 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
4798
4799         * infrun.c (do_target_wait): Change old version of $pc printed.
4800
4801 2018-06-11  Simon Marchi  <simon.marchi@ericsson.com>
4802
4803         * dwarf2read.c (read_index_from_section): Rename to...
4804         (read_gdb_index_from_section): ... this, update all callers.
4805         (dwarf2_read_index): Rename to...
4806         (dwarf2_read_gdb_index): ... this, update all callers.
4807
4808 2018-06-11  John David Anglin  <danglin@gcc.gnu.org>
4809
4810         * gdb/hppa-linux-nat.c
4811         (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4812         hppa_linux_nat_target::fetch_registers.
4813
4814 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
4815
4816         * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4817         * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4818         (AARCH64_DWARF_SVE_FFR): Likewise.
4819         (AARCH64_DWARF_SVE_P0): Likewise.
4820         (AARCH64_DWARF_SVE_Z0): Likewise.
4821
4822 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
4823
4824         * common/common-regcache.h (raw_compare): New function.
4825         * regcache.c (regcache::raw_compare): Likewise.
4826         * regcache.h (regcache::raw_compare): New declaration.
4827
4828 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
4829
4830         * common/common-regcache.h (reg_buffer_common): New structure.
4831         * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4832         (reg_buffer::raw_supply): Likewise.
4833         (reg_buffer::raw_supply_integer): Likewise.
4834         (reg_buffer::raw_supply_zeroed): Likewise.
4835         (reg_buffer::raw_collect): Likewise.
4836         (reg_buffer::raw_collect_integer): Likewise.
4837         * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4838         (reg_buffer::raw_supply): Likewise.
4839         (reg_buffer::raw_supply_integer): Likewise.
4840         (reg_buffer::raw_supply_zeroed): Likewise.
4841         (reg_buffer::raw_collect): Likewise.
4842         (reg_buffer::raw_collect_integer): Likewise.
4843
4844 2018-06-10  Tom Tromey  <tom@tromey.com>
4845
4846         * remote.c (stop_reply_p): Remove typedef.  Don't declare queue.
4847         (class remote_state) <stop_reply_queue>: Now std::vector.
4848         (remote_state::~remote_state)
4849         (remote_target::stop_reply_queue_length): Update.
4850         (struct queue_iter_param, remove_child_of_pending_fork)
4851         (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4852         (check_pending_event_prevents_wildcard_vcont_callback)
4853         (remove_stop_reply_for_inferior)
4854         (remove_stop_reply_of_remote_state)
4855         (remote_notif_remove_once_on_match)
4856         (stop_reply_match_ptid_and_ws)
4857         (remote_kill_child_of_pending_fork): Remove.
4858         (remote_target::remove_new_fork_children)
4859         (remote_target::check_pending_events_prevent_wildcard_vcont)
4860         (remote_target::discard_pending_stop_replies)
4861         (remote_target::discard_pending_stop_replies_in_queue)
4862         (remote_target::remote_notif_remove_queued_reply)
4863         (remote_target::queued_stop_reply)
4864         (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4865         (remote_target::wait, remote_target::kill_new_fork_children)
4866         (remote_target::async): Update.
4867
4868 2018-06-10  Tom Tromey  <tom@tromey.com>
4869
4870         * record-full.c (record_full_arch_list_cleanups): Remove.
4871         (record_full_message): Use try/catch.
4872         (record_full_wait_cleanups): Remove.
4873         (record_full_wait_1): Use try/catch.
4874         (record_full_restore): Likewise.
4875
4876 2018-06-10  Tom Tromey  <tom@tromey.com>
4877
4878         * record-full.c (record_full_breakpoint_p): Remove typedef.  Don't
4879         declare VEC.  Add constructor.
4880         <in_target_beneath>: Now bool.
4881         (record_full_breakpoints): Now a std::vector, static.
4882         (record_full_sync_record_breakpoints)
4883         (record_full_init_record_breakpoints)
4884         (record_full_target::insert_breakpoint)
4885         (record_full_target::remove_breakpoint): Update.  Don't use XNEW.
4886
4887 2018-06-10  Simon Marchi  <simon.marchi@polymtl.ca>
4888
4889         * dwarf2read.c (process_cu_includes): Remove struct keyword.
4890         * serial.c (serial_interface_lookup): Remove struct keyword.
4891
4892 2018-06-10  Tom Tromey  <tom@tromey.com>
4893
4894         * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
4895         method.
4896         * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
4897         a method.
4898         * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
4899         method.
4900         * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
4901         "beneath" as a method.
4902         * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
4903         Use "beneath" as a method.
4904
4905 2018-06-10  Tom Tromey  <tom@tromey.com>
4906
4907         * tracefile.c (struct trace_file_writer_deleter): New.
4908         <operator()>: Rename from trace_file_writer_xfree.
4909         (trace_file_writer_up): New typedef.
4910         (tsave_command, trace_save_tfile, trace_save_ctf): Update.
4911
4912 2018-06-09  Simon Marchi  <simon.marchi@ericsson.com>
4913
4914         * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
4915         <m_registers, m_register_status>: Change type to
4916         std::unique_ptr.
4917         * regcache.c (reg_buffer::reg_buffer): Use new instead of
4918         XCNEWVEC.
4919
4920 2018-06-09  Simon Marchi  <simon.marchi@ericsson.com>
4921
4922         * common/common-regcache.h (enum register_status): Add
4923         underlying type "signed char".
4924         * regcache.h (reg_buffer) <m_register_status>: Change type to
4925         register_status *.
4926         * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
4927         register_status instead of signed char.
4928         (reg_buffer::save): Use REG_UNKNOWN instead of 0.
4929         (reg_buffer::get_register_status): Remove cast.
4930         (readable_regcache::raw_read): Remove cast.
4931         (readable_regcache::cooked_read): Remove cast.
4932
4933 2018-06-09  Tom Tromey  <tom@tromey.com>
4934
4935         * source.c (reverse_search_command, forward_search_command): Use
4936         scoped_fd.
4937
4938 2018-06-09  Tom Tromey  <tom@tromey.com>
4939
4940         * serial.c (serial_ops_p): Remove typedef.  Don't declare VEC.
4941         (serial_ops_list): Now static, std::vector.
4942         (serial_interface_lookup, serial_add_interface): Update.
4943
4944 2018-06-09  Tom Tromey  <tom@tromey.com>
4945
4946         * dwarf2read.c (process_cu_includes): Update.
4947         (process_full_comp_unit): Update.
4948         * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
4949         std::vector.
4950
4951 2018-06-08  Paul Koning  <paul_koning@dell.com>
4952
4953         PR gdb/23252
4954
4955         * python/python.c (do_start_initialization):
4956         Avoid call to internal Python API.
4957         (init__gdb_module): New function.
4958
4959 2018-06-08  Gary Benson <gbenson@redhat.com>
4960
4961         * linux-thread-db.c (valprint.h): New include.
4962         (struct check_thread_db_info): New structure.
4963         (check_thread_db_on_load, tdb_testinfo): New static globals.
4964         (check_thread_db, check_thread_db_callback): New functions.
4965         (try_thread_db_load_1): Run integrity checks if requested.
4966         (maintenance_check_libthread_db): New function.
4967         (_initialize_thread_db): Register "maint check libthread-db"
4968         and "maint set/show check-libthread-db".
4969         * NEWS: Mention the above new commands.
4970
4971 2018-06-08  Tom Tromey  <tom@tromey.com>
4972
4973         * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
4974         now a method.
4975
4976 2018-06-08  Tom Tromey  <tom@tromey.com>
4977
4978         * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
4979
4980 2018-06-08  Tom Tromey  <tom@tromey.com>
4981
4982         * common/btrace-common.h (struct btrace_data): Add constructor,
4983         destructor, move assignment operator.
4984         <empty, clear, fini>: New methods.
4985         <format>: Initialize.
4986         (btrace_data_init, btrace_data_fini, btrace_data_clear)
4987         (btrace_data_empty): Don't declare.
4988         * common/btrace-common.c (btrace_data_init): Remove.
4989         (btrace_data::fini): Rename from btrace_data_fini.
4990         (btrace_data::empty): Rename from btrace_data_empty.
4991         (btrace_data::clear): Rename from btrace_data_clear.  Return
4992         bool.
4993         * btrace.h (make_cleanup_btrace_data): Don't declare.
4994         * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
4995         (parse_xml_btrace): Update.
4996         (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
4997         (maint_btrace_clear_packet_history_cmd): Update.
4998
4999 2018-06-07  Pedro Alves  <palves@redhat.com>
5000
5001         * target.h (target_ops) <beneath>: Now a method.  All references
5002         updated.
5003         (class target_stack): New.
5004         * target.c (g_target_stack): New.
5005         (g_current_top_target): Delete.
5006         (current_top_target): Get the top target out of g_target_stack.
5007         (target_stack::push, target_stack::unpush): New.
5008         (push_target, unpush_target): Reimplement.
5009         (target_is_pushed): Reimplement in terms of g_target_stack.
5010         (target_ops::beneath, target_stack::find_beneath): New.
5011
5012 2018-06-07  Pedro Alves  <palves@redhat.com>
5013
5014         * target.h (find_target_beneath): Delete declaration.
5015         * target.c (find_target_beneath): Delete definition.
5016         * aix-thread.c: All callers of find_target_beneath adjusted to
5017         call target_ops::beneath instead.
5018         * bsd-uthread.c: Likewise.
5019         * linux-thread-db.c: Likewise.
5020         * ravenscar-thread.c: Likewise.
5021         * sol-thread.c: Likewise.
5022         * spu-multiarch.c: Likewise.
5023
5024 2018-06-07  Pedro Alves  <palves@redhat.com>
5025
5026         * target.h (target_ops) <beneath>: Now a method.  All references
5027         updated.
5028         (target_ops) <m_beneath>: New.
5029         * target.c (target_ops::beneath): New.
5030         * corelow.c: Adjust all references to target_ops::beneath.
5031         * linux-thread-db.c: Likewise.
5032         * make-target-delegates: Likewise.
5033         * record-btrace.c: Likewise.
5034         * record-full.c: Likewise.
5035         * remote.c: Likewise.
5036         * target.c: Likewise.
5037         * target-delegates.c: Regenerate.
5038
5039 2018-06-07  Pedro Alves  <palves@redhat.com>
5040
5041         * target.h (target_stack): Delete.
5042         (current_top_target): Declare function.
5043         * target.c (target_stack): Delete.
5044         (g_current_top_target): New.
5045         (current_top_target): New function.
5046         * auxv.c: Use current_top_target instead of target_stack
5047         throughout.
5048         * avr-tdep.c: Likewise.
5049         * breakpoint.c: Likewise.
5050         * corefile.c: Likewise.
5051         * elfread.c: Likewise.
5052         * eval.c: Likewise.
5053         * exceptions.c: Likewise.
5054         * frame.c: Likewise.
5055         * gdbarch-selftests.c: Likewise.
5056         * gnu-v3-abi.c: Likewise.
5057         * ia64-tdep.c: Likewise.
5058         * ia64-vms-tdep.c: Likewise.
5059         * infcall.c: Likewise.
5060         * infcmd.c: Likewise.
5061         * infrun.c: Likewise.
5062         * linespec.c: Likewise.
5063         * linux-tdep.c: Likewise.
5064         * minsyms.c: Likewise.
5065         * ppc-linux-nat.c: Likewise.
5066         * ppc-linux-tdep.c: Likewise.
5067         * procfs.c: Likewise.
5068         * regcache.c: Likewise.
5069         * remote.c: Likewise.
5070         * rs6000-tdep.c: Likewise.
5071         * s390-linux-nat.c: Likewise.
5072         * s390-tdep.c: Likewise.
5073         * solib-aix.c: Likewise.
5074         * solib-darwin.c: Likewise.
5075         * solib-dsbt.c: Likewise.
5076         * solib-spu.c: Likewise.
5077         * solib-svr4.c: Likewise.
5078         * solib-target.c: Likewise.
5079         * sparc-tdep.c: Likewise.
5080         * sparc64-tdep.c: Likewise.
5081         * spu-tdep.c: Likewise.
5082         * symfile.c: Likewise.
5083         * symtab.c: Likewise.
5084         * target-descriptions.c: Likewise.
5085         * target-memory.c: Likewise.
5086         * target.c: Likewise.
5087         * target.h: Likewise.
5088         * tracefile-tfile.c: Likewise.
5089         * tracepoint.c: Likewise.
5090         * valops.c: Likewise.
5091         * valprint.c: Likewise.
5092         * value.c: Likewise.
5093         * windows-tdep.c: Likewise.
5094         * mi/mi-main.c: Likewise.
5095
5096 2018-06-07  Tom Tromey  <tom@tromey.com>
5097
5098         * valprint.h (build_address_symbolic): Declare.
5099         * printcmd.c (print_address_symbolic): Update.
5100         (build_address_symbolic): Change "name" and "filename" to
5101         std::string.
5102         * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5103         Update.
5104         * defs.h (build_address_symbolic): Remove declaration.
5105
5106 2018-06-07  Alan Hayward  <alan.hayward@arm.com>
5107
5108         * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5109         (aarch64_vnv_type): Add function.
5110         (aarch64_pseudo_register_name): Add V regs for SVE.
5111         (aarch64_pseudo_register_type): Likewise.
5112         (aarch64_pseudo_register_reggroup_p): Likewise.
5113         (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5114         (aarch64_pseudo_read_value): Add V regs for SVE.
5115         (aarch64_pseudo_write_2): Use V0 offset for SVE
5116         (aarch64_pseudo_write): Add V regs for SVE.
5117         * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5118
5119 2018-06-06  Sergio Durigan Junior  <sergiodj@redhat.com>
5120
5121         * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5122         (sve_vl_from_vq): Likewise.
5123
5124 2018-06-05  Tom Tromey  <tom@tromey.com>
5125
5126         * cli/cli-cmds.c (show_version): Update.
5127         * top.c (print_gdb_version): Add "interactive" parameter.
5128         Update.
5129         * main.c (captured_main_1): Update.
5130         * top.h (print_gdb_version): Add "interactive" parameter and a
5131         comment.
5132
5133 2018-06-05  David Malcolm  <dmalcolm@redhat.com>
5134
5135         * common/enum-flags.h: Add trailing semicolon to example in
5136         comment.
5137
5138 2018-06-05  Tom Tromey  <tom@tromey.com>
5139
5140         PR cli/12326:
5141         * NEWS: Add entry about pager.
5142         * utils.c (pagination_disabled_for_command): New global.
5143         (prompt_for_continue): Allow "c" response to prompt.
5144         (reinitialize_more_filter): Clear
5145         pagination_disabled_for_command.
5146         (fputs_maybe_filtered): Check pagination_disabled_for_command.
5147
5148 2018-06-04  Tom Tromey  <tom@tromey.com>
5149
5150         * ada-lang.h (ada_lookup_symbol_list): Update.
5151         * ada-lang.c (resolve_subexp): Update.
5152         (symbols_are_identical_enums): Change type of syms.  Remove nsyms
5153         parameter.
5154         (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5155         (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5156         results parameter to std::vector.
5157         (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5158         Update.
5159         * ada-exp.y (block_lookup): Update.
5160         (select_possible_type_sym): Change type of syms.  Remove nsyms
5161         parameter.
5162         (write_var_or_type, write_name_assoc): Update.
5163
5164 2018-06-04  Joel Brobecker  <brobecker@adacore.com>
5165
5166         * windows-nat.c (windows_nat_target::xfer_partial): Return
5167         TARGET_XFER_E_IO if we need to delegate to the target beneath
5168         but BENEATH is NULL.
5169
5170 2018-06-04  Simon Marchi  <simon.marchi@ericsson.com>
5171
5172         * Makefile.in (config.status): Add configure.nat as a
5173         dependency.
5174
5175 2018-06-04  Tom Tromey  <tom@tromey.com>
5176
5177         * cp-name-parser.y (cpname_state): Add method declarations.
5178         (HANDLE_QUAL): Update.
5179         (cpname_state::d_grab, cpname_state::fill_comp)
5180         (cpname_state::make_operator, cpname_state::make_dtor)
5181         (cpname_state::make_builtin_type, cpname_state::make_name)
5182         (cpname_state::d_qualify, cpname_state::d_int_type)
5183         (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5184         (%union): Move earlier.
5185
5186 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
5187
5188         * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5189
5190 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
5191
5192         * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5193         (aarch64_pseudo_write_1): Likewise.
5194         (aarch64_pseudo_read_value): Use helper.
5195         (aarch64_pseudo_write): Likewise.
5196
5197 2018-06-04  Pedro Alves  <palves@redhat.com>
5198
5199         * darwin-nat.c (darwin_ops): Delete.
5200         (darwin_attach_pid): Use get_native_target.
5201
5202 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
5203
5204         * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5205         * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5206
5207 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
5208
5209         * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5210         * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5211         (aarch64_gdbarch_init): Check for SVE.
5212         * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5213
5214 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
5215
5216         * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5217         * aarch64-tdep.h (aarch64_read_description): Likewise.
5218         * arch/aarch64.c (aarch64_create_target_description): Likewise.
5219         * arch/aarch64.h (aarch64_create_target_description): Likewise.
5220         * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5221         * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5222         * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5223
5224 2018-06-02  Simon Marchi  <simon.marchi@ericsson.com>
5225
5226         * value.c (value_fetch_lazy_bitfield): New.
5227         (value_fetch_lazy_memory): New.
5228         (value_fetch_lazy_register): New.
5229         (value_fetch_lazy): Factor out to smaller functions.
5230
5231 2018-06-01  Tom Tromey  <tom@tromey.com>
5232
5233         * cp-name-parser.y (backslashable, represented): Now const.
5234
5235 2018-06-01  Tom Tromey  <tom@tromey.com>
5236
5237         * cp-name-parser.y: Include parser-defs.h.
5238         (parser_fprintf): Remove declaration.
5239
5240 2018-06-01  Tom Tromey  <tom@tromey.com>
5241
5242         * cp-name-parser.y: Use %pure-parser, %lex-param, and
5243         %parse-param.
5244         (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5245         (global_result): Remove globals.
5246         (struct cpname_state): New.
5247         (yyparse): Don't declare.
5248         (yylex, yyerror): Move declarations after %union.
5249         (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5250         (make_name): Add state parameter.
5251         Update all callers.
5252         (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5253         parameter.
5254         (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5255         Update.
5256         (yylex): Add lvalp, state parameters.
5257         (yyerror): Add state parameter.
5258         (cp_demangled_name_to_comp): Update.
5259
5260 2018-06-01  Tom Tromey  <tom@tromey.com>
5261
5262         * cp-name-parser.y (parser_fprintf): Declare.
5263         (GDB_YY_REMAP_PREFIX): Define.
5264         Include yy-remap.h.  Don't redefine yy* identifiers.
5265
5266 2018-06-01  Tom Tromey  <tom@tromey.com>
5267
5268         * python/py-type.c (typy_legacy_template_argument): Update.
5269         * cp-support.h (cp_demangled_name_to_comp): Update.
5270         * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5271         parameter to be a "std::string *".
5272         (main): Update.
5273
5274 2018-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5275
5276         * ada-lex.l: Include "diagnostics.h" instead of
5277         "common/diagnostics.h".
5278         * unittests/environ-selftests.c: Likewise.
5279         * common/diagnostics.h: Moved to ../include.
5280
5281 2018-06-01  Joel Brobecker  <brobecker@adacore.com>
5282
5283         * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5284         to language_mode_manual while calling breakpoint_re_set_one.
5285
5286 2018-06-01  Tom Tromey  <tom@tromey.com>
5287
5288         * valops.c (value_cast_structs, destructor_name_p): Update.
5289         * symtab.c (gdb_mangle_name): Update.
5290         * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5291         Update.
5292         * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5293         (pascal_object_print_value_fields, pascal_object_print_value):
5294         Update.
5295         * p-typeprint.c (pascal_type_print_derivation_info): Update.
5296         * linespec.c (find_methods): Update.
5297         * gdbtypes.h (type_name_no_tag): Remove.
5298         (type_name_or_error): Rename from type_name_no_tag_or_error.
5299         * gdbtypes.c (type_name_no_tag): Remove.
5300         (type_name_or_error): Rename from type_name_no_tag_or_error.
5301         (lookup_struct_elt_type, check_typedef): Update.
5302         * expprint.c (print_subexp_standard): Update.
5303         * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5304         * d-namespace.c (d_lookup_nested_symbol): Update.
5305         * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5306         (cp_print_class_member): Update.
5307         * cp-namespace.c (cp_lookup_nested_symbol): Update.
5308         * completer.c (add_struct_fields): Update.
5309         * c-typeprint.c (cp_type_print_derivation_info)
5310         (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5311         Update.
5312         * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5313         (ada_prefer_type, ada_is_exception_sym): Update.
5314
5315 2018-06-01  Tom Tromey  <tom@tromey.com>
5316
5317         * valops.c (enum_constant_from_type, value_namespace_elt)
5318         (value_maybe_namespace_elt): Update.
5319         * valarith.c (find_size_for_pointer_math): Update.
5320         * target-descriptions.c (make_gdb_type): Update.
5321         * symmisc.c (print_symbol): Update.
5322         * stabsread.c (define_symbol, read_type)
5323         (complain_about_struct_wipeout, add_undefined_type)
5324         (cleanup_undefined_types_1): Update.
5325         * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5326         (rust_range_type_p, val_print_struct, rust_print_struct_def)
5327         (rust_internal_print_type, rust_composite_type)
5328         (rust_evaluate_funcall, rust_evaluate_subexp)
5329         (rust_inclusive_range_type_p): Update.
5330         * python/py-type.c (typy_get_tag): Update.
5331         * p-typeprint.c (pascal_type_print_base): Update.
5332         * mdebugread.c (parse_symbol, parse_type): Update.
5333         * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5334         Update.
5335         * guile/scm-type.c (gdbscm_type_tag): Update.
5336         * go-lang.c (sixg_string_p): Update.
5337         * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5338         Update.
5339         * gdbtypes.h (struct main_type) <tag_name>: Remove.
5340         (TYPE_TAG_NAME): Remove.
5341         * gdbtypes.c (type_name_no_tag): Simplify.
5342         (check_typedef, check_types_equal, recursive_dump_type)
5343         (copy_type_recursive, arch_composite_type): Update.
5344         * f-typeprint.c (f_type_print_base): Update.  Print "Type" prefix
5345         in summary mode when needed.
5346         * eval.c (evaluate_funcall): Update.
5347         * dwarf2read.c (fixup_go_packaging, read_structure_type)
5348         (process_structure_scope, read_enumeration_type)
5349         (read_namespace_type, read_module_type, determine_prefix): Update.
5350         * cp-support.c (inspect_type): Update.
5351         * coffread.c (process_coff_symbol, decode_base_type): Update.
5352         * c-varobj.c (c_is_path_expr_parent): Update.
5353         * c-typeprint.c (c_type_print_base_struct_union): Update.
5354         (c_type_print_base_1): Update.  Print struct/class/union/enum in
5355         summary when using C language.
5356         * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5357         (gen_maybe_namespace_elt): Update.
5358         * ada-lang.c (ada_type_name): Simplify.
5359         (empty_record, ada_template_to_fixed_record_type_1)
5360         (template_to_static_fixed_type)
5361         (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5362
5363 2018-06-01  Tom Tromey  <tom@tromey.com>
5364
5365         * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5366         c_print_type.
5367         * c-typeprint.c (c_print_type_1): Add "language" parameter.
5368         (c_print_type): Update.
5369         (c_print_type): New overload.
5370         (c_type_print_varspec_prefix, c_type_print_args)
5371         (c_type_print_varspec_suffix, c_print_type_no_offsets)
5372         (c_type_print_base_struct_union, c_type_print_base_1)
5373         (cp_type_print_method_args): Add "language" parameter.
5374         (c_type_print_base): Update.
5375         * c-lang.h (c_print_type): Add new overload.
5376
5377 2018-06-01  Tom Tromey  <tom@tromey.com>
5378
5379         * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5380         * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5381
5382 2018-06-01  Alan Hayward  <alan.hayward@arm.com>
5383
5384         * aarch64-tdep.c (aarch64_sve_register_names): New const
5385         var.
5386         * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5387         (AARCH64_SVE_Z_REGS_NUM): New define.
5388         (AARCH64_SVE_P_REGS_NUM): Likewise.
5389         (AARCH64_SVE_NUM_REGS): Likewise.
5390
5391 2018-05-31  Uros Bizjak  <ubizjak@gmail.com>
5392
5393         * nat/linux-ptrace.h [__alpha__]
5394         (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5395         definitions.
5396
5397 2018-05-31  Maciej W. Rozycki  <macro@mips.com>
5398
5399         * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5400         the endianness selected.
5401         * NEWS: Document `set endian auto' mode operation update.
5402
5403 2018-05-31  Alan Hayward  <alan.hayward@arm.com>
5404
5405         * Makefile.in: Add new header.
5406         * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5407         (sve_vl_from_vg): Likewise.
5408         (sve_vq_from_vl): Likewise.
5409         (sve_vl_from_vq): Likewise.
5410         (sve_vq_from_vg): Likewise.
5411         (sve_vg_from_vq): Likewise.
5412         * configure.nat: Add new c file.
5413         * nat/aarch64-sve-linux-ptrace.c: New file.
5414         * nat/aarch64-sve-linux-ptrace.h: New file.
5415
5416 2018-05-31  Alan Hayward  <alan.hayward@arm.com>
5417
5418         * aarch64-linux-nat.c (aarch64_linux_read_description):
5419         Add parmeter zero.
5420         * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5421         Likewise.
5422         * aarch64-tdep.c (tdesc_aarch64_list): Add.
5423         (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5424         (aarch64_gdbarch_init): Add parmeter zero.
5425         * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5426         * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5427         * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5428         parmeter.
5429         * doc/gdb.texinfo: Describe SVE feature
5430         * features/aarch64-sve.c: New file.
5431
5432 2018-05-31  Omair Javaid  <omair.javaid@linaro.org>
5433
5434         PR gdb/23210
5435         * gdbarch.sh (significant_addr_bit): Default to zero when
5436         not set by target architecture.
5437         * gdbarch.c: Re-generated.
5438         * utils.c (address_significant): Update.
5439
5440 2018-05-30  Joel Brobecker  <brobecker@adacore.com>
5441
5442         * stack.c (func_command): Remove trailing newline in call to error.
5443
5444 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5445
5446         * regcache.h (regcache_raw_collect): Remove, update callers to
5447         use regcache::raw_collect.
5448         * regcache.c (regcache_raw_collect): Remove.
5449
5450 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5451
5452         * regcache.h (regcache_raw_supply): Remove, update callers to
5453         use detached_regcache::raw_supply.
5454         * regcache.c (regcache_raw_supply): Remove.
5455
5456 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5457
5458         * regcache.h (regcache_cooked_write_part): Remove, update
5459         callers to use regcache::cooked_write_part.
5460         * regcache.c (regcache_cooked_write_part): Remove.
5461
5462 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5463
5464         * regcache.h (regcache_cooked_read_part): Remove, update callers
5465         to use readable_regcache::cooked_read_part.
5466         * regcache.c (regcache_cooked_read_part): Remove.
5467
5468 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5469
5470         * regcache.h (regcache_cooked_read_value): Remove, update
5471         callers to use readable_regcache::cooked_read_value.
5472         * regcache.c (regcache_cooked_read_value): Remove.
5473
5474 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5475
5476         * regcache.h (regcache_cooked_write): Remove, update callers to
5477         use regcache::cooked_write.
5478         * regcache.c (regcache_cooked_write): Remove.
5479
5480 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5481
5482         * regcache.h (regcache_invalidate): Remove, update callers to
5483         use detached_regcache::invalidate instead.
5484         * regcache.c (regcache_invalidate): Remove.
5485
5486 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5487
5488         * regcache.h (regcache_raw_write_part): Remove, update callers
5489         to use regcache::raw_write_part instead.
5490         * regcache.c (regcache_raw_write_part): Remove.
5491
5492 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5493
5494         * regcache.h (regcache_raw_read_part): Remove, update callers to
5495         use readable_regcache::raw_read_part instead.
5496         * regcache.c (regcache_raw_read_part): Remove.
5497
5498 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5499
5500         * regcache.h (regcache_cooked_read): Remove, update callers to
5501         use readable_regcache::cooked_read instead.
5502         * regcache.c (regcache_cooked_read): Remove.
5503
5504 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5505
5506         * regcache.h (regcache_raw_write): Remove, update callers to use
5507         regcache::raw_write instead.
5508         * regcache.c (regcache_raw_write): Remove.
5509
5510 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5511
5512         * regcache.h (regcache_raw_read): Remove, update callers to use
5513         readable_regcache::raw_read instead.
5514         * regcache.c (regcache_raw_read): Remove.
5515
5516 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5517
5518         * regcache.h (regcache_raw_update): Remove, update callers to
5519         use readable_regcache::raw_update instead.
5520         * regcache.c (regcache_raw_update): Remove.
5521
5522 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5523
5524         * regcache.h (regcache_register_status): Remove, update callers
5525         to use reg_buffer::get_register_status directly instead.
5526         * regcache.c (regcache_register_status): Remove.
5527
5528 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5529
5530         * regcache.h (regcache_get_ptid): Remove, update all callers to
5531         call regcache::ptid instead.
5532         * regcache.c (regcache_get_ptid): Remove.
5533
5534 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
5535
5536         * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5537
5538 2018-05-30  Pedro Alves  <palves@redhat.com>
5539
5540         * common/common-exceptions.h (exception_rethrow): Use
5541         ATTRIBUTE_NORETURN.
5542
5543 2018-05-29  Simon Marchi  <simon.marchi@polymtl.ca>
5544
5545         * breakpoint.c (print_solib_event, check_status_catch_solib):
5546         Remove struct keyword in range-based for loops.
5547         * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5548         * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5549         Likewise.
5550         * linespec.c (find_superclass_methods, search_minsyms_for_name):
5551         Likewise.
5552         * symfile.c (addr_info_make_relative): Likewise.
5553         * thread.c (value_in_thread_stack_temporaries): Likewise.
5554
5555 2018-06-12  Weimin Pan  <weimin.pan@oracle.com>
5556
5557         PR gdb/16841
5558         * valops.c (value_struct_elt_for_reference): Call check_typedef on
5559         aggregate type to get its real type before accessing it.
5560
5561 2018-05-29  Weimin Pan  <weimin.pan@oracle.com>
5562
5563         * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5564         * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5565         * coff-pe-read.c (add_pe_forwarded_sym): Replace
5566         lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5567         * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5568         * jit.c (jit_breakpoint_re_set_internal): Likewise.
5569         * printcmd.c (info_address_command): Likewise.
5570
5571 2018-05-29  Tom Tromey  <tom@tromey.com>
5572
5573         * windows-nat.c (handle_exception): Update fall-through comment.
5574
5575 2018-05-29  Tom Tromey  <tom@tromey.com>
5576
5577         * progspace.h (so_list_ptr): Remove typedef.  Don't declare VEC.
5578         (struct program_space) <added_solibs>: Now a std::vector.
5579         * breakpoint.c (print_solib_event): Update.
5580         (check_status_catch_solib): Update.
5581         * progspace.c (clear_program_space_solib_cache): Update.
5582         * solib.c (update_solib_list): Update.
5583
5584 2018-05-29  Tom Tromey  <tom@tromey.com>
5585
5586         * python/py-type.c (typy_richcompare): Update.
5587         * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5588         * gdbtypes.h (types_deeply_equal): Return bool.
5589         (types_equal): Likewise.
5590         * gdbtypes.c (type_equality_entry_d): Remove typedef.  Don't
5591         declare VEC.
5592         (check_types_equal): Change worklist to std::vector.  Return
5593         bool.
5594         (struct type_equality_entry): Add constructor.
5595         (compare_maybe_null_strings): Return bool.
5596         (check_types_worklist): Return bool.  Change worklist to
5597         std::vector.
5598         (types_deeply_equal): Use std::vector.
5599         (types_equal): Return bool.
5600         (compare_maybe_null_strings): Simplify.
5601
5602 2018-05-29  Tom Tromey  <tom@tromey.com>
5603
5604         * record-btrace.c (tp_t): Remove typedef.  Don't declare VEC.
5605
5606 2018-05-29  Tom Tromey  <tom@tromey.com>
5607
5608         * objc-lang.h: Don't include cp-support.h.
5609         * common/gdb_vecs.h (const_char_ptr): Remove typedef.  Don't
5610         declare VEC.
5611
5612 2018-05-27  Tom Tromey  <tom@tromey.com>
5613
5614         * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5615
5616 2018-05-25  Tom Tromey  <tom@tromey.com>
5617
5618         * value.c (value::location): Initialize.
5619
5620 2018-05-25  Tom Tromey  <tom@tromey.com>
5621
5622         * dbxread.c (init_bincl_list): Remove.
5623         (bincl_list): Now a std::vector.
5624         (bincls_allocated, next_bincl): Remove.
5625         (free_bincl_list, do_free_bincl_list_cleanup)
5626         (make_cleanup_free_bincl_list): Remove.
5627         (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5628         unique_xmalloc_ptr.
5629         (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5630         (struct header_file_location): Add constructor.
5631         (add_bincl_to_list): Remove.
5632
5633 2018-05-25  Tom Tromey  <tom@tromey.com>
5634
5635         * tui/tui.c (tui_enable): Update.
5636         * mi/mi-interp.c (mi_interp::init): Update.
5637         * interps.h (class interp) <name>: New method.
5638         <m_name>: Rename from name.
5639         (~scoped_restore_interp): Update.
5640         * interps.c (interp::interp): Update.
5641         (interp_add, interp_set, interp_lookup_existing)
5642         (current_interp_named_p): Update.
5643
5644 2018-05-25  Tom Tromey  <tom@tromey.com>
5645
5646         * interps.c (interp_name): Remove.
5647         * mi/mi-interp.c (mi_interp::init): Update.
5648         * interps.h (interp_name): Remove.
5649         (~scoped_restore_interp): Update.
5650         * tui/tui.c (tui_enable): Update.
5651
5652 2018-05-25  Tom Tromey  <tom@tromey.com>
5653
5654         * utils.c (fputs_maybe_filtered): Update.
5655         * linespec.c (decode_line_full): Update.
5656         * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5657         (mi_print_breakpoint_for_event, mi_solib_loaded)
5658         (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5659         (mi_user_selected_context_changed): Update.
5660         * mi/mi-main.c (mi_execute_command): Update.
5661         * cli/cli-script.c (execute_control_command): Update.
5662         * python/python.c (execute_gdb_command): Update.
5663         * solib.c (info_sharedlibrary_command): Update.
5664         * interps.c (interp_ui_out): Remove.
5665         * interps.h (interp_ui_out): Remove.
5666
5667 2018-05-25  Tom Tromey  <tom@tromey.com>
5668
5669         * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5670         * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5671         * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5672
5673 2018-05-25  Tom Tromey  <tom@tromey.com>
5674
5675         * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5676         * interps.c (interp_exec): Use scoped_restore.
5677
5678 2018-05-25  Tom Tromey  <tom@tromey.com>
5679
5680         * remote.c (remote_target::remote_file_get): Use
5681         gdb::byte_vector.
5682         (remote_target::remote_file_put): Likewise.
5683
5684 2018-05-25  Tom Tromey  <tom@tromey.com>
5685
5686         * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5687         a std::string.
5688         (get_pe_section_index, add_pe_exported_sym): Update.
5689         (read_pe_exported_syms): Use gdb::def_vector.
5690
5691 2018-05-25  Tom Tromey  <tom@tromey.com>
5692
5693         * frame.c (remove_prev_frame): Remove.
5694         (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5695
5696 2018-05-25  Maciej W. Rozycki  <macro@mips.com>
5697
5698         * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5699         Remove prototypes.
5700         * mips-linux-nat.c (supply_fpregset): Always call
5701         `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5702         (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5703         `mips_fill_fpregset'.
5704         * mips-linux-tdep.c (mips_supply_fpregset)
5705         (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5706         (mips_fill_fpregset_wrapper): Remove functions.
5707         (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5708         (mips_linux_fpregset): Remove variable.
5709         (mips_linux_iterate_over_regset_sections): Use
5710         `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5711         (mips_linux_o32_sigframe_init): Remove comment.
5712
5713 2018-05-25  Pedro Alves  <palves@redhat.com>
5714
5715         * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5716         (struct readahead_cache, struct packet_reg, struct
5717         remote_arch_state, class remote_state): Move higher up in the
5718         file.
5719         (remote_target::m_remote_state): Now an object instead of a pointer.
5720         (remote_target::get_remote_state): Adjust.
5721
5722 2018-05-24  Andrew Burgess  <andrew.burgess@embecosm.com>
5723
5724         * stack.c (select_and_print_frame): Delete.
5725         (struct function_bounds): Move struct within function.
5726         (func_command): Most content moved into new function
5727         find_frame_for_function, use new function, print result, add
5728         function comment.
5729         (find_frame_for_function): New function, now returns a result.
5730
5731 2018-05-24  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5732
5733         * stack.c (iterate_over_block_arg_vars): Fix comment.
5734         (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5735
5736 2018-05-24  Andrew Burgess  <andrew.burgess@embecosm.com>
5737
5738         PR gdb/23203
5739         * frame.c
5740         (scoped_restore_selected_frame::scoped_restore_selected_frame):
5741         Define.
5742         (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5743         Define.
5744         * frame.h (class scoped_restore_selected_frame): New class.
5745         * stack.c (print_frame_local_vars): Remove catching and rethrowing
5746         of any exception, use scoped_restore_selected_frame to restore the
5747         frame instead.
5748
5749 2018-05-24  Pedro Alves  <palves@redhat.com>
5750
5751         * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5752         override.
5753
5754 2018-05-23  Tom Tromey  <tom@tromey.com>
5755
5756         * complaints.c (struct complaints): Remove.
5757         (symfile_complaint_book): Remove.
5758         (series): New global.
5759         (complaint_internal): Update.
5760         (clear_complaints): Update.
5761
5762 2018-05-23  Tom Tromey  <tom@tromey.com>
5763
5764         * complaints.c (counters): New global.
5765         (struct complain): Remove.
5766         (struct complaints) <root>: Remove.
5767         (complaint_sentinel): Remove.
5768         (symfile_complaint_book): Update.
5769         (find_complaint) Remove.
5770         (complaint_internal, clear_complaints): Update.
5771
5772 2018-05-23  Tom Tromey  <tom@tromey.com>
5773
5774         * complaints.c (struct complain) <file, line>: Remove.
5775         (find_complaint): Remove file, line parameters.
5776         (complaint_internal): Update.
5777
5778 2018-05-23  Tom Tromey  <tom@tromey.com>
5779
5780         * complaints.c (vcomplaint): Remove.
5781         (complaint_internal) Merge in contents of vcomplaint.
5782
5783 2018-05-23  Tom Tromey  <tom@tromey.com>
5784
5785         * complaints.c (struct complaints) <explanation>: Remove.
5786         (symfile_explanations): Remove.
5787         (symfile_complaint_book): Update.
5788         (vcomplaint): Update.
5789         (struct explanation): Remove.
5790
5791 2018-05-23  Tom Tromey  <tom@tromey.com>
5792
5793         * complaints.c (symfile_complaints): Remove.
5794         (complaint_internal): Remove "complaints" parameter.
5795         (clear_complaints, vcomplaint): Remove "c" parameter.
5796         (get_complaints): Remove.
5797         * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5798         (dwarf2_debug_line_missing_file_complaint)
5799         (dwarf2_debug_line_missing_end_sequence_complaint)
5800         (dwarf2_complex_location_expr_complaint)
5801         (dwarf2_const_value_length_mismatch_complaint)
5802         (dwarf2_section_buffer_overflow_complaint)
5803         (dwarf2_macro_malformed_definition_complaint)
5804         (dwarf2_invalid_attrib_class_complaint)
5805         (create_addrmap_from_index, dw2_symtab_iter_next)
5806         (dw2_expand_marked_cus)
5807         (dw2_debug_names_iterator::find_vec_in_debug_names)
5808         (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5809         (create_debug_type_hash_table, init_cutu_and_read_dies)
5810         (partial_die_parent_scope, add_partial_enumeration)
5811         (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5812         (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5813         (read_import_statement, read_file_scope, create_dwo_cu_reader)
5814         (create_cus_hash_table, create_dwp_hash_table)
5815         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5816         (dwarf2_rnglists_process, dwarf2_ranges_process)
5817         (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5818         (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5819         (handle_struct_member_die, process_structure_scope)
5820         (read_array_type, read_common_block, read_module_type)
5821         (read_tag_pointer_type, read_typedef, read_base_type)
5822         (read_subrange_type, load_partial_dies, partial_die_info::read)
5823         (partial_die_info::read, partial_die_info::read)
5824         (partial_die_info::read, read_checked_initial_length_and_offset)
5825         (dwarf2_string_attr, read_formatted_entries)
5826         (dwarf_decode_line_header)
5827         (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5828         (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5829         (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5830         (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5831         (get_signatured_type, get_DW_AT_signature_type)
5832         (decode_locdesc, file_file_name, consume_improper_spaces)
5833         (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5834         (dwarf_decode_macro_bytes, dwarf_decode_macros)
5835         (dwarf2_symbol_mark_computed, set_die_type)
5836         (read_attribute_value): Update.
5837         * stap-probe.c (handle_stap_probe, get_stap_base_address):
5838         Update.
5839         * dbxread.c (unknown_symtype_complaint)
5840         (lbrac_mismatch_complaint, repeated_header_complaint)
5841         (set_namestring, function_outside_compilation_unit_complaint)
5842         (read_dbx_symtab, process_one_symbol): Update.
5843         * gdbtypes.c (stub_noname_complaint): Update.
5844         * windows-nat.c (handle_unload_dll): Update.
5845         * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5846         (decode_base_type): Update.
5847         * xcoffread.c (bf_notfound_complaint, ef_complaint)
5848         (eb_complaint, record_include_begin, record_include_end)
5849         (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5850         (process_xcoff_symbol, read_symbol)
5851         (function_outside_compilation_unit_complaint)
5852         (scan_xcoff_symtab): Update.
5853         * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5854         * buildsym.c (finish_block_internal, make_blockvector)
5855         (end_symtab_get_static_block, augment_type_symtab): Update.
5856         * dtrace-probe.c (dtrace_process_dof)
5857         (dtrace_static_probe_ops::get_probes): Update.
5858         * complaints.h (struct complaint): Don't declare.
5859         (symfile_complaints): Remove.
5860         (complaint_internal): Remove "complaints" parameter.
5861         (complaint): Likewise.
5862         (clear_complaints): Likewise.
5863         * symfile.c (syms_from_objfile_1, finish_new_objfile)
5864         (reread_symbols): Update.
5865         * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5866         (dwarf2_frame_cache, decode_frame_entry): Update.
5867         * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5868         * objc-lang.c (lookup_objc_class, lookup_child_selector)
5869         (info_selectors_command): Update.
5870         * macrotab.c (macro_include, check_for_redefinition)
5871         (macro_undef): Update.
5872         * objfiles.c (filter_overlapping_sections): Update.
5873         * stabsread.c (invalid_cpp_abbrev_complaint)
5874         (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5875         (define_symbol, error_type, read_type, rs6000_builtin_type)
5876         (stabs_method_name_from_physname, read_member_functions)
5877         (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5878         (attach_fields_to_type, complain_about_struct_wipeout)
5879         (read_range_type, read_args, common_block_start)
5880         (common_block_end, cleanup_undefined_types_1, scan_file_globals):
5881         Update.
5882         * mdebugread.c (index_complaint, unknown_ext_complaint)
5883         (basic_type_complaint, bad_tag_guess_complaint)
5884         (bad_rfd_entry_complaint, unexpected_type_code_complaint)
5885         (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
5886         (parse_procedure, parse_lines)
5887         (function_outside_compilation_unit_complaint)
5888         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
5889         (bad_tag_guess_complaint, reg_value_complaint): Update.
5890         * cp-support.c (demangled_name_complaint): Update.
5891         * macroscope.c (sal_macro_scope): Update.
5892         * dwarf-index-write.c (class debug_names): Update.
5893
5894 2018-05-23  Tom Tromey  <tom@tromey.com>
5895
5896         * complaints.c (clear_complaints): Remove "noisy" parameter.
5897         * complaints.h (clear_complaints): Update.
5898         * symfile.c (syms_from_objfile_1, finish_new_objfile)
5899         (reread_symbols): Update.
5900
5901 2018-05-23  Tom Tromey  <tom@tromey.com>
5902
5903         * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
5904         SUBSEQUENT_MESSAGE.
5905         (vcomplaint, clear_complaints): Update.
5906         (symfile_explanations): Remove some messages.
5907
5908 2018-05-23  Tom Tromey  <tom@tromey.com>
5909
5910         * complaints.c (internal_complaint): Remove.
5911         * complaints.h (internal_complaint): Remove.
5912
5913 2018-05-22  Maciej W. Rozycki  <macro@mips.com>
5914
5915         * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
5916
5917 2018-05-22  Pedro Alves  <palves@redhat.com>
5918
5919         * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
5920         (remote_fileio_badfd, remote_fileio_return_errno)
5921         (remote_fileio_return_success, remote_fileio_func_open)
5922         (remote_fileio_func_open, remote_fileio_func_close)
5923         (remote_fileio_func_read, remote_fileio_func_write)
5924         (remote_fileio_func_lseek, remote_fileio_func_rename)
5925         (remote_fileio_func_unlink, remote_fileio_func_stat)
5926         (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5927         (remote_fileio_func_isatty, remote_fileio_func_system): Add
5928         remote_target parameter.
5929         (remote_fio_func_map) <func>: Add remote_target parameter.
5930         (do_remote_fileio_request, remote_fileio_request):
5931         * remote-fileio.h (remote_fileio_request):
5932         * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
5933         remote_target parameter.
5934         (remote_notif_process, handle_notification): Adjust to pass down
5935         the remote.
5936         (remote_notif_state_allocate): Add remote_target parameter.  Save
5937         it.
5938         * remote-notif.h (struct remote_target): Forward declare.
5939         (struct notif_client) <parse, ack, can_get_pending_events>: Add
5940         remote_target parameter.
5941         (struct remote_notif_state) <remote>: New field.
5942         (remote_notif_ack, remote_notif_parse): Add remote_target
5943         parameter.
5944         (remote_notif_state_allocate, remote_notif_state_allocate): Add
5945         remote_target parameter.
5946         * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
5947         (threads_listing_context, rmt_thread_action, protocol_feature)
5948         (packet_reg, stop_reply, stop_reply_p, enum packet_support)
5949         (packet_result, struct threads_listing_context, remote_state):
5950         Move definitions and declarations higher up.
5951         (remote_target) <~remote_target>: Declare.
5952         (remote_download_command_source, remote_file_put, remote_file_get)
5953         (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
5954         (remote_hostio_pread_vFile, remote_hostio_send_command)
5955         (remote_hostio_set_filesystem, remote_hostio_open)
5956         (remote_hostio_close, remote_hostio_unlink, remote_state)
5957         (get_remote_state, get_remote_packet_size, get_memory_packet_size)
5958         (get_memory_write_packet_size, get_memory_read_packet_size)
5959         (append_pending_thread_resumptions, remote_detach_1)
5960         (append_resumption, remote_resume_with_vcont)
5961         (add_current_inferior_and_thread, wait_ns, wait_as)
5962         (process_stop_reply, remote_notice_new_inferior)
5963         (process_initial_stop_replies, remote_add_thread)
5964         (btrace_sync_conf, remote_btrace_maybe_reopen)
5965         (remove_new_fork_children, kill_new_fork_children)
5966         (discard_pending_stop_replies, stop_reply_queue_length)
5967         (check_pending_events_prevent_wildcard_vcont)
5968         (discard_pending_stop_replies_in_queue, stop_reply)
5969         (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
5970         (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
5971         (remote_interrupt_as, remote_interrupt_ns)
5972         (remote_get_noisy_reply, remote_query_attached)
5973         (remote_add_inferior, remote_current_thread, get_current_thread)
5974         (set_thread, set_general_thread, set_continue_thread)
5975         (set_general_process, write_ptid)
5976         (remote_unpack_thread_info_response, remote_get_threadinfo)
5977         (parse_threadlist_response, remote_get_threadlist)
5978         (remote_threadlist_iterator, remote_get_threads_with_ql)
5979         (remote_get_threads_with_qxfer)
5980         (remote_get_threads_with_qthreadinfo, extended_remote_restart)
5981         (get_offsets, remote_check_symbols, remote_supported_packet)
5982         (remote_query_supported, remote_packet_size)
5983         (remote_serial_quit_handler, remote_detach_pid)
5984         (remote_vcont_probe, remote_resume_with_hc)
5985         (send_interrupt_sequence, interrupt_query)
5986         (remote_notif_get_pending_events, fetch_register_using_p)
5987         (send_g_packet, process_g_packet, fetch_registers_using_g)
5988         (store_register_using_P, store_registers_using_G)
5989         (set_remote_traceframe, check_binary_download)
5990         (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
5991         (remote_xfer_live_readonly_partial, remote_read_bytes)
5992         (remote_send_printf, remote_flash_write, readchar)
5993         (remote_serial_write, putpkt, putpkt_binary, skip_frame)
5994         (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
5995         (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
5996         (extended_remote_disable_randomization, extended_remote_run)
5997         (send_environment_packet, extended_remote_environment_support)
5998         (extended_remote_set_inferior_cwd, remote_write_qxfer)
5999         (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6000         (packet_command): Now methods of ...
6001         (remote_target): ... this class.
6002         (m_remote_state) <remote_target>: New field.
6003         (struct remote_state) <stop_reply_queue,
6004         remote_async_inferior_event_token, wait_forever_enabled_p>: New
6005         fields.
6006         (remote_state::remote_state): Allocate stop_reply_queue.
6007         (remote_state): Delete global.
6008         (get_remote_state_raw): Delete.
6009         (remote_target::get_remote_state): Allocate m_remote_state on
6010         demand.
6011         (get_current_remote_target): New.
6012         (remote_ops, extended_remote_ops): Delete.
6013         (wait_forever_enabled_p, remote_async_inferior_event_token):
6014         Delete, moved to struct remote_state.
6015         (remote_target::close): Delete self.  Destruction bits split to
6016         ...
6017         (remote_target::~remote_target): ... this.
6018         (show_memory_packet_size): Adjust to use
6019         get_current_remote_target.
6020         (struct protocol_feature) <func>: Add remote_target parameter.
6021         All callers adjusted.
6022         (curr_quit_handler_target): New.
6023         (remote_serial_quit_handler): Reimplement.
6024         (remote_target::open_1): Adjust to use get_current_remote_target.
6025         Heap-allocate remote_target/extended_remote_target instances.
6026         (vcont_builder::vcont_builder): Add remote_target parameter, and
6027         save it in m_remote.  All callers adjusted.
6028         (vcont_builder::m_remote): New field.
6029         (vcont_builder::restart, vcont_builder::flush)
6030         (vcont_builder::push_action): Use it.
6031         (remote_target::commit_resume): Use it.
6032         (struct queue_iter_param) <remote>: New field.
6033         (remote_target::remove_new_fork_children): Fill in 'remote' field.
6034         (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6035         (check_pending_event_prevents_wildcard_vcont_callback)
6036         (remote_target::check_pending_events_prevent_wildcard_vcont)
6037         (remote_target::discard_pending_stop_replies)
6038         (remote_target::discard_pending_stop_replies_in_queue)
6039         (remote_target::remote_notif_remove_queued_reply): Fill in
6040         'remote' field.
6041         (remote_notif_get_pending_events): New.
6042         (remote_target::readchar, remote_target::remote_serial_write):
6043         Save/restore curr_quit_handler_target.
6044         (putpkt): New.
6045         (kill_new_fork_children): Fill in 'remote' field.
6046         (packet_command): Use get_current_remote_target, defer to
6047         remote_target method of same name.
6048         (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6049         parameter, and save it in m_remote.  All callers adjusted.
6050         (scoped_remote_fd::release): Use m_remote.
6051         (scoped_remote_fd::m_remote): New field.
6052         (remote_file_put, remote_file_get, remote_file_delete): Use
6053         get_current_remote_target, defer to remote_target method of same
6054         name.
6055         (remote_btrace_reset): Add remote_state paremeter.  Update all
6056         callers.
6057         (remote_async_inferior_event_handler). Pass down 'data'.
6058         (remote_new_objfile): Use get_current_remote_target.
6059         (remote_target::vcont_r_supported): New.
6060         (set_range_stepping): Use get_current_remote_target and
6061         remote_target::vcont_r_supported.
6062         (_initialize_remote): Don't allocate 'remote_state' and
6063         'stop_reply_queue' globals.
6064         * remote.h (struct remote_target): Forward declare.
6065         (getpkt, putpkt, remote_notif_get_pending_events): Add
6066         'remote_target' parameter.
6067
6068 2018-05-22  Pedro Alves  <palves@redhat.com>
6069
6070         * remote.c (vcont_builder): Now a class.  Make all data members
6071         private.
6072         (vcont_builder) <vcont_builder, restart, flush, push_action>:
6073         Declare methods.
6074         (vcont_builder_restart): Rename to ...
6075         (vcont_builder::restart): ... this.
6076         (vcont_builder_flush): Rename to ...
6077         (vcont_builder::flush): ... this.
6078         (vcont_builder_push_action): Rename to ...
6079         (vcont_builder::push_action): ... this.
6080         (remote_target::commit_resume): Adjust.
6081
6082 2018-05-22  Pedro Alves  <palves@redhat.com>
6083
6084         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6085         (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6086         (get_fixed_memory_packet_size): New.
6087         (get_memory_packet_size): Use it.
6088         (set_memory_packet_size): Don't override the config size with
6089         DEFAULT_MAX_MEMORY_PACKET_SIZE.
6090         (show_memory_packet_size): Use get_fixed_memory_packet_size.
6091         Don't refer to get_memory_packet_size if not connected to a remote
6092         target.  Show "(default)" if configured size is 0.
6093
6094 2018-05-22  Pedro Alves  <palves@redhat.com>
6095
6096         * remote.c (remote_target::mourn_inferior): Move
6097         discard_pending_stop_replies call here from ...
6098         (_initialize_remote): ... here.
6099
6100 2018-05-22  Pedro Alves  <palves@redhat.com>
6101
6102         * remote.c (compare_section_command): Remove set_general_process
6103         call.
6104
6105 2018-05-22  Pedro Alves  <palves@redhat.com>
6106
6107         * remote.c (struct packet_reg, struct remote_arch_state):
6108         Move higher up in the file.
6109         (remote_state) <m_arch_states>: Store remote_arch_state values
6110         instead of remote_arch_state pointers.
6111         (remote_state::get_remote_arch_state): Adjust.
6112
6113 2018-05-22  Pedro Alves  <palves@redhat.com>
6114
6115         * remote.c: Include <unordered_map>.
6116         (remote_state): Now a class.
6117         (remote_state) <get_remote_arch_state>: Declare method.
6118         <get_remote_arch_state>: New field.
6119         (remote_arch_state) <remote_arch_state>: Declare ctor.
6120         <regs>: Now a unique_ptr.
6121         (remote_gdbarch_data_handle): Delete.
6122         (get_remote_arch_state): Delete.
6123         (remote_state::get_remote_arch_state): New.
6124         (get_remote_state): Adjust to call remote_state's
6125         get_remote_arch_state method.
6126         (init_remote_state): Delete, bits factored out to ...
6127         (remote_arch_state::remote_arch_state): ... this new method.
6128         (get_remote_packet_size, get_memory_packet_size)
6129         (process_g_packet, remote_target::fetch_registers)
6130         (remote_target::prepare_to_store, store_registers_using_G)
6131         (remote_target::store_registers, remote_target::get_trace_status):
6132         Adjust to call remote_state's method.
6133         (_initialize_remote): Remove reference to
6134         remote_gdbarch_data_handle.
6135
6136 2018-05-22  Pedro Alves  <palves@redhat.com>
6137
6138         * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6139         pread>: New method declarations.
6140         (remote_target::open_1): Adjust.
6141         (readahead_cache_invalidate): Rename to ...
6142         (readahead_cache::invalidate): ... this, and adjust to be a class
6143         method.
6144         (readahead_cache_invalidate_fd): Rename to ...
6145         (readahead_cache::invalidate_fd): ... this, and adjust to be a
6146         class method.
6147         (remote_hostio_pwrite): Adjust.
6148         (remote_hostio_pread_from_cache): Rename to ...
6149         (readahead_cache::pread): ... this, and adjust to be a class
6150         method.
6151         (remote_hostio_close): Adjust.
6152
6153 2018-05-22  Pedro Alves  <palves@redhat.com>
6154
6155         * remote.c (remote_hostio_close_cleanup): Delete.
6156         (class scoped_remote_fd): New.
6157         (remote_file_put, remote_file_get): Use it.
6158
6159 2018-05-22  Pedro Alves  <palves@redhat.com>
6160
6161         (struct vCont_action_support): Use bool and initialize all fields.
6162         (struct readahead_cache): Initialize all fields.
6163         (remote_state): Use bool and initialize all fields.
6164         (remote_state::remote_state, remote_state::~remote_state): New.
6165         (new_remote_state): Delete.
6166         (_initialize_remote): Use new to allocate remote_state.
6167
6168 2018-05-22  Pedro Alves  <palves@redhat.com>
6169             張俊芝  <zjz@zjz.name>
6170
6171         PR gdb/22973
6172         * c-exp.y: Include "c-support.h".
6173         (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6174         of tolower.  Use c_ident_is_alpha to scan names.
6175         * c-lang.c: Include "c-support.h".
6176         (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6177         ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6178         * c-support.h: New file, with bits factored out from ...
6179         * cp-name-parser.y: ... this file.
6180         Include "c-support.h".
6181         (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6182         c-support.h and renamed.
6183         (symbol_end, yylex): Adjust.
6184
6185 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
6186
6187         * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6188         parameter type to CORE_ADDR.
6189         * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6190         parameter type in declaration to CORE_ADDR.
6191         * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6192         target_auxv_search to get AT_HWCAP and use the result to get the
6193         target description.
6194         * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6195         to CORE_ADDR. Remove the cast of the return value to unsigned
6196         long. Fix error predicate of target_auxv_search.
6197         (ppc_linux_nat_target::read_description): Change the type of the
6198         hwcap variable to CORE_ADDR.
6199
6200 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
6201
6202         * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6203         if the size of fpscr is larger than 32 bits.
6204
6205 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
6206
6207         * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6208         (ppc32_linux_vsxregmap): New global.
6209         (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6210         regcache_supply_regset, and regcache_collect_regset.
6211         * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6212         * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6213         (fetch_vsx_register, store_vsx_register): Remove.
6214         (fetch_vsx_registers): Add regno parameter. Get regset using
6215         ppc_linux_vsxregset. Use regset to supply registers.
6216         (store_vsx_registers): Add regno parameter. Get regset using
6217         ppc_linux_vsxregset. Use regset to collect registers.
6218         (fetch_register): Call fetch_vsx_registers instead of
6219         fetch_vsx_register.
6220         (store_register): Call store_vsx_registers instead of
6221         store_vsx_register.
6222         (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6223         new regno parameter.
6224         (store_ppc_registers): Call store_vsx_registers with -1 for the
6225         new regno parameter.
6226         * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6227         (ppc_collect_vsxregset): Remove.
6228
6229 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
6230
6231         * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6232         offset fields.
6233         * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6234         for vector register offset fields.
6235         (ppc64_fbsd_reg_offsets): Likewise.
6236         * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6237         to vector register offset fields.
6238         * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6239         to vector register offset fields.
6240         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6241         vector register offset fields.
6242         * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6243         initializers for vector register offset fields.
6244         (rs6000_aix64_reg_offsets): Likewise.
6245         * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6246         (ppc_supply_vrregset): Remove.
6247         (ppc_collect_vrregset): Remove.
6248         * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6249         (ppc_linux_vrregset) : New function.
6250         (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6251         (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6252         (ppc32_linux_vrregset): Remove.
6253         (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6254         and use result instead of ppc32_linux_vrregset.
6255         (ppc32_linux_reg_offsets): Remove initializers for vector register
6256         offset fields.
6257         (ppc64_linux_reg_offsets): Likewise.
6258         * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6259         * ppc-linux-nat.c: Include regset.h.
6260         (gdb_vrregset_t): Adjust comment to account for little-endian
6261         mode.
6262         (supply_vrregset, fill_vrregset): Remove.
6263         (fetch_altivec_register, store_altivec_register): Remove.
6264         (fetch_altivec_registers): Add regno parameter. Get regset using
6265         ppc_linux_vrregset. Use regset to supply registers.
6266         (store_altivec_registers): Add regno parameter. Get regset using
6267         ppc_linux_vrregset. Use regset to collect registers.
6268         (fetch_register): Call fetch_altivec_registers instead of
6269         fetch_altivec_register.
6270         (store_register): Call store_altivec_registers instead of
6271         store_altivec_register.
6272         (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6273         the new regno parameter.
6274         (store_ppc_registers): Call store_altivec_registers with -1 for
6275         the new regno parameter.
6276
6277 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
6278
6279         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6280         (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6281         * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6282         (gdb_vrregset_t): Change array type size to
6283         PPC_LINUX_SIZEOF_VRREGSET.
6284         (gdb_vsxregset_t): Change array type size to
6285         PPC_LINUX_SIZEOF_VSXREGSET.
6286         * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6287         Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6288         PPC_LINUX_SIZEOF_VSXREGSET.
6289
6290 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
6291
6292         * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6293         * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6294         nat/ppc-linux.c.
6295         (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6296         ppc_linux_target_wordsize with tid.
6297         (ppc_linux_nat_target::read_description): Call ppc_linux_target
6298         wordsize with tid.
6299         * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6300         (ppc64_64bit_inferior_p): Add static and inline specifiers.
6301         (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6302         tid parameter. Remove static specifier.
6303         * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6304         (ppc_linux_target_wordsize): New declaration.
6305
6306 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
6307
6308         * arch/ppc-linux-common.c: New file.
6309         * arch/ppc-linux-common.h: New file.
6310         * arch/ppc-linux-tdesc.h: New file.
6311         * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6312         * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6313         (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6314         arch/ppc-linux-tdesc.h.
6315         * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6316         arch/ppc-linux-tdesc.h.
6317         (ppc_linux_nat_target::read_description): Remove target
6318         description matching code. Fill a ppc_linux_features struct and
6319         call ppc_linux_match_description with it. Move comment about ISA
6320         2.05 to ppc-linux-common.c.
6321         * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6322         arch/ppc-linux-tdesc.h.
6323         (ppc_linux_core_read_description): Remove target description
6324         matching code. Fill a ppc_linux_features struct and call
6325         ppc_linux_match_description with it.
6326         * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6327         (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6328         (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6329         (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6330         (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6331         (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6332         (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6333         (tdesc_powerpc_e500l): Remove.
6334
6335 2018-05-22  Joel Brobecker  <brobecker@adacore.com>
6336
6337         * ada-lang.c (catch_assert_command): Pass empty string instead
6338         of NULL for excep_string argument.
6339
6340 2018-05-22  Maciej W. Rozycki  <macro@mips.com>
6341
6342         * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6343         the width of the requested register exceeds the width of the
6344         `ptrace' data type.
6345
6346 2018-05-21  Tom Tromey  <tom@tromey.com>
6347
6348         * printcmd.c (output_command): Remove.
6349         (output_command_const): Rename to output_command.
6350         * valprint.h (output_command): Rename from output_command_const.
6351         * tracepoint.c (trace_dump_actions): Call output_command.
6352
6353 2018-05-21  Tom Tromey  <tom@tromey.com>
6354
6355         * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6356         (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6357         * ada-lang.h (create_ada_exception_catchpoint): Update.
6358         * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6359         std::string.
6360         (create_excep_cond_exprs, ~ada_catchpoint)
6361         (should_stop_exception, print_one_exception)
6362         (print_mention_exception, print_recreate_exception): Update.
6363         (ada_get_next_arg): Remove.
6364         (catch_ada_exception_command_split): Use std::string.  Change type
6365         of "excep_string", "cond_string".
6366         (catch_ada_exception_command): Update.
6367         (create_ada_exception_catchpoint): Change type of excep_string.
6368         (ada_exception_sal): Remove excep_string parameter.
6369         (~ada_catchpoint): Remove.
6370
6371 2018-05-21  Tom Tromey  <tom@tromey.com>
6372
6373         * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6374         cleanup.
6375
6376 2018-05-21  Tom Tromey  <tom@tromey.com>
6377
6378         * ada-lang.c (ada_exception_message_1, ada_exception_message):
6379         Return unique_xmalloc_ptr.
6380         (print_it_exception): Update.
6381
6382 2018-05-21  Tom Tromey  <tom@tromey.com>
6383
6384         * tracepoint.c (trace_dump_actions): Use std::string.
6385
6386 2018-05-21  Tom Tromey  <tom@tromey.com>
6387
6388         * symfile.c (reread_symbols): Use std::string for original_name.
6389
6390 2018-05-21  Tom Tromey  <tom@tromey.com>
6391
6392         * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6393         (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN.  Default
6394         constructor.
6395
6396 2018-05-20  Simon Marchi  <simon.marchi@polymtl.ca>
6397
6398         * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6399         instance to...
6400         (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6401         * objfiles.c (get_objfile_bfd_data): Allocate
6402         objfile_per_bfd_storage with obstack_new when allocating on
6403         obstack.
6404
6405 2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
6406
6407         * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6408         OBSTACK_ZALLOC.
6409         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6410         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6411         * mdebugread.c (mdebug_build_psymtabs): Likewise.
6412         (add_pending): Likewise.
6413         (parse_symbol): Likewise.
6414         (parse_partial_symbols): Likewise.
6415         (psymtab_to_symtab_1): Likewise.
6416         (new_psymtab): Likewise.
6417         (elfmdebug_build_psymtabs): Likewise.
6418         * minsyms.c (terminate_minimal_symbol_table): Likewise.
6419         * objfiles.c (get_objfile_bfd_data): Likewise.
6420         (objfile_register_static_link): Likewise.
6421         * psymtab.c (allocate_psymtab): Likewise.
6422         * stabsread.c (read_member_functions): Likewise.
6423         * xcoffread.c (xcoff_end_psymtab): Likewise.
6424
6425 2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
6426
6427         * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6428         compiler supports std::is_trivially_constructible.
6429         * common/poison.h: Include obstack.h.
6430         (IsMallocable): Define to is_trivially_constructible if the
6431         compiler supports it, define to true_type otherwise.
6432         (xobnew): New.
6433         (XOBNEW): Redefine.
6434         (xobnewvec): New.
6435         (XOBNEWVEC): Redefine.
6436         * gdb_obstack.h (obstack_zalloc): New.
6437         (OBSTACK_ZALLOC): Redefine.
6438         (obstack_calloc): New.
6439         (OBSTACK_CALLOC): Redefine.
6440         (obstack_new): New.
6441         * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6442         (gdbarch_obstack): New declaration in gdbarch.h, definition in
6443         gdbarch.c.
6444         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6445         obstack_calloc/obstack_zalloc.
6446         (gdbarch_obstack_zalloc): Remove.
6447         * target-descriptions.c (tdesc_data_init): Use obstack_new.
6448
6449 2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6450
6451         * stack.c (backtrace_command_1): Remove useless variable int i.
6452
6453 2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6454
6455         * stack.c (print_frame_info): Fix comment.
6456
6457 2018-05-18  Tom Tromey  <tom@tromey.com>
6458
6459         * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6460         <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6461         (~dwarf2_per_objfile): Update
6462         (dwarf2_get_dwz_file): Use new.
6463         * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6464         unique_ptr.
6465
6466 2018-05-18  Tom Tromey  <tom@tromey.com>
6467
6468         * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6469         unique_ptr.
6470         * dwarf2read.c (struct dwp_file): Add constructor and
6471         initializers.
6472         (open_and_init_dwp_file): Return a unique_ptr.
6473         (dwarf2_per_objfile, create_dwp_hash_table)
6474         (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6475         (lookup_dwo_unit_in_dwp): Update.
6476         (open_and_init_dwp_file, get_dwp_file): Update.
6477
6478 2018-05-18  Tom Tromey  <tom@tromey.com>
6479
6480         * dwarf2read.c (dwarf2_per_objfile): Update.
6481         (struct mapped_index): Add initializers.
6482         (dwarf2_read_index): Use new.
6483         (dw2_symtab_iter_init): Update.
6484         * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6485         unique_ptr.
6486
6487 2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
6488
6489         * dwarf2read.c (mapped_index) <total_size>: Remove.
6490
6491 2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
6492
6493         * unittests/format_pieces-selftests.c (test_format_specifier):
6494         Add ARI comments.
6495
6496 2018-05-18  Tom Tromey  <tom@tromey.com>
6497
6498         * c-typeprint.c (maybe_print_hole): New function.
6499         (c_print_type_struct_field_offset): Update.
6500         (c_type_print_base_struct_union): Call maybe_print_hole.
6501
6502 2018-05-17  Keith Seitz  <keiths@redhat.com>
6503
6504         * breakpoint.c (build_bpstat_chain): New function, moved from
6505         bpstat_stop_status.
6506         (bpstat_stop_status): Add optional parameter, `stop_chain'.
6507         If no stop chain is passed, call build_bpstat_chain to build it.
6508         * breakpoint.h (build_bpstat_chain): Declare.
6509         (bpstat_stop_status): Move documentation here from breakpoint.c.
6510         * infrun.c (handle_signal_stop): Before eliding inlined frames,
6511         build the stop chain and pass it to skip_inline_frames.
6512         Pass this stop chain to bpstat_stop_status.
6513         * inline-frame.c: Include breakpoint.h.
6514         (stopped_by_user_bp_inline_frame): New function.
6515         (skip_inline_frames): Add parameter `stop_chain'.
6516         Move documention to inline-frame.h.
6517         If non-NULL, use stopped_by_user_bp_inline_frame to determine
6518         whether the frame should be elided.
6519         * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6520         Add moved documentation and update for new parameter.
6521
6522 2018-05-17  Simon Marchi  <simon.marchi@ericsson.com>
6523
6524         PR cli/14975
6525         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6526         unittests/format_pieces-selftests.c.
6527         * common/format.h (format_piece) <operator==>: New.
6528         (format_pieces) <operator[]>: Remove.
6529         * common/format.c (format_pieces::format_pieces): Handle \e.
6530         * unittests/format_pieces-selftests.c: New.
6531
6532 2018-05-17  Tom Tromey  <tom@tromey.com>
6533
6534         PR symtab/23010:
6535         * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6536         (dw2_instantiate_symtab): Add skip_partial parameter.
6537         (dw2_find_last_source_symtab, dw2_map_expand_apply)
6538         (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6539         (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6540         (dw2_expand_symtabs_matching_one)
6541         (dw2_find_pc_sect_compunit_symtab)
6542         (dw2_debug_names_lookup_symbol)
6543         (dw2_debug_names_expand_symtabs_for_function): Update.
6544         (init_cutu_and_read_dies): Add skip_partial parameter.
6545         (process_psymtab_comp_unit, build_type_psymtabs_1)
6546         (process_skeletonless_type_unit, load_partial_comp_unit)
6547         (psymtab_to_symtab_1): Update.
6548         (load_full_comp_unit): Add skip_partial parameter.
6549         (process_imported_unit_die, dwarf2_read_addr_index)
6550         (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6551         (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6552         (read_signatured_type): Update.
6553
6554 2018-05-17  Simon Marchi  <simon.marchi@ericsson.com>
6555
6556         * value.c (release_value): Remove unused variable.
6557         (record_latest_value): Likewise.
6558         (access_value_history): Likewise.
6559         (preserve_values): Likewise.
6560
6561 2018-05-17  Tom Tromey  <tom@tromey.com>
6562
6563         * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6564         Initialize.
6565
6566 2018-05-16  Maciej W. Rozycki  <macro@mips.com>
6567
6568         PR gdb/22286
6569         * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6570         Also handle registers whose width is not a multiple of
6571         PTRACE_TYPE_RET.
6572         (linux_nat_trad_target::store_register): Likewise.
6573
6574 2018-05-16  Tom Tromey  <tom@tromey.com>
6575
6576         * gdbcore.h (core_bfd): Redefine.
6577         * corelow.c (core_target::close): Update.
6578         (core_target_open): Update.
6579         * progspace.h (struct program_space) <cbfd>: Now a
6580         gdb_bfd_ref_ptr.
6581
6582 2018-05-16  Tom Tromey  <tom@tromey.com>
6583
6584         PR cli/19551:
6585         * symfile-add-flags.h (enum symfile_add_flags)
6586         <SYMFILE_NOT_FILENAME>: New constant.
6587         * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME.  Get
6588         objfile name from BFD.
6589         (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6590         * minidebug.c (find_separate_debug_file_in_section): Put
6591         ".gnu_debugdata" into BFD's file name.
6592
6593 2018-05-16  Simon Marchi  <simon.marchi@ericsson.com>
6594
6595         * regcache.c (regcache_read_ftype, regcache_write_ftype):
6596         Remove.
6597
6598 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
6599
6600         PR binutils/21446
6601         * aarch64-tdep.c (aarch64_analyze_prologue,
6602         aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6603         Indicate not interested in errors.
6604
6605 2018-05-15  Maciej W. Rozycki  <macro@mips.com>
6606
6607         * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6608         Supply the MIPS_ZERO_REGNUM register.
6609
6610 2018-05-15  Maciej W. Rozycki  <macro@mips.com>
6611
6612         * mips-tdep.c (mask_address_var): Make variable static.
6613
6614 2018-05-14  Tom Tromey  <tom@tromey.com>
6615
6616         * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6617
6618 2018-05-11  Andrew Burgess  <andrew.burgess@embecosm.com>
6619
6620         * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6621         FXSAVE_ADDR for the mxcsr register.
6622
6623 2018-05-11  Max Filippov  <jcmvbkbc@gmail.com>
6624
6625         * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6626
6627 2018-05-11  Pedro Alves  <palves@redhat.com>
6628
6629         * corelow.c (core_target) <core_target>: No longer inline.
6630         Initialize m_core_gdbarch, m_core_vec and build the section table
6631         here.
6632         <~core_target>: New.
6633         <core_gdbarch, get_core_register_section>: New methods.
6634         <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6635         factored out from ...
6636         <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6637         (core_ops): Delete.
6638         (sniff_core_bfd): Add gdbarch parameter.
6639         (core_close): Delete, merged into ...
6640         (core_target::close): ... here.  Delete self.
6641         (core_close_cleanup): Delete.
6642         (core_target_open): Allocate a core_target on the heap.  Use a
6643         unique_ptr instead of a cleanup.  Bits moved into the core_target
6644         ctor.  Adjust to use core_target methods instead of globals.
6645         (get_core_register_section): Rename to ...
6646         (core_target::get_core_register_section): ... this and adjust.
6647         (struct get_core_registers_cb_data): New.
6648         (get_core_registers_cb): Use it.  Use bool.
6649         (core_target::fetch_registers, core_target::files_info)
6650         (core_target::xfer_partial, core_target::read_description)
6651         (core_target::pid_to, core_target::thread_name): Adjust to
6652         reference class fields instead of globals.
6653         * target.h (struct target_ops_deleter, target_ops_up): New.
6654
6655 2018-05-11  Pedro Alves  <palves@redhat.com>
6656
6657         * corefile.c (core_file_command): Move to corelow.c.
6658         * corelow.c (the_core_target): Delete.
6659         (core_file_command): Moved from corefile.c.  Check exec_bfd
6660         instead of the_core_target.  Use target_detach instead of calling
6661         into the_core_target directly.
6662         (maybe_say_no_core_file_now): New.
6663         (core_target::detach): Use it.
6664         (_initialize_corelow): Remove references to the_core_target.
6665         * gdbcore.h (the_core_target): Delete.
6666
6667 2018-05-11  Tom Tromey  <tromey@redhat.com>
6668             Pedro Alves  <palves@redhat.com>
6669
6670         * corefile.c (core_bfd): Remove.
6671         * gdbcore.h (core_bfd): Now a macro.
6672         * progspace.h (struct program_space) <cbfd>: New field.
6673
6674 2018-05-11  Tom Tromey  <tom@tromey.com>
6675
6676         * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6677         gdb::def_vector.
6678
6679 2018-05-10  Tom Tromey  <tom@tromey.com>
6680
6681         * configure: Rebuild.
6682         * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6683
6684 2018-05-10  Joel Brobecker  <brobecker@adacore.com>
6685
6686         PR server/23158:
6687         * regformats/regdat.sh: Adjust script, following the addition
6688         of the new expedite_regs parameter to init_target_desc.
6689
6690 2018-05-10  Omair Javaid  <omair.javaid@linaro.org>
6691     
6692         PR gdb/23127
6693         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6694         set_gdbarch_significant_addr_bit.
6695         * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6696         set_gdbarch_significant_addr_bit.
6697         * utils.c (address_significant): Update to sign extend addr.
6698
6699 2018-05-09  Max Filippov  <jcmvbkbc@gmail.com>
6700
6701         * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6702         (xtensa_linux_init_abi): Limit tdep->num_regs by
6703         tdep->num_nopriv_regs.
6704         * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6705         tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6706         not initialized.
6707
6708 2018-05-08  Simon Marchi  <simon.marchi@ericsson.com>
6709
6710         * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6711
6712 2018-05-08  Andrew Burgess  <andrew.burgess@embecosm.com>
6713
6714         * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6715         (I387_MXCSR_INIT_VAL): New constant.
6716         * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6717         buffer if it was supplied by the inferior.
6718         * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6719         (i387_xsave_get_clear_bv): New function.
6720         (i387_supply_xsave): Only read x87 control registers from the
6721         xsave buffer if the feature is enabled, and the state will have
6722         been written, otherwise, provide a suitable default.
6723         (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6724         including x87 control registers.  Update control registers if they
6725         have changed from the default value, and mark features as enabled
6726         as required.
6727         * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6728
6729 2018-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
6730
6731         * spu-tdep.c (info_spu_event_command): Fix output formatting.
6732
6733 2018-05-07  Tom Tromey  <tom@tromey.com>
6734
6735         * configure: Rebuild.
6736         * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6737
6738 2018-05-07  Tom Tromey  <tom@tromey.com>
6739
6740         PR tdep/20362:
6741         * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6742         bit.  Use correct value for VDIV.
6743
6744 2018-05-04  Tom Tromey  <tom@tromey.com>
6745
6746         * configure: Rebuild.
6747         * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6748
6749 2018-05-04  Tom Tromey  <tom@tromey.com>
6750
6751         * linux-record.c (record_linux_system_call) <case
6752         RECORD_SYS_RECVFROM>: Add "break".
6753
6754 2018-05-04  Tom Tromey  <tom@tromey.com>
6755
6756         * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6757         Add missing "break".
6758         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6759         Add missing "break".
6760
6761 2018-05-04  Tom Tromey  <tom@tromey.com>
6762
6763         * rs6000-tdep.c (ppc_process_record_op4)
6764         (ppc_process_record_op63): Add fall-through comment.
6765
6766 2018-05-04  Tom Tromey  <tom@tromey.com>
6767
6768         * i386-tdep.c (i386_process_record): Add fall-through comment.
6769
6770 2018-05-04  Tom Tromey  <tom@tromey.com>
6771
6772         * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6773         comment.
6774
6775 2018-05-04  Tom Tromey  <tom@tromey.com>
6776
6777         * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6778         * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6779         * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6780         comment.
6781         * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6782         comment.
6783         * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6784         comment.
6785
6786 2018-05-04  Tom Tromey  <tom@tromey.com>
6787
6788         * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6789
6790 2018-05-04  Tom Tromey  <tom@tromey.com>
6791
6792         * s390-tdep.c (s390_process_record): Fix fall-through comments.
6793         * xcoffread.c (scan_xcoff_symtab): Move comment later.
6794         * symfile.c (section_is_mapped): Fix fall-through comment.
6795         * stabsread.c (define_symbol, read_member_functions): Fix
6796         fall-through comment.
6797         * s390-linux-tdep.c (s390_process_record): Fix fall-through
6798         comment.
6799         * remote.c (remote_wait_as): Fix fall-through comment.
6800         * p-exp.y (yylex): Fix fall-through comment.
6801         * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6802         comment.
6803         * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6804         * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6805         * jv-exp.y (yylex): Fix fall-through comment.
6806         * go-exp.y (lex_one_token): Fix fall-through comment.
6807         * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6808         fall-through comment.
6809         * f-exp.y (yylex): Fix fall-through comment.
6810         * dwarf2read.c (process_die): Fix fall-through comments.
6811         * dbxread.c (process_one_symbol): Fix fall-through comment.
6812         * d-exp.y (lex_one_token): Fix fall-through comment.
6813         * cp-name-parser.y (yylex): Fix fall-through comment.
6814         * coffread.c (coff_symtab_read): Fix fall-through comment.
6815         * c-exp.y (lex_one_token): Fix fall-through comment.
6816         * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6817         comment.
6818         * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6819         comment.
6820
6821 2018-05-04  Tom Tromey  <tom@tromey.com>
6822
6823         PR python/22730:
6824         * NEWS: Mention gdb.execute change.
6825         * gdbcmd.h (execute_control_command): Don't declare.
6826         * python/python.c (execute_gdb_command): Use read_command_lines_1,
6827         execute_control_commands, execute_control_commands_to_string.
6828         * cli/cli-script.h (execute_control_commands)
6829         (execute_control_commands_to_string): Declare.
6830         (execute_control_command): Add from_tty parameter.
6831         * cli/cli-script.c (execute_control_commands)
6832         (execute_control_commands_to_string): New functions.
6833         (execute_user_command): Use execute_control_commands.
6834         (execute_control_command_1): Add "from_tty" parameter.  Update.
6835         (execute_control_command): Likewise.
6836
6837 2018-05-04  Tom Tromey  <tom@tromey.com>
6838
6839         PR python/22731:
6840         * NEWS: Mention that breakpoint commands are writable.
6841         * python/py-breakpoint.c (bppy_set_commands): New function.
6842         (breakpoint_object_getset) <"commands">: Use it.
6843
6844 2018-05-04  Tom Tromey  <tom@tromey.com>
6845
6846         * tracepoint.c (actions_command): Update.
6847         * mi/mi-cmd-break.c (mi_command_line_array)
6848         (mi_command_line_array_cnt, mi_command_line_array_ptr)
6849         (mi_read_next_line): Remove.
6850         (mi_cmd_break_commands): Update.
6851         * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6852         function_view.
6853         * cli/cli-script.c (get_command_line): Update.
6854         (process_next_line): Use function_view.  Constify.
6855         (recurse_read_control_structure, read_command_lines)
6856         (read_command_lines_1): Change argument types to function_view.
6857         (do_define_command, document_command): Update.
6858         * breakpoint.h (check_tracepoint_command): Don't declare.
6859         * breakpoint.c (check_tracepoint_command): Remove.
6860         (commands_command_1, create_tracepoint_from_upload): Update.
6861
6862 2018-05-04  Tom Tromey  <tom@tromey.com>
6863
6864         PR gdb/11750:
6865         * cli/cli-script.h (enum command_control_type) <define_control>:
6866         New constant.
6867         * cli/cli-script.c (multi_line_command_p): Handle define_control.
6868         (build_command_line, execute_control_command_1)
6869         (process_next_line): Likewise.
6870         (do_define_command): New function, extracted from define_command.
6871         (define_command): Use it.
6872
6873 2018-05-04  Tom Tromey  <tom@tromey.com>
6874
6875         * tracepoint.c (actions_command): Update.
6876         * cli/cli-script.h (read_command_lines): Update.
6877         * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6878         (MAX_TMPBUF): Remove define.
6879         (define_command): Use string_printf.
6880         (document_command): Likewise.
6881         * breakpoint.c (commands_command_1): Update.
6882
6883 2018-05-04  Tom Tromey  <tom@tromey.com>
6884
6885         * top.c (execute_command): Update.
6886         * cli/cli-script.h (print_command_lines): Now varargs.
6887         * cli/cli-script.c (print_command_lines): Now varargs.
6888         (execute_control_command_1) <case while_control, case if_control>:
6889         Update.
6890
6891 2018-05-04  Tom Tromey  <tom@tromey.com>
6892
6893         * tracepoint.c (all_tracepoint_actions): Rename from
6894         all_tracepoint_actions_and_cleanup.  Change return type.
6895         (actions_command, encode_actions_1, encode_actions)
6896         (trace_dump_actions, tdump_command): Update.
6897         * remote.c (remote_download_command_source): Update.
6898         * python/python.c (gdbpy_eval_from_control_command)
6899         (python_command, python_interactive_command): Update.
6900         * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6901         * guile/guile.c (guile_command)
6902         (gdbscm_eval_from_control_command, guile_command): Update.
6903         * compile/compile.c (compile_code_command)
6904         (compile_print_command, compile_to_object): Update.
6905         * cli/cli-script.h (struct command_lines_deleter): New.
6906         (counted_command_line): New typedef.
6907         (struct command_line): Add constructor, destructor.
6908         <body_list>: Remove.
6909         <body_list_0, body_list_1>: New members.
6910         (command_line_up): Remove typedef.
6911         (read_command_lines, read_command_lines_1, get_command_line):
6912         Update.
6913         (copy_command_lines): Don't declare.
6914         * cli/cli-script.c (build_command_line): Use "new".
6915         (get_command_line): Return counted_command_line.
6916         (print_command_lines, execute_user_command)
6917         (execute_control_command_1, while_command, if_command): Update.
6918         (realloc_body_list): Remove.
6919         (process_next_line, recurse_read_control_structure): Update.
6920         (read_command_lines, read_command_lines_1): Return counted_command_line.
6921         (free_command_lines): Use "delete".
6922         (copy_command_lines): Remove.
6923         (define_command, document_command, show_user_1): Update.
6924         * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
6925         a counted_command_line.
6926         * breakpoint.h (counted_command_line): Remove typedef.
6927         (breakpoint_set_commands): Update.
6928         * breakpoint.c (check_no_tracepoint_commands)
6929         (validate_commands_for_breakpoint): Update.
6930         (breakpoint_set_commands): Change commands to be a
6931         counted_command_line.
6932         (commands_command_1, update_dprintf_command_list)
6933         (create_tracepoint_from_upload): Update.
6934
6935 2018-05-04  Tom Tromey  <tom@tromey.com>
6936
6937         * cli/cli-decode.h (cmd_list_element): New constructor.
6938         (~cmd_list_element): New destructor.
6939         (struct cmd_list_element): Add initializers.
6940         * cli/cli-decode.c (do_add_cmd): Use "new".
6941         (delete_cmd): Use "delete".
6942
6943 2018-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
6944             Pedro Alves <palves@redhat.com>
6945
6946         PR breakpoints/19806 and support for PR external/20207.
6947         * NEWS: Mention Aarch64 watchpoint improvements.
6948         * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
6949         watchpoints and PR external/20207 watchpoints.
6950         * nat/aarch64-linux-hw-point.c
6951         (kernel_supports_any_contiguous_range): New.
6952         (aarch64_watchpoint_offset): New.
6953         (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
6954         (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
6955         (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
6956         (aarch64_align_watchpoint): New parameters aligned_offset_p and
6957         next_addr_orig_p.  Support PR external/20207 watchpoints.
6958         (aarch64_downgrade_regs): New.
6959         (aarch64_dr_state_insert_one_point): New parameters offset and
6960         addr_orig.
6961         (aarch64_dr_state_remove_one_point): Likewise.
6962         (aarch64_handle_breakpoint): Update caller.
6963         (aarch64_handle_aligned_watchpoint): Likewise.
6964         (aarch64_handle_unaligned_watchpoint): Support addr_orig and
6965         aligned_offset.
6966         (aarch64_linux_set_debug_regs): Remove const from state.  Call
6967         aarch64_downgrade_regs.
6968         (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
6969         * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
6970         (DR_CONTROL_MASK): ... this.
6971         (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
6972         (unsigned int aarch64_watchpoint_offset): New prototype.
6973         (aarch64_linux_set_debug_regs): Remove const from state.
6974         * utils.c (align_up, align_down): Move to ...
6975         * common/common-utils.c (align_up, align_down): ... here.
6976         * utils.h (align_up, align_down): Move to ...
6977         * common/common-utils.h (align_up, align_down): ... here.
6978
6979 2018-05-04  Joel Brobecker  <brobecker@adacore.com>
6980
6981         * sparc-tdep.c (sparc_structure_return_p): Re-implement to
6982         match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
6983         (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
6984         Re-implement to match the ABI as summarized in GCC's
6985         gcc/config/sparc/sparc.c.  All callers updated.
6986         (sparc32_store_arguments): Remove assertion.
6987
6988 2018-05-04  Tom Tromey  <tom@tromey.com>
6989
6990         * printcmd.c: Don't include tui.h.
6991         (decode_format): Use skip_spaces.
6992
6993 2018-05-04  Tom Tromey  <tom@tromey.com>
6994
6995         PR gdb/22619:
6996         * printcmd.c (last_count): New global.
6997         (x_command): Use saved count when repeating.
6998
6999 2018-05-04  Tom Tromey  <tom@tromey.com>
7000
7001         * nto-procfs.c (do_closedir_cleanup): Remove.
7002         (procfs_pidlist): Use gdb_dir_up.
7003         * procfs.c (do_closedir_cleanup): Remove.
7004         (proc_update_threads): Use gdb_dir_up.
7005         * common/filestuff.h (struct gdb_dir_deleter): New.
7006         (gdb_dir_up): New typedef.
7007
7008 2018-05-04  Tom Tromey  <tom@tromey.com>
7009
7010         * ada-lang.c (print_mention_exception): Use std::string.
7011
7012 2018-05-04  Tom Tromey  <tom@tromey.com>
7013
7014         * ada-lang.c (create_excep_cond_exprs): Update.
7015         (ada_exception_catchpoint_cond_string): Use std::string.
7016
7017 2018-05-04  Tom Tromey  <tom@tromey.com>
7018
7019         * ada-lang.c (xget_renaming_scope): Return std::string.
7020         (old_renaming_is_invisible): Update.
7021
7022 2018-05-04  Tom Tromey  <tom@tromey.com>
7023
7024         * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7025         (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7026
7027 2018-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
7028
7029         * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7030
7031 2018-05-04  Tom Tromey  <tom@tromey.com>
7032
7033         * remote.c (remote_query_supported_append): Change type.
7034         (remote_check_symbols): Update.
7035
7036 2018-05-04  Paul Pluzhnikov  <ppluzhnikov@google.com>
7037
7038         PR gdb/11420
7039         * configure.ac: Prepend libpython.
7040         * python/python-config.py: Likewise.
7041         * configure: Regenerate.
7042
7043 2018-05-03  Simon Marchi  <simon.marchi@ericsson.com>
7044
7045         * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7046
7047 2018-05-03  Pedro Alves  <palves@redhat.com>
7048
7049         * s390-linux-nat.c
7050         (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7051         override.  Write 'true' instead of '1'.
7052         (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7053         declaration.
7054
7055 2018-05-02  Pedro Alves  <palves@redhat.com>
7056
7057         * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7058         add_inf_child_target.
7059         * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7060         add_inf_child_target.
7061         * aix-thread.c (aix_thread_target_info): New.
7062         (aix_thread_target) <shortname, longname, doc>: Delete.
7063         <info>: New.
7064         * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7065         add_inf_child_target.
7066         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7067         add_inf_child_target.
7068         * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7069         add_inf_child_target.
7070         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7071         add_inf_child_target.
7072         * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7073         add_inf_child_target.
7074         * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7075         add_inf_child_target.
7076         * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7077         add_inf_child_target.
7078         * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7079         add_inf_child_target.
7080         * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7081         add_inf_child_target.
7082         * bfd-target.c (target_bfd_target_info): New.
7083         (target_bfd) <shortname, longname, doc>: Delete.
7084         <info>: New.
7085         * bsd-kvm.c (bsd_kvm_target_info): New.
7086         (bsd_kvm_target) <shortname, longname, doc>: Delete.
7087         <info>: New.
7088         (bsd_kvm_target::open): Rename to ...
7089         (bsd_kvm_target_open): ... this.  Adjust.
7090         * bsd-uthread.c (bsd_uthread_target_info): New.
7091         (bsd_uthread_target) <shortname, longname, doc>: Delete.
7092         <info>: New.
7093         * corefile.c (core_file_command): Adjust.
7094         * corelow.c (core_target_info): New.
7095         (core_target) <shortname, longname, doc>: Delete.
7096         <info>: New.
7097         (core_target::open): Rename to ...
7098         (core_target_open): ... this.  Adjust.
7099         * ctf.c (ctf_target_info): New.
7100         (ctf_target) <shortname, longname, doc>: Delete.
7101         <info>: New.
7102         (ctf_target::open): Rename to ...
7103         (ctf_target_open): ... this.
7104         (_initialize_ctf): Adjust.
7105         * exec.c (exec_target_info): New.
7106         (exec_target) <shortname, longname, doc>: Delete.
7107         <info>: New.
7108         (exec_target::open): Rename to ...
7109         (exec_target_open): ... this.
7110         * gdbcore.h (core_target_open): Declare.
7111         * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7112         * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7113         add_inf_child_target.
7114         * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7115         add_inf_child_target.
7116         * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7117         add_inf_child_target.
7118         * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7119         add_inf_child_target.
7120         * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7121         add_inf_child_target.
7122         * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7123         add_inf_child_target.
7124         * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7125         add_inf_child_target.
7126         * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7127         add_inf_child_target.
7128         * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7129         add_inf_child_target.
7130         * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7131         add_inf_child_target.
7132         * inf-child.c (inf_child_target_info): New.
7133         (inf_child_target::info): New.
7134         (inf_child_open_target): Remove 'target' parameter.  Use
7135         get_native_target instead.
7136         (inf_child_target::open): Delete.
7137         (add_inf_child_target): New.
7138         * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7139         Delete.
7140         <info>: New.
7141         (add_inf_child_target): Declare.
7142         (inf_child_open_target): Declare.
7143         * linux-thread-db.c (thread_db_target_info): New.
7144         (thread_db_target) <shortname, longname, doc>: Delete.
7145         <info>: New.
7146         * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7147         add_inf_child_target.
7148         * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7149         add_inf_child_target.
7150         * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7151         add_inf_child_target.
7152         * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7153         add_inf_child_target.
7154         * make-target-delegates (print_class): Adjust.
7155         * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7156         add_inf_child_target.
7157         * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7158         add_inf_child_target.
7159         * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7160         add_inf_child_target.
7161         * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7162         add_inf_child_target.
7163         * nto-procfs.c (nto_native_target_info): New.
7164         (nto_procfs_target_native) <shortname, longname, doc>:
7165         Delete.
7166         <info>: New.
7167         (nto_procfs_target_info): New.
7168         (nto_procfs_target_procfs) <shortname, longname, doc>:
7169         Delete.
7170         <info>: New.
7171         (init_procfs_targets): Adjust.
7172         * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7173         add_inf_child_target.
7174         * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7175         add_inf_child_target.
7176         * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7177         add_inf_child_target.
7178         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7179         add_inf_child_target.
7180         * ravenscar-thread.c (ravenscar_target_info): New.
7181         (ravenscar_thread_target) <shortname, longname, doc>:
7182         Delete.
7183         <info>: New.
7184         * record-btrace.c (record_btrace_target_info):
7185         (record_btrace_target) <shortname, longname, doc>: Delete.
7186         <info>: New.
7187         (record_btrace_target::open): Rename to ...
7188         (record_btrace_target_open): ... this.  Adjust.
7189         * record-full.c (record_longname, record_doc): New.
7190         (record_full_base_target) <shortname, longname, doc>: Delete.
7191         <info>: New.
7192         (record_full_target_info): New.
7193         (record_full_target): <shortname>: Delete.
7194         <info>: New.
7195         (record_full_core_open_1, record_full_open_1): Update comments.
7196         (record_full_base_target::open): Rename to ...
7197         (record_full_open): ... this.
7198         (cmd_record_full_restore): Update.
7199         (_initialize_record_full): Update.
7200         * remote-sim.c (remote_sim_target_info): New.
7201         (gdbsim_target) <shortname, longname, doc>: Delete.
7202         <info>: New.
7203         (gdbsim_target::open): Rename to ...
7204         (gdbsim_target_open): ... this.
7205         (_initialize_remote_sim): Adjust.
7206         * remote.c (remote_doc): New.
7207         (remote_target_info): New.
7208         (remote_target) <shortname, longname, doc>: Delete.
7209         <info>: New.
7210         (extended_remote_target_info): New.
7211         (extended_remote_target) <shortname, longname, doc>: Delete.
7212         <info>: New.
7213         (remote_target::open_1): Make static.  Adjust.
7214         * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7215         * s390-linux-nat.c (_initialize_s390_nat): Use
7216         add_inf_child_target.
7217         * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7218         add_inf_child_target.
7219         * sol-thread.c (thread_db_target_info): New.
7220         (sol_thread_target) <shortname, longname, doc>: Delete.
7221         <info>: New.
7222         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7223         add_inf_child_target.
7224         * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7225         add_inf_child_target.
7226         * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7227         add_inf_child_target.
7228         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7229         add_inf_child_target.
7230         * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7231         add_inf_child_target.
7232         * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7233         add_inf_child_target.
7234         * spu-linux-nat.c (_initialize_spu_nat): Use
7235         add_inf_child_target.
7236         * spu-multiarch.c (spu_multiarch_target_info): New.
7237         (spu_multiarch_target) <shortname, longname, doc>: Delete.
7238         <info>: New.
7239         * target-delegates.c: Regenerate.
7240         * target.c: Include <unordered_map>.
7241         (target_ops_p): Delete.
7242         (DEF_VEC_P(target_ops_p)): Delete.
7243         (target_factories): New.
7244         (test_target_info): New.
7245         (test_target_ops::info): New.
7246         (open_target): Adjust to use target_factories.
7247         (add_target_with_completer): Rename to ...
7248         (add_target): ... this.  Change prototype.  Register target_info
7249         and open callback in target_factories.  Register target_info in
7250         command context instead of target_ops.
7251         (add_target): Delete old implementation.
7252         (add_deprecated_target_alias): Change prototype.  Adjust.
7253         (the_native_target): New.
7254         (set_native_target, get_native_target): New.
7255         (find_default_run_target): Use the_native_target.
7256         (find_attach_target, find_run_target): Simplify.
7257         (target_ops::open): Delete.
7258         (dummy_target_info): New.
7259         (dummy_target::shortname, dummy_target::longname)
7260         (dummy_target::doc): Delete.
7261         (dummy_target::info): New.
7262         (debug_target::shortname, debug_target::longname)
7263         (debug_target::doc): Delete.
7264         (debug_target::info): New.
7265         * target.h (struct target_info): New.
7266         (target_ops::~target_ops): Add comment.
7267         (target_ops::info): New.
7268         (target_ops::shortname, target_ops::longname, target_ops::doc): No
7269         longer virtual.  Implement in terms of target_info.
7270         (set_native_target, get_native_target): Declare.
7271         (target_open_ftype): New.
7272         (add_target, add_target_with_completer)
7273         (add_deprecated_target_alias): Change prototype.
7274         (test_target) <shortname, longname, doc>: Delete.
7275         <info>: New.
7276         * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7277         add_inf_child_target.
7278         * tracefile-tfile.c (tfile_target_info): New.
7279         (tfile_target) <shortname, longname, doc>: Delete.
7280         <info>: New.
7281         (tfile_target::open): Rename to ...
7282         (tfile_target_open): ... this.
7283         (_initialize_tracefile_tfile): Adjust.
7284         * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7285         add_inf_child_target.
7286         * windows-nat.c (_initialize_windows_nat): Use
7287         add_inf_child_target.
7288         * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7289         add_inf_child_target.
7290
7291 2018-05-02  Pedro Alves  <palves@redhat.com>
7292
7293         * linux-nat.h (linux_nat_target) <low_new_thread,
7294         low_delete_thread, low_new_fork, low_forget_process,
7295         low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7296         New virtual methods.
7297         (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7298         (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7299         (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7300         (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7301         (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7302         Delete.
7303         * linux-fork.c (delete_fork): Adjust to call low method.
7304         * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7305         (linux_nat_new_fork, linux_nat_forget_process_hook)
7306         (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7307         (linux_nat_status_is_event):
7308         (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7309         (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7310         to call low method.
7311         (sigtrap_is_event): Rename to ...
7312         (linux_nat_target::low_status_is_event): ... this.
7313         (linux_nat_set_status_is_event): Delete.
7314         (save_stop_reason, linux_nat_wait_1)
7315         (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7316         low methods.
7317         (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7318         (linux_nat_set_new_fork, linux_nat_set_forget_process)
7319         (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7320         (linux_nat_set_prepare_to_resume): Delete.
7321         * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7322         low virtual methods.
7323         * amd64-linux-nat.c: Likewise.
7324         * arm-linux-nat.c: Likewise.
7325         * i386-linux-nat.c: Likewise.
7326         * ia64-linux-nat.c: Likewise.
7327         * mips-linux-nat.c: Likewise.
7328         * ppc-linux-nat.c: Likewise.
7329         * s390-linux-nat.c: Likewise.
7330         * sparc64-linux-nat.c: Likewise.
7331         * x86-linux-nat.c: Likewise.
7332         * x86-linux-nat.h: Include "nat/x86-linux.h".
7333         (x86_linux_nat_target) <low_new_fork, low_forget_process,
7334         low_prepare_to_resume, low_new_thread, low_delete_thread>:
7335         Override methods.
7336
7337 2018-05-02  Pedro Alves  <palves@redhat.com>
7338
7339         * target.h (target_ops)
7340         <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7341         stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7342         stopped_by_watchpoint, have_continuable_watchpoint,
7343         stopped_data_address, watchpoint_addr_within_range,
7344         can_accel_watchpoint_condition, can_run, thread_alive,
7345         has_all_memory, has_memory, has_stack, has_registers,
7346         has_execution, can_async_p, is_async_p, supports_non_stop,
7347         always_non_stop_p, can_execute_reverse, supports_multi_process,
7348         supports_enable_disable_tracepoint,
7349         supports_disable_randomization, supports_string_tracing,
7350         supports_evaluation_of_breakpoint_conditions,
7351         can_run_breakpoint_commands, filesystem_is_local,
7352         can_download_tracepoint, get_trace_state_variable_value,
7353         set_trace_notes, get_tib_address, use_agent, can_use_agent,
7354         record_is_replaying, record_will_replay,
7355         augmented_libraries_svr4_read>: Adjust to return bool.
7356         * aarch64-linux-nat.c: All implementations adjusted.
7357         * aix-thread.c: All implementations adjusted.
7358         * arm-linux-nat.c: All implementations adjusted.
7359         * breakpoint.c: All implementations adjusted.
7360         * bsd-kvm.c: All implementations adjusted.
7361         * bsd-uthread.c: All implementations adjusted.
7362         * corelow.c: All implementations adjusted.
7363         * ctf.c: All implementations adjusted.
7364         * darwin-nat.c: All implementations adjusted.
7365         * darwin-nat.h: All implementations adjusted.
7366         * exec.c: All implementations adjusted.
7367         * fbsd-nat.c: All implementations adjusted.
7368         * fbsd-nat.h: All implementations adjusted.
7369         * gnu-nat.c: All implementations adjusted.
7370         * gnu-nat.h: All implementations adjusted.
7371         * go32-nat.c: All implementations adjusted.
7372         * ia64-linux-nat.c: All implementations adjusted.
7373         * inf-child.c: All implementations adjusted.
7374         * inf-child.h: All implementations adjusted.
7375         * inf-ptrace.c: All implementations adjusted.
7376         * inf-ptrace.h: All implementations adjusted.
7377         * linux-nat.c: All implementations adjusted.
7378         * linux-nat.h: All implementations adjusted.
7379         * mips-linux-nat.c: All implementations adjusted.
7380         * nto-procfs.c: All implementations adjusted.
7381         * ppc-linux-nat.c: All implementations adjusted.
7382         * procfs.c: All implementations adjusted.
7383         * ravenscar-thread.c: All implementations adjusted.
7384         * record-btrace.c: All implementations adjusted.
7385         * record-full.c: All implementations adjusted.
7386         * remote-sim.c: All implementations adjusted.
7387         * remote.c: All implementations adjusted.
7388         * s390-linux-nat.c: All implementations adjusted.
7389         * sol-thread.c: All implementations adjusted.
7390         * spu-multiarch.c: All implementations adjusted.
7391         * target-delegates.c: All implementations adjusted.
7392         * target.c: All implementations adjusted.
7393         * target.h: All implementations adjusted.
7394         * tracefile-tfile.c: All implementations adjusted.
7395         * tracefile.c: All implementations adjusted.
7396         * tracefile.h: All implementations adjusted.
7397         * windows-nat.c: All implementations adjusted.
7398         * x86-linux-nat.h: All implementations adjusted.
7399         * x86-nat.h: All implementations adjusted.
7400
7401 2018-05-02  Pedro Alves  <palves@redhat.com>
7402
7403         * make-target-delegates (scan_target_h): Don't trim lines here.
7404         Replace sequences of tabs and/or whitespace with a single
7405         whitespace.
7406         (top level, parsing methods): Trim each line before processing it
7407         here.
7408
7409 2018-05-02  Pedro Alves  <palves@redhat.com>
7410             John Baldwin  <jhb@freebsd.org>
7411
7412         * target.h (enum strata) <debug_stratum>: New.
7413         (struct target_ops) <all delegation methods>: Replace by C++
7414         virtual methods, and drop "to_" prefix.  All references updated
7415         throughout.
7416         <to_shortname, to_longname, to_doc, to_data,
7417         to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7418         to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7419         virtual methods.  All references updated throughout.
7420         <can_attach, supports_terminal_ours, can_create_inferior,
7421         get_thread_control_capabilities, attach_no_wait>: New
7422         virtual methods.
7423         <insert_breakpoint, remove_breakpoint>: Now
7424         TARGET_DEFAULT_NORETURN methods.
7425         <info_proc>: Now returns bool.
7426         <to_magic>: Delete.
7427         (OPS_MAGIC): Delete.
7428         (current_target): Delete.  All references replaced by references
7429         to ...
7430         (target_stack): ... this.  New.
7431         (target_shortname, target_longname): Adjust.
7432         (target_can_run): Now a function declaration.
7433         (default_child_has_all_memory, default_child_has_memory)
7434         (default_child_has_stack, default_child_has_registers)
7435         (default_child_has_execution): Remove target_ops parameter.
7436         (complete_target_initialization): Delete.
7437         (memory_breakpoint_target): New template class.
7438         (test_target_ops): Refactor as a C++ class with virtual methods.
7439         * make-target-delegates (NAME_PART): Tighten.
7440         (POINTER_PART, CP_SYMBOL): New.
7441         (SIMPLE_RETURN_PART): Reimplement.
7442         (VEC_RETURN_PART): Expect less.
7443         (RETURN_PART, VIRTUAL_PART): New.
7444         (METHOD): Adjust to C++ virtual methods.
7445         (scan_target_h): Remove reference to C99.
7446         (dname): Output "target_ops::" prefix.
7447         (write_function_header): Adjust to output a C++ class method.
7448         (write_declaration): New.
7449         (write_delegator): Adjust to output a C++ class method.
7450         (tdname): Output "dummy_target::" prefix.
7451         (write_tdefault, write_debugmethod): Adjust to output a C++ class
7452         method.
7453         (tdefault_names, debug_names): Delete.
7454         (return_types, tdefaults, styles, argtypes_array): New.
7455         (top level): All methods are delegators.
7456         (print_class): New.
7457         (top level): Print dummy_target and debug_target classes.
7458         * target-delegates.c: Regenerate.
7459         * target-debug.h (target_debug_print_enum_info_proc_what)
7460         (target_debug_print_thread_control_capabilities)
7461         (target_debug_print_thread_info_p): New.
7462         * target.c (dummy_target): Delete.
7463         (the_dummy_target, the_debug_target): New.
7464         (target_stack): Now extern.
7465         (set_targetdebug): Push/unpush debug target.
7466         (default_child_has_all_memory, default_child_has_memory)
7467         (default_child_has_stack, default_child_has_registers)
7468         (default_child_has_execution): Remove target_ops parameter.
7469         (complete_target_initialization): Delete.
7470         (add_target_with_completer): No longer call
7471         complete_target_initialization.
7472         (target_supports_terminal_ours): Use regular delegation.
7473         (update_current_target): Delete.
7474         (push_target): No longer check magic number.  Don't call
7475         update_current_target.
7476         (unpush_target): Don't call update_current_target.
7477         (target_is_pushed): No longer check magic number.
7478         (target_require_runnable): Skip for all stratums over
7479         process_stratum.
7480         (target_ops::info_proc): New.
7481         (target_info_proc): Use find_target_at and
7482         find_default_run_target.
7483         (target_supports_disable_randomization): Use regular delegation.
7484         (target_get_osdata): Use find_target_at.
7485         (target_ops::open, target_ops::close, target_ops::can_attach)
7486         (target_ops::attach, target_ops::can_create_inferior)
7487         (target_ops::create_inferior, target_ops::can_run)
7488         (target_can_run): New.
7489         (default_fileio_target): Use regular delegation.
7490         (target_ops::fileio_open, target_ops::fileio_pwrite)
7491         (target_ops::fileio_pread, target_ops::fileio_fstat)
7492         (target_ops::fileio_close, target_ops::fileio_unlink)
7493         (target_ops::fileio_readlink): New.
7494         (target_fileio_open_1, target_fileio_unlink)
7495         (target_fileio_readlink): Always call the target method.  Handle
7496         FILEIO_ENOSYS.
7497         (return_zero, return_zero_has_execution): Delete.
7498         (init_dummy_target): Delete.
7499         (dummy_target::dummy_target, dummy_target::shortname)
7500         (dummy_target::longname, dummy_target::doc)
7501         (debug_target::debug_target, debug_target::shortname)
7502         (debug_target::longname, debug_target::doc): New.
7503         (target_supports_delete_record): Use regular delegation.
7504         (setup_target_debug): Delete.
7505         (maintenance_print_target_stack): Skip debug_stratum.
7506         (initialize_targets): Instantiate the_dummy_target and
7507         the_debug_target.
7508         * auxv.c (target_auxv_parse): Remove 'ops' parameter.  Adjust to
7509         use target_stack.
7510         (target_auxv_search, fprint_target_auxv): Adjust.
7511         (info_auxv_command): Adjust to use target_stack.
7512         * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7513         * exceptions.c (print_flush): Handle a NULL target_stack.
7514         * regcache.c (target_ops_no_register): Refactor as class with
7515         virtual methods.
7516
7517         * exec.c (exec_target): New class.
7518         (exec_ops): Now an exec_target.
7519         (exec_open, exec_close_1, exec_get_section_table)
7520         (exec_xfer_partial, exec_files_info, exec_has_memory)
7521         (exec_make_note_section): Refactor as exec_target methods.
7522         (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7523         Delete.
7524         (exec_target::find_memory_regions): New.
7525         (_initialize_exec): Don't call init_exec_ops.
7526         * gdbcore.h (exec_file_clear): Delete.
7527
7528         * corefile.c (core_target): Delete.
7529         (core_file_command): Adjust.
7530         * corelow.c (core_target): New class.
7531         (the_core_target): New.
7532         (core_close): Remove target_ops parameter.
7533         (core_close_cleanup): Adjust.
7534         (core_target::close): New.
7535         (core_open, core_detach, get_core_registers, core_files_info)
7536         (core_xfer_partial, core_thread_alive, core_read_description)
7537         (core_pid_to_str, core_thread_name, core_has_memory)
7538         (core_has_stack, core_has_registers, core_info_proc): Rework as
7539         core_target methods.
7540         (ignore, core_remove_breakpoint, init_core_ops): Delete.
7541         (_initialize_corelow): Initialize the_core_target.
7542         * gdbcore.h (core_target): Delete.
7543         (the_core_target): New.
7544
7545         * ctf.c: (ctf_target): New class.
7546         (ctf_ops): Now a ctf_target.
7547         (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7548         (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7549         (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7550         methods.
7551         (init_ctf_ops): Delete.
7552         (_initialize_ctf): Don't call it.
7553         * tracefile-tfile.c (tfile_target): New class.
7554         (tfile_ops): Now a tfile_target.
7555         (tfile_open, tfile_close, tfile_files_info)
7556         (tfile_get_tracepoint_status, tfile_trace_find)
7557         (tfile_fetch_registers, tfile_xfer_partial)
7558         (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7559         Refactor as tfile_target methods.
7560         (tfile_xfer_partial_features): Remove target_ops parameter.
7561         (init_tfile_ops): Delete.
7562         (_initialize_tracefile_tfile): Don't call it.
7563         * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7564         (tracefile_has_stack, tracefile_has_registers)
7565         (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7566         tracefile_target methods.
7567         (init_tracefile_ops): Delete.
7568         (tracefile_target::tracefile_target): New.
7569         * tracefile.h: Include "target.h".
7570         (tracefile_target): New class.
7571         (init_tracefile_ops): Delete.
7572
7573         * spu-multiarch.c (spu_multiarch_target): New class.
7574         (spu_ops): Now a spu_multiarch_target.
7575         (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7576         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7577         (spu_search_memory, spu_mourn_inferior): Refactor as
7578         spu_multiarch_target methods.
7579         (init_spu_ops): Delete.
7580         (_initialize_spu_multiarch): Remove references to init_spu_ops,
7581         complete_target_initialization.
7582
7583         * ravenscar-thread.c (ravenscar_thread_target): New class.
7584         (ravenscar_ops): Now a ravenscar_thread_target.
7585         (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7586         (ravenscar_thread_alive, ravenscar_pid_to_str)
7587         (ravenscar_fetch_registers, ravenscar_store_registers)
7588         (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7589         (ravenscar_stopped_by_hw_breakpoint)
7590         (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7591         (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7592         (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7593         methods.
7594         (init_ravenscar_thread_ops): Delete.
7595         (_initialize_ravenscar): Remove references to
7596         init_ravenscar_thread_ops and complete_target_initialization.
7597
7598         * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7599         (bsd_uthread_target): New class.
7600         (bsd_uthread_ops): Now a bsd_uthread_target.
7601         (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7602         (bsd_uthread_close, bsd_uthread_mourn_inferior)
7603         (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7604         (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7605         (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7606         (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7607         (bsd_uthread_target): Delete function.
7608         (_initialize_bsd_uthread): Remove reference to
7609         complete_target_initialization.
7610
7611         * bfd-target.c (target_bfd_data): Delete.  Fields folded into ...
7612         (target_bfd): ... this new class.
7613         (target_bfd_xfer_partial, target_bfd_get_section_table)
7614         (target_bfd_close): Refactor as target_bfd methods.
7615         (target_bfd::~target_bfd): New.
7616         (target_bfd_reopen): Adjust.
7617         (target_bfd::close): New.
7618
7619         * record-btrace.c (record_btrace_target): New class.
7620         (record_btrace_ops): Now a record_btrace_target.
7621         (record_btrace_open, record_btrace_stop_recording)
7622         (record_btrace_disconnect, record_btrace_close)
7623         (record_btrace_async, record_btrace_info)
7624         (record_btrace_insn_history, record_btrace_insn_history_range)
7625         (record_btrace_insn_history_from, record_btrace_call_history)
7626         (record_btrace_call_history_range)
7627         (record_btrace_call_history_from, record_btrace_record_method)
7628         (record_btrace_is_replaying, record_btrace_will_replay)
7629         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7630         (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7631         (record_btrace_store_registers, record_btrace_prepare_to_store)
7632         (record_btrace_to_get_unwinder)
7633         (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7634         (record_btrace_commit_resume, record_btrace_wait)
7635         (record_btrace_stop, record_btrace_can_execute_reverse)
7636         (record_btrace_stopped_by_sw_breakpoint)
7637         (record_btrace_supports_stopped_by_sw_breakpoint)
7638         (record_btrace_stopped_by_hw_breakpoint)
7639         (record_btrace_supports_stopped_by_hw_breakpoint)
7640         (record_btrace_update_thread_list, record_btrace_thread_alive)
7641         (record_btrace_goto_begin, record_btrace_goto_end)
7642         (record_btrace_goto, record_btrace_stop_replaying_all)
7643         (record_btrace_execution_direction)
7644         (record_btrace_prepare_to_generate_core)
7645         (record_btrace_done_generating_core): Refactor as
7646         record_btrace_target methods.
7647         (init_record_btrace_ops): Delete.
7648         (_initialize_record_btrace): Remove reference to
7649         init_record_btrace_ops.
7650         * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7651         the execution_direction global.
7652         (record_full_base_target, record_full_target)
7653         (record_full_core_target): New classes.
7654         (record_full_ops): Now a record_full_target.
7655         (record_full_core_ops): Now a record_full_core_target.
7656         (record_full_target::detach, record_full_target::disconnect)
7657         (record_full_core_target::disconnect)
7658         (record_full_target::mourn_inferior, record_full_target::kill):
7659         New.
7660         (record_full_open, record_full_close, record_full_async): Refactor
7661         as methods of the record_full_base_target class.
7662         (record_full_resume, record_full_commit_resume): Refactor
7663         as methods of the record_full_target class.
7664         (record_full_wait, record_full_stopped_by_watchpoint)
7665         (record_full_stopped_data_address)
7666         (record_full_stopped_by_sw_breakpoint)
7667         (record_full_supports_stopped_by_sw_breakpoint)
7668         (record_full_stopped_by_hw_breakpoint)
7669         (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7670         methods of the record_full_base_target class.
7671         (record_full_store_registers, record_full_xfer_partial)
7672         (record_full_insert_breakpoint, record_full_remove_breakpoint):
7673         Refactor as methods of the record_full_target class.
7674         (record_full_can_execute_reverse, record_full_get_bookmark)
7675         (record_full_goto_bookmark, record_full_execution_direction)
7676         (record_full_record_method, record_full_info, record_full_delete)
7677         (record_full_is_replaying, record_full_will_replay)
7678         (record_full_goto_begin, record_full_goto_end, record_full_goto)
7679         (record_full_stop_replaying): Refactor as methods of the
7680         record_full_base_target class.
7681         (record_full_core_resume, record_full_core_kill)
7682         (record_full_core_fetch_registers)
7683         (record_full_core_prepare_to_store)
7684         (record_full_core_store_registers, record_full_core_xfer_partial)
7685         (record_full_core_insert_breakpoint)
7686         (record_full_core_remove_breakpoint)
7687         (record_full_core_has_execution): Refactor
7688         as methods of the record_full_core_target class.
7689         (record_full_base_target::supports_delete_record): New.
7690         (init_record_full_ops): Delete.
7691         (init_record_full_core_ops): Delete.
7692         (record_full_save): Refactor as method of the
7693         record_full_base_target class.
7694         (_initialize_record_full): Remove references to
7695         init_record_full_ops and init_record_full_core_ops.
7696
7697         * remote.c (remote_target, extended_remote_target): New classes.
7698         (remote_ops): Now a remote_target.
7699         (extended_remote_ops): Now an extended_remote_target.
7700         (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7701         (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7702         (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7703         (remote_pass_signals, remote_set_syscall_catchpoint)
7704         (remote_program_signals, )
7705         (remote_thread_always_alive): Remove target_ops parameter.
7706         (remote_thread_alive, remote_thread_name)
7707         (remote_update_thread_list, remote_threads_extra_info)
7708         (remote_static_tracepoint_marker_at)
7709         (remote_static_tracepoint_markers_by_strid)
7710         (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7711         (remote_open): Refactor as methods of remote_target.
7712         (extended_remote_open, extended_remote_detach)
7713         (extended_remote_attach, extended_remote_post_attach):
7714         (extended_remote_supports_disable_randomization)
7715         (extended_remote_create_inferior): : Refactor as method of
7716         extended_remote_target.
7717         (remote_set_permissions, remote_open_1, remote_detach)
7718         (remote_follow_fork, remote_follow_exec, remote_disconnect)
7719         (remote_resume, remote_commit_resume, remote_stop)
7720         (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7721         (remote_terminal_ours, remote_wait, remote_fetch_registers)
7722         (remote_prepare_to_store, remote_store_registers)
7723         (remote_flash_erase, remote_flash_done, remote_files_info)
7724         (remote_kill, remote_mourn, remote_insert_breakpoint)
7725         (remote_remove_breakpoint, remote_insert_watchpoint)
7726         (remote_watchpoint_addr_within_range)
7727         (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7728         (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7729         (remote_supports_stopped_by_sw_breakpoint)
7730         (remote_stopped_by_hw_breakpoint)
7731         (remote_supports_stopped_by_hw_breakpoint)
7732         (remote_stopped_by_watchpoint, remote_stopped_data_address)
7733         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7734         (remote_verify_memory): Refactor as methods of remote_target.
7735         (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7736         parameter.
7737         (remote_xfer_partial, remote_get_memory_xfer_limit)
7738         (remote_search_memory, remote_rcmd, remote_memory_map)
7739         (remote_pid_to_str, remote_get_thread_local_address)
7740         (remote_get_tib_address, remote_read_description): Refactor as
7741         methods of remote_target.
7742         (remote_target::fileio_open, remote_target::fileio_pwrite)
7743         (remote_target::fileio_pread, remote_target::fileio_close): New.
7744         (remote_hostio_readlink, remote_hostio_fstat)
7745         (remote_filesystem_is_local, remote_can_execute_reverse)
7746         (remote_supports_non_stop, remote_supports_disable_randomization)
7747         (remote_supports_multi_process, remote_supports_cond_breakpoints)
7748         (remote_supports_enable_disable_tracepoint)
7749         (remote_supports_string_tracing)
7750         (remote_can_run_breakpoint_commands, remote_trace_init)
7751         (remote_download_tracepoint, remote_can_download_tracepoint)
7752         (remote_download_trace_state_variable, remote_enable_tracepoint)
7753         (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7754         (remote_trace_start, remote_get_trace_status)
7755         (remote_get_tracepoint_status, remote_trace_stop)
7756         (remote_trace_find, remote_get_trace_state_variable_value)
7757         (remote_save_trace_data, remote_get_raw_trace_data)
7758         (remote_set_disconnected_tracing, remote_core_of_thread)
7759         (remote_set_circular_trace_buffer, remote_traceframe_info)
7760         (remote_get_min_fast_tracepoint_insn_len)
7761         (remote_set_trace_buffer_size, remote_set_trace_notes)
7762         (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7763         (remote_disable_btrace, remote_teardown_btrace)
7764         (remote_read_btrace, remote_btrace_conf)
7765         (remote_augmented_libraries_svr4_read, remote_load)
7766         (remote_pid_to_exec_file, remote_can_do_single_step)
7767         (remote_execution_direction, remote_thread_handle_to_thread_info):
7768         Refactor as methods of remote_target.
7769         (init_remote_ops, init_extended_remote_ops): Delete.
7770         (remote_can_async_p, remote_is_async_p, remote_async)
7771         (remote_thread_events, remote_upload_tracepoints)
7772         (remote_upload_trace_state_variables): Refactor as methods of
7773         remote_target.
7774         (_initialize_remote): Remove references to init_remote_ops and
7775         init_extended_remote_ops.
7776
7777         * remote-sim.c (gdbsim_target): New class.
7778         (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7779         (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7780         (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7781         (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7782         (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7783         (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7784         Refactor as methods of gdbsim_target.
7785         (gdbsim_ops): Now a gdbsim_target.
7786         (init_gdbsim_ops): Delete.
7787         (gdbsim_cntrl_c): Adjust.
7788         (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7789
7790         * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7791         (the_amd64_linux_nat_target): New.
7792         (amd64_linux_fetch_inferior_registers)
7793         (amd64_linux_store_inferior_registers): Refactor as methods of
7794         amd64_linux_nat_target.
7795         (_initialize_amd64_linux_nat): Adjust.  Set linux_target.
7796         * i386-linux-nat.c: Don't include "linux-nat.h".
7797         (i386_linux_nat_target): New class.
7798         (the_i386_linux_nat_target): New.
7799         (i386_linux_fetch_inferior_registers)
7800         (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7801         as methods of i386_linux_nat_target.
7802         (_initialize_i386_linux_nat): Adjust.  Set linux_target.
7803         * inf-child.c (inf_child_ops): Delete.
7804         (inf_child_fetch_inferior_registers)
7805         (inf_child_store_inferior_registers): Delete.
7806         (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7807         methods of inf_child_target.
7808         (inf_child_target::supports_terminal_ours)
7809         (inf_child_target::terminal_init)
7810         (inf_child_target::terminal_inferior)
7811         (inf_child_target::terminal_ours_for_output)
7812         (inf_child_target::terminal_ours, inf_child_target::interrupt)
7813         (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7814         New.
7815         (inf_child_open, inf_child_disconnect, inf_child_close)
7816         (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7817         (inf_child_post_startup_inferior, inf_child_can_run)
7818         (inf_child_pid_to_exec_file): Refactor as methods of
7819         inf_child_target.
7820         (inf_child_follow_fork): Delete.
7821         (inf_child_target::can_create_inferior)
7822         (inf_child_target::can_attach): New.
7823         (inf_child_target::has_all_memory, inf_child_target::has_memory)
7824         (inf_child_target::has_stack, inf_child_target::has_registers)
7825         (inf_child_target::has_execution): New.
7826         (inf_child_fileio_open, inf_child_fileio_pwrite)
7827         (inf_child_fileio_pread, inf_child_fileio_fstat)
7828         (inf_child_fileio_close, inf_child_fileio_unlink)
7829         (inf_child_fileio_readlink, inf_child_use_agent)
7830         (inf_child_can_use_agent): Refactor as methods of
7831         inf_child_target.
7832         (return_zero, inf_child_target): Delete.
7833         (inf_child_target::inf_child_target): New.
7834         * inf-child.h: Include "target.h".
7835         (inf_child_target): Delete function prototype.
7836         (inf_child_target): New class.
7837         (inf_child_open_target, inf_child_mourn_inferior)
7838         (inf_child_maybe_unpush_target): Delete.
7839         * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7840         (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7841         (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7842         (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7843         (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7844         (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7845         (inf_ptrace_wait, inf_ptrace_xfer_partial)
7846         (inf_ptrace_thread_alive, inf_ptrace_files_info)
7847         (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7848         methods of inf_ptrace_target.
7849         (inf_ptrace_target): Delete function.
7850         * inf-ptrace.h: Include "inf-child.h".
7851         (inf_ptrace_target): Delete function declaration.
7852         (inf_ptrace_target): New class.
7853         (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7854         * linux-nat.c (linux_target): New.
7855         (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7856         (linux_nat_target::~linux_nat_target): New.
7857         (linux_child_post_attach, linux_child_post_startup_inferior)
7858         (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7859         (linux_child_remove_fork_catchpoint)
7860         (linux_child_insert_vfork_catchpoint)
7861         (linux_child_remove_vfork_catchpoint)
7862         (linux_child_insert_exec_catchpoint)
7863         (linux_child_remove_exec_catchpoint)
7864         (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7865         (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7866         (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7867         (linux_nat_stopped_data_address)
7868         (linux_nat_stopped_by_sw_breakpoint)
7869         (linux_nat_supports_stopped_by_sw_breakpoint)
7870         (linux_nat_stopped_by_hw_breakpoint)
7871         (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7872         (linux_nat_kill, linux_nat_mourn_inferior)
7873         (linux_nat_xfer_partial, linux_nat_thread_alive)
7874         (linux_nat_update_thread_list, linux_nat_pid_to_str)
7875         (linux_nat_thread_name, linux_child_pid_to_exec_file)
7876         (linux_child_static_tracepoint_markers_by_strid)
7877         (linux_nat_is_async_p, linux_nat_can_async_p)
7878         (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7879         (linux_nat_supports_multi_process)
7880         (linux_nat_supports_disable_randomization, linux_nat_async)
7881         (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
7882         (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
7883         (linux_nat_fileio_open, linux_nat_fileio_readlink)
7884         (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
7885         methods of linux_nat_target.
7886         (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
7887         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
7888         parameter.
7889         (check_stopped_by_watchpoint): Adjust.
7890         (linux_xfer_partial): Delete.
7891         (linux_target_install_ops, linux_target, linux_nat_add_target):
7892         Delete.
7893         (linux_nat_target::linux_nat_target): New.
7894         * linux-nat.h: Include "inf-ptrace.h".
7895         (linux_nat_target): New.
7896         (linux_target, linux_target_install_ops, linux_nat_add_target):
7897         Delete function declarations.
7898         (linux_target): Declare global.
7899         * linux-thread-db.c (thread_db_target): New.
7900         (thread_db_target::thread_db_target): New.
7901         (thread_db_ops): Delete.
7902         (the_thread_db_target): New.
7903         (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
7904         (thread_db_update_thread_list, thread_db_pid_to_str)
7905         (thread_db_extra_thread_info)
7906         (thread_db_thread_handle_to_thread_info)
7907         (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
7908         (thread_db_resume): Refactor as methods of thread_db_target.
7909         (init_thread_db_ops): Delete.
7910         (_initialize_thread_db): Remove reference to init_thread_db_ops.
7911         * x86-linux-nat.c: Don't include "linux-nat.h".
7912         (super_post_startup_inferior): Delete.
7913         (x86_linux_nat_target::~x86_linux_nat_target): New.
7914         (x86_linux_child_post_startup_inferior)
7915         (x86_linux_read_description, x86_linux_enable_btrace)
7916         (x86_linux_disable_btrace, x86_linux_teardown_btrace)
7917         (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
7918         methods of x86_linux_nat_target.
7919         (x86_linux_create_target): Delete.  Bits folded ...
7920         (x86_linux_add_target): ... here.  Now takes a linux_nat_target
7921         pointer.
7922         * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
7923         (x86_linux_nat_target): New class.
7924         (x86_linux_create_target): Delete.
7925         (x86_linux_add_target): Now takes a linux_nat_target pointer.
7926         * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
7927         (x86_region_ok_for_watchpoint, x86_stopped_data_address)
7928         (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
7929         (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
7930         (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
7931         make extern.
7932         (x86_use_watchpoints): Delete.
7933         * x86-nat.h: Include "breakpoint.h" and "target.h".
7934         (x86_use_watchpoints): Delete.
7935         (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
7936         (x86_stopped_by_watchpoint, x86_stopped_data_address)
7937         (x86_insert_watchpoint, x86_remove_watchpoint)
7938         (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
7939         (x86_stopped_by_hw_breakpoint): New declarations.
7940         (x86_nat_target): New template class.
7941
7942         * ppc-linux-nat.c (ppc_linux_nat_target): New class.
7943         (the_ppc_linux_nat_target): New.
7944         (ppc_linux_fetch_inferior_registers)
7945         (ppc_linux_can_use_hw_breakpoint)
7946         (ppc_linux_region_ok_for_hw_watchpoint)
7947         (ppc_linux_ranged_break_num_registers)
7948         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
7949         (ppc_linux_insert_mask_watchpoint)
7950         (ppc_linux_remove_mask_watchpoint)
7951         (ppc_linux_can_accel_watchpoint_condition)
7952         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
7953         (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
7954         (ppc_linux_watchpoint_addr_within_range)
7955         (ppc_linux_masked_watch_num_registers)
7956         (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
7957         (ppc_linux_read_description): Refactor as methods of
7958         ppc_linux_nat_target.
7959         (_initialize_ppc_linux_nat): Adjust.  Set linux_target.
7960
7961         * procfs.c (procfs_xfer_partial): Delete forward declaration.
7962         (procfs_target): New class.
7963         (the_procfs_target): New.
7964         (procfs_target): Delete function.
7965         (procfs_auxv_parse, procfs_attach, procfs_detach)
7966         (procfs_fetch_registers, procfs_store_registers, procfs_wait)
7967         (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
7968         (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
7969         (procfs_create_inferior, procfs_update_thread_list)
7970         (procfs_thread_alive, procfs_pid_to_str)
7971         (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
7972         (procfs_stopped_data_address, procfs_insert_watchpoint)
7973         (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
7974         (proc_find_memory_regions, procfs_info_proc)
7975         (procfs_make_note_section): Refactor as methods of procfs_target.
7976         (_initialize_procfs): Adjust.
7977         * sol-thread.c (sol_thread_target): New class.
7978         (sol_thread_ops): Now a sol_thread_target.
7979         (sol_thread_detach, sol_thread_resume, sol_thread_wait)
7980         (sol_thread_fetch_registers, sol_thread_store_registers)
7981         (sol_thread_xfer_partial, sol_thread_mourn_inferior)
7982         (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
7983         (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
7984         (init_sol_thread_ops): Delete.
7985         (_initialize_sol_thread): Adjust.  Remove references to
7986         init_sol_thread_ops and complete_target_initialization.
7987
7988         * windows-nat.c (windows_nat_target): New class.
7989         (windows_fetch_inferior_registers)
7990         (windows_store_inferior_registers, windows_resume, windows_wait)
7991         (windows_attach, windows_detach, windows_pid_to_exec_file)
7992         (windows_files_info, windows_create_inferior)
7993         (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
7994         (windows_close, windows_pid_to_str, windows_xfer_partial)
7995         (windows_get_tib_address, windows_get_ada_task_ptid)
7996         (windows_thread_name, windows_thread_alive): Refactor as
7997         windows_nat_target methods.
7998         (do_initial_windows_stuff): Adjust.
7999         (windows_target): Delete function.
8000         (_initialize_windows_nat): Adjust.
8001
8002         * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8003         (darwin_mourn_inferior, darwin_kill_inferior)
8004         (darwin_create_inferior, darwin_attach, darwin_detach)
8005         (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8006         (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8007         (darwin_supports_multi_process): Refactor as darwin_nat_target
8008         methods.
8009         (darwin_resume_to, darwin_files_info): Delete.
8010         (_initialize_darwin_inferior): Rename to ...
8011         (_initialize_darwin_nat): ... this.  Adjust to C++ification.
8012         * darwin-nat.h: Include "inf-child.h".
8013         (darwin_nat_target): New class.
8014         (darwin_complete_target): Delete.
8015         * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8016         (darwin_target): New.
8017         (i386_darwin_fetch_inferior_registers)
8018         (i386_darwin_store_inferior_registers): Refactor as methods of
8019         darwin_nat_target.
8020         (darwin_complete_target): Delete, with ...
8021         (_initialize_i386_darwin_nat): ... bits factored out here.
8022
8023         * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8024         (the_alpha_linux_nat_target): New.
8025         (alpha_linux_register_u_offset): Refactor as
8026         alpha_linux_nat_target method.
8027         (_initialize_alpha_linux_nat): Adjust.
8028         * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8029         (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8030         (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8031         methods of linux_nat_trad_target.
8032         (linux_trad_target): Delete.
8033         * linux-nat-trad.h (linux_trad_target): Delete function.
8034         (linux_nat_trad_target): New class.
8035         * mips-linux-nat.c (mips_linux_nat_target): New class.
8036         (super_fetch_registers, super_store_registers, super_close):
8037         Delete.
8038         (the_mips_linux_nat_target): New.
8039         (mips64_linux_regsets_fetch_registers)
8040         (mips64_linux_regsets_store_registers)
8041         (mips64_linux_fetch_registers, mips64_linux_store_registers)
8042         (mips_linux_register_u_offset, mips_linux_read_description)
8043         (mips_linux_can_use_hw_breakpoint)
8044         (mips_linux_stopped_by_watchpoint)
8045         (mips_linux_stopped_data_address)
8046         (mips_linux_region_ok_for_hw_watchpoint)
8047         (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8048         (mips_linux_close): Refactor as methods of mips_linux_nat.
8049         (_initialize_mips_linux_nat): Adjust to C++ification.
8050
8051         * aix-thread.c (aix_thread_target): New class.
8052         (aix_thread_ops): Now an aix_thread_target.
8053         (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8054         (aix_thread_fetch_registers, aix_thread_store_registers)
8055         (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8056         (aix_thread_thread_alive, aix_thread_pid_to_str)
8057         (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8058         Refactor as methods of aix_thread_target.
8059         (init_aix_thread_ops): Delete.
8060         (_initialize_aix_thread): Remove references to init_aix_thread_ops
8061         and complete_target_initialization.
8062         * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8063         (rs6000_nat_target): New class.
8064         (the_rs6000_nat_target): New.
8065         (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8066         (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8067         (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8068         (super_create_inferior): Delete.
8069         (_initialize_rs6000_nat): Adjust to C++ification.
8070
8071         * arm-linux-nat.c (arm_linux_nat_target): New class.
8072         (the_arm_linux_nat_target): New.
8073         (arm_linux_fetch_inferior_registers)
8074         (arm_linux_store_inferior_registers, arm_linux_read_description)
8075         (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8076         (arm_linux_remove_hw_breakpoint)
8077         (arm_linux_region_ok_for_hw_watchpoint)
8078         (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8079         (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8080         (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8081         arm_linux_nat_target.
8082         (_initialize_arm_linux_nat): Adjust to C++ification.
8083
8084         * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8085         (the_aarch64_linux_nat_target): New.
8086         (aarch64_linux_fetch_inferior_registers)
8087         (aarch64_linux_store_inferior_registers)
8088         (aarch64_linux_child_post_startup_inferior)
8089         (aarch64_linux_read_description)
8090         (aarch64_linux_can_use_hw_breakpoint)
8091         (aarch64_linux_insert_hw_breakpoint)
8092         (aarch64_linux_remove_hw_breakpoint)
8093         (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8094         (aarch64_linux_region_ok_for_hw_watchpoint)
8095         (aarch64_linux_stopped_data_address)
8096         (aarch64_linux_stopped_by_watchpoint)
8097         (aarch64_linux_watchpoint_addr_within_range)
8098         (aarch64_linux_can_do_single_step): Refactor as methods of
8099         aarch64_linux_nat_target.
8100         (super_post_startup_inferior): Delete.
8101         (_initialize_aarch64_linux_nat): Adjust to C++ification.
8102
8103         * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8104         (the_hppa_linux_nat_target): New.
8105         (hppa_linux_fetch_inferior_registers)
8106         (hppa_linux_store_inferior_registers): Refactor as methods of
8107         hppa_linux_nat_target.
8108         (_initialize_hppa_linux_nat): Adjust to C++ification.
8109
8110         * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8111         (the_ia64_linux_nat_target): New.
8112         (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8113         (ia64_linux_stopped_data_address)
8114         (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8115         (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8116         ia64_linux_nat_target methods.
8117         (super_xfer_partial): Delete.
8118         (_initialize_ia64_linux_nat): Adjust to C++ification.
8119
8120         * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8121         (the_m32r_linux_nat_target): New.
8122         (m32r_linux_fetch_inferior_registers)
8123         (m32r_linux_store_inferior_registers): Refactor as
8124         m32r_linux_nat_target methods.
8125         (_initialize_m32r_linux_nat): Adjust to C++ification.
8126
8127         * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8128         (the_m68k_linux_nat_target): New.
8129         (m68k_linux_fetch_inferior_registers)
8130         (m68k_linux_store_inferior_registers): Refactor as
8131         m68k_linux_nat_target methods.
8132         (_initialize_m68k_linux_nat): Adjust to C++ification.
8133
8134         * s390-linux-nat.c (s390_linux_nat_target): New class.
8135         (the_s390_linux_nat_target): New.
8136         (s390_linux_fetch_inferior_registers)
8137         (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8138         (s390_insert_watchpoint, s390_remove_watchpoint)
8139         (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8140         (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8141         (s390_auxv_parse, s390_read_description): Refactor as methods of
8142         s390_linux_nat_target.
8143         (_initialize_s390_nat): Adjust to C++ification.
8144
8145         * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8146         (the_sparc_linux_nat_target): New.
8147         (_initialize_sparc_linux_nat): Adjust to C++ification.
8148         * sparc-nat.c (sparc_fetch_inferior_registers)
8149         (sparc_store_inferior_registers): Remove target_ops parameter.
8150         * sparc-nat.h (sparc_fetch_inferior_registers)
8151         (sparc_store_inferior_registers): Remove target_ops parameter.
8152         * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8153         (the_sparc64_linux_nat_target): New.
8154         (_initialize_sparc64_linux_nat): Adjust to C++ification.
8155
8156         * spu-linux-nat.c (spu_linux_nat_target): New class.
8157         (the_spu_linux_nat_target): New.
8158         (spu_child_post_startup_inferior, spu_child_post_attach)
8159         (spu_child_wait, spu_fetch_inferior_registers)
8160         (spu_store_inferior_registers, spu_xfer_partial)
8161         (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8162         methods.
8163         (_initialize_spu_nat): Adjust to C++ification.
8164
8165         * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8166         (the_tilegx_linux_nat_target): New.
8167         (fetch_inferior_registers, store_inferior_registers):
8168         Refactor as methods.
8169         (_initialize_tile_linux_nat): Adjust to C++ification.
8170
8171         * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8172         (the_xtensa_linux_nat_target): New.
8173         (xtensa_linux_fetch_inferior_registers)
8174         (xtensa_linux_store_inferior_registers): Refactor as
8175         xtensa_linux_nat_target methods.
8176         (_initialize_xtensa_linux_nat): Adjust to C++ification.
8177
8178         * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8179         (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8180         (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8181         (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8182         (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8183         (fbsd_stopped_by_sw_breakpoint)
8184         (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8185         (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8186         (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8187         (fbsd_post_startup_inferior, fbsd_post_attach)
8188         (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8189         (fbsd_set_syscall_catchpoint)
8190         (super_xfer_partial, super_resume, super_wait)
8191         (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8192         (fbsd_handle_debug_trap): Remove target_ops parameter.
8193         (fbsd_nat_add_target): Delete.
8194         * fbsd-nat.h: Include "inf-ptrace.h".
8195         (fbsd_nat_add_target): Delete.
8196         (USE_SIGTRAP_SIGINFO): Define.
8197         (fbsd_nat_target): New class.
8198
8199         * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8200         (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8201         (amd64bsd_target): Delete.
8202         * amd64-bsd-nat.h: New file.
8203         * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8204         "x86-bsd-nat.h".
8205         (amd64_fbsd_nat_target): New class.
8206         (the_amd64_fbsd_nat_target): New.
8207         (amd64fbsd_read_description): Refactor as method of
8208         amd64_fbsd_nat_target.
8209         (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8210         (_initialize_amd64fbsd_nat): Adjust to C++ification.
8211         * amd64-nat.h (amd64bsd_target): Delete function declaration.
8212         * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8213         (i386bsd_store_inferior_registers): Remove target_ops parameter.
8214         (i386bsd_target): Delete.
8215         * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8216         (i386bsd_fetch_inferior_registers)
8217         (i386bsd_store_inferior_registers): Declare.
8218         (i386_bsd_nat_target): New class.
8219         * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8220         (the_i386_fbsd_nat_target): New.
8221         (i386fbsd_resume, i386fbsd_read_description): Refactor as
8222         i386_fbsd_nat_target methods.
8223         (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8224         (_initialize_i386fbsd_nat): Adjust to C++ification.
8225         * x86-bsd-nat.c (super_mourn_inferior): Delete.
8226         (x86bsd_mourn_inferior, x86bsd_target): Delete.
8227         (_initialize_x86_bsd_nat): Adjust to C++ification.
8228         * x86-bsd-nat.h: Include "x86-nat.h".
8229         (x86bsd_target): Delete declaration.
8230         (x86bsd_nat_target): New class.
8231
8232         * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8233         (the_aarch64_fbsd_nat_target): New.
8234         (aarch64_fbsd_fetch_inferior_registers)
8235         (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8236         aarch64_fbsd_nat_target.
8237         (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8238         * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8239         (the_alpha_bsd_nat_target): New.
8240         (alphabsd_fetch_inferior_registers)
8241         (alphabsd_store_inferior_registers): Refactor as
8242         alpha_bsd_nat_target methods.
8243         (_initialize_alphabsd_nat): Refactor as methods of
8244         alpha_bsd_nat_target.
8245         * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8246         (the_amd64_nbsd_nat_target): New.
8247         (_initialize_amd64nbsd_nat): Adjust to C++ification.
8248         * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8249         (the_amd64_obsd_nat_target): New.
8250         (_initialize_amd64obsd_nat): Adjust to C++ification.
8251         * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8252         (the_arm_fbsd_nat_target): New.
8253         (arm_fbsd_fetch_inferior_registers)
8254         (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8255         (_initialize_arm_fbsd_nat): Refactor as methods of
8256         arm_fbsd_nat_target.
8257         (_initialize_arm_fbsd_nat): Adjust to C++ification.
8258         * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8259         (the_arm_netbsd_nat_target): New.
8260         (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8261         arm_netbsd_nat_target.
8262         (_initialize_arm_netbsd_nat): Adjust to C++ification.
8263         * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8264         (the_hppa_nbsd_nat_target): New.
8265         (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8266         hppa_nbsd_nat_target methods.
8267         (_initialize_hppanbsd_nat): Adjust to C++ification.
8268         * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8269         (the_hppa_obsd_nat_target): New.
8270         (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8271         methods of hppa_obsd_nat_target.
8272         (_initialize_hppaobsd_nat): Adjust to C++ification.  Use
8273         add_target.
8274         * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8275         (_initialize_i386nbsd_nat): Adjust to C++ification.  Use
8276         add_target.
8277         * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8278         (_initialize_i386obsd_nat): Use add_target.
8279         * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8280         (the_m68k_bsd_nat_target): New.
8281         (m68kbsd_fetch_inferior_registers)
8282         (m68kbsd_store_inferior_registers): Refactor as methods of
8283         m68k_bsd_nat_target.
8284         (_initialize_m68kbsd_nat): Adjust to C++ification.
8285         * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8286         (the_mips_fbsd_nat_target): New.
8287         (mips_fbsd_fetch_inferior_registers)
8288         (mips_fbsd_store_inferior_registers): Refactor as methods of
8289         mips_fbsd_nat_target.
8290         (_initialize_mips_fbsd_nat): Adjust to C++ification.  Use
8291         add_target.
8292         * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8293         (the_mips_nbsd_nat_target): New.
8294         (mipsnbsd_fetch_inferior_registers)
8295         (mipsnbsd_store_inferior_registers): Refactor as methods of
8296         mips_nbsd_nat_target.
8297         (_initialize_mipsnbsd_nat): Adjust to C++ification.
8298         * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8299         (the_mips64_obsd_nat_target): New.
8300         (mips64obsd_fetch_inferior_registers)
8301         (mips64obsd_store_inferior_registers): Refactor as methods of
8302         mips64_obsd_nat_target.
8303         (_initialize_mips64obsd_nat): Adjust to C++ification.  Use
8304         add_target.
8305         * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8306         nbsd_nat_target.
8307         * nbsd-nat.h: Include "inf-ptrace.h".
8308         (nbsd_nat_target): New class.
8309         * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8310         (obsd_wait): Refactor as methods of obsd_nat_target.
8311         (obsd_add_target): Delete.
8312         * obsd-nat.h: Include "inf-ptrace.h".
8313         (obsd_nat_target): New class.
8314         * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8315         (the_ppc_fbsd_nat_target): New.
8316         (ppcfbsd_fetch_inferior_registers)
8317         (ppcfbsd_store_inferior_registers): Refactor as methods of
8318         ppc_fbsd_nat_target.
8319         (_initialize_ppcfbsd_nat): Adjust to C++ification.  Use
8320         add_target.
8321         * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8322         (the_ppc_nbsd_nat_target): New.
8323         (ppcnbsd_fetch_inferior_registers)
8324         (ppcnbsd_store_inferior_registers): Refactor as methods of
8325         ppc_nbsd_nat_target.
8326         (_initialize_ppcnbsd_nat): Adjust to C++ification.
8327         * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8328         (the_ppc_obsd_nat_target): New.
8329         (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8330         methods of ppc_obsd_nat_target.
8331         (_initialize_ppcobsd_nat): Adjust to C++ification.  Use
8332         add_target.
8333         * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8334         (the_sh_nbsd_nat_target): New.
8335         (shnbsd_fetch_inferior_registers)
8336         (shnbsd_store_inferior_registers): Refactor as methods of
8337         sh_nbsd_nat_target.
8338         (_initialize_shnbsd_nat): Adjust to C++ification.
8339         * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8340         (inf_ptrace_xfer_partial): Delete.
8341         (sparc_xfer_partial, sparc_target): Delete.
8342         * sparc-nat.h (sparc_fetch_inferior_registers)
8343         (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8344         (sparc_target): Delete function declaration.
8345         (sparc_target): New template class.
8346         * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8347         (_initialize_sparcnbsd_nat): Adjust to C++ification.
8348         * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8349         (_initialize_sparc64fbsd_nat): Adjust to C++ification.  Use
8350         add_target.
8351         * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8352         (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8353         * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8354         (_initialize_sparc64obsd_nat): Adjust to C++ification.  Use
8355         add_target.
8356         * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8357         (the_vax_bsd_nat_target): New.
8358         (vaxbsd_fetch_inferior_registers)
8359         (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8360         methods.
8361         (_initialize_vaxbsd_nat): Adjust to C++ification.
8362
8363         * bsd-kvm.c (bsd_kvm_target): New class.
8364         (bsd_kvm_ops): Now a bsd_kvm_target.
8365         (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8366         (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8367         (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8368         bsd_kvm_target.
8369         (bsd_kvm_return_one): Delete.
8370         (bsd_kvm_add_target): Adjust to C++ification.
8371
8372         * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8373         (nto_procfs_target_procfs): New classes.
8374         (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8375         (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8376         (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8377         (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8378         (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8379         (procfs_remove_hw_breakpoint, procfs_resume)
8380         (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8381         (procfs_kill_inferior, procfs_store_registers)
8382         (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8383         as methods of nto_procfs_target.
8384         (nto_procfs_ops): Now an nto_procfs_target_procfs.
8385         (nto_native_ops): Delete.
8386         (procfs_open, procfs_native_open): Delete.
8387         (nto_native_ops): Now an nto_procfs_target_native.
8388         (init_procfs_targets): Adjust to C++ification.
8389         (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8390         (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8391         Refactor as methods of nto_procfs_target.
8392
8393         * go32-nat.c (go32_nat_target): New class.
8394         (the_go32_nat_target): New.
8395         (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8396         (go32_store_registers, go32_xfer_partial, go32_files_info)
8397         (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8398         (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8399         (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8400         (go32_pid_to_str): Refactor as methods of go32_nat_target.
8401         (go32_target): Delete.
8402         (_initialize_go32_nat): Adjust to C++ification.
8403
8404         * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8405         (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8406         (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8407         (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8408         gnu_nat_target.
8409         (gnu_target): Delete.
8410         * gnu-nat.h (gnu_target): Delete.
8411         (gnu_nat_target): New class.
8412         * i386-gnu-nat.c (gnu_base_target): New.
8413         (i386_gnu_nat_target): New class.
8414         (the_i386_gnu_nat_target): New.
8415         (_initialize_i386gnu_nat): Adjust to C++ification.
8416
8417 2018-05-02  Pedro Alves  <palves@redhat.com>
8418
8419         * bfd-target.c (target_bfd_xclose): Rename to ...
8420         (target_bfd_close): ... this.
8421         (target_bfd_reopen): Adjust.
8422         * target.c (target_close): Remove references to to_xclose.
8423         * target.h (target_ops::to_xclose): Delete.
8424         (target_ops::to_close): Update comments.
8425
8426 2018-05-02  Pedro Alves  <palves@redhat.com>
8427
8428         * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8429         "linux-nat.h".
8430         * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8431         * inf-ptrace.c (inf_ptrace_register_u_offset)
8432         (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8433         (inf_ptrace_store_register, inf_ptrace_store_registers)
8434         (inf_ptrace_trad_target): Move to ...
8435         * linux-nat-trad.c: ... this new file.
8436         * linux-nat-trad.h: New file.
8437         * linux-nat.c (linux_target_install_ops): Make extern.
8438         (linux_trad_target): Delete.
8439         * linux-nat.h (linux_trad_target): Delete declaration.
8440         (linux_target_install_ops): Declare.
8441         * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8442         "linux-nat.h".
8443
8444 2018-05-02  Pedro Alves  <palves@redhat.com>
8445
8446         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8447         procfs_target/add_target here.
8448         * procfs.c (procfs_target): Make static.
8449         (_initialize_procfs): Call add_target here.
8450         * procfs.h (struct target_ops): Remove forward declaration.
8451         (procfs_target): Remove declaration.
8452         * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8453
8454 2018-05-02  Pedro Alves  <palves@redhat.com>
8455
8456         * procfs.c (procfs_stopped_by_watchpoint)
8457         (procfs_insert_watchpoint, procfs_remove_watchpoint)
8458         (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8459         Forward declare.
8460         (procfs_use_watchpoints): Delete, move contents...
8461         (procfs_target): ... here.
8462         * procfs.h (procfs_use_watchpoints): Delete declaration.
8463         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8464         procfs_use_watchpoints.
8465         * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8466         procfs_use_watchpoints.
8467
8468 2018-05-02  Tom Tromey  <tom@tromey.com>
8469
8470         PR python/20084:
8471         * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8472         and var_zuinteger_unlimited.
8473         * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8474         and PARAM_ZUINTEGER_UNLIMITED.
8475         (set_parameter_value): Handle var_zuinteger and
8476         var_zuinteger_unlimited.
8477         (add_setshow_generic): Likewise.
8478         (parmpy_init): Likewise.
8479
8480 2018-04-28  Dan Robertson  <danlrobertson89@gmail.com>
8481
8482         PR rust/23124
8483         * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8484         pointer is not null before dereferencing it.
8485
8486 2018-04-30  Tom Tromey  <tom@tromey.com>
8487
8488         * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8489         is_mi_like_p.
8490
8491 2018-04-30  Tom Tromey  <tom@tromey.com>
8492
8493         * breakpoint.c (mention): Remove use of is_mi_like_p.
8494         (print_mention_ranged_breakpoint): Likewise.
8495         * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8496         of is_mi_like_p.
8497
8498 2018-04-30  Tom Tromey  <tom@tromey.com>
8499
8500         * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8501
8502 2018-04-30  Tom Tromey  <tom@tromey.com>
8503
8504         * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8505         (info_spu_event_command): Remove some uses of is_mi_like_p.
8506
8507 2018-04-30  Tom Tromey  <tom@tromey.com>
8508
8509         * python/py-framefilter.c (py_print_single_arg)
8510         (enumerate_locals, py_print_args, py_print_frame): Remove some
8511         uses of is_mi_like_p.
8512
8513 2018-04-30  Tom Tromey  <tom@tromey.com>
8514
8515         * ui-out.c: Update.
8516         * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8517         * ui-out.h (ui_out::is_mi_like_p): Now const.
8518         (ui_out::do_is_mi_like_p): Now const.
8519         * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8520
8521 2018-04-30  Tom Tromey  <tom@tromey.com>
8522
8523         * varobj.c (varobj_set_visualizer): Use new_reference.
8524         * python/python.c (gdbpy_decode_line): Use new_reference.
8525         * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8526         new_reference.
8527
8528 2018-04-30  Tom Tromey  <tom@tromey.com>
8529
8530         * varobj.c (install_new_value): Use new_reference.
8531         * value.h (value_incref): Return void.  Swap intro comment with
8532         value_decref.
8533         * value.c (set_value_parent): Use new_reference.
8534         (value_incref): Return void.  Update intro comment.
8535         (release_value): Use new_reference.
8536         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8537
8538 2018-04-30  Tom Tromey  <tom@tromey.com>
8539
8540         * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8541         * gdb_bfd.h (new_bfd_ref): Remove.
8542         (gdb_bfd_open): Update comment.
8543         * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8544         (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8545         (gdb_bfd_fdopenr): Use new_reference.
8546         * exec.c (exec_file_attach): Use new_reference.
8547
8548 2018-04-30  Tom Tromey  <tom@tromey.com>
8549
8550         * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8551         method.
8552
8553 2018-04-30  Tom Tromey  <tom@tromey.com>
8554
8555         * jit.c (jit_read_code_entry): Use type_align.
8556         * i386-tdep.c (i386_gdbarch_init): Don't call
8557         set_gdbarch_long_long_align_bit.
8558         * gdbarch.sh: Remove long_long_align_bit.
8559         * gdbarch.c, gdbarch.h: Rebuild.
8560         * arc-tdep.c (arc_type_align): New function.
8561         (arc_gdbarch_init): Use arc_type_align.  Don't call
8562         set_gdbarch_long_long_align_bit.
8563
8564 2018-04-30  Tom Tromey  <tom@tromey.com>
8565
8566         * rust-lang.c (rust_type_alignment): Remove.
8567         (rust_composite_type): Use type_align.
8568
8569 2018-04-30  Tom Tromey  <tom@tromey.com>
8570
8571         * NEWS: Mention Type.align.
8572         * python/py-type.c (typy_get_alignof): New function.
8573         (type_object_getset): Add "alignof".
8574
8575 2018-04-30  Tom Tromey  <tom@tromey.com>
8576
8577         PR exp/17095:
8578         * NEWS: Update.
8579         * std-operator.def (UNOP_ALIGNOF): New operator.
8580         * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8581         New.
8582         * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8583         * c-lang.c (c_op_print_tab): Add alignof.
8584         * c-exp.y (ALIGNOF): New token.
8585         (exp): Add "ALIGNOF" production.
8586         (ident_tokens): Add _Alignof and alignof.
8587
8588 2018-04-30  Tom Tromey  <tom@tromey.com>
8589
8590         * i386-tdep.c (i386_type_align): New function.
8591         (i386_gdbarch_init): Update.
8592         * gdbarch.sh (type_align): New method.
8593         * gdbarch.c, gdbarch.h: Rebuild.
8594         * arch-utils.h (default_type_align): Declare.
8595         * arch-utils.c (default_type_align): New function.
8596         * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8597         (struct type) <align_log2>: New field.
8598         <instance_flags>: Now a bitfield.
8599         (TYPE_RAW_ALIGN): New macro.
8600         (type_align, type_raw_align, set_type_align): Declare.
8601         * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8602         functions.
8603         * dwarf2read.c (quirk_rust_enum): Set type alignment.
8604         (get_alignment, maybe_set_alignment): New functions.
8605         (read_structure_type, read_enumeration_type, read_array_type)
8606         (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8607         (read_subrange_type, read_base_type): Set type alignment.
8608
8609 2018-04-30  Simon Marchi  <simon.marchi@ericsson.com>
8610
8611         * dwarf2read.c (read_index_from_section): Use bool.
8612
8613 2018-04-29  Fabian Groffen  <grobian@gentoo.org>
8614
8615         PR gdb/22950
8616         * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8617         with #ifdef.
8618
8619 2018-04-29  John Reiser  <jreiser@BitWagon.com>
8620
8621         PR build/22873
8622         * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8623         last step, and do it atomically.
8624
8625 2018-04-27  Alexandre Oliva  <aoliva@redhat.com>
8626
8627         * compile/compile-c-types.c (convert_int, convert_float):
8628         Update for C FE v1.
8629
8630 2018-04-27  Tom Tromey  <tom@tromey.com>
8631
8632         PR rust/22545:
8633         * rust-lang.c (rust_inclusive_range_type_p): New function.
8634         (rust_range): Handle inclusive ranges.
8635         (rust_compute_range): Likewise.
8636         * rust-exp.y (struct rust_op) <inclusive>: New field.
8637         (DOTDOTEQ): New constant.
8638         (range_expr): Add "..=" productions.
8639         (operator_tokens): Add "..=" token.
8640         (ast_range): Add "inclusive" parameter.
8641         (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8642         ranges.
8643         * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8644         bounds values.
8645         * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8646         LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8647         Update comments.
8648         * expprint.c (print_subexp_standard): Handle new bounds values.
8649         (dump_subexp_body_standard): Likewise.
8650
8651 2018-04-27  Tom Tromey  <tom@tromey.com>
8652
8653         * configure: Rebuild.
8654         * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8655         * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8656         "OVERRIDE".
8657         (class symbol_needs_eval_context): Likewise.
8658         * dwarf2read.c (mock_mapped_index::symbol_name_count)
8659         (mock_mapped_index::symbol_name_at): Use "override".  Remove
8660         "virtual".
8661         * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8662         "override".
8663         (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8664         * aarch64-tdep.c (instruction_reader::read): Use "override".
8665         (instruction_reader_test::read): Likewise.
8666         * arm-tdep.c (instruction_reader::read): Use "override".
8667         (instruction_reader_thumb::read): Likewise.
8668
8669 2018-04-26  Andrzej Kaczmarek  <andrzej.kaczmarek@codecoup.pl>
8670
8671         PR remote/9665
8672         * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8673         instead of remote_send.
8674         (remote_send): Remove.
8675
8676 2018-04-26  Pedro Alves  <palves@redhat.com>
8677
8678         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8679         find_function_start_sal instead of find_pc_line.
8680
8681 2018-04-26  Pedro Alves  <palves@redhat.com>
8682
8683         * breakpoint.c (set_breakpoint_location_function): Handle
8684         mst_data_gnu_ifunc.
8685         * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8686         * elfread.c (elf_symtab_read): Give data symbols with
8687         BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8688         (elf_rel_plt_read): Update comment.
8689         * linespec.c (convert_linespec_to_sals): Handle
8690         mst_data_gnu_ifunc.
8691         (minsym_found): Handle mst_data_gnu_ifunc.
8692         * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8693         (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8694         * parse.c (find_minsym_type_and_address): Handle
8695         mst_data_gnu_ifunc.
8696         * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8697         * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8698         * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8699         comment.
8700         <mst_data_gnu_ifunc>: New enumerator.
8701
8702 2018-04-26  Pedro Alves  <palves@redhat.com>
8703
8704         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8705         (lookup_minimal_symbol_by_pc_section): ... this.  Replace
8706         'want_trampoline' parameter by a lookup_msym_prefer parameter.
8707         Handle it.
8708         (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8709         (lookup_minimal_symbol_by_pc): Adjust.
8710         (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8711         (lookup_solib_trampoline_symbol_by_pc): Adjust.
8712         * minsyms.h (lookup_msym_prefer): New enum.
8713         (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8714         parameter by a lookup_msym_prefer parameter.
8715
8716 2018-04-26  Pedro Alves  <palves@redhat.com>
8717
8718         * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8719         ends in "@plt" instead of looking at the symbol's section.
8720
8721 2018-04-26  Pedro Alves  <palves@redhat.com>
8722
8723         * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete.  Remove
8724         all references.
8725         (find_pc_partial_function_gnu_ifunc): Rename to ...
8726         (find_pc_partial_function): ... this, and remove references to
8727         'is_gnu_ifunc_p'.
8728         (find_pc_partial_function): Delete old implementation.
8729         * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8730
8731 2018-04-26  Pedro Alves  <palves@redhat.com>
8732
8733         * linespec.c (struct bound_minimal_symbol_search_key): New.
8734         (convert_linespec_to_sals): Sort minimal symbols earlier.  Don't
8735         skip first line if we found a GNU ifunc minimal symbol by name.
8736         (compare_msymbols): Change parameters to work with a destructured
8737         lhs minsym.
8738         (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8739         functions.
8740
8741 2018-04-26  Pedro Alves  <palves@redhat.com>
8742
8743         * breakpoint.c (set_breakpoint_location_function): Don't resolve
8744         ifunc targets here.  Instead, if we have an ifunc minsym, use its
8745         address/name.
8746         (add_location_to_breakpoint): Store the minsym and the objfile in
8747         the breakpoint location.
8748         * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8749         * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8750         Record the minsym in the sal.
8751         * symtab.h (symtab_and_line) <msymbol>: New field.
8752
8753 2018-04-26  Pedro Alves  <palves@redhat.com>
8754
8755         * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8756         unless we actually resolved the ifunc.
8757
8758 2018-04-26  Pedro Alves  <palves@redhat.com>
8759
8760         * c-exp.y (variable production): Prefer ifunc minsyms over
8761         regular function symbols.
8762         * symtab.c (find_gnu_ifunc): New function.
8763         * minsyms.h (lookup_msym_prefer): New enum.
8764         (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8765         parameter by a lookup_msym_prefer parameter.
8766         * symtab.h (find_gnu_ifunc): New declaration.
8767
8768 2018-04-26  Pedro Alves  <palves@redhat.com>
8769
8770         * blockframe.c (find_gnu_ifunc_target_type): New function.
8771         (find_function_type): New.
8772         * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8773         return a value with a memory address.
8774         (eval_call): For calls to GNU ifunc functions, try to find the
8775         type of the target function from the type that the resolver
8776         returns.
8777         * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8778         symbols.
8779         * infcall.c (find_function_return_type): Delete.
8780         (find_function_addr): Add 'function_type' parameter.  For calls to
8781         GNU ifunc functions, try to find the type of the target function
8782         from the type that the resolver returns, and return it via
8783         FUNCTION_TYPE.
8784         (call_function_by_hand_dummy): Adjust to use the function type
8785         returned by find_function_addr.
8786         (find_function_addr): Add 'function_type' parameter and move
8787         description here.
8788         * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8789         declarations.
8790
8791 2018-04-26  Pedro Alves  <palves@redhat.com>
8792
8793         * c-exp.y (variable production): Skip finding an alias for ifunc
8794         symbols.
8795
8796 2018-04-26  Pedro Alves  <palves@redhat.com>
8797
8798         * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8799
8800 2018-04-25  Pedro Alves  <palves@redhat.com>
8801
8802         * infcmd.c (kill_command): Print the pid as string, not the whole
8803         thread's ptid.  Add comment.  s/has been killed/killed/ in output
8804         message.
8805         * remote.c (remote_detach_1): Print the pid as string, not the
8806         whole thread's ptid.
8807
8808 2018-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
8809             Sergio Durigan Junior  <sergiodj@redhat.com>
8810             Pedro Alves  <palves@redhat.com>
8811
8812         * infcmd.c (kill_command): Print message when inferior has
8813         been killed.
8814         * inferior.c (print_inferior_events): Remove 'static'.  Set as
8815         '1'.
8816         (add_inferior): Improve message printed when
8817         'print_inferior_events' is on.
8818         (exit_inferior): Remove message printed when
8819         'print_inferior_events' is on.
8820         (detach_inferior): Improve message printed when
8821         'print_inferior_events' is on.
8822         (initialize_inferiors): Use 'add_inferior_silent' to set
8823         'current_inferior_'.
8824         * inferior.h (print_inferior_events): Declare here as
8825         'extern'.
8826         * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8827         '[Detaching...]' messages when 'print_inferior_events' is on.
8828         Use 'add_thread_silent' instead of 'add_thread'.  Add '[' and ']'
8829         as prefix/suffix for messages.  Remove periods.  Fix erroneous
8830         'Detaching after fork from child...', replace it by '... from
8831         parent...'.
8832         (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8833         prefix/suffix when printing 'Detaching...' messages.  Print
8834         them when 'print_inferior_events' is on.
8835         * remote.c (remote_detach_1): Print message when detaching
8836         from inferior and '!is_fork_parent'.
8837
8838 2018-04-24  Tom Tromey  <tom@tromey.com>
8839
8840         * cli-out.h: Reindent.
8841
8842 2018-04-24  Tom Tromey  <tom@tromey.com>
8843
8844         * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8845         (cli_ui_out::do_field_string): Use fputs_filtered.
8846         * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8847
8848 2018-04-23  Tom Tromey  <tom@tromey.com>
8849
8850         * guile/scm-frame.c (gdbscm_frame_read_var): Use
8851         gdb::unique_xmalloc_ptr.
8852
8853 2018-04-23  Tom Tromey  <tom@tromey.com>
8854
8855         * configure: Rebuild.
8856
8857 2018-04-22  Rajendra SY  <rajendra.sy@gmail.com>
8858
8859         PR gdb/23095
8860         * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8861         prepare_for_testing.  Set normal_bp to r_debug_state if target
8862         is bsd.
8863
8864 2018-04-21  Pedro Alves  <palves@redhat.com>
8865             Rajendra SY  <rajendra.sy@gmail.com>
8866
8867         * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8868         * remote.c (extended_remote_attach): In all-stop mode, mark the
8869         thread as executing.
8870
8871 2018-04-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
8872
8873         * thread.c (thread_apply_all_command): Fix comment.
8874         (thread_command): Fix comment.
8875
8876 2018-04-10  Alan Hayward  <alan.hayward@arm.com>
8877
8878         * common/tdesc.h (tdesc_create_feature): Remove xml filename
8879         parameter.
8880         * features/aarch64-core.c (create_feature_aarch64_core):
8881         Regenerate.
8882         * features/aarch64-fpu.c (create_feature_aarch64_fpu):
8883         Likewise.
8884         * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
8885         Likewise.
8886         * features/i386/32bit-avx512.c
8887         (create_feature_i386_32bit_avx512): Likewise.
8888         * features/i386/32bit-core.c (create_feature_i386_32bit_core):
8889         Likewise.
8890         * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
8891         Likewise.
8892         * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
8893         Likewise.
8894         * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
8895         Likewise.
8896         * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
8897         Likewise.
8898         * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
8899         Likewise.
8900         * features/i386/64bit-avx512.c
8901         (create_feature_i386_64bit_avx512): Likewise.
8902         * features/i386/64bit-core.c (create_feature_i386_64bit_core):
8903         Likewise.
8904         * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
8905         Likewise.
8906         * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
8907         Likewise.
8908         * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
8909         Likewise.
8910         * features/i386/64bit-segments.c
8911         (create_feature_i386_64bit_segments): Likewise.
8912         * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
8913         Likewise.
8914         * features/i386/x32-core.c
8915         (create_feature_i386_x32_core): Likewise.
8916         * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
8917         * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
8918         * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
8919         * target-descriptions.c: In generated code, don't pass xml
8920         filename.
8921
8922 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
8923
8924         * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
8925         (print_xml_feature::visit_post): Likewise.
8926         (print_xml_feature::visit): Likewise.
8927         * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
8928         (print_xml_feature): Add new class.
8929         * regformats/regdat.sh: Null xmltarget on feature targets.
8930         * target-descriptions.c (struct target_desc): Add xmltarget.
8931         (maintenance_check_tdesc_xml_convert): Add unittest function.
8932         (tdesc_get_features_xml): Add function to get xml.
8933         (maintenance_check_xml_descriptions): Test xml generation.
8934         * xml-tdesc.c (string_read_description_xml): Add function.
8935         * xml-tdesc.h (string_read_description_xml): Add declaration.
8936
8937 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
8938
8939         * features/Makefile: Add feature marker to targets with new style
8940         target descriptions.
8941         * regformats/aarch64.dat: Regenerate.
8942         * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
8943         * regformats/i386/amd64-avx-linux.dat: Likewise.
8944         * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
8945         * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
8946         * regformats/i386/amd64-linux.dat: Likewise.
8947         * regformats/i386/amd64-mpx-linux.dat: Likewise.
8948         * regformats/i386/amd64.dat: Likewise.
8949         * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
8950         * regformats/i386/i386-avx-linux.dat: Likewise.
8951         * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
8952         * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
8953         * regformats/i386/i386-linux.dat: Likewise.
8954         * regformats/i386/i386-mmx-linux.dat: Likewise.
8955         * regformats/i386/i386-mpx-linux.dat: Likewise.
8956         * regformats/i386/i386.dat: Likewise.
8957         * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
8958         * regformats/i386/x32-avx-linux.dat: Likewise.
8959         * regformats/i386/x32-linux.dat: Likewise.
8960         * regformats/tic6x-c62x-linux.dat: Likewise.
8961         * regformats/tic6x-c64x-linux.dat: Likewise.
8962         * regformats/tic6x-c64xp-linux.dat: Likewise.
8963         * regformats/regdat.sh: Parse feature marker.
8964
8965 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
8966
8967         * common/tdesc.h (tdesc_architecture_name): Add new declaration.
8968         (tdesc_osabi_name): Likewise.
8969         * target-descriptions.c (tdesc_architecture_name): Add new
8970         function.
8971         (tdesc_osabi_name): Likewise.
8972
8973 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
8974
8975         * common/tdesc.c (tdesc_predefined_type): Move to here.
8976         (tdesc_named_type): Likewise.
8977         (tdesc_create_vector): Likewise.
8978         (tdesc_create_struct): Likewise.
8979         (tdesc_set_struct_size): Likewise.
8980         (tdesc_create_union): Likewise.
8981         (tdesc_create_flags): Likewise.
8982         (tdesc_create_enum): Likewise.
8983         (tdesc_add_field): Likewise.
8984         (tdesc_add_typed_bitfield): Likewise.
8985         (tdesc_add_bitfield): Likewise.
8986         (tdesc_add_flag): Likewise.
8987         (tdesc_add_enum_value): Likewise.
8988         * common/tdesc.h (struct tdesc_type_builtin): Likewise.
8989         (struct tdesc_type_vector): Likewise.
8990         (struct tdesc_type_field): Likewise.
8991         (struct tdesc_type_with_fields): Likewise.
8992         (tdesc_create_enum): Add declaration.
8993         (tdesc_add_typed_bitfield): Likewise.
8994         (tdesc_add_enum_value): Likewise.
8995         * target-descriptions.c (tdesc_type_field): Move from here.
8996         (tdesc_type_builtin): Likewise.
8997         (tdesc_type_vector): Likewise.
8998         (tdesc_type_with_fields): Likewise.
8999         (tdesc_predefined_types): Likewise.
9000         (tdesc_named_type): Likewise.
9001         (tdesc_create_vector): Likewise.
9002         (tdesc_create_struct): Likewise.
9003         (tdesc_set_struct_size): Likewise.
9004         (tdesc_create_union): Likewise.
9005         (tdesc_create_flags): Likewise.
9006         (tdesc_create_enum): Likewise.
9007         (tdesc_add_field): Likewise.
9008         (tdesc_add_typed_bitfield): Likewise.
9009         (tdesc_add_bitfield): Likewise.
9010         (tdesc_add_flag): Likewise.
9011         (tdesc_add_enum_value): Likewise.
9012         * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9013         (tdesc_add_typed_bitfield): Likewise.
9014         (tdesc_add_enum_value): Likewise.
9015
9016 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
9017
9018         * common/tdesc.c (tdesc_feature::accept): Move to here.
9019         (tdesc_feature::operator==): Likewise.
9020         (tdesc_create_reg): Likewise.
9021         * common/tdesc.h (tdesc_type_kind): Likewise.
9022         (struct tdesc_type): Likewise.
9023         (struct tdesc_feature): Likewise.
9024         * regformats/regdat.sh: Create a feature.
9025         * target-descriptions.c (tdesc_type_kind): Move from here.
9026         (tdesc_type): Likewise.
9027         (tdesc_type_up): Likewise.
9028         (tdesc_feature): Likewise.
9029         (tdesc_create_reg): Likewise.
9030
9031 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
9032
9033         * Makefile.in: Add arch/tdesc.c
9034         * common/tdesc.c: New file.
9035         * common/tdesc.h (tdesc_element_visitor): Move to here.
9036         (tdesc_element): Likewise.
9037         (tdesc_reg): Likewise.
9038         (tdesc_reg_up): Likewise.
9039         * regformats/regdef.h (reg): Add offset to constructors.
9040         * target-descriptions.c (tdesc_element_visitor): Move from here.
9041         (tdesc_element): Likewise.
9042         (tdesc_reg): Likewise.
9043         (tdesc_reg_up): Likewise.
9044
9045 2018-04-17  Tom Tromey  <tom@tromey.com>
9046
9047         * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9048         discriminant field.
9049
9050 2018-04-17  Tom Tromey  <tom@tromey.com>
9051
9052         * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9053
9054 2018-04-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9055
9056         * symtab.c (print_symbol_info): Skip printing filename and line
9057         number when `last' is NULL.
9058         (symtab_symbol_info): Use empty string instead of NULL for first
9059         invocation of print_symbol_info.
9060         (rbreak_command): Pass NULL to `last' parameter of
9061         print_symbol_info.
9062
9063 2018-04-16  Simon Marchi  <simon.marchi@ericsson.com>
9064
9065         * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9066         instead of nullptr.
9067
9068 2018-04-16  Pedro Alves  <palves@redhat.com>
9069
9070         * MAINTAINERS (sh): Remove.
9071         * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9072         (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9073         (ALLDEPFILES): Remove sh64-tdep.c.
9074         * NEWS: Mentions that support for SH-5/SH64 is removed.
9075         * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9076         (sh*-*-openbsd*): Ditto.
9077         (sh64-*-elf*): Remove.
9078         (sh*): Remove.
9079         * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9080         * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9081         * sh-tdep.c: No longer include "sh64-tdep.h".
9082         (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9083         * sh64-tdep.c, sh64-tdep.h: Remove files.
9084
9085 2018-04-16  Pedro Alves  <palves@redhat.com>
9086
9087         * MAINTAINERS: Remove m88k.
9088         * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9089         (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9090         (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9091         * NEWS: Mention that support for m88k was removed.
9092         * configure.host (m88*-*-*): Remove support.
9093         * configure.nat (m88k-*-*): Remove support.
9094         * configure.tgt (m88*-*-openbsd*): Remove.
9095         * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9096
9097 2018-04-15  Simon Marchi  <simon.marchi@polymtl.ca>
9098
9099         * configure.tgt (x86_tobjs): New variable.
9100         (amd64_tobjs, i386_tobjs): Use it.
9101
9102 2018-04-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9103
9104         * symtab.c (print_symbol_info): Precede the symbol definition by
9105         the line number when available.
9106         * NEWS: Advertise this enhancement.
9107
9108 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
9109
9110         * NEWS (New options): announce set/show record btrace cpu.
9111         * btrace.c: Include record-btrace.h.
9112         (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9113         the vendor is unknown.
9114         (btrace_compute_ftrace_1): Add cpu parameter.  Update callers.
9115         Maybe overwrite the btrace configuration's cpu.
9116         (btrace_compute_ftrace): Add cpu parameter.  Update callers.
9117         (btrace_fetch): Add cpu parameter.  Update callers.
9118         (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9119         Maybe overwrite the btrace configuration's cpu.  Skip enabling
9120         errata workarounds if the vendor is unknown.
9121         * python/py-record-btrace.c: Include record-btrace.h.
9122         (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9123         (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9124         * record-btrace.c (record_btrace_cpu_state_kind): New.
9125         (record_btrace_cpu): New.
9126         (set_record_btrace_cpu_cmdlist): New.
9127         (record_btrace_get_cpu): New.
9128         (require_btrace_thread, record_btrace_info)
9129         (record_btrace_resume_thread): Call record_btrace_get_cpu.
9130         (cmd_set_record_btrace_cpu_none): New.
9131         (cmd_set_record_btrace_cpu_auto): New.
9132         (cmd_set_record_btrace_cpu): New.
9133         (cmd_show_record_btrace_cpu): New.
9134         (_initialize_record_btrace): Initialize set/show record btrace cpu
9135         commands.
9136         * record-btrace.h (record_btrace_get_cpu): New.
9137
9138 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
9139
9140         * record.c (set_record_command): Fix typo in message.
9141
9142 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
9143
9144         * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9145
9146 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
9147
9148         * infrun.c (process_event_stop_test): Call
9149         gdbarch_in_indirect_branch_thunk.
9150         * gdbarch.sh (in_indirect_branch_thunk): New.
9151         * gdbarch.c: Regenerated.
9152         * gdbarch.h: Regenerated.
9153         * x86-tdep.h: New.
9154         * x86-tdep.c: New.
9155         * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9156         (HFILES_NO_SRCDIR): Add x86-tdep.h.
9157         (ALLDEPFILES): Add x86-tdep.c.
9158         * arch-utils.h (default_in_indirect_branch_thunk): New.
9159         * arch-utils.c (default_in_indirect_branch_thunk): New.
9160         * i386-tdep: Include x86-tdep.h.
9161         (i386_in_indirect_branch_thunk): New.
9162         (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9163         function.
9164         * amd64-tdep: Include x86-tdep.h.
9165         (amd64_in_indirect_branch_thunk): New.
9166         (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9167
9168 2018-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9169
9170         PR gdb/23053
9171         * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9172         (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9173         (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9174         regression.
9175
9176 2018-04-12  Tom Tromey  <tom@tromey.com>
9177
9178         * rust-lang.c (rust_print_struct_def): Remove univariant code.
9179         (rust_evaluate_subexp): Likewise.
9180
9181 2018-04-12  Pedro Alves  <palves@redhat.com>
9182
9183         * procfs.c (procfs_detach): Make forward declaration's prototype
9184         match definition's protototype.
9185         (proc_get_LDT_entry): Remove stale do_cleanups call.
9186
9187 2018-04-12  Pedro Alves  <palves@redhat.com>
9188
9189         * target.h (target_ops::to_has_exited): Delete.
9190         (target_has_exited): Delete.
9191         * target-delegates.c: Regenerate.
9192
9193 2018-04-11  Pedro Alves  <palves@redhat.com>
9194
9195         * target.c (fileio_fh_t::t): Add comment.
9196         (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9197         (target_fileio_close): Handle a NULL target.
9198         (invalidate_fileio_fh): New.
9199         (target_close): Call it.
9200         * remote.c (remote_hostio_send_command): No longer check whether
9201         remote_desc is open.
9202
9203 2018-04-11  Pedro Alves  <palves@redhat.com>
9204
9205         * target.c (fileio_fh_t): Make it a named struct instead of a
9206         typedef.
9207         (fileio_fh_t::is_closed): New method.
9208         (DEF_VEC_O (fileio_fh_t)): Remove.
9209         (fileio_fhandles): Now a std::vector.
9210         (is_closed_fileio_fh): Delete.
9211         (acquire_fileio_fd): Adjust.  Rename parameters.
9212         (release_fileio_fd): Adjust.
9213         (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9214         (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9215         (target_fileio_close): Adjust.
9216
9217 2018-04-10  Simon Marchi  <simon.marchi@ericsson.com>
9218
9219         * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9220         index.
9221
9222 2018-04-10  Pedro Alves  <palves@redhat.com>
9223
9224         * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9225         (scoped_finish_thread_state): New class.
9226         * infcmd.c (run_command_1): Use it instead of finish_thread_state
9227         cleanup.
9228         * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9229         (fetch_inferior_event, normal_stop): Likewise.
9230         * thread.c (finish_thread_state_cleanup): Delete.
9231
9232 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
9233             Pedro Alves  <palves@redhat.com>
9234
9235         * value.c: Include "selftest.h" and "common/array-view.h".
9236         (struct range) <operator ==>: New.
9237         (test_ranges_contain): New.
9238         (check_ranges_vector): New.
9239         (test_insert_into_bit_range_vector): New.
9240         (_initialize_values): Register selftests.
9241         * common/array-view.h (operator==, operator!=): New.
9242
9243 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
9244
9245         * common/gdb_vecs.h (unordered_remove): Add overload that takes
9246         an iterator.
9247         * inline-frame.c: Include <algorithm>.
9248         (struct inline_state): Add constructor.
9249         (inline_state_s): Remove.
9250         (DEF_VEC_O(inline_state_s)): Remove.
9251         (inline_states): Change type to std::vector.
9252         (find_inline_frame_state): Adjust to std::vector.
9253         (allocate_inline_frame_state): Remove.
9254         (clear_inline_frame_state): Adjust to std::vector.
9255         (skip_inline_frames): Adjust to std::vector.
9256
9257 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
9258
9259         * tracepoint.h (struct trace_state_variable): Add constructor.
9260         <name>: Change type to std::string.
9261         * tracepoint.c (tsv_s): Remove.
9262         (DEF_VEC_O(tsv_s)): Remove.
9263         (tvariables): Change to std::vector.
9264         (create_trace_state_variable): Adjust to std::vector.
9265         (find_trace_state_variable): Likewise.
9266         (find_trace_state_variable_by_number): Likewise.
9267         (delete_trace_state_variable): Likewise.
9268         (trace_variable_command): Adjust to std::string.
9269         (delete_trace_variable_command): Likewise.
9270         (tvariables_info_1): Adjust to std::vector.
9271         (save_trace_state_variables): Likewise.
9272         (start_tracing): Likewise.
9273         (merge_uploaded_trace_state_variables): Adjust to std::vector
9274         and std::string.
9275         * target.h (struct target_ops)
9276         <to_download_trace_state_variable>: Pass reference to
9277         trace_state_variable.
9278         * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9279         * target-delegates.c: Re-generate.
9280         * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9281         (mi_tsv_deleted): Likewise.
9282         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9283         * remote.c (remote_download_trace_state_variable): Change
9284         pointer to reference and adjust.
9285         * make-target-delegates (parse_argtypes): Handle references.
9286         (write_function_header): Likewise.
9287         (munge_type): Likewise.
9288
9289 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
9290
9291         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9292         string_view-selftests.c.
9293         * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9294         testsuite.
9295         * unittests/basic_string_view/cons/char/1.cc: Likewise.
9296         * unittests/basic_string_view/cons/char/2.cc: Likewise.
9297         * unittests/basic_string_view/cons/char/3.cc: Likewise.
9298         * unittests/basic_string_view/element_access/char/1.cc:
9299         Likewise.
9300         * unittests/basic_string_view/element_access/char/empty.cc:
9301         Likewise.
9302         * unittests/basic_string_view/element_access/char/front_back.cc:
9303         Likewise.
9304         * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9305         * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9306         Likewise.
9307         * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9308         Likewise.
9309         * unittests/basic_string_view/modifiers/swap/char/1.cc:
9310         Likewise.
9311         * unittests/basic_string_view/operations/compare/char/1.cc:
9312         Likewise.
9313         * unittests/basic_string_view/operations/compare/char/13650.cc:
9314         Likewise.
9315         * unittests/basic_string_view/operations/copy/char/1.cc:
9316         Likewise.
9317         * unittests/basic_string_view/operations/data/char/1.cc:
9318         Likewise.
9319         * unittests/basic_string_view/operations/find/char/1.cc:
9320         Likewise.
9321         * unittests/basic_string_view/operations/find/char/2.cc:
9322         Likewise.
9323         * unittests/basic_string_view/operations/find/char/3.cc:
9324         Likewise.
9325         * unittests/basic_string_view/operations/find/char/4.cc:
9326         Likewise.
9327         * unittests/basic_string_view/operations/rfind/char/1.cc:
9328         Likewise.
9329         * unittests/basic_string_view/operations/rfind/char/2.cc:
9330         Likewise.
9331         * unittests/basic_string_view/operations/rfind/char/3.cc:
9332         Likewise.
9333         * unittests/basic_string_view/operations/substr/char/1.cc:
9334         Likewise.
9335         * unittests/basic_string_view/operators/char/2.cc: Likewise.
9336         * unittests/string_view-selftests.c: New file.
9337
9338 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
9339
9340         * unittests/basic_string_view/capacity/1.cc: New file.
9341         * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9342         * unittests/basic_string_view/cons/char/1.cc: New file.
9343         * unittests/basic_string_view/cons/char/2.cc: New file.
9344         * unittests/basic_string_view/cons/char/3.cc: New file.
9345         * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9346         * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9347         * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9348         * unittests/basic_string_view/element_access/char/1.cc: New file.
9349         * unittests/basic_string_view/element_access/char/2.cc: New file.
9350         * unittests/basic_string_view/element_access/char/empty.cc: New file.
9351         * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9352         * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9353         * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9354         * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9355         * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9356         * unittests/basic_string_view/include.cc: New file.
9357         * unittests/basic_string_view/inserters/char/1.cc: New file.
9358         * unittests/basic_string_view/inserters/char/2.cc: New file.
9359         * unittests/basic_string_view/inserters/char/3.cc: New file.
9360         * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9361         * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9362         * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9363         * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9364         * unittests/basic_string_view/literals/types.cc: New file.
9365         * unittests/basic_string_view/literals/values.cc: New file.
9366         * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9367         * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9368         * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9369         * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9370         * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9371         * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9372         * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9373         * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9374         * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9375         * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9376         * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9377         * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9378         * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9379         * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9380         * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9381         * unittests/basic_string_view/operations/data/char/1.cc: New file.
9382         * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9383         * unittests/basic_string_view/operations/find/char/1.cc: New file.
9384         * unittests/basic_string_view/operations/find/char/2.cc: New file.
9385         * unittests/basic_string_view/operations/find/char/3.cc: New file.
9386         * unittests/basic_string_view/operations/find/char/4.cc: New file.
9387         * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9388         * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9389         * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9390         * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9391         * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9392         * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9393         * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9394         * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9395         * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9396         * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9397         * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9398         * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9399         * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9400         * unittests/basic_string_view/operators/char/2.cc: New file.
9401         * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9402         * unittests/basic_string_view/range_access/char/1.cc: New file.
9403         * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9404         * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9405         * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9406         * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9407         * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9408         * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9409         * unittests/basic_string_view/requirements/typedefs.cc: New file.
9410         * unittests/basic_string_view/typedefs.cc: New file.
9411         * unittests/basic_string_view/types/1.cc: New file.
9412
9413 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
9414
9415         * common/gdb_string_view.h: Remove libstdc++ implementation
9416         details, adjust to gdb reality.
9417         * common/gdb_string_view.tcc: Likewise.
9418         * cli/cli-script.c (struct string_view): Remove.
9419         (user_args) <m_args>: Change element type to gdb::string_view.
9420         (user_args::insert_args): Adjust.
9421
9422 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
9423
9424         * common/gdb_string_view.h: New file.
9425         * common/gdb_string_view.tcc: New file.
9426
9427 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
9428
9429         * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9430         * configure: Re-generate.
9431
9432 2018-04-09  Pedro Alves  <palves@redhat.com>
9433
9434         * gdbarch.sh: Include "observable.h" instead of "observer.h".
9435         (set_target_gdbarch): Call
9436         gdb::observers::architecture_changed.notify instead of
9437         observer_notify_architecture_changed.
9438
9439 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
9440
9441         * tracepoint.c (struct current_traceframe_cleanup): Remove.
9442         (do_restore_current_traceframe_cleanup): Remove.
9443         (restore_current_traceframe_cleanup_dtor): Remove.
9444         (make_cleanup_restore_current_traceframe): Remove.
9445         (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9446         New.
9447         * tracepoint.h (struct scoped_restore_current_traceframe): New.
9448         * infrun.c (fetch_inferior_event): Use
9449         scoped_restore_current_traceframe.
9450
9451 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
9452
9453         * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9454         Remove.
9455         <n_allocated_type_units>: Remove.
9456         <all_type_units>: Change to std::vector.
9457         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9458         to std::vector change.
9459         (dwarf2_per_objfile::get_cutu): Likewise.
9460         (dwarf2_per_objfile::get_tu): Likewise.
9461         (create_signatured_type_table_from_index): Likewise.
9462         (create_signatured_type_table_from_debug_names): Likewise.
9463         (dw2_symtab_iter_next): Likewise.
9464         (dw2_print_stats): Likewise.
9465         (dw2_expand_all_symtabs): Likewise.
9466         (dw2_expand_marked_cus): Likewise.
9467         (dw2_debug_names_iterator::next): Likewise.
9468         (dwarf2_initialize_objfile): Likewise.
9469         (add_signatured_type_cu_to_table): Likewise.
9470         (create_all_type_units): Likewise.
9471         (add_type_unit): Likewise.
9472         (struct tu_abbrev_offset): Add constructor.
9473         (build_type_psymtabs_1): Adjust to std::vector change.
9474         (print_tu_stats): Likewise.
9475         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9476         (write_debug_names): Likewise.
9477
9478 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
9479
9480         * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9481         Make an std::vector.
9482         <n_comp_units>: Remove.
9483         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9484         to std::vector change.
9485         (dwarf2_per_objfile::get_cutu): Likewise.
9486         (dwarf2_per_objfile::get_cu): Likewise.
9487         (create_cus_from_index): Likewise.
9488         (create_addrmap_from_index): Likewise.
9489         (create_addrmap_from_aranges): Likewise.
9490         (dwarf2_read_index): Likewise.
9491         (dw2_find_last_source_symtab): Likewise.
9492         (dw2_map_symtabs_matching_filename): Likewise.
9493         (dw2_symtab_iter_next): Likewise.
9494         (dw2_print_stats): Likewise.
9495         (dw2_expand_all_symtabs): Likewise.
9496         (dw2_expand_symtabs_with_fullname): Likewise.
9497         (dw2_expand_marked_cus): Likewise.
9498         (dw2_map_symbol_filenames): Likewise.
9499         (create_cus_from_debug_names): Likewise.
9500         (dwarf2_read_debug_names): Likewise.
9501         (dw2_debug_names_iterator::next): Likewise.
9502         (dwarf2_initialize_objfile): Likewise.
9503         (set_partial_user): Likewise.
9504         (dwarf2_build_psymtabs_hard): Likewise.
9505         (read_comp_units_from_section): Remove arguments, adjust to
9506         std::vector change.
9507         (create_all_comp_units): Adjust to std::vector and
9508         read_comp_units_from_section changes.
9509         (dwarf2_find_containing_comp_unit): Adjust to std::vector
9510         change.
9511         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9512         (psyms_seen_size): Likewise.
9513         (write_gdbindex): Likewise.
9514         (write_debug_names): Likewise.
9515
9516 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
9517
9518         * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9519         with dwarf2_per_objfile.
9520         (create_cus_from_index): Likewise.
9521         (create_signatured_type_table_from_index): Likewise.
9522         (dwarf2_read_index): Likewise.
9523         (dwarf2_initialize_objfile): Likewise.
9524         (dwarf2_fetch_die_loc_sect_off):  Get dwarf2_per_objfile from
9525         per_cu rather than get_dwarf2_per_objfile.
9526
9527 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
9528
9529         * dwarf2read.h (struct signatured_type): Forward declare.
9530         (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9531         New methods.
9532         * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9533         (dw2_get_cutu): ...this.
9534         (dwarf2_per_objfile::get_cu): Rename from...
9535         (dw2_get_cu): ...this.
9536         (dwarf2_per_objfile::get_tu): New.
9537         (create_addrmap_from_index): Adjust.
9538         (create_addrmap_from_aranges): Adjust.
9539         (dw2_find_last_source_symtab): Adjust.
9540         (dw2_map_symtabs_matching_filename): Adjust.
9541         (dw2_symtab_iter_next): Adjust.
9542         (dw2_print_stats): Adjust.
9543         (dw2_expand_all_symtabs): Adjust.
9544         (dw2_expand_symtabs_with_fullname): Adjust.
9545         (dw2_expand_marked_cus): Adjust.
9546         (dw_expand_symtabs_matching_file_matcher): Adjust.
9547         (dw2_map_symbol_filenames): Adjust.
9548         (dw2_debug_names_iterator::next): Adjust.
9549         (dwarf2_initialize_objfile): Adjust.
9550         (set_partial_user): Adjust.
9551         (dwarf2_build_psymtabs_hard): Adjust.
9552
9553 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
9554
9555         * dwarf2read.c (create_signatured_type_table_from_debug_names):
9556         Remove unused variables.
9557         (dw2_map_symtabs_matching_filename): Likewise.
9558         (dwarf2_record_block_ranges): Likewise.
9559         (dwarf2_read_addr_index): Likewise.
9560         (follow_die_offset): Likewise.
9561
9562 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
9563
9564         * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9565         to symbol_file_add_main.
9566
9567 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
9568
9569         PR mi/22299
9570         * mi/mi-console.c (do_fputc_async_safe): New.
9571         (mi_console_file::write_async_safe): New.
9572         (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9573         * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9574         New.
9575         * ui-file.c (ui_file::putstrn): Adjust call to
9576         fputstrn_unfiltered.
9577         * utils.c (printchar): Replace do_fputs and do_fprintf
9578         parameters by do_fputc.
9579         (fputstr_filtered): Adjust call to printchar.
9580         (fputstr_unfiltered): Likewise.
9581         (fputstrn_filtered): Likewise.
9582         (fputstrn_unfiltered): Add do_fputc parameter, pass to
9583         printchar.
9584         * utils.h (do_fputc_ftype): New typedef.
9585         (fputstrn_unfiltered): Add do_fputc parameter.
9586
9587 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
9588
9589         * regformats/i386/i386-avx.dat: Remove.
9590
9591 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
9592
9593         PR gdb/22979
9594         * amd64-tdep.c (amd64_none_init_abi): New function.
9595         (amd64_x32_none_init_abi): New function.
9596         (_initialize_amd64_tdep): Register handlers for x86-64 and
9597         x64_32 with GDB_OSABI_NONE.
9598         * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9599         GDB_OSABI_NONE osabi.
9600
9601 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
9602
9603         PR gdb/22980
9604         * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9605         GDB_OSABI_NONE.
9606         * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9607         * osabi.c (gdb_osabi_names): Add "unknown" entry.
9608
9609 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
9610
9611         * common/byte-vector.h (char_vector): New type.
9612         * target.h (target_read_alloc): Return
9613         gdb::optional<byte_vector>.
9614         (target_read_stralloc): Return gdb::optional<char_vector>.
9615         (target_get_osdata): Return gdb::optional<char_vector>.
9616         * target.c (target_read_alloc_1): Templatize.  Replacement
9617         manual memory management with vector.
9618         (target_read_alloc): Change return type, adjust.
9619         (target_read_stralloc): Change return type, adjust.
9620         (target_get_osdata): Change return type, adjust.
9621         * auxv.c (struct auxv_info) <length>: Remove.
9622         <data>: Change type to gdb::optional<byte_vector>.
9623         (auxv_inferior_data_cleanup): Free auxv_info with delete.
9624         (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9625         (target_auxv_search): Adjust.
9626         (fprint_target_auxv): Adjust.
9627         * avr-tdep.c (avr_io_reg_read_command): Adjust.
9628         * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9629         (linux_make_corefile_notes): Adjust.
9630         * osdata.c (get_osdata): Adjust.
9631         * remote.c (remote_get_threads_with_qxfer): Adjust.
9632         (remote_memory_map): Adjust.
9633         (remote_traceframe_info): Adjust.
9634         (btrace_read_config): Adjust.
9635         (remote_read_btrace): Adjust.
9636         (remote_pid_to_exec_file): Adjust.
9637         * solib-aix.c (solib_aix_get_library_list): Adjust.
9638         * solib-dsbt.c (decode_loadmap): Don't free buf.
9639         (dsbt_get_initial_loadmaps): Adjust.
9640         * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9641         * solib-target.c (solib_target_current_sos): Adjust.
9642         * tracepoint.c (sdata_make_value): Adjust.
9643         * xml-support.c (xinclude_start_include): Adjust.
9644         (xml_fetch_content_from_file): Adjust.
9645         * xml-support.h (xml_fetch_another): Change return type.
9646         (xml_fetch_content_from_file): Change return type.
9647         * xml-syscall.c (xml_init_syscalls_info): Adjust.
9648         * xml-tdesc.c (file_read_description_xml): Adjust.
9649         (fetch_available_features_from_target): Change return type.
9650         (target_fetch_description_xml): Adjust.
9651         (target_read_description_xml): Adjust.
9652
9653 2018-04-06  Tom Tromey  <tom@tromey.com>
9654
9655         * value.c (~value): Update.
9656         (struct value) <contents>: Now unique_xmalloc_ptr.
9657         (value_contents_bits_eq, allocate_value_contents)
9658         (value_contents_raw, value_contents_all_raw)
9659         (value_contents_for_printing, value_contents_for_printing_const)
9660         (set_value_enclosing_type): Update.
9661
9662 2018-04-06  Tom Tromey  <tom@tromey.com>
9663
9664         * value.c (range_s): Remove typedef, VEC.
9665         (struct range): Add operator<.
9666         (range_lessthan): Remove.
9667         (ranges_contain): Change type.
9668         (~value): Update.
9669         (struct value) <unavailable, optimized_out>: Now std::vector.
9670         (value_entirely_available)
9671         (value_entirely_covered_by_range_vector)
9672         (value_entirely_unavailable, value_entirely_optimized_out):
9673         Update.
9674         (insert_into_bit_range_vector): Change argument type.
9675         (find_first_range_overlap): Likewise.
9676         (struct ranges_and_idx, value_contents_bits_eq)
9677         (require_not_optimized_out, require_available): Update.
9678         (ranges_copy_adjusted): Change argument types.
9679         (value_optimized_out, value_copy, value_fetch_lazy): Update.
9680
9681 2018-04-06  Tom Tromey  <tom@tromey.com>
9682
9683         * value.c (~value): Update.
9684         (struct value) <parent>: Now a value_ref_ptr.
9685         (value_parent, set_value_parent, value_address, value_copy):
9686         Update.
9687
9688 2018-04-06  Tom Tromey  <tom@tromey.com>
9689
9690         * value.c (struct value): Add constructor, destructor, and member
9691         initializers.
9692         (allocate_value_lazy, value_decref): Update.
9693
9694 2018-04-06  Tom Tromey  <tom@tromey.com>
9695
9696         * value.c (struct value) <released, next>: Remove.
9697         (all_values): Now a std::vector.
9698         (allocate_value_lazy): Update.
9699         (value_next): Remove.
9700         (value_mark, value_free_to_mark, release_value)
9701         (value_release_to_mark): Update.
9702
9703 2018-04-06  Tom Tromey  <tom@tromey.com>
9704
9705         * value.h (fetch_subexp_value, value_release_to_mark): Update.
9706         (free_value_chain): Remove.
9707         * value.c (free_value_chain): Remove.
9708         (value_release_to_mark): Return a std::vector.
9709         * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9710         std::vector.
9711         (check_condition): Update.
9712         * eval.c (fetch_subexp_value): Change "val_chain" to a
9713         std::vector.
9714         * breakpoint.c (update_watchpoint): Update.
9715         (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9716
9717 2018-04-06  Tom Tromey  <tom@tromey.com>
9718
9719         * value.h (free_all_values): Remove.
9720         * value.c (free_all_values): Remove.
9721
9722 2018-04-06  Tom Tromey  <tom@tromey.com>
9723
9724         * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9725         (value_history_chain, value_history_count): Remove.
9726         (value_history): New global.
9727         (record_latest_value, access_value_history, show_values)
9728         (preserve_values): Update.
9729
9730 2018-04-06  Tom Tromey  <tom@tromey.com>
9731
9732         * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9733         * varobj.c (varobj_set_display_format, varobj_set_value)
9734         (install_default_visualizer, construct_visualizer)
9735         (install_new_value, ~varobj, varobj_get_value_type)
9736         (my_value_of_variable, varobj_editable_p): Update.
9737         * c-varobj.c (c_describe_child, c_value_of_variable)
9738         (cplus_number_of_children, cplus_describe_child): Update.
9739         * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9740         (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9741         (ada_value_of_variable, ada_value_is_changeable_p): Update.
9742
9743 2018-04-06  Tom Tromey  <tom@tromey.com>
9744
9745         * printcmd.c (last_examine_address): Change type to
9746         value_ref_ptr.
9747         (do_examine, x_command): Update.
9748
9749 2018-04-06  Tom Tromey  <tom@tromey.com>
9750
9751         * value.c (release_value): Update.
9752         * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9753         (struct bpstats) <val>: Now a value_ref_ptr.
9754         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9755         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9756         (~watchpoint, print_it_watchpoint, watch_command_1)
9757         (invalidate_bp_value_on_memory_change): Update.
9758
9759 2018-04-06  Tom Tromey  <tom@tromey.com>
9760
9761         * varobj.c (varobj_clear_saved_item)
9762         (update_dynamic_varobj_children, install_new_value, ~varobj):
9763         Update.
9764         * value.h (value_incref): Move declaration earlier.
9765         (value_decref): Rename from value_free.
9766         (struct value_ref_policy): New.
9767         (value_ref_ptr): New typedef.
9768         (struct value_deleter): Remove.
9769         (gdb_value_up): Remove typedef.
9770         (release_value): Change return type.
9771         (release_value_or_incref): Remove.
9772         * value.c (set_value_parent): Update.
9773         (value_incref): Change return type.
9774         (value_decref): Rename from value_free.
9775         (value_free_to_mark, free_all_values, free_value_chain): Update.
9776         (release_value): Return value_ref_ptr.
9777         (release_value_or_incref): Remove.
9778         (record_latest_value, set_internalvar, clear_internalvar):
9779         Update.
9780         * stack.c (info_frame_command): Don't call value_free.
9781         * python/py-value.c (valpy_dealloc, valpy_new)
9782         (value_to_value_object): Update.
9783         * printcmd.c (do_examine): Update.
9784         * opencl-lang.c (lval_func_free_closure): Update.
9785         * mi/mi-main.c (register_changed_p): Don't call value_free.
9786         * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9787         * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9788         * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9789         value_free.
9790         * guile/scm-value.c (vlscm_free_value_smob)
9791         (vlscm_scm_from_value): Update.
9792         * frame.c (frame_register_unwind, frame_unwind_register_signed)
9793         (frame_unwind_register_unsigned, get_frame_register_bytes)
9794         (put_frame_register_bytes): Don't call value_free.
9795         * findvar.c (address_from_register): Don't call value_free.
9796         * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9797         * dwarf2loc.c (entry_data_value_free_closure)
9798         (value_of_dwarf_reg_entry, free_pieced_value_closure)
9799         (dwarf2_evaluate_loc_desc_full): Update.
9800         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9801         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9802         (~watchpoint, watch_command_1)
9803         (invalidate_bp_value_on_memory_change): Update.
9804         * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9805
9806 2018-04-06  Simon Marchi  <simon.marchi@polymtl.ca>
9807
9808         PR gdb/23022
9809         * warning.m4: Add -Wno-error=deprecated-register.
9810         * configure: Re-generate.
9811
9812 2018-04-05  Tom Tromey  <tom@tromey.com>
9813
9814         * linespec.h: Remove include of "vec.h".
9815
9816 2018-04-05  Tom Tromey  <tom@tromey.com>
9817
9818         * linespec.c (typep): Remove typedef.
9819         (find_methods, find_superclass_methods): Take a std::vector.
9820         (find_method): Use std::vector.
9821
9822 2018-04-05  Tom Tromey  <tom@tromey.com>
9823
9824         * utils.c (compare_strings): Remove.
9825         * utils.h (compare_strings): Remove.
9826         * objc-lang.h (find_imps): Update.
9827         * objc-lang.c (find_methods): Take a std::vector.
9828         (uniquify_strings, find_imps): Likewise.
9829         * linespec.c (find_methods): Take a std::vector.
9830         (decode_objc): Use std::vector.
9831         (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9832         a std::vector.
9833         (find_method, find_function_symbols): Use std::vector.
9834
9835 2018-04-05  Tom Tromey  <tom@tromey.com>
9836
9837         * completer.c (completion_tracker::completion_tracker): Remove
9838         cast.
9839         (completion_tracker::discard_completions): Likewise.
9840         * breakpoint.c (ambiguous_names_p): Remove cast.
9841         * ada-lang.c (_initialize_ada_language): Remove cast.
9842         * utils.h (streq): Update.
9843         (streq_hash): Add new declaration.
9844         * utils.c (streq): Return bool.
9845         (streq_hash): New function.
9846
9847 2018-04-05  Tom Tromey  <tom@tromey.com>
9848
9849         * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9850         Remove a string copy.
9851
9852 2018-04-05  Tom Tromey  <tom@tromey.com>
9853
9854         * linespec.c (filter_results): Use std::vector.
9855         (decode_line_2, decode_line_full): Update.
9856
9857 2018-04-05  Tom Tromey  <tom@tromey.com>
9858
9859         * linespec.c (canonical_to_fullform): Return std::string.
9860         (filter_results): Update.
9861         (struct decode_line_2_item): Add constructor.
9862         <fullform, displayform>: Now std::string.
9863         (decode_line_2_compare_items): Now a std::sort comparator.
9864         (decode_line_2): Update.
9865
9866 2018-04-05  Tom Tromey  <tom@tromey.com>
9867
9868         * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9869         (unexpected_linespec_error): Update.
9870         (linespec_parse_basic, parse_linespec): Update.
9871
9872 2018-04-05  Tom Tromey  <tom@tromey.com>
9873
9874         * linespec.c (linespec_parse_basic): Reindent.
9875
9876 2018-04-05  Tom Tromey  <tom@tromey.com>
9877
9878         * minsyms.h (iterate_over_minimal_symbols): Update.
9879         * minsyms.c (iterate_over_minimal_symbols): Take a
9880         gdb::function_view.
9881         * linespec.c (struct collect_minsyms): Remove.
9882         (compare_msyms): Now a std::sort comparator.
9883         (add_minsym): Add parameters.
9884         (search_minsyms_for_name): Update.  Use std::vector.
9885
9886 2018-04-03  Tom Tromey  <tom@tromey.com>
9887
9888         * mipsread.c (read_alphacoff_dynamic_symtab): Use
9889         gdb::byte_vector.
9890
9891 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
9892
9893         * MAINTAINERS (Write After Approval): Add Weimin Pan.
9894
9895 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
9896
9897         PR gdb/16959
9898         * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when 
9899         printing static type.
9900
9901 2018-04-01  Tom Tromey  <tom@tromey.com>
9902
9903         * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
9904         (rs6000_xfer_shared_libraries): Update.
9905
9906 2018-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
9907
9908         * common/gdb_vecs.h (char_ptr): Remove.
9909         * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
9910
9911 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
9912
9913         * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
9914         with std::vector.
9915         * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
9916
9917 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
9918
9919         * tracepoint.h (struct uploaded_tp): Initialize fields.
9920         <actions, step_actions, cmd_strings>: Change type to
9921         std::vector<char *>.
9922         * tracepoint.c (get_uploaded_tp): Allocate with new.
9923         (free_uploaded_tps): Free with delete.
9924         (parse_tracepoint_definition): Adjust to std::vector change.
9925         * breakpoint.c (read_uploaded_action): Likewise.
9926         (create_tracepoint_from_upload): Likewise.
9927         * ctf.c (ctf_write_uploaded_tp): Likewise.
9928         (SET_ARRAY_FIELD): Likewise.
9929         * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
9930
9931 2018-03-30  Tom Tromey  <tom@tromey.com>
9932
9933         * solib-svr4.c (lm_info_read): Use gdb::byte_vector.  Return
9934         std::unique_ptr.
9935         (svr4_keep_data_in_core): Update.
9936         (svr4_read_so_list): Update.
9937
9938 2018-03-30  Tom Tromey  <tom@tromey.com>
9939
9940         * windows-nat.c (handle_output_debug_string, handle_exception):
9941         Update.
9942         * target.h (target_read_string): Update.
9943         * target.c (target_read_string): Change "string" to
9944         unique_xmalloc_ptr.
9945         * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9946         Update.
9947         * solib-frv.c (frv_current_sos): Update.
9948         * solib-dsbt.c (dsbt_current_sos): Update.
9949         * solib-darwin.c (darwin_current_sos): Update.
9950         * linux-thread-db.c (inferior_has_bug): Update.
9951         * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
9952         Update.  Remove alloca.
9953         * ada-lang.c (ada_main_name): Update.
9954
9955 2018-03-30  Tom Tromey  <tom@tromey.com>
9956
9957         * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
9958         (struct dwo_file_deleter): New.
9959         (dwo_file_up): New typedef.
9960         (open_and_init_dwo_file): Use dwo_file_up.
9961         (free_dwo_file_cleanup): Remove.
9962
9963 2018-03-30  Tom Tromey  <tom@tromey.com>
9964
9965         * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
9966         (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
9967
9968 2018-03-30  Tom Tromey  <tom@tromey.com>
9969
9970         * dwarf2read.c (class free_cached_comp_units): New class.
9971         (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
9972         (free_cached_comp_units): Remove function.
9973
9974 2018-03-30  Tom Tromey  <tom@tromey.com>
9975
9976         * utils.h (make_cleanup_unpush_target): Remove.
9977         * inf-ptrace.c (struct target_unpusher): New.
9978         (target_unpush_up) New typedef.
9979         (inf_ptrace_create_inferior, inf_ptrace_attach): Use
9980         target_unpush_up.
9981         * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
9982
9983 2018-03-27  Tom Tromey  <tom@tromey.com>
9984
9985         * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
9986
9987 2018-03-27  Pedro Alves  <palves@redhat.com>
9988             Tom Tromey  <tom@tromey.com>
9989
9990         * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
9991         destructor.  Now a class.
9992         (gdb_readline_wrapper_cleanup): Remove function.
9993         (gdb_readline_wrapper): Remove cleanups.
9994
9995 2018-03-27  Tom Tromey  <tom@tromey.com>
9996
9997         * typeprint.h (struct type_print_options) <local_typedefs,
9998         global_typedefs>: Remove "struct" keyword.
9999         (class typedef_hash_table): New class.
10000         (recursively_update_typedef_hash, add_template_parameters)
10001         (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10002         (find_typedef_in_hash): Don't declare.
10003         * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10004         (typedef_hash_table::recursively_update): Rename from
10005         recursively_update_typedef_hash.  Now a member.
10006         (typedef_hash_table::add_template_parameters): Rename from
10007         add_template_parameters.  Now a member.
10008         (typedef_hash_table::typedef_hash_table): Now a constructor;
10009         rename from create_typedef_hash.
10010         (typedef_hash_table::~typedef_hash_table): Now a destructor;
10011         rename from free_typedef_hash.
10012         (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10013         (do_free_global_table): Remove.
10014         (typedef_hash_table::typedef_hash_table): New constructor; renamed
10015         from copy_type_recursive.
10016         (create_global_typedef_table): Remove.
10017         (typedef_hash_table::find_global_typedef): Now a member of
10018         typedef_hash_table.
10019         (typedef_hash_table::find_typedef): Rename from
10020         find_typedef_in_hash; now a member.
10021         (whatis_exp): Update.
10022         * extension.h (struct ext_lang_type_printers): Add constructor and
10023         destructor.
10024         (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10025         declare.
10026         * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10027         Now a constructor; rename from start_ext_lang_type_printers.
10028         (ext_lang_type_printers): Now a destructor; rename from
10029         free_ext_lang_type_printers.
10030         * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10031         Update.
10032         (c_type_print_base_struct_union): Update.  Remove cleanups.
10033
10034 2018-03-27  Tom Tromey  <tom@tromey.com>
10035
10036         * dwarf-index-write.c: Include <cmath>.
10037
10038 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
10039
10040         * NEWS: Add entry describing new "set|show varsize-limit" command.
10041         * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10042         command.
10043         * printcmd.c (_initialize_printcmd): Add "set var" alias of
10044         "set variable".
10045
10046 2018-03-27  Simon Marchi  <simon.marchi@ericsson.com>
10047
10048         * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10049         dwarf-index-write.c
10050         (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10051         * dwarf-index-common.c: New file.
10052         * dwarf-index-common.h: New file.
10053         * dwarf-index-write.c: New file.
10054         * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10055         (struct dwarf2_section_info): Move from here.
10056         (dwarf2_section_info_def): Likewise.
10057         (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10058         (offset_type): Likewise.
10059         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10060         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10061         (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10062         (byte_swap): Likewise.
10063         (MAYBE_SWAP): Likewise.
10064         (dwarf2_per_cu_ptr): Likewise.
10065         (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10066         (struct tu_stats): Likewise.
10067         (struct dwarf2_per_objfile): Likewise.
10068         (struct dwarf2_per_cu_data): Likewise.
10069         (struct signatured_type): Likewise.
10070         (sig_type_ptr): Likewise.
10071         (DEF_VEC_P (sig_type_ptr)): Likewise.
10072         (INDEX4_SUFFIX): Likewise.
10073         (INDEX5_SUFFIX): Likewise.
10074         (DEBUG_STR_SUFFIX): Likewise.
10075         (dwarf2_read_section): Make non-static.
10076         (mapped_index_string_hash): Move from here.
10077         (dwarf5_djb_hash): Likewise.
10078         (file_write): Likewise.
10079         (class data_buf): Likewise.
10080         (struct symtab_index_entry): Likewise.
10081         (struct mapped_symtab): Likewise.
10082         (find_slot): Likewise.
10083         (hash_expand): Likewise.
10084         (add_index_entry): Likewise.
10085         (uniquify_cu_indices): Likewise.
10086         (class c_str_view): Likewise.
10087         (class c_str_view_hasher): Likewise.
10088         (class vector_hasher): Likewise.
10089         (write_hash_table): Likewise.
10090         (psym_index_map): Likewise.
10091         (struct addrmap_index_data): Likewise.
10092         (add_address_entry): Likewise.
10093         (add_address_entry_worker): Likewise.
10094         (write_address_map): Likewise.
10095         (symbol_kind): Likewise.
10096         (write_psymbols): Likewise.
10097         (struct signatured_type_index_data): Likewise.
10098         (write_one_signatured_type): Likewise.
10099         (recursively_count_psymbols): Likewise.
10100         (recursively_write_psymbols): Likewise.
10101         (class debug_names): Likewise.
10102         (check_dwarf64_offsets): Likewise.
10103         (psyms_seen_size): Likewise.
10104         (write_gdbindex): Likewise.
10105         (write_debug_names): Likewise.
10106         (assert_file_size): Likewise.
10107         (write_psymtabs_to_index): Likewise.
10108         (save_gdb_index_command): Likewise.
10109         (_initialize_dwarf2_read): Don't register the "save gdb-index"
10110         command.
10111         * dwarf2read.h: New file.
10112
10113 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
10114
10115         PR gdb/22670
10116         * dwarf2read.c (dwarf2_physname): Do not return the demangled
10117         symbol name if the CU's language stores symbol names in linkage
10118         format.
10119         * language.h (struct language_defn)
10120         <la_store_sym_names_in_linkage_form_p>: New field.  Adjust
10121         all instances of this struct.
10122
10123 2018-03-26  Tom Tromey  <tom@tromey.com>
10124
10125         * stack.c (backtrace_command_1): Remove verbose code.
10126
10127 2018-03-26  Tom Tromey  <tom@tromey.com>
10128
10129         * python/py-framefilter.c (py_print_type): Don't catch
10130         exceptions.  Return void.
10131         (py_print_value): Likewise.
10132         (py_print_single_arg): Likewise.
10133         (enumerate_args): Don't catch exceptions.
10134         (py_print_args): Likewise.
10135         (py_print_frame): Likewise.
10136         (gdbpy_apply_frame_filter): Catch exceptions here.
10137
10138 2018-03-26  Tom Tromey  <tom@tromey.com>
10139
10140         * stack.c (_initialize_stack): Remove trailing newlines from help
10141         text.  Add "Usage" line to "backtrace" help.
10142
10143 2018-03-26  Tom Tromey  <tom@tromey.com>
10144
10145         PR python/16486:
10146         * python/py-framefilter.c (py_print_args): Call wrap_hint.
10147
10148 2018-03-26  Tom Tromey  <tom@tromey.com>
10149
10150         * python/py-framefilter.c (py_print_single_arg): Return
10151         EXT_LANG_BT_ERROR from catch.
10152
10153 2018-03-26  Tom Tromey  <tom@tromey.com>
10154
10155         PR backtrace/15584:
10156         * stack.c (backtrace_command_1): Move some code into no-filters
10157         "if".
10158
10159 2018-03-26  Tom Tromey  <tom@tromey.com>
10160
10161         * python/py-framefilter.c (throw_quit_or_print_exception): New
10162         function.
10163         (gdbpy_apply_frame_filter): Use it.
10164
10165 2018-03-26  Tom Tromey  <tom@tromey.com>
10166
10167         PR cli/17716:
10168         * python/py-framefilter.c (py_print_type, py_print_value)
10169         (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10170         RETURN_MASK_ERROR.
10171
10172 2018-03-26  Tom Tromey  <tom@tromey.com>
10173
10174         * python/py-framefilter.c (enumerate_args): Use
10175         gdb::unique_xmalloc_ptr.
10176
10177 2018-03-26  Tom Tromey  <tom@tromey.com>
10178
10179         * python/py-framefilter.c (py_print_frame): Return
10180         EXT_LANG_BT_OK.
10181         (gdbpy_apply_frame_filter): Update comment.
10182         * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10183         Remove.
10184         <EXT_LANG_BT_NO_FILTERS>: Change value.
10185
10186 2018-03-26  Tom Tromey  <tom@tromey.com>
10187
10188         PR backtrace/15582:
10189         * stack.c (backtrace_command): Parse "hide" argument.
10190         * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10191         * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10192         constant.
10193
10194 2018-03-26  Tom Tromey  <tom@tromey.com>
10195
10196         * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10197         add "flags".
10198         (backtrace_command): Remove "fulltrace", add "flags".
10199
10200 2018-03-26  Tom Tromey  <tom@tromey.com>
10201
10202         * stack.c (backtrace_command): Rewrite command line parsing.
10203
10204 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
10205
10206         * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10207
10208 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
10209
10210         * filename-seen-cache.h: Add include guard.
10211
10212 2018-03-26  Keith Seitz  <keiths@redhat.com>
10213
10214         * symfile.c (place_section): Remove "struct" from section_addr_info
10215         in comment.
10216         * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10217         "struct" keyword from section_addr_info.
10218
10219 2018-03-26  Alan Hayward  <alan.hayward@arm.com>
10220
10221         * regformats/regdef.h (reg): Add constructors.
10222
10223 2018-03-25  Pedro Alves  <palves@redhat.com>
10224
10225         * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10226         if then/else bodies in var_func_name extraction.
10227
10228 2018-03-23  Weimin Pan  <weimin.pan@oracle.com>
10229
10230         * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10231         lookup_minimal_symbol() to find symbol entry.
10232         * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10233
10234 2018-03-23  Keith Seitz  <keiths@redhat.com>
10235
10236         PR c++/22968
10237         * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10238         nested type definitions for C++, too.
10239
10240 2018-03-23  Tom Tromey  <tom@tromey.com>
10241
10242         * machoread.c (struct oso_el): Add a constructor.  Don't define as
10243         a typedef.
10244         (macho_register_oso): Remove.
10245         (macho_symtab_read): Take a std::vector.
10246         (oso_el_compare_name): Now a std::sort comparator.
10247         (macho_symfile_read_all_oso): Take a std::vector.
10248         (macho_symfile_read): Use std::vector.  Remove cleanups.
10249
10250 2018-03-22  Tom Tromey  <tom@tromey.com>
10251
10252         * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10253         (record_full_goto_bookmark): Use std::string.
10254
10255 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
10256
10257         PR tdep/18295
10258         * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10259         a single mask.
10260
10261 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
10262
10263         * rs6000-tdep.c (store_insn_p): New function.
10264         (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10265         and cr_reg to their unshifted values. Use store_insn_p to
10266         match LR saves using either R1 or fdata->alloca_reg. Use
10267         store_insn_p to match CR saves. Set alloca_reg_offset
10268         when alloca_reg and framep are set. Remove lr_reg shift
10269         when assigning to fdata->lr_register.
10270
10271 2018-03-22  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10272
10273         * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10274         command line args instead of emitting a warning.
10275
10276 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
10277
10278         * tracepoint.h (struct static_tracepoint_marker): Initialize
10279         fields, define default constructor, move constructor and move
10280         assignment, disable the rest.
10281         <str_id, extra>: Make std::string.
10282         (release_static_tracepoint_marker): Remove.
10283         (free_current_marker): Remove.
10284         * tracepoint.c (free_current_marker): Remove.
10285         (parse_static_tracepoint_marker_definition): Adjust to
10286         std::string, use new hex2str overload.
10287         (release_static_tracepoint_marker): Remove.
10288         (print_one_static_tracepoint_marker): Get marker by reference
10289         and adjust to std::string.
10290         (info_static_tracepoint_markers_command): Adjust to std::vector
10291         changes
10292         * target.h (static_tracepoint_marker_p): Remove typedef.
10293         (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10294         (struct target_ops) <to_static_tracepoint_marker_at>: Return
10295         bool.
10296         <to_static_tracepoint_markers_by_strid>: Return std::vector.
10297         * target-debug.h
10298         (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10299         (target_debug_print_std_vector_static_tracepoint_marker): New.
10300         (target_debug_print_struct_static_tracepoint_marker_p): Rename
10301         to...
10302         (target_debug_print_static_tracepoint_marker_p): ... this.
10303         * target-delegates.c: Re-generate.
10304         * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10305         Make std::string.
10306         * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10307         (decode_static_tracepoint_spec): Adjust to std::vector.
10308         (tracepoint_print_one_detail): Adjust to std::string.
10309         (strace_marker_decode_location): Adjust to std::string.
10310         (update_static_tracepoint): Adjust to std::string, remove call
10311         to release_static_tracepoint_marker.
10312         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10313         Adjust to std::vector.
10314         * remote.c (remote_static_tracepoint_marker_at): Return bool.
10315         (remote_static_tracepoint_markers_by_strid): Adjust to
10316         std::vector.
10317         * common/rsp-low.h (hex2str): New overload with explicit count
10318         of bytes.
10319         * common/rsp-low.c (hex2str): New overload with explicit count
10320         of bytes.
10321         * unittests/rsp-low-selftests.c (test_hex2str): New function.
10322         (_initialize_rsp_low_selftests): Add test_hex2str test.
10323         * unittests/tracepoint-selftests.c
10324         (test_parse_static_tracepoint_marker_definition): Adjust to
10325         std::string.
10326
10327 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
10328
10329         * tracepoint.c (parse_static_tracepoint_marker_definition):
10330         Consider case where the definition is followed by more
10331         definitions.
10332         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10333         tracepoint-selftests.c.
10334         * unittests/tracepoint-selftests.c: New.
10335
10336 2018-03-21  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
10337
10338         * MAINTAINERS (Write After Approval): Add Pedro Franco de
10339         Carvalho.
10340
10341 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
10342
10343         * symtab.c (find_pc_sect_line): fixed indentation.
10344
10345 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
10346
10347         * symtab.c (find_pc_sect_line): now uses binary search.
10348
10349 2018-03-19  Tom Tromey  <tom@tromey.com>
10350
10351         * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10352         "IDENT" production.
10353
10354 2018-03-19  Pedro Alves  <palves@redhat.com>
10355             Tom Tromey  <tom@tromey.com>
10356
10357         * unittests/observable-selftests.c: New file.
10358         * common/observable.h: New file.
10359         * observable.h: New file.
10360         * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10361         arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10362         breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10363         corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10364         extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10365         infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10366         linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10367         mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10368         ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10369         python/py-breakpoint.c, python/py-finishbreakpoint.c,
10370         python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10371         record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10372         riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10373         spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10374         symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10375         tui/tui-interp.c, valops.c: Update all users.
10376         * tui/tui-hooks.c (tui_bp_created_observer)
10377         (tui_bp_deleted_observer, tui_bp_modified_observer)
10378         (tui_inferior_exit_observer, tui_before_prompt_observer)
10379         (tui_normal_stop_observer, tui_register_changed_observer):
10380         Remove.
10381         (tui_observers_token): New global.
10382         (attach_or_detach, tui_attach_detach_observers): New functions.
10383         (tui_install_hooks, tui_remove_hooks): Use
10384         tui_attach_detach_observers.
10385         * record-btrace.c (record_btrace_thread_observer): Remove.
10386         (record_btrace_thread_observer_token): New global.
10387         * observer.sh: Remove.
10388         * observer.c: Rename to observable.c.
10389         * observable.c (namespace gdb_observers): Define new objects.
10390         (observer_debug): Move into gdb_observers namespace.
10391         (struct observer, struct observer_list, xalloc_observer_list_node)
10392         (xfree_observer_list_node, generic_observer_attach)
10393         (generic_observer_detach, generic_observer_notify): Remove.
10394         (_initialize_observer): Update.
10395         Don't include observer.inc.
10396         * Makefile.in (generated_files): Remove observer.h, observer.inc.
10397         (clean mostlyclean): Likewise.
10398         (observer.h, observer.inc): Remove targets.
10399         (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10400         (COMMON_SFILES): Use observable.c, not observer.c.
10401         * .gitignore: Remove observer.h.
10402
10403 2018-03-18  Tom Tromey  <tom@tromey.com>
10404
10405         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10406         gdb::def_vector.
10407         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10408
10409 2018-03-17  Tom Tromey  <tom@tromey.com>
10410
10411         * auto-load.c (auto_load_objfile_script_1): Use std::string.
10412
10413 2018-03-17  Tom Tromey  <tom@tromey.com>
10414
10415         * target.c (class scoped_target_fd): New.
10416         (target_fileio_close_cleanup): Remove.
10417         (target_fileio_read_alloc_1): Use scoped_target_fd.
10418
10419 2018-03-16  Simon Marchi  <simon.marchi@polymtl.ca>
10420
10421         * silent-rules.mk: New.
10422         * Makefile.in: Include silent-rules.mk
10423         (srcdir, VPATH, top_srcdir): Move up.
10424         (COMPILE): Add ECHO_CXX.
10425         (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10426         (init.c): Add ECHO_INIT_C.
10427         (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10428         (version.c): Add ECHO_GEN.
10429         (printcmd.o): Add ECHO_CXX.
10430         (target-float.o): Add ECHO_CXX.
10431         (ada-exp.o): Add ECHO_CXX.
10432         (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10433         (insight$(EXEEXT)): Add ECHO_CXXLD.
10434         * gnulib/configure.ac: Add AM_SILENT_RULES.
10435         * gnulib/aclocal.m4: Re-generate.
10436         * gnulib/configure: Re-generate.
10437         * gnulib/import/Makefile.in: Re-generate.
10438
10439 2018-03-16  Tom Tromey  <tom@tromey.com>
10440
10441         * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10442         * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10443         * utils.c (do_free_section_addr_info)
10444         (make_cleanup_free_section_addr_info): Remove.
10445         * symfile.h (struct other_sections): Add constructor.
10446         (struct section_addr_info): Remove.
10447         (section_addr_info): New typedef.
10448         (struct sym_fns) <sym_offsets>: Change type of parameter.
10449         (build_section_addr_info_from_objfile)
10450         (relative_addr_info_to_section_offsets, addr_info_make_relative)
10451         (default_symfile_offsets, symbol_file_add)
10452         (symbol_file_add_from_bfd)
10453         (build_section_addr_info_from_section_table): Update.
10454         (alloc_section_addr_info, free_section_addr_info): Don't declare.
10455         * symfile.c (alloc_section_addr_info): Remove.
10456         (build_section_addr_info_from_section_table): Change return type.
10457         Update.
10458         (build_section_addr_info_from_bfd)
10459         (build_section_addr_info_from_objfile): Likewise.
10460         (free_section_addr_info): Remove.
10461         (relative_addr_info_to_section_offsets): Change type of "addrs".
10462         (addrs_section_compar): Now a std::sort comparator.
10463         (addrs_section_sort): Change return type.
10464         (addr_info_make_relative): Change type of "addrs".  Update.
10465         (default_symfile_offsets, syms_from_objfile_1)
10466         (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10467         (symbol_file_add_separate): Update.
10468         (symbol_file_add): Change type of "addrs".  Update.
10469         (add_symbol_file_command): Update.  Remove cleanups.
10470         * symfile-mem.c (symbol_file_add_from_memory): Update.  Remove
10471         cleanups.
10472         * symfile-debug.c (debug_sym_offsets): Change type of "info".
10473         * solib.c (solib_read_symbols): Update.
10474         * objfiles.c (objfile_relocate): Update.  Remove cleanups.
10475         * machoread.c (macho_symfile_offsets): Update.
10476         * jit.c (jit_bfd_try_read_symtab): Update.
10477
10478 2018-03-15  Simon Marchi  <simon.marchi@polymtl.ca>
10479
10480         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10481         unittests/utils-selftests.c.
10482         * unittests/utils-selftests.c: New file.
10483
10484 2018-03-14  Tom Tromey  <tom@tromey.com>
10485
10486         PR cli/14977:
10487         * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10488         for NULL.
10489
10490 2018-03-14  Tom Tromey  <tom@tromey.com>
10491
10492         PR cli/19918:
10493         * printcmd.c (printf_pointer): Allow "-" in format.
10494
10495 2018-03-14  Tom Tromey  <tom@tromey.com>
10496
10497         * printcmd.c (_initialize_printcmd): Add usage to printf.
10498
10499 2018-03-14  Yao Qi  <qiyao@sourceware.org>
10500
10501         * MAINTAINERS: Update my email address.
10502
10503 2018-03-13  Tom Tromey  <tom@tromey.com>
10504
10505         * machoread.c (macho_check_dsym): Change filenamep to a
10506         std::string*.
10507         (macho_symfile_read): Update.
10508         * symfile.c (load_command): Use std::string.
10509
10510 2018-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
10511
10512         * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10513         to error message string.
10514         (riscv_register_name): Use xsnprintf instead of sprintf.
10515         (riscv_insn::fetch_instruction): Use gdb_assert instead of
10516         internal_error.
10517         (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10518         error.
10519         (riscv_push_dummy_call): Likewise.
10520
10521 2018-03-12  Tom Tromey  <tom@tromey.com>
10522
10523         * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10524         Use gdb::byte_vector.
10525         * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10526
10527 2018-03-12  Yao Qi  <yao.qi@linaro.org>
10528
10529         * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10530         parameter type to readable_regcache.
10531         * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10532         the declaration.
10533
10534 2018-03-11  Tom Tromey  <tom@tromey.com>
10535
10536         * dwarf2read.c (struct nextfield): Add initializers.
10537         (struct nextfnfield): Remove.
10538         (struct fnfieldlist): Add initializers.  Remove "length" and
10539         "head", use std::vector.
10540         (struct decl_field_list): Remove.
10541         (struct field_info): Add initializers.
10542         <fields, baseclasses>: Now std::vector.
10543         <nbaseclasses, nfnfields, typedef_field_list_count,
10544         nested_types_list_count>: Remove.
10545         (dwarf2_add_field, dwarf2_add_type_defn)
10546         (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10547         (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10548         (process_structure_scope): Update.
10549
10550 2018-03-11  Tom Tromey  <tom@tromey.com>
10551
10552         * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10553         for use by std::sort.
10554         (build_type_psymtabs_1): Use std::vector.
10555
10556 2018-03-09  Eli Zaretskii  <eliz@gnu.org>
10557
10558         * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10559         and LIBMPFR in the printed configuration.
10560
10561 2018-03-08  Tom Tromey  <tom@tromey.com>
10562
10563         * source.c (get_filename_and_charpos): Use scoped_fd.
10564         * nto-procfs.c (procfs_open_1): Use scoped_fd.
10565         (procfs_pidlist): Likewise.
10566         * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10567         (iterate_over_mappings): Likewise.
10568
10569 2018-03-08  Tom Tromey  <tom@tromey.com>
10570
10571         * infcall.c (struct call_return_meta_info)
10572         <stack_temporaries_enabled>: Remove.
10573         (get_call_return_value, call_function_by_hand_dummy): Update.
10574         * thread.c (disable_thread_stack_temporaries): Remove.
10575         (enable_thread_stack_temporaries): Remove.
10576         (thread_stack_temporaries_enabled_p): Return bool.
10577         (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10578         (get_last_thread_stack_temporary): Update.
10579         * eval.c (evaluate_subexp): Update.
10580         * gdbthread.h (class enable_thread_stack_temporaries): Now a
10581         class, not a function.
10582         (value_ptr, value_vec): Remove typedefs.
10583         (class thread_info) <stack_temporaries_enabled>: Now bool.
10584         <stack_temporaries>: Now a std::vector.
10585         (thread_stack_temporaries_enabled_p)
10586         (value_in_thread_stack_temporaries): Return bool.
10587
10588 2018-03-08  Simon Marchi  <simon.marchi@ericsson.com>
10589
10590         * remote.c (putpkt_binary): Fix omitted bytes reporting.
10591         (getpkt_or_notif_sane_1): Likewise.
10592
10593 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
10594
10595         * build-id.c (build_id_to_debug_bfd): Use std::string.
10596
10597 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
10598
10599         * build-id.c (find_separate_debug_file_by_buildid): Return
10600         std::string.
10601         * build-id.h (find_separate_debug_file_by_buildid): Return
10602         std::string.
10603         * coffread.c (coff_symfile_read): Adjust to std::string.
10604         * elfread.c (elf_symfile_read): Adjust to std::string.
10605         * symfile.c (separate_debug_file_exists): Change parameter to
10606         std::string.
10607         (find_separate_debug_file): Return std::string.
10608         (find_separate_debug_file_by_debuglink): Return std::string.
10609         * symfile.h (find_separate_debug_file_by_debuglink): Return
10610         std::string.
10611
10612 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
10613
10614         * common/xml-utils.c (xml_escape_text): Move code to...
10615         (xml_escape_text_append): ... this new function.
10616         * common/xml-utils.h (xml_escape_text_append): New declaration.
10617         * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10618         New function.
10619         (_initialize_xml_utils): register test_xml_escape_text_append as
10620         a selftest.
10621
10622 2018-03-07  Alan Hayward  <alan.hayward@arm.com>
10623
10624         * defs.h: Remove MAX_REGISTER_SIZE.
10625         * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10626         asserts.
10627         * python/py-unwind.c (pyuw_sniffer): Likewise.
10628
10629 2018-03-07  Tom Tromey  <tom@tromey.com>
10630
10631         * linux-tdep.c (linux_info_proc): Update.
10632         * target.h (struct target_ops) <to_fileio_readlink>: Return
10633         optional<string>.
10634         (target_fileio_readlink): Return optional<string>.
10635         * remote.c (remote_hostio_readlink): Return optional<string>.
10636         * inf-child.c (inf_child_fileio_readlink): Return
10637         optional<string>.
10638         * target.c (target_fileio_readlink): Return optional<string>.
10639
10640 2018-03-07  Andrew Burgess  <andrew.burgess@embecosm.com>
10641
10642         * regcache.c (cooked_read_test): Add riscv to the list of
10643         architectures that have a save_reggroup.
10644
10645 2018-03-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10646
10647         * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10648         value is not a dynamic class object.
10649
10650 2018-03-06  Tom Tromey  <tom@tromey.com>
10651
10652         * rust-exp.y: Formatting fixes.
10653
10654 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
10655
10656         * riscv-tdep.c (riscv_register_name): Remove target description
10657         support.
10658         (riscv_gdbarch_init): Remove target description check.
10659
10660 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
10661
10662         * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10663         comment.
10664         * riscv-tdep.h: Likewise.
10665
10666 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
10667
10668         * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10669         (riscv_pseudo_register_write): Delete.
10670         (riscv_gdbarch_init): Remove all use of pseudo registers.
10671
10672 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
10673
10674         * record-btrace.c (btrace_print_lines): Replace cleanup
10675         parameter with RAII equivalents.
10676         (btrace_insn_history): Replace cleanup with RAII equivalents.
10677         * ui-out.h (make_cleanup_ui_out_list_begin_end,
10678         make_cleanup_ui_out_tuple_begin_end): Remove.
10679         * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10680         make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10681         make_cleanup_ui_out_list_begin_end): Remove.
10682
10683 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
10684
10685         * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10686         parameter types to std::vector.  Use bool.
10687         (record_btrace_wait): Replace VEC(tp_t) with
10688         std::vector<thread_info *>.
10689         * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10690
10691 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
10692
10693         * record-btrace.c (record_btrace_disable_callback): Remove.
10694         (struct scoped_btrace_disable): New.
10695         (record_btrace_open): Use scoped_btrace_disable.
10696
10697 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
10698
10699         * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10700         reading values from registers.
10701
10702 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
10703
10704         * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10705         where appropriate.
10706
10707 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
10708
10709         * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10710         change parameter type.  Use GDB's print functions, and use
10711         core_addr_to_string where appropriate.
10712         (riscv_push_dummy_call): Use core_addr_to_string where
10713         appropriate, update call to riscv_print_arg_location, and reindent
10714         a few lines.
10715         (riscv_return_value): Update call to riscv_print_arg_location.
10716
10717 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
10718             Tim Newsome <tim@sifive.com>
10719             Albert Ou <a0u@eecs.berkeley.edu>
10720             Darius Rad <darius@bluespec.com>
10721
10722         * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10723         (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10724         (ALLDEPFILES): Add riscv-tdep.c
10725         * configure.tgt: Add riscv support.
10726         * riscv-tdep.c: New file.
10727         * riscv-tdep.h: New file.
10728         * NEWS: Mention new target.
10729         * MAINTAINERS: Add entry for riscv.
10730
10731 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
10732
10733         * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10734         fields within aggregates.
10735
10736 2018-03-04  Simon Marchi  <simon.marchi@polymtl.ca>
10737
10738         * record-btrace.c (btrace_print_lines): Change type of flags to
10739         gdb_disassembly_flags.
10740
10741 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
10742
10743         * fbsd-nat.c: Include "inf-ptrace.h".
10744         (USE_SIGTRAP_SIGINFO): Conditionally define.
10745         [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10746         (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10747         [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10748         function.
10749         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10750         Likewise.
10751         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10752         Likewise.
10753         (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10754         "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10755         "supports_stopped_by_hw_breakpoint" target methods.
10756
10757 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
10758
10759         * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10760         * fbsd-nat.c (debug_fbsd_nat): New variable.
10761         (show_fbsd_nat_debug): New function.
10762         (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10763         (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10764
10765 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
10766
10767         * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10768         * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10769         prototype.
10770         * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10771         (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10772         method.
10773
10774 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
10775
10776         * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10777         * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10778
10779 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
10780
10781         * charset.c (struct charset_vector): New.
10782         (charsets): Change type to charset_vector.
10783         (find_charset_names): Adjust.
10784         (add_one): Adjust.
10785         (_initialize_charset): Adjust.
10786
10787 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
10788
10789         * progspace.h (struct program_space) <deleted_solibs>: Change
10790         type to std::vector<std::string>.
10791         * progspace.c (clear_program_space_solib_cache): Adjust.
10792         * breakpoint.c (print_solib_event): Adjust.
10793         (check_status_catch_solib): Adjust.
10794         * solib.c (update_solib_list): Adjust.
10795         * ui-out.h (class ui_out) <field_string>: New overload.
10796         * ui-out.c (ui_out::field_string): New overload.
10797
10798 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
10799
10800         * progspace.h (struct program_space): Add constructor and
10801         destructor, initialize fields.
10802         (add_program_space): Remove.
10803         * progspace.c (add_program_space): Rename to...
10804         (program_space::program_space): ... this.
10805         (release_program_space): Rename to...
10806         (program_space::~program_space): ... this.
10807         (delete_program_space): Use delete to delete program_space.
10808         (initialize_progspace): Use new to allocate program_space.
10809         * inferior.c (add_inferior_with_spaces): Likewise.
10810         (clone_inferior_command): Likewise.
10811         * infrun.c (follow_fork_inferior): Likewise.
10812         (handle_vfork_child_exec_or_exit): Likewise.
10813
10814 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
10815
10816         * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10817         (delim_string_to_char_ptr_vec): Return std::vector of
10818         gdb::unique_xmalloc_ptr.
10819         (dirnames_to_char_ptr_vec_append): Take std::vector of
10820         gdb::unique_xmalloc_ptr.
10821         (dirnames_to_char_ptr_vec): Return std::vector of
10822         gdb::unique_xmalloc_ptr.
10823         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10824         Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10825         (delim_string_to_char_ptr_vec): Return an std::vector of
10826         gdb::unique_xmalloc_ptr, adjust the code.
10827         (dirnames_to_char_ptr_vec_append): Take an std::vector of
10828         gdb::unique_xmalloc_ptr, adjust the code.
10829         (dirnames_to_char_ptr_vec): Return an std::vector of
10830         gdb::unique_xmalloc_ptr, adjust the code.
10831         * auto-load.c (auto_load_safe_path_vec): Change type to
10832         std::vector of gdb::unique_xmalloc_ptr.
10833         (auto_load_expand_dir_vars): Return an std::vector of
10834         gdb::unique_xmalloc_ptr, adjust the code.
10835         (auto_load_safe_path_vec_update): Adjust.
10836         (filename_is_in_auto_load_safe_path_vec): Adjust.
10837         (auto_load_objfile_script_1): Adjust.
10838         * build-id.c (build_id_to_debug_bfd): Adjust.
10839         * linux-thread-db.c (thread_db_load_search): Adjust.
10840         * source.c (add_path): Adjust.
10841         (openp): Adjust.
10842         * symfile.c (find_separate_debug_file): Adjust.
10843         * utils.c (do_free_char_ptr_vec): Remove.
10844         (make_cleanup_free_char_ptr_vec): Remove.
10845
10846 2018-03-01  Sergio Durigan Junior  <sergiodj@redhat.com>
10847
10848         PR gdb/22907
10849         * common/pathstuff.c: Conditionally include "<windows.h>".
10850
10851 2018-03-01  Georg Sauthoff  <mail@georg.so>
10852
10853         PR gdb/22888
10854         * gcore.in: Quote variables and switch interpreter to bash.
10855
10856 2018-03-01  Tom Tromey  <tom@tromey.com>
10857
10858         * dwarf2read.c (alloc_discriminant_info): Fix default_index
10859         assertion.  Add assertion for discriminant_index.
10860         (quirk_rust_enum): Use correct base type name in univariant case.
10861
10862 2018-03-01  Simon Marchi  <simon.marchi@ericsson.com>
10863
10864         * record.c (get_call_history_modifiers): Return a
10865         record_print_flags.
10866         (cmd_record_call_history): Adjust.
10867         * record-btrace.c (record_btrace_call_history): Adjust.
10868         (record_btrace_call_history_range): Adjust.
10869         (record_btrace_call_history_from): Adjust.
10870         * target-debug.h (target_debug_print_record_print_flags): New.
10871         * target-delegates.c: Re-generate.
10872         * target.c (target_call_history): Change flags type.
10873         (target_call_history_from): Likewise.
10874         (target_call_history_range): Likewise.
10875         * target.h (struct target_ops) <target_call_history>: Likewise.
10876         (target_call_history_from): Likewise.
10877         (target_call_history_range): Likewise.
10878
10879 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
10880             Simon Marchi  <simon.marchi@polymtl.ca>
10881
10882         * common/common-utils.c: Include "sys/stat.h".
10883         (is_regular_file): Move here from "source.c"; change return
10884         type to "bool".
10885         * common/common-utils.h (is_regular_file): New prototype.
10886         * common/pathstuff.c (contains_dir_separator): New function.
10887         * common/pathstuff.h (contains_dir_separator): New prototype.
10888         * source.c: Don't include "sys/stat.h".
10889         (is_regular_file): Move to "common/common-utils.c".
10890
10891 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
10892
10893         * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
10894         (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
10895         * auto-load.c: Include "common/pathstuff.h".
10896         * common/common-def.h (current_directory): Move here.
10897         * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
10898         function.
10899         * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
10900         prototype.
10901         * common/pathstuff.c: New file.
10902         * common/pathstuff.h: New file.
10903         * compile/compile.c: Include "common/pathstuff.h".
10904         * defs.h (current_directory): Move to "common/common-defs.h".
10905         * dwarf2read.c: Include "common/pathstuff.h".
10906         * exec.c: Likewise.
10907         * guile/scm-safe-call.c: Likewise.
10908         * linux-thread-db.c: Likewise.
10909         * main.c: Likewise.
10910         * nto-tdep.c: Likewise.
10911         * objfiles.c: Likewise.
10912         * source.c: Likewise.
10913         * symtab.c: Likewise.
10914         * utils.c: Include "common/pathstuff.h".
10915         (gdb_realpath): Move to "common/pathstuff.c".
10916         (gdb_realpath_keepfile): Likewise.
10917         (gdb_abspath): Likewise.
10918         * utils.h (gdb_realpath): Move to "common/pathstuff.h".
10919         (gdb_realpath_keepfile): Likewise.
10920         (gdb_abspath): Likewise.
10921
10922 2018-02-28  John Baldwin  <jhb@FreeBSD.org>
10923
10924         * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
10925         wildcard process pid for super_resume for kernels with a
10926         specific bug.
10927
10928 2018-02-27  Phil Muldoon  <pmuldoon@redhat.com>
10929
10930         * compile/compile.c (get_args): Add additional comments
10931         explaining function.
10932
10933 2018-02-27  Simon Marchi  <simon.marchi@polymtl.ca>
10934             Tom Tromey  <tom@tromey.com>
10935
10936         * target.h (memory_write_request_s): Remove typedef.  Don't define
10937         VEC.
10938         (target_write_memory_blocks): Change argument to std::vector.
10939         (struct memory_write_request): Add constructor.
10940         * target-memory.c (compare_block_starting_address): Return bool.
10941         Change argument types.
10942         (claim_memory): Change arguments to use std::vector.
10943         (split_regular_and_flash_blocks, blocks_to_erase)
10944         (compute_garbled_blocks): Likewise.
10945         (cleanup_request_data, cleanup_write_requests_vector): Remove.
10946         (target_write_memory_blocks): Change argument to std::vector.
10947         * symfile.c (struct load_section_data): Add constructor and
10948         destructor.  Use std::vector for "requests".
10949         (struct load_progress_data): Add initializers.
10950         (load_section_callback): Update.  Use "new".
10951         (clear_memory_write_data): Remove.
10952         (generic_load): Update.
10953
10954 2018-02-27  Alan Hayward  <alan.hayward@arm.com>
10955
10956         * arch/aarch64.h: Use common/tdesc.h.
10957
10958 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
10959
10960         * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
10961         architecture with a 64-bit ABI.
10962
10963 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
10964
10965         * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
10966         ahead of target description loading.
10967
10968 2018-02-26  Tom Tromey  <tom@tromey.com>
10969
10970         * stack.c (backtrace_command_1): Update.
10971         * python/python-internal.h (gdbpy_apply_frame_filter): Change type
10972         of "flags".
10973         * python/py-framefilter.c (py_print_frame)
10974         (gdbpy_apply_frame_filter): Change type of "flags".
10975         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
10976         of "flags".
10977         (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
10978         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
10979         * extension.h (enum frame_filter_flag): Rename from
10980         frame_filter_flags.
10981         (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
10982         (apply_ext_lang_frame_filter): Change type of "flags".
10983         * extension.c (apply_ext_lang_frame_filter): Change type of
10984         "flags".
10985         * extension-priv.h (struct extension_language_ops)
10986         <apply_frame_filter>: Change type of "flags".
10987
10988 2018-02-26  Tom Tromey  <tom@tromey.com>
10989
10990         PR python/16497:
10991         * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag.  Fix
10992         off-by-one in py_end computation.
10993         * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
10994         PRINT_MORE_FRAMES.
10995         * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
10996         constant.
10997
10998 2018-02-26  Tom Tromey  <tom@tromey.com>
10999
11000         * dwarf2read.c (struct variant_field): New.
11001         (struct nextfield) <variant>: New field.
11002         (dwarf2_add_field): Handle DW_TAG_variant_part.
11003         (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11004         discriminated union.
11005         (read_structure_type): Handle DW_TAG_variant_part.
11006         (handle_struct_member_die): New function, extracted from
11007         process_structure_scope.  Handle DW_TAG_variant.
11008         (process_structure_scope): Handle discriminated unions.  Call
11009         handle_struct_member_die.
11010
11011 2018-02-26  Tom Tromey  <tom@tromey.com>
11012
11013         * rust-lang.h (rust_last_path_segment): Declare.
11014         * rust-lang.c (rust_last_path_segment): Now public.  Change
11015         contract.
11016         (struct disr_info): Remove.
11017         (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11018         (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11019         (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11020         (rust_enum_p, rust_enum_variant): New function.
11021         (rust_underscore_fields): Remove "offset" parameter.
11022         (rust_print_enum): New function.
11023         (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11024         <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11025         (rust_print_struct_def): Add "for_rust_enum" parameter.  Handle
11026         enums.
11027         (rust_internal_print_type): New function, from rust_print_type.
11028         Remove enum code.
11029         (rust_print_type): Call rust_internal_print_type.
11030         (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11031         Update enum handling.
11032         * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11033         (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11034         (rust_union_quirks): New functions.
11035         (process_full_comp_unit, process_full_type_unit): Call
11036         rust_union_quirks.
11037         (process_structure_scope): Update rust_unions if necessary.
11038
11039 2018-02-26  Tom Tromey  <tom@tromey.com>
11040
11041         * value.h (value_union_variant): Declare.
11042         * valops.c (value_union_variant): New function.
11043         * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11044         (struct discriminant_info): New.
11045         (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11046         enumerator.
11047         (struct main_type) <flag_discriminated_union>: New field.
11048
11049 2018-02-26  Tom Tromey  <tom@tromey.com>
11050
11051         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11052         unittests/unpack-selftests.c.
11053         * unittests/unpack-selftests.c: New file.
11054         * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11055
11056 2018-02-26  Yao Qi  <yao.qi@linaro.org>
11057
11058         * dwarf2read.c (struct partial_die_info) <read>: New method.
11059         (read_partial_die): Remove the declaration.
11060         (load_partial_dies): Update.
11061         (partial_die_info::partial_die_info):
11062         (read_partial_die): Change it to partial_die_info::read.
11063
11064 2018-02-26  Yao Qi  <yao.qi@linaro.org>
11065
11066         * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11067         (fixup_partial_die): Remove declaration.
11068         (scan_partial_symbols): Update.
11069         (partial_die_parent_scope): Likewise.
11070         (partial_die_full_name): Likewise.
11071         (fixup_partial_die): Change it to partial_die_info::fixup.
11072
11073 2018-02-26  Yao Qi  <yao.qi@linaro.org>
11074
11075         * dwarf2read.c (read_partial_die): Update the declaration.
11076         (load_partial_dies): Caller update.
11077         (read_partial_die): Remove one argument abbrev_len.
11078
11079 2018-02-26  Yao Qi  <yao.qi@linaro.org>
11080
11081         * dwarf2read.c (struct partial_die_info): Add ctor, delete
11082         assignment operator.
11083         (load_partial_dies): Use ctor and copy ctor.
11084         (read_partial_die): Update.
11085         (dwarf2_cu::find_partial_die): Use ctor.
11086
11087 2018-02-26  Yao Qi  <yao.qi@linaro.org>
11088
11089         * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11090         (find_partial_die_in_comp_unit): Change it to
11091         dwarf2_cu::find_partial_die.
11092         (find_partial_die): Update.
11093
11094 2018-02-26  Yao Qi  <yao.qi@linaro.org>
11095
11096         * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11097         is NULL.
11098
11099 2018-02-26  Yao Qi  <yao.qi@linaro.org>
11100
11101         * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11102
11103 2018-02-26  Alan Hayward  <alan.hayward@arm.com>
11104
11105         * arch/amd64.h: Use common/tdesc.h.
11106         * arch/i386.c: Likewise.
11107         * arch/i386.h: Likewise.
11108         * arch/tic6x.c: Likewise.
11109         * arch/tdesc.h: Move file from here...
11110         * common/tdesc.h: ...to here.
11111         * features/aarch64-core.c: Regenerate.
11112         * features/aarch64-fpu.c: Regenerate.
11113         * features/i386/32bit-avx.c: Regenerate.
11114         * features/i386/32bit-avx512.c: Regenerate.
11115         * features/i386/32bit-core.c: Regenerate.
11116         * features/i386/32bit-linux.c: Regenerate.
11117         * features/i386/32bit-mpx.c: Regenerate.
11118         * features/i386/32bit-pkeys.c: Regenerate.
11119         * features/i386/32bit-sse.c: Regenerate.
11120         * features/i386/64bit-avx.c: Regenerate.
11121         * features/i386/64bit-avx512.c: Regenerate.
11122         * features/i386/64bit-core.c: Regenerate.
11123         * features/i386/64bit-linux.c: Regenerate.
11124         * features/i386/64bit-mpx.c: Regenerate.
11125         * features/i386/64bit-pkeys.c: Regenerate.
11126         * features/i386/64bit-segments.c: Regenerate.
11127         * features/i386/64bit-sse.c: Regenerate.
11128         * features/i386/x32-core.c: Regenerate.
11129         * features/tic6x-c6xp.c: Regenerate.
11130         * features/tic6x-core.c: Regenerate.
11131         * features/tic6x-gp.c: Regenerate.
11132         * target-descriptions.c: Use common/tdesc.h.
11133         * target-descriptions.h: Likewise.
11134
11135 2018-02-24  Tom Tromey  <tom@tromey.com>
11136
11137         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11138         (try_thread_db_load_from_dir, thread_db_load_search): Use
11139         std::string.
11140         (info_auto_load_libthread_db_compare): Return bool.  Change
11141         argument types.
11142         (info_auto_load_libthread_db): Use std::vector, std::string.
11143         Remove cleanups.
11144
11145 2018-02-24  Tom Tromey  <tom@tromey.com>
11146
11147         * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11148         std::string.
11149         * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11150         std::string*.
11151         * gdbarch.c: Rebuild.
11152         * gdbarch.h: Rebuild.
11153         * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11154         * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11155         * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11156         std::string*.
11157
11158 2018-02-23  Simon Marchi  <simon.marchi@polymtl.ca>
11159
11160         * gdbtypes.h (sect_offset): Change type to uint64_t.
11161         (sect_offset_str): New function.
11162         * dwarf2read.c (create_addrmap_from_aranges): Use
11163         sect_offset_str.
11164         (error_check_comp_unit_head): Likewise.
11165         (create_debug_type_hash_table): Likewise.
11166         (read_cutu_die_from_dwo): Likewise.
11167         (init_cutu_and_read_dies): Likewise.
11168         (init_cutu_and_read_dies_no_follow): Likewise.
11169         (process_psymtab_comp_unit_reader): Likewise.
11170         (partial_die_parent_scope): Likewise.
11171         (peek_die_abbrev): Likewise.
11172         (process_queue): Likewise.
11173         (dwarf2_physname): Likewise.
11174         (read_namespace_alias): Likewise.
11175         (read_import_statement): Likewise.
11176         (create_dwo_cu_reader): Likewise.
11177         (create_cus_hash_table): Likewise.
11178         (lookup_dwo_cutu): Likewise.
11179         (inherit_abstract_dies): Likewise.
11180         (read_func_scope): Likewise.
11181         (read_call_site_scope): Likewise.
11182         (dwarf2_add_member_fn): Likewise.
11183         (read_common_block): Likewise.
11184         (read_module_type): Likewise.
11185         (read_typedef): Likewise.
11186         (read_subrange_type): Likewise.
11187         (load_partial_dies): Likewise.
11188         (read_partial_die): Likewise.
11189         (find_partial_die): Likewise.
11190         (read_str_index): Likewise.
11191         (dwarf2_string_attr): Likewise.
11192         (build_error_marker_type): Likewise.
11193         (lookup_die_type): Likewise.
11194         (dump_die_shallow): Likewise.
11195         (follow_die_ref): Likewise.
11196         (dwarf2_fetch_die_loc_sect_off): Likewise.
11197         (dwarf2_fetch_constant_bytes): Likewise.
11198         (follow_die_sig): Likewise.
11199         (get_signatured_type): Likewise.
11200         (get_DW_AT_signature_type): Likewise.
11201         (dwarf2_find_containing_comp_unit): Likewise.
11202         (set_die_type): Likewise.
11203
11204 2018-02-21  John Baldwin  <jhb@FreeBSD.org>
11205
11206         * arch/aarch64.c: Include "common-defs.h".
11207         * arch/amd64.c: Likewise.
11208         * arch/i386.c: Likewise.
11209
11210 2018-02-21  Tom Tromey  <tom@tromey.com>
11211
11212         * value.h: (extract_field_op): Update.
11213         * eval.c (extract_field_op): Return a const char *.
11214         * expression.h (parse_expression_for_completion): Update.
11215         * completer.c (complete_expression): Update.
11216         (add_struct_fields): Make fieldname const.
11217         * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11218         (mark_completion_tag, parse_exp_in_context_1): Update.
11219         (parse_expression_for_completion): Change "name" to
11220         unique_xmalloc_ptr*.
11221
11222 2018-02-21  Tom Tromey  <tom@tromey.com>
11223
11224         * infcall.c (call_function_by_hand_dummy): Use std::vector.
11225
11226 2018-02-21  Yao Qi  <yao.qi@linaro.org>
11227
11228         * avr-tdep.c (avr_read_pc): Change parameter type to
11229         readable_regcache.
11230         * gdbarch.sh (read_pc): Likewise.
11231         * gdbarch.c: Re-generated.
11232         * gdbarch.h: Re-generated.
11233         * hppa-tdep.c (hppa_read_pc): Change parameter type to
11234         readable_regcache.
11235         * ia64-tdep.c (ia64_read_pc): Likewise.
11236         * mips-tdep.c (mips_read_pc): Likewise.
11237         * spu-tdep.c (spu_read_pc): Likewise.
11238
11239 2018-02-21  Yao Qi  <yao.qi@linaro.org>
11240
11241         * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11242         * regcache-dump.c: New file.
11243         * regcache.c: Move register_dump to regcache-dump.c.
11244         (maintenance_print_registers): Likewise.
11245         (maintenance_print_raw_registers): Likewise.
11246         (maintenance_print_cooked_registers): Likewise.
11247         (maintenance_print_register_groups): Likewise.
11248         (maintenance_print_remote_registers): Likewise.
11249         (_initialize_regcache): Likewise.
11250         * regcache.h (register_dump): Moved from regcache.c.
11251
11252 2018-02-21  Yao Qi  <yao.qi@linaro.org>
11253
11254         * regcache.c (regcache::regcache): Update.
11255         (regcache::invalidate): Move it to detached_regcache::invalidate.
11256         (get_thread_arch_aspace_regcache): Update.
11257         (regcache::raw_update): Update.
11258         (regcache::cooked_read): Remove some code.
11259         (regcache::cooked_read_value): Likewise.
11260         (regcache::raw_write): Remove assert on m_readonly_p.
11261         (regcache::raw_supply_integer): Move it to
11262         detached_regcache::raw_supply_integer.
11263         (regcache::raw_supply_zeroed): Likewise.
11264         * regcache.h (detached_regcache) <raw_supply_integer>: New
11265         declaration.
11266         <raw_supply_zeroed, invalidate>: Likewise.
11267         (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11268         <invalidate>: Likewise.
11269         <m_readonly_p>: Removed.
11270
11271 2018-02-21  Yao Qi  <yao.qi@linaro.org>
11272
11273         * infcmd.c (get_return_value): Let stop_regs point to
11274         get_current_regcache.
11275         * regcache.c (regcache::regcache): Remove.
11276         (register_dump_reg_buffer): New class.
11277         (regcache_print): Adjust.
11278         * regcache.h (regcache): Remove constructors.
11279
11280 2018-02-21  Yao Qi  <yao.qi@linaro.org>
11281
11282         * regcache.c (class register_dump): New class.
11283         (register_dump_regcache, register_dump_none): New class.
11284         (register_dump_remote, register_dump_groups): New class.
11285         (regcache_print): Update.
11286         * regcache.h (regcache_dump_what): Move it to regcache.c.
11287         (regcache) <dump>: Remove.
11288
11289 2018-02-21  Yao Qi  <yao.qi@linaro.org>
11290
11291         * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11292          reg_buffer_rw *.
11293         (jit_unwind_reg_set_impl): Call raw_supply.
11294         (jit_frame_sniffer): Use reg_buffer_rw.
11295         * record-full.c (record_full_core_regbuf): Change its type.
11296         (record_full_core_open_1): Use reg_buffer_rw.
11297         (record_full_close): Likewise.
11298         (record_full_core_fetch_registers): Use regcache->raw_supply.
11299         (record_full_core_store_registers): Likewise.
11300         * regcache.c (regcache::get_register_status): Move it to
11301         reg_buffer.
11302         (regcache_raw_set_cached_value): Remove.
11303         (regcache::raw_set_cached_value): Remove.
11304         (regcache::raw_write): Call raw_supply.
11305         (regcache::raw_supply): Move it to reg_buffer_rw.
11306         * regcache.h (regcache_raw_set_cached_value): Remove.
11307         (reg_buffer_rw): New class.
11308
11309 2018-02-21  Yao Qi  <yao.qi@linaro.org>
11310
11311         * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11312         readonly_detached_regcache.
11313         (dummy_frame_prev_register): Use regcache->cooked_read.
11314         * frame.c (frame_save_as_regcache): Change return type.
11315         (frame_pop): Update.
11316         * frame.h (frame_save_as_regcache): Update declaration.
11317         * inferior.h (get_infcall_suspend_state_regcache): Update
11318         declaration.
11319         * infrun.c (infcall_suspend_state) <registers>: use
11320         readonly_detached_regcache.
11321         (save_infcall_suspend_state): Don't use regcache_dup.
11322         (get_infcall_suspend_state_regcache): Change return type.
11323         * linux-fork.c (struct fork_info) <savedregs>: Change to
11324         readonly_detached_regcache.
11325         <pc>: New field.
11326         (fork_save_infrun_state): Don't use regcache_dup.
11327         (info_checkpoints_command): Adjust.
11328         * mi/mi-main.c (register_changed_p): Update declaration.
11329         (mi_cmd_data_list_changed_registers): Use
11330         readonly_detached_regcache.
11331         (register_changed_p): Change parameter type to
11332         readonly_detached_regcache.
11333         * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11334         readonly_detached_regcache.
11335         (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11336         * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11337         New.
11338         (regcache::save): Move it to reg_buffer.
11339         (regcache::restore): Change parameter type.
11340         (regcache_dup): Remove.
11341         * regcache.h (reg_buffer) <save>: New method.
11342         (readonly_detached_regcache): New class.
11343         * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11344         readonly_detached_regcache.
11345         (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11346
11347 2018-02-21  Yao Qi  <yao.qi@linaro.org>
11348
11349         * frame.c (frame_save_as_regcache): Use regcache method save.
11350         (frame_pop): Use regcache method restore.
11351         * infrun.c (restore_infcall_suspend_state): Likewise.
11352         * linux-fork.c (fork_load_infrun_state): Likewise.
11353         * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11354         save.
11355         * regcache.c (regcache_save): Remove.
11356         (regcache::restore): More asserts.
11357         (regcache_cpy): Remove.
11358         * regcache.h (regcache_save): Remove the declaration.
11359         (regcache::restore): Move from private to public.
11360         Remove the friend declaration of regcache_cpy.
11361         (regcache_cpy): Remove declaration.
11362
11363 2018-02-21  Yao Qi  <yao.qi@linaro.org>
11364
11365         * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11366         parameter type to 'readable_regcache *'.
11367         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11368         * arm-tdep.c (arm_neon_quad_read): Likewise.
11369         (arm_pseudo_read): Likewise.
11370         * avr-tdep.c (avr_pseudo_register_read): Likewise.
11371         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11372         * frv-tdep.c (frv_pseudo_register_read): Likewise.
11373         * gdbarch.c: Re-generated.
11374         * gdbarch.h: Re-generated.
11375         * gdbarch.sh (pseudo_register_read): Change parameter type to
11376         'readable_regcache *'.
11377         (pseudo_register_read_value): Likewise.
11378         * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11379         (h8300_pseudo_register_read): Likewise.
11380         * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11381         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11382         (i386_pseudo_register_read_into_value): Likewise.
11383         (i386_pseudo_register_read_value): Likewise.
11384         * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11385         declaration.
11386         * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11387         * m32c-tdep.c (m32c_raw_read): Likewise.
11388         (m32c_read_flg): Likewise.
11389         (m32c_banked_register): Likewise.
11390         (m32c_banked_read): Likewise.
11391         (m32c_sb_read): Likewise.
11392         (m32c_part_read): Likewise.
11393         (m32c_cat_read): Likewise.
11394         (m32c_r3r2r1r0_read): Likewise.
11395         (m32c_pseudo_register_read): Likewise.
11396         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11397         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11398         (mep_pseudo_cr64_read): Likewise.
11399         (mep_pseudo_register_read): Likewise.
11400         * mips-tdep.c (mips_pseudo_register_read): Likewise.
11401         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11402         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11403         * regcache.c (regcache::raw_read): Move it to readable_regcache.
11404         (regcache::cooked_read): Likewise.
11405         (regcache::cooked_read_value): Likewise.
11406         (regcache_cooked_read_signed):
11407         (regcache::cooked_read): Likewise.
11408         * regcache.h (readable_regcache): New class.
11409         (regcache): Inherit readable_regcache.  Move some methods to
11410         readable_regcache.
11411         * rl78-tdep.c (rl78_pseudo_register_read): Change
11412         parameter type to 'readable_regcache *'.
11413         * rs6000-tdep.c (do_regcache_raw_read): Remove.
11414         (e500_pseudo_register_read): Change parameter type to
11415         'readable_regcache *'.
11416         (dfp_pseudo_register_read): Likewise.
11417         (vsx_pseudo_register_read): Likewise.
11418         (efpr_pseudo_register_read): Likewise.
11419         * s390-tdep.c (s390_pseudo_register_read): Likewise.
11420         * sh-tdep.c (sh_pseudo_register_read): Likewise.
11421         * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11422         (sh64_pseudo_register_read): Likewise.
11423         * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11424         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11425         * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11426         (spu_pseudo_register_read): Likewise.
11427         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11428         (xtensa_pseudo_register_read): Likewise.
11429
11430 2018-02-21  Yao Qi  <yao.qi@linaro.org>
11431
11432         * regcache.c (regcache::regcache): Call reg_buffer ctor.
11433         (regcache::arch): Move it to reg_buffer::arch.
11434         (regcache::register_buffer): Likewise.
11435         (regcache::assert_regnum): Likewise.
11436         (regcache::num_raw_registers): Likewise.
11437         * regcache.h (reg_buffer): New class.
11438         (regcache): Inherit reg_buffer.
11439
11440 2018-02-20  Simon Marchi  <simon.marchi@ericsson.com>
11441
11442         * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11443         gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11444
11445 2018-02-20  Markus Metzger  <markus.t.metzger@intel.com>
11446
11447         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11448
11449 2018-02-19  Alan Hayward  <alan.hayward@arm.com>
11450
11451         * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11452         (SFILES): Remove common/*.c files.
11453         (COMMON_OBS): Remove some *.o files built from common/*.c files.
11454         * common/common.host: Add common reference.
11455         * configure.ac: Likewise.
11456         * configure: Regenerate.
11457
11458 2018-02-16  Yao Qi  <yao.qi@linaro.org>
11459
11460         * block.c (block_namespace_info): Inherit allocate_on_obstack.
11461         (block_initialize_namespace): Use new.
11462         * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11463         (dwarf2_free_objfile): Use delete.
11464         * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11465         (copy_type_recursive): Use new.
11466         * gdb_obstack.h (allocate_on_obstack): New.
11467
11468 2018-02-15  Yao Qi  <yao.qi@linaro.org>
11469
11470         PR gdb/22849
11471         * inferior.c (exit_inferior_1): Reset inf->control.
11472
11473 2018-02-15  Joel Brobecker  <brobecker@adacore.com>
11474
11475         * ada-lang.c (ada_to_fixed_value_create): Delete advance
11476         declaration.
11477
11478 2018-02-14  Pedro Alves  <palves@redhat.com>
11479
11480         * frame-unwind.c (frame_unwind_try_unwinder): Always call
11481         frame_cleanup_after_sniffer on exception.
11482
11483 2018-02-14  Tom Tromey  <tom@tromey.com>
11484
11485         * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11486         const.
11487         (solib_bfd_open): Make pathname const.
11488         * solib.c (solib_bfd_open): Make pathname const.
11489         * solib-spu.c (spu_bfd_fopen): Make name const.
11490         (spu_bfd_open): Make pathname const.
11491         * solib-darwin.c (darwin_bfd_open): Make pathname const.
11492         * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11493
11494 2018-02-14  Tom Tromey  <tom@tromey.com>
11495
11496         * symfile.c (symfile_bfd_open): Update.
11497         * source.h (openp, source_full_path_of, find_and_open_source):
11498         Change argument type to unique_xmalloc_ptr.
11499         * source.c (openp): Take a unique_xmalloc_ptr.
11500         (source_full_path_of, find_and_open_source): Likewise.
11501         (open_source_file, symtab_to_fullname): Update.
11502         * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11503         unique_xmalloc_ptr.
11504         * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11505         (exec_file_find): Update.
11506         * psymtab.c (psymtab_to_fullname): Update.
11507         * nto-tdep.h (nto_find_and_open_solib): Update.
11508         * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11509         unique_xmalloc_ptr.
11510         * exec.c (exec_file_attach): Update.
11511         * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11512         * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11513
11514 2018-02-14  Tom Tromey  <tom@tromey.com>
11515
11516         * solib.c: Include source.h.
11517         * nto-tdep.c: Include source.h.
11518         * mi/mi-cmd-env.c: Include source.h.
11519         * infcmd.c: Include source.h.
11520         * exec.c: Include source.h.
11521         * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11522         (add_path, directory_switch, source_path, init_source_path): Move
11523         declarations...
11524         * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11525         (add_path, directory_switch, source_path, init_source_path):
11526         ...here.
11527
11528 2018-02-14  Tom Tromey  <tom@tromey.com>
11529
11530         * solist.h (exec_file_find, solib_find): Return
11531         unique_xmalloc_ptr.
11532         (solib_bfd_fopen): Take a const char *.
11533         * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11534         (exec_file_find, solib_find): Likewise.
11535         (solib_bfd_fopen): Do not take ownership of "pathname".
11536         (solib_bfd_open): Use unique_xmalloc_ptr.
11537         * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11538         * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11539         * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11540         * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11541
11542 2018-02-14  Joel Brobecker  <brobecker@adacore.com>
11543
11544         * ada-lang.c (name_match_type_from_name): Remove reference to
11545         ada_name_for_lookup in function's documentation.
11546         * ada-lang.h (ada_name_for_lookup): Delete declaration.
11547
11548 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
11549
11550         * defs.h (enum openp_flags): New enum.
11551         (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11552         Move to enum openp_flags.
11553         (openp_flags): New enum flags.
11554         (openp): Change parameter type to openp_flags.
11555         * source.c (openp): Change parameter type to openp_flags.
11556         * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11557         * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11558
11559 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
11560
11561         * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11562         per-command.
11563
11564 2018-02-12  Andrew Burgess  <andrew.burgess@embecosm.com>
11565
11566         * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11567         into...
11568         (class dwarf2_queue_guard): ...the destructor of this new class.
11569         (dw2_do_instantiate_symtab): Create instance of the new class
11570         dwarf2_queue_guard, remove cleanup.
11571
11572 2018-02-09  Tom Tromey  <tom@tromey.com>
11573
11574         * source.c (find_source_lines): Don't reference past the end of
11575         the vector.
11576
11577 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11578
11579         * remote.c (remote_btrace_maybe_reopen): Change error message.
11580         * btrace.c (btrace_enable): Likewise.
11581         (parse_xml_btrace): Likewise.
11582         (parse_xml_btrace_conf): Likewise.
11583
11584 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11585
11586         * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11587         (linux_enable_pt, linux_enable_bts): Call
11588         diagnose_perf_event_open_fail.
11589
11590 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11591
11592         * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11593         Remove parameter and change return type.  Update callers.  Move it.
11594         (linux_enable_bts, linux_enable_pt): Improve error message.
11595         (linux_enable_pt): Remove zero buffer size check.
11596         (linux_enable_btrace): Improve error messages.  Remove NULL return
11597         check.
11598
11599 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11600
11601         * btrace.c (btrace_enable): Remove target_supports_btrace call.
11602         * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11603         (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11604         (linux_supports_pt, linux_supports_btrace): Remove.
11605         (linux_enable_bts): Call cpu_supports_bts.
11606         * nat/linux-btrace.h (linux_supports_btrace): Remove.
11607         * remote.c (remote_supports_btrace): Remove.
11608         (init_remote_ops): Remove remote_supports_btrace.
11609         * target-delegates.c: Regenerated.
11610         * target.c (target_supports_btrace): Remove.
11611         * target.h (target_ops) <to_supports_btrace>: Remove
11612         (target_supports_btrace): Remove.
11613         * x86-linux-nat.c (x86_linux_create_target): Remove
11614         linux_supports_btrace.
11615
11616 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11617
11618         * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11619         btrace failed.
11620         * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11621         exception and use message in own exception.
11622
11623 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11624
11625         * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11626         (perf_event_pt_event_type): Use gdb_file_up.
11627         (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11628         scoped_fd, and scoped_mmap.
11629
11630 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11631
11632         * common/scoped_mmap.h: New.
11633         * unittests/scoped_mmap-selftest.c: New.
11634         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11635         unittests/scoped_mmap-selftest.c.
11636
11637 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11638
11639         * common/scoped_fd.h: New.
11640         * unittests/scoped_fd-selftest.c: New.
11641         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11642         unittests/scoped_fd-selftest.c.
11643
11644 2018-02-09  Tom Tromey  <tom@tromey.com>
11645
11646         * auto-load.c (auto_load_section_scripts): Use
11647         gdb::unique_xmalloc_ptr.
11648
11649 2018-02-09  Tom Tromey  <tom@tromey.com>
11650
11651         * auto-load.c (execute_script_contents): Use std::string.
11652
11653 2018-02-09  Joel Brobecker  <brobecker@adacore.com>
11654
11655         * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11656         Python function, rather than a new command.
11657
11658 2018-02-08  Tom Tromey  <tom@tromey.com>
11659
11660         * solib.c (solib_find_1): Use std::string.
11661         (solib_bfd_fopen): Use unique_xmalloc_ptr.
11662
11663 2018-02-08  Tom Tromey  <tom@tromey.com>
11664
11665         * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11666
11667 2018-02-08  Tom Tromey  <tom@tromey.com>
11668
11669         * source.c (find_source_lines): Use gdb::def_vector.
11670
11671 2018-02-08  Tom Tromey  <tom@tromey.com>
11672
11673         * macrocmd.c (struct temporary_macro_definition): New.
11674         (macro_define_command): Use temporary_macro_definition.  Remove
11675         cleanups.
11676         (free_macro_definition_ptr): Remove.
11677
11678 2018-02-08  Tom Tromey  <tom@tromey.com>
11679
11680         * macroexp.c (maybe_expand): Use std::string.
11681
11682 2018-02-08  Tom Tromey  <tom@tromey.com>
11683
11684         * macroexp.c (struct macro_buffer): Add initializers for some
11685         members.
11686         (init_buffer, init_shared_buffer, free_buffer)
11687         (free_buffer_return_text): Remove.
11688         (macro_buffer): New constructors.
11689         (~macro_buffer): New destructor.
11690         (macro_buffer::set_shared): New method.
11691         (macro_buffer::resize_buffer, macro_buffer::appendc)
11692         (macro_buffer::appendmem): Now methods, not free functions.
11693         (set_token, append_tokens_without_splicing, stringify)
11694         (macro_stringify): Update.
11695         (gather_arguments): Change return type.  Remove argc_p argument,
11696         add args_ptr argument.  Use std::vector.
11697         (substitute_args): Remove argc argument.  Accept std::vector.
11698         (expand): Update.  Use std::vector.
11699         (scan, macro_expand, macro_expand_next): Update.
11700
11701 2018-02-08  Tom Tromey  <tom@tromey.com>
11702
11703         * symtab.c (default_collect_symbol_completion_matches_break_on):
11704         Use unique_xmalloc_ptr.
11705         * macroscope.h: (sal_macro_scope, user_macro_scope)
11706         (default_macro_scope): Return unique_xmalloc_ptr.
11707         * macroscope.c (sal_macro_scope, user_macro_scope)
11708         (default_macro_scope): Return unique_xmalloc_ptr.
11709         * macroexp.h (macro_expand, macro_expand_once): Return
11710         unique_xmalloc_ptr.
11711         * macroexp.c (macro_expand, macro_expand_once): Return
11712         unique_xmalloc_ptr.
11713         * macrocmd.c (macro_expand_command, macro_expand_once_command)
11714         (info_macro_command, info_macros_command): Use
11715         unique_xmalloc_ptr.
11716         * compile/compile-c-support.c (write_macro_definitions): Use
11717         unique_xmalloc_ptr.
11718         * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11719
11720 2018-02-07  Simon Marchi  <simon.marchi@ericsson.com>
11721
11722         * value.c (value_static_field): Assign field type instead of
11723         containing type when returning an optimized out value.
11724
11725 2018-02-06  Yao Qi  <yao.qi@linaro.org>
11726
11727         * ft32-tdep.c (ft32_read_pc): Remove.
11728         (ft32_write_pc): Remove.
11729         (ft32_gdbarch_init): Update.
11730         * m32r-tdep.c (m32r_read_pc): Remove.
11731         (m32r_gdbarch_init): Update.
11732         * mep-tdep.c (mep_read_pc): Remove.
11733         (mep_gdbarch_init): Update.
11734         * microblaze-tdep.c (microblaze_write_pc): Remove.
11735         (microblaze_gdbarch_init): Update.
11736         * mn10300-tdep.c (mn10300_read_pc): Remove.
11737         (mn10300_write_pc): Remove.
11738         (mn10300_gdbarch_init): Update.
11739         * moxie-tdep.c (moxie_read_pc): Remove.
11740         (moxie_write_pc): Remove.
11741         (moxie_gdbarch_init): Update.
11742
11743 2018-02-06  Yao Qi  <yao.qi@linaro.org>
11744
11745         * expprint.c (print_subexp_standard): Handle
11746         OP_F77_UNDETERMINED_ARGLIST.
11747         (dump_subexp_body_standard): Likewise.
11748
11749 2018-02-05  Alan Hayward  <alan.hayward@arm.com>
11750
11751         * target-descriptions.c (tdesc_element_visitor) Add empty
11752         implementations.
11753         (tdesc_type): Move make_gdb_type from here.
11754         (tdesc_type_builtin): Likewise.
11755         (tdesc_type_vector): Likewise.
11756         (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11757         (make_gdb_type_struct): Move from tdesc_type_with_fields.
11758         (make_gdb_type_union): Likewise.
11759         (make_gdb_type_flags): Likewise.
11760         (make_gdb_type_enum): Likewise.
11761         (make_gdb_type): New function.
11762         (tdesc_register_type): Use static make_gdb_type.
11763
11764 2018-02-05  Ruslan Kabatsayev <b7.10110111@gmail.com>
11765
11766         * infcmd.c (default_print_one_register_info): Align natural-format
11767         column values consistently one under another.
11768         (pad_to_column): New function.
11769
11770 2018-02-05  Joel Brobecker  <brobecker@adacore.com>
11771
11772         * dwarf2read.c (dwarf2_physname): Move commment.
11773
11774 2018-02-01  Leszek Swirski  <leszeks@google.com>
11775
11776         * varobj.c (varobj_formatted_print_options): Allow recursive
11777         pretty printing if pretty printing is enabled.
11778
11779 2018-02-01  Leszek Swirski  <leszeks@google.com>
11780
11781         * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11782         names after a structop as a filename.
11783
11784 2018-02-01  Yao Qi  <yao.qi@linaro.org>
11785
11786         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11787         (arm_record_coproc_data_proc): Likewise.
11788
11789 2018-02-01  Yao Qi  <yao.qi@linaro.org>
11790
11791         * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11792
11793 2018-01-31  Nikola Prica  <nikola.prica@rt-rk.com>
11794
11795         * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11796         assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11797
11798 2018-01-31  Pedro Alves  <palves@redhat.com>
11799
11800         * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11801         * inflow.c (child_terminal_save_inferior): Wrap reference to
11802         tcgetpgrp in HAVE_TERMIOS_H.
11803         (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11804         _WIN32.
11805         * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11806         always iterate over all inferiors.
11807         (gdbsim_cntrl_c): Adjust.
11808         * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11809
11810 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
11811
11812         * gdbtypes.c (lookup_array_range_type): Make sure the array's
11813         index type is objfile-owned if the element type is as well.
11814
11815 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
11816
11817         GDB 8.1 released.
11818
11819 2018-01-30  Philipp Rudo  <prudo@linux.vnet.ibm.com>
11820
11821         * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11822         "features/s390x-linux64.c".
11823         (_initialize_s390_linux_tdep): Remove initialization of tdescs
11824         s390_linux32 and s390x_linux64.
11825         (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11826         default tdesc.
11827         * s390-tdep.c: Include "features/s390-linux32.c" and
11828         "features/s390x-linux64.c".
11829         (s390_tdesc_valid): Add check for tdesc_has_registers.
11830         (s390_gdbarch_init): Make sure there is always a valid tdesc.
11831         (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11832         tdesc_s390x_linux64.
11833         * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11834         tdesc_s390x_linux64 to...
11835         * s390-tdep.h: ...here.
11836
11837 2018-01-30  Pedro Alves  <palves@redhat.com>
11838
11839         PR gdb/13211
11840         * config.in, configure: Regenerate.
11841         * configure.ac: Check for getpgid.
11842         * go32-nat.c (go32_pass_ctrlc): New.
11843         (go32_target): Install it.
11844         * inf-child.c (inf_child_target): Install
11845         child_terminal_save_inferior, child_pass_ctrlc and
11846         child_interrupt.
11847         * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11848         (inf_ptrace_target): No longer install it.
11849         * infcmd.c (interrupt_target_1): Adjust.
11850         * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11851         (child_interrupt): Declare.
11852         (inferior::terminal_state): New.
11853         * inflow.c (struct terminal_info): Update comments.
11854         (inferior_process_group): Delete.
11855         (terminal_is_ours): Delete.
11856         (gdb_tty_state): New.
11857         (child_terminal_init): Adjust.
11858         (is_gdb_terminal, sharing_input_terminal_1)
11859         (sharing_input_terminal): New functions.
11860         (child_terminal_inferior): Adjust.  Use sharing_input_terminal.
11861         Set the process's actual process group in the foreground if
11862         possible.  Handle is_ours_for_output/is_ours distinction.  Don't
11863         mark terminal as the inferior's if not sharing GDB's terminal.
11864         Don't check attach_flag.
11865         (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11866         pass down a target_terminal_state.
11867         (child_terminal_save_inferior): New, factored out from ...
11868         (child_terminal_ours_1): ... this.  Handle
11869         target_terminal_state::is_ours_for_output.
11870         (child_interrupt, child_pass_ctrlc): New.
11871         (inflow_inferior_exit): Clear the inferior's terminal_state.
11872         (copy_terminal_info): Copy the inferior's terminal state.
11873         (_initialize_inflow): Remove reference to terminal_is_ours.
11874         * inflow.h (inferior_process_group): Delete.
11875         * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11876         * procfs.c (procfs_target): Don't install procfs_interrupt.
11877         (procfs_interrupt): Delete.
11878         * remote.c (remote_serial_quit_handler): Adjust.
11879         (remote_interrupt): Remove ptid parameter.  Adjust.
11880         * target-delegates.c: Regenerate.
11881         * target.c: Include "terminal.h".
11882         (target_terminal::terminal_state): Rename to ...
11883         (target_terminal::m_terminal_state): ... this.
11884         (target_terminal::init): Adjust.
11885         (target_terminal::inferior): Adjust to per-inferior
11886         terminal_state.
11887         (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
11888         (target_terminal::ours, target_terminal::ours_for_output): Use
11889         target_terminal_is_ours_kind.
11890         (target_interrupt): Remove ptid parameter.  Adjust.
11891         (default_target_pass_ctrlc): Adjust.
11892         * target.h (target_ops::to_terminal_save_inferior): New field.
11893         (target_ops::to_interrupt): Remove ptid_t parameter.
11894         (target_interrupt): Remove ptid_t parameter.  Update comment.
11895         (target_pass_ctrlc): Update comment.
11896         * target/target.h (target_terminal_state): New scoped enum,
11897         factored out of ...
11898         (target_terminal::terminal_state): ... here.
11899         (target_terminal::inferior): Update comments.
11900         (target_terminal::restore_inferior): New.
11901         (target_terminal::is_inferior, target_terminal::is_ours)
11902         (target_terminal::is_ours_for_output): Adjust.
11903         (target_terminal::scoped_restore_terminal_state): Adjust to
11904         rename, and call restore_inferior() instead of inferior().
11905         (target_terminal::scoped_restore_terminal_state::m_state): Change
11906         type.
11907         (target_terminal::terminal_state): Rename to ...
11908         (target_terminal::m_terminal_state): ... this and change type.
11909
11910 2018-01-30  Pedro Alves  <palves@redhat.com>
11911
11912         * linux-nat.c (wait_for_signal): New function.
11913         (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
11914         directly.
11915         (async_terminal_is_ours)
11916         (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
11917         (linux_nat_add_target): Don't override
11918         to_terminal_inferior/to_terminal_ours.
11919
11920 2018-01-29  Sergio Durigan Junior  <sergiodj@redhat.com>
11921
11922         * remote.c (remote_follow_fork): Don't call "detach_inferior".
11923
11924 2018-01-28  Simon Marchi  <simon.marchi@ericsson.com>
11925
11926         * dwarf2read.c (free_dwo_files): Add forward-declaration.
11927         (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
11928         dwarf2_per_objfile_free here.
11929         (dwarf2_per_objfile_free): Remove.
11930         (_initialize_dwarf2_read): Don't register
11931         dwarf2_per_objfile_free as a registry cleanup.
11932
11933 2018-01-27  Eli Zaretskii  <eliz@gnu.org>
11934
11935         Avoid compilation errors in MinGW native builds
11936
11937         The error is triggered by including python-internal.h, and the
11938         error message is:
11939
11940              In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
11941                       from build-gnulib/import/math.h:27,
11942                       from d:/usr/Python26/include/pyport.h:235,
11943                       from d:/usr/Python26/include/Python.h:58,
11944                       from python/python-internal.h:94,
11945                       from python/py-arch.c:24:
11946              d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
11947         using ::hypot;
11948                 ^~~~~
11949
11950         This happens because Python headers define 'hypot' to expand t
11951         '_hypot' in the Windows builds.
11952         * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
11953         'hypoth'.  This avoids a compilation error.
11954
11955 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
11956
11957         * MAINTAINERS (Write After Approval): Fix ordering.
11958
11959 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
11960
11961         * MAINTAINERS (Write After Approval): Add Alan Hayward.
11962
11963 2018-01-26  Alan Modra  <amodra@gmail.com>
11964
11965         * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
11966         (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
11967         Remove nop.  Make const.  Comment.
11968         (powerpc32_plt_stub_so_2): New.
11969         (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
11970         Correct count.  Update uses.
11971         (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
11972         Move common code reading PLT entry word.  Correct
11973         powerpc32_plt_stub PLT address calculation.
11974         * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
11975         (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
11976         (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
11977         (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
11978         (ppc64_standard_linkage8): Likewise.
11979         * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
11980         Correct insns description.
11981         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
11982
11983 2018-01-24  Pedro Alves  <palves@redhat.com>
11984
11985         GCC PR libstdc++/83906
11986         * gdbtypes.c (operator==(const dynamic_prop &,
11987         const dynamic_prop &)): New.
11988         (operator==(const range_bounds &, const range_bounds &)): New.
11989         (check_types_equal): Use them instead of memcmp.
11990         * gdbtypes.h (operator==(const dynamic_prop &,
11991         const dynamic_prop &)): Declare.
11992         (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
11993         (operator==(const range_bounds &, const range_bounds &)): Declare.
11994         (operator!=(const range_bounds &, const range_bounds &)): Declare.
11995
11996 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
11997
11998         * s390-linux-tdep.c (s390_record_address_mask)
11999         (s390_record_calc_disp_common, s390_record_calc_disp)
12000         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12001         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12002         (s390_process_record): Move to s390-tdep.c.
12003         (s390_linux_init_abi_any): Adjust.
12004         * s390-tdep.c (s390_record_address_mask)
12005         (s390_record_calc_disp_common, s390_record_calc_disp)
12006         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12007         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12008         (s390_process_record): Moved from s390-linux-tdep.c
12009         (s390_gdbarch_init): Adjust.
12010
12011 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
12012
12013         * s390-linux-nat.c (s390-tdep.h): New include.
12014         * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12015         (HFILES_NO_SRCDIR): Add s390-tdep.h.
12016         (ALLDEPFILES): Add s390-tdep.c.
12017         * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12018         * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12019         * s390-tdep.h: ...this.  New file.
12020         * s390-linux-tdep.c (s390-tdep.h): New include.
12021         (_initialize_s390_tdep): Rename to...
12022         (_initialize_s390_linux_tdep): ...this and adjust.
12023         (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12024         (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12025         s390-tdep.h.
12026         (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12027         (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12028         (s390_is_partial_instruction, s390_software_single_step)
12029         (is_non_branch_ril, s390_displaced_step_copy_insn)
12030         (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12031         (s390_prologue_data, s390_addr, s390_store, s390_load)
12032         (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12033         (s390_register_call_saved, s390_guess_tracepoint_registers)
12034         (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12035         (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12036         (s390_pseudo_register_name, s390_pseudo_register_type)
12037         (s390_pseudo_register_read, s390_pseudo_register_write)
12038         (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12039         (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12040         (s390_addr_bits_remove, s390_address_class_type_flags)
12041         (s390_address_class_type_flags_to_name)
12042         (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12043         (s390_function_arg_float, s390_function_arg_vector)
12044         (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12045         (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12046         (s390_frame_align, s390_register_return_value, s390_return_value)
12047         (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12048         (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12049         (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12050         (s390_trad_frame_prev_register, s390_unwind_cache)
12051         (s390_prologue_frame_unwind_cache)
12052         (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12053         (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12054         (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12055         (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12056         (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12057         (s390_frame_base_address, s390_local_base_address)
12058         (s390_frame_base, s390_gcc_target_options)
12059         (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12060         (s390_validate_reg_range, s390_tdesc_valid)
12061         (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12062         * s390-tdep.c: ...this.  New file.
12063
12064 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
12065
12066         * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12067         (s390_process_record, s390_gdbarch_tdep_alloc)
12068         (s390_linux_init_abi_any): Use/set new hook.
12069
12070 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
12071
12072         * s390-linux-tdep.c (osabi.h): New include.
12073         (s390_linux_init_abi_31, s390_linux_init_abi_64)
12074         (s390_linux_init_abi_any): New functions.
12075         (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12076
12077 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
12078
12079         * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12080         tdesc_has_registers check
12081
12082 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
12083
12084         * s390-linux-tdep.c (s390_tdesc_valid): New function.
12085         (s390_validate_reg_range): New macro.
12086         (s390_gdbarch_init): Adjust.
12087
12088 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
12089
12090         * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12091         (s390_gdbarch_tdep_alloc): Adjust.
12092         (s390_gdbarch_init): Adjust.
12093
12094 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
12095
12096         * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12097         <have_tdb>: Change type to bool.
12098         (s390_gdbarch_tdep_alloc): Adjust.
12099         (s390_gdbarch_init): Adjust.
12100
12101 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
12102
12103         * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12104         (gdbarch_tdep) <have_upper, have_vx>: New fields.
12105         (s390_gdbarch_tdep_alloc): New function.
12106         (s390_gdbarch_init): Allocate tdep at start and use its fields
12107         instead of separate variables.
12108
12109 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
12110
12111         * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12112         when looking for cached gdbarch and add comment for remaining.
12113
12114 2018-01-22  Pedro Alves  <palves@redhat.com>
12115             Sergio Durigan Junior  <sergiodj@redhat.com>
12116
12117         * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12118         case.
12119
12120 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
12121
12122         * MAINTAINERS: Update my company e-mail address.
12123
12124 2018-01-22  Yao Qi  <yao.qi@linaro.org>
12125
12126         * regcache.c (cooked_write_test): New function.
12127         (_initialize_regcache): Register the test.
12128
12129 2018-01-22  Yao Qi  <yao.qi@linaro.org>
12130
12131         * ia64-tdep.c (ia64_pseudo_register_read): Call
12132         regcache->cooked_read instead of regcache_cooked_read_unsigned.
12133         * m32c-tdep.c (m32c_cat_read): Likewise.
12134         (m32c_r3r2r1r0_read): Likewise.
12135         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12136         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12137
12138 2018-01-22  Yao Qi  <yao.qi@linaro.org>
12139
12140         * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12141         method raw_read instead of regcache_raw_read.
12142         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12143         * arm-tdep.c (arm_neon_quad_read): Likewise.
12144         * avr-tdep.c (avr_pseudo_register_read): Likewise.
12145         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12146         * frv-tdep.c (frv_pseudo_register_read): Likewise.
12147         * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12148         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12149         (i386_pseudo_register_read_into_value): Likewise.
12150         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12151         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12152         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12153         * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12154         * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12155         * sparc-tdep.c (sparc32_pseudo_register_read):  Likewise.
12156         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12157         * spu-tdep.c (spu_pseudo_register_read_spu):  Likewise.
12158         * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12159
12160 2018-01-22  Yao Qi  <yao.qi@linaro.org>
12161
12162         * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12163         * configure.tgt: Remove target mt.
12164         * mt-tdep.c: Remove.
12165         * regcache.c (cooked_read_test): Remove the check for mt.
12166
12167 2018-01-22  Yao Qi  <yao.qi@linaro.org>
12168
12169         * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12170         instead of gdbarch_pseudo_register_read_value.
12171
12172 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
12173
12174         * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12175         language is Ada.
12176
12177 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
12178
12179         * linespec.c (create_sals_line_offset): Remove code that preserved
12180         the symtab_and_line's line number.
12181
12182 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
12183
12184         * varobj.c (varobj_create): Don't set valid_block when creating a
12185         floating varobj.
12186
12187 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
12188
12189         * varobj.c (varobj_create): Remove out of date comment.
12190
12191 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
12192
12193         PR mi/20395
12194         * ada-exp.y (write_var_from_sym): Pass extra parameter when
12195         updating innermost block.
12196         * parse.c (innermost_block_tracker::update): Take extra type
12197         parameter, and check types match before updating innermost block.
12198         (write_dollar_variable): Update innermost block for registers.
12199         * parser-defs.h (enum innermost_block_tracker_type): New enum.
12200         (innermost_block_tracker::innermost_block_tracker): Initialise
12201         m_types member.
12202         (innermost_block_tracker::reset): Take type parameter.
12203         (innermost_block_tracker::update): Take type parameter, and pass
12204         type through as needed.
12205         (innermost_block_tracker::m_types): New member.
12206         * varobj.c (varobj_create): Pass type when reseting innermost
12207         block.
12208
12209 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
12210
12211         * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12212         * ada-lang.c (resolve_subexp): Likewise.
12213         * breakpoint.c (set_breakpoint_condition) Likewise.
12214         (watch_command_1) Likewise.
12215         * c-exp.y (variable): Likewise.
12216         * d-exp.y (PrimaryExpression): Likewise.
12217         * f-exp.y (variable): Likewise.
12218         * go-exp.y (variable): Likewise.
12219         * m2-exp.y (variable): Likewise.
12220         * objfiles.c (objfile::~objfile): Likewise.
12221         * p-exp.y (variable): Likewise.
12222         * parse.c (innermost_block): Change type.
12223         * parser-defs.h (class innermost_block_tracker): New.
12224         (innermost_block): Change to innermost_block_tracker.
12225         * printcmd.c (display_command): Switch to innermost_block API.
12226         (do_one_display): Likewise.
12227         * rust-exp.y (do_one_display): Likewise.
12228         * symfile.c (clear_symtab_users): Likewise.
12229         * varobj.c (varobj_create): Switch to innermost_block API, replace
12230         use of innermost_block with block stored on varobj object.
12231
12232 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
12233
12234         * expression.h (innermost_block): Remove declaration.
12235         * varobj.c: Add 'parser-defs.h' include.
12236
12237 2018-01-19  Tom Tromey  <tom@tromey.com>
12238
12239         * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12240         symbols in the static and global blocks.
12241
12242 2018-01-19  James Clarke  <jrtc27@jrtc27.com>
12243
12244         * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12245         gdb_ptrace.h, and move including gdb_wait.h ...
12246         * nat/linux-ptrace.h: ... to here.
12247
12248 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
12249
12250         * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12251         inf_ptrace_detach_success.
12252         (inf_ptrace_detach_success): Add inferior parameter, use it
12253         instead of inferior_ptid, pass it to detach_inferior.
12254         * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12255         parameter.
12256         * inferior.c (detach_inferior): Add overload that takes an
12257         inferior object.
12258         * inferior.h (detach_inferior): Likewise.
12259         * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12260         use inferior_ptid, adjust call to inf_ptrace_detach_success.
12261         * linux-thread-db.c (thread_db_detach): Use inf parameter.
12262
12263 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
12264
12265         * target.h (struct target_ops) <to_detach>: Add inferior
12266         parameter.
12267         (target_detach): Likewise.
12268         * target.c (dispose_inferior): Pass inferior down.
12269         (target_detach): Pass inferior down.  Assert that it is equal to
12270         the current inferior.
12271         * aix-thread.c (aix_thread_detach): Pass inferior down.
12272         * corefile.c (core_file_command): Pass current_inferior() down.
12273         * corelow.c (core_detach): Add inferior parameter.
12274         * darwin-nat.c (darwin_detach): Likewise.
12275         * gnu-nat.c (gnu_detach): Likewise.
12276         * inf-ptrace.c (inf_ptrace_detach): Likewise.
12277         * infcmd.c (detach_command): Pass current_inferior() down to
12278         target_detach.
12279         * infrun.c (follow_fork_inferior): Pass parent_inf to
12280         target_detach.
12281         (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12282         target_detach.
12283         * linux-nat.c (linux_nat_detach): Add inferior parameter.
12284         * linux-thread-db.c (thread_db_detach): Likewise.
12285         * nto-procfs.c (procfs_detach): Likewise.
12286         * procfs.c (procfs_detach): Likewise.
12287         * record.c (record_detach): Likewise.
12288         * record.h (struct inferior): Forward-declare.
12289         (record_detach): Add inferior parameter.
12290         * remote-sim.c (gdbsim_detach): Likewise.
12291         * remote.c (remote_detach_1): Likewise.
12292         (remote_detach): Likewise.
12293         (extended_remote_detach): Likewise.
12294         * sol-thread.c (sol_thread_detach): Likewise.
12295         * target-debug.h (target_debug_print_inferior_p): New macro.
12296         * target-delegates.c: Re-generate.
12297         * top.c (kill_or_detach): Pass inferior down to target_detach.
12298         * windows-nat.c (windows_detach): Add inferior parameter.
12299
12300 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
12301
12302         * target.h (struct target_ops) <to_detach>: Remove args
12303         parameter.
12304         (target_detach): Likewise.
12305         * target.c (dispose_inferior): Adjust.
12306         (target_detach): Remove args parameter, adjust.
12307         * aix-thread.c (aix_thread_detach): Adjust.
12308         * corefile.c (core_file_command): Adjust.
12309         * corelow.c (core_detach): Adjust.
12310         * darwin-nat.c (darwin_detach): Adjust.
12311         * gnu-nat.c (gnu_detach): Adjust.
12312         * inf-ptrace.c (inf_ptrace_detach): Adjust.
12313         * infcmd.c (detach_command): Adjust
12314         * infrun.c (follow_fork_inferior): Adjust.
12315         (handle_vfork_child_exec_or_exit): Adjust.
12316         * linux-fork.c (linux_fork_detach): Remove args parameter.
12317         * linux-fork.h (linux_fork_detach): Likewise.
12318         * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12319         * linux-thread-db.c (thread_db_detach): Likewise.
12320         * nto-procfs.c (procfs_detach): Likewise.
12321         * procfs.c (procfs_detach): Likewise.
12322         (do_detach): Remove signo parameter.
12323         * record.c (record_detach): Remove args parameter.
12324         * record.h (record_detach): Likewise.
12325         * remote-sim.c (gdbsim_detach): Likewise.
12326         * remote.c (remote_detach_1): Likewise.
12327         (remote_detach): Likewise.
12328         (extended_remote_detach): Likewise.
12329         * sol-thread.c (sol_thread_detach): Likewise.
12330         * target-delegates.c: Re-generate.
12331         * top.c (struct qt_args) <args>: Remove field.
12332         (kill_or_detach): Don't pass args.
12333         (quit_force): Don't set args.
12334         * windows-nat.c (windows_detach): Remove args parameter.
12335
12336 2018-01-19  Yao Qi  <yao.qi@linaro.org>
12337
12338         * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12339         (arm_linux_init_abi): Install it.
12340
12341 2018-01-19  Yao Qi  <yao.qi@linaro.org>
12342
12343         * osabi.c (gdb_osabi_names): Extend the regexp for
12344         arm-linux-gnueabihf.
12345
12346 2018-01-18  Yao Qi  <yao.qi@linaro.org>
12347
12348         * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12349         m_abbrevs.
12350         (abbrev_table::add_abbrev): Update.
12351         (abbrev_table::lookup_abbrev): Update.
12352
12353 2018-01-18  Yao Qi  <yao.qi@linaro.org>
12354
12355         * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12356
12357 2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
12358
12359         * compile/compile.c (compile_to_object): Convert "triplet_rx"
12360         to "std::string".
12361
12362 2018-01-17  Tom Tromey  <tom@tromey.com>
12363
12364         * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
12365
12366 2018-01-17  Tom Tromey  <tom@tromey.com>
12367
12368         * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12369         * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12370         (create_array_type_with_stride): Update.
12371         * dwarf2read.c (set_die_type): Update.
12372
12373 2018-01-17  Tom Tromey  <tom@tromey.com>
12374
12375         * dwarf2read.c (delayed_method_info): Remove typedef.
12376         (dwarf2_cu::method_info): Now a std::vector.
12377         (add_to_method_list): Update.
12378         (free_delayed_list): Remove.
12379         (compute_delayed_physnames): Update.
12380         (process_full_comp_unit, process_full_type_unit): Clear the method
12381         list.  Remove cleanups.
12382         (psymtab_include_file_name): Add name_holder parameter.  Use
12383         unique_xmalloc_ptr.
12384         (dwarf_decode_lines): Update.
12385
12386 2018-01-17  Tom Tromey  <tom@tromey.com>
12387             Simon Marchi  <simon.marchi@ericsson.com>
12388
12389         * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12390         (dwarf2_per_objfile::free_cached_comp_units)
12391         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12392         (init_cutu_and_read_dies_no_follow): Update.
12393         (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12394         (dwarf2_cu::~dwarf2_cu): New.
12395         (free_heap_comp_unit, free_stack_comp_unit): Remove.
12396         (age_cached_comp_units, free_one_cached_comp_unit): Update.
12397
12398 2018-01-17  Tom Tromey  <tom@tromey.com>
12399             Simon Marchi  <simon.marchi@ericsson.com>
12400
12401         * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12402         (struct die_reader_specs) <abbrev_table>: New member.
12403         (struct abbrev_table): Add constructor.
12404         <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12405         <abbrev_obstack>: Now an auto_obstack.
12406         (abbrev_table_up): New typedef.
12407         (init_cu_die_reader): Add abbrev_table parameter.
12408         (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12409         Add result_dwo_abbrev_table.
12410         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12411         (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12412         Update.
12413         (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12414         parameter.
12415         (skip_children): Update.
12416         (abbrev_table::alloc_abbrev): Rename from
12417         abbrev_table_alloc_abbrev.
12418         (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12419         (abbrev_table::lookup_abbrev): Rename from
12420         abbrev_table_lookup_abbrev.
12421         (abbrev_table_read_table): Return abbrev_table_up.
12422         (abbrev_table_free, abbrev_table_free_cleanup)
12423         (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12424         (load_partial_dies): Update.
12425
12426 2018-01-17  Tom Tromey  <tom@tromey.com>
12427
12428         * dwarf2read.c (dwarf2_compute_name): Update comment.
12429         (read_func_scope, read_variable): Update.
12430         (new_symbol): Remove.
12431         (new_symbol_full): Rename to new_symbol.
12432
12433 2018-01-17  Mike Gulick  <mgulick@mathworks.com>
12434
12435         PR gdb/16577
12436         * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12437         a warning instead of throwing an error, set section size to 0 and return
12438         NULL.
12439         * gdb_bfd.h (gdb_bfd_map_section): Update description.
12440
12441 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
12442
12443         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12444         std::string.
12445         (linux_ptrace_attach_fail_reason_string): Likewise.
12446         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12447         Likewise.
12448         (linux_ptrace_attach_fail_reason_string): Likewise.
12449         * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12450
12451 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
12452
12453         * linux-nat.c (linux_nat_attach): Remove xstrdup.
12454
12455 2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
12456
12457         PR gdb/21559
12458         * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12459         checking for fs_base/gs_base fields in struct user_regs_struct.
12460         * configure: Regenerate.
12461
12462 2018-01-17  Yao Qi  <yao.qi@linaro.org>
12463
12464         * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12465         function.
12466         (aarch64_linux_init_abi): Install it to gdbarch hook
12467         gcc_target_options.
12468
12469 2018-01-15  Pedro Alves  <palves@redhat.com>
12470
12471         * common/signals-state-save-restore.c
12472         (save_original_signals_state): Fix typos.
12473
12474 2017-01-12  Tom Tromey  <tom@tromey.com>
12475             Sergio Durigan Junior  <sergiodj@redhat.com>
12476
12477         * Makefile.in (install-only): Install gdb-add-index.
12478
12479 2018-01-12  John Baldwin  <jhb@FreeBSD.org>
12480
12481         * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12482
12483 2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12484
12485         * infrun.c (keep_going_pass_signal): Clear step-over info when
12486         insert_breakpoints fails.
12487
12488 2018-01-11  Pedro Alves  <palves@redhat.com>
12489
12490         PR gdb/22583
12491         * infrun.c (resume): Rename to ...
12492         (resume_1): ... this.
12493         (resume): Reimplement as wrapper around resume_1.
12494
12495 2018-01-11  Pedro Alves  <palves@redhat.com>
12496
12497         PR remote/22597
12498         * remote.c (remote_parse_stop_reply): Default to the last-set
12499         general thread instead of to 'magic_null_ptid'.
12500
12501 2018-01-10  Pedro Alves  <palves@redhat.com>
12502
12503         * language.h (language_get_symbol_name_matcher): Rename ...
12504         (get_symbol_name_matcher): ... this.
12505         * language.c (language_get_symbol_name_matcher): Ditto.
12506         * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12507         callers adjusted.
12508
12509 2018-01-10  Pedro Alves  <palves@redhat.com>
12510
12511         PR gdb/22670
12512         * dwarf2read.c
12513         (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12514         Adjust to use language_get_symbol_name_matcher instead of
12515         language_defn::la_get_symbol_name_matcher.
12516         * language.c (language_get_symbol_name_matcher): If in Ada mode
12517         and the lookup name is a verbatim match, return Ada's matcher.
12518         * language.h (language_get_symbol_name_matcher): Adjust comment.
12519         (ada_lookup_name_info::verbatim_p):: New method.
12520
12521 2018-01-10  Pedro Alves  <palves@redhat.com>
12522
12523         PR gdb/22670
12524         * ada-lang.c (ada_collect_symbol_completion_matches): If the
12525         minsym's language is language_auto or language_cplus, pass down
12526         language_ada instead.
12527         * symtab.c (compare_symbol_name): Don't frob symbol language here.
12528
12529 2018-01-10  Pedro Alves  <palves@redhat.com>
12530
12531         PR gdb/22670
12532         * minsyms.c (linkage_name_str): New function.
12533         (iterate_over_minimal_symbols): Use it.
12534
12535 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
12536
12537         * NEWS: Document that 'info proc' now works on FreeBSD.
12538
12539 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
12540
12541         * configure.ac: Check for kinfo_getfile in libutil.
12542         * configure: Regenerate.
12543         * config.in: Regenerate.
12544         * fbsd-nat.c: Include "fbsd-tdep.h".
12545         (fbsd_fetch_cmdline): New.
12546         (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12547         rather than calling error.
12548         (fbsd_info_proc): New.
12549         (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12550         (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12551         (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12552
12553 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
12554
12555         * fbsd-nat.c (struct free_deleter): Remove.
12556         (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12557
12558 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
12559
12560         * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12561         NULL for an empty pathname.
12562
12563 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
12564
12565         * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12566         (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12567         (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12568         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12569         (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12570         (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12571         (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12572         (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12573         (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12574         (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12575         (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12576         (fbsd_core_fetch_timeval, fbsd_print_sigset)
12577         (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12578         (fbsd_init_abi):  Install gdbarch "core_info_proc" method.
12579         * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12580
12581 2018-01-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12582
12583         * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12584         (gnu_xfer_auxv): New function.
12585         (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12586         TARGET_OBJECT_AUXV.
12587
12588 2018-01-08  Yao Qi  <yao.qi@linaro.org>
12589             Simon Marchi  <simon.marchi@ericsson.com>
12590
12591         * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12592         common/selftest.c.
12593         (COMMON_OBS): Remove selftest.o.
12594         * configure.ac: Append selftest-arch.c and common/selftest.c to
12595         CONFIG_SRCS.  Append selftest-arch.o and selftest.o to COMMON_OBS.
12596         * configure: Re-generated.
12597         * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12598         GDB_SELF_TEST.
12599         (maintenance_info_selftests): Likewise.
12600
12601 2018-01-08  Xavier Roirand  <roirand@adacore.com>
12602
12603         * ada-valprint.c (val_print_packed_array_elements): Use
12604         proper number of elements when printing an array indexed
12605         by an enumeration type.
12606
12607 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
12608
12609         * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12610         (dw2_get_file_names_reader): Adjust.
12611         (lookup_dwo_signatured_type): Adjust.
12612         (lookup_dwp_signatured_type): Adjust.
12613         (lookup_signatured_type): Adjust.
12614         (create_type_unit_group): Adjust.
12615         (get_type_unit_group): Adjust.
12616         (process_psymtab_comp_unit_reader): Adjust.
12617         (build_type_psymtabs_reader): Adjust.
12618         (scan_partial_symbols): Adjust.
12619         (add_partial_symbol): Adjust.
12620         (add_partial_subprogram): Adjust.
12621         (peek_die_abbrev): Adjust.
12622         (fixup_go_packaging): Adjust.
12623         (process_imported_unit_die): Adjust.
12624         (dwarf2_compute_name): Adjust.
12625         (dwarf2_physname): Adjust.
12626         (read_import_statement): Adjust.
12627         (handle_DW_AT_stmt_list): Adjust.
12628         (read_file_scope): Adjust.
12629         (read_func_scope): Adjust.
12630         (read_lexical_block_scope): Adjust.
12631         (read_call_site_scope): Adjust.
12632         (read_variable): Adjust.
12633         (dwarf2_rnglists_process): Adjust.
12634         (dwarf2_ranges_process): Adjust.
12635         (dwarf2_ranges_read): Adjust.
12636         (dwarf2_get_pc_bounds): Adjust.
12637         (dwarf2_record_block_ranges): Adjust.
12638         (dwarf2_add_field): Adjust.
12639         (dwarf2_add_member_fn): Adjust.
12640         (read_structure_type): Adjust.
12641         (process_structure_scope): Adjust.
12642         (read_enumeration_type): Adjust.
12643         (read_array_type): Adjust.
12644         (mark_common_block_symbol_computed): Adjust.
12645         (read_common_block): Adjust.
12646         (read_namespace_type): Adjust.
12647         (read_namespace): Adjust.
12648         (read_module_type): Adjust.
12649         (read_tag_pointer_type): Adjust.
12650         (read_tag_ptr_to_member_type): Adjust.
12651         (read_tag_string_type): Adjust.
12652         (read_subroutine_type): Adjust.
12653         (read_typedef): Adjust.
12654         (read_base_type): Adjust.
12655         (attr_to_dynamic_prop): Adjust.
12656         (read_subrange_type): Adjust.
12657         (read_unspecified_type): Adjust.
12658         (dwarf2_read_abbrevs): Adjust.
12659         (load_partial_dies): Adjust.
12660         (read_partial_die): Adjust.
12661         (find_partial_die): Adjust.
12662         (guess_partial_die_structure_name): Adjust.
12663         (fixup_partial_die): Adjust.
12664         (read_attribute_value): Adjust.
12665         (read_addr_index): Adjust.
12666         (read_addr_index_from_leb128): Adjust.
12667         (read_str_index): Adjust.
12668         (dwarf2_string_attr): Adjust.
12669         (get_debug_line_section): Adjust.
12670         (dwarf_decode_line_header): Adjust.
12671         (lnp_state_machine::check_line_address): Adjust.
12672         (dwarf_decode_lines_1): Adjust.
12673         (dwarf_decode_lines): Adjust.
12674         (dwarf2_start_symtab): Adjust.
12675         (var_decode_location): Adjust.
12676         (new_symbol_full): Adjust.
12677         (dwarf2_const_value_data): Adjust.
12678         (dwarf2_const_value_attr): Adjust.
12679         (dwarf2_const_value): Adjust.
12680         (die_type): Adjust.
12681         (die_containing_type): Adjust.
12682         (build_error_marker_type): Adjust.
12683         (lookup_die_type): Adjust.
12684         (guess_full_die_structure_name): Adjust.
12685         (anonymous_struct_prefix): Adjust.
12686         (determine_prefix): Adjust.
12687         (dwarf2_name): Adjust.
12688         (follow_die_ref_or_sig): Adjust.
12689         (follow_die_offset): Adjust.
12690         (follow_die_ref): Adjust.
12691         (follow_die_sig_1): Adjust.
12692         (follow_die_sig): Adjust.
12693         (get_signatured_type): Adjust.
12694         (get_DW_AT_signature_type): Adjust.
12695         (decode_locdesc): Adjust.
12696         (dwarf_decode_macros): Adjust.
12697         (cu_debug_loc_section): Adjust.
12698         (fill_in_loclist_baton): Adjust.
12699         (dwarf2_symbol_mark_computed): Adjust.
12700         (init_one_comp_unit): Don't assign
12701         dwarf2_cu::dwarf2_per_objfile.
12702         (set_die_type): Adjust.
12703
12704 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
12705
12706         * dwarf2read.c (struct mapped_debug_names): Add constructor.
12707         <dwarf2_per_objfile>: New field.
12708         (dwarf2_per_objfile): Remove global.
12709         (get_dwarf2_per_objfile): New function.
12710         (set_dwarf2_per_objfile): New function.
12711         (dwarf2_build_psymtabs_hard): Change objfile parameter to
12712         dwarf2_per_objfile.
12713         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12714         (read_abbrev_offset): Likewise.
12715         (read_indirect_string): Likewise.
12716         (read_indirect_line_string): Likewise.
12717         (read_indirect_string_at_offset): Likewise.
12718         (read_indirect_string_from_dwz): Likewise.
12719         (dwarf2_find_containing_comp_unit): Change objfile parameter to
12720         dwarf2_per_objfile.
12721         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12722         (create_all_comp_units): Change objfile parameter to
12723         dwarf2_per_objfile.
12724         (create_all_type_units): Likewise.
12725         (process_queue): Add dwarf2_per_objfile parameter.
12726         (read_and_check_comp_unit_head): Likewise.
12727         (lookup_dwo_unit_in_dwp): Likewise.
12728         (get_dwp_file): Likewise.
12729         (process_cu_includes): Likewise.
12730         (struct free_dwo_file_cleanup_data): New struct.
12731         (dwarf2_has_info): Use get_dwarf2_per_objfile and
12732         set_dwarf2_per_objfile.
12733         (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12734         (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12735         context, adjust calls.
12736         (dw2_instantiate_symtab): Likewise.
12737         (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12738         (dw2_get_cu): Likewise.
12739         (create_cu_from_index_list): Change objfile parameter to
12740         dwarf2_per_objfile.
12741         (create_cus_from_index_list): Get dwarf2_per_objfile from
12742         context, adjust calls.
12743         (create_cus_from_index): Likewise.
12744         (create_signatured_type_table_from_index): Change objfile
12745         parameter to dwarf2_per_objfile.
12746         (create_signatured_type_table_from_debug_names): Change objfile
12747         parameter to dwarf2_per_objfile.
12748         (create_addrmap_from_index): Likewise.
12749         (create_addrmap_from_aranges): Likewise.
12750         (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12751         (dw2_setup): Remove.
12752         (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12753         context.
12754         (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12755         get_dwarf2_per_objfile.
12756         (dw2_forget_cached_source_info): Likewise.
12757         (dw2_map_symtabs_matching_filename): Likewise.
12758         (struct dw2_symtab_iterator) <index>: Remove.
12759         <dwarf2_per_objfile>: New field.
12760         (dw2_symtab_iter_init): Replace index parameter with
12761         dwarf2_per_objfile.
12762         (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12763         (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12764         (dw2_print_stats): Likewise.
12765         (dw2_dump): Likewise.
12766         (dw2_expand_symtabs_for_function): Likewise.
12767         (dw2_expand_all_symtabs): Likewise.
12768         (dw2_expand_symtabs_with_fullname): Likewise.
12769         (dw2_expand_marked_cus): Replace index and objfile parameters
12770         with dwarf2_per_objfile.
12771         (dw_expand_symtabs_matching_file_matcher): Add
12772         dwarf2_per_objfile parameter and adjust calls.
12773         (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12774         adjust calls.
12775         (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12776         (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12777         adjust calls.
12778         (create_cus_from_debug_names_list): Replace objfile parameter
12779         with dwarf2_per_objfile and adjust calls.
12780         (create_cus_from_debug_names): Likewise.
12781         (dwarf2_read_debug_names): Likewise.
12782         (mapped_debug_names::namei_to_name): Adjust call.
12783         (dw2_debug_names_iterator::next): Likewise.
12784         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12785         (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12786         (dw2_debug_names_dump): Likewise.
12787         (dw2_debug_names_expand_symtabs_for_function): Likewise.
12788         (dw2_debug_names_expand_symtabs_matching): Likewise.
12789         (dwarf2_initialize_objfile): Likewise.
12790         (dwarf2_build_psymtabs): Likewise.
12791         (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12792         this_cu.
12793         (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12794         (read_and_check_comp_unit_head): Likewise.
12795         (read_abbrev_offset): Likewise.
12796         (create_debug_type_hash_table): Likewise.
12797         (create_debug_types_hash_table): Likewise.
12798         (create_all_type_units): Replace objfile parameter with
12799         dwarf2_per_objfile.
12800         (add_type_unit): Add dwarf2_per_objfile parameter.
12801         (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12802         with dwarf2_per_objfile.
12803         (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12804         (lookup_dwp_signatured_type): Likewise.
12805         (lookup_signatured_type): Likewise.
12806         (read_cutu_die_from_dwo): Likewise.
12807         (init_tu_and_read_dwo_dies): Likewise.
12808         (init_cutu_and_read_dies): Likewise.
12809         (init_cutu_and_read_dies_no_follow): Likewise.
12810         (allocate_type_unit_groups_table): Add objfile parameter.
12811         (create_type_unit_group): Use dwarf2_per_objfile from cu.
12812         (get_type_unit_group): Likewise.
12813         (process_psymtab_comp_unit): Update call.
12814         (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12815         (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12816         (print_tu_stats): Likewise.
12817         (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12818         in void* parameter.
12819         (build_type_psymtabs): Change objfile parameter to
12820         dwarf2_per_objfile.
12821         (process_skeletonless_type_unit): Use dwarf2_per_objfile
12822         passed in void* parameter.
12823         (process_skeletonless_type_units): Change objfile parameter to
12824         dwarf2_per_objfile.
12825         (set_partial_user): Likewise.
12826         (dwarf2_build_psymtabs_hard): Likewise.
12827         (read_comp_units_from_section): Likewise.
12828         (create_all_comp_units): Likewise.
12829         (scan_partial_symbols): Update calls.
12830         (add_partial_symbol): Likewise.
12831         (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12832         (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12833         (process_queue): Add dwarf2_per_objfile parameter.
12834         (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12835         (compute_compunit_symtab_includes): Likewise.
12836         (process_cu_includes): Add dwarf2_per_objfile parameter.
12837         (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12838         (process_full_type_unit): Likewise.
12839         (process_imported_unit_die): Update call.
12840         (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12841         (read_file_scope): Likewise.
12842         (allocate_dwo_file_hash_table): Add objfile parameter.
12843         (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12844         (create_cus_hash_table): Likewise.
12845         (create_dwp_hash_table): Likewise.
12846         (create_dwo_unit_in_dwp_v1): Likewise.
12847         (create_dwp_v2_section): Likewise.
12848         (create_dwo_unit_in_dwp_v2): Likewise.
12849         (lookup_dwo_unit_in_dwp): Likewise.
12850         (try_open_dwop_file): Likewise.
12851         (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12852         (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12853         cleanup to include a reference to dwarf2_per_objfile.
12854         (open_dwp_file): Add dwarf2_per_objfile parameter.
12855         (open_and_init_dwp_file): Likewise.
12856         (get_dwp_file): Likewise.
12857         (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12858         (queue_and_load_all_dwo_tus): Update call.
12859         (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12860         data.
12861         (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12862         (dwarf2_ranges_process): Likewise.
12863         (dwarf2_get_pc_bounds): Likewise.
12864         (mark_common_block_symbol_computed): Likewise.
12865         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12866         (dwarf2_read_abbrevs): Update call.
12867         (read_partial_die): Use dwarf2_per_objfile from cu.
12868         (find_partial_die): Likewise.
12869         (fixup_partial_die): Likewise.
12870         (read_attribute_value): Likewise.
12871         (read_indirect_string_at_offset_from): Add objfile parameter.
12872         (read_indirect_string_at_offset): Add dwarf2_per_objfile
12873         parameter.
12874         (read_indirect_string_from_dwz): Add objfile parameter.
12875         (read_indirect_string): Add objfile parameter.
12876         (read_addr_index_1): Add dwarf2_per_objfile parameter.
12877         (read_addr_index): Use dwarf2_per_objfile from cu.
12878         (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12879         call dw2_setup.
12880         (read_str_index): Use dwarf2_per_objfile from cu.
12881         (get_debug_line_section): Likewise.
12882         (read_formatted_entries): Add dwarf2_per_objfile parameter.
12883         (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
12884         (new_symbol_full): Use dwarf2_per_objfile from cu.
12885         (build_error_marker_type): Likewise.
12886         (lookup_die_type): Likewise.
12887         (determine_prefix): Likewise.
12888         (follow_die_offset): Likewise.
12889         (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
12890         (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
12891         (dwarf2_fetch_die_type_sect_off): Likewise.
12892         (dwarf2_get_die_type): Likewise.
12893         (follow_die_sig_1): Use dwarf2_per_objfile from cu.
12894         (get_signatured_type): Likewise.
12895         (get_DW_AT_signature_type): Likewise.
12896         (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
12897         (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
12898         (cu_debug_loc_section): Likewise.
12899         (fill_in_loclist_baton): Likewise.
12900         (dwarf2_symbol_mark_computed): Likewise.
12901         (dwarf2_find_containing_comp_unit): Change objfile parameter to
12902         dwarf2_per_objfile.
12903         (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
12904         parameter.
12905         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12906         (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
12907         (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
12908         (set_die_type): Use dwarf2_free_objfile from cu.
12909         (get_die_type_at_offset): Likewise.
12910         (dwarf2_per_objfile_free): Don't assign global variable.
12911         (debug_names) <constructor>: Add dwarf2_per_objfile
12912         parameter, update m_debugstrlookup construction.
12913         (debug_names::debug_str_lookup): Add dwarf2_per_objfile
12914         parameter.
12915         <m_dwarf2_per_objfile>: New field.
12916         <lookup>: Use m_dwarf2_per_objfile.
12917         (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
12918         (psyms_seen_size): Likewise.
12919         (write_gdbindex): Replace objfile parameter with
12920         dwarf2_per_objfile.
12921         (write_debug_names): Likewise.
12922         (write_psymtabs_to_index): Likewise.
12923         (save_gdb_index_command): Use get_dwarf2_per_objfile, update
12924         calls.
12925
12926 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
12927
12928         * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
12929         <dwarf2_per_objfile>: New field.
12930         (struct dwarf2_per_cu_data) <objfile>: Remove.
12931         <dwarf2_per_objfile>: New field.
12932         (create_cu_from_index_list): Assign dwarf2_per_objfile instead
12933         of objfile.
12934         (create_signatured_type_table_from_index): Likewise.
12935         (create_debug_type_hash_table): Likewise.
12936         (fill_in_sig_entry_from_dwo_entry): Likewise.
12937         (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
12938         (create_type_unit_group): Assign dwarf2_per_objfile instead of
12939         objfile.
12940         (create_partial_symtab): Access objfile through
12941         dwarf2_per_objfile.
12942         (process_psymtab_comp_unit_reader): Likewise.
12943         (read_comp_units_from_section): Likewise.
12944         (scan_partial_symbols): Likewise.
12945         (add_partial_symbol): Likewise.
12946         (add_partial_subprogram): Likewise.
12947         (peek_die_abbrev): Likewise.
12948         (fixup_go_packaging): Likewise.
12949         (process_full_comp_unit): Likewise.
12950         (process_full_type_unit): Likewise.
12951         (process_imported_unit_die): Likewise.
12952         (dwarf2_compute_name): Likewise.
12953         (dwarf2_physname): Likewise.
12954         (read_import_statement): Likewise.
12955         (create_cus_hash_table): Assign dwarf2_physname instead of
12956         objfile.
12957         (read_func_scope): Access objfile through dwarf2_per_objfile.
12958         (read_lexical_block_scope): Likewise.
12959         (read_call_site_scope): Likewise.
12960         (read_variable): Likewise.
12961         (dwarf2_rnglists_process): Likewise.
12962         (dwarf2_ranges_process): Likewise.
12963         (dwarf2_ranges_read): Likewise.
12964         (dwarf2_record_block_ranges): Likewise.
12965         (dwarf2_add_field): Likewise.
12966         (dwarf2_add_member_fn): Likewise.
12967         (read_structure_type): Likewise.
12968         (process_structure_scope): Likewise.
12969         (read_enumeration_type): Likewise.
12970         (read_array_type): Likewise.
12971         (read_common_block): Likewise.
12972         (read_namespace_type): Likewise.
12973         (read_namespace): Likewise.
12974         (read_module_type): Likewise.
12975         (read_tag_pointer_type): Likewise.
12976         (read_tag_ptr_to_member_type): Likewise.
12977         (read_tag_string_type): Likewise.
12978         (read_subroutine_type): Likewise.
12979         (read_typedef): Likewise.
12980         (read_base_type): Likewise.
12981         (attr_to_dynamic_prop): Likewise.
12982         (read_subrange_type): Likewise.
12983         (read_unspecified_type): Likewise.
12984         (load_partial_dies): Likewise.
12985         (read_partial_die): Likewise.
12986         (find_partial_die): Likewise.
12987         (guess_partial_die_structure_name): Likewise.
12988         (fixup_partial_die): Likewise.
12989         (read_attribute_value): Likewise.
12990         (read_addr_index_from_leb128): Likewise.
12991         (dwarf2_read_addr_index): Likewise.
12992         (dwarf2_string_attr): Likewise.
12993         (lnp_state_machine::check_line_address): Likewise.
12994         (dwarf_decode_lines_1): Likewise.
12995         (dwarf_decode_lines): Likewise.
12996         (dwarf2_start_symtab): Likewise.
12997         (var_decode_location): Likewise.
12998         (new_symbol_full): Likewise.
12999         (dwarf2_const_value_data): Likewise.
13000         (dwarf2_const_value_attr): Likewise.
13001         (dwarf2_const_value): Likewise.
13002         (die_type): Likewise.
13003         (die_containing_type): Likewise.
13004         (lookup_die_type): Likewise.
13005         (guess_full_die_structure_name): Likewise.
13006         (anonymous_struct_prefix): Likewise.
13007         (dwarf2_name): Likewise.
13008         (follow_die_ref_or_sig): Likewise.
13009         (follow_die_offset): Likewise.
13010         (follow_die_ref): Likewise.
13011         (dwarf2_fetch_die_loc_sect_off): Likewise.
13012         (dwarf2_fetch_constant_bytes): Likewise.
13013         (dwarf2_fetch_die_type_sect_off): Likewise.
13014         (dwarf2_get_die_type): Likewise.
13015         (follow_die_sig): Likewise.
13016         (decode_locdesc): Likewise.
13017         (dwarf2_per_cu_objfile): Likewise.
13018         (dwarf2_per_cu_text_offset): Likewise.
13019         (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13020         objfile.
13021         (set_die_type): Access objfile through
13022         dwarf2_per_objfile.
13023
13024 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
13025
13026         * valprint.c (converted_character_d): Remove typedef.
13027         (DEF_VEC_O (converted_character_d)): Remove.
13028         (count_next_character): Use std::vector.
13029         (print_converted_chars_to_obstack): Likewise.
13030         (generic_printstr): Likewise.
13031
13032 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
13033
13034         * xml-support.h (struct gdb_xml_value): Add constructor.
13035         <value>: Change type to unique_xmalloc_ptr.
13036         (gdb_xml_value_s): Remove typedef.
13037         (DEF_VEC_O (gdb_xml_value_s)): Remove.
13038         (gdb_xml_element_start_handler): Change parameter type to
13039         std::vector.
13040         (xml_find_attribute): Likewise.
13041         * xml-support.c (xml_find_attribute): Change parameter type to
13042         std::vector and adjust.
13043         (gdb_xml_values_cleanup): Remove.
13044         (gdb_xml_parser::start_element): Adjust to std::vector.
13045         (xinclude_start_include): Change paraeter type to std::vector
13046         and adjust.
13047         * btrace.c (check_xml_btrace_version): Likewise.
13048         (parse_xml_btrace_block): Likewise.
13049         (parse_xml_btrace_pt_config_cpu): Likewise.
13050         (parse_xml_btrace_pt): Likewise.
13051         (parse_xml_btrace_conf_bts): Likewise.
13052         (parse_xml_btrace_conf_pt): Likewise.
13053         * memory-map.c (memory_map_start_memory): Likewise.
13054         (memory_map_start_property): Likewise.
13055         * osdata.c (osdata_start_osdata): Likewise.
13056         (osdata_start_item): Likewise.
13057         (osdata_start_column): Likewise.
13058         * remote.c (start_thread): Likewise.
13059         * solib-aix.c (library_list_start_library): Likewise.
13060         (library_list_start_list): Likewise.
13061         * solib-svr4.c (library_list_start_library): Likewise.
13062         (svr4_library_list_start_list): Likewise.
13063         * solib-target.c (library_list_start_segment): Likewise.
13064         (library_list_start_section): Likewise.
13065         (library_list_start_library): Likewise.
13066         (library_list_start_list): Likewise.
13067         * tracepoint.c (traceframe_info_start_memory): Likewise.
13068         (traceframe_info_start_tvar): Likewise.
13069         * xml-syscall.c (syscall_start_syscall): Likewise.
13070         * xml-tdesc.c (tdesc_start_target): Likewise.
13071         (tdesc_start_feature): Likewise.
13072         (tdesc_start_reg): Likewise.
13073         (tdesc_start_union): Likewise.
13074         (tdesc_start_struct): Likewise.
13075         (tdesc_start_flags): Likewise.
13076         (tdesc_start_enum): Likewise.
13077         (tdesc_start_field): Likewise.
13078         (tdesc_start_enum_value): Likewise.
13079         (tdesc_start_vector): Likewise.
13080
13081 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
13082
13083         * extension.h (struct xmethod_worker) <clone>: Remove.
13084         * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13085         Remove.
13086         (python_xmethod_worker::clone): Remove.
13087         * valops.c (find_overload_match): Use std::move instead of
13088         clone.
13089
13090 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
13091
13092         * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13093         (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13094         <free_xmethod_worker_data>: Remove.
13095         <get_matching_xmethod_workers>: Chance VEC to std::vector.
13096         <get_xmethod_arg_types>: Remove.
13097         <get_xmethod_result_type>: Remove.
13098         <invoke_xmethod>: Remove.
13099         * extension.c (new_xmethod_worker): Remove.
13100         (clone_xmethod_worker): Remove.
13101         (get_matching_xmethod_workers): Return void, pass std::vector by
13102         pointer.
13103         (get_xmethod_arg_types): Rename to...
13104         (xmethod_worker::get_arg_types): ... this, and adjust.
13105         (get_xmethod_result_type): Rename to...
13106         (xmethod_worker::get_result_type): ... this, and adjust.
13107         (invoke_xmethod): Remove.
13108         (free_xmethod_worker): Remove.
13109         (free_xmethod_worker_vec): Remove.
13110         * extension.h (enum ext_lang_rc): Move here from
13111         extension-priv.h.
13112         (struct xmethod_worker): Add constructor and destructor.
13113         <data>: Remove.
13114         <value>: Remove.
13115         <invoke, clone, do_get_result_type, do_get_arg_types>: New
13116         virtual pure methods.
13117         <get_arg_types, get_result_type>: New methods.
13118         (xmethod_worker_ptr): Remove typedef.
13119         (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13120         (xmethod_worker_vec): Remove typedef.
13121         (xmethod_worker_up): New typedef.
13122         (invoke_xmethod): Remove.
13123         (clone_xmethod_worker): Remove.
13124         (free_xmethod_worker): Remove.
13125         (free_xmethod_worker_vec): Remove.
13126         (get_xmethod_arg_types): Remove.
13127         (get_xmethod_result_type): Remove.
13128         * valops.c (find_method_list): Use std::vector, don't use
13129         intermediate vector.
13130         (value_find_oload_method_list): Use std::vector.
13131         (find_overload_match): Use std::vector.
13132         (find_oload_champ): Use std::vector.
13133         * value.c (value_free): Use operator delete.
13134         (value_of_xmethod): Rename to...
13135         (value_from_xmethod): ... this.  Don't assign
13136         xmethod_worker::value, take rvalue-reference.
13137         (result_type_of_xmethod): Adjust.
13138         (call_xmethod): Adjust.
13139         * value.h: Include extension.h.
13140         (struct xmethod_worker): Don't forward-declare.
13141         (value_of_xmethod): Rename to...
13142         (value_from_xmethod): ... this, take rvalue-reference.
13143         * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13144         (struct python_xmethod_worker): ... this, add constructor and
13145         destructor.
13146         <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13147         (gdbpy_free_xmethod_worker_data): Rename to...
13148         (python_xmethod_worker::~python_xmethod_worker): ... this and
13149         adjust.
13150         (gdbpy_clone_xmethod_worker_data): Rename to...
13151         (python_xmethod_worker::clone): ... this and adjust.
13152         (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13153         temporary vector.
13154         (gdbpy_get_xmethod_arg_types): Rename to...
13155         (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13156         (gdbpy_get_xmethod_result_type): Rename to...
13157         (python_xmethod_worker::do_get_result_type): ... this and
13158         adjust.
13159         (gdbpy_invoke_xmethod): Rename to...
13160         (python_xmethod_worker::invoke): ... this and adjust.
13161         (new_python_xmethod_worker): Rename to...
13162         (python_xmethod_worker::python_xmethod_worker): ... this and
13163         adjust.
13164         * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13165         Remove.
13166         (gdbpy_free_xmethod_worker_data): Remove.
13167         (gdbpy_get_matching_xmethod_workers): Use std::vector.
13168         (gdbpy_get_xmethod_arg_types): Remove.
13169         (gdbpy_get_xmethod_result_type): Remove.
13170         (gdbpy_invoke_xmethod): Remove.
13171         * python/python.c (python_extension_ops): Remove obsolete
13172         callbacks.
13173
13174 2018-01-05  Pedro Alves  <palves@redhat.com>
13175
13176         PR gdb/18653
13177         * common/signals-state-save-restore.c
13178         (save_original_signals_state): New parameter 'quiet'.  Warn if we
13179         find a custom handler preinstalled, instead of internal erroring.
13180         But only warn if !quiet.
13181         * common/signals-state-save-restore.h
13182         (save_original_signals_state): New parameter 'quiet'.
13183         * main.c (captured_main_1): Move save_original_signals_state call
13184         after option handling, and pass QUIET.
13185
13186 2018-01-05  Pedro Alves  <palves@redhat.com>
13187
13188         * spu-tdep.c (spu_catch_start): Pass
13189         symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13190
13191 2018-01-05  Pedro Alves  <palves@redhat.com>
13192
13193         PR gdb/22670
13194         * ada-lang.c (literal_symbol_name_matcher): New function.
13195         (ada_get_symbol_name_matcher): Use it for
13196         symbol_name_match_type::SEARCH_NAME.
13197         * block.c (block_lookup_symbol): New parameter 'match_type'.  Pass
13198         it down instead of assuming symbol_name_match_type::FULL.
13199         * block.h (block_lookup_symbol): New parameter 'match_type'.
13200         * c-valprint.c (print_unpacked_pointer): Use
13201         lookup_symbol_search_name instead of lookup_symbol.
13202         * compile/compile-object-load.c (get_out_value_type): Pass down
13203         symbol_name_match_type::SEARCH_NAME.
13204         * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13205         symbol_name_match_type::FULL.
13206         * cp-support.c (cp_get_symbol_name_matcher): Handle
13207         symbol_name_match_type::SEARCH_NAME.
13208         * infrun.c (insert_exception_resume_breakpoint): Use
13209         lookup_symbol_search_name.
13210         * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13211         * psymtab.c (maintenance_check_psymtabs): Use
13212         symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13213         * stack.c (print_frame_args): Use lookup_symbol_search_name and
13214         SYMBOL_SEARCH_NAME.
13215         * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13216         if symbol_name_match_type::SEARCH_NAME.
13217         (lookup_symbol_in_language): Pass down
13218         symbol_name_match_type::FULL.
13219         (lookup_symbol_search_name): New.
13220         (lookup_language_this): Pass down
13221         symbol_name_match_type::SEARCH_NAME.
13222         (lookup_symbol_aux, lookup_local_symbol): New parameter
13223         'match_type'.  Pass it down.
13224         * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13225         (lookup_symbol_search_name): New declaration.
13226         (lookup_symbol_in_block): New 'match_type' parameter.
13227
13228 2018-01-05  Pedro Alves  <palves@redhat.com>
13229
13230         PR gdb/22670
13231         * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13232         ada_lookup_symbol.
13233         (ada_lookup_symbol): Reimplement in terms of
13234         ada_lookup_symbol_list, bits factored out from
13235         ada_lookup_encoded_symbol.
13236
13237 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
13238
13239         * ada-exp.y (write_object_renaming): When subscripting an array
13240         using a symbol as the index, pass the block in call to
13241         ada_lookup_encoded_symbol when looking that symbol up.
13242
13243 2018-01-05  Jerome Guitton  <guitton@adacore.com>
13244
13245         * ada-lang.c (ada_array_length): Use ada_index_type instead of
13246         TYPE_INDEX_TYPE.
13247
13248 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
13249
13250         * ada-lang.c (ada_to_fixed_value_create): Add handling of
13251         the case where VALUE_LVAL (val0) is not lval_memory.
13252
13253 2018-01-05  Xavier Roirand  <roirand@adacore.com>
13254
13255         * ada-valprint.c (print_optional_low_bound): Handle
13256         character-indexed array printing like boolean-indexed array
13257         printing.
13258
13259 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
13260
13261         * NEWS: Create a new section for the next release branch.
13262         Rename the section of the current branch, now that it has
13263         been cut.
13264
13265 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
13266
13267         GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13268         * version.in: Bump version to 8.1.50.DATE-git.
13269
13270 2018-01-03  Xavier Roirand  <roirand@adacore.com>
13271
13272         * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13273         Add field.
13274         * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13275         Add field.
13276         (default_exception_support_info) <catch_handlers_sym>: Add field.
13277         (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13278         (ada_exception_name_addr_1): Add "catch handlers" handling.
13279         (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13280         Update all callers.
13281         (create_excep_cond_exprs) <ex>: Add parameter.
13282         (re_set_exception): Update create_excep_cond_exprs call.
13283         (print_it_exception, print_one_exception, print_mention_exception)
13284         (print_recreate_exception): Add "catch handler" handling.
13285         (allocate_location_catch_handlers, re_set_catch_handlers)
13286         (check_status_catch_handlers, print_it_catch_handlers)
13287         (print_one_catch_handlers, print_mention_catch_handlers)
13288         (print_recreate_catch_handlers): New function.
13289         (catch_handlers_breakpoint_ops): New variable.
13290         (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13291         Add parameter.  Add "catch handler" handling.
13292         (ada_exception_sym_name, ada_exception_breakpoint_ops):
13293         Add "catch handler" handling.
13294         (ada_exception_catchpoint_cond_string): Add "catch handler"
13295         handling.
13296         (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13297         call.
13298         (catch_ada_handlers_command): New function.
13299         (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13300         operations structure.
13301         (_initialize_ada_language): Add "catch handlers" command entry.
13302         * NEWS: Document "catch handlers" feature.
13303
13304 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
13305
13306         * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13307         account when creating the array type of the slice.
13308         (ada_value_slice): Likewise.
13309
13310 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
13311
13312         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13313         New enum value.
13314         (create_array_type_with_stride): Add byte_stride_prop parameter.
13315         * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13316         New parameter.  Update all callers in this file.
13317         (array_type_has_dynamic_stride): New function.
13318         (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13319         of arrays with dynamic byte strides.
13320         * dwarf2read.c (read_array_type): Add support for dynamic
13321         DW_AT_byte_stride attributes.
13322
13323 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
13324
13325         * dwarf2read.c (read_unspecified_type): Treat
13326         DW_TAG_enumeration_type DIEs from Ada units as stubs.
13327
13328 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
13329
13330         Update copyright year range in all GDB files.
13331
13332 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
13333
13334         * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13335         and gdb/testsuite/gdb.base/step-line.c.
13336
13337 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
13338
13339         * copyright.py (main): Dump the contents of
13340         MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13341         even if BY_HAND is empty.
13342
13343 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
13344
13345         * top.c (print_gdb_version): Update Copyright year in version
13346         message.
13347
13348 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
13349
13350         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13351
13352 For older changes see ChangeLog-2017.
13353 \f
13354 Local Variables:
13355 mode: change-log
13356 left-margin: 8
13357 fill-column: 74
13358 version-control: never
13359 coding: utf-8
13360 End: