Move 'is_regular_file' from common-utils.c to filestuff.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 * common/common-utils.c: Don't include '<sys/stat.h>'.
4 (is_regular_file): Move to...
5 * common/filestuff.c (is_regular_file): ... here.
6 * common/common-utils.h (is_regular_file): Move to...
7 * common/filestuff.h (is_regular_file): ... here.
8
9 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
10
11 * skip.c (debug_skip): New variable.
12 (skiplist_entry::do_skip_file_p): Add debug output.
13 (skiplist_entry::do_skip_gfile_p): Likewise.
14 (skiplist_entry::skip_function_p): Likewise.
15 (_initialize_step_skip): Create debug command.
16 * NEWS: Mention set/show debug skip.
17
18 2018-09-11 Xavier Roirand <roirand@adacore.com>
19
20 * darwin-nat.c (should_disable_startup_with_shell):
21 New function.
22 (darwin_nat_target::create_inferior): Add call.
23
24 2018-09-11 Xavier Roirand <roirand@adacore.com>
25
26 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
27 inf_port, msg_state>: Initialize.
28 (struct darwin_thread_info) <signaled, single_step>: Change
29 type and initialize.
30 (struct darwin_thread_info) <event>: Initialize.
31
32 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
33
34 PR gdb/23555
35 PR gdb/23558
36 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
37 guesses.
38
39 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
40
41 Revert:
42 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
43
44 PR gdb/23555
45 PR gdb/23558
46 * gnulib/aclocal.m4: Regenerate.
47 * gnulib/config.in: Regenerate.
48 * gnulib/configure: Regenerate.
49 * gnulib/import/Makefile.am: Update.
50 * gnulib/import/Makefile.in: Update.
51 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
52 * gnulib/import/_Noreturn.h: ... this.
53 * gnulib/import/alloca.in.h: Update.
54 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
55 * gnulib/import/arg-nonnull.h: ... this.
56 * gnulib/import/assure.h: Update.
57 * gnulib/import/at-func.c: Update.
58 * gnulib/import/basename-lgpl.c: Update.
59 * gnulib/import/extra/snippet/c++defs.h: Rename to...
60 * gnulib/import/c++defs.h: ... this.
61 * gnulib/import/canonicalize-lgpl.c: Update.
62 * gnulib/import/cdefs.h: Update.
63 * gnulib/import/chdir-long.c: Update.
64 * gnulib/import/chdir-long.h: Update.
65 * gnulib/import/cloexec.c: Update.
66 * gnulib/import/cloexec.h: Update.
67 * gnulib/import/close.c: Update.
68 * gnulib/import/closedir.c: Update.
69 * gnulib/import/config.charset: Update.
70 * gnulib/import/dirent-private.h: Update.
71 * gnulib/import/dirent.in.h: Update.
72 * gnulib/import/dirfd.c: Update.
73 * gnulib/import/dirname-lgpl.c: Update.
74 * gnulib/import/dirname.h: Update.
75 * gnulib/import/dosname.h: Update.
76 * gnulib/import/dup-safer-flag.c: Update.
77 * gnulib/import/dup-safer.c: Update.
78 * gnulib/import/dup.c: Update.
79 * gnulib/import/dup2.c: Update.
80 * gnulib/import/errno.in.h: Update.
81 * gnulib/import/error.c: Update.
82 * gnulib/import/error.h: Update.
83 * gnulib/import/exitfail.c: Update.
84 * gnulib/import/exitfail.h: Update.
85 * gnulib/import/extra/update-copyright: Update.
86 * gnulib/import/fchdir.c: Update.
87 * gnulib/import/fcntl.c: Update.
88 * gnulib/import/fcntl.in.h: Update.
89 * gnulib/import/fd-hook.c: Update.
90 * gnulib/import/fd-hook.h: Update.
91 * gnulib/import/fd-safer-flag.c: Update.
92 * gnulib/import/fd-safer.c: Update.
93 * gnulib/import/fdopendir.c: Update.
94 * gnulib/import/filename.h: Update.
95 * gnulib/import/filenamecat-lgpl.c: Update.
96 * gnulib/import/filenamecat.h: Update.
97 * gnulib/import/flexmember.h: Update.
98 * gnulib/import/float+.h: Update.
99 * gnulib/import/float.c: Update.
100 * gnulib/import/float.in.h: Update.
101 * gnulib/import/fnmatch.c: Update.
102 * gnulib/import/fnmatch.in.h: Update.
103 * gnulib/import/fnmatch_loop.c: Update.
104 * gnulib/import/fpucw.h: Update.
105 * gnulib/import/frexp.c: Update.
106 * gnulib/import/frexpl.c: Update.
107 * gnulib/import/fstat.c: Update.
108 * gnulib/import/fstatat.c: Update.
109 * gnulib/import/getcwd-lgpl.c: Update.
110 * gnulib/import/getcwd.c: Update.
111 * gnulib/import/getdtablesize.c: Update.
112 * gnulib/import/getlogin_r.c: Update.
113 * gnulib/import/getprogname.c: Update.
114 * gnulib/import/getprogname.h: Update.
115 * gnulib/import/gettext.h: Update.
116 * gnulib/import/gettimeofday.c: Update.
117 * gnulib/import/glob-libc.h: Update.
118 * gnulib/import/glob.c: Update.
119 * gnulib/import/glob.in.h: Update.
120 * gnulib/import/glob_internal.h: Update.
121 * gnulib/import/glob_pattern_p.c: Update.
122 * gnulib/import/globfree.c: Update.
123 * gnulib/import/hard-locale.c: Update.
124 * gnulib/import/hard-locale.h: Update.
125 * gnulib/import/intprops.h: Update.
126 * gnulib/import/inttypes.in.h: Update.
127 * gnulib/import/isnan.c: Update.
128 * gnulib/import/isnand-nolibm.h: Update.
129 * gnulib/import/isnand.c: Update.
130 * gnulib/import/isnanl-nolibm.h: Update.
131 * gnulib/import/isnanl.c: Update.
132 * gnulib/import/itold.c: Update.
133 * gnulib/import/libc-config.h: Update.
134 * gnulib/import/limits.in.h: Update.
135 * gnulib/import/localcharset.c: Update.
136 * gnulib/import/localcharset.h: Update.
137 * gnulib/import/localtime-buffer.c: Update.
138 * gnulib/import/localtime-buffer.h: Update.
139 * gnulib/import/lstat.c: Update.
140 * gnulib/import/m4/00gnulib.m4: Update.
141 * gnulib/import/m4/__inline.m4: Update.
142 * gnulib/import/m4/absolute-header.m4: Update.
143 * gnulib/import/m4/alloca.m4: Update.
144 * gnulib/import/m4/builtin-expect.m4: Update.
145 * gnulib/import/m4/canonicalize.m4: Update.
146 * gnulib/import/m4/chdir-long.m4: Update.
147 * gnulib/import/m4/close.m4: Update.
148 * gnulib/import/m4/closedir.m4: Update.
149 * gnulib/import/m4/configmake.m4: Update.
150 * gnulib/import/m4/d-ino.m4: Update.
151 * gnulib/import/m4/d-type.m4: Update.
152 * gnulib/import/m4/dirent_h.m4: Update.
153 * gnulib/import/m4/dirfd.m4: Update.
154 * gnulib/import/m4/dirname.m4: Update.
155 * gnulib/import/m4/double-slash-root.m4: Update.
156 * gnulib/import/m4/dup.m4: Update.
157 * gnulib/import/m4/dup2.m4: Update.
158 * gnulib/import/m4/eealloc.m4: Update.
159 * gnulib/import/m4/environ.m4: Update.
160 * gnulib/import/m4/errno_h.m4: Update.
161 * gnulib/import/m4/error.m4: Update.
162 * gnulib/import/m4/exponentd.m4: Update.
163 * gnulib/import/m4/exponentl.m4: Update.
164 * gnulib/import/m4/extensions.m4: Update.
165 * gnulib/import/m4/extern-inline.m4: Update.
166 * gnulib/import/m4/fchdir.m4: Update.
167 * gnulib/import/m4/fcntl-o.m4: Update.
168 * gnulib/import/m4/fcntl.m4: Update.
169 * gnulib/import/m4/fcntl_h.m4: Update.
170 * gnulib/import/m4/fdopendir.m4: Update.
171 * gnulib/import/m4/filenamecat.m4: Update.
172 * gnulib/import/m4/flexmember.m4: Update.
173 * gnulib/import/m4/float_h.m4: Update.
174 * gnulib/import/m4/fnmatch.m4: Update.
175 * gnulib/import/m4/fnmatch_h.m4: Update.
176 * gnulib/import/m4/fpieee.m4: Update.
177 * gnulib/import/m4/frexp.m4: Update.
178 * gnulib/import/m4/frexpl.m4: Update.
179 * gnulib/import/m4/fstat.m4: Update.
180 * gnulib/import/m4/fstatat.m4: Update.
181 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
182 * gnulib/import/m4/getcwd-path-max.m4: Update.
183 * gnulib/import/m4/getcwd.m4: Update.
184 * gnulib/import/m4/getdtablesize.m4: Update.
185 * gnulib/import/m4/getlogin.m4: Update.
186 * gnulib/import/m4/getlogin_r.m4: Update.
187 * gnulib/import/m4/getpagesize.m4: Update.
188 * gnulib/import/m4/getprogname.m4: Update.
189 * gnulib/import/m4/gettimeofday.m4: Update.
190 * gnulib/import/m4/glibc21.m4: Update.
191 * gnulib/import/m4/glob.m4: Update.
192 * gnulib/import/m4/glob_h.m4: Update.
193 * gnulib/import/m4/gnulib-cache.m4: Update.
194 * gnulib/import/m4/gnulib-common.m4: Update.
195 * gnulib/import/m4/gnulib-comp.m4: Update.
196 * gnulib/import/m4/gnulib-tool.m4: Update.
197 * gnulib/import/m4/hard-locale.m4: Update.
198 * gnulib/import/m4/include_next.m4: Update.
199 * gnulib/import/m4/inttypes-pri.m4: Update.
200 * gnulib/import/m4/inttypes.m4: Update.
201 * gnulib/import/m4/isnand.m4: Update.
202 * gnulib/import/m4/isnanl.m4: Update.
203 * gnulib/import/m4/largefile.m4: Update.
204 * gnulib/import/m4/limits-h.m4: Update.
205 * gnulib/import/m4/localcharset.m4: Update.
206 * gnulib/import/m4/locale-fr.m4: Update.
207 * gnulib/import/m4/locale-ja.m4: Update.
208 * gnulib/import/m4/locale-zh.m4: Update.
209 * gnulib/import/m4/localtime-buffer.m4: Update.
210 * gnulib/import/m4/longlong.m4: Update.
211 * gnulib/import/m4/lstat.m4: Update.
212 * gnulib/import/m4/malloc.m4: Update.
213 * gnulib/import/m4/malloca.m4: Update.
214 * gnulib/import/m4/math_h.m4: Update.
215 * gnulib/import/m4/mbrtowc.m4: Update.
216 * gnulib/import/m4/mbsinit.m4: Update.
217 * gnulib/import/m4/mbsrtowcs.m4: Update.
218 * gnulib/import/m4/mbstate_t.m4: Update.
219 * gnulib/import/m4/memchr.m4: Update.
220 * gnulib/import/m4/memmem.m4: Update.
221 * gnulib/import/m4/mempcpy.m4: Update.
222 * gnulib/import/m4/memrchr.m4: Update.
223 * gnulib/import/m4/mkdir.m4: Update.
224 * gnulib/import/m4/mkstemp.m4: Update.
225 * gnulib/import/m4/mmap-anon.m4: Update.
226 * gnulib/import/m4/mode_t.m4: Update.
227 * gnulib/import/m4/msvc-inval.m4: Update.
228 * gnulib/import/m4/msvc-nothrow.m4: Update.
229 * gnulib/import/m4/multiarch.m4: Update.
230 * gnulib/import/m4/nocrash.m4: Update.
231 * gnulib/import/m4/off_t.m4: Update.
232 * gnulib/import/m4/onceonly.m4: Update.
233 * gnulib/import/m4/open-cloexec.m4: Update.
234 * gnulib/import/m4/open.m4: Update.
235 * gnulib/import/m4/openat.m4: Update.
236 * gnulib/import/m4/opendir.m4: Update.
237 * gnulib/import/m4/pathmax.m4: Update.
238 * gnulib/import/m4/rawmemchr.m4: Update.
239 * gnulib/import/m4/readdir.m4: Update.
240 * gnulib/import/m4/readlink.m4: Update.
241 * gnulib/import/m4/realloc.m4: Update.
242 * gnulib/import/m4/rename.m4: Update.
243 * gnulib/import/m4/rewinddir.m4: Update.
244 * gnulib/import/m4/rmdir.m4: Update.
245 * gnulib/import/m4/save-cwd.m4: Update.
246 * gnulib/import/m4/secure_getenv.m4: Update.
247 * gnulib/import/m4/setenv.m4: Update.
248 * gnulib/import/m4/signal_h.m4: Update.
249 * gnulib/import/m4/ssize_t.m4: Update.
250 * gnulib/import/m4/stat-time.m4: Update.
251 * gnulib/import/m4/stat.m4: Update.
252 * gnulib/import/m4/std-gnu11.m4: Update.
253 * gnulib/import/m4/stdbool.m4: Update.
254 * gnulib/import/m4/stddef_h.m4: Update.
255 * gnulib/import/m4/stdint.m4: Update.
256 * gnulib/import/m4/stdio_h.m4: Update.
257 * gnulib/import/m4/stdlib_h.m4: Update.
258 * gnulib/import/m4/strchrnul.m4: Update.
259 * gnulib/import/m4/strdup.m4: Update.
260 * gnulib/import/m4/strerror.m4: Update.
261 * gnulib/import/m4/string_h.m4: Update.
262 * gnulib/import/m4/strstr.m4: Update.
263 * gnulib/import/m4/strtok_r.m4: Update.
264 * gnulib/import/m4/sys_socket_h.m4: Update.
265 * gnulib/import/m4/sys_stat_h.m4: Update.
266 * gnulib/import/m4/sys_time_h.m4: Update.
267 * gnulib/import/m4/sys_types_h.m4: Update.
268 * gnulib/import/m4/tempname.m4: Update.
269 * gnulib/import/m4/time_h.m4: Update.
270 * gnulib/import/m4/unistd-safer.m4: Update.
271 * gnulib/import/m4/unistd_h.m4: Update.
272 * gnulib/import/m4/warn-on-use.m4: Update.
273 * gnulib/import/m4/wchar_h.m4: Update.
274 * gnulib/import/m4/wchar_t.m4: Update.
275 * gnulib/import/m4/wctype_h.m4: Update.
276 * gnulib/import/m4/wint_t.m4: Update.
277 * gnulib/import/malloc.c: Update.
278 * gnulib/import/malloc/scratch_buffer.h: Update.
279 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
280 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
281 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
282 * gnulib/import/malloca.c: Update.
283 * gnulib/import/malloca.h: Update.
284 * gnulib/import/malloca.valgrind: Update.
285 * gnulib/import/math.in.h: Update.
286 * gnulib/import/mbrtowc.c: Update.
287 * gnulib/import/mbsinit.c: Update.
288 * gnulib/import/mbsrtowcs-impl.h: Update.
289 * gnulib/import/mbsrtowcs-state.c: Update.
290 * gnulib/import/mbsrtowcs.c: Update.
291 * gnulib/import/memchr.c: Update.
292 * gnulib/import/memmem.c: Update.
293 * gnulib/import/mempcpy.c: Update.
294 * gnulib/import/memrchr.c: Update.
295 * gnulib/import/mkdir.c: Update.
296 * gnulib/import/mkstemp.c: Update.
297 * gnulib/import/msvc-inval.c: Update.
298 * gnulib/import/msvc-inval.h: Update.
299 * gnulib/import/msvc-nothrow.c: Update.
300 * gnulib/import/msvc-nothrow.h: Update.
301 * gnulib/import/open.c: Update.
302 * gnulib/import/openat-die.c: Update.
303 * gnulib/import/openat-priv.h: Update.
304 * gnulib/import/openat-proc.c: Update.
305 * gnulib/import/openat.c: Update.
306 * gnulib/import/openat.h: Update.
307 * gnulib/import/opendir.c: Update.
308 * gnulib/import/pathmax.h: Update.
309 * gnulib/import/pipe-safer.c: Update.
310 * gnulib/import/rawmemchr.c: Update.
311 * gnulib/import/readdir.c: Update.
312 * gnulib/import/readlink.c: Update.
313 * gnulib/import/realloc.c: Update.
314 * gnulib/import/ref-add.sin: Update.
315 * gnulib/import/ref-del.sin: Update.
316 * gnulib/import/rename.c: Update.
317 * gnulib/import/rewinddir.c: Update.
318 * gnulib/import/rmdir.c: Update.
319 * gnulib/import/same-inode.h: Update.
320 * gnulib/import/save-cwd.c: Update.
321 * gnulib/import/save-cwd.h: Update.
322 * gnulib/import/scratch_buffer.h: Update.
323 * gnulib/import/secure_getenv.c: Update.
324 * gnulib/import/setenv.c: Update.
325 * gnulib/import/signal.in.h: Update.
326 * gnulib/import/stat-time.c: Update.
327 * gnulib/import/stat-time.h: Update.
328 * gnulib/import/stat-w32.c: Update.
329 * gnulib/import/stat-w32.h: Update.
330 * gnulib/import/stat.c: Update.
331 * gnulib/import/stdbool.in.h: Update.
332 * gnulib/import/stddef.in.h: Update.
333 * gnulib/import/stdint.in.h: Update.
334 * gnulib/import/stdio.in.h: Update.
335 * gnulib/import/stdlib.in.h: Update.
336 * gnulib/import/str-two-way.h: Update.
337 * gnulib/import/strchrnul.c: Update.
338 * gnulib/import/strdup.c: Update.
339 * gnulib/import/streq.h: Update.
340 * gnulib/import/strerror-override.c: Update.
341 * gnulib/import/strerror-override.h: Update.
342 * gnulib/import/strerror.c: Update.
343 * gnulib/import/string.in.h: Update.
344 * gnulib/import/stripslash.c: Update.
345 * gnulib/import/strnlen1.c: Update.
346 * gnulib/import/strnlen1.h: Update.
347 * gnulib/import/strstr.c: Update.
348 * gnulib/import/strtok_r.c: Update.
349 * gnulib/import/sys_stat.in.h: Update.
350 * gnulib/import/sys_time.in.h: Update.
351 * gnulib/import/sys_types.in.h: Update.
352 * gnulib/import/tempname.c: Update.
353 * gnulib/import/tempname.h: Update.
354 * gnulib/import/time.in.h: Update.
355 * gnulib/import/unistd--.h: Update.
356 * gnulib/import/unistd-safer.h: Update.
357 * gnulib/import/unistd.in.h: Update.
358 * gnulib/import/unsetenv.c: Update.
359 * gnulib/import/verify.h: Update.
360 * gnulib/import/extra/snippet/warn-on-use.h: Update.
361 * gnulib/import/wchar.in.h: Update.
362 * gnulib/import/wctype.in.h: Update.
363 * gnulib/import/xalloc-oversized.h: Update.
364 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
365 "53e2c179f26a890fa6685af4b6c1397ee370433b".
366
367 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
368
369 * record-btrace.c (get_thread_current_frame): Remove
370 old_inferior_ptid.
371
372 2018-09-10 Jerome Guitton <guitton@adacore.com>
373
374 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
375 with check_tag to 1 if and only if the type is tagged and the
376 component being searched cannot been found in the current
377 view. Otherwise, always call ada_to_fixed_type with
378 check_tag to 0.
379
380 2018-09-10 Xavier Roirand <roirand@adacore.com>
381
382 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
383 declaration.
384 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
385 * ada-varobj.c (ada_varobj_get_number_of_children,
386 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
387
388 2018-09-10 Xavier Roirand <roirand@adacore.com>
389
390 * ada-valprint.c (ada_value_print): Use type instead of
391 enclosing type.
392
393 2018-09-10 Xavier Roirand <roirand@adacore.com>
394
395 * ada-lang.c (ada_value_subscript): Handle case when parameter is
396 an array of access to unconstrained array.
397
398 2018-09-10 Xavier Roirand <roirand@adacore.com>
399
400 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
401 (ada_check_typedef): Use it.
402
403 2018-09-10 Xavier Roirand <roirand@adacore.com>
404
405 * ada-varobj.c (ada_varobj_describe_struct_child)
406 (ada_varobj_describe_child): Handle union case like struct one.
407
408 2018-09-10 Tom Tromey <tom@tromey.com>
409
410 PR python/18380:
411 * python/python.c (_initialize_python): Make example in "python"
412 help work in Python 3.
413
414 2018-09-10 Eli Zaretskii <eliz@gnu.org>
415
416 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
417 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
418 $(EXEEXT) to the script, as it is not a program.
419
420 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
421
422 * python/py-prettyprint.c (pretty_print_one_value): Return
423 gdbpy_ref<>.
424 (print_string_repr): Adjust.
425 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
426 * python/python-internal.h (apply_varobj_pretty_printer): Return
427 gdbpy_ref<>.
428 * varobj.c (varobj_value_get_print_value): Adjust.
429
430 2018-09-08 Tom Tromey <tom@tromey.com>
431
432 PR python/16047:
433 * python/py-prettyprint.c (pretty_print_one_value): Check for
434 to_string method.
435
436 2018-09-08 Joel Brobecker <brobecker@adacore.com>
437
438 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
439 replace_operator_with_call.
440
441 2018-09-08 Joel Brobecker <brobecker@adacore.com>
442
443 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
444
445 2018-09-08 Joel Brobecker <brobecker@adacore.com>
446
447 * ada-typeprint.c (print_range): Print the bounds using TYPE
448 rather than its TYPE_TARGET_TYPE.
449
450 2018-09-08 Joel Brobecker <brobecker@adacore.com>
451
452 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
453 call to ada_to_fixed_value_create.
454
455 2018-09-08 Jerome Guitton <guitton@adacore.com>
456
457 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
458
459 2018-09-08 Joel Brobecker <brobecker@adacore.com>
460
461 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
462 by calls to error.
463
464 2018-09-08 Joel Brobecker <brobecker@adacore.com>
465
466 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
467 Move update of loop variable "fi".
468
469 2018-09-08 Joel Brobecker <brobecker@adacore.com>
470
471 * ada-lang.c (value_assign_to_component): In the case of
472 big-endian targets, extract the bits of the given VAL
473 using an src_offset of zero if container is not a scalar.
474
475 2018-09-06 Simon Ser <contact@emersion.fr>
476
477 PR gdb/23105
478 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
479 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
480 * fbsd-tdep.c (fbsd_make_note_desc): New.
481 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
482 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
483 * target.h (enum target_object) Add FreeBSD-specific
484 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
485
486 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
487
488 * compile/compile-c.h (generate_c_for_variable_locations):
489 Change reference to pointer.
490 * compile/compile-c-support.c (compile_program) <compute>:
491 Likewise.
492 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
493 (generate_c_for_for_one_variable): Likewise
494 (generate_c_for_variable_locations): Likewise
495 * compile/compile-c-types.c (compile_c_instance::convert_type):
496 Likewise
497 * compile/compile-cplus-symbols.c (convert_one_symbol):
498 std::move the scope passed to enter_scope.
499 * compile/compile-cplus-types.c
500 (compile_cplus_instance::enter_scope): Make parameter
501 rvalue-reference.
502 (compile_cplus_instance::new_scope): Change reference to
503 pointer.
504 (compile_cplus_instance::convert_type): Likewise
505 (compile_cplus_convert_typedef): std::move the scope passed to
506 enter_scope.
507 (compile_cplus_convert_struct_or_union): Likewise.
508 (compile_cplus_convert_enum): Likewise.
509 (compile_cplus_convert_namespace): Likewise.
510 * compile/compile-cplus.h (compile_cplus_instance)
511 <enter_scope>: Make parameter rvalue-reference.
512 * compile/compile-internal.h (compile_instance)
513 <get_cached_type>: Likewise
514 * compile/compile-loc2c.c (push): Likewise
515 (pushf): Likewise
516 (unary): Likewise
517 (binary): Likewise
518 (print_label): Likewise
519 (pushf_register_address): Likewise
520 (pushf_register): Likewise
521 (do_compile_dwarf_expr_to_c): Likewise
522 (compile_dwarf_expr_to_c): Likewise
523 (compile_dwarf_bounds_to_c): Likewise
524 * compile/compile.c (compile_instance::get_cached_type):
525 Likewise
526 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
527 (compile_dwarf_bounds_to_c): Likewise
528 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
529 (dwarf2_compile_property_to_c): Likewise
530 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
531 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
532 Likewise
533
534 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
535
536 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
537 * tui/tui-data.c (init_content_element): Don't initialize it.
538
539 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
540
541 * tui/tui-data.h (struct tui_win_info)
542 <detail::opaque>: Remove.
543 * tui/tui-data.c (init_win_info): Remove assignment.
544
545 2018-09-05 Tom Tromey <tom@tromey.com>
546
547 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
548 -Wformat-nonliteral.
549 * target-float.c (host_float_ops<T>::to_string)
550 (host_float_ops<T>::from_string): Use
551 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
552 * configure: Rebuild.
553
554 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
555
556 * printcmd.c (printf_c_string): Use
557 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
558 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
559
560 2018-09-05 Tom Tromey <tom@tromey.com>
561
562 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
563
564 2018-09-05 Tom de Vries <tdevries@suse.de>
565
566 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
567 with resolve_abstract_p == true.
568 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
569 defaulting to false. Propagate resolve_abstract_p to
570 dwarf2_fetch_die_loc_sect_off.
571 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
572 parameter, defaulting to false.
573 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
574 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
575 parameter.
576 * dwarf2read.h (struct die_info): Forward-declare.
577 (die_info_ptr): New typedef.
578 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
579
580 2018-09-05 Joel Brobecker <brobecker@adacore.com>
581
582 GDB 8.2 released.
583
584 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
585 Pedro Alves <palves@redhat.com>
586
587 * gnulib/Makefile.in (aclocal_m4_deps): Move to
588 "aclocal-m4-deps.mk". Include file here.
589 $(srcdir)/aclocal.m4: Add "configure.ac".
590 * gnulib/aclocal-m4-deps.mk: New file.
591 * gnulib/update-gnulib.sh: Automatically update
592 "aclocal-m4-deps.mk".
593
594 2018-09-04 Tom Tromey <tom@tromey.com>
595
596 * configure: Rebuild.
597 * configure.ac: Remove multi-ice code.
598
599 2018-09-04 Tom Tromey <tom@tromey.com>
600
601 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
602 (ada-exp.o): Update.
603
604 2018-09-04 Tom Tromey <tom@tromey.com>
605
606 * Makefile.in (printcmd.o, target-float.o): Remove.
607 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
608
609 2018-09-04 Tom Tromey <tom@tromey.com>
610
611 * gnulib/Makefile.in: Remove obsolete comment.
612 * Makefile.in: Remove obsolete comment.
613
614 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
615
616 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
617 line with '+'.
618
619 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
620
621 * riscv-tdep.c: Add 'prologue-value.h' include.
622 (struct riscv_unwind_cache): New struct.
623 (riscv_debug_unwinder): New global.
624 (riscv_scan_prologue): Update arguments, capture register details
625 from prologue scan.
626 (riscv_skip_prologue): Reformat arguments line, move end of
627 prologue calculation into riscv_scan_prologue.
628 (riscv_frame_cache): Update return type, create
629 riscv_unwind_cache, scan the prologue, and fill in remaining cache
630 details.
631 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
632 (riscv_frame_prev_register): Use the trad_frame within the
633 riscv_unwind_cache.
634 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
635 flag.
636
637 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
638
639 * trad-frame.h (trad_frame_set_realreg): Declare.
640 (trad_frame_set_addr): Declare.
641 * trad-frame.c (trad_frame_set_realreg): Define new function.
642 (trad_frame_set_addr): Define new function.
643 (trad_frame_set_reg_realreg): Use new function.
644 (trad_frame_set_reg_addr): Use new function.
645
646 2018-09-01 Keith Seitz <keiths@redhat.com>
647
648 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
649 pulongest instead of "%lld".
650 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
651 ATTRIBUTE_UNUSED.
652
653 2018-08-31 Tom Tromey <tom@tromey.com>
654
655 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
656 variant part type.
657
658 2018-08-31 Pedro Alves <palves@redhat.com>
659
660 * gdbarch.h: Regenerate.
661
662 2018-08-31 Pedro Alves <palves@redhat.com>
663
664 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
665 * target.h (Hardware watchpoint interfaces): Describe
666 continuable/steppable/non-steppable watchpoints.
667 * gdbarch.h, gdbarch.c: Regenerate.
668
669 2018-08-31 Pedro Alves <palves@redhat.com>
670
671 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
672 Delete.
673 * s390-linux-nat.c
674 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
675 * target.h (target_ops::have_continuable_watchpoint): Delete.
676 (target_have_continuable_watchpoint): Delete.
677 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
678 * target-delegates.c: Regenerate.
679
680 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
681
682 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
683 the files present in "gnulib/import/m4/".
684
685 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
688 c.sw, c.swsp, and c.sdsp.
689
690 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
691
692 * riscv-tdep.c (struct riscv_inferior_data): Delete.
693 (riscv_read_misa_reg): Don't cache value read into inferior data.
694 (riscv_new_inferior_data): Delete.
695 (riscv_inferior_data_cleanup): Delete.
696 (riscv_inferior_data): Delete.
697 (riscv_invalidate_inferior_data): Delete.
698 (_initialize_riscv_tdep): Remove initialisation of inferior data.
699
700 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
701
702 * compile/compile-cplus-types.c
703 (compile_cplus_instance::leave_scope): Take the address of scope
704 object.
705 (compile_cplus_instance::convert_qualified_base): Compare quals
706 to 0.
707
708 2018-08-30 Keith Seitz <keiths@redhat.com>
709
710 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
711 Use "%s" and host_address_to_string instead of "%p" in printf.
712
713 2018-08-29 Keith Seitz <keiths@redhat.com>
714
715 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
716 and compile-cplus-types.c.
717 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
718 * c-lang.c (cplus_language_defn): Set C++ compile functions.
719 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
720 Declare.
721 * compile/compile-c-support.c: Include compile-cplus.h.
722 (load_libcompile): Templatize.
723 (get_compile_context): "New" function.
724 (c_get_compile_context): Use get_compile_context.
725 (cplus_get_compile_context): New function.
726 (cplus_push_user_expression, cplus_pop_user_expression)
727 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
728 (cplus_compute_program): Define new structs/functions.
729 * compile/compile-cplus-symmbols.c: New file.
730 * compile/compile-cplus-types.c: New file.
731 * compile/compile-cplus.h: New file.
732 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
733 Declare.
734 * compile/compile-object-load.c (get_out_value_type): Use
735 strncmp_iw when comparing symbol names.
736 (compile_object_load): Add mst_bss and mst_data.
737 * compile/compile.c (_initialize_compile): Remove
738 -Wno-implicit-function-declaration from `compile_args'.
739 * compile/gcc-cp-plugin.h: New file.
740 * NEWS: Mention C++ compile support and new debug options.
741
742 2018-08-29 Keith Seitz <keiths@redhat.com>
743
744 * linespec.c (collect_info::add_symbol): Make virtual.
745 (struct symbol_searcher_collect_info): New struct.
746 (symbol_searcher::find_all_symbols): New method.
747 * symtab.h (class symbol_searcher): New class.
748
749 2018-08-29 Keith Seitz <keiths@redhat.com>
750
751 * linespec.c (struct linespec) <function_symbols, label_symbols>:
752 Change to vector of block_symbol. Update all users.
753 (struct collect_info) <symbols>: Likewise.
754 (collect_info::add_symbol): Take block_symbol as argument.
755 Update all callers.
756 (decode_compound_collector) <m_symbols>: Change type to vector
757 of block_symbol. Update all users.
758 (decode_compound_collector::operator ()): Change parameter type
759 to block_symbol.
760 (find_method, find_function_symbols, find_linespec_symbols)
761 (find_label_symbols_in_block, find_label_symbols): Change symbol
762 vectors to block_symbol vectors.
763 * symtab.h (symbol_found_callback_ftype): Change parameter type to
764 block_symbol.
765
766 2018-08-29 Keith Seitz <keiths@redhat.com>
767
768 * linespec.c (symbolp): Remove typedef and VEC definitions.
769 (bound_minimal_symbol_d): Likewise.
770
771 2018-08-29 Keith Seitz <keiths@redhat.com>
772
773 * linespec.c (decode_compound_collector::decode_compound_collector):
774 Remove initialization for `m_symtabs'.
775 (decode_compound_collector::release_symbols): Change return type
776 to std::vector. Update all callers.
777 (class decode_compound_collector) <m_symbols>: Change type to
778 std::vector.
779 (lookup_prefix_sym): Change return type to std::vector. Update all
780 callers.
781 (compare_symbols): Remove.
782 (std_compare_symbols): Rename to `compare_symbols'.
783 (find_method): Change `sym_classes' parameter to std::vector.
784 Update all callers. Use std::sort to sort sym_classes.
785 (find_linespec_symbols): Remove cleanup.
786
787 2018-08-29 Keith Seitz <keiths@redhat.com>
788
789 * linespec.c (struct linespec) <minimal_symbols>: Change type to
790 std::vector. Update all users.
791 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
792 (struct collect_info) <minimal_symbols>: Likewise.
793 (compare_msymbols): Return bool. Change parameters to const
794 bound_minimal_symbol references.
795 (find_method, find_function_symbols, find_linespec_symbols): Change
796 `minsyms' parameter to std::vector. Update all callers.
797
798 2018-08-29 Keith Seitz <keiths@redhat.com>
799
800 * linespec.c (struct linespec) <label_symbols>: Change type to
801 std::vector. Update all users.
802 (find_label_symbols_in_block): Change `result' parameter to
803 std::vector. Update all callers.
804 (find_label_symbols): Return std::vector. Update all callers.
805
806 2018-08-29 Keith Seitz <keiths@redhat.com>
807
808 * linespec.c (struct linespec) <function_symbols>: Change type to
809 std::vector. Update all users.
810 (struct collect_info) <function_symbols>: Likewise.
811 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
812 (std_compare_symbols): New function.
813 (find_method, find_function_symbols, find_linespec_symbols)
814 (find_label_symbols_in_block): Change `symbols' parameter to
815 std::vector. Update all callers.
816 (find_label_symbols): Likewise for `function_symbols' and
817 `label_funcs_ret'.
818
819 2018-08-29 Keith Seitz <keiths@redhat.com>
820
821 * linespec.c (symtab_vector_up): Define.
822 (struct linespec) <file_symtabs>: Change type to std::vector *.
823 Update all uses.
824 (struct collect_info) <file_symtabs>: Likewise.
825 (collect_symtabs_from_filename): Return symtab_vector_up.
826 Update all callers.
827 (decode_objc): Remove cleanup.
828 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
829 (symtab_collector::release_symtabs): Return symtab_vector_up.
830 Update all callers.
831 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
832 Update all users.
833 (collect_symtabs_from_filename, symtabs_from_filename): Return
834 symtab_vector_up. Update all callers.
835
836 2018-08-29 Tom Tromey <tom@tromey.com>
837
838 * csky-tdep.c (csky_analyze_prologue): Use
839 core_addr_to_string_nz.
840
841 2018-08-29 Tom Tromey <tom@tromey.com>
842
843 * windows-nat.c (struct xlate_exception) <them>: Change type to
844 DWORD.
845 (xlate): Fix formatting. Remove last entry.
846 (struct xlate_exception, xlate): Comment out.
847 (windows_nat_target::resume): Use ranged for.
848
849 2018-08-29 Jim Wilson <jimw@sifive.com>
850
851 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
852 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
853 of NT_PRFPREG.
854 (riscv_linux_nat_target::store_registers): Likewise.
855
856 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
857
858 PR gdb/23555
859 PR gdb/23558
860 * gnulib/aclocal.m4: Regenerate.
861 * gnulib/config.in: Regenerate.
862 * gnulib/configure: Regenerate.
863 * gnulib/import/Makefile.am: Update.
864 * gnulib/import/Makefile.in: Update.
865 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
866 * gnulib/import/_Noreturn.h: ... this.
867 * gnulib/import/alloca.in.h: Update.
868 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
869 * gnulib/import/arg-nonnull.h: ... this.
870 * gnulib/import/assure.h: Update.
871 * gnulib/import/at-func.c: Update.
872 * gnulib/import/basename-lgpl.c: Update.
873 * gnulib/import/extra/snippet/c++defs.h: Rename to...
874 * gnulib/import/c++defs.h: ... this.
875 * gnulib/import/canonicalize-lgpl.c: Update.
876 * gnulib/import/cdefs.h: Update.
877 * gnulib/import/chdir-long.c: Update.
878 * gnulib/import/chdir-long.h: Update.
879 * gnulib/import/cloexec.c: Update.
880 * gnulib/import/cloexec.h: Update.
881 * gnulib/import/close.c: Update.
882 * gnulib/import/closedir.c: Update.
883 * gnulib/import/config.charset: Update.
884 * gnulib/import/dirent-private.h: Update.
885 * gnulib/import/dirent.in.h: Update.
886 * gnulib/import/dirfd.c: Update.
887 * gnulib/import/dirname-lgpl.c: Update.
888 * gnulib/import/dirname.h: Update.
889 * gnulib/import/dosname.h: Update.
890 * gnulib/import/dup-safer-flag.c: Update.
891 * gnulib/import/dup-safer.c: Update.
892 * gnulib/import/dup.c: Update.
893 * gnulib/import/dup2.c: Update.
894 * gnulib/import/errno.in.h: Update.
895 * gnulib/import/error.c: Update.
896 * gnulib/import/error.h: Update.
897 * gnulib/import/exitfail.c: Update.
898 * gnulib/import/exitfail.h: Update.
899 * gnulib/import/extra/update-copyright: Update.
900 * gnulib/import/fchdir.c: Update.
901 * gnulib/import/fcntl.c: Update.
902 * gnulib/import/fcntl.in.h: Update.
903 * gnulib/import/fd-hook.c: Update.
904 * gnulib/import/fd-hook.h: Update.
905 * gnulib/import/fd-safer-flag.c: Update.
906 * gnulib/import/fd-safer.c: Update.
907 * gnulib/import/fdopendir.c: Update.
908 * gnulib/import/filename.h: Update.
909 * gnulib/import/filenamecat-lgpl.c: Update.
910 * gnulib/import/filenamecat.h: Update.
911 * gnulib/import/flexmember.h: Update.
912 * gnulib/import/float+.h: Update.
913 * gnulib/import/float.c: Update.
914 * gnulib/import/float.in.h: Update.
915 * gnulib/import/fnmatch.c: Update.
916 * gnulib/import/fnmatch.in.h: Update.
917 * gnulib/import/fnmatch_loop.c: Update.
918 * gnulib/import/fpucw.h: Update.
919 * gnulib/import/frexp.c: Update.
920 * gnulib/import/frexpl.c: Update.
921 * gnulib/import/fstat.c: Update.
922 * gnulib/import/fstatat.c: Update.
923 * gnulib/import/getcwd-lgpl.c: Update.
924 * gnulib/import/getcwd.c: Update.
925 * gnulib/import/getdtablesize.c: Update.
926 * gnulib/import/getlogin_r.c: Update.
927 * gnulib/import/getprogname.c: Update.
928 * gnulib/import/getprogname.h: Update.
929 * gnulib/import/gettext.h: Update.
930 * gnulib/import/gettimeofday.c: Update.
931 * gnulib/import/glob-libc.h: Update.
932 * gnulib/import/glob.c: Update.
933 * gnulib/import/glob.in.h: Update.
934 * gnulib/import/glob_internal.h: Update.
935 * gnulib/import/glob_pattern_p.c: Update.
936 * gnulib/import/globfree.c: Update.
937 * gnulib/import/hard-locale.c: Update.
938 * gnulib/import/hard-locale.h: Update.
939 * gnulib/import/intprops.h: Update.
940 * gnulib/import/inttypes.in.h: Update.
941 * gnulib/import/isnan.c: Update.
942 * gnulib/import/isnand-nolibm.h: Update.
943 * gnulib/import/isnand.c: Update.
944 * gnulib/import/isnanl-nolibm.h: Update.
945 * gnulib/import/isnanl.c: Update.
946 * gnulib/import/itold.c: Update.
947 * gnulib/import/libc-config.h: Update.
948 * gnulib/import/limits.in.h: Update.
949 * gnulib/import/localcharset.c: Update.
950 * gnulib/import/localcharset.h: Update.
951 * gnulib/import/localtime-buffer.c: Update.
952 * gnulib/import/localtime-buffer.h: Update.
953 * gnulib/import/lstat.c: Update.
954 * gnulib/import/m4/00gnulib.m4: Update.
955 * gnulib/import/m4/__inline.m4: Update.
956 * gnulib/import/m4/absolute-header.m4: Update.
957 * gnulib/import/m4/alloca.m4: Update.
958 * gnulib/import/m4/builtin-expect.m4: Update.
959 * gnulib/import/m4/canonicalize.m4: Update.
960 * gnulib/import/m4/chdir-long.m4: Update.
961 * gnulib/import/m4/close.m4: Update.
962 * gnulib/import/m4/closedir.m4: Update.
963 * gnulib/import/m4/configmake.m4: Update.
964 * gnulib/import/m4/d-ino.m4: Update.
965 * gnulib/import/m4/d-type.m4: Update.
966 * gnulib/import/m4/dirent_h.m4: Update.
967 * gnulib/import/m4/dirfd.m4: Update.
968 * gnulib/import/m4/dirname.m4: Update.
969 * gnulib/import/m4/double-slash-root.m4: Update.
970 * gnulib/import/m4/dup.m4: Update.
971 * gnulib/import/m4/dup2.m4: Update.
972 * gnulib/import/m4/eealloc.m4: Update.
973 * gnulib/import/m4/environ.m4: Update.
974 * gnulib/import/m4/errno_h.m4: Update.
975 * gnulib/import/m4/error.m4: Update.
976 * gnulib/import/m4/exponentd.m4: Update.
977 * gnulib/import/m4/exponentl.m4: Update.
978 * gnulib/import/m4/extensions.m4: Update.
979 * gnulib/import/m4/extern-inline.m4: Update.
980 * gnulib/import/m4/fchdir.m4: Update.
981 * gnulib/import/m4/fcntl-o.m4: Update.
982 * gnulib/import/m4/fcntl.m4: Update.
983 * gnulib/import/m4/fcntl_h.m4: Update.
984 * gnulib/import/m4/fdopendir.m4: Update.
985 * gnulib/import/m4/filenamecat.m4: Update.
986 * gnulib/import/m4/flexmember.m4: Update.
987 * gnulib/import/m4/float_h.m4: Update.
988 * gnulib/import/m4/fnmatch.m4: Update.
989 * gnulib/import/m4/fnmatch_h.m4: Update.
990 * gnulib/import/m4/fpieee.m4: Update.
991 * gnulib/import/m4/frexp.m4: Update.
992 * gnulib/import/m4/frexpl.m4: Update.
993 * gnulib/import/m4/fstat.m4: Update.
994 * gnulib/import/m4/fstatat.m4: Update.
995 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
996 * gnulib/import/m4/getcwd-path-max.m4: Update.
997 * gnulib/import/m4/getcwd.m4: Update.
998 * gnulib/import/m4/getdtablesize.m4: Update.
999 * gnulib/import/m4/getlogin.m4: Update.
1000 * gnulib/import/m4/getlogin_r.m4: Update.
1001 * gnulib/import/m4/getpagesize.m4: Update.
1002 * gnulib/import/m4/getprogname.m4: Update.
1003 * gnulib/import/m4/gettimeofday.m4: Update.
1004 * gnulib/import/m4/glibc21.m4: Update.
1005 * gnulib/import/m4/glob.m4: Update.
1006 * gnulib/import/m4/glob_h.m4: Update.
1007 * gnulib/import/m4/gnulib-cache.m4: Update.
1008 * gnulib/import/m4/gnulib-common.m4: Update.
1009 * gnulib/import/m4/gnulib-comp.m4: Update.
1010 * gnulib/import/m4/gnulib-tool.m4: Update.
1011 * gnulib/import/m4/hard-locale.m4: Update.
1012 * gnulib/import/m4/include_next.m4: Update.
1013 * gnulib/import/m4/inttypes-pri.m4: Update.
1014 * gnulib/import/m4/inttypes.m4: Update.
1015 * gnulib/import/m4/isnand.m4: Update.
1016 * gnulib/import/m4/isnanl.m4: Update.
1017 * gnulib/import/m4/largefile.m4: Update.
1018 * gnulib/import/m4/limits-h.m4: Update.
1019 * gnulib/import/m4/localcharset.m4: Update.
1020 * gnulib/import/m4/locale-fr.m4: Update.
1021 * gnulib/import/m4/locale-ja.m4: Update.
1022 * gnulib/import/m4/locale-zh.m4: Update.
1023 * gnulib/import/m4/localtime-buffer.m4: Update.
1024 * gnulib/import/m4/longlong.m4: Update.
1025 * gnulib/import/m4/lstat.m4: Update.
1026 * gnulib/import/m4/malloc.m4: Update.
1027 * gnulib/import/m4/malloca.m4: Update.
1028 * gnulib/import/m4/math_h.m4: Update.
1029 * gnulib/import/m4/mbrtowc.m4: Update.
1030 * gnulib/import/m4/mbsinit.m4: Update.
1031 * gnulib/import/m4/mbsrtowcs.m4: Update.
1032 * gnulib/import/m4/mbstate_t.m4: Update.
1033 * gnulib/import/m4/memchr.m4: Update.
1034 * gnulib/import/m4/memmem.m4: Update.
1035 * gnulib/import/m4/mempcpy.m4: Update.
1036 * gnulib/import/m4/memrchr.m4: Update.
1037 * gnulib/import/m4/mkdir.m4: Update.
1038 * gnulib/import/m4/mkstemp.m4: Update.
1039 * gnulib/import/m4/mmap-anon.m4: Update.
1040 * gnulib/import/m4/mode_t.m4: Update.
1041 * gnulib/import/m4/msvc-inval.m4: Update.
1042 * gnulib/import/m4/msvc-nothrow.m4: Update.
1043 * gnulib/import/m4/multiarch.m4: Update.
1044 * gnulib/import/m4/nocrash.m4: Update.
1045 * gnulib/import/m4/off_t.m4: Update.
1046 * gnulib/import/m4/onceonly.m4: Update.
1047 * gnulib/import/m4/open-cloexec.m4: Update.
1048 * gnulib/import/m4/open.m4: Update.
1049 * gnulib/import/m4/openat.m4: Update.
1050 * gnulib/import/m4/opendir.m4: Update.
1051 * gnulib/import/m4/pathmax.m4: Update.
1052 * gnulib/import/m4/rawmemchr.m4: Update.
1053 * gnulib/import/m4/readdir.m4: Update.
1054 * gnulib/import/m4/readlink.m4: Update.
1055 * gnulib/import/m4/realloc.m4: Update.
1056 * gnulib/import/m4/rename.m4: Update.
1057 * gnulib/import/m4/rewinddir.m4: Update.
1058 * gnulib/import/m4/rmdir.m4: Update.
1059 * gnulib/import/m4/save-cwd.m4: Update.
1060 * gnulib/import/m4/secure_getenv.m4: Update.
1061 * gnulib/import/m4/setenv.m4: Update.
1062 * gnulib/import/m4/signal_h.m4: Update.
1063 * gnulib/import/m4/ssize_t.m4: Update.
1064 * gnulib/import/m4/stat-time.m4: Update.
1065 * gnulib/import/m4/stat.m4: Update.
1066 * gnulib/import/m4/std-gnu11.m4: Update.
1067 * gnulib/import/m4/stdbool.m4: Update.
1068 * gnulib/import/m4/stddef_h.m4: Update.
1069 * gnulib/import/m4/stdint.m4: Update.
1070 * gnulib/import/m4/stdio_h.m4: Update.
1071 * gnulib/import/m4/stdlib_h.m4: Update.
1072 * gnulib/import/m4/strchrnul.m4: Update.
1073 * gnulib/import/m4/strdup.m4: Update.
1074 * gnulib/import/m4/strerror.m4: Update.
1075 * gnulib/import/m4/string_h.m4: Update.
1076 * gnulib/import/m4/strstr.m4: Update.
1077 * gnulib/import/m4/strtok_r.m4: Update.
1078 * gnulib/import/m4/sys_socket_h.m4: Update.
1079 * gnulib/import/m4/sys_stat_h.m4: Update.
1080 * gnulib/import/m4/sys_time_h.m4: Update.
1081 * gnulib/import/m4/sys_types_h.m4: Update.
1082 * gnulib/import/m4/tempname.m4: Update.
1083 * gnulib/import/m4/time_h.m4: Update.
1084 * gnulib/import/m4/unistd-safer.m4: Update.
1085 * gnulib/import/m4/unistd_h.m4: Update.
1086 * gnulib/import/m4/warn-on-use.m4: Update.
1087 * gnulib/import/m4/wchar_h.m4: Update.
1088 * gnulib/import/m4/wchar_t.m4: Update.
1089 * gnulib/import/m4/wctype_h.m4: Update.
1090 * gnulib/import/m4/wint_t.m4: Update.
1091 * gnulib/import/malloc.c: Update.
1092 * gnulib/import/malloc/scratch_buffer.h: Update.
1093 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1094 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1095 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1096 * gnulib/import/malloca.c: Update.
1097 * gnulib/import/malloca.h: Update.
1098 * gnulib/import/malloca.valgrind: Update.
1099 * gnulib/import/math.in.h: Update.
1100 * gnulib/import/mbrtowc.c: Update.
1101 * gnulib/import/mbsinit.c: Update.
1102 * gnulib/import/mbsrtowcs-impl.h: Update.
1103 * gnulib/import/mbsrtowcs-state.c: Update.
1104 * gnulib/import/mbsrtowcs.c: Update.
1105 * gnulib/import/memchr.c: Update.
1106 * gnulib/import/memmem.c: Update.
1107 * gnulib/import/mempcpy.c: Update.
1108 * gnulib/import/memrchr.c: Update.
1109 * gnulib/import/mkdir.c: Update.
1110 * gnulib/import/mkstemp.c: Update.
1111 * gnulib/import/msvc-inval.c: Update.
1112 * gnulib/import/msvc-inval.h: Update.
1113 * gnulib/import/msvc-nothrow.c: Update.
1114 * gnulib/import/msvc-nothrow.h: Update.
1115 * gnulib/import/open.c: Update.
1116 * gnulib/import/openat-die.c: Update.
1117 * gnulib/import/openat-priv.h: Update.
1118 * gnulib/import/openat-proc.c: Update.
1119 * gnulib/import/openat.c: Update.
1120 * gnulib/import/openat.h: Update.
1121 * gnulib/import/opendir.c: Update.
1122 * gnulib/import/pathmax.h: Update.
1123 * gnulib/import/pipe-safer.c: Update.
1124 * gnulib/import/rawmemchr.c: Update.
1125 * gnulib/import/readdir.c: Update.
1126 * gnulib/import/readlink.c: Update.
1127 * gnulib/import/realloc.c: Update.
1128 * gnulib/import/ref-add.sin: Update.
1129 * gnulib/import/ref-del.sin: Update.
1130 * gnulib/import/rename.c: Update.
1131 * gnulib/import/rewinddir.c: Update.
1132 * gnulib/import/rmdir.c: Update.
1133 * gnulib/import/same-inode.h: Update.
1134 * gnulib/import/save-cwd.c: Update.
1135 * gnulib/import/save-cwd.h: Update.
1136 * gnulib/import/scratch_buffer.h: Update.
1137 * gnulib/import/secure_getenv.c: Update.
1138 * gnulib/import/setenv.c: Update.
1139 * gnulib/import/signal.in.h: Update.
1140 * gnulib/import/stat-time.c: Update.
1141 * gnulib/import/stat-time.h: Update.
1142 * gnulib/import/stat-w32.c: Update.
1143 * gnulib/import/stat-w32.h: Update.
1144 * gnulib/import/stat.c: Update.
1145 * gnulib/import/stdbool.in.h: Update.
1146 * gnulib/import/stddef.in.h: Update.
1147 * gnulib/import/stdint.in.h: Update.
1148 * gnulib/import/stdio.in.h: Update.
1149 * gnulib/import/stdlib.in.h: Update.
1150 * gnulib/import/str-two-way.h: Update.
1151 * gnulib/import/strchrnul.c: Update.
1152 * gnulib/import/strdup.c: Update.
1153 * gnulib/import/streq.h: Update.
1154 * gnulib/import/strerror-override.c: Update.
1155 * gnulib/import/strerror-override.h: Update.
1156 * gnulib/import/strerror.c: Update.
1157 * gnulib/import/string.in.h: Update.
1158 * gnulib/import/stripslash.c: Update.
1159 * gnulib/import/strnlen1.c: Update.
1160 * gnulib/import/strnlen1.h: Update.
1161 * gnulib/import/strstr.c: Update.
1162 * gnulib/import/strtok_r.c: Update.
1163 * gnulib/import/sys_stat.in.h: Update.
1164 * gnulib/import/sys_time.in.h: Update.
1165 * gnulib/import/sys_types.in.h: Update.
1166 * gnulib/import/tempname.c: Update.
1167 * gnulib/import/tempname.h: Update.
1168 * gnulib/import/time.in.h: Update.
1169 * gnulib/import/unistd--.h: Update.
1170 * gnulib/import/unistd-safer.h: Update.
1171 * gnulib/import/unistd.in.h: Update.
1172 * gnulib/import/unsetenv.c: Update.
1173 * gnulib/import/verify.h: Update.
1174 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1175 * gnulib/import/wchar.in.h: Update.
1176 * gnulib/import/wctype.in.h: Update.
1177 * gnulib/import/xalloc-oversized.h: Update.
1178 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1179 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1180
1181 2018-08-16 Gary Benson <gbenson@redhat.com>
1182
1183 PR gdb/13000:
1184 * gdb/main.c (captured_main_1): Exit with nonzero status
1185 in batch mode if the last command to be executed failed.
1186 * NEWS: Mention the above.
1187
1188 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1189
1190 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1191 end of warning message.
1192
1193 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1194
1195 PR gdb/22943:
1196 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1197 (aarch64_extract_return_value): Use
1198 aapcs_is_vfp_call_or_return_candidate.
1199 (aarch64_return_in_memory): Likewise.
1200 (aarch64_store_return_value): Likewise.
1201
1202 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1203
1204 * aarch64-tdep.c
1205 (aapcs_is_vfp_call_or_return_candidate): Make static
1206 (pass_in_v_or_stack): Remove function.
1207 (pass_in_v_vfp_candidate): New function.
1208 (aarch64_push_dummy_call): Check for float register candidates.
1209
1210 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1211
1212 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1213 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1214 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1215
1216 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1217
1218 PR build/23399
1219 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1220 (struct ipa_sym_addresses): Rename to...
1221 (struct ipa_sym_addresses_common): ... this.
1222 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1223
1224 2018-08-28 Tom Tromey <tom@tromey.com>
1225
1226 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1227 (token_fifo): Now a std::vector.
1228 (yylex, c_parse): Update.
1229 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1230 (token_fifo): Now a std::vector.
1231 (yylex, d_parse): Update.
1232 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1233 (token_fifo): Now a std::vector.
1234 (yylex, go_parse): Update.
1235
1236 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1237
1238 * parser-defs.h (struct type_stack) <elements>: Change type to
1239 std::vector<union type_stack_elt>.
1240 <depth, size>: Remove.
1241 * parse.c (parse_exp_in_context_1): Adjust.
1242 (type_stack_reserve): Remove.
1243 (check_type_stack_depth): Remove.
1244 (insert_into_type_stack): Adjust to std::vector.
1245 (insert_type): Likewise.
1246 (push_type): Likewise.
1247 (push_type_int): Likewise.
1248 (insert_type_address_space): Likewise.
1249 (pop_type): Likewise.
1250 (pop_type_int): Likewise.
1251 (pop_typelist): Likewise.
1252 (pop_type_stack): Likewise.
1253 (append_type_stack): Likewise.
1254 (push_type_stack): Likewise.
1255 (get_type_stack): Likewise.
1256 (type_stack_cleanup): Likewise.
1257 (push_typelist): Likewise.
1258 (follow_types): Likewise.
1259 (_initialize_parse): Likewise.
1260
1261 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1262
1263 * NEWS: Mention csky target.
1264
1265 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1266 Hafiz Abid Qadeer <abidh@codesourcery.com>
1267 Don Breazeal <donb@codesourcery.com>
1268
1269 * csky-linux-tdep.c: New file.
1270 * csky-tdep.c: Likewise.
1271 * csky-tdep.h: Likewise.
1272 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1273 csky-tdep.o.
1274 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1275 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1276 * configure.tgt: Add csky support.
1277
1278 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1279
1280 * python/py-framefilter.c (py_print_frame): Print frame architecture
1281 when printing on an MI output.
1282
1283 2018-08-27 Tom Tromey <tom@tromey.com>
1284
1285 PR build/23087:
1286 * configure: Rebuild.
1287 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1288
1289 2018-08-27 Tom Tromey <tom@tromey.com>
1290
1291 * aarch64-linux-tdep.c
1292 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1293 casts to int.
1294
1295 2018-08-27 Tom Tromey <tom@tromey.com>
1296
1297 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1298 unsigned.
1299 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1300 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1301 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1302 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1303 unsigned.
1304
1305 2018-08-27 Tom Tromey <tom@tromey.com>
1306
1307 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1308 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1309
1310 2018-08-27 Tom Tromey <tom@tromey.com>
1311
1312 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1313 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1314 ULONGEST_MAX.
1315 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1316 ULONGEST_MAX.
1317 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1318 ULONGEST_MAX.
1319 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1320 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1321 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1322 ULONGEST_MAX.
1323 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1324 (ppc64_linux_sigaction_tramp_frame)
1325 (ppc32_linux_sighandler_tramp_frame)
1326 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1327 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1328 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1329 * mn10300-linux-tdep.c (am33_linux_sigframe)
1330 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1331 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1332 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1333 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1334 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1335 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1336 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1337 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1338 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1339 * microblaze-linux-tdep.c
1340 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1341 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1342 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1343 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1344 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1345 * common/common-types.h (ULONGEST_MAX): New define.
1346 (CORE_ADDR_MAX): Fix formatting.
1347 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1348 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1349 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1350 (arm_linux_rt_sigreturn_tramp_frame)
1351 (arm_eabi_linux_sigreturn_tramp_frame)
1352 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1353 (thumb2_eabi_linux_sigreturn_tramp_frame)
1354 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1355 (arm_linux_restart_syscall_tramp_frame)
1356 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1357 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1358 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1359 ULONGEST_MAX.
1360 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1361
1362 2018-08-27 Tom Tromey <tom@tromey.com>
1363
1364 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1365 CORE_ADDR_MAX.
1366 * mips-tdep.c (mips_deal_with_atomic_sequence)
1367 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1368 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1369 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1370 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1371 CORE_ADDR_MAX.
1372 * aarch64-tdep.c (aarch64_software_single_step): Use
1373 CORE_ADDR_MAX.
1374
1375 2018-08-27 Tom Tromey <tom@tromey.com>
1376
1377 * linespec.c (complete_linespec_component): Add cast to "char".
1378 * completer.c (completion_tracker::build_completion_result): Add
1379 cast to "char".
1380
1381 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1382
1383 * solist.h (struct solist, struct target_so_ops): Fix
1384 indentation.
1385
1386 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * ada-tasks.c (ada_task_info_s): Remove typedef.
1389 (DEF_VEC_O(ada_task_info_s)): Remove.
1390 (struct ada_tasks_inferior_data): Initialize fields.
1391 <task_list>: Make an std::vector.
1392 (get_ada_tasks_inferior_data): Allocate with new.
1393 (ada_get_task_number): Adjust.
1394 (get_task_number_from_id): Likewise.
1395 (valid_task_id): Likewise.
1396 (ada_get_task_info_from_ptid): Likewise.
1397 (iterate_over_live_ada_tasks): Likewise.
1398 (add_ada_task): Likewise.
1399 (read_known_tasks): Likewise.
1400 (ada_build_task_list): Likewise.
1401 (print_ada_task_info): Likewise.
1402 (info_task): Likewise.
1403 (task_command_1): Likewise.
1404
1405 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1406
1407 * ada-lang.c (add_angle_brackets): Return std::string.
1408
1409 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1410
1411 * python/py-threadevent.c (py_get_event_thread): Initialize
1412 pythread.
1413
1414 2018-08-24 Pedro Alves <palves@redhat.com>
1415
1416 * python/py-bpevent.c (create_breakpoint_event_object): Use
1417 copy-initialization.
1418 * python/py-continueevent.c (emit_continue_event): Use
1419 copy-initialization.
1420 * python/py-exitedevent.c (create_exited_event_object): Return a
1421 gdbpy_ref<>.
1422 (emit_exited_event): Use copy-initialization.
1423 * python/py-inferior.c (python_new_inferior)
1424 (python_inferior_deleted, add_thread_object): Use
1425 copy-initialization.
1426 * python/py-infevents.c (create_inferior_call_event_object)
1427 (create_register_changed_event_object)
1428 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1429 (emit_inferior_call_event, emit_memory_changed_event)
1430 (emit_register_changed_event): Use copy-initialization.
1431 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1432 Return a gdbpy_ref<>.
1433 (emit_new_objfile_event): Use copy-initialization.
1434 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1435 (emit_clear_objfiles_event): Use copy-initialization.
1436 * python/py-signalevent.c (create_signal_event_object): Use
1437 copy-initialization.
1438 * python/py-threadevent.c (create_thread_event_object): Use
1439 copy-initialization.
1440
1441 2018-08-24 Pedro Alves <palves@redhat.com>
1442 Simon Marchi <simon.marchi@ericsson.com>
1443
1444 PR gdb/23379
1445 * python/py-continueevent.c: Include "gdbthread.h".
1446 (create_continue_event_object): Add intro comment. Add 'ptid'
1447 parameter. Use it to find thread to pass to
1448 create_thread_event_object.
1449 (emit_continue_event): Pass PTID down to
1450 create_continue_event_object.
1451 * python/py-event.h (py_get_event_thread): Declare.
1452 (create_thread_event_object): Remove default from 'thread'
1453 parameter.
1454 * python/py-stopevent.c (create_stop_event_object): Use
1455 py_get_event_thread.
1456 * python/py-threadevent.c (get_event_thread): Rename to ...
1457 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1458 and use it to find the thread.
1459 (create_thread_event_object): Assert that THREAD isn't null.
1460 Don't find the event thread here.
1461
1462 2018-08-23 Kevin Buettner <kevinb@redhat.com>
1463
1464 * block.h (blockrange, blockranges): New struct declarations.
1465 (struct block): Add new field named `ranges'.
1466 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1467 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1468 macros for accessing ranges in struct block.
1469 (make_blockranges): New declaration.
1470 block.c (make_blockranges): New function.
1471 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1472 for block.
1473 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1474 * blockframe.c (cache_pc_function_block): New static global.
1475 (clear_pc_function_cache): Clear cache_pc_function_block.
1476 (find_pc_partial_function): Move comment to symtab.h. Add
1477 support for non-contiguous blocks.
1478 * cli/cli-cmds.c (block.h): Include.
1479 (print_disassembly): Handle printing of non-contiguous blocks.
1480 (disassemble_current_function): Likewise.
1481 (disassemble_command): Likewise.
1482
1483 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1484 BLOCK_START.
1485 * blockframe.c (get_pc_function_start): Likewise.
1486 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1487 (gcc_symbol_address): Likewise.
1488 * compile/compile-object-run.c (compile_object_run): Likewise.
1489 * compile/compile.c (get_expr_block_and_pc): Likewise.
1490 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1491 (func_addr_to_tail_call_list): Likewise.
1492 * findvar.c (default_read_var_value): Likewise.
1493 * inline-frame.c (inline_frame_this_id): Likewise.
1494 (skip-inline_frames): Likewise.
1495 * infcmd.c (until_next_command): Likewise.
1496 * linespec.c (convert_linespec_to_sals): Likewise.
1497 * parse.c (parse_exp_in_context_1): Likewise.
1498 * printcmd.c (build_address_symbolic): likewise.
1499 (info_address_command): Likewise.
1500 symtab.c (find_function_start_sal): Likewise.
1501 (skip_prologue_sal): Likewise.
1502 (find_function_alias_target): Likewise.
1503 (find_gnu_ifunc): Likewise.
1504 * stack.c (find_frame_funname): Likewise.
1505 * symtab.c (fixup_symbol_section): Likewise.
1506 (find_function_start_sal): Likewise.
1507 (skip_prologue_sal): Likewsie.
1508 (find_function_alias_target): Likewise.
1509 (find_gnu_ifunc): Likewise.
1510 * tracepoint.c (info_scope_command): Likewise.
1511 * value.c (value_fn_field): Likewise.
1512
1513 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1514 in place of find_pc_partial_function.
1515 * blockframe.c (find_function_entry_range_from_pc): New function.
1516 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1517 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1518 for each range in a block.
1519
1520
1521 2018-08-23 Xavier Roirand <roirand@adacore.com>
1522
1523 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1524 incrementation.
1525
1526 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 * solib-svr4.c (read_program_headers_from_bfd): Return
1529 gdb::optional<gdb::byte_vector>.
1530 (svr4_exec_displacement): Adjust.
1531
1532 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1533
1534 * solib-svr4.c (read_program_header): Return
1535 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1536 (find_program_interpreter): Return
1537 gdb::optional<gdb::byte_vector>.
1538 (scan_dyntag_auxv): Adjust.
1539 (enable_break): Adjust.
1540 (svr4_exec_displacement): Adjust.
1541
1542 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1543
1544 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1545 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1546
1547 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1548
1549 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1550 string_vprintf.
1551 * guile/scm-utils.c (gdbscm_printf): Likewise.
1552 * serial.c (serial_printf): Likewise.
1553 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1554
1555 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1556
1557 * stack.c (print_frame): Print frame architecture when printing on
1558 an MI output.
1559 * NEWS: Mention new "arch" attribute in frame output.
1560
1561 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1562
1563 * arch/aarch64.h (aarch64_regnum): Update comment.
1564
1565 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1566
1567 * NEWS: Add SVE to 8.2 section.
1568
1569 2018-08-21 Pedro Alves <palves@redhat.com>
1570
1571 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1572 out from gdbscm_parse_function_args.
1573 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1574 gdbscm_parse_function_args_1.
1575
1576 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1577
1578 PR gdb/17816
1579 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1580 operator.
1581
1582 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1583
1584 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1585
1586 2018-08-19 Michael Spang <spang@google.com>
1587
1588 PR gdb/11786
1589 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1590 for PT_TLS segments.
1591
1592 2018-08-18 Kevin Buettner <kevinb@redhat.com>
1593
1594 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1595 dwarf_variable_value.
1596 * dwarf2-frame.c (class dwarf_expr_executor):
1597 Add override for dwarf_variable_value.
1598 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1599 (class symbol_needs_eval_context): Likewise.
1600 (indirect_synthetic_pointer): Add forward declaration.
1601 (sect_variable_value): New function.
1602 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1603 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1604 for DW_OP_GNU_variable_value.
1605
1606 2018-08-16 Tom Tromey <tom@tromey.com>
1607
1608 * top.c (read_command_file): Update.
1609 (command_line_input): Remove "repeat" argument.
1610 * ada-lang.c (get_selections): Update.
1611 * linespec.c (decode_line_2): Update.
1612 * defs.h (command_line_input): Remove argument.
1613 * cli/cli-script.c (read_next_line): Update.
1614 * python/py-gdb-readline.c: Update.
1615
1616 2018-08-17 Tom Tromey <tom@tromey.com>
1617
1618 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1619 command_line_input.
1620
1621 2018-08-15 Tom Tromey <tom@tromey.com>
1622
1623 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1624
1625 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1626
1627 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1628 If used, use find_pc_partial_function to find address range
1629 to disassemble.
1630 * mi/mi-main.c (mi_cmd_list_features): Report
1631 "data-disassemble-a-option" feature.
1632 * NEWS: Mention new -data-disassemble option -a.
1633
1634 2018-08-13 Tom Tromey <tom@tromey.com>
1635
1636 * common/common-defs.h (_FORTIFY_SOURCE): Define.
1637
1638 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1639
1640 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1641 (aarch64_linux_collect_sve_regset): Likewise.
1642 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1643 * regcache.h (regcache_map_entry_size): New function.
1644
1645 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1646
1647 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1648 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1649 (SVE_HEADER_VL_LENGTH): Likewise.
1650 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1651 (SVE_HEADER_FLAGS_LENGTH): Likewise.
1652 (SVE_HEADER_RESERVED_LENGTH): Likewise.
1653 (SVE_HEADER_SIZE_OFFSET): Likewise.
1654 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1655 (SVE_HEADER_VL_OFFSET): Likewise.
1656 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1657 (SVE_HEADER_FLAGS_OFFSET): Likewise.
1658 (SVE_HEADER_RESERVED_OFFSET): Likewise.
1659 (SVE_HEADER_SIZE): Likewise.
1660 (aarch64_linux_core_read_vq): Add function.
1661 (aarch64_linux_core_read_description): Check for SVE section.
1662
1663 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1664
1665 * aarch64-fbsd-tdep.c
1666 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1667 collect_size.
1668 * aarch64-linux-tdep.c
1669 (aarch64_linux_iterate_over_regset_sections): Likewise.
1670 * alpha-linux-tdep.c
1671 (alpha_linux_iterate_over_regset_sections):
1672 * alpha-nbsd-tdep.c
1673 (alphanbsd_iterate_over_regset_sections): Likewise.
1674 * amd64-fbsd-tdep.c
1675 (amd64fbsd_iterate_over_regset_sections): Likewise.
1676 * amd64-linux-tdep.c
1677 (amd64_linux_iterate_over_regset_sections): Likewise.
1678 * arm-bsd-tdep.c
1679 (armbsd_iterate_over_regset_sections): Likewise.
1680 * arm-fbsd-tdep.c
1681 (arm_fbsd_iterate_over_regset_sections): Likewise.
1682 * arm-linux-tdep.c
1683 (arm_linux_iterate_over_regset_sections): Likewise.
1684 * corelow.c (get_core_registers_cb): Likewise.
1685 (core_target::fetch_registers): Likewise.
1686 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1687 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1688 * gdbarch.h (void): Regenerate.
1689 * gdbarch.sh: Add supply_size and collect_size.
1690 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1691 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1692 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1693 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1694 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1695 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1696 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1697 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1698 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1699 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1700 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1701 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1702 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1703 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1704 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1705 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1706 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1707 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1708 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1709 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1710 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1711 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1712 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1713 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1714 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1715 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1716 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1717 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1718 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1719 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1720
1721 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
1722
1723 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1724 with string_printf.
1725
1726 2018-08-10 Keith Seitz <keiths@redhat.com>
1727
1728 * compile/compile-c-support.c (add_code_header, add_code_footer):
1729 Move into policy class.
1730 (c_push_user_expression, pop_user_expression_nop)
1731 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1732 (compile_program): New host class.
1733 (c_compile_program): New typedef.
1734 (c_compute_porgram): Use c_compile_program.
1735
1736 2018-08-10 Keith Seitz <keiths@redhat.com>
1737
1738 * compile/compile-internal.h (compile_instance::~compile_instance):
1739 Remove calls to htab_delete.
1740 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1741 * compile.c (compile_instance::compile_instance): Initialize
1742 htab unique pointers.
1743 (compile_instance::get_cached_type, compile_instance::insert_type)
1744 (compile_instance::error_symbol_once): Update for unique_ptr.
1745
1746 2018-08-10 Keith Seitz <keiths@redhat.com>
1747
1748 * compile/compile-c-symbols.c (struct symbol_error)
1749 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1750 (compile_instance::insert_symbol_error)
1751 (compile_instance::error_symbol_once): Move to ...
1752 * compile/compile.c: ... here.
1753
1754 2018-08-10 Keith Seitz <keiths@redhat.com>
1755
1756 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1757 instead of `new_compile_instance'.
1758 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1759 Update description.
1760 If the symbol error map is not initialized, create it.
1761 (generate_c_for_for_one_symbol): Do not check/initialize
1762 the symbol error map.
1763 * compile/compile-c-types.c (compile_c_instance): Make a class.
1764 Update all callers.
1765 (compile_instance::compile_instance): Initialize the type cache.
1766 (get_cached_type): New function.
1767 (insert_type): Update description.
1768 (compile_c_instance::m_default_cflags): Define.
1769 (convert_type): Update description. Use get_cached_type.
1770 (delete_instance): Moved to destructor.
1771 (new_compile_instance): Moved to constructor.
1772 * compile/compile-c.h (compile_c_instance): Make class inheriting
1773 from compile_instance.
1774 <base>: Remove field.
1775 <type_map, symbol_err_map>: Move to base class.
1776 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1777 * compile/compile-internal.h (compile_instance): Make class.
1778 <type_map_t, symbol_err_map_t>: Define.
1779 <fe>: Rename to `m_gcc_fe'.
1780 <scope, block, gcc_target_options>: Add `m_' prefix.
1781 <m_type_map, m_symbol_err_map>: New fields, moved from
1782 compile_c_instance.
1783 <destroy>: Remove.
1784 (convert_type, new_compile_instance): Remove.
1785 * compile/compile.c (cleanup_compile_instance): Remove.
1786 (compile_to_object): Use unique_ptr to eliminate cleanups.
1787 (compile_instance::set_print_callback, compile_instance::version)
1788 (compile_instance::set_verbose)
1789 (compile_instance::set_driver_filename)
1790 (compile_instance::set_triplet_regexp)
1791 (compile_instance::set_arguments)
1792 (compile_instance::set_source_file)
1793 (compile_instance::compile): Define.
1794
1795 2018-08-10 Keith Seitz <keiths@redhat.com>
1796
1797 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1798 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1799 gcc-c-fe.def to define C plugin.
1800 (delete_instance): Delete `c_plugin'.
1801 (new_compile_instance): Initialize `c_plugin'.
1802 * compile/compile-c.h: Include gcc_c_plugin.h.
1803 (struct compile_c_instance) <c_plugin>: New member.
1804 * gcc-c-plugin.h: New file.
1805 Update all callers with API change.
1806
1807 2018-08-10 Keith Seitz <keiths@redhat.com>
1808
1809 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1810 (HFILES_NO_SRCDIR): ... to here.
1811 Add compile-internal.h and compile-c.h.
1812 * compile/compile-c-support.c: Include compile-c.h.
1813 * compile/compile-c-symbols.c: Include compile-c.h.
1814 (generate_c_for_variable_locations): Update comment.
1815 * compile/compile-c-types.c: Include compile-c.h.
1816 * compile/compile-c.h: New file -- moved C language declarations
1817 from other files here.
1818 * compile/compile-internal.h: Do not include hashtab.h or
1819 common/enum-flags.h.
1820 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1821 (gcc_convert_symbol, gcc_symbol_address)
1822 (generate_c_for_variable_locations, c_get_mode_for_size)
1823 (c_get_range_decl_name): Definitions moved to compile-c.h.
1824 * compile/compile-loc2c.c: Include compile-c.h.
1825
1826 2018-08-10 Keith Seitz <keiths@redhat.com>
1827
1828 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1829 (c_symbol_substitution_name): ... this.
1830 Update all callers.
1831
1832 2018-08-10 Keith Seitz <keiths@redhat.com>
1833
1834 * compile/compile-c-support.c (c_compute_program): Use
1835 unique_xmalloc_ptr to eliminate cleanup.
1836 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1837 Return a unique_xmalloc_ptr and eliminate cleanup.
1838 * compile/compile-internal.h (generate_c_for_variable_locations):
1839 Return unique_xmalloc_ptr and update description.
1840
1841 2018-08-10 Alan Hayward <alan.hayward@arm.com>
1842
1843 * corelow.c (core_target::get_core_register_section): Rename
1844 min_size to section_min_size.
1845
1846 2018-08-09 Jim Wilson <jimw@sifive.com>
1847
1848 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1849 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1850 * NEWS: Mention new GNU/Linux RISC-V target.
1851 * configure.host: Add riscv*-*-linux*.
1852 * configure.nat: Add riscv*.
1853 * configure.tgt: Add riscv*-*-linux*.
1854 * riscv-linux-nat.c: New file.
1855 * riscv-linux-tdep.c: New file.
1856
1857 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1858
1859 * infrun.c (resume): Make static, add forward declaration.
1860 (proceed): Update header comment.
1861 * infrun.h (resume): Delete declaration.
1862
1863 2018-08-09 Tom Tromey <tom@tromey.com>
1864
1865 * riscv-tdep.h: Minor formatting fixes.
1866
1867 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
1868
1869 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
1870 * dwarf-index-cache.c (create_dir_and_check): Likewise.
1871 (test_mkdir_recursive): Likewise.
1872 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
1873
1874 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1875
1876 * valarith.c (value_subscripted_rvalue): If an array is not in
1877 memory, and we don't know the upper bound, then we can't know that
1878 the requested element exists or not.
1879
1880 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
1881
1882 * target.c (str_comma_list_concat_elem): Fix typo in comment.
1883 (target_options_to_string): Add comment.
1884
1885 2018-08-08 Tom Tromey <tom@tromey.com>
1886
1887 * unittests/scoped_mmap-selftests.c: Check result of "write".
1888
1889 2018-08-08 Jim Wilson <jimw@sifive.com>
1890
1891 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
1892 (decode_register_index_short): New.
1893 (decode_j_type_insn, decode_cj_type_insn): New.
1894 (decode_b_type_insn, decode_cb_type_insn): New.
1895 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
1896 local xlen. Check xlen when decoding ambiguous compressed insns. In
1897 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
1898 is_c_sw_insn instead of is_sw_insn.
1899 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
1900 (riscv_software_single_step): New.
1901 * riscv-tdep.h (riscv_software_single_step): Declare.
1902
1903 * riscv-tdep.c (riscv_isa_xlen): Drop static.
1904 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
1905
1906 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
1907
1908 PR gdb/18050:
1909 * target.c (dispose_inferior): Don't dispose of inferiors that are
1910 already killed.
1911
1912 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1913
1914 * remote.c (remote_target::download_tracepoint): Change char* to
1915 const char*.
1916
1917 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1918
1919 * target.h (target_options_to_string): Return an std::string.
1920 * target.c (str_comma_list_concat_elem): Return void, use
1921 std::string.
1922 (do_option): Likewise.
1923 (target_options_to_string): Return an std::string.
1924 * linux-nat.c (linux_nat_target::wait): Adjust.
1925 * target-debug.h (target_debug_print_options): Adjust.
1926
1927 2018-08-07 Tom Tromey <tom@tromey.com>
1928
1929 * Makefile.in (CPPFLAGS): New variable.
1930 (INTERNAL_CPPFLAGS): Use it.
1931
1932 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1933
1934 * NEWS: Mention the index cache.
1935
1936 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1937
1938 * common/pathstuff.h (get_standard_cache_dir): New.
1939 * common/pathstuff.c (get_standard_cache_dir): New.
1940 * build-id.h (build_id_to_string): New.
1941 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
1942 DEBUG_STR_SUFFIX): Move to here.
1943 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
1944 DEBUG_STR_SUFFIX): Move from there.
1945 (write_psymtabs_to_index): Make non-static, add basename
1946 parameter. Write to temporary files, rename when done.
1947 (save_gdb_index_command): Adjust call to
1948 write_psymtabs_to_index.
1949 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
1950 field.
1951 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
1952 (get_gdb_index_contents_from_cache): New.
1953 (get_gdb_index_contents_from_cache_dwz): New.
1954 (dwarf2_initialize_objfile): Read index from cache.
1955 (dwarf2_build_psymtabs): Save to index.
1956 * dwarf-index-cache.h: New file.
1957 * dwarf-index-cache.c: New file.
1958 * dwarf-index-write.h: New file.
1959
1960 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1961
1962 * gnulib/aclocal.m4: Re-generate.
1963 * gnulib/config.in: Re-generate.
1964 * gnulib/configure: Re-generate.
1965 * gnulib/import/Makefile.am: Re-generate.
1966 * gnulib/import/Makefile.in: Re-generate.
1967 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1968 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1969 * gnulib/import/m4/mkdir.m4: New file.
1970 * gnulib/import/mkdir.c: New file.
1971 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
1972 module.
1973
1974 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1975
1976 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
1977 * common/scoped_mmap.c: New file.
1978 * common/scoped_mmap.h (destroy): New method.
1979 (~scoped_mmap, reset): Use destroy.
1980 (scoped_mmap): New move constructor.
1981 (mmap_file): New declaration.
1982 * unittests/scoped_mmap-selftests.c (test_normal,
1983 test_invalid_filename, run_tests): New functions.
1984 (_initialize_scoped_mmap_selftests): Register selftest.
1985
1986 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1987
1988 * dwarf2read.c (read_gdb_index_from_section): Rename to...
1989 (read_gdb_index_from_buffer): ... this. Remove section
1990 parameter, add buffer parameter.
1991 (get_gdb_index_contents_ftype,
1992 get_gdb_index_contents_dwz_ftype): New typedefs.
1993 (dwarf2_read_gdb_index): Add callback parameters to get the
1994 index contents.
1995 (get_gdb_index_contents_from_section): New.
1996 (dwarf2_initialize_objfile): Update call to
1997 dwarf2_read_gdb_index.
1998
1999 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2000
2001 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2002 (gdb_open_cloexec): Likewise.
2003 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2004 (commandline_from_pid): Likewise.
2005 (linux_xfer_osdata_threads): Likewise.
2006 (linux_xfer_osdata_fds): Likewise.
2007 * ada-lang.c (is_package_name): Likewise.
2008 * auxv.c (procfs_xfer_auxv): Likewise.
2009 * breakpoint.c (print_one_breakpoint_location): Use
2010 uiout::field_fmt.
2011 (print_one_catch_solib): Use string_printf.
2012 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2013 (add_pe_forwarded_sym): Likewise.
2014 * dwarf2read.c (create_type_unit_group): Likewise.
2015 (build_error_marker_type): Likewise.
2016 * infcall.c (get_function_name): Likewise.
2017 * valprint.c (print_converted_chars_to_obstack): Likewise.
2018 * xtensa-tdep.c (xtensa_register_type): Likewise.
2019
2020 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2021
2022 * remote.c (remote_target::download_tracepoint): Fix format
2023 string errors.
2024
2025 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2026
2027 * tracefile.c: Include common/byte-vector.h.
2028 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2029 with trace_regblock_size if needed. Update uses of buf.
2030
2031 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2032
2033 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2034 std::vector<unsigned char>.
2035 * tracepoint.c (collection_list::collection_list): Remove
2036 m_regs_mask initializer from initializer list. Resize
2037 m_regs_mask using the largest remote register number.
2038 (collection_list::add_remote_register): Remove size check on
2039 m_regs_mask. Use at to access element.
2040 (collection_list::stringify): Change type of temp_buf to
2041 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2042 stringify the register mask. Use pack_hex_byte for the register
2043 mask.
2044
2045 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2046
2047 * tracepoint.h (class collection_list) <add_register>: Remove.
2048 <add_remote_register, add_ax_registers, add_local_register>:
2049 Declare.
2050 <add_memrange>: Add scope parameter.
2051 * tracepoint.c (encode_actions_1): Likewise.
2052 (collection_list::add_register): Rename to ...
2053 (collection_list::add_remote_register): ... this. Update
2054 comment.
2055 (collection_list::add_ax_registers, add_local_register): New
2056 methods.
2057 (collection_list::add_memrange): Add scope parameter. Call
2058 add_local_register instead of add_register.
2059 (finalize_tracepoint_aexpr): New function.
2060 (collection_list::collect_symbol): Update calls to add_memrange.
2061 Call add_local_register instead of add_register. Call
2062 add_ax_registers. Call finalize_tracepoint_aexpr.
2063 (encode_actions_1): Get remote regnos for $reg action. Call
2064 add_remote_register, add_ax_registers, and add_local_register.
2065 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2066 (validate_actionline): Call finalize_tracepoint_aexpr.
2067
2068 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2069
2070 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2071 Replace array buf with gdb::char_vector buf, of size
2072 get_remote_packet_size (). Replace references to buf and
2073 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2074 and xsnprintf with snprintf. Raise errors if the buffer is too
2075 small.
2076
2077 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2078
2079 * remote.c (remote_target::download_tracepoint): Fix the has_more
2080 predicate in the QTDP action list iteration.
2081
2082 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2083
2084 * remote.c (remote_target::download_tracepoint): Fix indentation
2085 in for block.
2086
2087 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2088
2089 * proc-api.c (_initialize_proc_api): Remove c, unused.
2090 * procfs.c (procfs_init_inferior): Remove signals, unused.
2091 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2092 unused.
2093
2094 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2095 Andrew Burgess <andrew.burgess@embecosm.com>
2096
2097 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2098 'W_STOPCODE (0)' as this could be ambiguous.
2099
2100 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2101
2102 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2103 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2104 "ai_socktype").
2105
2106 2018-08-02 Tom Tromey <tom@tromey.com>
2107
2108 PR symtab/16842.
2109 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2110 symbols.
2111 (process_structure_scope): Likewise.
2112
2113 2018-08-02 Xavier Roirand <roirand@adacore.com>
2114
2115 PR gdb/22629:
2116 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2117 kill inferior.
2118
2119 2018-08-02 Tom Tromey <tom@tromey.com>
2120
2121 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2122 (darwin_suspend_inferior, darwin_resume_inferior)
2123 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2124 (darwin_check_new_threads): Check result of get_darwin_inferior.
2125
2126 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2127
2128 GDB 8.1.1 released.
2129
2130 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2131
2132 * varobj.c (varobj_get_path_expr_parent): Report an error if
2133 parent is a dynamic varobj.
2134
2135 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2136
2137 * gnulib/aclocal.m4: Re-generate.
2138 * gnulib/config.in: Re-generate.
2139 * gnulib/configure: Re-generate.
2140 * gnulib/import/Makefile.in: Re-generate.
2141 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2142 * gnulib/import/m4/onceonly.m4: Re-generate.
2143
2144 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2145
2146 * target-descriptions.c (struct xml_test_tdesc): New.
2147 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2148 (record_xml_tdesc): Update.
2149 (maintenance_check_xml_descriptions): Update.
2150 * target-descriptions.h (record_xml_tdesc): Update comment.
2151
2152 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2153
2154 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2155 checking array bounds are defined.
2156
2157 2018-07-30 Tom Tromey <tom@tromey.com>
2158
2159 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2160 irreflexivity violation.
2161
2162 2018-07-30 Tom Tromey <tom@tromey.com>
2163
2164 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2165 * value.c (unpack_long): Remove lint code.
2166 * valops.c (value_ind): Remove lint code.
2167 * valarith.c (value_x_binop, value_x_unop, value_equal)
2168 (value_pos): Remove lint code.
2169
2170 2018-07-28 Tom de Vries <tdevries@suse.de>
2171
2172 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2173 with undefined upper bound as <optimized out>.
2174
2175 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2176
2177 * gcore.in: Rename variable "name" to "prefix". Expand
2178 "usage" text.
2179
2180 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2181
2182 * windows-nat.c (windows_nat_target::create_inferior): Update to
2183 call close() in global namespace.
2184
2185 2018-07-26 Tom Tromey <tom@tromey.com>
2186
2187 * dwarf-index-write.c (add_address_entry): Don't add objfile
2188 offsets.
2189 * dbxread.c (find_stab_function): Rename from
2190 find_stab_function_addr. Return a bound_minimal_symbol.
2191 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2192 Don't add objfile offsets.
2193 (end_psymtab): Use raw_text_low, raw_text_high,
2194 MSYMBOL_VALUE_RAW_ADDRESS.
2195 (read_ofile_symtab): Update.
2196 (process_one_symbol): Update.
2197 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2198 offsets.
2199 (dw2_relocate): Remove.
2200 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2201 searching addrmap.
2202 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2203 Update.
2204 (process_psymtab_comp_unit_reader, add_partial_symbol)
2205 (add_partial_subprogram, dwarf2_ranges_read): Update.
2206 (load_partial_dies): Update.
2207 (add_address_entry): Don't add objfile offsets.
2208 (dwarf2_build_include_psymtabs): Update.
2209 (create_addrmap_from_aranges): Don't add objfile offsets.
2210 (dw2_find_pc_sect_compunit_symtab): Update.
2211 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2212 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2213 Update.
2214 (parse_partial_symbols): Don't add objfile offsets. Use
2215 raw_text_low, raw_text_high. Update.
2216 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2217 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2218 or call 'relocate' quick function. Clear psymbol_map.
2219 * psympriv.h (struct partial_symbol) <address>: Add section
2220 offset.
2221 <set_unrelocated_address>: Rename from set_address.
2222 <raw_text_low, raw_text_high>: New methods.
2223 <text_low, text_high>: Add objfile parameter.
2224 (add_psymbol_to_bcache): Add 'section' parameter. Call
2225 set_unrelocated_address.
2226 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2227 (find_pc_psymbol): Update.
2228 (fixup_psymbol_section, relocate_psymtabs): Remove.
2229 (dump_psymtab, psym_functions): Update.
2230 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2231 parameter.
2232 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2233 (start_psymtab_common): Update.
2234 * symfile-debug.c (debug_qf_relocate): Remove.
2235 (debug_sym_quick_functions): Update.
2236 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2237 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2238 Update.
2239
2240 2018-07-26 Tom Tromey <tromey@redhat.com>
2241
2242 * dbxread.c (end_psymtab): Use text_high_valid and
2243 text_low_valid.
2244 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2245 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2246 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2247 Update comment.
2248 <text_low_valid, text_high_valid>: New fields.
2249 <set_text_low, set_text_high>: Update.
2250 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2251
2252 2018-07-26 Tom Tromey <tom@tromey.com>
2253
2254 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2255 Update.
2256 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2257 textlow and texthigh fields.
2258 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2259 Update.
2260 * mdebugread.c (parse_lines, parse_partial_symbols)
2261 (psymtab_to_symtab_1): Update.
2262 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2263 Rename fields. Update comment. Now private.
2264 <text_low, text_high, set_text_low, set_text_high>: New methods.
2265 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2266 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2267 (start_psymtab_common, maintenance_info_psymtabs)
2268 (maintenance_check_psymtabs): Update.
2269 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2270 texthigh fields.
2271 (scan_xcoff_symtab): Update.
2272
2273 2018-07-26 Tom Tromey <tromey@redhat.com>
2274
2275 * psympriv.h (struct partial_symbol) <unrelocated_address,
2276 address, set_address>: New methods.
2277 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2278 (fixup_psymbol_section, relocate_psymtabs): Update.
2279 (print_partial_symbols): Add 'objfile' parameter. Update.
2280 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2281 Update.
2282
2283 2018-07-26 Tom Tromey <tom@tromey.com>
2284
2285 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2286 (debug_names::write_psymbols): Update.
2287 * psympriv.h (struct partial_symbol): Derive from
2288 general_symbol_info.
2289 <obj_section>: New method.
2290 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2291 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2292 (find_pc_sect_psymbol, fixup_psymbol_section)
2293 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2294 (print_partial_symbols, recursively_search_psymtabs)
2295 (compare_psymbols, psymbol_hash, psymbol_compare)
2296 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2297 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2298
2299 2018-07-26 Tom Tromey <tromey@redhat.com>
2300
2301 * dbxread.c (end_psymtab): Remove dead code.
2302
2303 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2304
2305 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2306 DWARF unwinders are disabled.
2307 * dwarf2-frame.c: Add dwarf2read.h include.
2308 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2309 disabled.
2310 (dwarf2_frame_unwinders_enabled_p): Define.
2311 (show_dwarf_unwinders_enabled_p): New function.
2312 (_initialize_dwarf2_frame): Register switch to control DWARF
2313 unwinder use.
2314 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2315 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2316 (show_dwarf_cmdlist): Remove static keyword.
2317 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2318 (show_dwarf_cmdlist): Declare.
2319 * NEWS: Document new feature.
2320
2321 2018-07-26 Tom de Vries <tdevries@suse.de>
2322
2323 PR breakpoints/23366
2324 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2325
2326 2018-07-26 Tom de Vries <tdevries@suse.de>
2327
2328 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2329 DW_AT_count can't be translated to a dynamic prop.
2330
2331 2018-07-25 Tom de Vries <tdevries@suse.de>
2332
2333 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2334 try/catch.
2335
2336 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2337
2338 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2339
2340 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2341
2342 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2343
2344 2018-07-24 Keith Seitz <keiths@redhat.comt
2345
2346 PR symtab/23010
2347 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2348 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2349 instead of add_symbol_to_list.
2350 (read_file_scope): Call prepare_one_comp_unit before reading
2351 any other DIEs.
2352
2353 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2354
2355 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2356
2357 2018-07-24 Tom Tromey <tom@tromey.com>
2358
2359 * utils.c (malloc, realloc, free): Don't declare.
2360 * configure, config.in: Rebuild.
2361 * configure.ac: Don't check for declarations of free, malloc, or
2362 realloc.
2363
2364 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2365
2366 * aarch64-linux-nat.c
2367 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2368 variable.
2369 * arm-linux-nat.c (fetch_regs): Likewise.
2370 (store_regs): Likewise.
2371 (fetch_vfp_regs): Likewise.
2372 (store_vfp_regs): Likewise.
2373 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2374 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2375 (arm_linux_nat_target::insert_watchpoint): Likewise.
2376 (arm_linux_nat_target::remove_watchpoint): Likewise.
2377 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2378 Likewise.
2379 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2380 Likewise.
2381 * ppc-linux-nat.c (fetch_register): Likewise.
2382 (fetch_all_gp_regs): Likewise.
2383 (fetch_ppc_registers): Likewise.
2384 (store_all_gp_regs): Likewise.
2385 (store_ppc_registers): Likewise.
2386 (hwdebug_insert_point): Likewise.
2387 (can_use_watchpoint_cond_accel): Likewise.
2388 * remote-sim.c (gdb_os_write_stdout): Likewise.
2389
2390 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2391 Tom Tromey <tom@tromey.com>
2392
2393 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2394 test for it.
2395 * configure: Rebuild.
2396
2397 2018-07-22 Tom Tromey <tom@tromey.com>
2398
2399 * regformats/regdat.sh: Define xmltarget_${name} inside
2400 #ifndef IN_PROCESS_AGENT.
2401
2402 2018-07-22 Tom Tromey <tom@tromey.com>
2403
2404 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2405
2406 2018-07-22 Tom Tromey <tom@tromey.com>
2407
2408 * symfile.c (reread_symbols): Notify iter, not objfile.
2409
2410 2018-07-22 Tom Tromey <tom@tromey.com>
2411
2412 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2413 Use arch_ops.
2414 (ravenscar_thread_target::prepare_to_store): Likewise.
2415
2416 2018-07-22 Tom Tromey <tom@tromey.com>
2417
2418 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2419 unused variable. Call value_fetch_lazy when needed.
2420 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2421 Remove unused variable. Call value_fetch_lazy when needed.
2422
2423 2018-07-22 Tom Tromey <tom@tromey.com>
2424
2425 * m32c-tdep.c (mark_dma): Return void.
2426 (make_regs): Remove unused declarations.
2427
2428 2018-07-22 Tom Tromey <tom@tromey.com>
2429
2430 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2431 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2432 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2433 bkscm_get_valid_block_smob_arg_unsafe for effect.
2434
2435 2018-07-22 Tom Tromey <tom@tromey.com>
2436
2437 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2438 value_type.
2439
2440 2018-07-22 Tom Tromey <tom@tromey.com>
2441
2442 * windows-nat.c (saved_context): Conditionally define.
2443 * remote.c (remote_target::remote_btrace_maybe_reopen):
2444 Conditionally declare "warned".
2445 * inflow.c (sigquit_ours): Conditionally define.
2446 (new_tty): Move "tty" declaration inside #if.
2447 * guile/guile.c (guile_datadir): Conditionally define.
2448 * charset.c (set_be_le_names): Move some declarations inside #if.
2449 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2450 #if.
2451 (parse_xml_btrace_conf): Likewise.
2452
2453 2018-07-22 Tom Tromey <tom@tromey.com>
2454
2455 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2456
2457 2018-07-22 Tom Tromey <tom@tromey.com>
2458
2459 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2460 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2461 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2462 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2463 * stack.c (frame_apply_level_command): Remove unused variable.
2464 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2465 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2466 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2467 unused variable.
2468 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2469 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2470 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2471 variable.
2472 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2473 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2474 variable.
2475 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2476 Remove unused variable.
2477 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2478 variable.
2479 * common/tdesc.c (print_xml_feature::visit): Remove unused
2480 variable.
2481 * compile/compile-object-load.c (store_regs): Remove unused
2482 variables.
2483 * complaints.c (clear_complaints): Remove unused variable.
2484 * corelow.c (core_target_open): Remove unused variable.
2485 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2486 variable.
2487 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2488 variable.
2489 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2490 variable.
2491 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2492 variable.
2493 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2494 variable.
2495 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2496 variable.
2497 * ia64-tdep.c (examine_prologue): Remove unused variable.
2498 * infcall.c (run_inferior_call): Remove unused variable.
2499 * inferior.c (exit_inferior): Remove unused variable.
2500 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2501 * linespec.c (decode_line_2): Remove unused variable.
2502 * linux-nat.c (super_close): Remove.
2503 * linux-tdep.c (linux_info_proc): Remove unused variable.
2504 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2505 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2506 Remove unused variable.
2507 * parse.c (find_minsym_type_and_address): Remove unused variable.
2508 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2509 variable.
2510 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2511 variable.
2512 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2513 variables.
2514 * record-btrace.c (record_btrace_target::store_registers): Remove
2515 unused variable.
2516 (cmd_show_record_btrace_cpu): Remove unused variable.
2517 * riscv-tdep.c (riscv_register_reggroup_p)
2518 (riscv_push_dummy_call, riscv_return_value): Remove unused
2519 variable.
2520 * rust-exp.y (literal): Remove unused variable.
2521 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2522 unused variable.
2523 <STRUCTOP_ANONYMOUS>: Likewise.
2524 * s390-linux-tdep.c (s390_linux_init_abi_31)
2525 (s390_linux_init_abi_64): Remove unused variable.
2526 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2527 (file_select_thread, net_windows_open, _initialize_ser_windows):
2528 Remove unused variables.
2529 * symtab.c (find_pc_sect_line): Remove unused variable.
2530 * target-memory.c (compute_garbled_blocks): Remove unused
2531 variable.
2532 (target_write_memory_blocks): Remove unused variable.
2533 * target.c (target_stack::unpush): Remove unused variables.
2534 * tracepoint.c (start_tracing, all_tracepoint_actions)
2535 (merge_uploaded_trace_state_variables)
2536 (print_one_static_tracepoint_marker): Remove unused variable.
2537 * unittests/basic_string_view/element_access/char/1.cc (test01):
2538 Remove unused variable.
2539 * windows-nat.c (windows_continue, windows_add_all_dlls)
2540 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2541 Remove unused variables.
2542
2543 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2544
2545 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2546 attr_profile in HAVE_ELF.
2547 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2548 HAVE_ELF.
2549
2550 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2551
2552 * frame.c (frame_register_unwind): Change parameter name.
2553 (frame_unwind_register): Likewise.
2554 (frame_unwind_register_value): Likewise.
2555 (frame_unwind_register_signed): Likewise.
2556 (frame_unwind_register_unsigned): Likewise.
2557 * frame.h (frame_register_unwind): Likewise.
2558 (frame_unwind_register): Likewise.
2559 (frame_unwind_register_value): Likewise.
2560 (frame_unwind_register_signed): Likewise.
2561 (frame_unwind_register_unsigned): Likewise.
2562 (frame_unwind_arch): Likewise.
2563
2564 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2565
2566 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2567 ISA maintenance.
2568
2569 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2570
2571 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2572 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2573 hand.
2574
2575 2018-07-20 Keith Seitz <keiths@redhat.com>
2576
2577 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2578 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2579 m_compunit_symtab, m_language>: Add "m_" prefix.
2580 Update all uses.
2581 * buildsym.c: Update all uses.
2582
2583 2018-07-20 Tom Tromey <tom@tromey.com>
2584
2585 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2586 * buildsym.h (record_line_ftype): Remove typedef.
2587
2588 2018-07-20 Tom Tromey <tom@tromey.com>
2589
2590 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2591 (end_expandable_symtab): Likewise.
2592 (end_symtab_get_static_block): Likewise.
2593 (end_symtab_from_static_block): Likewise.
2594 * buildsym-legacy.c (augment_type_symtab): Remove.
2595 (end_expandable_symtab): Remove.
2596 (end_symtab_get_static_block): Remove.
2597 (end_symtab_from_static_block): Remove.
2598
2599 2018-07-20 Tom Tromey <tom@tromey.com>
2600
2601 * dwarf2read.c: Include buildsym.h.
2602 (struct dwarf2_cu) <builder>: New method.
2603 (fixup_go_packaging): Update.
2604 (process_full_comp_unit, process_full_type_unit): Update. Don't
2605 use scoped_free_pendings.
2606 (using_directives): Add "cu" parameter, remove "language".
2607 (read_import_statement, setup_type_unit_groups, )
2608 (read_func_scope, read_lexical_block_scope)
2609 (dwarf2_record_block_ranges, read_namespace): Update.
2610 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2611 (lnp_state_machine::handle_end_sequence): Update.
2612 (class lnp_state_machine) <m_cu>: New member.
2613 <m_record_line_callback>: Remove.
2614 <m_currently_recording_lines>: New member.
2615 (lnp_state_machine::handle_set_file): Update.
2616 (noop_record_line): Remove.
2617 (dwarf_record_line_p): Add cu parameter.
2618 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2619 (lnp_state_machine::record_line)
2620 (lnp_state_machine::lnp_state_machine)
2621 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2622 (dwarf_decode_lines): Update.
2623 (dwarf2_start_subfile): Add cu parameter.
2624 (dwarf2_start_symtab, new_symbol): Update.
2625 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2626 Remove dwarf2_per_objfile parameter.
2627 (dwarf_decode_macros): Update.
2628
2629 2018-07-20 Tom Tromey <tom@tromey.com>
2630
2631 * stabsread.c (define_symbol): Update.
2632 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2633 * dwarf2read.c (new_symbol): Update.
2634 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2635 * cp-namespace.c: Include buildsym.h.
2636 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2637 * buildsym-legacy.c (get_buildsym_compunit): New function.
2638
2639 2018-07-20 Tom Tromey <tom@tromey.com>
2640
2641 * xcoffread.c: Include buildsym-legacy.h.
2642 * windows-nat.c: Include buildsym-legacy.h.
2643 * stabsread.c: Include buildsym-legacy.h.
2644 * mdebugread.c: Include buildsym-legacy.h.
2645 * buildsym-legacy.h: New file.
2646 * buildsym-legacy.c: New file, from buildsym.c.
2647 * go32-nat.c: Include buildsym-legacy.h.
2648 * dwarf2read.c: Include buildsym-legacy.h.
2649 * dbxread.c: Include buildsym-legacy.h.
2650 * cp-namespace.c: Include buildsym-legacy.h.
2651 * coffread.c: Include buildsym-legacy.h.
2652 * buildsym.h: Move some contents to buildsym-legacy.h.
2653 * buildsym.c: Include buildsym-legacy.h. Move many functions to
2654 buildsym-legacy.c.
2655 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2656
2657 2018-07-20 Tom Tromey <tom@tromey.com>
2658
2659 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2660 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2661 (buildsym_compunit::buildsym_compunit)
2662 (buildsym_compunit::~buildsym_compunit)
2663 (buildsym_compunit::get_macro_table): Define.
2664
2665 2018-07-20 Tom Tromey <tom@tromey.com>
2666
2667 * buildsym.c (reset_symtab_globals): Remove.
2668 (buildsym_compunit::end_symtab_from_static_block): Update.
2669 (buildsym_compunit::augment_type_symtab): Update.
2670 (end_symtab_from_static_block): Call free_buildsym_compunit.
2671 (augment_type_symtab, end_symtab, end_expandable_symtab):
2672 Likewise.
2673
2674 2018-07-20 Tom Tromey <tom@tromey.com>
2675
2676 * arch-utils.c: Do not include buildsym.h.
2677 * mipsread.c: Do not include buildsym.h.
2678 * machoread.c: Do not include buildsym.h.
2679 * elfread.c: Do not include buildsym.h.
2680
2681 2018-07-20 Tom Tromey <tom@tromey.com>
2682
2683 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2684 initialization.
2685 (buildsym_compunit): Add new constructor.
2686 (struct buildsym_compunit) <get_last_source_file, finish_block,
2687 record_block_range, start_subfile, patch_subfile_names,
2688 push_subfile, pop_subfile, record_line, get_compunit_symtab,
2689 set_last_source_start_addr, get_last_source_start_addr,
2690 get_local_using_directives, set_local_using_directives,
2691 get_global_using_directives, outermost_context_p,
2692 get_current_context_stack, get_context_stack_depth,
2693 get_current_subfile, get_local_symbols, get_file_symbols,
2694 get_global_symbols, record_debugformat, record_producer,
2695 push_context, pop_context, end_symtab_get_static_block,
2696 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2697 New public methods.
2698 <record_pending_block, finish_block_internal, make_blockvector,
2699 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2700 private methods.
2701 Update all users.
2702
2703 2018-05-22 Tom Tromey <tom@tromey.com>
2704
2705 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2706 parameter.
2707 (finish_block_internal): Update.
2708
2709 2018-07-20 Tom Tromey <tom@tromey.com>
2710
2711 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2712 parameter.
2713 (finish_block_internal): Update.
2714
2715 2018-07-20 Tom Tromey <tom@tromey.com>
2716
2717 * buildsym.h (EXTERN): Don't define or undef.
2718 * buildsym.c (EXTERN): Don't define.
2719
2720 2018-07-20 Tom Tromey <tom@tromey.com>
2721
2722 * buildsym.c: Remove TODO comment.
2723
2724 2018-07-20 Tom Tromey <tom@tromey.com>
2725
2726 * coffread.c (coff_symtab_read): Update.
2727 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2728 (xcoff_new_init): Update.
2729 * mipsread.c (mipscoff_new_init): Update.
2730 * mdebugread.c (mdebug_build_psymtabs): Update.
2731 * elfread.c (elf_new_init): Update.
2732 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2733 Update.
2734 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2735 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2736 (stabsect_build_psymtabs): Update.
2737 * buildsym.h (buildsym_init): Don't declare.
2738 * buildsym.c: Update comment.
2739 (prepare_for_building): Remove.
2740 (start_symtab, restart_symtab): Update.
2741 (reset_symtab_globals): Update comment.
2742 (buildsym_init): Remove.
2743
2744 2018-07-20 Tom Tromey <tom@tromey.com>
2745
2746 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2747 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2748 (read_enum_type, common_block_start, common_block_end)
2749 (cleanup_undefined_types_1, finish_global_stabs): Update.
2750 * mdebugread.c (psymtab_to_symtab_1): Update.
2751 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2752 (read_lexical_block_scope, new_symbol): Update.
2753 * dbxread.c (process_one_symbol): Update.
2754 * coffread.c (coff_symtab_read, process_coff_symbol)
2755 (coff_read_enum_type): Update.
2756 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2757 declare.
2758 (get_local_symbols, get_file_symbols, get_global_symbols): New
2759 functions.
2760 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2761 m_global_symbols.
2762 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2763 (~scoped_free_pendings): Update.
2764 (finish_block, prepare_for_building, reset_symtab_globals)
2765 (end_symtab_get_static_block, end_symtab_with_blockvector)
2766 (augment_type_symtab, push_context): Update.
2767 (get_local_symbols, get_file_symbols, get_global_symbols): New
2768 functions.
2769 (buildsym_init): Update.
2770
2771 2018-07-20 Tom Tromey <tom@tromey.com>
2772
2773 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2774 (process_full_type_unit): Likewise.
2775 (dwarf2_start_symtab): Set list_in_scope.
2776
2777 2018-07-20 Tom Tromey <tom@tromey.com>
2778
2779 * dwarf2read.c (process_psymtab_comp_unit_reader)
2780 (build_type_psymtabs_reader): Do not set list_in_scope.
2781
2782 2018-07-20 Tom Tromey <tom@tromey.com>
2783
2784 * buildsym.c (free_pendings): Remove.
2785 (add_symbol_to_list, scoped_free_pendings)
2786 (finish_block_internal, buildsym_init): Update.
2787
2788 2018-07-20 Tom Tromey <tom@tromey.com>
2789
2790 * xcoffread.c (read_xcoff_symtab): Update.
2791 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2792 Update.
2793 * dbxread.c (process_one_symbol): Update.
2794 * coffread.c (coff_symtab_read): Update.
2795 * buildsym.h (finish_block): Update.
2796 * buildsym.c (finish_block): Remove "listhead" argument.
2797 (end_symtab_get_static_block): Update.
2798
2799 2018-07-20 Tom Tromey <tom@tromey.com>
2800
2801 * buildsym.h (class scoped_free_pendings): Remove constructor.
2802 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2803 method.
2804 <m_pending_block_obstack, m_pending_blocks>: New members.
2805 (pending_block_obstack, pending_blocks): Remove.
2806 (scoped_free_pendings::scoped_free_pendings): Default.
2807 (~scoped_free_pendings): Update.
2808 (free_pending_blocks): Remove.
2809 (finish_block_internal, record_pending_block, make_blockvector)
2810 (end_symtab_get_static_block, augment_type_symtab, push_context)
2811 (buildsym_init): Update.
2812
2813 2018-07-20 Tom Tromey <tom@tromey.com>
2814
2815 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2816 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2817 members.
2818 (pending_addrmap, pending_addrmap_obstack)
2819 (pending_addrmap_interesting): Remove.
2820 (scoped_free_pendings, record_block_range, make_blockvector)
2821 (prepare_for_building, reset_symtab_globals, buildsym_init):
2822 Update.
2823
2824 2018-07-20 Tom Tromey <tom@tromey.com>
2825
2826 * xcoffread.c (process_linenos): Update.
2827 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2828 * mdebugread.c (psymtab_to_symtab_1): Update.
2829 * dwarf2read.c (setup_type_unit_groups)
2830 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2831 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2832 * dbxread.c (process_one_symbol): Update.
2833 * coffread.c (coff_symtab_read, enter_linenos)
2834 (process_coff_symbol): Update.
2835 * buildsym.h (current_subfile): Don't declare.
2836 (get_current_subfile): Declare.
2837 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2838 member.
2839 (start_subfile, free_buildsym_compunit, push_subfile)
2840 (prepare_for_building, start_symtab): Update.
2841 (get_current_subfile): New function.
2842
2843 2018-07-20 Tom Tromey <tom@tromey.com>
2844
2845 * coffread.c (coff_symtab_read): Update.
2846 * xcoffread.c (read_xcoff_symtab): Update.
2847 * dwarf2read.c (new_symbol): Update.
2848 (read_func_scope, read_lexical_block_scope): Update.
2849 * dbxread.c (process_one_symbol): Update.
2850 * buildsym.h (context_stack, context_stack_depth): Don't declare.
2851 (outermost_context_p): Remove macro.
2852 (outermost_context_p, get_current_context_stack)
2853 (get_context_stack_depth): Declare.
2854 (pop_context): Return struct context_stack.
2855 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
2856 member.
2857 (context_stack_size): Remove.
2858 (INITIAL_CONTEXT_STACK_SIZE): Remove.
2859 (prepare_for_building, end_symtab_get_static_block)
2860 (augment_type_symtab, push_context): Update.
2861 (pop_context): Return struct context_stack.
2862 (outermost_context_p, get_current_context_stack)
2863 (get_context_stack_depth): New functions.
2864 (buildsym_init): Update.
2865
2866 2018-07-20 Tom Tromey <tom@tromey.com>
2867
2868 * rust-exp.y: Now a pure parser. Update all rules.
2869 (%union): Move earlier.
2870 (current_parser, work_obstack): Remove globals.
2871 (rust_parser, ~rust_parser): Update.
2872 (class rust_parser) <copy_name, concat3, crate_name, super_name,
2873 lex_character, lex_number, lex_string, lex_identifier,
2874 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
2875 convert_name, convert_params_to_expression,
2876 convert_ast_to_expression, ast_basic_type, ast_operation,
2877 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
2878 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
2879 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
2880 ast_array_type, ast_slice_type, ast_reference_type,
2881 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
2882 (rust_parse): Update.
2883 (rustyyerror, rustyylex): Add parser parameter.
2884 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
2885 (rust_lex_stringish_test, rust_lex_test_sequence)
2886 (rust_lex_test_trailing_dot, rust_lex_test_completion)
2887 (rust_lex_test_push_back, rust_lex_tests): Update.
2888
2889 2018-07-19 Pedro Alves <palves@redhat.com>
2890
2891 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
2892 gdb::unique_xmalloc_ptr.
2893 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
2894 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
2895 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
2896 copy-initialization.
2897 * guile/scm-pretty-print.c (ppscm_print_children): Use
2898 gdb::unique_xmalloc_ptr instead of cleanups.
2899 (gdbscm_apply_val_pretty_printer): Remove cleanups.
2900 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
2901 gdb::unique_xmalloc_ptr.
2902 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2903 Adjust to use gdb::unique_xmalloc_ptr.
2904 * guile/scm-utils.c (extract_arg): Adjust.
2905 * guile/scm-value.c (gdbscm_value_field): Adjust to use
2906 gdb::unique_xmalloc_ptr instead of a cleanup.
2907
2908 2018-07-19 Tom Tromey <tom@tromey.com>
2909
2910 * utils.c (do_value_free_to_mark)
2911 (make_cleanup_value_free_to_mark): Remove.
2912 * utils.h (make_cleanup_value_free_to_mark): Remove.
2913
2914 2018-07-19 Pedro Alves <palves@redhat.com>
2915
2916 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
2917 forwarding reference.
2918
2919 2018-07-18 Pedro Alves <palves@redhat.com>
2920
2921 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
2922 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
2923 cleanup.
2924
2925 2018-07-18 Pedro Alves <palves@redhat.com>
2926
2927 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
2928 exceptions.
2929 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
2930 (gdbscm_wrap): New.
2931 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
2932 directly instead of a cleanup.
2933 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
2934 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
2935 (vlscm_binop_gdbthrow): New, factored out from ...
2936 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
2937 (vlscm_rich_compare): Use gdbscm_wrap.
2938 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
2939 instead of a cleanup.
2940 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
2941 cleanup.
2942 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2943 Use xfree directly instead of a cleanup.
2944 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
2945 Adjust to use gdbscm_wrap and scoped_value_mark.
2946 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
2947 (gdbscm_value_address, gdbscm_value_dereference)
2948 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
2949 scoped_value_mark.
2950 (gdbscm_value_dynamic_type): Use scoped_value_mark.
2951 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
2952 scoped_value_mark.
2953 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
2954 gdbscm_wrap and scoped_value_mark.
2955 (gdbscm_value_to_string): Use xfree directly instead of a
2956 cleanup. Move 'buffer' unique_ptr to TRY scope.
2957 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
2958 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
2959 scoped_value_mark.
2960 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
2961 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
2962 scoped_value_mark.
2963 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
2964 gdbscm_wrap.
2965
2966 2018-07-18 Tom de Vries <tdevries@suse.de>
2967
2968 * findvar.c (default_read_var_value): Also resolve dynamic type for
2969 LOC_OPTIMIZED_OUT vars.
2970
2971 2018-07-18 Maciej W. Rozycki <macro@mips.com>
2972
2973 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
2974 decoding.
2975
2976 2018-07-17 Tom Tromey <tom@tromey.com>
2977
2978 * guile/scm-param.c (pascm_set_func, pascm_show_func)
2979 (compute_enum_list, pascm_set_param_value_x)
2980 (gdbscm_parameter_value): Update.
2981 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
2982 (gdbscm_scm_to_host_string): Update.
2983 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
2984 Update.
2985 * guile/scm-cmd.c (cmdscm_add_completion): Update.
2986 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
2987 * guile/scm-string.c (gdbscm_scm_to_string): Return
2988 unique_xmalloc_ptr.
2989 (gdbscm_scm_to_host_string): Likewise.
2990
2991 2018-07-17 Tom Tromey <tom@tromey.com>
2992
2993 * guile/guile.c (gdbscm_eval_from_control_command): Update.
2994 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
2995 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
2996 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
2997 unique_xmalloc_ptr.
2998
2999 2018-07-17 Tom Tromey <tom@tromey.com>
3000
3001 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3002 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3003 Update.
3004 * guile/scm-cmd.c (cmdscm_function): Update.
3005 * guile/scm-pretty-print.c
3006 (ppscm_print_exception_unless_memory_error): Update.
3007 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3008 Return unique_xmalloc_ptr.
3009
3010 2018-07-17 Tom Tromey <tom@tromey.com>
3011
3012 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3013 Use string_printf.
3014
3015 2018-07-17 Jim Wilson <jimw@sifive.com>
3016
3017 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3018 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3019 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3020 unecessary braces after EF_RISCV_RVC test. Delete call to
3021 set_gdbarch_decr_pc_after_break.
3022
3023 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3024 RISCV_LAST_FP_REGNUM + 1.
3025 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3026
3027 2018-07-17 Tom Tromey <tom@tromey.com>
3028
3029 * configure.ac: Remove --disable-gdbcli.
3030 * configure: Rebuild.
3031 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3032 (SUBDIR_CLI_CFLAGS): Remove.
3033 (SFILES): Use SUBDIR_CLI_SRCS.
3034 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3035
3036 2018-07-17 Tom Tromey <tom@tromey.com>
3037
3038 PR gdb/18624:
3039 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3040
3041 2018-07-16 Jim Wilson <jimw@sifive.com>
3042
3043 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3044
3045 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3046
3047 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3048 variable.
3049 (libunwind_frame_sniffer): Likewise.
3050 (libunwind_frame_prev_register): Likewise.
3051 (libunwind_sigtramp_frame_sniffer): Likewise.
3052 * ia64-tdep.c (ia64_access_reg): Likewise.
3053 (ia64_access_rse_reg): Likewise.
3054 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3055 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3056
3057 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3058
3059 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3060
3061 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3062
3063 * remote-sim.c (gdbsim_target::close,
3064 gdbsim_target::mourn_inferior): Remove unused variables.
3065
3066 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3067
3068 * ia64-tdep.c (ktab_buf): New global.
3069 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3070 (get_kernel_table): Adjust.
3071
3072 2018-07-16 Tom Tromey <tom@tromey.com>
3073
3074 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3075 * dwarf2read.c (using_directives, new_symbol): Use
3076 outermost_context_p.
3077 * dbxread.c (process_one_symbol): Use outermost_context_p.
3078 * coffread.c (coff_symtab_read): Use outermost_context_p.
3079
3080 2018-07-16 Tom Tromey <tom@tromey.com>
3081
3082 * dwarf2read.c (using_directives, read_func_scope)
3083 (read_lexical_block_scope): Update.
3084 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3085 * buildsym.h (local_using_directives, global_using_directives):
3086 Don't declare.
3087 (get_local_using_directives, set_local_using_directives)
3088 (get_global_using_directives): Declare.
3089 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3090 m_global_using_directives>: New members.
3091 (finish_block_internal, prepare_for_building)
3092 (reset_symtab_globals, end_symtab_get_static_block)
3093 (push_context): Update.
3094 (get_local_using_directives, set_local_using_directives)
3095 (get_global_using_directives): New functions.
3096 (buildsym_init): Update.
3097
3098 2018-07-16 Tom Tromey <tom@tromey.com>
3099
3100 * xcoffread.c (xcoff_initial_scan): Don't call
3101 free_pending_blocks.
3102 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3103 * buildsym.h (class scoped_free_pendings): Add constructor.
3104 (free_pending_blocks): Don't declare.
3105 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3106 (free_pending_blocks): Now static.
3107
3108 2018-07-16 Tom Tromey <tom@tromey.com>
3109
3110 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3111 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3112 member.
3113 (struct subfile_stack): Remove.
3114 (subfile_stack): Remove.
3115 (push_subfile, pop_subfile, buildsym_init): Update.
3116
3117 2018-07-16 Tom Tromey <tom@tromey.com>
3118
3119 * buildsym.c (push_subfile): Use gdb_assert.
3120 (pop_subfile): Use gdb_assert.
3121
3122 2018-07-16 Tom Tromey <tom@tromey.com>
3123
3124 * buildsym.h (merge_symbol_lists): Remove.
3125 * buildsym.c (merge_symbol_lists): Remove.
3126
3127 2018-07-16 Tom Tromey <tom@tromey.com>
3128
3129 * stabsread.c (scan_file_globals): Update comment.
3130 * stabsread.h (scan_file_globals): Move from buildsym.h.
3131 * buildsym.h (scan_file_globals): Move to stabsread.h.
3132
3133 2018-07-16 Tom Tromey <tom@tromey.com>
3134
3135 * xcoffread.c (xcoff_new_init): Update.
3136 * mipsread.c (mipscoff_new_init): Update.
3137 * mdebugread.c (mdebug_build_psymtabs): Update.
3138 * elfread.c (elf_new_init): Update.
3139 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3140 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3141 * buildsym.h (buildsym_new_init): Don't declare.
3142 * buildsym.c (buildsym_new_init): Remove.
3143
3144 2018-07-16 Tom Tromey <tom@tromey.com>
3145
3146 * stabsread.h (within_function): Move from buildsym.h.
3147 * stabsread.c (start_stabs): Clear within_function.
3148 * coffread.c (coff_start_symtab): Clear within_function.
3149 * buildsym.h (within_function): Move to stabsread.h.
3150 * buildsym.c (prepare_for_building): Update.
3151
3152 2018-07-16 Tom Tromey <tom@tromey.com>
3153
3154 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3155 * dwarf2read.c (dwarf2_start_symtab): Don't set
3156 processing_gcc_compilation.
3157 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3158
3159 2018-07-16 Tom Tromey <tom@tromey.com>
3160
3161 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3162 (next_symbol_text_func): Move from buildsym.h.
3163 * stabsread.c (hashname): Move from buildsym.c.
3164 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3165 (next_symbol_text_func, hashname): Move to stabsread.h.
3166 * buildsym.c: Don't include bcache.h
3167 (hashname): Move to stasbread.c.
3168
3169 2018-07-16 Tom Tromey <tom@tromey.com>
3170
3171 * buildsym.h (context_stack_size): Don't declare.
3172 * buildsym.c (context_stack_size): New global.
3173
3174 2018-07-16 Tom Tromey <tom@tromey.com>
3175
3176 * dbxread.c (processing_acc_compilation): New global.
3177 * buildsym.h (processing_acc_compilation): Don't declare.
3178
3179 2018-07-16 Tom Tromey <tom@tromey.com>
3180
3181 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3182 * dbxread.c (read_ofile_symtab): Update.
3183 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3184 * buildsym.h (last_source_start_addr): Remove.
3185 (set_last_source_start_addr, get_last_source_start_addr):
3186 Declare.
3187 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3188 parameter.
3189 (struct buildsym_compunit) <m_last_source_start_addr>: New
3190 member.
3191 (prepare_for_building): Remove start_addr parameter.
3192 (start_symtab, restart_symtab, end_symtab_get_static_block)
3193 (end_symtab_with_blockvector): Update.
3194 (set_last_source_start_addr, get_last_source_start_addr): New
3195 functions.
3196
3197 2018-07-16 Tom Tromey <tom@tromey.com>
3198
3199 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3200 member.
3201 (have_line_numbers): Remove.
3202 (record_line, prepare_for_building, end_symtab_get_static_block)
3203 (augment_type_symtab): Update.
3204
3205 2018-07-16 Tom Tromey <tom@tromey.com>
3206
3207 * buildsym.c (~buildsym_compunit): Free the macro table.
3208 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3209 methods.
3210 <m_pending_macros>: New member.
3211 (pending_macros): Remove.
3212 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3213 (reset_symtab_globals, end_symtab_get_static_block)
3214 (end_symtab_with_blockvector, augment_type_symtab)
3215 (buildsym_init): Update.
3216
3217 2018-07-16 Tom Tromey <tom@tromey.com>
3218
3219 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3220 parameter.
3221 (buildsym_compunit::set_last_source_file): New method.
3222 <m_last_source_file>: New member.
3223 (prepare_for_building): Remove "name" parameter.
3224 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3225 (last_source_file): Remove.
3226 (set_last_source_file, get_last_source_file): Update.
3227
3228 2018-07-16 Tom Tromey <tom@tromey.com>
3229
3230 * buildsym.c (prepare_for_building): Add assert.
3231
3232 2018-07-16 Tom Tromey <tom@tromey.com>
3233
3234 * buildsym.c (~buildsym_compunit): Update.
3235 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3236 (start_subfile, patch_subfile_names)
3237 (end_symtab_with_blockvector): Update.
3238
3239 2018-07-16 Tom Tromey <tom@tromey.com>
3240
3241 * buildsym.c (struct buildsym_compunit): Add constructor,
3242 destructor, initializers.
3243 (start_buildsym_compunit): Remove.
3244 (free_buildsym_compunit): Use "delete".
3245 (start_symtab, restart_symtab): Use "new".
3246
3247 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3248
3249 * symfile.c (set_objfile_default_section_offset): Remove struct
3250 keyword.
3251
3252 2018-07-14 Stafford Horne <shorne@gmail.com>
3253
3254 * (Responsible Maintainers): Add myself as or1k maintainer.
3255
3256 2018-07-13 Tom Tromey <tom@tromey.com>
3257
3258 * symfile.c (set_objfile_default_section_offset): Use extra braces
3259 around initializer.
3260
3261 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3262
3263 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3264 non-branching basr.
3265
3266 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3267
3268 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3269 unittests/cli-utils-selftests.c
3270 * unittests/cli-utils-selftests.c: New file.
3271
3272 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3273
3274 * NEWS: Mention new commands. Mention change to 'thread apply'.
3275
3276 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3277
3278 * thread.c (thr_try_catch_cmd): New function.
3279 (thread_apply_all_command): Handle qcs flags.
3280 (thread_apply_command): Handle qcs flags.
3281 (taas_command): New function.
3282 (tfaas_command): New function.
3283 (_initialize_thread): Update to setup the new commands 'taas
3284 and 'tfaas'. Change doc string for 'thread apply'.
3285
3286 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3287
3288 * stack.c: (trailing_outermost_frame): New function, mostly
3289 extracted from backtrace_command_1.
3290 (leading_innermost_frame): New function.
3291 (backtrace_command_1): Update to call trailing_outermost_frame.
3292 (frame_apply_command_count): New function.
3293 (frame_apply_level_command): New function.
3294 (frame_apply_all_command): New function.
3295 (frame_apply_command): New function.
3296 (faas_command): New function.
3297 (frame_cmd_list): New variable.
3298 (_initialize_stack): Update to setup the new commands 'frame apply'
3299 and 'faas'.
3300
3301 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3302
3303 * cli-utils.c (number_or_range_parser::get_number): Only handle
3304 numbers or convenience var as numbers.
3305 (parse_flags): New function.
3306 (parse_flags_qcs): New function.
3307 (number_or_range_parser::finished): Ensure parsing end is detected
3308 before end of string.
3309 * cli-utils.h (parse_flags): New function.
3310 (parse_flags_qcs): New function.
3311 (number_or_range_parser): Remove m_finished bool.
3312 (number_or_range_parser::skip_range): Set m_in_range to false.
3313
3314 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3315
3316 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3317 on Windows.
3318
3319 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3320 Jan Kratochvil <jan.kratochvil@redhat.com>
3321 Paul Fertser <fercerpav@gmail.com>
3322 Tsutomu Seki <sekiriki@gmail.com>
3323 Pedro Alves <palves@redhat.com>
3324
3325 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3326 'unittests/parse-connection-spec-selftests.c'.
3327 (COMMON_SFILES): Add 'common/netstuff.c'.
3328 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3329 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3330 * common/netstuff.c: New file.
3331 * common/netstuff.h: New file.
3332 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3333 (wait_for_connect): Update comment. New parameter
3334 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3335 Use 'sock' directly instead of 'scb->fd'.
3336 (try_connect): New function, with code from 'net_open'.
3337 (net_open): Rewrite main loop to deal with multiple
3338 sockets/addresses. Handle IPv6-style hostnames; implement
3339 support for IPv6 connections.
3340 * unittests/parse-connection-spec-selftests.c: New file.
3341
3342 2018-07-11 Pedro Alves <palves@redhat.com>
3343
3344 PR gdb/23377
3345 * remote.c (remote_target::remote_detach_pid): Call
3346 set_current_process.
3347
3348 2018-07-11 Pedro Alves <palves@redhat.com>
3349
3350 * h8300-tdep.c (h8300_gdbarch_init): Remove
3351 set_gdbarch_ecoff_reg_to_regnum calls.
3352
3353 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3354
3355 PR c++/23373
3356 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3357 offsets/sizes for static members of a class/struct.
3358
3359 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3360
3361 * target-descriptions.c (tdesc_register_bitsize): Rename.
3362 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3363 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3364 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3365
3366 2018-07-10 Tom Tromey <tom@tromey.com>
3367
3368 * breakpoint.c (moribund_locations): Now static and a
3369 std::vector.
3370 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3371 (build_bpstat_chain, update_global_location_list)
3372 (breakpoint_retire_moribund): Update.
3373 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3374 VEC.
3375
3376 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3377
3378 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3379 (riscv_register_reggroup_p): Use new function, remove unneeded
3380 parenthesis.
3381 (riscv_push_dummy_call): Extend assert to compare against xlen or
3382 flen based on register type.
3383
3384 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3385
3386 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3387
3388 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3389
3390 * remote.c (show_hardware_watchpoint_limit): New function.
3391 (show_hardware_watchpoint_length_limit): New function.
3392 (show_hardware_breakpoint_limit): New function.
3393 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3394 where appropriate, update help text.
3395
3396 2018-07-09 Tom Tromey <tom@tromey.com>
3397
3398 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3399 (CLIBS): Don't mention NAT_CLIBS.
3400
3401 2018-07-09 Tom Tromey <tom@tromey.com>
3402
3403 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3404 (LIBGDB_OBS, clean mostlyclean): Update.
3405 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3406
3407 2018-07-09 Tom Tromey <tom@tromey.com>
3408
3409 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3410 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3411 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3412
3413 2018-07-09 Tom Tromey <tom@tromey.com>
3414
3415 * Makefile.in (ALLDEPFILES): Remove exec.c.
3416 (COMMON_OBS): Remove exec.o.
3417 (COMMON_SFILES): Add exec.c.
3418
3419 2018-07-09 Tom Tromey <tom@tromey.com>
3420
3421 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3422
3423 2018-07-09 Tom Tromey <tom@tromey.com>
3424
3425 * Makefile.in (clean mostlyclean): Remove stamp-version.
3426 (version.c): Depend on stamp-version.
3427 (stamp-version): New rule, from version.c rule.
3428
3429 2018-07-09 Tom Tromey <tom@tromey.com>
3430
3431 * Makefile.in (init.c): Depend on stamp-init.
3432 (stamp-init): New rule, from init.c rule.
3433 (clean mostlyclean): Remove stamp-init.
3434
3435 2018-07-09 Tom Tromey <tom@tromey.com>
3436
3437 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3438 SUBDIR_GCC_COMPILE_SRCS.
3439
3440 2018-07-09 Tom Tromey <tom@tromey.com>
3441
3442 * Makefile.in (init.c): Remove some unused sed rules.
3443
3444 2018-07-09 Tom Tromey <tom@tromey.com>
3445
3446 * Makefile.in (TSOBS): Remove.
3447 (INIT_FILES): Update.
3448 (LIBGDB_OBS): Update.
3449 (COMMON_SFILES): Add inflow.c.
3450 (SFILES): Remove inflow.c.
3451
3452 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3453
3454 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3455
3456 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3457
3458 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3459 get_saveloc_name, is_signal_frame_name, step_name,
3460 init_remote_name, create_addr_space_name,
3461 destroy_addr_space_name, search_unwind_table_name,
3462 find_dyn_list_name): Constify.
3463
3464 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3465
3466 * darwin-nat.c (darwin_pthread_kill): New function.
3467 (darwin_resume_thread): Use darwin_pthread_kill.
3468
3469 2018-07-05 Tom de Vries <tdevries@suse.de>
3470
3471 * macroexp.c (macro_buffer) <operator=>: New member function.
3472
3473 2018-07-04 Tom Tromey <tom@tromey.com>
3474
3475 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3476
3477 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3478
3479 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3480 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3481 * maint.c: Likewise.
3482 * top.c: Likewise.
3483
3484 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3485
3486 * NEWS: Create a new section for the next release branch.
3487 Rename the section of the current branch, now that it has
3488 been cut.
3489
3490 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3491
3492 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3493 * version.in: Bump version to 8.2.50.DATE-git.
3494
3495 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3496 Pedro Alves <palves@redhat.com>
3497
3498 * linux-nat.c (linux_init_ptrace): Rename to ...
3499 (linux_init_ptrace_procfs): ... this. Call
3500 linux_proc_init_warnings.
3501 (linux_nat_target::post_attach)
3502 (linux_nat_target::post_startup_inferior): Adjust.
3503 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3504 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3505
3506 2018-07-04 Tom de Vries <tdevries@suse.de>
3507
3508 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3509 check ...
3510 (read_comp_unit_head): ... here.
3511
3512 2018-07-03 Tom Tromey <tom@tromey.com>
3513
3514 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3515 (stop_tracing, tstatus_command)
3516 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3517 (print_one_static_tracepoint_marker): Update.
3518 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3519 std::vector.
3520 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3521 VEC.
3522 (all_tracepoints, static_tracepoints_here): Return std::vector.
3523
3524 2018-07-03 Tom Tromey <tom@tromey.com>
3525
3526 * common/ptid.c (ptid_equal): Remove.
3527 * common/ptid.h (ptid_equal): Don't declare.
3528 * ada-tasks.c: Update.
3529 * breakpoint.c: Update.
3530 * common/agent.c: Update.
3531 * corelow.c: Update.
3532 * darwin-nat-info.c: Update.
3533 * darwin-nat.c: Update.
3534 * dcache.c: Update.
3535 * dtrace-probe.c: Update.
3536 * dummy-frame.c: Update.
3537 * fbsd-nat.c: Update.
3538 * frame.c: Update.
3539 * gdbthread.h: Update.
3540 * gnu-nat.c: Update.
3541 * go32-nat.c: Update.
3542 * inf-loop.c: Update.
3543 * inf-ptrace.c: Update.
3544 * infcall.c: Update.
3545 * infcmd.c: Update.
3546 * inflow.c: Update.
3547 * infrun.c: Update.
3548 * linux-fork.c: Update.
3549 * linux-nat.c: Update.
3550 * linux-thread-db.c: Update.
3551 * mi/mi-cmd-var.c: Update.
3552 * mi/mi-interp.c: Update.
3553 * mi/mi-main.c: Update.
3554 * nto-procfs.c: Update.
3555 * ppc-linux-tdep.c: Update.
3556 * procfs.c: Update.
3557 * python/py-inferior.c: Update.
3558 * python/py-record-btrace.c: Update.
3559 * python/py-record.c: Update.
3560 * ravenscar-thread.c: Update.
3561 * regcache.c: Update.
3562 * remote-sim.c: Update.
3563 * remote.c: Update.
3564 * sol-thread.c: Update.
3565 * solib.c: Update.
3566 * target.c: Update.
3567 * tui/tui-stack.c: Update.
3568 * varobj.c: Update.
3569 * windows-nat.c: Update.
3570 * windows-tdep.c: Update.
3571
3572 2018-07-03 Tom Tromey <tom@tromey.com>
3573
3574 * common/ptid.c (ptid_match): Remove.
3575 * common/ptid.h (ptid_match): Don't declare.
3576 * fbsd-nat.c: Update.
3577 * infcmd.c: Update.
3578 * infrun.c: Update.
3579 * linux-nat.c: Update.
3580 * record-btrace.c: Update.
3581 * regcache.c: Update.
3582 * remote.c: Update.
3583
3584 2018-07-03 Tom Tromey <tom@tromey.com>
3585
3586 * common/ptid.c (ptid_tid_p): Remove.
3587 * common/ptid.h (ptid_tid_p): Don't declare.
3588 * sol-thread.c: Update.
3589
3590 2018-07-03 Tom Tromey <tom@tromey.com>
3591
3592 * common/ptid.c (ptid_lwp_p): Remove.
3593 * common/ptid.h (ptid_lwp_p): Don't declare.
3594 * fbsd-nat.c: Update.
3595 * linux-nat.c: Update.
3596 * nat/linux-procfs.c: Update.
3597 * nat/x86-linux-dregs.c: Update.
3598 * sol-thread.c: Update.
3599
3600 2018-07-03 Tom Tromey <tom@tromey.com>
3601
3602 * common/ptid.c (ptid_is_pid): Remove.
3603 * common/ptid.h (ptid_is_pid): Don't declare.
3604 * infrun.c: Update.
3605 * linux-nat.c: Update.
3606 * mi/mi-interp.c: Update.
3607 * remote.c: Update.
3608 * thread.c: Update.
3609
3610 2018-07-03 Tom Tromey <tom@tromey.com>
3611
3612 * common/ptid.c (ptid_get_tid): Remove.
3613 * common/ptid.h (ptid_get_tid): Don't declare.
3614 * ada-tasks.c: Update.
3615 * aix-thread.c: Update.
3616 * bsd-uthread.c: Update.
3617 * darwin-nat.c: Update.
3618 * fbsd-nat.c: Update.
3619 * i386-darwin-nat.c: Update.
3620 * infrun.c: Update.
3621 * linux-tdep.c: Update.
3622 * nto-procfs.c: Update.
3623 * ppc-ravenscar-thread.c: Update.
3624 * python/py-infthread.c: Update.
3625 * ravenscar-thread.c: Update.
3626 * sol-thread.c: Update.
3627 * sparc-ravenscar-thread.c: Update.
3628 * windows-nat.c: Update.
3629
3630 2018-07-03 Tom Tromey <tom@tromey.com>
3631
3632 * common/ptid.c (ptid_get_lwp): Remove.
3633 * common/ptid.h (ptid_get_lwp): Don't declare.
3634 * aarch64-linux-nat.c: Update.
3635 * ada-tasks.c: Update.
3636 * aix-thread.c: Update.
3637 * amd64-linux-nat.c: Update.
3638 * arm-linux-nat.c: Update.
3639 * corelow.c: Update.
3640 * fbsd-nat.c: Update.
3641 * fbsd-tdep.c: Update.
3642 * gnu-nat.c: Update.
3643 * i386-cygwin-tdep.c: Update.
3644 * i386-gnu-nat.c: Update.
3645 * i386-linux-nat.c: Update.
3646 * ia64-linux-nat.c: Update.
3647 * inf-ptrace.c: Update.
3648 * infrun.c: Update.
3649 * linux-fork.c: Update.
3650 * linux-nat.c: Update.
3651 * linux-tdep.c: Update.
3652 * linux-thread-db.c: Update.
3653 * mips-linux-nat.c: Update.
3654 * nat/aarch64-linux-hw-point.c: Update.
3655 * nat/aarch64-linux.c: Update.
3656 * nat/linux-btrace.c: Update.
3657 * nat/linux-osdata.c: Update.
3658 * nat/linux-procfs.c: Update.
3659 * nat/x86-linux-dregs.c: Update.
3660 * obsd-nat.c: Update.
3661 * ppc-fbsd-nat.c: Update.
3662 * ppc-linux-nat.c: Update.
3663 * procfs.c: Update.
3664 * python/py-infthread.c: Update.
3665 * ravenscar-thread.c: Update.
3666 * remote.c: Update.
3667 * s390-linux-nat.c: Update.
3668 * sol-thread.c: Update.
3669 * sol2-tdep.c: Update.
3670 * spu-linux-nat.c: Update.
3671 * x86-linux-nat.c: Update.
3672 * xtensa-linux-nat.c: Update.
3673
3674 2018-07-03 Tom Tromey <tom@tromey.com>
3675
3676 * common/ptid.c (ptid_get_pid): Remove.
3677 * common/ptid.h (ptid_get_pid): Don't declare.
3678 * aarch64-linux-nat.c: Update.
3679 * ada-lang.c: Update.
3680 * aix-thread.c: Update.
3681 * alpha-bsd-nat.c: Update.
3682 * amd64-fbsd-nat.c: Update.
3683 * amd64-linux-nat.c: Update.
3684 * arm-linux-nat.c: Update.
3685 * arm-nbsd-nat.c: Update.
3686 * auxv.c: Update.
3687 * break-catch-syscall.c: Update.
3688 * breakpoint.c: Update.
3689 * bsd-uthread.c: Update.
3690 * corelow.c: Update.
3691 * ctf.c: Update.
3692 * darwin-nat.c: Update.
3693 * fbsd-nat.c: Update.
3694 * fbsd-tdep.c: Update.
3695 * gcore.c: Update.
3696 * gnu-nat.c: Update.
3697 * hppa-nbsd-nat.c: Update.
3698 * hppa-obsd-nat.c: Update.
3699 * i386-fbsd-nat.c: Update.
3700 * ia64-linux-nat.c: Update.
3701 * inf-ptrace.c: Update.
3702 * infcmd.c: Update.
3703 * inferior.c: Update.
3704 * inferior.h: Update.
3705 * inflow.c: Update.
3706 * infrun.c: Update.
3707 * linux-fork.c: Update.
3708 * linux-nat.c: Update.
3709 * linux-tdep.c: Update.
3710 * linux-thread-db.c: Update.
3711 * m68k-bsd-nat.c: Update.
3712 * mi/mi-interp.c: Update.
3713 * mi/mi-main.c: Update.
3714 * mips-linux-nat.c: Update.
3715 * mips-nbsd-nat.c: Update.
3716 * mips64-obsd-nat.c: Update.
3717 * nat/aarch64-linux-hw-point.c: Update.
3718 * nat/aarch64-linux.c: Update.
3719 * nat/linux-btrace.c: Update.
3720 * nat/linux-osdata.c: Update.
3721 * nat/linux-procfs.c: Update.
3722 * nat/x86-linux-dregs.c: Update.
3723 * nto-procfs.c: Update.
3724 * obsd-nat.c: Update.
3725 * ppc-linux-nat.c: Update.
3726 * ppc-nbsd-nat.c: Update.
3727 * ppc-obsd-nat.c: Update.
3728 * proc-service.c: Update.
3729 * procfs.c: Update.
3730 * python/py-inferior.c: Update.
3731 * python/py-infthread.c: Update.
3732 * ravenscar-thread.c: Update.
3733 * record.c: Update.
3734 * remote-sim.c: Update.
3735 * remote.c: Update.
3736 * rs6000-nat.c: Update.
3737 * s390-linux-nat.c: Update.
3738 * sh-nbsd-nat.c: Update.
3739 * sol-thread.c: Update.
3740 * sparc-nat.c: Update.
3741 * sparc64-tdep.c: Update.
3742 * spu-linux-nat.c: Update.
3743 * spu-tdep.c: Update.
3744 * target-debug.h: Update.
3745 * target.c: Update.
3746 * thread.c: Update.
3747 * tid-parse.c: Update.
3748 * tracefile-tfile.c: Update.
3749 * vax-bsd-nat.c: Update.
3750 * windows-nat.c: Update.
3751 * x86-linux-nat.c: Update.
3752 * x86-nat.c: Update.
3753
3754 2018-07-03 Tom Tromey <tom@tromey.com>
3755
3756 * common/ptid.c (pid_to_ptid): Remove.
3757 * common/ptid.h (pid_to_ptid): Don't declare.
3758 * aix-thread.c: Update.
3759 * arm-linux-nat.c: Update.
3760 * common/ptid.c: Update.
3761 * common/ptid.h: Update.
3762 * corelow.c: Update.
3763 * ctf.c: Update.
3764 * darwin-nat.c: Update.
3765 * fbsd-nat.c: Update.
3766 * fork-child.c: Update.
3767 * gnu-nat.c: Update.
3768 * go32-nat.c: Update.
3769 * inf-ptrace.c: Update.
3770 * infcmd.c: Update.
3771 * inferior.c: Update.
3772 * infrun.c: Update.
3773 * linux-fork.c: Update.
3774 * linux-nat.c: Update.
3775 * nat/aarch64-linux-hw-point.c: Update.
3776 * nat/fork-inferior.c: Update.
3777 * nat/x86-linux-dregs.c: Update.
3778 * nto-procfs.c: Update.
3779 * obsd-nat.c: Update.
3780 * procfs.c: Update.
3781 * progspace.c: Update.
3782 * remote.c: Update.
3783 * rs6000-nat.c: Update.
3784 * s390-linux-nat.c: Update.
3785 * sol-thread.c: Update.
3786 * spu-linux-nat.c: Update.
3787 * target.c: Update.
3788 * top.c: Update.
3789 * tracefile-tfile.c: Update.
3790 * windows-nat.c: Update.
3791
3792 2018-07-03 Tom Tromey <tom@tromey.com>
3793
3794 * common/ptid.h (ptid_build): Don't declare.
3795 * common/ptid.c (ptid_build): Remove.
3796 * aix-thread.c: Update.
3797 * bsd-kvm.c: Update.
3798 * bsd-uthread.c: Update.
3799 * common/agent.c: Update.
3800 * common/ptid.c: Update.
3801 * common/ptid.h: Update.
3802 * corelow.c: Update.
3803 * darwin-nat.c: Update.
3804 * fbsd-nat.c: Update.
3805 * gnu-nat.c: Update.
3806 * linux-fork.c: Update.
3807 * linux-nat.c: Update.
3808 * linux-thread-db.c: Update.
3809 * nat/linux-osdata.c: Update.
3810 * nat/linux-procfs.c: Update.
3811 * nto-procfs.c: Update.
3812 * obsd-nat.c: Update.
3813 * proc-service.c: Update.
3814 * procfs.c: Update.
3815 * ravenscar-thread.c: Update.
3816 * remote-sim.c: Update.
3817 * remote.c: Update.
3818 * sol-thread.c: Update.
3819 * target.c: Update.
3820 * windows-nat.c: Update.
3821
3822 2018-07-03 Tom Tromey <tom@tromey.com>
3823
3824 * infrun.c (follow_exec): Use exit_inferior_silent.
3825 * inferior.c (exit_inferior_num_silent): Remove.
3826 * inferior.h (exit_inferior_num_silent): Don't declare.
3827
3828 2018-07-03 Tom Tromey <tom@tromey.com>
3829
3830 PR cli/23340:
3831 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3832 inferior_ptid on error.
3833
3834 2018-07-02 Maciej W. Rozycki <macro@mips.com>
3835 Simon Marchi <simon.marchi@polymtl.ca>
3836
3837 PR tdep/8282
3838 * disasm.h (gdb_disassembler): Add
3839 `m_disassembler_options_holder'. member
3840 * disasm.c (get_all_disassembler_options): New function.
3841 (gdb_disassembler::gdb_disassembler): Use it.
3842 (gdb_buffered_insn_length_init_dis): Likewise.
3843 (gdb_buffered_insn_length): Adjust accordingly.
3844 (set_disassembler_options): Handle options with arguments.
3845 (show_disassembler_options_sfunc): Likewise. Add a leading new
3846 line if showing options with descriptions.
3847 (disassembler_options_completer): Adapt to using the
3848 `disasm_options_and_args_t' structure.
3849 * mips-tdep.c (mips_disassembler_options): New variable.
3850 (mips_disassembler_options_o32): Likewise.
3851 (mips_disassembler_options_n32): Likewise.
3852 (mips_disassembler_options_n64): Likewise.
3853 (gdb_print_insn_mips): Don't set `disassembler_options'.
3854 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3855 functions.
3856 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
3857 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
3858 `gdbarch_disassembler_options_implicit' and
3859 `gdbarch_valid_disassembler_options'.
3860 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
3861 `disasm_options_and_args_t' structure.
3862 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
3863 method.
3864 (valid_disassembler_options): Switch from `disasm_options_t' to
3865 the `disasm_options_and_args_t' structure.
3866 * NEWS: Document `set disassembler-options' support for the MIPS
3867 target.
3868 * gdbarch.h: Regenerate.
3869 * gdbarch.c: Regenerate.
3870
3871 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3872
3873 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
3874
3875 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3876
3877 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
3878 parameter in call to amd64_target_description.
3879 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3880 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
3881 (amd64fbsd_init_abi): Likewise.
3882 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3883 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3884 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3885 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
3886
3887 2018-06-29 Pedro Alves <palves@redhat.com>
3888
3889 * gdb/amd64-tdep.h (amd64_create_target_description): Add
3890 "segments" parameter.
3891 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
3892 (_initialize_amd64_tdep): Update call to
3893 amd64_create_target_description.
3894 (amd64_target_description): Add "segments" parameter. Adjust
3895 the implementation to use it.
3896 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
3897 call to amd64_create_target_description.
3898 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
3899 * gdb/arch/amd64.h (amd64_create_target_description): Add
3900 "segments" register.
3901 * gdb/arch/amd64.c (amd64_create_target_description): Add
3902 "segments" parameter. Call create_feature_i386_64bit_segments
3903 only if SEGMENTS is true.
3904 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
3905 call to amd64_create_target_description.
3906
3907 2018-06-29 Pedro Alves <palves@redhat.com>
3908
3909 * thread.c (thread_target_id_str): New, factored out from ...
3910 (print_thread_info_1): ... here. Use it to compute the max
3911 "Target Id" column width.
3912
3913 2018-06-29 Pedro Alves <palves@redhat.com>
3914
3915 * remote.c (remote_target::extra_thread_info): Delete
3916 'display_buf' and 'n' locals. from the cache, regardless of
3917 packet mechanims is in use. Use cache for qThreadExtra and qP
3918 methods too.
3919
3920 2018-06-29 Pedro Alves <palves@redhat.com>
3921
3922 * blockframe.c (find_pc_sect_containing_function): New function.
3923 * breakpoint.c (print_breakpoint_location): Don't call
3924 find_pc_sect_function.
3925 * linespec.c (create_sals_line_offset): Record the location's
3926 symbol in the sal.
3927 * linespec.c (convert_address_location_to_sals): Fill in sal's
3928 symbol with find_pc_sect_containing_function.
3929 * symtab.c (find_function_start_sal): Rename to ...
3930 (find_function_start_sal_1): ... this.
3931 (find_function_start_sal): Reimplement as wrapper around
3932 find_function_start_sal_1, and use
3933 find_pc_sect_containing_function to fill in the sal's symbol.
3934 (find_function_start_sal(symbol*, bool)): Adjust.
3935 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
3936 comments.
3937 (find_pc_sect_containing_function): Declare.
3938
3939 2018-06-29 Pedro Alves <palves@redhat.com>
3940
3941 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
3942 true if the the location has no symbol.
3943
3944 2018-06-28 Tom Tromey <tom@tromey.com>
3945
3946 * NEWS: Mention --enable-codesign.
3947 * silent-rules.mk (ECHO_SIGN): New variable.
3948 * configure.ac: Add --enable-codesign.
3949 * configure: Rebuild.
3950 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
3951 (gdb$(EXEEXT)): Optionally invoke codesign.
3952
3953 2018-06-28 Pedro Alves <palves@redhat.com>
3954
3955 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
3956 comments.
3957 (switch_to_thread_no_regs): Adjust comment.
3958 * infcmd.c (stop_pc): Delete.
3959 (post_create_inferior, info_program_command): Replace references
3960 to stop_pc with references to thread_info->suspend.stop_pc.
3961 * inferior.h (stop_pc): Delete declaration.
3962 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
3963 (handle_inferior_event_1, handle_signal_stop)
3964 (process_event_stop_test, keep_going_stepped_thread)
3965 (handle_step_into_function, handle_step_into_function_backward)
3966 (print_stop_location): Replace references to stop_pc with
3967 references to thread_info->suspend.stop_pc.
3968 (struct infcall_suspend_state) <stop_pc>: Delete field.
3969 (save_infcall_suspend_state, restore_infcall_suspend_state):
3970 Remove references to inf_stat->stop_pc.
3971 * linux-fork.c (fork_load_infrun_state): Likewise.
3972 * record-btrace.c (record_btrace_set_replay): Likewise.
3973 * record-full.c (record_full_goto_entry): Likewise.
3974 * remote.c (print_one_stopped_thread): Likewise.
3975 * target.c (target_resume): Extend comment.
3976 * thread.c (set_executing_thread): New.
3977 (set_executing): Use it.
3978 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
3979 Remove references to stop_pc.
3980
3981 2018-06-28 Pedro Alves <palves@redhat.com>
3982
3983 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
3984 Moving fetching stop_pc until after ecs->event_thread is refreshed.
3985
3986 2018-06-28 Tom Tromey <tom@tromey.com>
3987
3988 * coffread.c (coff_symfile_finish): Update.
3989 * xcoffread.c (xcoff_symfile_finish): Update.
3990 * elfread.c (elf_symfile_finish): Update.
3991 * symfile.h (dwarf2_free_objfile): Don't declare.
3992 * dwarf2read.c (_initialize_dwarf2_read): Use
3993 register_objfile_data_with_cleanup.
3994 (dwarf2_free_objfile): Now static. Change signature.
3995
3996 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3997
3998 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
3999 option "-o" to add-symbol-file-load to add an offset to each
4000 section's load address.
4001 * symfile.c (set_objfile_default_section_offset): New function.
4002
4003 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4004
4005 * symfile.c (add_symbol_file_command): Make sure that sections
4006 with the same name are sorted in the same order.
4007
4008 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4009
4010 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4011 require the second argument. If omitted, load sections at the
4012 addresses specified in the file.
4013
4014 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4015
4016 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4017 (_initialize_symfile): Add option "-o" to symbol-file to add an
4018 offset to each section of the symbol file.
4019
4020 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4021
4022 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4023
4024 2018-06-27 Tom Tromey <tom@tromey.com>
4025
4026 * stack.c (_initialize_stack): Update "func" help text.
4027
4028 2018-06-27 Tom Tromey <tom@tromey.com>
4029
4030 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4031 std::vector.
4032 (unwind_infopy_str, pyuw_create_unwind_info)
4033 (unwind_infopy_add_saved_register, pyuw_sniffer)
4034 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4035 Update.
4036 (struct saved_reg): Add constructor.
4037 <value>: Now a gdbpy_ref<>.
4038
4039 2018-06-27 Tom Tromey <tom@tromey.com>
4040
4041 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4042
4043 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4044
4045 * gdb-gdb.py.in: Format using autopep8.
4046
4047 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4048
4049 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4050 (type_lookup_function): Recognize CORE_ADDR values.
4051
4052 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4053
4054 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4055 print tag_name.
4056
4057 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4058
4059 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4060 <__lt__>: Add.
4061
4062 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4063
4064 * gdb-gdb.py: Move to...
4065 * gdb-gdb.py.in: ... here.
4066 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4067 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4068 dependencies.
4069 (distclean): Remove gdb-gdb.py when cleaning.
4070 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4071 * configure: Re-generate.
4072
4073 2018-06-27 Pedro Alves <palves@redhat.com>
4074
4075 * proc-service.c (get_ps_regcache): New.
4076 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4077 (ps_lsetfpregs): Use it.
4078
4079 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4080
4081 PR gdb/21695
4082 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4083 (dwarf_decode_lines_1): Adjust.
4084
4085 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4086
4087 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4088 override.
4089 <info_proc>: Likewise.
4090
4091 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4092
4093 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4094 to windows_fetch_one_register, and only handle the case of
4095 fetching one register. Move the code that reloads the context
4096 and iterates over all registers if R is negative to...
4097 (windows_nat_target::fetch_registers): ... here.
4098 (do_windows_store_inferior_registers): Rename to
4099 windows_store_one_register, and only handle the case of storing
4100 one register. Move the code that handles the case where r is
4101 negative to...
4102 (windows_nat_target::store_registers) ... here.
4103
4104 2018-06-26 Tom Tromey <tom@tromey.com>
4105
4106 PR rust/22574:
4107 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4108 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4109 Update.
4110 (rust_internal_print_type): Add podata parameter.
4111 (rust_print_type): Update.
4112
4113 2018-06-26 Tom Tromey <tom@tromey.com>
4114
4115 * typeprint.h (struct print_offset_data) <update, finish,
4116 maybe_print_hole>: New methods.
4117 <indentation>: New constant.
4118 * typeprint.c (print_offset_data::indentation): Define.
4119 (print_offset_data::maybe_print_hole, print_offset_data::update)
4120 (print_offset_data::finish): Move from c-typeprint.c and rename.
4121 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4122 (print_spaces_filtered_with_print_options): Update.
4123 (c_print_type_union_field_offset, maybe_print_hole)
4124 (c_print_type_struct_field_offset): Move to typeprint.c and
4125 rename.
4126 (c_type_print_base_struct_union): Update.
4127
4128 2018-06-25 Pedro Alves <palves@redhat.com>
4129
4130 * gdbthread.h (thread_info_ref, delete_thread)
4131 (delete_thread_silent, first_thread_of_inferior)
4132 (any_thread_of_inferior, switch_to_thread)
4133 (enable_thread_stack_temporaries)
4134 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4135 (get_last_thread_stack_temporary)
4136 (value_in_thread_stack_temporaries, can_access_registers_thread):
4137 Spell out "struct thread_info" instead of just "thread_info".
4138 * inferior.h (notice_new_inferior): Likewise.
4139
4140 2018-06-25 Pedro Alves <palves@redhat.com>
4141
4142 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4143 pass thread_info pointer to delete_thread.
4144 (windows_nat_target::detach): Pass inferior pointer to
4145 detach_inferior.
4146 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4147 delete_thread.
4148 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4149 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4150 and pass a thread_info pointer to delete_thread.
4151 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4152 pass thread_info pointer to delete_thread.
4153 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4154 delete_thread_silent call.
4155 * procfs.c (procfs_target::detach): Pass inferior pointer to
4156 detach_inferior.
4157 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4158 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4159 delete_thread_silent call.
4160 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4161 pass thread_info pointer to delete_thread.
4162 (windows_nat_target::detach): Pass inferior pointer to
4163 delete_inferior.
4164
4165 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4166
4167 * regcache.c (readable_regcache::read_part): Fix asserts.
4168 (reg_buffer::raw_collect_part): New function.
4169 (regcache::write_part): Fix asserts.
4170 (reg_buffer::raw_supply_part): New function.
4171 (regcache::transfer_regset_register): New helper function.
4172 (regcache::transfer_regset): Call new functions.
4173 (regcache_supply_regset): Use gdb_byte*.
4174 (regcache::supply_regset): Likewise.
4175 (regcache_collect_regset): Likewise.
4176 (regcache::collect_regset): Likewise.
4177 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4178 (reg_buffer::raw_supply_part): Likewise.
4179 (regcache::transfer_regset_register): Likewise.
4180 (regcache::transfer_regset): Use gdb_byte*.
4181
4182 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4183
4184 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4185
4186 2018-06-21 Pedro Alves <palves@redhat.com>
4187
4188 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4189 instead of a ptid_t. All callers adjusted.
4190 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4191 adjusted.
4192 (print_ada_task_info, display_current_task_id, task_command_1):
4193 Adjust.
4194 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4195 inferior_thread.
4196 (breakpoint_kind): Adjust.
4197 (remove_breakpoints_pid): Rename to ...
4198 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4199 pointer. All callers adjusted.
4200 (bpstat_clear_actions): Use inferior_thread.
4201 (get_bpstat_thread): New.
4202 (bpstat_do_actions): Use it.
4203 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4204 to take a thread_info pointer. All callers adjusted.
4205 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4206 (breakpoint_re_set_thread): Use inferior_thread.
4207 * breakpoint.h (struct inferior): Forward declare.
4208 (bpstat_stop_status): Update.
4209 (remove_breakpoints_pid): Delete.
4210 (remove_breakpoints_inf): New.
4211 * bsd-uthread.c (bsd_uthread_target::wait)
4212 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4213 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4214 (maint_btrace_packet_history_cmd)
4215 (maint_btrace_clear_packet_history_cmd): Adjust.
4216 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4217 inferior_thread.
4218 * cli/cli-interp.c: Include "inferior.h".
4219 * common/refcounted-object.h (struct
4220 refcounted_object_ref_policy): New.
4221 * compile/compile-object-load.c: Include gdbthread.h.
4222 (store_regs): Use inferior_thread.
4223 * corelow.c (core_target::close): Use current_inferior.
4224 (core_target_open): Adjust to use first_thread_of_inferior and use
4225 the current inferior.
4226 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4227 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4228 <thread>: ... this new field. All references adjusted.
4229 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4230 Take a thread_info pointer instead of a ptid_t.
4231 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4232 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4233 thread_info pointer instead of a ptid_t.
4234 * elfread.c: Include "inferior.h".
4235 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4236 Use inferior_thread.
4237 * eval.c (evaluate_subexp): Likewise.
4238 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4239 inferior_thread.
4240 * gdb_proc_service.h (struct thread_info): Forward declare.
4241 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4242 <thread>: ... this new field. All references adjusted.
4243 * gdbarch.h, gdbarch.c: Regenerate.
4244 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4245 'thread' parameter. All implementations and callers adjusted.
4246 * gdbthread.h (thread_info) <set_running>: New method.
4247 (delete_thread, delete_thread_silent): Take a thread_info pointer
4248 instead of a ptid.
4249 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4250 (first_thread_of_process): Delete, replaced by ...
4251 (first_thread_of_inferior): ... this new function. All callers
4252 adjusted.
4253 (any_live_thread_of_process): Delete, replaced by ...
4254 (any_live_thread_of_inferior): ... this new function. All callers
4255 adjusted.
4256 (switch_to_thread, switch_to_no_thread): Declare.
4257 (is_executing): Delete.
4258 (enable_thread_stack_temporaries): Update comment.
4259 <enable_thread_stack_temporaries>: Take a thread_info pointer
4260 instead of a ptid_t. Incref the thread.
4261 <~enable_thread_stack_temporaries>: Decref the thread.
4262 <m_ptid>: Delete
4263 <m_thr>: New.
4264 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4265 (get_last_thread_stack_temporary)
4266 (value_in_thread_stack_temporaries, can_access_registers_thread):
4267 Take a thread_info pointer instead of a ptid_t. All callers
4268 adjusted.
4269 * infcall.c (get_call_return_value): Use inferior_thread.
4270 (run_inferior_call): Work with thread pointers instead of ptid_t.
4271 (call_function_by_hand_dummy): Work with thread pointers instead
4272 of ptid_t. Use thread_info_ref.
4273 * infcmd.c (proceed_thread_callback): Access thread's state
4274 directly.
4275 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4276 access thread's state directly.
4277 (continue_command): Use inferior_thread.
4278 (info_program_command): Use find_thread_ptid and access thread
4279 state directly.
4280 (proceed_after_attach_callback): Use thread state directly.
4281 (notice_new_inferior): Take a thread_info pointer instead of a
4282 ptid_t. All callers adjusted.
4283 (exit_inferior): Take an inferior pointer instead of a pid. All
4284 callers adjusted.
4285 (exit_inferior_silent): New.
4286 (detach_inferior): Delete.
4287 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4288 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4289 (detach_inferior_command, kill_inferior_command): Use
4290 find_inferior_id instead of valid_gdb_inferior_id and
4291 gdb_inferior_id_to_pid.
4292 (inferior_command): Use inferior and thread pointers.
4293 * inferior.h (struct thread_info): Forward declare.
4294 (notice_new_inferior): Take a thread_info pointer instead of a
4295 ptid_t. All callers adjusted.
4296 (detach_inferior): Delete declaration.
4297 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4298 instead of a pid. All callers adjusted.
4299 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4300 (valid_gdb_inferior_id): Delete.
4301 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4302 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4303 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4304 ...
4305 <inf>: ... this new field.
4306 <step_ptid>: Delete, replaced by ...
4307 <step_thread>: ... this new field.
4308 (get_displaced_stepping_state): Take an inferior pointer instead
4309 of a pid. All callers adjusted.
4310 (displaced_step_in_progress_any_inferior): Adjust.
4311 (displaced_step_in_progress_thread): Take a thread pointer instead
4312 of a ptid_t. All callers adjusted.
4313 (displaced_step_in_progress, add_displaced_stepping_state): Take
4314 an inferior pointer instead of a pid. All callers adjusted.
4315 (get_displaced_step_closure_by_addr): Adjust.
4316 (remove_displaced_stepping_state): Take an inferior pointer
4317 instead of a pid. All callers adjusted.
4318 (displaced_step_prepare_throw, displaced_step_prepare)
4319 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4320 All callers adjusted.
4321 (start_step_over): Adjust.
4322 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4323 displaced step queue.
4324 (do_target_resume): Adjust.
4325 (fetch_inferior_event): Use inferior_thread.
4326 (context_switch, get_inferior_stop_soon): Take an
4327 execution_control_state pointer instead of a ptid_t. All callers
4328 adjusted.
4329 (switch_to_thread_cleanup): Delete.
4330 (stop_all_threads): Use scoped_restore_current_thread.
4331 * inline-frame.c: Include "gdbthread.h".
4332 (inline_state) <inline_state>: Take a thread pointer instead of a
4333 ptid_t. All callers adjusted.
4334 <ptid>: Delete, replaced by ...
4335 <thread>: ... this new field.
4336 (find_inline_frame_state): Take a thread pointer instead of a
4337 ptid_t. All callers adjusted.
4338 (skip_inline_frames, step_into_inline_frame)
4339 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4340 pointer instead of a ptid_t. All callers adjusted.
4341 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4342 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4343 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4344 pointers directly.
4345 * linux-nat.c (get_detach_signal): Likewise.
4346 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4347 (thread_db_notice_clone): Adjust.
4348 (thread_db_find_new_threads_silently)
4349 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4350 a thread pointer instead of a ptid_t. All callers adjusted.
4351 * mi/mi-cmd-var.c: Include "inferior.h".
4352 (mi_cmd_var_update_iter): Update to use thread pointers.
4353 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4354 inferior directly.
4355 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4356 out to ...
4357 (mi_output_running): ... this new function.
4358 (mi_on_resume_1): Adjust to use it.
4359 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4360 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4361 directly.
4362 (interrupt_thread_callback): : Adjust to use thread and inferior
4363 pointers.
4364 * proc-service.c: Include "gdbthread.h".
4365 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4366 * progspace-and-thread.c: Include "inferior.h".
4367 * progspace.c: Include "inferior.h".
4368 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4369 hold a reference to an inferior_object.
4370 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4371 inferior_thread.
4372 * python/py-inferior.c (struct inferior_object): Give the type a
4373 tag name instead of a typedef.
4374 (python_on_normal_stop): No need to check if the current thread is
4375 listed.
4376 (inferior_to_inferior_object): Change return type to
4377 inferior_object. All callers adjusted.
4378 (find_thread_object): Delete, bits factored out to ...
4379 (thread_to_thread_object): ... this new function.
4380 * python/py-infthread.c (create_thread_object): Use
4381 inferior_to_inferior_object.
4382 (thpy_is_stopped): Use thread pointer directly.
4383 (gdbpy_selected_thread): Use inferior_thread.
4384 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4385 field, replaced with ...
4386 <thread>: ... this new field. All users adjusted.
4387 (btpy_insn_or_gap_new): Drop const.
4388 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4389 callers adjusted.
4390 * python/py-record.c: Include "gdbthread.h".
4391 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4392 a ptid_t. All callers adjusted.
4393 (gdbpy_current_recording): Use inferior_thread.
4394 * python/py-record.h (recpy_record_object) <ptid>: Delete
4395 field, replaced with ...
4396 <thread>: ... this new field. All users adjusted.
4397 (recpy_element_object) <ptid>: Delete
4398 field, replaced with ...
4399 <thread>: ... this new field. All users adjusted.
4400 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4401 a ptid_t. All callers adjusted.
4402 * python/py-threadevent.c: Include "gdbthread.h".
4403 (get_event_thread): Use thread_to_thread_object.
4404 * python/python-internal.h (struct inferior_object): Forward
4405 declare.
4406 (find_thread_object, find_inferior_object): Delete declarations.
4407 (thread_to_thread_object, inferior_to_inferior_object): New
4408 declarations.
4409 * record-btrace.c: Include "inferior.h".
4410 (require_btrace_thread): Use inferior_thread.
4411 (record_btrace_frame_sniffer)
4412 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4413 (get_thread_current_frame): Use scoped_restore_current_thread and
4414 switch_to_thread.
4415 (get_thread_current_frame): Use thread pointer directly.
4416 (record_btrace_replay_at_breakpoint): Use thread's inferior
4417 pointer directly.
4418 * record-full.c: Include "inferior.h".
4419 * regcache.c: Include "gdbthread.h".
4420 (get_thread_arch_regcache): Use the inferior's address space
4421 directly.
4422 (get_thread_regcache, registers_changed_thread): New.
4423 * regcache.h (get_thread_regcache(thread_info *thread)): New
4424 overload.
4425 (registers_changed_thread): New.
4426 (remote_target) <remote_detach_1>: Swap order of parameters.
4427 (remote_add_thread): <remote_add_thread>: Return the new thread.
4428 (get_remote_thread_info(ptid_t)): New overload.
4429 (remote_target::remote_notice_new_inferior): Use thread pointers
4430 directly.
4431 (remote_target::process_initial_stop_replies): Use
4432 thread_info::set_running.
4433 (remote_target::remote_detach_1, remote_target::detach)
4434 (extended_remote_target::detach): Adjust.
4435 * stack.c (frame_show_address): Use inferior_thread.
4436 * target-debug.h (target_debug_print_thread_info_pp): New.
4437 * target-delegates.c: Regenerate.
4438 * target.c (default_thread_address_space): Delete.
4439 (memory_xfer_partial_1): Use current_inferior.
4440 (target_detach): Use current_inferior.
4441 (target_thread_address_space): Delete.
4442 (generic_mourn_inferior): Use current_inferior.
4443 * target.h (struct target_ops) <thread_address_space>: Delete.
4444 (target_thread_address_space): Delete.
4445 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4446 pointers directly.
4447 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4448 thread pointer instead of a ptid_t. Adjust all callers.
4449 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4450 (first_thread_of_process): Delete, replaced by ...
4451 (first_thread_of_inferior): ... this new function. All callers
4452 adjusted.
4453 (any_thread_of_process): Rename to ...
4454 (any_thread_of_inferior): ... this, and take an inferior pointer.
4455 (any_live_thread_of_process): Rename to ...
4456 (any_live_thread_of_inferior): ... this, and take an inferior
4457 pointer.
4458 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4459 (value_in_thread_stack_temporaries)
4460 (get_last_thread_stack_temporary): Take a thread pointer instead
4461 of a ptid_t. Adjust all callers.
4462 (thread_info::set_running): New.
4463 (validate_registers_access): Use inferior_thread.
4464 (can_access_registers_ptid): Rename to ...
4465 (can_access_registers_thread): ... this, and take a thread
4466 pointer.
4467 (print_thread_info_1): Adjust to compare thread pointers instead
4468 of ptids.
4469 (switch_to_no_thread, switch_to_thread): Make extern.
4470 (scoped_restore_current_thread::~scoped_restore_current_thread):
4471 Use m_thread pointer directly.
4472 (scoped_restore_current_thread::scoped_restore_current_thread):
4473 Use inferior_thread.
4474 (thread_command): Use thread pointer directly.
4475 (thread_num_make_value_helper): Use inferior_thread.
4476 * top.c (execute_command): Use inferior_thread.
4477 * tui/tui-interp.c: Include "inferior.h".
4478 * varobj.c (varobj_create): Use inferior_thread.
4479 (value_of_root_1): Use find_thread_global_id instead of
4480 global_thread_id_to_ptid.
4481
4482 2018-06-21 Alan Hayward <alan.hayward@arm.com>
4483
4484 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4485 possible.
4486 (regcache::write_part): Likewise.
4487 (readable_regcache::cooked_read_part): Update comment.
4488 (readable_regcache::cooked_write_part): Likewise.
4489 * regcache.h: (readable_regcache::read_part): Likewise.
4490 (regcache::write_part): Likewise.
4491
4492 2018-06-21 Richard Bunt <richard.bunt@arm.com>
4493 Dirk Schubert <dirk.schubert@arm.com>
4494
4495 * aarch64-linux-nat.c (post_attach): New.
4496 (aarch64_linux_nat_target::post_attach): Override post_attach to
4497 record the number of hardware debug registers.
4498
4499 2018-06-20 Tom Tromey <tom@tromey.com>
4500
4501 * python/py-param.c (add_setshow_generic): Make parameters const.
4502 (parmpy_init): Update.
4503
4504 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4505
4506 * regcache.h (regcache_cooked_read_ftype): Rename to...
4507 (register_read_ftype): ...this, change type to function_view.
4508 (class reg_buffer) <save>: Remove src parameter.
4509 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4510 parameter non-const in first overload. Remove src parameter in
4511 second overload.
4512 * regcache.c (do_cooked_read): Remove.
4513 (readonly_detached_regcache::readonly_detached_regcache): Make
4514 parameter non-const, adjust call to other constructor.
4515 (reg_buffer::save): Remove src parameter.
4516 * frame.c (do_frame_register_read): Remove.
4517 (frame_save_as_regcache): Use lambda function.
4518 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4519 parameter to ppu2spu_data *.
4520 (ppu2spu_sniffer): Use lambda function.
4521
4522 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4523
4524 * record-full.c (record_full_target::insert_breakpoint): Remove
4525 "struct" keyword, add const.
4526
4527 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4528
4529 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4530 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4531 * configure.ac: Remove AC_PREREQ, add missing quoting.
4532 * gnulib/configure.ac: Modernize usage of
4533 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4534 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4535 (AUTOMAKE_VERSION): Bump to 1.15.1.
4536 * configure: Re-generate.
4537 * config.in: Re-generate.
4538 * aclocal.m4: Re-generate.
4539 * gnulib/aclocal.m4: Re-generate.
4540 * gnulib/config.in: Re-generate.
4541 * gnulib/configure: Re-generate.
4542 * gnulib/import/Makefile.in: Re-generate.
4543
4544 2018-06-19 Pedro Alves <palves@redhat.com>
4545
4546 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4547 (lookup_minimal_symbol_by_pc_section): ... here with
4548 gdb_assert_not_reached added.
4549
4550 2018-06-19 Pedro Alves <palves@redhat.com>
4551
4552 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4553 parameter with a block parameter. Compare location's block symbol
4554 with the frame's block instead of addresses.
4555 (skip_inline_frames): Pass the current block instead of the
4556 frame's address. Break out as soon as we determine the frame
4557 should not be skipped.
4558
4559 2018-06-18 Tom Tromey <tom@tromey.com>
4560
4561 * solib-aix.c (solib_aix_get_section_offsets): Return
4562 unique_xmalloc_ptr.
4563 (solib_aix_solib_create_inferior_hook): Update.
4564
4565 2018-06-18 Tom Tromey <tom@tromey.com>
4566
4567 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4568
4569 2018-06-18 Tom Tromey <tom@tromey.com>
4570
4571 * solib-frv.c (frv_relocate_main_executable): Use
4572 unique_xmalloc_ptr.
4573 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4574 unique_xmalloc_ptr.
4575
4576 2018-06-18 Tom Tromey <tom@tromey.com>
4577
4578 * objfiles.h (inhibit_section_map_updates): Update.
4579 (resume_section_map_updates, resume_section_map_updates_cleanup):
4580 Remove.
4581 * solib-svr4.c (svr4_handle_solib_event): Update.
4582 * objfiles.c (inhibit_section_map_updates): Return
4583 scoped_restore_tmpl<int>.
4584 (resume_section_map_updates, resume_section_map_updates_cleanup):
4585 Remove.
4586
4587 2018-06-18 Tom Tromey <tom@tromey.com>
4588
4589 * valprint.h (read_string): Update.
4590 * valprint.c (read_string): Change type of "buffer".
4591 (val_print_string): Update.
4592 * python/py-value.c (valpy_string): Update.
4593 * language.h (struct language_defn) <la_get_string>: Change
4594 type of "buffer".
4595 (default_get_string, c_get_string): Update.
4596 * language.c (default_get_string): Change type of "buffer".
4597 * guile/scm-value.c (gdbscm_value_to_string): Update.
4598 * c-lang.c (c_get_string): Change type of "buffer".
4599
4600 2018-06-18 Tom Tromey <tom@tromey.com>
4601
4602 * ser-mingw.c (struct pipe_state_destroyer): New.
4603 (pipe_state_up): New typedef.
4604 (cleanup_pipe_state): Remove.
4605 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4606
4607 2018-06-18 Tom Tromey <tom@tromey.com>
4608
4609 * rust-lang.h (rust_yyerror): Don't declare.
4610 * rust-lang.c (rust_language_defn): Update.
4611 * rust-exp.y (yyerror): Now static.
4612 * parse.c (parse_exp_in_context_1): Update.
4613 * p-lang.h (p_yyerror): Don't declare.
4614 * p-lang.c (p_language_defn): Update.
4615 * p-exp.y (yyerror): Now static.
4616 * opencl-lang.c (opencl_language_defn): Update.
4617 * objc-lang.c (objc_language_defn): Update.
4618 * m2-lang.h (m2_yyerror): Don't declare.
4619 * m2-lang.c (m2_language_defn): Update.
4620 * m2-exp.y (yyerror): Now static.
4621 * language.h (struct language_defn) <la_error>: Remove.
4622 * language.c (unk_lang_error): Remove.
4623 (unknown_language_defn, auto_language_defn): Remove.
4624 * go-lang.h (go_yyerror): Don't declare.
4625 * go-lang.c (go_language_defn): Update.
4626 * go-exp.y (yyerror): Now static.
4627 * f-lang.h (f_yyerror): Don't declare.
4628 * f-lang.c (f_language_defn): Update.
4629 * f-exp.y (yyerror): Now static.
4630 * d-lang.h (d_yyerror): Don't declare.
4631 * d-lang.c (d_language_defn): Update.
4632 * d-exp.y (yyerror): Now static.
4633 * c-lang.h (c_yyerror): Don't declare.
4634 * c-lang.c (c_language_defn, cplus_language_defn)
4635 (asm_language_defn, minimal_language_defn): Update.
4636 * c-exp.y (yyerror): Now static.
4637 * ada-lang.h (ada_yyerror): Don't declare.
4638 * ada-lang.c (ada_language_defn): Update.
4639 * ada-exp.y (yyerror): Now static.
4640
4641 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4642
4643 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4644 (store_sveregs_to_thread): Likewise.
4645 (aarch64_linux_fetch_inferior_registers): Check for SVE.
4646 (aarch64_linux_store_inferior_registers): Likewise.
4647 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4648 function.
4649 (aarch64_sve_regs_copy_to_regcache): Likewise.
4650 (aarch64_sve_regs_copy_from_regcache): Likewise.
4651 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4652 declaration.
4653 (aarch64_sve_regs_copy_to_regcache): Likewise.
4654 (aarch64_sve_regs_copy_from_regcache): Likewise.
4655 (sve_context): Structure from Linux headers.
4656 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4657 (SVE_SIG_ZREG_SIZE): Likewise.
4658 (SVE_SIG_PREG_SIZE): Likewise.
4659 (SVE_SIG_FFR_SIZE): Likewise.
4660 (SVE_SIG_REGS_OFFSET): Likewise.
4661 (SVE_SIG_ZREGS_OFFSET): Likewise.
4662 (SVE_SIG_ZREG_OFFSET): Likewise.
4663 (SVE_SIG_ZREGS_SIZE): Likewise.
4664 (SVE_SIG_PREGS_OFFSET): Likewise.
4665 (SVE_SIG_PREG_OFFSET): Likewise.
4666 (SVE_SIG_PREGS_SIZE): Likewise.
4667 (SVE_SIG_FFR_OFFSET): Likewise.
4668 (SVE_SIG_REGS_SIZE): Likewise.
4669 (SVE_SIG_CONTEXT_SIZE): Likewise.
4670 (SVE_PT_REGS_MASK): Likewise.
4671 (SVE_PT_REGS_FPSIMD): Likewise.
4672 (SVE_PT_REGS_SVE): Likewise.
4673 (SVE_PT_VL_INHERIT): Likewise.
4674 (SVE_PT_VL_ONEXEC): Likewise.
4675 (SVE_PT_REGS_OFFSET): Likewise.
4676 (SVE_PT_FPSIMD_OFFSET): Likewise.
4677 (SVE_PT_FPSIMD_SIZE): Likewise.
4678 (SVE_PT_SVE_ZREG_SIZE): Likewise.
4679 (SVE_PT_SVE_PREG_SIZE): Likewise.
4680 (SVE_PT_SVE_FFR_SIZE): Likewise.
4681 (SVE_PT_SVE_FPSR_SIZE): Likewise.
4682 (SVE_PT_SVE_FPCR_SIZE): Likewise.
4683 (__SVE_SIG_TO_PT): Likewise.
4684 (SVE_PT_SVE_OFFSET): Likewise.
4685 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4686 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4687 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4688 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4689 (SVE_PT_SVE_PREG_OFFSET): Likewise.
4690 (SVE_PT_SVE_PREGS_SIZE): Likewise.
4691 (SVE_PT_SVE_FFR_OFFSET): Likewise.
4692 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4693 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4694 (SVE_PT_SVE_SIZE): Likewise.
4695 (SVE_PT_SIZE): Likewise.
4696 (HAS_SVE_STATE): New define.
4697
4698 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4699
4700 * nat/aarch64-sve-linux-sigcontext.h: New file.
4701 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4702 new files.
4703 (SVE_VQ_MIN): Likewise.
4704 (SVE_VQ_MAX): Likewise.
4705 (SVE_VL_MIN): Likewise.
4706 (SVE_VL_MAX): Likewise.
4707 (SVE_NUM_ZREGS): Likewise.
4708 (SVE_NUM_PREGS): Likewise.
4709 (sve_vl_valid): Likewise.
4710 (struct user_sve_header): Likewise.
4711
4712 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4713 Richard Bunt <Richard.Bunt@arm.com>
4714
4715 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4716 was requested by GDB.
4717
4718 2018-06-15 Tom de Vries <tdevries@suse.de>
4719
4720 * MAINTAINERS (Write After Approval): Add Tom de Vries.
4721
4722 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
4723
4724 * gnulib/update-gnulib.sh: Print expected versions of
4725 autoconf/aclocal.
4726
4727 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
4728
4729 * arch-utils.c (default_type_align): Use type_length_units.
4730 * gdbtypes.c (type_align): Use type_length_units.
4731
4732 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4733
4734 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4735 of 'define' command.
4736
4737 2018-06-14 Tom de Vries <tdevries@suse.de>
4738
4739 PR cli/22573
4740 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4741 get_no_prettyformat_print_options.
4742
4743 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4744
4745 * sparc-nat.h: Include target.h.
4746 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4747 <fetch_registers>: Remove this argument in function call.
4748 <store_registers>: Remove this argument in function call, remove
4749 extra semicolon.
4750 <low_forget_process>: Call sparc64_forget_process instead of
4751 sparc_forget_process.
4752
4753 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4754
4755 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4756 (procfs_target::make_corefile_notes): Adjust to new
4757 target_read_alloc return type.
4758
4759 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4760 Stephen Roberts <stephen.roberts@arm.com>
4761
4762 PR gdb/22882
4763 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4764 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4765 Move should_notify_stop local into more inner scope.
4766
4767 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4768 Stephen Roberts <stephen.roberts@arm.com>
4769
4770 PR gdb/22882
4771 * infrun.c (resume_1): Add call to mark_async_event_handler.
4772
4773 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4774
4775 * infrun.c (do_target_wait): Change old version of $pc printed.
4776
4777 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4778
4779 * dwarf2read.c (read_index_from_section): Rename to...
4780 (read_gdb_index_from_section): ... this, update all callers.
4781 (dwarf2_read_index): Rename to...
4782 (dwarf2_read_gdb_index): ... this, update all callers.
4783
4784 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
4785
4786 * gdb/hppa-linux-nat.c
4787 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4788 hppa_linux_nat_target::fetch_registers.
4789
4790 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4791
4792 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4793 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4794 (AARCH64_DWARF_SVE_FFR): Likewise.
4795 (AARCH64_DWARF_SVE_P0): Likewise.
4796 (AARCH64_DWARF_SVE_Z0): Likewise.
4797
4798 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4799
4800 * common/common-regcache.h (raw_compare): New function.
4801 * regcache.c (regcache::raw_compare): Likewise.
4802 * regcache.h (regcache::raw_compare): New declaration.
4803
4804 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4805
4806 * common/common-regcache.h (reg_buffer_common): New structure.
4807 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4808 (reg_buffer::raw_supply): Likewise.
4809 (reg_buffer::raw_supply_integer): Likewise.
4810 (reg_buffer::raw_supply_zeroed): Likewise.
4811 (reg_buffer::raw_collect): Likewise.
4812 (reg_buffer::raw_collect_integer): Likewise.
4813 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4814 (reg_buffer::raw_supply): Likewise.
4815 (reg_buffer::raw_supply_integer): Likewise.
4816 (reg_buffer::raw_supply_zeroed): Likewise.
4817 (reg_buffer::raw_collect): Likewise.
4818 (reg_buffer::raw_collect_integer): Likewise.
4819
4820 2018-06-10 Tom Tromey <tom@tromey.com>
4821
4822 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4823 (class remote_state) <stop_reply_queue>: Now std::vector.
4824 (remote_state::~remote_state)
4825 (remote_target::stop_reply_queue_length): Update.
4826 (struct queue_iter_param, remove_child_of_pending_fork)
4827 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4828 (check_pending_event_prevents_wildcard_vcont_callback)
4829 (remove_stop_reply_for_inferior)
4830 (remove_stop_reply_of_remote_state)
4831 (remote_notif_remove_once_on_match)
4832 (stop_reply_match_ptid_and_ws)
4833 (remote_kill_child_of_pending_fork): Remove.
4834 (remote_target::remove_new_fork_children)
4835 (remote_target::check_pending_events_prevent_wildcard_vcont)
4836 (remote_target::discard_pending_stop_replies)
4837 (remote_target::discard_pending_stop_replies_in_queue)
4838 (remote_target::remote_notif_remove_queued_reply)
4839 (remote_target::queued_stop_reply)
4840 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4841 (remote_target::wait, remote_target::kill_new_fork_children)
4842 (remote_target::async): Update.
4843
4844 2018-06-10 Tom Tromey <tom@tromey.com>
4845
4846 * record-full.c (record_full_arch_list_cleanups): Remove.
4847 (record_full_message): Use try/catch.
4848 (record_full_wait_cleanups): Remove.
4849 (record_full_wait_1): Use try/catch.
4850 (record_full_restore): Likewise.
4851
4852 2018-06-10 Tom Tromey <tom@tromey.com>
4853
4854 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
4855 declare VEC. Add constructor.
4856 <in_target_beneath>: Now bool.
4857 (record_full_breakpoints): Now a std::vector, static.
4858 (record_full_sync_record_breakpoints)
4859 (record_full_init_record_breakpoints)
4860 (record_full_target::insert_breakpoint)
4861 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
4862
4863 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4864
4865 * dwarf2read.c (process_cu_includes): Remove struct keyword.
4866 * serial.c (serial_interface_lookup): Remove struct keyword.
4867
4868 2018-06-10 Tom Tromey <tom@tromey.com>
4869
4870 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
4871 method.
4872 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
4873 a method.
4874 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
4875 method.
4876 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
4877 "beneath" as a method.
4878 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
4879 Use "beneath" as a method.
4880
4881 2018-06-10 Tom Tromey <tom@tromey.com>
4882
4883 * tracefile.c (struct trace_file_writer_deleter): New.
4884 <operator()>: Rename from trace_file_writer_xfree.
4885 (trace_file_writer_up): New typedef.
4886 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
4887
4888 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4889
4890 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
4891 <m_registers, m_register_status>: Change type to
4892 std::unique_ptr.
4893 * regcache.c (reg_buffer::reg_buffer): Use new instead of
4894 XCNEWVEC.
4895
4896 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4897
4898 * common/common-regcache.h (enum register_status): Add
4899 underlying type "signed char".
4900 * regcache.h (reg_buffer) <m_register_status>: Change type to
4901 register_status *.
4902 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
4903 register_status instead of signed char.
4904 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
4905 (reg_buffer::get_register_status): Remove cast.
4906 (readable_regcache::raw_read): Remove cast.
4907 (readable_regcache::cooked_read): Remove cast.
4908
4909 2018-06-09 Tom Tromey <tom@tromey.com>
4910
4911 * source.c (reverse_search_command, forward_search_command): Use
4912 scoped_fd.
4913
4914 2018-06-09 Tom Tromey <tom@tromey.com>
4915
4916 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
4917 (serial_ops_list): Now static, std::vector.
4918 (serial_interface_lookup, serial_add_interface): Update.
4919
4920 2018-06-09 Tom Tromey <tom@tromey.com>
4921
4922 * dwarf2read.c (process_cu_includes): Update.
4923 (process_full_comp_unit): Update.
4924 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
4925 std::vector.
4926
4927 2018-06-08 Paul Koning <paul_koning@dell.com>
4928
4929 PR gdb/23252
4930
4931 * python/python.c (do_start_initialization):
4932 Avoid call to internal Python API.
4933 (init__gdb_module): New function.
4934
4935 2018-06-08 Gary Benson <gbenson@redhat.com>
4936
4937 * linux-thread-db.c (valprint.h): New include.
4938 (struct check_thread_db_info): New structure.
4939 (check_thread_db_on_load, tdb_testinfo): New static globals.
4940 (check_thread_db, check_thread_db_callback): New functions.
4941 (try_thread_db_load_1): Run integrity checks if requested.
4942 (maintenance_check_libthread_db): New function.
4943 (_initialize_thread_db): Register "maint check libthread-db"
4944 and "maint set/show check-libthread-db".
4945 * NEWS: Mention the above new commands.
4946
4947 2018-06-08 Tom Tromey <tom@tromey.com>
4948
4949 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
4950 now a method.
4951
4952 2018-06-08 Tom Tromey <tom@tromey.com>
4953
4954 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
4955
4956 2018-06-08 Tom Tromey <tom@tromey.com>
4957
4958 * common/btrace-common.h (struct btrace_data): Add constructor,
4959 destructor, move assignment operator.
4960 <empty, clear, fini>: New methods.
4961 <format>: Initialize.
4962 (btrace_data_init, btrace_data_fini, btrace_data_clear)
4963 (btrace_data_empty): Don't declare.
4964 * common/btrace-common.c (btrace_data_init): Remove.
4965 (btrace_data::fini): Rename from btrace_data_fini.
4966 (btrace_data::empty): Rename from btrace_data_empty.
4967 (btrace_data::clear): Rename from btrace_data_clear. Return
4968 bool.
4969 * btrace.h (make_cleanup_btrace_data): Don't declare.
4970 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
4971 (parse_xml_btrace): Update.
4972 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
4973 (maint_btrace_clear_packet_history_cmd): Update.
4974
4975 2018-06-07 Pedro Alves <palves@redhat.com>
4976
4977 * target.h (target_ops) <beneath>: Now a method. All references
4978 updated.
4979 (class target_stack): New.
4980 * target.c (g_target_stack): New.
4981 (g_current_top_target): Delete.
4982 (current_top_target): Get the top target out of g_target_stack.
4983 (target_stack::push, target_stack::unpush): New.
4984 (push_target, unpush_target): Reimplement.
4985 (target_is_pushed): Reimplement in terms of g_target_stack.
4986 (target_ops::beneath, target_stack::find_beneath): New.
4987
4988 2018-06-07 Pedro Alves <palves@redhat.com>
4989
4990 * target.h (find_target_beneath): Delete declaration.
4991 * target.c (find_target_beneath): Delete definition.
4992 * aix-thread.c: All callers of find_target_beneath adjusted to
4993 call target_ops::beneath instead.
4994 * bsd-uthread.c: Likewise.
4995 * linux-thread-db.c: Likewise.
4996 * ravenscar-thread.c: Likewise.
4997 * sol-thread.c: Likewise.
4998 * spu-multiarch.c: Likewise.
4999
5000 2018-06-07 Pedro Alves <palves@redhat.com>
5001
5002 * target.h (target_ops) <beneath>: Now a method. All references
5003 updated.
5004 (target_ops) <m_beneath>: New.
5005 * target.c (target_ops::beneath): New.
5006 * corelow.c: Adjust all references to target_ops::beneath.
5007 * linux-thread-db.c: Likewise.
5008 * make-target-delegates: Likewise.
5009 * record-btrace.c: Likewise.
5010 * record-full.c: Likewise.
5011 * remote.c: Likewise.
5012 * target.c: Likewise.
5013 * target-delegates.c: Regenerate.
5014
5015 2018-06-07 Pedro Alves <palves@redhat.com>
5016
5017 * target.h (target_stack): Delete.
5018 (current_top_target): Declare function.
5019 * target.c (target_stack): Delete.
5020 (g_current_top_target): New.
5021 (current_top_target): New function.
5022 * auxv.c: Use current_top_target instead of target_stack
5023 throughout.
5024 * avr-tdep.c: Likewise.
5025 * breakpoint.c: Likewise.
5026 * corefile.c: Likewise.
5027 * elfread.c: Likewise.
5028 * eval.c: Likewise.
5029 * exceptions.c: Likewise.
5030 * frame.c: Likewise.
5031 * gdbarch-selftests.c: Likewise.
5032 * gnu-v3-abi.c: Likewise.
5033 * ia64-tdep.c: Likewise.
5034 * ia64-vms-tdep.c: Likewise.
5035 * infcall.c: Likewise.
5036 * infcmd.c: Likewise.
5037 * infrun.c: Likewise.
5038 * linespec.c: Likewise.
5039 * linux-tdep.c: Likewise.
5040 * minsyms.c: Likewise.
5041 * ppc-linux-nat.c: Likewise.
5042 * ppc-linux-tdep.c: Likewise.
5043 * procfs.c: Likewise.
5044 * regcache.c: Likewise.
5045 * remote.c: Likewise.
5046 * rs6000-tdep.c: Likewise.
5047 * s390-linux-nat.c: Likewise.
5048 * s390-tdep.c: Likewise.
5049 * solib-aix.c: Likewise.
5050 * solib-darwin.c: Likewise.
5051 * solib-dsbt.c: Likewise.
5052 * solib-spu.c: Likewise.
5053 * solib-svr4.c: Likewise.
5054 * solib-target.c: Likewise.
5055 * sparc-tdep.c: Likewise.
5056 * sparc64-tdep.c: Likewise.
5057 * spu-tdep.c: Likewise.
5058 * symfile.c: Likewise.
5059 * symtab.c: Likewise.
5060 * target-descriptions.c: Likewise.
5061 * target-memory.c: Likewise.
5062 * target.c: Likewise.
5063 * target.h: Likewise.
5064 * tracefile-tfile.c: Likewise.
5065 * tracepoint.c: Likewise.
5066 * valops.c: Likewise.
5067 * valprint.c: Likewise.
5068 * value.c: Likewise.
5069 * windows-tdep.c: Likewise.
5070 * mi/mi-main.c: Likewise.
5071
5072 2018-06-07 Tom Tromey <tom@tromey.com>
5073
5074 * valprint.h (build_address_symbolic): Declare.
5075 * printcmd.c (print_address_symbolic): Update.
5076 (build_address_symbolic): Change "name" and "filename" to
5077 std::string.
5078 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5079 Update.
5080 * defs.h (build_address_symbolic): Remove declaration.
5081
5082 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5083
5084 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5085 (aarch64_vnv_type): Add function.
5086 (aarch64_pseudo_register_name): Add V regs for SVE.
5087 (aarch64_pseudo_register_type): Likewise.
5088 (aarch64_pseudo_register_reggroup_p): Likewise.
5089 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5090 (aarch64_pseudo_read_value): Add V regs for SVE.
5091 (aarch64_pseudo_write_2): Use V0 offset for SVE
5092 (aarch64_pseudo_write): Add V regs for SVE.
5093 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5094
5095 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5096
5097 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5098 (sve_vl_from_vq): Likewise.
5099
5100 2018-06-05 Tom Tromey <tom@tromey.com>
5101
5102 * cli/cli-cmds.c (show_version): Update.
5103 * top.c (print_gdb_version): Add "interactive" parameter.
5104 Update.
5105 * main.c (captured_main_1): Update.
5106 * top.h (print_gdb_version): Add "interactive" parameter and a
5107 comment.
5108
5109 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5110
5111 * common/enum-flags.h: Add trailing semicolon to example in
5112 comment.
5113
5114 2018-06-05 Tom Tromey <tom@tromey.com>
5115
5116 PR cli/12326:
5117 * NEWS: Add entry about pager.
5118 * utils.c (pagination_disabled_for_command): New global.
5119 (prompt_for_continue): Allow "c" response to prompt.
5120 (reinitialize_more_filter): Clear
5121 pagination_disabled_for_command.
5122 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5123
5124 2018-06-04 Tom Tromey <tom@tromey.com>
5125
5126 * ada-lang.h (ada_lookup_symbol_list): Update.
5127 * ada-lang.c (resolve_subexp): Update.
5128 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5129 parameter.
5130 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5131 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5132 results parameter to std::vector.
5133 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5134 Update.
5135 * ada-exp.y (block_lookup): Update.
5136 (select_possible_type_sym): Change type of syms. Remove nsyms
5137 parameter.
5138 (write_var_or_type, write_name_assoc): Update.
5139
5140 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5141
5142 * windows-nat.c (windows_nat_target::xfer_partial): Return
5143 TARGET_XFER_E_IO if we need to delegate to the target beneath
5144 but BENEATH is NULL.
5145
5146 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5147
5148 * Makefile.in (config.status): Add configure.nat as a
5149 dependency.
5150
5151 2018-06-04 Tom Tromey <tom@tromey.com>
5152
5153 * cp-name-parser.y (cpname_state): Add method declarations.
5154 (HANDLE_QUAL): Update.
5155 (cpname_state::d_grab, cpname_state::fill_comp)
5156 (cpname_state::make_operator, cpname_state::make_dtor)
5157 (cpname_state::make_builtin_type, cpname_state::make_name)
5158 (cpname_state::d_qualify, cpname_state::d_int_type)
5159 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5160 (%union): Move earlier.
5161
5162 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5163
5164 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5165
5166 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5167
5168 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5169 (aarch64_pseudo_write_1): Likewise.
5170 (aarch64_pseudo_read_value): Use helper.
5171 (aarch64_pseudo_write): Likewise.
5172
5173 2018-06-04 Pedro Alves <palves@redhat.com>
5174
5175 * darwin-nat.c (darwin_ops): Delete.
5176 (darwin_attach_pid): Use get_native_target.
5177
5178 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5179
5180 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5181 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5182
5183 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5184
5185 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5186 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5187 (aarch64_gdbarch_init): Check for SVE.
5188 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5189
5190 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5191
5192 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5193 * aarch64-tdep.h (aarch64_read_description): Likewise.
5194 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5195 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5196 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5197 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5198 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5199
5200 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5201
5202 * value.c (value_fetch_lazy_bitfield): New.
5203 (value_fetch_lazy_memory): New.
5204 (value_fetch_lazy_register): New.
5205 (value_fetch_lazy): Factor out to smaller functions.
5206
5207 2018-06-01 Tom Tromey <tom@tromey.com>
5208
5209 * cp-name-parser.y (backslashable, represented): Now const.
5210
5211 2018-06-01 Tom Tromey <tom@tromey.com>
5212
5213 * cp-name-parser.y: Include parser-defs.h.
5214 (parser_fprintf): Remove declaration.
5215
5216 2018-06-01 Tom Tromey <tom@tromey.com>
5217
5218 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5219 %parse-param.
5220 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5221 (global_result): Remove globals.
5222 (struct cpname_state): New.
5223 (yyparse): Don't declare.
5224 (yylex, yyerror): Move declarations after %union.
5225 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5226 (make_name): Add state parameter.
5227 Update all callers.
5228 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5229 parameter.
5230 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5231 Update.
5232 (yylex): Add lvalp, state parameters.
5233 (yyerror): Add state parameter.
5234 (cp_demangled_name_to_comp): Update.
5235
5236 2018-06-01 Tom Tromey <tom@tromey.com>
5237
5238 * cp-name-parser.y (parser_fprintf): Declare.
5239 (GDB_YY_REMAP_PREFIX): Define.
5240 Include yy-remap.h. Don't redefine yy* identifiers.
5241
5242 2018-06-01 Tom Tromey <tom@tromey.com>
5243
5244 * python/py-type.c (typy_legacy_template_argument): Update.
5245 * cp-support.h (cp_demangled_name_to_comp): Update.
5246 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5247 parameter to be a "std::string *".
5248 (main): Update.
5249
5250 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5251
5252 * ada-lex.l: Include "diagnostics.h" instead of
5253 "common/diagnostics.h".
5254 * unittests/environ-selftests.c: Likewise.
5255 * common/diagnostics.h: Moved to ../include.
5256
5257 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5258
5259 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5260 to language_mode_manual while calling breakpoint_re_set_one.
5261
5262 2018-06-01 Tom Tromey <tom@tromey.com>
5263
5264 * valops.c (value_cast_structs, destructor_name_p): Update.
5265 * symtab.c (gdb_mangle_name): Update.
5266 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5267 Update.
5268 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5269 (pascal_object_print_value_fields, pascal_object_print_value):
5270 Update.
5271 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5272 * linespec.c (find_methods): Update.
5273 * gdbtypes.h (type_name_no_tag): Remove.
5274 (type_name_or_error): Rename from type_name_no_tag_or_error.
5275 * gdbtypes.c (type_name_no_tag): Remove.
5276 (type_name_or_error): Rename from type_name_no_tag_or_error.
5277 (lookup_struct_elt_type, check_typedef): Update.
5278 * expprint.c (print_subexp_standard): Update.
5279 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5280 * d-namespace.c (d_lookup_nested_symbol): Update.
5281 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5282 (cp_print_class_member): Update.
5283 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5284 * completer.c (add_struct_fields): Update.
5285 * c-typeprint.c (cp_type_print_derivation_info)
5286 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5287 Update.
5288 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5289 (ada_prefer_type, ada_is_exception_sym): Update.
5290
5291 2018-06-01 Tom Tromey <tom@tromey.com>
5292
5293 * valops.c (enum_constant_from_type, value_namespace_elt)
5294 (value_maybe_namespace_elt): Update.
5295 * valarith.c (find_size_for_pointer_math): Update.
5296 * target-descriptions.c (make_gdb_type): Update.
5297 * symmisc.c (print_symbol): Update.
5298 * stabsread.c (define_symbol, read_type)
5299 (complain_about_struct_wipeout, add_undefined_type)
5300 (cleanup_undefined_types_1): Update.
5301 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5302 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5303 (rust_internal_print_type, rust_composite_type)
5304 (rust_evaluate_funcall, rust_evaluate_subexp)
5305 (rust_inclusive_range_type_p): Update.
5306 * python/py-type.c (typy_get_tag): Update.
5307 * p-typeprint.c (pascal_type_print_base): Update.
5308 * mdebugread.c (parse_symbol, parse_type): Update.
5309 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5310 Update.
5311 * guile/scm-type.c (gdbscm_type_tag): Update.
5312 * go-lang.c (sixg_string_p): Update.
5313 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5314 Update.
5315 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5316 (TYPE_TAG_NAME): Remove.
5317 * gdbtypes.c (type_name_no_tag): Simplify.
5318 (check_typedef, check_types_equal, recursive_dump_type)
5319 (copy_type_recursive, arch_composite_type): Update.
5320 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5321 in summary mode when needed.
5322 * eval.c (evaluate_funcall): Update.
5323 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5324 (process_structure_scope, read_enumeration_type)
5325 (read_namespace_type, read_module_type, determine_prefix): Update.
5326 * cp-support.c (inspect_type): Update.
5327 * coffread.c (process_coff_symbol, decode_base_type): Update.
5328 * c-varobj.c (c_is_path_expr_parent): Update.
5329 * c-typeprint.c (c_type_print_base_struct_union): Update.
5330 (c_type_print_base_1): Update. Print struct/class/union/enum in
5331 summary when using C language.
5332 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5333 (gen_maybe_namespace_elt): Update.
5334 * ada-lang.c (ada_type_name): Simplify.
5335 (empty_record, ada_template_to_fixed_record_type_1)
5336 (template_to_static_fixed_type)
5337 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5338
5339 2018-06-01 Tom Tromey <tom@tromey.com>
5340
5341 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5342 c_print_type.
5343 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5344 (c_print_type): Update.
5345 (c_print_type): New overload.
5346 (c_type_print_varspec_prefix, c_type_print_args)
5347 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5348 (c_type_print_base_struct_union, c_type_print_base_1)
5349 (cp_type_print_method_args): Add "language" parameter.
5350 (c_type_print_base): Update.
5351 * c-lang.h (c_print_type): Add new overload.
5352
5353 2018-06-01 Tom Tromey <tom@tromey.com>
5354
5355 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5356 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5357
5358 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5359
5360 * aarch64-tdep.c (aarch64_sve_register_names): New const
5361 var.
5362 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5363 (AARCH64_SVE_Z_REGS_NUM): New define.
5364 (AARCH64_SVE_P_REGS_NUM): Likewise.
5365 (AARCH64_SVE_NUM_REGS): Likewise.
5366
5367 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5368
5369 * nat/linux-ptrace.h [__alpha__]
5370 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5371 definitions.
5372
5373 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5374
5375 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5376 the endianness selected.
5377 * NEWS: Document `set endian auto' mode operation update.
5378
5379 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5380
5381 * Makefile.in: Add new header.
5382 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5383 (sve_vl_from_vg): Likewise.
5384 (sve_vq_from_vl): Likewise.
5385 (sve_vl_from_vq): Likewise.
5386 (sve_vq_from_vg): Likewise.
5387 (sve_vg_from_vq): Likewise.
5388 * configure.nat: Add new c file.
5389 * nat/aarch64-sve-linux-ptrace.c: New file.
5390 * nat/aarch64-sve-linux-ptrace.h: New file.
5391
5392 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5393
5394 * aarch64-linux-nat.c (aarch64_linux_read_description):
5395 Add parmeter zero.
5396 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5397 Likewise.
5398 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5399 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5400 (aarch64_gdbarch_init): Add parmeter zero.
5401 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5402 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5403 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5404 parmeter.
5405 * doc/gdb.texinfo: Describe SVE feature
5406 * features/aarch64-sve.c: New file.
5407
5408 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
5409
5410 PR gdb/23210
5411 * gdbarch.sh (significant_addr_bit): Default to zero when
5412 not set by target architecture.
5413 * gdbarch.c: Re-generated.
5414 * utils.c (address_significant): Update.
5415
5416 2018-05-30 Joel Brobecker <brobecker@adacore.com>
5417
5418 * stack.c (func_command): Remove trailing newline in call to error.
5419
5420 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5421
5422 * regcache.h (regcache_raw_collect): Remove, update callers to
5423 use regcache::raw_collect.
5424 * regcache.c (regcache_raw_collect): Remove.
5425
5426 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5427
5428 * regcache.h (regcache_raw_supply): Remove, update callers to
5429 use detached_regcache::raw_supply.
5430 * regcache.c (regcache_raw_supply): Remove.
5431
5432 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5433
5434 * regcache.h (regcache_cooked_write_part): Remove, update
5435 callers to use regcache::cooked_write_part.
5436 * regcache.c (regcache_cooked_write_part): Remove.
5437
5438 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5439
5440 * regcache.h (regcache_cooked_read_part): Remove, update callers
5441 to use readable_regcache::cooked_read_part.
5442 * regcache.c (regcache_cooked_read_part): Remove.
5443
5444 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5445
5446 * regcache.h (regcache_cooked_read_value): Remove, update
5447 callers to use readable_regcache::cooked_read_value.
5448 * regcache.c (regcache_cooked_read_value): Remove.
5449
5450 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5451
5452 * regcache.h (regcache_cooked_write): Remove, update callers to
5453 use regcache::cooked_write.
5454 * regcache.c (regcache_cooked_write): Remove.
5455
5456 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5457
5458 * regcache.h (regcache_invalidate): Remove, update callers to
5459 use detached_regcache::invalidate instead.
5460 * regcache.c (regcache_invalidate): Remove.
5461
5462 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5463
5464 * regcache.h (regcache_raw_write_part): Remove, update callers
5465 to use regcache::raw_write_part instead.
5466 * regcache.c (regcache_raw_write_part): Remove.
5467
5468 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5469
5470 * regcache.h (regcache_raw_read_part): Remove, update callers to
5471 use readable_regcache::raw_read_part instead.
5472 * regcache.c (regcache_raw_read_part): Remove.
5473
5474 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5475
5476 * regcache.h (regcache_cooked_read): Remove, update callers to
5477 use readable_regcache::cooked_read instead.
5478 * regcache.c (regcache_cooked_read): Remove.
5479
5480 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5481
5482 * regcache.h (regcache_raw_write): Remove, update callers to use
5483 regcache::raw_write instead.
5484 * regcache.c (regcache_raw_write): Remove.
5485
5486 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5487
5488 * regcache.h (regcache_raw_read): Remove, update callers to use
5489 readable_regcache::raw_read instead.
5490 * regcache.c (regcache_raw_read): Remove.
5491
5492 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5493
5494 * regcache.h (regcache_raw_update): Remove, update callers to
5495 use readable_regcache::raw_update instead.
5496 * regcache.c (regcache_raw_update): Remove.
5497
5498 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5499
5500 * regcache.h (regcache_register_status): Remove, update callers
5501 to use reg_buffer::get_register_status directly instead.
5502 * regcache.c (regcache_register_status): Remove.
5503
5504 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5505
5506 * regcache.h (regcache_get_ptid): Remove, update all callers to
5507 call regcache::ptid instead.
5508 * regcache.c (regcache_get_ptid): Remove.
5509
5510 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5511
5512 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5513
5514 2018-05-30 Pedro Alves <palves@redhat.com>
5515
5516 * common/common-exceptions.h (exception_rethrow): Use
5517 ATTRIBUTE_NORETURN.
5518
5519 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5520
5521 * breakpoint.c (print_solib_event, check_status_catch_solib):
5522 Remove struct keyword in range-based for loops.
5523 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5524 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5525 Likewise.
5526 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5527 Likewise.
5528 * symfile.c (addr_info_make_relative): Likewise.
5529 * thread.c (value_in_thread_stack_temporaries): Likewise.
5530
5531 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
5532
5533 PR gdb/16841
5534 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5535 aggregate type to get its real type before accessing it.
5536
5537 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
5538
5539 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5540 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5541 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5542 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5543 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5544 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5545 * printcmd.c (info_address_command): Likewise.
5546
5547 2018-05-29 Tom Tromey <tom@tromey.com>
5548
5549 * windows-nat.c (handle_exception): Update fall-through comment.
5550
5551 2018-05-29 Tom Tromey <tom@tromey.com>
5552
5553 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5554 (struct program_space) <added_solibs>: Now a std::vector.
5555 * breakpoint.c (print_solib_event): Update.
5556 (check_status_catch_solib): Update.
5557 * progspace.c (clear_program_space_solib_cache): Update.
5558 * solib.c (update_solib_list): Update.
5559
5560 2018-05-29 Tom Tromey <tom@tromey.com>
5561
5562 * python/py-type.c (typy_richcompare): Update.
5563 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5564 * gdbtypes.h (types_deeply_equal): Return bool.
5565 (types_equal): Likewise.
5566 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5567 declare VEC.
5568 (check_types_equal): Change worklist to std::vector. Return
5569 bool.
5570 (struct type_equality_entry): Add constructor.
5571 (compare_maybe_null_strings): Return bool.
5572 (check_types_worklist): Return bool. Change worklist to
5573 std::vector.
5574 (types_deeply_equal): Use std::vector.
5575 (types_equal): Return bool.
5576 (compare_maybe_null_strings): Simplify.
5577
5578 2018-05-29 Tom Tromey <tom@tromey.com>
5579
5580 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5581
5582 2018-05-29 Tom Tromey <tom@tromey.com>
5583
5584 * objc-lang.h: Don't include cp-support.h.
5585 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5586 declare VEC.
5587
5588 2018-05-27 Tom Tromey <tom@tromey.com>
5589
5590 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5591
5592 2018-05-25 Tom Tromey <tom@tromey.com>
5593
5594 * value.c (value::location): Initialize.
5595
5596 2018-05-25 Tom Tromey <tom@tromey.com>
5597
5598 * dbxread.c (init_bincl_list): Remove.
5599 (bincl_list): Now a std::vector.
5600 (bincls_allocated, next_bincl): Remove.
5601 (free_bincl_list, do_free_bincl_list_cleanup)
5602 (make_cleanup_free_bincl_list): Remove.
5603 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5604 unique_xmalloc_ptr.
5605 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5606 (struct header_file_location): Add constructor.
5607 (add_bincl_to_list): Remove.
5608
5609 2018-05-25 Tom Tromey <tom@tromey.com>
5610
5611 * tui/tui.c (tui_enable): Update.
5612 * mi/mi-interp.c (mi_interp::init): Update.
5613 * interps.h (class interp) <name>: New method.
5614 <m_name>: Rename from name.
5615 (~scoped_restore_interp): Update.
5616 * interps.c (interp::interp): Update.
5617 (interp_add, interp_set, interp_lookup_existing)
5618 (current_interp_named_p): Update.
5619
5620 2018-05-25 Tom Tromey <tom@tromey.com>
5621
5622 * interps.c (interp_name): Remove.
5623 * mi/mi-interp.c (mi_interp::init): Update.
5624 * interps.h (interp_name): Remove.
5625 (~scoped_restore_interp): Update.
5626 * tui/tui.c (tui_enable): Update.
5627
5628 2018-05-25 Tom Tromey <tom@tromey.com>
5629
5630 * utils.c (fputs_maybe_filtered): Update.
5631 * linespec.c (decode_line_full): Update.
5632 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5633 (mi_print_breakpoint_for_event, mi_solib_loaded)
5634 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5635 (mi_user_selected_context_changed): Update.
5636 * mi/mi-main.c (mi_execute_command): Update.
5637 * cli/cli-script.c (execute_control_command): Update.
5638 * python/python.c (execute_gdb_command): Update.
5639 * solib.c (info_sharedlibrary_command): Update.
5640 * interps.c (interp_ui_out): Remove.
5641 * interps.h (interp_ui_out): Remove.
5642
5643 2018-05-25 Tom Tromey <tom@tromey.com>
5644
5645 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5646 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5647 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5648
5649 2018-05-25 Tom Tromey <tom@tromey.com>
5650
5651 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5652 * interps.c (interp_exec): Use scoped_restore.
5653
5654 2018-05-25 Tom Tromey <tom@tromey.com>
5655
5656 * remote.c (remote_target::remote_file_get): Use
5657 gdb::byte_vector.
5658 (remote_target::remote_file_put): Likewise.
5659
5660 2018-05-25 Tom Tromey <tom@tromey.com>
5661
5662 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5663 a std::string.
5664 (get_pe_section_index, add_pe_exported_sym): Update.
5665 (read_pe_exported_syms): Use gdb::def_vector.
5666
5667 2018-05-25 Tom Tromey <tom@tromey.com>
5668
5669 * frame.c (remove_prev_frame): Remove.
5670 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5671
5672 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5673
5674 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5675 Remove prototypes.
5676 * mips-linux-nat.c (supply_fpregset): Always call
5677 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5678 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5679 `mips_fill_fpregset'.
5680 * mips-linux-tdep.c (mips_supply_fpregset)
5681 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5682 (mips_fill_fpregset_wrapper): Remove functions.
5683 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5684 (mips_linux_fpregset): Remove variable.
5685 (mips_linux_iterate_over_regset_sections): Use
5686 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5687 (mips_linux_o32_sigframe_init): Remove comment.
5688
5689 2018-05-25 Pedro Alves <palves@redhat.com>
5690
5691 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5692 (struct readahead_cache, struct packet_reg, struct
5693 remote_arch_state, class remote_state): Move higher up in the
5694 file.
5695 (remote_target::m_remote_state): Now an object instead of a pointer.
5696 (remote_target::get_remote_state): Adjust.
5697
5698 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5699
5700 * stack.c (select_and_print_frame): Delete.
5701 (struct function_bounds): Move struct within function.
5702 (func_command): Most content moved into new function
5703 find_frame_for_function, use new function, print result, add
5704 function comment.
5705 (find_frame_for_function): New function, now returns a result.
5706
5707 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5708
5709 * stack.c (iterate_over_block_arg_vars): Fix comment.
5710 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5711
5712 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5713
5714 PR gdb/23203
5715 * frame.c
5716 (scoped_restore_selected_frame::scoped_restore_selected_frame):
5717 Define.
5718 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5719 Define.
5720 * frame.h (class scoped_restore_selected_frame): New class.
5721 * stack.c (print_frame_local_vars): Remove catching and rethrowing
5722 of any exception, use scoped_restore_selected_frame to restore the
5723 frame instead.
5724
5725 2018-05-24 Pedro Alves <palves@redhat.com>
5726
5727 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5728 override.
5729
5730 2018-05-23 Tom Tromey <tom@tromey.com>
5731
5732 * complaints.c (struct complaints): Remove.
5733 (symfile_complaint_book): Remove.
5734 (series): New global.
5735 (complaint_internal): Update.
5736 (clear_complaints): Update.
5737
5738 2018-05-23 Tom Tromey <tom@tromey.com>
5739
5740 * complaints.c (counters): New global.
5741 (struct complain): Remove.
5742 (struct complaints) <root>: Remove.
5743 (complaint_sentinel): Remove.
5744 (symfile_complaint_book): Update.
5745 (find_complaint) Remove.
5746 (complaint_internal, clear_complaints): Update.
5747
5748 2018-05-23 Tom Tromey <tom@tromey.com>
5749
5750 * complaints.c (struct complain) <file, line>: Remove.
5751 (find_complaint): Remove file, line parameters.
5752 (complaint_internal): Update.
5753
5754 2018-05-23 Tom Tromey <tom@tromey.com>
5755
5756 * complaints.c (vcomplaint): Remove.
5757 (complaint_internal) Merge in contents of vcomplaint.
5758
5759 2018-05-23 Tom Tromey <tom@tromey.com>
5760
5761 * complaints.c (struct complaints) <explanation>: Remove.
5762 (symfile_explanations): Remove.
5763 (symfile_complaint_book): Update.
5764 (vcomplaint): Update.
5765 (struct explanation): Remove.
5766
5767 2018-05-23 Tom Tromey <tom@tromey.com>
5768
5769 * complaints.c (symfile_complaints): Remove.
5770 (complaint_internal): Remove "complaints" parameter.
5771 (clear_complaints, vcomplaint): Remove "c" parameter.
5772 (get_complaints): Remove.
5773 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5774 (dwarf2_debug_line_missing_file_complaint)
5775 (dwarf2_debug_line_missing_end_sequence_complaint)
5776 (dwarf2_complex_location_expr_complaint)
5777 (dwarf2_const_value_length_mismatch_complaint)
5778 (dwarf2_section_buffer_overflow_complaint)
5779 (dwarf2_macro_malformed_definition_complaint)
5780 (dwarf2_invalid_attrib_class_complaint)
5781 (create_addrmap_from_index, dw2_symtab_iter_next)
5782 (dw2_expand_marked_cus)
5783 (dw2_debug_names_iterator::find_vec_in_debug_names)
5784 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5785 (create_debug_type_hash_table, init_cutu_and_read_dies)
5786 (partial_die_parent_scope, add_partial_enumeration)
5787 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5788 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5789 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5790 (create_cus_hash_table, create_dwp_hash_table)
5791 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5792 (dwarf2_rnglists_process, dwarf2_ranges_process)
5793 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5794 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5795 (handle_struct_member_die, process_structure_scope)
5796 (read_array_type, read_common_block, read_module_type)
5797 (read_tag_pointer_type, read_typedef, read_base_type)
5798 (read_subrange_type, load_partial_dies, partial_die_info::read)
5799 (partial_die_info::read, partial_die_info::read)
5800 (partial_die_info::read, read_checked_initial_length_and_offset)
5801 (dwarf2_string_attr, read_formatted_entries)
5802 (dwarf_decode_line_header)
5803 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5804 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5805 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5806 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5807 (get_signatured_type, get_DW_AT_signature_type)
5808 (decode_locdesc, file_file_name, consume_improper_spaces)
5809 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5810 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5811 (dwarf2_symbol_mark_computed, set_die_type)
5812 (read_attribute_value): Update.
5813 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5814 Update.
5815 * dbxread.c (unknown_symtype_complaint)
5816 (lbrac_mismatch_complaint, repeated_header_complaint)
5817 (set_namestring, function_outside_compilation_unit_complaint)
5818 (read_dbx_symtab, process_one_symbol): Update.
5819 * gdbtypes.c (stub_noname_complaint): Update.
5820 * windows-nat.c (handle_unload_dll): Update.
5821 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5822 (decode_base_type): Update.
5823 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5824 (eb_complaint, record_include_begin, record_include_end)
5825 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5826 (process_xcoff_symbol, read_symbol)
5827 (function_outside_compilation_unit_complaint)
5828 (scan_xcoff_symtab): Update.
5829 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5830 * buildsym.c (finish_block_internal, make_blockvector)
5831 (end_symtab_get_static_block, augment_type_symtab): Update.
5832 * dtrace-probe.c (dtrace_process_dof)
5833 (dtrace_static_probe_ops::get_probes): Update.
5834 * complaints.h (struct complaint): Don't declare.
5835 (symfile_complaints): Remove.
5836 (complaint_internal): Remove "complaints" parameter.
5837 (complaint): Likewise.
5838 (clear_complaints): Likewise.
5839 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5840 (reread_symbols): Update.
5841 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5842 (dwarf2_frame_cache, decode_frame_entry): Update.
5843 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5844 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5845 (info_selectors_command): Update.
5846 * macrotab.c (macro_include, check_for_redefinition)
5847 (macro_undef): Update.
5848 * objfiles.c (filter_overlapping_sections): Update.
5849 * stabsread.c (invalid_cpp_abbrev_complaint)
5850 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5851 (define_symbol, error_type, read_type, rs6000_builtin_type)
5852 (stabs_method_name_from_physname, read_member_functions)
5853 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5854 (attach_fields_to_type, complain_about_struct_wipeout)
5855 (read_range_type, read_args, common_block_start)
5856 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
5857 Update.
5858 * mdebugread.c (index_complaint, unknown_ext_complaint)
5859 (basic_type_complaint, bad_tag_guess_complaint)
5860 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
5861 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
5862 (parse_procedure, parse_lines)
5863 (function_outside_compilation_unit_complaint)
5864 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
5865 (bad_tag_guess_complaint, reg_value_complaint): Update.
5866 * cp-support.c (demangled_name_complaint): Update.
5867 * macroscope.c (sal_macro_scope): Update.
5868 * dwarf-index-write.c (class debug_names): Update.
5869
5870 2018-05-23 Tom Tromey <tom@tromey.com>
5871
5872 * complaints.c (clear_complaints): Remove "noisy" parameter.
5873 * complaints.h (clear_complaints): Update.
5874 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5875 (reread_symbols): Update.
5876
5877 2018-05-23 Tom Tromey <tom@tromey.com>
5878
5879 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
5880 SUBSEQUENT_MESSAGE.
5881 (vcomplaint, clear_complaints): Update.
5882 (symfile_explanations): Remove some messages.
5883
5884 2018-05-23 Tom Tromey <tom@tromey.com>
5885
5886 * complaints.c (internal_complaint): Remove.
5887 * complaints.h (internal_complaint): Remove.
5888
5889 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5890
5891 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
5892
5893 2018-05-22 Pedro Alves <palves@redhat.com>
5894
5895 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
5896 (remote_fileio_badfd, remote_fileio_return_errno)
5897 (remote_fileio_return_success, remote_fileio_func_open)
5898 (remote_fileio_func_open, remote_fileio_func_close)
5899 (remote_fileio_func_read, remote_fileio_func_write)
5900 (remote_fileio_func_lseek, remote_fileio_func_rename)
5901 (remote_fileio_func_unlink, remote_fileio_func_stat)
5902 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5903 (remote_fileio_func_isatty, remote_fileio_func_system): Add
5904 remote_target parameter.
5905 (remote_fio_func_map) <func>: Add remote_target parameter.
5906 (do_remote_fileio_request, remote_fileio_request):
5907 * remote-fileio.h (remote_fileio_request):
5908 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
5909 remote_target parameter.
5910 (remote_notif_process, handle_notification): Adjust to pass down
5911 the remote.
5912 (remote_notif_state_allocate): Add remote_target parameter. Save
5913 it.
5914 * remote-notif.h (struct remote_target): Forward declare.
5915 (struct notif_client) <parse, ack, can_get_pending_events>: Add
5916 remote_target parameter.
5917 (struct remote_notif_state) <remote>: New field.
5918 (remote_notif_ack, remote_notif_parse): Add remote_target
5919 parameter.
5920 (remote_notif_state_allocate, remote_notif_state_allocate): Add
5921 remote_target parameter.
5922 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
5923 (threads_listing_context, rmt_thread_action, protocol_feature)
5924 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
5925 (packet_result, struct threads_listing_context, remote_state):
5926 Move definitions and declarations higher up.
5927 (remote_target) <~remote_target>: Declare.
5928 (remote_download_command_source, remote_file_put, remote_file_get)
5929 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
5930 (remote_hostio_pread_vFile, remote_hostio_send_command)
5931 (remote_hostio_set_filesystem, remote_hostio_open)
5932 (remote_hostio_close, remote_hostio_unlink, remote_state)
5933 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
5934 (get_memory_write_packet_size, get_memory_read_packet_size)
5935 (append_pending_thread_resumptions, remote_detach_1)
5936 (append_resumption, remote_resume_with_vcont)
5937 (add_current_inferior_and_thread, wait_ns, wait_as)
5938 (process_stop_reply, remote_notice_new_inferior)
5939 (process_initial_stop_replies, remote_add_thread)
5940 (btrace_sync_conf, remote_btrace_maybe_reopen)
5941 (remove_new_fork_children, kill_new_fork_children)
5942 (discard_pending_stop_replies, stop_reply_queue_length)
5943 (check_pending_events_prevent_wildcard_vcont)
5944 (discard_pending_stop_replies_in_queue, stop_reply)
5945 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
5946 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
5947 (remote_interrupt_as, remote_interrupt_ns)
5948 (remote_get_noisy_reply, remote_query_attached)
5949 (remote_add_inferior, remote_current_thread, get_current_thread)
5950 (set_thread, set_general_thread, set_continue_thread)
5951 (set_general_process, write_ptid)
5952 (remote_unpack_thread_info_response, remote_get_threadinfo)
5953 (parse_threadlist_response, remote_get_threadlist)
5954 (remote_threadlist_iterator, remote_get_threads_with_ql)
5955 (remote_get_threads_with_qxfer)
5956 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
5957 (get_offsets, remote_check_symbols, remote_supported_packet)
5958 (remote_query_supported, remote_packet_size)
5959 (remote_serial_quit_handler, remote_detach_pid)
5960 (remote_vcont_probe, remote_resume_with_hc)
5961 (send_interrupt_sequence, interrupt_query)
5962 (remote_notif_get_pending_events, fetch_register_using_p)
5963 (send_g_packet, process_g_packet, fetch_registers_using_g)
5964 (store_register_using_P, store_registers_using_G)
5965 (set_remote_traceframe, check_binary_download)
5966 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
5967 (remote_xfer_live_readonly_partial, remote_read_bytes)
5968 (remote_send_printf, remote_flash_write, readchar)
5969 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
5970 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
5971 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
5972 (extended_remote_disable_randomization, extended_remote_run)
5973 (send_environment_packet, extended_remote_environment_support)
5974 (extended_remote_set_inferior_cwd, remote_write_qxfer)
5975 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
5976 (packet_command): Now methods of ...
5977 (remote_target): ... this class.
5978 (m_remote_state) <remote_target>: New field.
5979 (struct remote_state) <stop_reply_queue,
5980 remote_async_inferior_event_token, wait_forever_enabled_p>: New
5981 fields.
5982 (remote_state::remote_state): Allocate stop_reply_queue.
5983 (remote_state): Delete global.
5984 (get_remote_state_raw): Delete.
5985 (remote_target::get_remote_state): Allocate m_remote_state on
5986 demand.
5987 (get_current_remote_target): New.
5988 (remote_ops, extended_remote_ops): Delete.
5989 (wait_forever_enabled_p, remote_async_inferior_event_token):
5990 Delete, moved to struct remote_state.
5991 (remote_target::close): Delete self. Destruction bits split to
5992 ...
5993 (remote_target::~remote_target): ... this.
5994 (show_memory_packet_size): Adjust to use
5995 get_current_remote_target.
5996 (struct protocol_feature) <func>: Add remote_target parameter.
5997 All callers adjusted.
5998 (curr_quit_handler_target): New.
5999 (remote_serial_quit_handler): Reimplement.
6000 (remote_target::open_1): Adjust to use get_current_remote_target.
6001 Heap-allocate remote_target/extended_remote_target instances.
6002 (vcont_builder::vcont_builder): Add remote_target parameter, and
6003 save it in m_remote. All callers adjusted.
6004 (vcont_builder::m_remote): New field.
6005 (vcont_builder::restart, vcont_builder::flush)
6006 (vcont_builder::push_action): Use it.
6007 (remote_target::commit_resume): Use it.
6008 (struct queue_iter_param) <remote>: New field.
6009 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6010 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6011 (check_pending_event_prevents_wildcard_vcont_callback)
6012 (remote_target::check_pending_events_prevent_wildcard_vcont)
6013 (remote_target::discard_pending_stop_replies)
6014 (remote_target::discard_pending_stop_replies_in_queue)
6015 (remote_target::remote_notif_remove_queued_reply): Fill in
6016 'remote' field.
6017 (remote_notif_get_pending_events): New.
6018 (remote_target::readchar, remote_target::remote_serial_write):
6019 Save/restore curr_quit_handler_target.
6020 (putpkt): New.
6021 (kill_new_fork_children): Fill in 'remote' field.
6022 (packet_command): Use get_current_remote_target, defer to
6023 remote_target method of same name.
6024 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6025 parameter, and save it in m_remote. All callers adjusted.
6026 (scoped_remote_fd::release): Use m_remote.
6027 (scoped_remote_fd::m_remote): New field.
6028 (remote_file_put, remote_file_get, remote_file_delete): Use
6029 get_current_remote_target, defer to remote_target method of same
6030 name.
6031 (remote_btrace_reset): Add remote_state paremeter. Update all
6032 callers.
6033 (remote_async_inferior_event_handler). Pass down 'data'.
6034 (remote_new_objfile): Use get_current_remote_target.
6035 (remote_target::vcont_r_supported): New.
6036 (set_range_stepping): Use get_current_remote_target and
6037 remote_target::vcont_r_supported.
6038 (_initialize_remote): Don't allocate 'remote_state' and
6039 'stop_reply_queue' globals.
6040 * remote.h (struct remote_target): Forward declare.
6041 (getpkt, putpkt, remote_notif_get_pending_events): Add
6042 'remote_target' parameter.
6043
6044 2018-05-22 Pedro Alves <palves@redhat.com>
6045
6046 * remote.c (vcont_builder): Now a class. Make all data members
6047 private.
6048 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6049 Declare methods.
6050 (vcont_builder_restart): Rename to ...
6051 (vcont_builder::restart): ... this.
6052 (vcont_builder_flush): Rename to ...
6053 (vcont_builder::flush): ... this.
6054 (vcont_builder_push_action): Rename to ...
6055 (vcont_builder::push_action): ... this.
6056 (remote_target::commit_resume): Adjust.
6057
6058 2018-05-22 Pedro Alves <palves@redhat.com>
6059
6060 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6061 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6062 (get_fixed_memory_packet_size): New.
6063 (get_memory_packet_size): Use it.
6064 (set_memory_packet_size): Don't override the config size with
6065 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6066 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6067 Don't refer to get_memory_packet_size if not connected to a remote
6068 target. Show "(default)" if configured size is 0.
6069
6070 2018-05-22 Pedro Alves <palves@redhat.com>
6071
6072 * remote.c (remote_target::mourn_inferior): Move
6073 discard_pending_stop_replies call here from ...
6074 (_initialize_remote): ... here.
6075
6076 2018-05-22 Pedro Alves <palves@redhat.com>
6077
6078 * remote.c (compare_section_command): Remove set_general_process
6079 call.
6080
6081 2018-05-22 Pedro Alves <palves@redhat.com>
6082
6083 * remote.c (struct packet_reg, struct remote_arch_state):
6084 Move higher up in the file.
6085 (remote_state) <m_arch_states>: Store remote_arch_state values
6086 instead of remote_arch_state pointers.
6087 (remote_state::get_remote_arch_state): Adjust.
6088
6089 2018-05-22 Pedro Alves <palves@redhat.com>
6090
6091 * remote.c: Include <unordered_map>.
6092 (remote_state): Now a class.
6093 (remote_state) <get_remote_arch_state>: Declare method.
6094 <get_remote_arch_state>: New field.
6095 (remote_arch_state) <remote_arch_state>: Declare ctor.
6096 <regs>: Now a unique_ptr.
6097 (remote_gdbarch_data_handle): Delete.
6098 (get_remote_arch_state): Delete.
6099 (remote_state::get_remote_arch_state): New.
6100 (get_remote_state): Adjust to call remote_state's
6101 get_remote_arch_state method.
6102 (init_remote_state): Delete, bits factored out to ...
6103 (remote_arch_state::remote_arch_state): ... this new method.
6104 (get_remote_packet_size, get_memory_packet_size)
6105 (process_g_packet, remote_target::fetch_registers)
6106 (remote_target::prepare_to_store, store_registers_using_G)
6107 (remote_target::store_registers, remote_target::get_trace_status):
6108 Adjust to call remote_state's method.
6109 (_initialize_remote): Remove reference to
6110 remote_gdbarch_data_handle.
6111
6112 2018-05-22 Pedro Alves <palves@redhat.com>
6113
6114 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6115 pread>: New method declarations.
6116 (remote_target::open_1): Adjust.
6117 (readahead_cache_invalidate): Rename to ...
6118 (readahead_cache::invalidate): ... this, and adjust to be a class
6119 method.
6120 (readahead_cache_invalidate_fd): Rename to ...
6121 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6122 class method.
6123 (remote_hostio_pwrite): Adjust.
6124 (remote_hostio_pread_from_cache): Rename to ...
6125 (readahead_cache::pread): ... this, and adjust to be a class
6126 method.
6127 (remote_hostio_close): Adjust.
6128
6129 2018-05-22 Pedro Alves <palves@redhat.com>
6130
6131 * remote.c (remote_hostio_close_cleanup): Delete.
6132 (class scoped_remote_fd): New.
6133 (remote_file_put, remote_file_get): Use it.
6134
6135 2018-05-22 Pedro Alves <palves@redhat.com>
6136
6137 (struct vCont_action_support): Use bool and initialize all fields.
6138 (struct readahead_cache): Initialize all fields.
6139 (remote_state): Use bool and initialize all fields.
6140 (remote_state::remote_state, remote_state::~remote_state): New.
6141 (new_remote_state): Delete.
6142 (_initialize_remote): Use new to allocate remote_state.
6143
6144 2018-05-22 Pedro Alves <palves@redhat.com>
6145 張俊芝 <zjz@zjz.name>
6146
6147 PR gdb/22973
6148 * c-exp.y: Include "c-support.h".
6149 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6150 of tolower. Use c_ident_is_alpha to scan names.
6151 * c-lang.c: Include "c-support.h".
6152 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6153 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6154 * c-support.h: New file, with bits factored out from ...
6155 * cp-name-parser.y: ... this file.
6156 Include "c-support.h".
6157 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6158 c-support.h and renamed.
6159 (symbol_end, yylex): Adjust.
6160
6161 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6162
6163 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6164 parameter type to CORE_ADDR.
6165 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6166 parameter type in declaration to CORE_ADDR.
6167 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6168 target_auxv_search to get AT_HWCAP and use the result to get the
6169 target description.
6170 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6171 to CORE_ADDR. Remove the cast of the return value to unsigned
6172 long. Fix error predicate of target_auxv_search.
6173 (ppc_linux_nat_target::read_description): Change the type of the
6174 hwcap variable to CORE_ADDR.
6175
6176 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6177
6178 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6179 if the size of fpscr is larger than 32 bits.
6180
6181 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6182
6183 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6184 (ppc32_linux_vsxregmap): New global.
6185 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6186 regcache_supply_regset, and regcache_collect_regset.
6187 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6188 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6189 (fetch_vsx_register, store_vsx_register): Remove.
6190 (fetch_vsx_registers): Add regno parameter. Get regset using
6191 ppc_linux_vsxregset. Use regset to supply registers.
6192 (store_vsx_registers): Add regno parameter. Get regset using
6193 ppc_linux_vsxregset. Use regset to collect registers.
6194 (fetch_register): Call fetch_vsx_registers instead of
6195 fetch_vsx_register.
6196 (store_register): Call store_vsx_registers instead of
6197 store_vsx_register.
6198 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6199 new regno parameter.
6200 (store_ppc_registers): Call store_vsx_registers with -1 for the
6201 new regno parameter.
6202 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6203 (ppc_collect_vsxregset): Remove.
6204
6205 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6206
6207 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6208 offset fields.
6209 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6210 for vector register offset fields.
6211 (ppc64_fbsd_reg_offsets): Likewise.
6212 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6213 to vector register offset fields.
6214 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6215 to vector register offset fields.
6216 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6217 vector register offset fields.
6218 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6219 initializers for vector register offset fields.
6220 (rs6000_aix64_reg_offsets): Likewise.
6221 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6222 (ppc_supply_vrregset): Remove.
6223 (ppc_collect_vrregset): Remove.
6224 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6225 (ppc_linux_vrregset) : New function.
6226 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6227 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6228 (ppc32_linux_vrregset): Remove.
6229 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6230 and use result instead of ppc32_linux_vrregset.
6231 (ppc32_linux_reg_offsets): Remove initializers for vector register
6232 offset fields.
6233 (ppc64_linux_reg_offsets): Likewise.
6234 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6235 * ppc-linux-nat.c: Include regset.h.
6236 (gdb_vrregset_t): Adjust comment to account for little-endian
6237 mode.
6238 (supply_vrregset, fill_vrregset): Remove.
6239 (fetch_altivec_register, store_altivec_register): Remove.
6240 (fetch_altivec_registers): Add regno parameter. Get regset using
6241 ppc_linux_vrregset. Use regset to supply registers.
6242 (store_altivec_registers): Add regno parameter. Get regset using
6243 ppc_linux_vrregset. Use regset to collect registers.
6244 (fetch_register): Call fetch_altivec_registers instead of
6245 fetch_altivec_register.
6246 (store_register): Call store_altivec_registers instead of
6247 store_altivec_register.
6248 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6249 the new regno parameter.
6250 (store_ppc_registers): Call store_altivec_registers with -1 for
6251 the new regno parameter.
6252
6253 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6254
6255 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6256 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6257 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6258 (gdb_vrregset_t): Change array type size to
6259 PPC_LINUX_SIZEOF_VRREGSET.
6260 (gdb_vsxregset_t): Change array type size to
6261 PPC_LINUX_SIZEOF_VSXREGSET.
6262 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6263 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6264 PPC_LINUX_SIZEOF_VSXREGSET.
6265
6266 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6267
6268 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6269 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6270 nat/ppc-linux.c.
6271 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6272 ppc_linux_target_wordsize with tid.
6273 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6274 wordsize with tid.
6275 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6276 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6277 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6278 tid parameter. Remove static specifier.
6279 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6280 (ppc_linux_target_wordsize): New declaration.
6281
6282 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6283
6284 * arch/ppc-linux-common.c: New file.
6285 * arch/ppc-linux-common.h: New file.
6286 * arch/ppc-linux-tdesc.h: New file.
6287 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6288 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6289 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6290 arch/ppc-linux-tdesc.h.
6291 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6292 arch/ppc-linux-tdesc.h.
6293 (ppc_linux_nat_target::read_description): Remove target
6294 description matching code. Fill a ppc_linux_features struct and
6295 call ppc_linux_match_description with it. Move comment about ISA
6296 2.05 to ppc-linux-common.c.
6297 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6298 arch/ppc-linux-tdesc.h.
6299 (ppc_linux_core_read_description): Remove target description
6300 matching code. Fill a ppc_linux_features struct and call
6301 ppc_linux_match_description with it.
6302 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6303 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6304 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6305 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6306 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6307 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6308 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6309 (tdesc_powerpc_e500l): Remove.
6310
6311 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6312
6313 * ada-lang.c (catch_assert_command): Pass empty string instead
6314 of NULL for excep_string argument.
6315
6316 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6317
6318 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6319 the width of the requested register exceeds the width of the
6320 `ptrace' data type.
6321
6322 2018-05-21 Tom Tromey <tom@tromey.com>
6323
6324 * printcmd.c (output_command): Remove.
6325 (output_command_const): Rename to output_command.
6326 * valprint.h (output_command): Rename from output_command_const.
6327 * tracepoint.c (trace_dump_actions): Call output_command.
6328
6329 2018-05-21 Tom Tromey <tom@tromey.com>
6330
6331 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6332 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6333 * ada-lang.h (create_ada_exception_catchpoint): Update.
6334 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6335 std::string.
6336 (create_excep_cond_exprs, ~ada_catchpoint)
6337 (should_stop_exception, print_one_exception)
6338 (print_mention_exception, print_recreate_exception): Update.
6339 (ada_get_next_arg): Remove.
6340 (catch_ada_exception_command_split): Use std::string. Change type
6341 of "excep_string", "cond_string".
6342 (catch_ada_exception_command): Update.
6343 (create_ada_exception_catchpoint): Change type of excep_string.
6344 (ada_exception_sal): Remove excep_string parameter.
6345 (~ada_catchpoint): Remove.
6346
6347 2018-05-21 Tom Tromey <tom@tromey.com>
6348
6349 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6350 cleanup.
6351
6352 2018-05-21 Tom Tromey <tom@tromey.com>
6353
6354 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6355 Return unique_xmalloc_ptr.
6356 (print_it_exception): Update.
6357
6358 2018-05-21 Tom Tromey <tom@tromey.com>
6359
6360 * tracepoint.c (trace_dump_actions): Use std::string.
6361
6362 2018-05-21 Tom Tromey <tom@tromey.com>
6363
6364 * symfile.c (reread_symbols): Use std::string for original_name.
6365
6366 2018-05-21 Tom Tromey <tom@tromey.com>
6367
6368 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6369 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6370 constructor.
6371
6372 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6373
6374 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6375 instance to...
6376 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6377 * objfiles.c (get_objfile_bfd_data): Allocate
6378 objfile_per_bfd_storage with obstack_new when allocating on
6379 obstack.
6380
6381 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6382
6383 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6384 OBSTACK_ZALLOC.
6385 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6386 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6387 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6388 (add_pending): Likewise.
6389 (parse_symbol): Likewise.
6390 (parse_partial_symbols): Likewise.
6391 (psymtab_to_symtab_1): Likewise.
6392 (new_psymtab): Likewise.
6393 (elfmdebug_build_psymtabs): Likewise.
6394 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6395 * objfiles.c (get_objfile_bfd_data): Likewise.
6396 (objfile_register_static_link): Likewise.
6397 * psymtab.c (allocate_psymtab): Likewise.
6398 * stabsread.c (read_member_functions): Likewise.
6399 * xcoffread.c (xcoff_end_psymtab): Likewise.
6400
6401 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6402
6403 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6404 compiler supports std::is_trivially_constructible.
6405 * common/poison.h: Include obstack.h.
6406 (IsMallocable): Define to is_trivially_constructible if the
6407 compiler supports it, define to true_type otherwise.
6408 (xobnew): New.
6409 (XOBNEW): Redefine.
6410 (xobnewvec): New.
6411 (XOBNEWVEC): Redefine.
6412 * gdb_obstack.h (obstack_zalloc): New.
6413 (OBSTACK_ZALLOC): Redefine.
6414 (obstack_calloc): New.
6415 (OBSTACK_CALLOC): Redefine.
6416 (obstack_new): New.
6417 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6418 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6419 gdbarch.c.
6420 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6421 obstack_calloc/obstack_zalloc.
6422 (gdbarch_obstack_zalloc): Remove.
6423 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6424
6425 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6426
6427 * stack.c (backtrace_command_1): Remove useless variable int i.
6428
6429 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6430
6431 * stack.c (print_frame_info): Fix comment.
6432
6433 2018-05-18 Tom Tromey <tom@tromey.com>
6434
6435 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6436 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6437 (~dwarf2_per_objfile): Update
6438 (dwarf2_get_dwz_file): Use new.
6439 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6440 unique_ptr.
6441
6442 2018-05-18 Tom Tromey <tom@tromey.com>
6443
6444 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6445 unique_ptr.
6446 * dwarf2read.c (struct dwp_file): Add constructor and
6447 initializers.
6448 (open_and_init_dwp_file): Return a unique_ptr.
6449 (dwarf2_per_objfile, create_dwp_hash_table)
6450 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6451 (lookup_dwo_unit_in_dwp): Update.
6452 (open_and_init_dwp_file, get_dwp_file): Update.
6453
6454 2018-05-18 Tom Tromey <tom@tromey.com>
6455
6456 * dwarf2read.c (dwarf2_per_objfile): Update.
6457 (struct mapped_index): Add initializers.
6458 (dwarf2_read_index): Use new.
6459 (dw2_symtab_iter_init): Update.
6460 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6461 unique_ptr.
6462
6463 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6464
6465 * dwarf2read.c (mapped_index) <total_size>: Remove.
6466
6467 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6468
6469 * unittests/format_pieces-selftests.c (test_format_specifier):
6470 Add ARI comments.
6471
6472 2018-05-18 Tom Tromey <tom@tromey.com>
6473
6474 * c-typeprint.c (maybe_print_hole): New function.
6475 (c_print_type_struct_field_offset): Update.
6476 (c_type_print_base_struct_union): Call maybe_print_hole.
6477
6478 2018-05-17 Keith Seitz <keiths@redhat.com>
6479
6480 * breakpoint.c (build_bpstat_chain): New function, moved from
6481 bpstat_stop_status.
6482 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6483 If no stop chain is passed, call build_bpstat_chain to build it.
6484 * breakpoint.h (build_bpstat_chain): Declare.
6485 (bpstat_stop_status): Move documentation here from breakpoint.c.
6486 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6487 build the stop chain and pass it to skip_inline_frames.
6488 Pass this stop chain to bpstat_stop_status.
6489 * inline-frame.c: Include breakpoint.h.
6490 (stopped_by_user_bp_inline_frame): New function.
6491 (skip_inline_frames): Add parameter `stop_chain'.
6492 Move documention to inline-frame.h.
6493 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6494 whether the frame should be elided.
6495 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6496 Add moved documentation and update for new parameter.
6497
6498 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6499
6500 PR cli/14975
6501 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6502 unittests/format_pieces-selftests.c.
6503 * common/format.h (format_piece) <operator==>: New.
6504 (format_pieces) <operator[]>: Remove.
6505 * common/format.c (format_pieces::format_pieces): Handle \e.
6506 * unittests/format_pieces-selftests.c: New.
6507
6508 2018-05-17 Tom Tromey <tom@tromey.com>
6509
6510 PR symtab/23010:
6511 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6512 (dw2_instantiate_symtab): Add skip_partial parameter.
6513 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6514 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6515 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6516 (dw2_expand_symtabs_matching_one)
6517 (dw2_find_pc_sect_compunit_symtab)
6518 (dw2_debug_names_lookup_symbol)
6519 (dw2_debug_names_expand_symtabs_for_function): Update.
6520 (init_cutu_and_read_dies): Add skip_partial parameter.
6521 (process_psymtab_comp_unit, build_type_psymtabs_1)
6522 (process_skeletonless_type_unit, load_partial_comp_unit)
6523 (psymtab_to_symtab_1): Update.
6524 (load_full_comp_unit): Add skip_partial parameter.
6525 (process_imported_unit_die, dwarf2_read_addr_index)
6526 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6527 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6528 (read_signatured_type): Update.
6529
6530 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6531
6532 * value.c (release_value): Remove unused variable.
6533 (record_latest_value): Likewise.
6534 (access_value_history): Likewise.
6535 (preserve_values): Likewise.
6536
6537 2018-05-17 Tom Tromey <tom@tromey.com>
6538
6539 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6540 Initialize.
6541
6542 2018-05-16 Maciej W. Rozycki <macro@mips.com>
6543
6544 PR gdb/22286
6545 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6546 Also handle registers whose width is not a multiple of
6547 PTRACE_TYPE_RET.
6548 (linux_nat_trad_target::store_register): Likewise.
6549
6550 2018-05-16 Tom Tromey <tom@tromey.com>
6551
6552 * gdbcore.h (core_bfd): Redefine.
6553 * corelow.c (core_target::close): Update.
6554 (core_target_open): Update.
6555 * progspace.h (struct program_space) <cbfd>: Now a
6556 gdb_bfd_ref_ptr.
6557
6558 2018-05-16 Tom Tromey <tom@tromey.com>
6559
6560 PR cli/19551:
6561 * symfile-add-flags.h (enum symfile_add_flags)
6562 <SYMFILE_NOT_FILENAME>: New constant.
6563 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6564 objfile name from BFD.
6565 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6566 * minidebug.c (find_separate_debug_file_in_section): Put
6567 ".gnu_debugdata" into BFD's file name.
6568
6569 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6570
6571 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6572 Remove.
6573
6574 2018-05-15 Tamar Christina <tamar.christina@arm.com>
6575
6576 PR binutils/21446
6577 * aarch64-tdep.c (aarch64_analyze_prologue,
6578 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6579 Indicate not interested in errors.
6580
6581 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6582
6583 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6584 Supply the MIPS_ZERO_REGNUM register.
6585
6586 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6587
6588 * mips-tdep.c (mask_address_var): Make variable static.
6589
6590 2018-05-14 Tom Tromey <tom@tromey.com>
6591
6592 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6593
6594 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6595
6596 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6597 FXSAVE_ADDR for the mxcsr register.
6598
6599 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6600
6601 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6602
6603 2018-05-11 Pedro Alves <palves@redhat.com>
6604
6605 * corelow.c (core_target) <core_target>: No longer inline.
6606 Initialize m_core_gdbarch, m_core_vec and build the section table
6607 here.
6608 <~core_target>: New.
6609 <core_gdbarch, get_core_register_section>: New methods.
6610 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6611 factored out from ...
6612 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6613 (core_ops): Delete.
6614 (sniff_core_bfd): Add gdbarch parameter.
6615 (core_close): Delete, merged into ...
6616 (core_target::close): ... here. Delete self.
6617 (core_close_cleanup): Delete.
6618 (core_target_open): Allocate a core_target on the heap. Use a
6619 unique_ptr instead of a cleanup. Bits moved into the core_target
6620 ctor. Adjust to use core_target methods instead of globals.
6621 (get_core_register_section): Rename to ...
6622 (core_target::get_core_register_section): ... this and adjust.
6623 (struct get_core_registers_cb_data): New.
6624 (get_core_registers_cb): Use it. Use bool.
6625 (core_target::fetch_registers, core_target::files_info)
6626 (core_target::xfer_partial, core_target::read_description)
6627 (core_target::pid_to, core_target::thread_name): Adjust to
6628 reference class fields instead of globals.
6629 * target.h (struct target_ops_deleter, target_ops_up): New.
6630
6631 2018-05-11 Pedro Alves <palves@redhat.com>
6632
6633 * corefile.c (core_file_command): Move to corelow.c.
6634 * corelow.c (the_core_target): Delete.
6635 (core_file_command): Moved from corefile.c. Check exec_bfd
6636 instead of the_core_target. Use target_detach instead of calling
6637 into the_core_target directly.
6638 (maybe_say_no_core_file_now): New.
6639 (core_target::detach): Use it.
6640 (_initialize_corelow): Remove references to the_core_target.
6641 * gdbcore.h (the_core_target): Delete.
6642
6643 2018-05-11 Tom Tromey <tromey@redhat.com>
6644 Pedro Alves <palves@redhat.com>
6645
6646 * corefile.c (core_bfd): Remove.
6647 * gdbcore.h (core_bfd): Now a macro.
6648 * progspace.h (struct program_space) <cbfd>: New field.
6649
6650 2018-05-11 Tom Tromey <tom@tromey.com>
6651
6652 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6653 gdb::def_vector.
6654
6655 2018-05-10 Tom Tromey <tom@tromey.com>
6656
6657 * configure: Rebuild.
6658 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6659
6660 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6661
6662 PR server/23158:
6663 * regformats/regdat.sh: Adjust script, following the addition
6664 of the new expedite_regs parameter to init_target_desc.
6665
6666 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
6667
6668 PR gdb/23127
6669 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6670 set_gdbarch_significant_addr_bit.
6671 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6672 set_gdbarch_significant_addr_bit.
6673 * utils.c (address_significant): Update to sign extend addr.
6674
6675 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
6676
6677 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6678 (xtensa_linux_init_abi): Limit tdep->num_regs by
6679 tdep->num_nopriv_regs.
6680 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6681 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6682 not initialized.
6683
6684 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
6685
6686 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6687
6688 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6689
6690 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6691 (I387_MXCSR_INIT_VAL): New constant.
6692 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6693 buffer if it was supplied by the inferior.
6694 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6695 (i387_xsave_get_clear_bv): New function.
6696 (i387_supply_xsave): Only read x87 control registers from the
6697 xsave buffer if the feature is enabled, and the state will have
6698 been written, otherwise, provide a suitable default.
6699 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6700 including x87 control registers. Update control registers if they
6701 have changed from the default value, and mark features as enabled
6702 as required.
6703 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6704
6705 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6706
6707 * spu-tdep.c (info_spu_event_command): Fix output formatting.
6708
6709 2018-05-07 Tom Tromey <tom@tromey.com>
6710
6711 * configure: Rebuild.
6712 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6713
6714 2018-05-07 Tom Tromey <tom@tromey.com>
6715
6716 PR tdep/20362:
6717 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6718 bit. Use correct value for VDIV.
6719
6720 2018-05-04 Tom Tromey <tom@tromey.com>
6721
6722 * configure: Rebuild.
6723 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6724
6725 2018-05-04 Tom Tromey <tom@tromey.com>
6726
6727 * linux-record.c (record_linux_system_call) <case
6728 RECORD_SYS_RECVFROM>: Add "break".
6729
6730 2018-05-04 Tom Tromey <tom@tromey.com>
6731
6732 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6733 Add missing "break".
6734 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6735 Add missing "break".
6736
6737 2018-05-04 Tom Tromey <tom@tromey.com>
6738
6739 * rs6000-tdep.c (ppc_process_record_op4)
6740 (ppc_process_record_op63): Add fall-through comment.
6741
6742 2018-05-04 Tom Tromey <tom@tromey.com>
6743
6744 * i386-tdep.c (i386_process_record): Add fall-through comment.
6745
6746 2018-05-04 Tom Tromey <tom@tromey.com>
6747
6748 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6749 comment.
6750
6751 2018-05-04 Tom Tromey <tom@tromey.com>
6752
6753 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6754 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6755 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6756 comment.
6757 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6758 comment.
6759 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6760 comment.
6761
6762 2018-05-04 Tom Tromey <tom@tromey.com>
6763
6764 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6765
6766 2018-05-04 Tom Tromey <tom@tromey.com>
6767
6768 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6769 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6770 * symfile.c (section_is_mapped): Fix fall-through comment.
6771 * stabsread.c (define_symbol, read_member_functions): Fix
6772 fall-through comment.
6773 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6774 comment.
6775 * remote.c (remote_wait_as): Fix fall-through comment.
6776 * p-exp.y (yylex): Fix fall-through comment.
6777 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6778 comment.
6779 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6780 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6781 * jv-exp.y (yylex): Fix fall-through comment.
6782 * go-exp.y (lex_one_token): Fix fall-through comment.
6783 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6784 fall-through comment.
6785 * f-exp.y (yylex): Fix fall-through comment.
6786 * dwarf2read.c (process_die): Fix fall-through comments.
6787 * dbxread.c (process_one_symbol): Fix fall-through comment.
6788 * d-exp.y (lex_one_token): Fix fall-through comment.
6789 * cp-name-parser.y (yylex): Fix fall-through comment.
6790 * coffread.c (coff_symtab_read): Fix fall-through comment.
6791 * c-exp.y (lex_one_token): Fix fall-through comment.
6792 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6793 comment.
6794 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6795 comment.
6796
6797 2018-05-04 Tom Tromey <tom@tromey.com>
6798
6799 PR python/22730:
6800 * NEWS: Mention gdb.execute change.
6801 * gdbcmd.h (execute_control_command): Don't declare.
6802 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6803 execute_control_commands, execute_control_commands_to_string.
6804 * cli/cli-script.h (execute_control_commands)
6805 (execute_control_commands_to_string): Declare.
6806 (execute_control_command): Add from_tty parameter.
6807 * cli/cli-script.c (execute_control_commands)
6808 (execute_control_commands_to_string): New functions.
6809 (execute_user_command): Use execute_control_commands.
6810 (execute_control_command_1): Add "from_tty" parameter. Update.
6811 (execute_control_command): Likewise.
6812
6813 2018-05-04 Tom Tromey <tom@tromey.com>
6814
6815 PR python/22731:
6816 * NEWS: Mention that breakpoint commands are writable.
6817 * python/py-breakpoint.c (bppy_set_commands): New function.
6818 (breakpoint_object_getset) <"commands">: Use it.
6819
6820 2018-05-04 Tom Tromey <tom@tromey.com>
6821
6822 * tracepoint.c (actions_command): Update.
6823 * mi/mi-cmd-break.c (mi_command_line_array)
6824 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6825 (mi_read_next_line): Remove.
6826 (mi_cmd_break_commands): Update.
6827 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6828 function_view.
6829 * cli/cli-script.c (get_command_line): Update.
6830 (process_next_line): Use function_view. Constify.
6831 (recurse_read_control_structure, read_command_lines)
6832 (read_command_lines_1): Change argument types to function_view.
6833 (do_define_command, document_command): Update.
6834 * breakpoint.h (check_tracepoint_command): Don't declare.
6835 * breakpoint.c (check_tracepoint_command): Remove.
6836 (commands_command_1, create_tracepoint_from_upload): Update.
6837
6838 2018-05-04 Tom Tromey <tom@tromey.com>
6839
6840 PR gdb/11750:
6841 * cli/cli-script.h (enum command_control_type) <define_control>:
6842 New constant.
6843 * cli/cli-script.c (multi_line_command_p): Handle define_control.
6844 (build_command_line, execute_control_command_1)
6845 (process_next_line): Likewise.
6846 (do_define_command): New function, extracted from define_command.
6847 (define_command): Use it.
6848
6849 2018-05-04 Tom Tromey <tom@tromey.com>
6850
6851 * tracepoint.c (actions_command): Update.
6852 * cli/cli-script.h (read_command_lines): Update.
6853 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6854 (MAX_TMPBUF): Remove define.
6855 (define_command): Use string_printf.
6856 (document_command): Likewise.
6857 * breakpoint.c (commands_command_1): Update.
6858
6859 2018-05-04 Tom Tromey <tom@tromey.com>
6860
6861 * top.c (execute_command): Update.
6862 * cli/cli-script.h (print_command_lines): Now varargs.
6863 * cli/cli-script.c (print_command_lines): Now varargs.
6864 (execute_control_command_1) <case while_control, case if_control>:
6865 Update.
6866
6867 2018-05-04 Tom Tromey <tom@tromey.com>
6868
6869 * tracepoint.c (all_tracepoint_actions): Rename from
6870 all_tracepoint_actions_and_cleanup. Change return type.
6871 (actions_command, encode_actions_1, encode_actions)
6872 (trace_dump_actions, tdump_command): Update.
6873 * remote.c (remote_download_command_source): Update.
6874 * python/python.c (gdbpy_eval_from_control_command)
6875 (python_command, python_interactive_command): Update.
6876 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6877 * guile/guile.c (guile_command)
6878 (gdbscm_eval_from_control_command, guile_command): Update.
6879 * compile/compile.c (compile_code_command)
6880 (compile_print_command, compile_to_object): Update.
6881 * cli/cli-script.h (struct command_lines_deleter): New.
6882 (counted_command_line): New typedef.
6883 (struct command_line): Add constructor, destructor.
6884 <body_list>: Remove.
6885 <body_list_0, body_list_1>: New members.
6886 (command_line_up): Remove typedef.
6887 (read_command_lines, read_command_lines_1, get_command_line):
6888 Update.
6889 (copy_command_lines): Don't declare.
6890 * cli/cli-script.c (build_command_line): Use "new".
6891 (get_command_line): Return counted_command_line.
6892 (print_command_lines, execute_user_command)
6893 (execute_control_command_1, while_command, if_command): Update.
6894 (realloc_body_list): Remove.
6895 (process_next_line, recurse_read_control_structure): Update.
6896 (read_command_lines, read_command_lines_1): Return counted_command_line.
6897 (free_command_lines): Use "delete".
6898 (copy_command_lines): Remove.
6899 (define_command, document_command, show_user_1): Update.
6900 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
6901 a counted_command_line.
6902 * breakpoint.h (counted_command_line): Remove typedef.
6903 (breakpoint_set_commands): Update.
6904 * breakpoint.c (check_no_tracepoint_commands)
6905 (validate_commands_for_breakpoint): Update.
6906 (breakpoint_set_commands): Change commands to be a
6907 counted_command_line.
6908 (commands_command_1, update_dprintf_command_list)
6909 (create_tracepoint_from_upload): Update.
6910
6911 2018-05-04 Tom Tromey <tom@tromey.com>
6912
6913 * cli/cli-decode.h (cmd_list_element): New constructor.
6914 (~cmd_list_element): New destructor.
6915 (struct cmd_list_element): Add initializers.
6916 * cli/cli-decode.c (do_add_cmd): Use "new".
6917 (delete_cmd): Use "delete".
6918
6919 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6920 Pedro Alves <palves@redhat.com>
6921
6922 PR breakpoints/19806 and support for PR external/20207.
6923 * NEWS: Mention Aarch64 watchpoint improvements.
6924 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
6925 watchpoints and PR external/20207 watchpoints.
6926 * nat/aarch64-linux-hw-point.c
6927 (kernel_supports_any_contiguous_range): New.
6928 (aarch64_watchpoint_offset): New.
6929 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
6930 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
6931 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
6932 (aarch64_align_watchpoint): New parameters aligned_offset_p and
6933 next_addr_orig_p. Support PR external/20207 watchpoints.
6934 (aarch64_downgrade_regs): New.
6935 (aarch64_dr_state_insert_one_point): New parameters offset and
6936 addr_orig.
6937 (aarch64_dr_state_remove_one_point): Likewise.
6938 (aarch64_handle_breakpoint): Update caller.
6939 (aarch64_handle_aligned_watchpoint): Likewise.
6940 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
6941 aligned_offset.
6942 (aarch64_linux_set_debug_regs): Remove const from state. Call
6943 aarch64_downgrade_regs.
6944 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
6945 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
6946 (DR_CONTROL_MASK): ... this.
6947 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
6948 (unsigned int aarch64_watchpoint_offset): New prototype.
6949 (aarch64_linux_set_debug_regs): Remove const from state.
6950 * utils.c (align_up, align_down): Move to ...
6951 * common/common-utils.c (align_up, align_down): ... here.
6952 * utils.h (align_up, align_down): Move to ...
6953 * common/common-utils.h (align_up, align_down): ... here.
6954
6955 2018-05-04 Joel Brobecker <brobecker@adacore.com>
6956
6957 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
6958 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
6959 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
6960 Re-implement to match the ABI as summarized in GCC's
6961 gcc/config/sparc/sparc.c. All callers updated.
6962 (sparc32_store_arguments): Remove assertion.
6963
6964 2018-05-04 Tom Tromey <tom@tromey.com>
6965
6966 * printcmd.c: Don't include tui.h.
6967 (decode_format): Use skip_spaces.
6968
6969 2018-05-04 Tom Tromey <tom@tromey.com>
6970
6971 PR gdb/22619:
6972 * printcmd.c (last_count): New global.
6973 (x_command): Use saved count when repeating.
6974
6975 2018-05-04 Tom Tromey <tom@tromey.com>
6976
6977 * nto-procfs.c (do_closedir_cleanup): Remove.
6978 (procfs_pidlist): Use gdb_dir_up.
6979 * procfs.c (do_closedir_cleanup): Remove.
6980 (proc_update_threads): Use gdb_dir_up.
6981 * common/filestuff.h (struct gdb_dir_deleter): New.
6982 (gdb_dir_up): New typedef.
6983
6984 2018-05-04 Tom Tromey <tom@tromey.com>
6985
6986 * ada-lang.c (print_mention_exception): Use std::string.
6987
6988 2018-05-04 Tom Tromey <tom@tromey.com>
6989
6990 * ada-lang.c (create_excep_cond_exprs): Update.
6991 (ada_exception_catchpoint_cond_string): Use std::string.
6992
6993 2018-05-04 Tom Tromey <tom@tromey.com>
6994
6995 * ada-lang.c (xget_renaming_scope): Return std::string.
6996 (old_renaming_is_invisible): Update.
6997
6998 2018-05-04 Tom Tromey <tom@tromey.com>
6999
7000 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7001 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7002
7003 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7004
7005 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7006
7007 2018-05-04 Tom Tromey <tom@tromey.com>
7008
7009 * remote.c (remote_query_supported_append): Change type.
7010 (remote_check_symbols): Update.
7011
7012 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7013
7014 PR gdb/11420
7015 * configure.ac: Prepend libpython.
7016 * python/python-config.py: Likewise.
7017 * configure: Regenerate.
7018
7019 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7020
7021 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7022
7023 2018-05-03 Pedro Alves <palves@redhat.com>
7024
7025 * s390-linux-nat.c
7026 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7027 override. Write 'true' instead of '1'.
7028 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7029 declaration.
7030
7031 2018-05-02 Pedro Alves <palves@redhat.com>
7032
7033 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7034 add_inf_child_target.
7035 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7036 add_inf_child_target.
7037 * aix-thread.c (aix_thread_target_info): New.
7038 (aix_thread_target) <shortname, longname, doc>: Delete.
7039 <info>: New.
7040 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7041 add_inf_child_target.
7042 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7043 add_inf_child_target.
7044 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7045 add_inf_child_target.
7046 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7047 add_inf_child_target.
7048 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7049 add_inf_child_target.
7050 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7051 add_inf_child_target.
7052 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7053 add_inf_child_target.
7054 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7055 add_inf_child_target.
7056 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7057 add_inf_child_target.
7058 * bfd-target.c (target_bfd_target_info): New.
7059 (target_bfd) <shortname, longname, doc>: Delete.
7060 <info>: New.
7061 * bsd-kvm.c (bsd_kvm_target_info): New.
7062 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7063 <info>: New.
7064 (bsd_kvm_target::open): Rename to ...
7065 (bsd_kvm_target_open): ... this. Adjust.
7066 * bsd-uthread.c (bsd_uthread_target_info): New.
7067 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7068 <info>: New.
7069 * corefile.c (core_file_command): Adjust.
7070 * corelow.c (core_target_info): New.
7071 (core_target) <shortname, longname, doc>: Delete.
7072 <info>: New.
7073 (core_target::open): Rename to ...
7074 (core_target_open): ... this. Adjust.
7075 * ctf.c (ctf_target_info): New.
7076 (ctf_target) <shortname, longname, doc>: Delete.
7077 <info>: New.
7078 (ctf_target::open): Rename to ...
7079 (ctf_target_open): ... this.
7080 (_initialize_ctf): Adjust.
7081 * exec.c (exec_target_info): New.
7082 (exec_target) <shortname, longname, doc>: Delete.
7083 <info>: New.
7084 (exec_target::open): Rename to ...
7085 (exec_target_open): ... this.
7086 * gdbcore.h (core_target_open): Declare.
7087 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7088 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7089 add_inf_child_target.
7090 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7091 add_inf_child_target.
7092 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7093 add_inf_child_target.
7094 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7095 add_inf_child_target.
7096 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7097 add_inf_child_target.
7098 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7099 add_inf_child_target.
7100 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7101 add_inf_child_target.
7102 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7103 add_inf_child_target.
7104 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7105 add_inf_child_target.
7106 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7107 add_inf_child_target.
7108 * inf-child.c (inf_child_target_info): New.
7109 (inf_child_target::info): New.
7110 (inf_child_open_target): Remove 'target' parameter. Use
7111 get_native_target instead.
7112 (inf_child_target::open): Delete.
7113 (add_inf_child_target): New.
7114 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7115 Delete.
7116 <info>: New.
7117 (add_inf_child_target): Declare.
7118 (inf_child_open_target): Declare.
7119 * linux-thread-db.c (thread_db_target_info): New.
7120 (thread_db_target) <shortname, longname, doc>: Delete.
7121 <info>: New.
7122 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7123 add_inf_child_target.
7124 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7125 add_inf_child_target.
7126 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7127 add_inf_child_target.
7128 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7129 add_inf_child_target.
7130 * make-target-delegates (print_class): Adjust.
7131 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7132 add_inf_child_target.
7133 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7134 add_inf_child_target.
7135 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7136 add_inf_child_target.
7137 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7138 add_inf_child_target.
7139 * nto-procfs.c (nto_native_target_info): New.
7140 (nto_procfs_target_native) <shortname, longname, doc>:
7141 Delete.
7142 <info>: New.
7143 (nto_procfs_target_info): New.
7144 (nto_procfs_target_procfs) <shortname, longname, doc>:
7145 Delete.
7146 <info>: New.
7147 (init_procfs_targets): Adjust.
7148 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7149 add_inf_child_target.
7150 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7151 add_inf_child_target.
7152 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7153 add_inf_child_target.
7154 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7155 add_inf_child_target.
7156 * ravenscar-thread.c (ravenscar_target_info): New.
7157 (ravenscar_thread_target) <shortname, longname, doc>:
7158 Delete.
7159 <info>: New.
7160 * record-btrace.c (record_btrace_target_info):
7161 (record_btrace_target) <shortname, longname, doc>: Delete.
7162 <info>: New.
7163 (record_btrace_target::open): Rename to ...
7164 (record_btrace_target_open): ... this. Adjust.
7165 * record-full.c (record_longname, record_doc): New.
7166 (record_full_base_target) <shortname, longname, doc>: Delete.
7167 <info>: New.
7168 (record_full_target_info): New.
7169 (record_full_target): <shortname>: Delete.
7170 <info>: New.
7171 (record_full_core_open_1, record_full_open_1): Update comments.
7172 (record_full_base_target::open): Rename to ...
7173 (record_full_open): ... this.
7174 (cmd_record_full_restore): Update.
7175 (_initialize_record_full): Update.
7176 * remote-sim.c (remote_sim_target_info): New.
7177 (gdbsim_target) <shortname, longname, doc>: Delete.
7178 <info>: New.
7179 (gdbsim_target::open): Rename to ...
7180 (gdbsim_target_open): ... this.
7181 (_initialize_remote_sim): Adjust.
7182 * remote.c (remote_doc): New.
7183 (remote_target_info): New.
7184 (remote_target) <shortname, longname, doc>: Delete.
7185 <info>: New.
7186 (extended_remote_target_info): New.
7187 (extended_remote_target) <shortname, longname, doc>: Delete.
7188 <info>: New.
7189 (remote_target::open_1): Make static. Adjust.
7190 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7191 * s390-linux-nat.c (_initialize_s390_nat): Use
7192 add_inf_child_target.
7193 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7194 add_inf_child_target.
7195 * sol-thread.c (thread_db_target_info): New.
7196 (sol_thread_target) <shortname, longname, doc>: Delete.
7197 <info>: New.
7198 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7199 add_inf_child_target.
7200 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7201 add_inf_child_target.
7202 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7203 add_inf_child_target.
7204 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7205 add_inf_child_target.
7206 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7207 add_inf_child_target.
7208 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7209 add_inf_child_target.
7210 * spu-linux-nat.c (_initialize_spu_nat): Use
7211 add_inf_child_target.
7212 * spu-multiarch.c (spu_multiarch_target_info): New.
7213 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7214 <info>: New.
7215 * target-delegates.c: Regenerate.
7216 * target.c: Include <unordered_map>.
7217 (target_ops_p): Delete.
7218 (DEF_VEC_P(target_ops_p)): Delete.
7219 (target_factories): New.
7220 (test_target_info): New.
7221 (test_target_ops::info): New.
7222 (open_target): Adjust to use target_factories.
7223 (add_target_with_completer): Rename to ...
7224 (add_target): ... this. Change prototype. Register target_info
7225 and open callback in target_factories. Register target_info in
7226 command context instead of target_ops.
7227 (add_target): Delete old implementation.
7228 (add_deprecated_target_alias): Change prototype. Adjust.
7229 (the_native_target): New.
7230 (set_native_target, get_native_target): New.
7231 (find_default_run_target): Use the_native_target.
7232 (find_attach_target, find_run_target): Simplify.
7233 (target_ops::open): Delete.
7234 (dummy_target_info): New.
7235 (dummy_target::shortname, dummy_target::longname)
7236 (dummy_target::doc): Delete.
7237 (dummy_target::info): New.
7238 (debug_target::shortname, debug_target::longname)
7239 (debug_target::doc): Delete.
7240 (debug_target::info): New.
7241 * target.h (struct target_info): New.
7242 (target_ops::~target_ops): Add comment.
7243 (target_ops::info): New.
7244 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7245 longer virtual. Implement in terms of target_info.
7246 (set_native_target, get_native_target): Declare.
7247 (target_open_ftype): New.
7248 (add_target, add_target_with_completer)
7249 (add_deprecated_target_alias): Change prototype.
7250 (test_target) <shortname, longname, doc>: Delete.
7251 <info>: New.
7252 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7253 add_inf_child_target.
7254 * tracefile-tfile.c (tfile_target_info): New.
7255 (tfile_target) <shortname, longname, doc>: Delete.
7256 <info>: New.
7257 (tfile_target::open): Rename to ...
7258 (tfile_target_open): ... this.
7259 (_initialize_tracefile_tfile): Adjust.
7260 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7261 add_inf_child_target.
7262 * windows-nat.c (_initialize_windows_nat): Use
7263 add_inf_child_target.
7264 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7265 add_inf_child_target.
7266
7267 2018-05-02 Pedro Alves <palves@redhat.com>
7268
7269 * linux-nat.h (linux_nat_target) <low_new_thread,
7270 low_delete_thread, low_new_fork, low_forget_process,
7271 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7272 New virtual methods.
7273 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7274 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7275 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7276 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7277 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7278 Delete.
7279 * linux-fork.c (delete_fork): Adjust to call low method.
7280 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7281 (linux_nat_new_fork, linux_nat_forget_process_hook)
7282 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7283 (linux_nat_status_is_event):
7284 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7285 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7286 to call low method.
7287 (sigtrap_is_event): Rename to ...
7288 (linux_nat_target::low_status_is_event): ... this.
7289 (linux_nat_set_status_is_event): Delete.
7290 (save_stop_reason, linux_nat_wait_1)
7291 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7292 low methods.
7293 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7294 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7295 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7296 (linux_nat_set_prepare_to_resume): Delete.
7297 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7298 low virtual methods.
7299 * amd64-linux-nat.c: Likewise.
7300 * arm-linux-nat.c: Likewise.
7301 * i386-linux-nat.c: Likewise.
7302 * ia64-linux-nat.c: Likewise.
7303 * mips-linux-nat.c: Likewise.
7304 * ppc-linux-nat.c: Likewise.
7305 * s390-linux-nat.c: Likewise.
7306 * sparc64-linux-nat.c: Likewise.
7307 * x86-linux-nat.c: Likewise.
7308 * x86-linux-nat.h: Include "nat/x86-linux.h".
7309 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7310 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7311 Override methods.
7312
7313 2018-05-02 Pedro Alves <palves@redhat.com>
7314
7315 * target.h (target_ops)
7316 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7317 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7318 stopped_by_watchpoint, have_continuable_watchpoint,
7319 stopped_data_address, watchpoint_addr_within_range,
7320 can_accel_watchpoint_condition, can_run, thread_alive,
7321 has_all_memory, has_memory, has_stack, has_registers,
7322 has_execution, can_async_p, is_async_p, supports_non_stop,
7323 always_non_stop_p, can_execute_reverse, supports_multi_process,
7324 supports_enable_disable_tracepoint,
7325 supports_disable_randomization, supports_string_tracing,
7326 supports_evaluation_of_breakpoint_conditions,
7327 can_run_breakpoint_commands, filesystem_is_local,
7328 can_download_tracepoint, get_trace_state_variable_value,
7329 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7330 record_is_replaying, record_will_replay,
7331 augmented_libraries_svr4_read>: Adjust to return bool.
7332 * aarch64-linux-nat.c: All implementations adjusted.
7333 * aix-thread.c: All implementations adjusted.
7334 * arm-linux-nat.c: All implementations adjusted.
7335 * breakpoint.c: All implementations adjusted.
7336 * bsd-kvm.c: All implementations adjusted.
7337 * bsd-uthread.c: All implementations adjusted.
7338 * corelow.c: All implementations adjusted.
7339 * ctf.c: All implementations adjusted.
7340 * darwin-nat.c: All implementations adjusted.
7341 * darwin-nat.h: All implementations adjusted.
7342 * exec.c: All implementations adjusted.
7343 * fbsd-nat.c: All implementations adjusted.
7344 * fbsd-nat.h: All implementations adjusted.
7345 * gnu-nat.c: All implementations adjusted.
7346 * gnu-nat.h: All implementations adjusted.
7347 * go32-nat.c: All implementations adjusted.
7348 * ia64-linux-nat.c: All implementations adjusted.
7349 * inf-child.c: All implementations adjusted.
7350 * inf-child.h: All implementations adjusted.
7351 * inf-ptrace.c: All implementations adjusted.
7352 * inf-ptrace.h: All implementations adjusted.
7353 * linux-nat.c: All implementations adjusted.
7354 * linux-nat.h: All implementations adjusted.
7355 * mips-linux-nat.c: All implementations adjusted.
7356 * nto-procfs.c: All implementations adjusted.
7357 * ppc-linux-nat.c: All implementations adjusted.
7358 * procfs.c: All implementations adjusted.
7359 * ravenscar-thread.c: All implementations adjusted.
7360 * record-btrace.c: All implementations adjusted.
7361 * record-full.c: All implementations adjusted.
7362 * remote-sim.c: All implementations adjusted.
7363 * remote.c: All implementations adjusted.
7364 * s390-linux-nat.c: All implementations adjusted.
7365 * sol-thread.c: All implementations adjusted.
7366 * spu-multiarch.c: All implementations adjusted.
7367 * target-delegates.c: All implementations adjusted.
7368 * target.c: All implementations adjusted.
7369 * target.h: All implementations adjusted.
7370 * tracefile-tfile.c: All implementations adjusted.
7371 * tracefile.c: All implementations adjusted.
7372 * tracefile.h: All implementations adjusted.
7373 * windows-nat.c: All implementations adjusted.
7374 * x86-linux-nat.h: All implementations adjusted.
7375 * x86-nat.h: All implementations adjusted.
7376
7377 2018-05-02 Pedro Alves <palves@redhat.com>
7378
7379 * make-target-delegates (scan_target_h): Don't trim lines here.
7380 Replace sequences of tabs and/or whitespace with a single
7381 whitespace.
7382 (top level, parsing methods): Trim each line before processing it
7383 here.
7384
7385 2018-05-02 Pedro Alves <palves@redhat.com>
7386 John Baldwin <jhb@freebsd.org>
7387
7388 * target.h (enum strata) <debug_stratum>: New.
7389 (struct target_ops) <all delegation methods>: Replace by C++
7390 virtual methods, and drop "to_" prefix. All references updated
7391 throughout.
7392 <to_shortname, to_longname, to_doc, to_data,
7393 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7394 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7395 virtual methods. All references updated throughout.
7396 <can_attach, supports_terminal_ours, can_create_inferior,
7397 get_thread_control_capabilities, attach_no_wait>: New
7398 virtual methods.
7399 <insert_breakpoint, remove_breakpoint>: Now
7400 TARGET_DEFAULT_NORETURN methods.
7401 <info_proc>: Now returns bool.
7402 <to_magic>: Delete.
7403 (OPS_MAGIC): Delete.
7404 (current_target): Delete. All references replaced by references
7405 to ...
7406 (target_stack): ... this. New.
7407 (target_shortname, target_longname): Adjust.
7408 (target_can_run): Now a function declaration.
7409 (default_child_has_all_memory, default_child_has_memory)
7410 (default_child_has_stack, default_child_has_registers)
7411 (default_child_has_execution): Remove target_ops parameter.
7412 (complete_target_initialization): Delete.
7413 (memory_breakpoint_target): New template class.
7414 (test_target_ops): Refactor as a C++ class with virtual methods.
7415 * make-target-delegates (NAME_PART): Tighten.
7416 (POINTER_PART, CP_SYMBOL): New.
7417 (SIMPLE_RETURN_PART): Reimplement.
7418 (VEC_RETURN_PART): Expect less.
7419 (RETURN_PART, VIRTUAL_PART): New.
7420 (METHOD): Adjust to C++ virtual methods.
7421 (scan_target_h): Remove reference to C99.
7422 (dname): Output "target_ops::" prefix.
7423 (write_function_header): Adjust to output a C++ class method.
7424 (write_declaration): New.
7425 (write_delegator): Adjust to output a C++ class method.
7426 (tdname): Output "dummy_target::" prefix.
7427 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7428 method.
7429 (tdefault_names, debug_names): Delete.
7430 (return_types, tdefaults, styles, argtypes_array): New.
7431 (top level): All methods are delegators.
7432 (print_class): New.
7433 (top level): Print dummy_target and debug_target classes.
7434 * target-delegates.c: Regenerate.
7435 * target-debug.h (target_debug_print_enum_info_proc_what)
7436 (target_debug_print_thread_control_capabilities)
7437 (target_debug_print_thread_info_p): New.
7438 * target.c (dummy_target): Delete.
7439 (the_dummy_target, the_debug_target): New.
7440 (target_stack): Now extern.
7441 (set_targetdebug): Push/unpush debug target.
7442 (default_child_has_all_memory, default_child_has_memory)
7443 (default_child_has_stack, default_child_has_registers)
7444 (default_child_has_execution): Remove target_ops parameter.
7445 (complete_target_initialization): Delete.
7446 (add_target_with_completer): No longer call
7447 complete_target_initialization.
7448 (target_supports_terminal_ours): Use regular delegation.
7449 (update_current_target): Delete.
7450 (push_target): No longer check magic number. Don't call
7451 update_current_target.
7452 (unpush_target): Don't call update_current_target.
7453 (target_is_pushed): No longer check magic number.
7454 (target_require_runnable): Skip for all stratums over
7455 process_stratum.
7456 (target_ops::info_proc): New.
7457 (target_info_proc): Use find_target_at and
7458 find_default_run_target.
7459 (target_supports_disable_randomization): Use regular delegation.
7460 (target_get_osdata): Use find_target_at.
7461 (target_ops::open, target_ops::close, target_ops::can_attach)
7462 (target_ops::attach, target_ops::can_create_inferior)
7463 (target_ops::create_inferior, target_ops::can_run)
7464 (target_can_run): New.
7465 (default_fileio_target): Use regular delegation.
7466 (target_ops::fileio_open, target_ops::fileio_pwrite)
7467 (target_ops::fileio_pread, target_ops::fileio_fstat)
7468 (target_ops::fileio_close, target_ops::fileio_unlink)
7469 (target_ops::fileio_readlink): New.
7470 (target_fileio_open_1, target_fileio_unlink)
7471 (target_fileio_readlink): Always call the target method. Handle
7472 FILEIO_ENOSYS.
7473 (return_zero, return_zero_has_execution): Delete.
7474 (init_dummy_target): Delete.
7475 (dummy_target::dummy_target, dummy_target::shortname)
7476 (dummy_target::longname, dummy_target::doc)
7477 (debug_target::debug_target, debug_target::shortname)
7478 (debug_target::longname, debug_target::doc): New.
7479 (target_supports_delete_record): Use regular delegation.
7480 (setup_target_debug): Delete.
7481 (maintenance_print_target_stack): Skip debug_stratum.
7482 (initialize_targets): Instantiate the_dummy_target and
7483 the_debug_target.
7484 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7485 use target_stack.
7486 (target_auxv_search, fprint_target_auxv): Adjust.
7487 (info_auxv_command): Adjust to use target_stack.
7488 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7489 * exceptions.c (print_flush): Handle a NULL target_stack.
7490 * regcache.c (target_ops_no_register): Refactor as class with
7491 virtual methods.
7492
7493 * exec.c (exec_target): New class.
7494 (exec_ops): Now an exec_target.
7495 (exec_open, exec_close_1, exec_get_section_table)
7496 (exec_xfer_partial, exec_files_info, exec_has_memory)
7497 (exec_make_note_section): Refactor as exec_target methods.
7498 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7499 Delete.
7500 (exec_target::find_memory_regions): New.
7501 (_initialize_exec): Don't call init_exec_ops.
7502 * gdbcore.h (exec_file_clear): Delete.
7503
7504 * corefile.c (core_target): Delete.
7505 (core_file_command): Adjust.
7506 * corelow.c (core_target): New class.
7507 (the_core_target): New.
7508 (core_close): Remove target_ops parameter.
7509 (core_close_cleanup): Adjust.
7510 (core_target::close): New.
7511 (core_open, core_detach, get_core_registers, core_files_info)
7512 (core_xfer_partial, core_thread_alive, core_read_description)
7513 (core_pid_to_str, core_thread_name, core_has_memory)
7514 (core_has_stack, core_has_registers, core_info_proc): Rework as
7515 core_target methods.
7516 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7517 (_initialize_corelow): Initialize the_core_target.
7518 * gdbcore.h (core_target): Delete.
7519 (the_core_target): New.
7520
7521 * ctf.c: (ctf_target): New class.
7522 (ctf_ops): Now a ctf_target.
7523 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7524 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7525 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7526 methods.
7527 (init_ctf_ops): Delete.
7528 (_initialize_ctf): Don't call it.
7529 * tracefile-tfile.c (tfile_target): New class.
7530 (tfile_ops): Now a tfile_target.
7531 (tfile_open, tfile_close, tfile_files_info)
7532 (tfile_get_tracepoint_status, tfile_trace_find)
7533 (tfile_fetch_registers, tfile_xfer_partial)
7534 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7535 Refactor as tfile_target methods.
7536 (tfile_xfer_partial_features): Remove target_ops parameter.
7537 (init_tfile_ops): Delete.
7538 (_initialize_tracefile_tfile): Don't call it.
7539 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7540 (tracefile_has_stack, tracefile_has_registers)
7541 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7542 tracefile_target methods.
7543 (init_tracefile_ops): Delete.
7544 (tracefile_target::tracefile_target): New.
7545 * tracefile.h: Include "target.h".
7546 (tracefile_target): New class.
7547 (init_tracefile_ops): Delete.
7548
7549 * spu-multiarch.c (spu_multiarch_target): New class.
7550 (spu_ops): Now a spu_multiarch_target.
7551 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7552 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7553 (spu_search_memory, spu_mourn_inferior): Refactor as
7554 spu_multiarch_target methods.
7555 (init_spu_ops): Delete.
7556 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7557 complete_target_initialization.
7558
7559 * ravenscar-thread.c (ravenscar_thread_target): New class.
7560 (ravenscar_ops): Now a ravenscar_thread_target.
7561 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7562 (ravenscar_thread_alive, ravenscar_pid_to_str)
7563 (ravenscar_fetch_registers, ravenscar_store_registers)
7564 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7565 (ravenscar_stopped_by_hw_breakpoint)
7566 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7567 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7568 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7569 methods.
7570 (init_ravenscar_thread_ops): Delete.
7571 (_initialize_ravenscar): Remove references to
7572 init_ravenscar_thread_ops and complete_target_initialization.
7573
7574 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7575 (bsd_uthread_target): New class.
7576 (bsd_uthread_ops): Now a bsd_uthread_target.
7577 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7578 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7579 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7580 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7581 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7582 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7583 (bsd_uthread_target): Delete function.
7584 (_initialize_bsd_uthread): Remove reference to
7585 complete_target_initialization.
7586
7587 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7588 (target_bfd): ... this new class.
7589 (target_bfd_xfer_partial, target_bfd_get_section_table)
7590 (target_bfd_close): Refactor as target_bfd methods.
7591 (target_bfd::~target_bfd): New.
7592 (target_bfd_reopen): Adjust.
7593 (target_bfd::close): New.
7594
7595 * record-btrace.c (record_btrace_target): New class.
7596 (record_btrace_ops): Now a record_btrace_target.
7597 (record_btrace_open, record_btrace_stop_recording)
7598 (record_btrace_disconnect, record_btrace_close)
7599 (record_btrace_async, record_btrace_info)
7600 (record_btrace_insn_history, record_btrace_insn_history_range)
7601 (record_btrace_insn_history_from, record_btrace_call_history)
7602 (record_btrace_call_history_range)
7603 (record_btrace_call_history_from, record_btrace_record_method)
7604 (record_btrace_is_replaying, record_btrace_will_replay)
7605 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7606 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7607 (record_btrace_store_registers, record_btrace_prepare_to_store)
7608 (record_btrace_to_get_unwinder)
7609 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7610 (record_btrace_commit_resume, record_btrace_wait)
7611 (record_btrace_stop, record_btrace_can_execute_reverse)
7612 (record_btrace_stopped_by_sw_breakpoint)
7613 (record_btrace_supports_stopped_by_sw_breakpoint)
7614 (record_btrace_stopped_by_hw_breakpoint)
7615 (record_btrace_supports_stopped_by_hw_breakpoint)
7616 (record_btrace_update_thread_list, record_btrace_thread_alive)
7617 (record_btrace_goto_begin, record_btrace_goto_end)
7618 (record_btrace_goto, record_btrace_stop_replaying_all)
7619 (record_btrace_execution_direction)
7620 (record_btrace_prepare_to_generate_core)
7621 (record_btrace_done_generating_core): Refactor as
7622 record_btrace_target methods.
7623 (init_record_btrace_ops): Delete.
7624 (_initialize_record_btrace): Remove reference to
7625 init_record_btrace_ops.
7626 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7627 the execution_direction global.
7628 (record_full_base_target, record_full_target)
7629 (record_full_core_target): New classes.
7630 (record_full_ops): Now a record_full_target.
7631 (record_full_core_ops): Now a record_full_core_target.
7632 (record_full_target::detach, record_full_target::disconnect)
7633 (record_full_core_target::disconnect)
7634 (record_full_target::mourn_inferior, record_full_target::kill):
7635 New.
7636 (record_full_open, record_full_close, record_full_async): Refactor
7637 as methods of the record_full_base_target class.
7638 (record_full_resume, record_full_commit_resume): Refactor
7639 as methods of the record_full_target class.
7640 (record_full_wait, record_full_stopped_by_watchpoint)
7641 (record_full_stopped_data_address)
7642 (record_full_stopped_by_sw_breakpoint)
7643 (record_full_supports_stopped_by_sw_breakpoint)
7644 (record_full_stopped_by_hw_breakpoint)
7645 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7646 methods of the record_full_base_target class.
7647 (record_full_store_registers, record_full_xfer_partial)
7648 (record_full_insert_breakpoint, record_full_remove_breakpoint):
7649 Refactor as methods of the record_full_target class.
7650 (record_full_can_execute_reverse, record_full_get_bookmark)
7651 (record_full_goto_bookmark, record_full_execution_direction)
7652 (record_full_record_method, record_full_info, record_full_delete)
7653 (record_full_is_replaying, record_full_will_replay)
7654 (record_full_goto_begin, record_full_goto_end, record_full_goto)
7655 (record_full_stop_replaying): Refactor as methods of the
7656 record_full_base_target class.
7657 (record_full_core_resume, record_full_core_kill)
7658 (record_full_core_fetch_registers)
7659 (record_full_core_prepare_to_store)
7660 (record_full_core_store_registers, record_full_core_xfer_partial)
7661 (record_full_core_insert_breakpoint)
7662 (record_full_core_remove_breakpoint)
7663 (record_full_core_has_execution): Refactor
7664 as methods of the record_full_core_target class.
7665 (record_full_base_target::supports_delete_record): New.
7666 (init_record_full_ops): Delete.
7667 (init_record_full_core_ops): Delete.
7668 (record_full_save): Refactor as method of the
7669 record_full_base_target class.
7670 (_initialize_record_full): Remove references to
7671 init_record_full_ops and init_record_full_core_ops.
7672
7673 * remote.c (remote_target, extended_remote_target): New classes.
7674 (remote_ops): Now a remote_target.
7675 (extended_remote_ops): Now an extended_remote_target.
7676 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7677 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7678 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7679 (remote_pass_signals, remote_set_syscall_catchpoint)
7680 (remote_program_signals, )
7681 (remote_thread_always_alive): Remove target_ops parameter.
7682 (remote_thread_alive, remote_thread_name)
7683 (remote_update_thread_list, remote_threads_extra_info)
7684 (remote_static_tracepoint_marker_at)
7685 (remote_static_tracepoint_markers_by_strid)
7686 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7687 (remote_open): Refactor as methods of remote_target.
7688 (extended_remote_open, extended_remote_detach)
7689 (extended_remote_attach, extended_remote_post_attach):
7690 (extended_remote_supports_disable_randomization)
7691 (extended_remote_create_inferior): : Refactor as method of
7692 extended_remote_target.
7693 (remote_set_permissions, remote_open_1, remote_detach)
7694 (remote_follow_fork, remote_follow_exec, remote_disconnect)
7695 (remote_resume, remote_commit_resume, remote_stop)
7696 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7697 (remote_terminal_ours, remote_wait, remote_fetch_registers)
7698 (remote_prepare_to_store, remote_store_registers)
7699 (remote_flash_erase, remote_flash_done, remote_files_info)
7700 (remote_kill, remote_mourn, remote_insert_breakpoint)
7701 (remote_remove_breakpoint, remote_insert_watchpoint)
7702 (remote_watchpoint_addr_within_range)
7703 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7704 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7705 (remote_supports_stopped_by_sw_breakpoint)
7706 (remote_stopped_by_hw_breakpoint)
7707 (remote_supports_stopped_by_hw_breakpoint)
7708 (remote_stopped_by_watchpoint, remote_stopped_data_address)
7709 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7710 (remote_verify_memory): Refactor as methods of remote_target.
7711 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7712 parameter.
7713 (remote_xfer_partial, remote_get_memory_xfer_limit)
7714 (remote_search_memory, remote_rcmd, remote_memory_map)
7715 (remote_pid_to_str, remote_get_thread_local_address)
7716 (remote_get_tib_address, remote_read_description): Refactor as
7717 methods of remote_target.
7718 (remote_target::fileio_open, remote_target::fileio_pwrite)
7719 (remote_target::fileio_pread, remote_target::fileio_close): New.
7720 (remote_hostio_readlink, remote_hostio_fstat)
7721 (remote_filesystem_is_local, remote_can_execute_reverse)
7722 (remote_supports_non_stop, remote_supports_disable_randomization)
7723 (remote_supports_multi_process, remote_supports_cond_breakpoints)
7724 (remote_supports_enable_disable_tracepoint)
7725 (remote_supports_string_tracing)
7726 (remote_can_run_breakpoint_commands, remote_trace_init)
7727 (remote_download_tracepoint, remote_can_download_tracepoint)
7728 (remote_download_trace_state_variable, remote_enable_tracepoint)
7729 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7730 (remote_trace_start, remote_get_trace_status)
7731 (remote_get_tracepoint_status, remote_trace_stop)
7732 (remote_trace_find, remote_get_trace_state_variable_value)
7733 (remote_save_trace_data, remote_get_raw_trace_data)
7734 (remote_set_disconnected_tracing, remote_core_of_thread)
7735 (remote_set_circular_trace_buffer, remote_traceframe_info)
7736 (remote_get_min_fast_tracepoint_insn_len)
7737 (remote_set_trace_buffer_size, remote_set_trace_notes)
7738 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7739 (remote_disable_btrace, remote_teardown_btrace)
7740 (remote_read_btrace, remote_btrace_conf)
7741 (remote_augmented_libraries_svr4_read, remote_load)
7742 (remote_pid_to_exec_file, remote_can_do_single_step)
7743 (remote_execution_direction, remote_thread_handle_to_thread_info):
7744 Refactor as methods of remote_target.
7745 (init_remote_ops, init_extended_remote_ops): Delete.
7746 (remote_can_async_p, remote_is_async_p, remote_async)
7747 (remote_thread_events, remote_upload_tracepoints)
7748 (remote_upload_trace_state_variables): Refactor as methods of
7749 remote_target.
7750 (_initialize_remote): Remove references to init_remote_ops and
7751 init_extended_remote_ops.
7752
7753 * remote-sim.c (gdbsim_target): New class.
7754 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7755 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7756 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7757 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7758 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7759 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7760 Refactor as methods of gdbsim_target.
7761 (gdbsim_ops): Now a gdbsim_target.
7762 (init_gdbsim_ops): Delete.
7763 (gdbsim_cntrl_c): Adjust.
7764 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7765
7766 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7767 (the_amd64_linux_nat_target): New.
7768 (amd64_linux_fetch_inferior_registers)
7769 (amd64_linux_store_inferior_registers): Refactor as methods of
7770 amd64_linux_nat_target.
7771 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7772 * i386-linux-nat.c: Don't include "linux-nat.h".
7773 (i386_linux_nat_target): New class.
7774 (the_i386_linux_nat_target): New.
7775 (i386_linux_fetch_inferior_registers)
7776 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7777 as methods of i386_linux_nat_target.
7778 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7779 * inf-child.c (inf_child_ops): Delete.
7780 (inf_child_fetch_inferior_registers)
7781 (inf_child_store_inferior_registers): Delete.
7782 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7783 methods of inf_child_target.
7784 (inf_child_target::supports_terminal_ours)
7785 (inf_child_target::terminal_init)
7786 (inf_child_target::terminal_inferior)
7787 (inf_child_target::terminal_ours_for_output)
7788 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7789 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7790 New.
7791 (inf_child_open, inf_child_disconnect, inf_child_close)
7792 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7793 (inf_child_post_startup_inferior, inf_child_can_run)
7794 (inf_child_pid_to_exec_file): Refactor as methods of
7795 inf_child_target.
7796 (inf_child_follow_fork): Delete.
7797 (inf_child_target::can_create_inferior)
7798 (inf_child_target::can_attach): New.
7799 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7800 (inf_child_target::has_stack, inf_child_target::has_registers)
7801 (inf_child_target::has_execution): New.
7802 (inf_child_fileio_open, inf_child_fileio_pwrite)
7803 (inf_child_fileio_pread, inf_child_fileio_fstat)
7804 (inf_child_fileio_close, inf_child_fileio_unlink)
7805 (inf_child_fileio_readlink, inf_child_use_agent)
7806 (inf_child_can_use_agent): Refactor as methods of
7807 inf_child_target.
7808 (return_zero, inf_child_target): Delete.
7809 (inf_child_target::inf_child_target): New.
7810 * inf-child.h: Include "target.h".
7811 (inf_child_target): Delete function prototype.
7812 (inf_child_target): New class.
7813 (inf_child_open_target, inf_child_mourn_inferior)
7814 (inf_child_maybe_unpush_target): Delete.
7815 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7816 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7817 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7818 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7819 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7820 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7821 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7822 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7823 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7824 methods of inf_ptrace_target.
7825 (inf_ptrace_target): Delete function.
7826 * inf-ptrace.h: Include "inf-child.h".
7827 (inf_ptrace_target): Delete function declaration.
7828 (inf_ptrace_target): New class.
7829 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7830 * linux-nat.c (linux_target): New.
7831 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7832 (linux_nat_target::~linux_nat_target): New.
7833 (linux_child_post_attach, linux_child_post_startup_inferior)
7834 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7835 (linux_child_remove_fork_catchpoint)
7836 (linux_child_insert_vfork_catchpoint)
7837 (linux_child_remove_vfork_catchpoint)
7838 (linux_child_insert_exec_catchpoint)
7839 (linux_child_remove_exec_catchpoint)
7840 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7841 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7842 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7843 (linux_nat_stopped_data_address)
7844 (linux_nat_stopped_by_sw_breakpoint)
7845 (linux_nat_supports_stopped_by_sw_breakpoint)
7846 (linux_nat_stopped_by_hw_breakpoint)
7847 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7848 (linux_nat_kill, linux_nat_mourn_inferior)
7849 (linux_nat_xfer_partial, linux_nat_thread_alive)
7850 (linux_nat_update_thread_list, linux_nat_pid_to_str)
7851 (linux_nat_thread_name, linux_child_pid_to_exec_file)
7852 (linux_child_static_tracepoint_markers_by_strid)
7853 (linux_nat_is_async_p, linux_nat_can_async_p)
7854 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7855 (linux_nat_supports_multi_process)
7856 (linux_nat_supports_disable_randomization, linux_nat_async)
7857 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
7858 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
7859 (linux_nat_fileio_open, linux_nat_fileio_readlink)
7860 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
7861 methods of linux_nat_target.
7862 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
7863 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
7864 parameter.
7865 (check_stopped_by_watchpoint): Adjust.
7866 (linux_xfer_partial): Delete.
7867 (linux_target_install_ops, linux_target, linux_nat_add_target):
7868 Delete.
7869 (linux_nat_target::linux_nat_target): New.
7870 * linux-nat.h: Include "inf-ptrace.h".
7871 (linux_nat_target): New.
7872 (linux_target, linux_target_install_ops, linux_nat_add_target):
7873 Delete function declarations.
7874 (linux_target): Declare global.
7875 * linux-thread-db.c (thread_db_target): New.
7876 (thread_db_target::thread_db_target): New.
7877 (thread_db_ops): Delete.
7878 (the_thread_db_target): New.
7879 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
7880 (thread_db_update_thread_list, thread_db_pid_to_str)
7881 (thread_db_extra_thread_info)
7882 (thread_db_thread_handle_to_thread_info)
7883 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
7884 (thread_db_resume): Refactor as methods of thread_db_target.
7885 (init_thread_db_ops): Delete.
7886 (_initialize_thread_db): Remove reference to init_thread_db_ops.
7887 * x86-linux-nat.c: Don't include "linux-nat.h".
7888 (super_post_startup_inferior): Delete.
7889 (x86_linux_nat_target::~x86_linux_nat_target): New.
7890 (x86_linux_child_post_startup_inferior)
7891 (x86_linux_read_description, x86_linux_enable_btrace)
7892 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
7893 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
7894 methods of x86_linux_nat_target.
7895 (x86_linux_create_target): Delete. Bits folded ...
7896 (x86_linux_add_target): ... here. Now takes a linux_nat_target
7897 pointer.
7898 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
7899 (x86_linux_nat_target): New class.
7900 (x86_linux_create_target): Delete.
7901 (x86_linux_add_target): Now takes a linux_nat_target pointer.
7902 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
7903 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
7904 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
7905 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
7906 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
7907 make extern.
7908 (x86_use_watchpoints): Delete.
7909 * x86-nat.h: Include "breakpoint.h" and "target.h".
7910 (x86_use_watchpoints): Delete.
7911 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
7912 (x86_stopped_by_watchpoint, x86_stopped_data_address)
7913 (x86_insert_watchpoint, x86_remove_watchpoint)
7914 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
7915 (x86_stopped_by_hw_breakpoint): New declarations.
7916 (x86_nat_target): New template class.
7917
7918 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
7919 (the_ppc_linux_nat_target): New.
7920 (ppc_linux_fetch_inferior_registers)
7921 (ppc_linux_can_use_hw_breakpoint)
7922 (ppc_linux_region_ok_for_hw_watchpoint)
7923 (ppc_linux_ranged_break_num_registers)
7924 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
7925 (ppc_linux_insert_mask_watchpoint)
7926 (ppc_linux_remove_mask_watchpoint)
7927 (ppc_linux_can_accel_watchpoint_condition)
7928 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
7929 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
7930 (ppc_linux_watchpoint_addr_within_range)
7931 (ppc_linux_masked_watch_num_registers)
7932 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
7933 (ppc_linux_read_description): Refactor as methods of
7934 ppc_linux_nat_target.
7935 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
7936
7937 * procfs.c (procfs_xfer_partial): Delete forward declaration.
7938 (procfs_target): New class.
7939 (the_procfs_target): New.
7940 (procfs_target): Delete function.
7941 (procfs_auxv_parse, procfs_attach, procfs_detach)
7942 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
7943 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
7944 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
7945 (procfs_create_inferior, procfs_update_thread_list)
7946 (procfs_thread_alive, procfs_pid_to_str)
7947 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
7948 (procfs_stopped_data_address, procfs_insert_watchpoint)
7949 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
7950 (proc_find_memory_regions, procfs_info_proc)
7951 (procfs_make_note_section): Refactor as methods of procfs_target.
7952 (_initialize_procfs): Adjust.
7953 * sol-thread.c (sol_thread_target): New class.
7954 (sol_thread_ops): Now a sol_thread_target.
7955 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
7956 (sol_thread_fetch_registers, sol_thread_store_registers)
7957 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
7958 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
7959 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
7960 (init_sol_thread_ops): Delete.
7961 (_initialize_sol_thread): Adjust. Remove references to
7962 init_sol_thread_ops and complete_target_initialization.
7963
7964 * windows-nat.c (windows_nat_target): New class.
7965 (windows_fetch_inferior_registers)
7966 (windows_store_inferior_registers, windows_resume, windows_wait)
7967 (windows_attach, windows_detach, windows_pid_to_exec_file)
7968 (windows_files_info, windows_create_inferior)
7969 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
7970 (windows_close, windows_pid_to_str, windows_xfer_partial)
7971 (windows_get_tib_address, windows_get_ada_task_ptid)
7972 (windows_thread_name, windows_thread_alive): Refactor as
7973 windows_nat_target methods.
7974 (do_initial_windows_stuff): Adjust.
7975 (windows_target): Delete function.
7976 (_initialize_windows_nat): Adjust.
7977
7978 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
7979 (darwin_mourn_inferior, darwin_kill_inferior)
7980 (darwin_create_inferior, darwin_attach, darwin_detach)
7981 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
7982 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
7983 (darwin_supports_multi_process): Refactor as darwin_nat_target
7984 methods.
7985 (darwin_resume_to, darwin_files_info): Delete.
7986 (_initialize_darwin_inferior): Rename to ...
7987 (_initialize_darwin_nat): ... this. Adjust to C++ification.
7988 * darwin-nat.h: Include "inf-child.h".
7989 (darwin_nat_target): New class.
7990 (darwin_complete_target): Delete.
7991 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
7992 (darwin_target): New.
7993 (i386_darwin_fetch_inferior_registers)
7994 (i386_darwin_store_inferior_registers): Refactor as methods of
7995 darwin_nat_target.
7996 (darwin_complete_target): Delete, with ...
7997 (_initialize_i386_darwin_nat): ... bits factored out here.
7998
7999 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8000 (the_alpha_linux_nat_target): New.
8001 (alpha_linux_register_u_offset): Refactor as
8002 alpha_linux_nat_target method.
8003 (_initialize_alpha_linux_nat): Adjust.
8004 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8005 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8006 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8007 methods of linux_nat_trad_target.
8008 (linux_trad_target): Delete.
8009 * linux-nat-trad.h (linux_trad_target): Delete function.
8010 (linux_nat_trad_target): New class.
8011 * mips-linux-nat.c (mips_linux_nat_target): New class.
8012 (super_fetch_registers, super_store_registers, super_close):
8013 Delete.
8014 (the_mips_linux_nat_target): New.
8015 (mips64_linux_regsets_fetch_registers)
8016 (mips64_linux_regsets_store_registers)
8017 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8018 (mips_linux_register_u_offset, mips_linux_read_description)
8019 (mips_linux_can_use_hw_breakpoint)
8020 (mips_linux_stopped_by_watchpoint)
8021 (mips_linux_stopped_data_address)
8022 (mips_linux_region_ok_for_hw_watchpoint)
8023 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8024 (mips_linux_close): Refactor as methods of mips_linux_nat.
8025 (_initialize_mips_linux_nat): Adjust to C++ification.
8026
8027 * aix-thread.c (aix_thread_target): New class.
8028 (aix_thread_ops): Now an aix_thread_target.
8029 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8030 (aix_thread_fetch_registers, aix_thread_store_registers)
8031 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8032 (aix_thread_thread_alive, aix_thread_pid_to_str)
8033 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8034 Refactor as methods of aix_thread_target.
8035 (init_aix_thread_ops): Delete.
8036 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8037 and complete_target_initialization.
8038 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8039 (rs6000_nat_target): New class.
8040 (the_rs6000_nat_target): New.
8041 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8042 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8043 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8044 (super_create_inferior): Delete.
8045 (_initialize_rs6000_nat): Adjust to C++ification.
8046
8047 * arm-linux-nat.c (arm_linux_nat_target): New class.
8048 (the_arm_linux_nat_target): New.
8049 (arm_linux_fetch_inferior_registers)
8050 (arm_linux_store_inferior_registers, arm_linux_read_description)
8051 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8052 (arm_linux_remove_hw_breakpoint)
8053 (arm_linux_region_ok_for_hw_watchpoint)
8054 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8055 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8056 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8057 arm_linux_nat_target.
8058 (_initialize_arm_linux_nat): Adjust to C++ification.
8059
8060 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8061 (the_aarch64_linux_nat_target): New.
8062 (aarch64_linux_fetch_inferior_registers)
8063 (aarch64_linux_store_inferior_registers)
8064 (aarch64_linux_child_post_startup_inferior)
8065 (aarch64_linux_read_description)
8066 (aarch64_linux_can_use_hw_breakpoint)
8067 (aarch64_linux_insert_hw_breakpoint)
8068 (aarch64_linux_remove_hw_breakpoint)
8069 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8070 (aarch64_linux_region_ok_for_hw_watchpoint)
8071 (aarch64_linux_stopped_data_address)
8072 (aarch64_linux_stopped_by_watchpoint)
8073 (aarch64_linux_watchpoint_addr_within_range)
8074 (aarch64_linux_can_do_single_step): Refactor as methods of
8075 aarch64_linux_nat_target.
8076 (super_post_startup_inferior): Delete.
8077 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8078
8079 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8080 (the_hppa_linux_nat_target): New.
8081 (hppa_linux_fetch_inferior_registers)
8082 (hppa_linux_store_inferior_registers): Refactor as methods of
8083 hppa_linux_nat_target.
8084 (_initialize_hppa_linux_nat): Adjust to C++ification.
8085
8086 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8087 (the_ia64_linux_nat_target): New.
8088 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8089 (ia64_linux_stopped_data_address)
8090 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8091 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8092 ia64_linux_nat_target methods.
8093 (super_xfer_partial): Delete.
8094 (_initialize_ia64_linux_nat): Adjust to C++ification.
8095
8096 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8097 (the_m32r_linux_nat_target): New.
8098 (m32r_linux_fetch_inferior_registers)
8099 (m32r_linux_store_inferior_registers): Refactor as
8100 m32r_linux_nat_target methods.
8101 (_initialize_m32r_linux_nat): Adjust to C++ification.
8102
8103 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8104 (the_m68k_linux_nat_target): New.
8105 (m68k_linux_fetch_inferior_registers)
8106 (m68k_linux_store_inferior_registers): Refactor as
8107 m68k_linux_nat_target methods.
8108 (_initialize_m68k_linux_nat): Adjust to C++ification.
8109
8110 * s390-linux-nat.c (s390_linux_nat_target): New class.
8111 (the_s390_linux_nat_target): New.
8112 (s390_linux_fetch_inferior_registers)
8113 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8114 (s390_insert_watchpoint, s390_remove_watchpoint)
8115 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8116 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8117 (s390_auxv_parse, s390_read_description): Refactor as methods of
8118 s390_linux_nat_target.
8119 (_initialize_s390_nat): Adjust to C++ification.
8120
8121 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8122 (the_sparc_linux_nat_target): New.
8123 (_initialize_sparc_linux_nat): Adjust to C++ification.
8124 * sparc-nat.c (sparc_fetch_inferior_registers)
8125 (sparc_store_inferior_registers): Remove target_ops parameter.
8126 * sparc-nat.h (sparc_fetch_inferior_registers)
8127 (sparc_store_inferior_registers): Remove target_ops parameter.
8128 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8129 (the_sparc64_linux_nat_target): New.
8130 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8131
8132 * spu-linux-nat.c (spu_linux_nat_target): New class.
8133 (the_spu_linux_nat_target): New.
8134 (spu_child_post_startup_inferior, spu_child_post_attach)
8135 (spu_child_wait, spu_fetch_inferior_registers)
8136 (spu_store_inferior_registers, spu_xfer_partial)
8137 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8138 methods.
8139 (_initialize_spu_nat): Adjust to C++ification.
8140
8141 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8142 (the_tilegx_linux_nat_target): New.
8143 (fetch_inferior_registers, store_inferior_registers):
8144 Refactor as methods.
8145 (_initialize_tile_linux_nat): Adjust to C++ification.
8146
8147 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8148 (the_xtensa_linux_nat_target): New.
8149 (xtensa_linux_fetch_inferior_registers)
8150 (xtensa_linux_store_inferior_registers): Refactor as
8151 xtensa_linux_nat_target methods.
8152 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8153
8154 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8155 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8156 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8157 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8158 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8159 (fbsd_stopped_by_sw_breakpoint)
8160 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8161 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8162 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8163 (fbsd_post_startup_inferior, fbsd_post_attach)
8164 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8165 (fbsd_set_syscall_catchpoint)
8166 (super_xfer_partial, super_resume, super_wait)
8167 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8168 (fbsd_handle_debug_trap): Remove target_ops parameter.
8169 (fbsd_nat_add_target): Delete.
8170 * fbsd-nat.h: Include "inf-ptrace.h".
8171 (fbsd_nat_add_target): Delete.
8172 (USE_SIGTRAP_SIGINFO): Define.
8173 (fbsd_nat_target): New class.
8174
8175 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8176 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8177 (amd64bsd_target): Delete.
8178 * amd64-bsd-nat.h: New file.
8179 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8180 "x86-bsd-nat.h".
8181 (amd64_fbsd_nat_target): New class.
8182 (the_amd64_fbsd_nat_target): New.
8183 (amd64fbsd_read_description): Refactor as method of
8184 amd64_fbsd_nat_target.
8185 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8186 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8187 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8188 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8189 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8190 (i386bsd_target): Delete.
8191 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8192 (i386bsd_fetch_inferior_registers)
8193 (i386bsd_store_inferior_registers): Declare.
8194 (i386_bsd_nat_target): New class.
8195 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8196 (the_i386_fbsd_nat_target): New.
8197 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8198 i386_fbsd_nat_target methods.
8199 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8200 (_initialize_i386fbsd_nat): Adjust to C++ification.
8201 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8202 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8203 (_initialize_x86_bsd_nat): Adjust to C++ification.
8204 * x86-bsd-nat.h: Include "x86-nat.h".
8205 (x86bsd_target): Delete declaration.
8206 (x86bsd_nat_target): New class.
8207
8208 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8209 (the_aarch64_fbsd_nat_target): New.
8210 (aarch64_fbsd_fetch_inferior_registers)
8211 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8212 aarch64_fbsd_nat_target.
8213 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8214 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8215 (the_alpha_bsd_nat_target): New.
8216 (alphabsd_fetch_inferior_registers)
8217 (alphabsd_store_inferior_registers): Refactor as
8218 alpha_bsd_nat_target methods.
8219 (_initialize_alphabsd_nat): Refactor as methods of
8220 alpha_bsd_nat_target.
8221 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8222 (the_amd64_nbsd_nat_target): New.
8223 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8224 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8225 (the_amd64_obsd_nat_target): New.
8226 (_initialize_amd64obsd_nat): Adjust to C++ification.
8227 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8228 (the_arm_fbsd_nat_target): New.
8229 (arm_fbsd_fetch_inferior_registers)
8230 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8231 (_initialize_arm_fbsd_nat): Refactor as methods of
8232 arm_fbsd_nat_target.
8233 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8234 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8235 (the_arm_netbsd_nat_target): New.
8236 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8237 arm_netbsd_nat_target.
8238 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8239 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8240 (the_hppa_nbsd_nat_target): New.
8241 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8242 hppa_nbsd_nat_target methods.
8243 (_initialize_hppanbsd_nat): Adjust to C++ification.
8244 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8245 (the_hppa_obsd_nat_target): New.
8246 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8247 methods of hppa_obsd_nat_target.
8248 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8249 add_target.
8250 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8251 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8252 add_target.
8253 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8254 (_initialize_i386obsd_nat): Use add_target.
8255 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8256 (the_m68k_bsd_nat_target): New.
8257 (m68kbsd_fetch_inferior_registers)
8258 (m68kbsd_store_inferior_registers): Refactor as methods of
8259 m68k_bsd_nat_target.
8260 (_initialize_m68kbsd_nat): Adjust to C++ification.
8261 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8262 (the_mips_fbsd_nat_target): New.
8263 (mips_fbsd_fetch_inferior_registers)
8264 (mips_fbsd_store_inferior_registers): Refactor as methods of
8265 mips_fbsd_nat_target.
8266 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8267 add_target.
8268 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8269 (the_mips_nbsd_nat_target): New.
8270 (mipsnbsd_fetch_inferior_registers)
8271 (mipsnbsd_store_inferior_registers): Refactor as methods of
8272 mips_nbsd_nat_target.
8273 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8274 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8275 (the_mips64_obsd_nat_target): New.
8276 (mips64obsd_fetch_inferior_registers)
8277 (mips64obsd_store_inferior_registers): Refactor as methods of
8278 mips64_obsd_nat_target.
8279 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8280 add_target.
8281 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8282 nbsd_nat_target.
8283 * nbsd-nat.h: Include "inf-ptrace.h".
8284 (nbsd_nat_target): New class.
8285 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8286 (obsd_wait): Refactor as methods of obsd_nat_target.
8287 (obsd_add_target): Delete.
8288 * obsd-nat.h: Include "inf-ptrace.h".
8289 (obsd_nat_target): New class.
8290 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8291 (the_ppc_fbsd_nat_target): New.
8292 (ppcfbsd_fetch_inferior_registers)
8293 (ppcfbsd_store_inferior_registers): Refactor as methods of
8294 ppc_fbsd_nat_target.
8295 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8296 add_target.
8297 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8298 (the_ppc_nbsd_nat_target): New.
8299 (ppcnbsd_fetch_inferior_registers)
8300 (ppcnbsd_store_inferior_registers): Refactor as methods of
8301 ppc_nbsd_nat_target.
8302 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8303 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8304 (the_ppc_obsd_nat_target): New.
8305 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8306 methods of ppc_obsd_nat_target.
8307 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8308 add_target.
8309 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8310 (the_sh_nbsd_nat_target): New.
8311 (shnbsd_fetch_inferior_registers)
8312 (shnbsd_store_inferior_registers): Refactor as methods of
8313 sh_nbsd_nat_target.
8314 (_initialize_shnbsd_nat): Adjust to C++ification.
8315 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8316 (inf_ptrace_xfer_partial): Delete.
8317 (sparc_xfer_partial, sparc_target): Delete.
8318 * sparc-nat.h (sparc_fetch_inferior_registers)
8319 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8320 (sparc_target): Delete function declaration.
8321 (sparc_target): New template class.
8322 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8323 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8324 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8325 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8326 add_target.
8327 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8328 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8329 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8330 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8331 add_target.
8332 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8333 (the_vax_bsd_nat_target): New.
8334 (vaxbsd_fetch_inferior_registers)
8335 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8336 methods.
8337 (_initialize_vaxbsd_nat): Adjust to C++ification.
8338
8339 * bsd-kvm.c (bsd_kvm_target): New class.
8340 (bsd_kvm_ops): Now a bsd_kvm_target.
8341 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8342 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8343 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8344 bsd_kvm_target.
8345 (bsd_kvm_return_one): Delete.
8346 (bsd_kvm_add_target): Adjust to C++ification.
8347
8348 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8349 (nto_procfs_target_procfs): New classes.
8350 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8351 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8352 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8353 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8354 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8355 (procfs_remove_hw_breakpoint, procfs_resume)
8356 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8357 (procfs_kill_inferior, procfs_store_registers)
8358 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8359 as methods of nto_procfs_target.
8360 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8361 (nto_native_ops): Delete.
8362 (procfs_open, procfs_native_open): Delete.
8363 (nto_native_ops): Now an nto_procfs_target_native.
8364 (init_procfs_targets): Adjust to C++ification.
8365 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8366 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8367 Refactor as methods of nto_procfs_target.
8368
8369 * go32-nat.c (go32_nat_target): New class.
8370 (the_go32_nat_target): New.
8371 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8372 (go32_store_registers, go32_xfer_partial, go32_files_info)
8373 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8374 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8375 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8376 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8377 (go32_target): Delete.
8378 (_initialize_go32_nat): Adjust to C++ification.
8379
8380 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8381 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8382 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8383 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8384 gnu_nat_target.
8385 (gnu_target): Delete.
8386 * gnu-nat.h (gnu_target): Delete.
8387 (gnu_nat_target): New class.
8388 * i386-gnu-nat.c (gnu_base_target): New.
8389 (i386_gnu_nat_target): New class.
8390 (the_i386_gnu_nat_target): New.
8391 (_initialize_i386gnu_nat): Adjust to C++ification.
8392
8393 2018-05-02 Pedro Alves <palves@redhat.com>
8394
8395 * bfd-target.c (target_bfd_xclose): Rename to ...
8396 (target_bfd_close): ... this.
8397 (target_bfd_reopen): Adjust.
8398 * target.c (target_close): Remove references to to_xclose.
8399 * target.h (target_ops::to_xclose): Delete.
8400 (target_ops::to_close): Update comments.
8401
8402 2018-05-02 Pedro Alves <palves@redhat.com>
8403
8404 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8405 "linux-nat.h".
8406 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8407 * inf-ptrace.c (inf_ptrace_register_u_offset)
8408 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8409 (inf_ptrace_store_register, inf_ptrace_store_registers)
8410 (inf_ptrace_trad_target): Move to ...
8411 * linux-nat-trad.c: ... this new file.
8412 * linux-nat-trad.h: New file.
8413 * linux-nat.c (linux_target_install_ops): Make extern.
8414 (linux_trad_target): Delete.
8415 * linux-nat.h (linux_trad_target): Delete declaration.
8416 (linux_target_install_ops): Declare.
8417 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8418 "linux-nat.h".
8419
8420 2018-05-02 Pedro Alves <palves@redhat.com>
8421
8422 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8423 procfs_target/add_target here.
8424 * procfs.c (procfs_target): Make static.
8425 (_initialize_procfs): Call add_target here.
8426 * procfs.h (struct target_ops): Remove forward declaration.
8427 (procfs_target): Remove declaration.
8428 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8429
8430 2018-05-02 Pedro Alves <palves@redhat.com>
8431
8432 * procfs.c (procfs_stopped_by_watchpoint)
8433 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8434 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8435 Forward declare.
8436 (procfs_use_watchpoints): Delete, move contents...
8437 (procfs_target): ... here.
8438 * procfs.h (procfs_use_watchpoints): Delete declaration.
8439 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8440 procfs_use_watchpoints.
8441 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8442 procfs_use_watchpoints.
8443
8444 2018-05-02 Tom Tromey <tom@tromey.com>
8445
8446 PR python/20084:
8447 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8448 and var_zuinteger_unlimited.
8449 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8450 and PARAM_ZUINTEGER_UNLIMITED.
8451 (set_parameter_value): Handle var_zuinteger and
8452 var_zuinteger_unlimited.
8453 (add_setshow_generic): Likewise.
8454 (parmpy_init): Likewise.
8455
8456 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8457
8458 PR rust/23124
8459 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8460 pointer is not null before dereferencing it.
8461
8462 2018-04-30 Tom Tromey <tom@tromey.com>
8463
8464 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8465 is_mi_like_p.
8466
8467 2018-04-30 Tom Tromey <tom@tromey.com>
8468
8469 * breakpoint.c (mention): Remove use of is_mi_like_p.
8470 (print_mention_ranged_breakpoint): Likewise.
8471 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8472 of is_mi_like_p.
8473
8474 2018-04-30 Tom Tromey <tom@tromey.com>
8475
8476 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8477
8478 2018-04-30 Tom Tromey <tom@tromey.com>
8479
8480 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8481 (info_spu_event_command): Remove some uses of is_mi_like_p.
8482
8483 2018-04-30 Tom Tromey <tom@tromey.com>
8484
8485 * python/py-framefilter.c (py_print_single_arg)
8486 (enumerate_locals, py_print_args, py_print_frame): Remove some
8487 uses of is_mi_like_p.
8488
8489 2018-04-30 Tom Tromey <tom@tromey.com>
8490
8491 * ui-out.c: Update.
8492 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8493 * ui-out.h (ui_out::is_mi_like_p): Now const.
8494 (ui_out::do_is_mi_like_p): Now const.
8495 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8496
8497 2018-04-30 Tom Tromey <tom@tromey.com>
8498
8499 * varobj.c (varobj_set_visualizer): Use new_reference.
8500 * python/python.c (gdbpy_decode_line): Use new_reference.
8501 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8502 new_reference.
8503
8504 2018-04-30 Tom Tromey <tom@tromey.com>
8505
8506 * varobj.c (install_new_value): Use new_reference.
8507 * value.h (value_incref): Return void. Swap intro comment with
8508 value_decref.
8509 * value.c (set_value_parent): Use new_reference.
8510 (value_incref): Return void. Update intro comment.
8511 (release_value): Use new_reference.
8512 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8513
8514 2018-04-30 Tom Tromey <tom@tromey.com>
8515
8516 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8517 * gdb_bfd.h (new_bfd_ref): Remove.
8518 (gdb_bfd_open): Update comment.
8519 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8520 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8521 (gdb_bfd_fdopenr): Use new_reference.
8522 * exec.c (exec_file_attach): Use new_reference.
8523
8524 2018-04-30 Tom Tromey <tom@tromey.com>
8525
8526 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8527 method.
8528
8529 2018-04-30 Tom Tromey <tom@tromey.com>
8530
8531 * jit.c (jit_read_code_entry): Use type_align.
8532 * i386-tdep.c (i386_gdbarch_init): Don't call
8533 set_gdbarch_long_long_align_bit.
8534 * gdbarch.sh: Remove long_long_align_bit.
8535 * gdbarch.c, gdbarch.h: Rebuild.
8536 * arc-tdep.c (arc_type_align): New function.
8537 (arc_gdbarch_init): Use arc_type_align. Don't call
8538 set_gdbarch_long_long_align_bit.
8539
8540 2018-04-30 Tom Tromey <tom@tromey.com>
8541
8542 * rust-lang.c (rust_type_alignment): Remove.
8543 (rust_composite_type): Use type_align.
8544
8545 2018-04-30 Tom Tromey <tom@tromey.com>
8546
8547 * NEWS: Mention Type.align.
8548 * python/py-type.c (typy_get_alignof): New function.
8549 (type_object_getset): Add "alignof".
8550
8551 2018-04-30 Tom Tromey <tom@tromey.com>
8552
8553 PR exp/17095:
8554 * NEWS: Update.
8555 * std-operator.def (UNOP_ALIGNOF): New operator.
8556 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8557 New.
8558 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8559 * c-lang.c (c_op_print_tab): Add alignof.
8560 * c-exp.y (ALIGNOF): New token.
8561 (exp): Add "ALIGNOF" production.
8562 (ident_tokens): Add _Alignof and alignof.
8563
8564 2018-04-30 Tom Tromey <tom@tromey.com>
8565
8566 * i386-tdep.c (i386_type_align): New function.
8567 (i386_gdbarch_init): Update.
8568 * gdbarch.sh (type_align): New method.
8569 * gdbarch.c, gdbarch.h: Rebuild.
8570 * arch-utils.h (default_type_align): Declare.
8571 * arch-utils.c (default_type_align): New function.
8572 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8573 (struct type) <align_log2>: New field.
8574 <instance_flags>: Now a bitfield.
8575 (TYPE_RAW_ALIGN): New macro.
8576 (type_align, type_raw_align, set_type_align): Declare.
8577 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8578 functions.
8579 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8580 (get_alignment, maybe_set_alignment): New functions.
8581 (read_structure_type, read_enumeration_type, read_array_type)
8582 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8583 (read_subrange_type, read_base_type): Set type alignment.
8584
8585 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8586
8587 * dwarf2read.c (read_index_from_section): Use bool.
8588
8589 2018-04-29 Fabian Groffen <grobian@gentoo.org>
8590
8591 PR gdb/22950
8592 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8593 with #ifdef.
8594
8595 2018-04-29 John Reiser <jreiser@BitWagon.com>
8596
8597 PR build/22873
8598 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8599 last step, and do it atomically.
8600
8601 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
8602
8603 * compile/compile-c-types.c (convert_int, convert_float):
8604 Update for C FE v1.
8605
8606 2018-04-27 Tom Tromey <tom@tromey.com>
8607
8608 PR rust/22545:
8609 * rust-lang.c (rust_inclusive_range_type_p): New function.
8610 (rust_range): Handle inclusive ranges.
8611 (rust_compute_range): Likewise.
8612 * rust-exp.y (struct rust_op) <inclusive>: New field.
8613 (DOTDOTEQ): New constant.
8614 (range_expr): Add "..=" productions.
8615 (operator_tokens): Add "..=" token.
8616 (ast_range): Add "inclusive" parameter.
8617 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8618 ranges.
8619 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8620 bounds values.
8621 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8622 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8623 Update comments.
8624 * expprint.c (print_subexp_standard): Handle new bounds values.
8625 (dump_subexp_body_standard): Likewise.
8626
8627 2018-04-27 Tom Tromey <tom@tromey.com>
8628
8629 * configure: Rebuild.
8630 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8631 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8632 "OVERRIDE".
8633 (class symbol_needs_eval_context): Likewise.
8634 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8635 (mock_mapped_index::symbol_name_at): Use "override". Remove
8636 "virtual".
8637 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8638 "override".
8639 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8640 * aarch64-tdep.c (instruction_reader::read): Use "override".
8641 (instruction_reader_test::read): Likewise.
8642 * arm-tdep.c (instruction_reader::read): Use "override".
8643 (instruction_reader_thumb::read): Likewise.
8644
8645 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
8646
8647 PR remote/9665
8648 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8649 instead of remote_send.
8650 (remote_send): Remove.
8651
8652 2018-04-26 Pedro Alves <palves@redhat.com>
8653
8654 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8655 find_function_start_sal instead of find_pc_line.
8656
8657 2018-04-26 Pedro Alves <palves@redhat.com>
8658
8659 * breakpoint.c (set_breakpoint_location_function): Handle
8660 mst_data_gnu_ifunc.
8661 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8662 * elfread.c (elf_symtab_read): Give data symbols with
8663 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8664 (elf_rel_plt_read): Update comment.
8665 * linespec.c (convert_linespec_to_sals): Handle
8666 mst_data_gnu_ifunc.
8667 (minsym_found): Handle mst_data_gnu_ifunc.
8668 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8669 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8670 * parse.c (find_minsym_type_and_address): Handle
8671 mst_data_gnu_ifunc.
8672 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8673 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8674 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8675 comment.
8676 <mst_data_gnu_ifunc>: New enumerator.
8677
8678 2018-04-26 Pedro Alves <palves@redhat.com>
8679
8680 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8681 (lookup_minimal_symbol_by_pc_section): ... this. Replace
8682 'want_trampoline' parameter by a lookup_msym_prefer parameter.
8683 Handle it.
8684 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8685 (lookup_minimal_symbol_by_pc): Adjust.
8686 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8687 (lookup_solib_trampoline_symbol_by_pc): Adjust.
8688 * minsyms.h (lookup_msym_prefer): New enum.
8689 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8690 parameter by a lookup_msym_prefer parameter.
8691
8692 2018-04-26 Pedro Alves <palves@redhat.com>
8693
8694 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8695 ends in "@plt" instead of looking at the symbol's section.
8696
8697 2018-04-26 Pedro Alves <palves@redhat.com>
8698
8699 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
8700 all references.
8701 (find_pc_partial_function_gnu_ifunc): Rename to ...
8702 (find_pc_partial_function): ... this, and remove references to
8703 'is_gnu_ifunc_p'.
8704 (find_pc_partial_function): Delete old implementation.
8705 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8706
8707 2018-04-26 Pedro Alves <palves@redhat.com>
8708
8709 * linespec.c (struct bound_minimal_symbol_search_key): New.
8710 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
8711 skip first line if we found a GNU ifunc minimal symbol by name.
8712 (compare_msymbols): Change parameters to work with a destructured
8713 lhs minsym.
8714 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8715 functions.
8716
8717 2018-04-26 Pedro Alves <palves@redhat.com>
8718
8719 * breakpoint.c (set_breakpoint_location_function): Don't resolve
8720 ifunc targets here. Instead, if we have an ifunc minsym, use its
8721 address/name.
8722 (add_location_to_breakpoint): Store the minsym and the objfile in
8723 the breakpoint location.
8724 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8725 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8726 Record the minsym in the sal.
8727 * symtab.h (symtab_and_line) <msymbol>: New field.
8728
8729 2018-04-26 Pedro Alves <palves@redhat.com>
8730
8731 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8732 unless we actually resolved the ifunc.
8733
8734 2018-04-26 Pedro Alves <palves@redhat.com>
8735
8736 * c-exp.y (variable production): Prefer ifunc minsyms over
8737 regular function symbols.
8738 * symtab.c (find_gnu_ifunc): New function.
8739 * minsyms.h (lookup_msym_prefer): New enum.
8740 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8741 parameter by a lookup_msym_prefer parameter.
8742 * symtab.h (find_gnu_ifunc): New declaration.
8743
8744 2018-04-26 Pedro Alves <palves@redhat.com>
8745
8746 * blockframe.c (find_gnu_ifunc_target_type): New function.
8747 (find_function_type): New.
8748 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8749 return a value with a memory address.
8750 (eval_call): For calls to GNU ifunc functions, try to find the
8751 type of the target function from the type that the resolver
8752 returns.
8753 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8754 symbols.
8755 * infcall.c (find_function_return_type): Delete.
8756 (find_function_addr): Add 'function_type' parameter. For calls to
8757 GNU ifunc functions, try to find the type of the target function
8758 from the type that the resolver returns, and return it via
8759 FUNCTION_TYPE.
8760 (call_function_by_hand_dummy): Adjust to use the function type
8761 returned by find_function_addr.
8762 (find_function_addr): Add 'function_type' parameter and move
8763 description here.
8764 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8765 declarations.
8766
8767 2018-04-26 Pedro Alves <palves@redhat.com>
8768
8769 * c-exp.y (variable production): Skip finding an alias for ifunc
8770 symbols.
8771
8772 2018-04-26 Pedro Alves <palves@redhat.com>
8773
8774 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8775
8776 2018-04-25 Pedro Alves <palves@redhat.com>
8777
8778 * infcmd.c (kill_command): Print the pid as string, not the whole
8779 thread's ptid. Add comment. s/has been killed/killed/ in output
8780 message.
8781 * remote.c (remote_detach_1): Print the pid as string, not the
8782 whole thread's ptid.
8783
8784 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8785 Sergio Durigan Junior <sergiodj@redhat.com>
8786 Pedro Alves <palves@redhat.com>
8787
8788 * infcmd.c (kill_command): Print message when inferior has
8789 been killed.
8790 * inferior.c (print_inferior_events): Remove 'static'. Set as
8791 '1'.
8792 (add_inferior): Improve message printed when
8793 'print_inferior_events' is on.
8794 (exit_inferior): Remove message printed when
8795 'print_inferior_events' is on.
8796 (detach_inferior): Improve message printed when
8797 'print_inferior_events' is on.
8798 (initialize_inferiors): Use 'add_inferior_silent' to set
8799 'current_inferior_'.
8800 * inferior.h (print_inferior_events): Declare here as
8801 'extern'.
8802 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8803 '[Detaching...]' messages when 'print_inferior_events' is on.
8804 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8805 as prefix/suffix for messages. Remove periods. Fix erroneous
8806 'Detaching after fork from child...', replace it by '... from
8807 parent...'.
8808 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8809 prefix/suffix when printing 'Detaching...' messages. Print
8810 them when 'print_inferior_events' is on.
8811 * remote.c (remote_detach_1): Print message when detaching
8812 from inferior and '!is_fork_parent'.
8813
8814 2018-04-24 Tom Tromey <tom@tromey.com>
8815
8816 * cli-out.h: Reindent.
8817
8818 2018-04-24 Tom Tromey <tom@tromey.com>
8819
8820 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8821 (cli_ui_out::do_field_string): Use fputs_filtered.
8822 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8823
8824 2018-04-23 Tom Tromey <tom@tromey.com>
8825
8826 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8827 gdb::unique_xmalloc_ptr.
8828
8829 2018-04-23 Tom Tromey <tom@tromey.com>
8830
8831 * configure: Rebuild.
8832
8833 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
8834
8835 PR gdb/23095
8836 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8837 prepare_for_testing. Set normal_bp to r_debug_state if target
8838 is bsd.
8839
8840 2018-04-21 Pedro Alves <palves@redhat.com>
8841 Rajendra SY <rajendra.sy@gmail.com>
8842
8843 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8844 * remote.c (extended_remote_attach): In all-stop mode, mark the
8845 thread as executing.
8846
8847 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8848
8849 * thread.c (thread_apply_all_command): Fix comment.
8850 (thread_command): Fix comment.
8851
8852 2018-04-10 Alan Hayward <alan.hayward@arm.com>
8853
8854 * common/tdesc.h (tdesc_create_feature): Remove xml filename
8855 parameter.
8856 * features/aarch64-core.c (create_feature_aarch64_core):
8857 Regenerate.
8858 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
8859 Likewise.
8860 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
8861 Likewise.
8862 * features/i386/32bit-avx512.c
8863 (create_feature_i386_32bit_avx512): Likewise.
8864 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
8865 Likewise.
8866 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
8867 Likewise.
8868 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
8869 Likewise.
8870 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
8871 Likewise.
8872 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
8873 Likewise.
8874 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
8875 Likewise.
8876 * features/i386/64bit-avx512.c
8877 (create_feature_i386_64bit_avx512): Likewise.
8878 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
8879 Likewise.
8880 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
8881 Likewise.
8882 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
8883 Likewise.
8884 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
8885 Likewise.
8886 * features/i386/64bit-segments.c
8887 (create_feature_i386_64bit_segments): Likewise.
8888 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
8889 Likewise.
8890 * features/i386/x32-core.c
8891 (create_feature_i386_x32_core): Likewise.
8892 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
8893 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
8894 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
8895 * target-descriptions.c: In generated code, don't pass xml
8896 filename.
8897
8898 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8899
8900 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
8901 (print_xml_feature::visit_post): Likewise.
8902 (print_xml_feature::visit): Likewise.
8903 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
8904 (print_xml_feature): Add new class.
8905 * regformats/regdat.sh: Null xmltarget on feature targets.
8906 * target-descriptions.c (struct target_desc): Add xmltarget.
8907 (maintenance_check_tdesc_xml_convert): Add unittest function.
8908 (tdesc_get_features_xml): Add function to get xml.
8909 (maintenance_check_xml_descriptions): Test xml generation.
8910 * xml-tdesc.c (string_read_description_xml): Add function.
8911 * xml-tdesc.h (string_read_description_xml): Add declaration.
8912
8913 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8914
8915 * features/Makefile: Add feature marker to targets with new style
8916 target descriptions.
8917 * regformats/aarch64.dat: Regenerate.
8918 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
8919 * regformats/i386/amd64-avx-linux.dat: Likewise.
8920 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
8921 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
8922 * regformats/i386/amd64-linux.dat: Likewise.
8923 * regformats/i386/amd64-mpx-linux.dat: Likewise.
8924 * regformats/i386/amd64.dat: Likewise.
8925 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
8926 * regformats/i386/i386-avx-linux.dat: Likewise.
8927 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
8928 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
8929 * regformats/i386/i386-linux.dat: Likewise.
8930 * regformats/i386/i386-mmx-linux.dat: Likewise.
8931 * regformats/i386/i386-mpx-linux.dat: Likewise.
8932 * regformats/i386/i386.dat: Likewise.
8933 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
8934 * regformats/i386/x32-avx-linux.dat: Likewise.
8935 * regformats/i386/x32-linux.dat: Likewise.
8936 * regformats/tic6x-c62x-linux.dat: Likewise.
8937 * regformats/tic6x-c64x-linux.dat: Likewise.
8938 * regformats/tic6x-c64xp-linux.dat: Likewise.
8939 * regformats/regdat.sh: Parse feature marker.
8940
8941 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8942
8943 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
8944 (tdesc_osabi_name): Likewise.
8945 * target-descriptions.c (tdesc_architecture_name): Add new
8946 function.
8947 (tdesc_osabi_name): Likewise.
8948
8949 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8950
8951 * common/tdesc.c (tdesc_predefined_type): Move to here.
8952 (tdesc_named_type): Likewise.
8953 (tdesc_create_vector): Likewise.
8954 (tdesc_create_struct): Likewise.
8955 (tdesc_set_struct_size): Likewise.
8956 (tdesc_create_union): Likewise.
8957 (tdesc_create_flags): Likewise.
8958 (tdesc_create_enum): Likewise.
8959 (tdesc_add_field): Likewise.
8960 (tdesc_add_typed_bitfield): Likewise.
8961 (tdesc_add_bitfield): Likewise.
8962 (tdesc_add_flag): Likewise.
8963 (tdesc_add_enum_value): Likewise.
8964 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
8965 (struct tdesc_type_vector): Likewise.
8966 (struct tdesc_type_field): Likewise.
8967 (struct tdesc_type_with_fields): Likewise.
8968 (tdesc_create_enum): Add declaration.
8969 (tdesc_add_typed_bitfield): Likewise.
8970 (tdesc_add_enum_value): Likewise.
8971 * target-descriptions.c (tdesc_type_field): Move from here.
8972 (tdesc_type_builtin): Likewise.
8973 (tdesc_type_vector): Likewise.
8974 (tdesc_type_with_fields): Likewise.
8975 (tdesc_predefined_types): Likewise.
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 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
8989 (tdesc_add_typed_bitfield): Likewise.
8990 (tdesc_add_enum_value): Likewise.
8991
8992 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8993
8994 * common/tdesc.c (tdesc_feature::accept): Move to here.
8995 (tdesc_feature::operator==): Likewise.
8996 (tdesc_create_reg): Likewise.
8997 * common/tdesc.h (tdesc_type_kind): Likewise.
8998 (struct tdesc_type): Likewise.
8999 (struct tdesc_feature): Likewise.
9000 * regformats/regdat.sh: Create a feature.
9001 * target-descriptions.c (tdesc_type_kind): Move from here.
9002 (tdesc_type): Likewise.
9003 (tdesc_type_up): Likewise.
9004 (tdesc_feature): Likewise.
9005 (tdesc_create_reg): Likewise.
9006
9007 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9008
9009 * Makefile.in: Add arch/tdesc.c
9010 * common/tdesc.c: New file.
9011 * common/tdesc.h (tdesc_element_visitor): Move to here.
9012 (tdesc_element): Likewise.
9013 (tdesc_reg): Likewise.
9014 (tdesc_reg_up): Likewise.
9015 * regformats/regdef.h (reg): Add offset to constructors.
9016 * target-descriptions.c (tdesc_element_visitor): Move from here.
9017 (tdesc_element): Likewise.
9018 (tdesc_reg): Likewise.
9019 (tdesc_reg_up): Likewise.
9020
9021 2018-04-17 Tom Tromey <tom@tromey.com>
9022
9023 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9024 discriminant field.
9025
9026 2018-04-17 Tom Tromey <tom@tromey.com>
9027
9028 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9029
9030 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9031
9032 * symtab.c (print_symbol_info): Skip printing filename and line
9033 number when `last' is NULL.
9034 (symtab_symbol_info): Use empty string instead of NULL for first
9035 invocation of print_symbol_info.
9036 (rbreak_command): Pass NULL to `last' parameter of
9037 print_symbol_info.
9038
9039 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9040
9041 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9042 instead of nullptr.
9043
9044 2018-04-16 Pedro Alves <palves@redhat.com>
9045
9046 * MAINTAINERS (sh): Remove.
9047 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9048 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9049 (ALLDEPFILES): Remove sh64-tdep.c.
9050 * NEWS: Mentions that support for SH-5/SH64 is removed.
9051 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9052 (sh*-*-openbsd*): Ditto.
9053 (sh64-*-elf*): Remove.
9054 (sh*): Remove.
9055 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9056 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9057 * sh-tdep.c: No longer include "sh64-tdep.h".
9058 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9059 * sh64-tdep.c, sh64-tdep.h: Remove files.
9060
9061 2018-04-16 Pedro Alves <palves@redhat.com>
9062
9063 * MAINTAINERS: Remove m88k.
9064 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9065 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9066 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9067 * NEWS: Mention that support for m88k was removed.
9068 * configure.host (m88*-*-*): Remove support.
9069 * configure.nat (m88k-*-*): Remove support.
9070 * configure.tgt (m88*-*-openbsd*): Remove.
9071 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9072
9073 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9074
9075 * configure.tgt (x86_tobjs): New variable.
9076 (amd64_tobjs, i386_tobjs): Use it.
9077
9078 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9079
9080 * symtab.c (print_symbol_info): Precede the symbol definition by
9081 the line number when available.
9082 * NEWS: Advertise this enhancement.
9083
9084 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9085
9086 * NEWS (New options): announce set/show record btrace cpu.
9087 * btrace.c: Include record-btrace.h.
9088 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9089 the vendor is unknown.
9090 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9091 Maybe overwrite the btrace configuration's cpu.
9092 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9093 (btrace_fetch): Add cpu parameter. Update callers.
9094 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9095 Maybe overwrite the btrace configuration's cpu. Skip enabling
9096 errata workarounds if the vendor is unknown.
9097 * python/py-record-btrace.c: Include record-btrace.h.
9098 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9099 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9100 * record-btrace.c (record_btrace_cpu_state_kind): New.
9101 (record_btrace_cpu): New.
9102 (set_record_btrace_cpu_cmdlist): New.
9103 (record_btrace_get_cpu): New.
9104 (require_btrace_thread, record_btrace_info)
9105 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9106 (cmd_set_record_btrace_cpu_none): New.
9107 (cmd_set_record_btrace_cpu_auto): New.
9108 (cmd_set_record_btrace_cpu): New.
9109 (cmd_show_record_btrace_cpu): New.
9110 (_initialize_record_btrace): Initialize set/show record btrace cpu
9111 commands.
9112 * record-btrace.h (record_btrace_get_cpu): New.
9113
9114 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9115
9116 * record.c (set_record_command): Fix typo in message.
9117
9118 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9119
9120 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9121
9122 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9123
9124 * infrun.c (process_event_stop_test): Call
9125 gdbarch_in_indirect_branch_thunk.
9126 * gdbarch.sh (in_indirect_branch_thunk): New.
9127 * gdbarch.c: Regenerated.
9128 * gdbarch.h: Regenerated.
9129 * x86-tdep.h: New.
9130 * x86-tdep.c: New.
9131 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9132 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9133 (ALLDEPFILES): Add x86-tdep.c.
9134 * arch-utils.h (default_in_indirect_branch_thunk): New.
9135 * arch-utils.c (default_in_indirect_branch_thunk): New.
9136 * i386-tdep: Include x86-tdep.h.
9137 (i386_in_indirect_branch_thunk): New.
9138 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9139 function.
9140 * amd64-tdep: Include x86-tdep.h.
9141 (amd64_in_indirect_branch_thunk): New.
9142 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9143
9144 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9145
9146 PR gdb/23053
9147 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9148 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9149 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9150 regression.
9151
9152 2018-04-12 Tom Tromey <tom@tromey.com>
9153
9154 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9155 (rust_evaluate_subexp): Likewise.
9156
9157 2018-04-12 Pedro Alves <palves@redhat.com>
9158
9159 * procfs.c (procfs_detach): Make forward declaration's prototype
9160 match definition's protototype.
9161 (proc_get_LDT_entry): Remove stale do_cleanups call.
9162
9163 2018-04-12 Pedro Alves <palves@redhat.com>
9164
9165 * target.h (target_ops::to_has_exited): Delete.
9166 (target_has_exited): Delete.
9167 * target-delegates.c: Regenerate.
9168
9169 2018-04-11 Pedro Alves <palves@redhat.com>
9170
9171 * target.c (fileio_fh_t::t): Add comment.
9172 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9173 (target_fileio_close): Handle a NULL target.
9174 (invalidate_fileio_fh): New.
9175 (target_close): Call it.
9176 * remote.c (remote_hostio_send_command): No longer check whether
9177 remote_desc is open.
9178
9179 2018-04-11 Pedro Alves <palves@redhat.com>
9180
9181 * target.c (fileio_fh_t): Make it a named struct instead of a
9182 typedef.
9183 (fileio_fh_t::is_closed): New method.
9184 (DEF_VEC_O (fileio_fh_t)): Remove.
9185 (fileio_fhandles): Now a std::vector.
9186 (is_closed_fileio_fh): Delete.
9187 (acquire_fileio_fd): Adjust. Rename parameters.
9188 (release_fileio_fd): Adjust.
9189 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9190 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9191 (target_fileio_close): Adjust.
9192
9193 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9194
9195 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9196 index.
9197
9198 2018-04-10 Pedro Alves <palves@redhat.com>
9199
9200 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9201 (scoped_finish_thread_state): New class.
9202 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9203 cleanup.
9204 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9205 (fetch_inferior_event, normal_stop): Likewise.
9206 * thread.c (finish_thread_state_cleanup): Delete.
9207
9208 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9209 Pedro Alves <palves@redhat.com>
9210
9211 * value.c: Include "selftest.h" and "common/array-view.h".
9212 (struct range) <operator ==>: New.
9213 (test_ranges_contain): New.
9214 (check_ranges_vector): New.
9215 (test_insert_into_bit_range_vector): New.
9216 (_initialize_values): Register selftests.
9217 * common/array-view.h (operator==, operator!=): New.
9218
9219 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9220
9221 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9222 an iterator.
9223 * inline-frame.c: Include <algorithm>.
9224 (struct inline_state): Add constructor.
9225 (inline_state_s): Remove.
9226 (DEF_VEC_O(inline_state_s)): Remove.
9227 (inline_states): Change type to std::vector.
9228 (find_inline_frame_state): Adjust to std::vector.
9229 (allocate_inline_frame_state): Remove.
9230 (clear_inline_frame_state): Adjust to std::vector.
9231 (skip_inline_frames): Adjust to std::vector.
9232
9233 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9234
9235 * tracepoint.h (struct trace_state_variable): Add constructor.
9236 <name>: Change type to std::string.
9237 * tracepoint.c (tsv_s): Remove.
9238 (DEF_VEC_O(tsv_s)): Remove.
9239 (tvariables): Change to std::vector.
9240 (create_trace_state_variable): Adjust to std::vector.
9241 (find_trace_state_variable): Likewise.
9242 (find_trace_state_variable_by_number): Likewise.
9243 (delete_trace_state_variable): Likewise.
9244 (trace_variable_command): Adjust to std::string.
9245 (delete_trace_variable_command): Likewise.
9246 (tvariables_info_1): Adjust to std::vector.
9247 (save_trace_state_variables): Likewise.
9248 (start_tracing): Likewise.
9249 (merge_uploaded_trace_state_variables): Adjust to std::vector
9250 and std::string.
9251 * target.h (struct target_ops)
9252 <to_download_trace_state_variable>: Pass reference to
9253 trace_state_variable.
9254 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9255 * target-delegates.c: Re-generate.
9256 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9257 (mi_tsv_deleted): Likewise.
9258 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9259 * remote.c (remote_download_trace_state_variable): Change
9260 pointer to reference and adjust.
9261 * make-target-delegates (parse_argtypes): Handle references.
9262 (write_function_header): Likewise.
9263 (munge_type): Likewise.
9264
9265 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9266
9267 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9268 string_view-selftests.c.
9269 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9270 testsuite.
9271 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9272 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9273 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9274 * unittests/basic_string_view/element_access/char/1.cc:
9275 Likewise.
9276 * unittests/basic_string_view/element_access/char/empty.cc:
9277 Likewise.
9278 * unittests/basic_string_view/element_access/char/front_back.cc:
9279 Likewise.
9280 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9281 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9282 Likewise.
9283 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9284 Likewise.
9285 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9286 Likewise.
9287 * unittests/basic_string_view/operations/compare/char/1.cc:
9288 Likewise.
9289 * unittests/basic_string_view/operations/compare/char/13650.cc:
9290 Likewise.
9291 * unittests/basic_string_view/operations/copy/char/1.cc:
9292 Likewise.
9293 * unittests/basic_string_view/operations/data/char/1.cc:
9294 Likewise.
9295 * unittests/basic_string_view/operations/find/char/1.cc:
9296 Likewise.
9297 * unittests/basic_string_view/operations/find/char/2.cc:
9298 Likewise.
9299 * unittests/basic_string_view/operations/find/char/3.cc:
9300 Likewise.
9301 * unittests/basic_string_view/operations/find/char/4.cc:
9302 Likewise.
9303 * unittests/basic_string_view/operations/rfind/char/1.cc:
9304 Likewise.
9305 * unittests/basic_string_view/operations/rfind/char/2.cc:
9306 Likewise.
9307 * unittests/basic_string_view/operations/rfind/char/3.cc:
9308 Likewise.
9309 * unittests/basic_string_view/operations/substr/char/1.cc:
9310 Likewise.
9311 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9312 * unittests/string_view-selftests.c: New file.
9313
9314 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9315
9316 * unittests/basic_string_view/capacity/1.cc: New file.
9317 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9318 * unittests/basic_string_view/cons/char/1.cc: New file.
9319 * unittests/basic_string_view/cons/char/2.cc: New file.
9320 * unittests/basic_string_view/cons/char/3.cc: New file.
9321 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9322 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9323 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9324 * unittests/basic_string_view/element_access/char/1.cc: New file.
9325 * unittests/basic_string_view/element_access/char/2.cc: New file.
9326 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9327 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9328 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9329 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9330 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9331 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9332 * unittests/basic_string_view/include.cc: New file.
9333 * unittests/basic_string_view/inserters/char/1.cc: New file.
9334 * unittests/basic_string_view/inserters/char/2.cc: New file.
9335 * unittests/basic_string_view/inserters/char/3.cc: New file.
9336 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9337 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9338 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9339 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9340 * unittests/basic_string_view/literals/types.cc: New file.
9341 * unittests/basic_string_view/literals/values.cc: New file.
9342 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9343 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9344 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9345 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9346 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9347 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9348 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9349 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9350 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9351 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9352 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9353 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9354 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9355 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9356 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9357 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9358 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9359 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9360 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9361 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9362 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9363 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9364 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9365 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9366 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9367 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9368 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9369 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9370 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9371 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9372 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9373 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9374 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9375 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9376 * unittests/basic_string_view/operators/char/2.cc: New file.
9377 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9378 * unittests/basic_string_view/range_access/char/1.cc: New file.
9379 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9380 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9381 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9382 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9383 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9384 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9385 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9386 * unittests/basic_string_view/typedefs.cc: New file.
9387 * unittests/basic_string_view/types/1.cc: New file.
9388
9389 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9390
9391 * common/gdb_string_view.h: Remove libstdc++ implementation
9392 details, adjust to gdb reality.
9393 * common/gdb_string_view.tcc: Likewise.
9394 * cli/cli-script.c (struct string_view): Remove.
9395 (user_args) <m_args>: Change element type to gdb::string_view.
9396 (user_args::insert_args): Adjust.
9397
9398 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9399
9400 * common/gdb_string_view.h: New file.
9401 * common/gdb_string_view.tcc: New file.
9402
9403 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9404
9405 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9406 * configure: Re-generate.
9407
9408 2018-04-09 Pedro Alves <palves@redhat.com>
9409
9410 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9411 (set_target_gdbarch): Call
9412 gdb::observers::architecture_changed.notify instead of
9413 observer_notify_architecture_changed.
9414
9415 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9416
9417 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9418 (do_restore_current_traceframe_cleanup): Remove.
9419 (restore_current_traceframe_cleanup_dtor): Remove.
9420 (make_cleanup_restore_current_traceframe): Remove.
9421 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9422 New.
9423 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9424 * infrun.c (fetch_inferior_event): Use
9425 scoped_restore_current_traceframe.
9426
9427 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9428
9429 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9430 Remove.
9431 <n_allocated_type_units>: Remove.
9432 <all_type_units>: Change to std::vector.
9433 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9434 to std::vector change.
9435 (dwarf2_per_objfile::get_cutu): Likewise.
9436 (dwarf2_per_objfile::get_tu): Likewise.
9437 (create_signatured_type_table_from_index): Likewise.
9438 (create_signatured_type_table_from_debug_names): Likewise.
9439 (dw2_symtab_iter_next): Likewise.
9440 (dw2_print_stats): Likewise.
9441 (dw2_expand_all_symtabs): Likewise.
9442 (dw2_expand_marked_cus): Likewise.
9443 (dw2_debug_names_iterator::next): Likewise.
9444 (dwarf2_initialize_objfile): Likewise.
9445 (add_signatured_type_cu_to_table): Likewise.
9446 (create_all_type_units): Likewise.
9447 (add_type_unit): Likewise.
9448 (struct tu_abbrev_offset): Add constructor.
9449 (build_type_psymtabs_1): Adjust to std::vector change.
9450 (print_tu_stats): Likewise.
9451 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9452 (write_debug_names): Likewise.
9453
9454 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9455
9456 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9457 Make an std::vector.
9458 <n_comp_units>: Remove.
9459 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9460 to std::vector change.
9461 (dwarf2_per_objfile::get_cutu): Likewise.
9462 (dwarf2_per_objfile::get_cu): Likewise.
9463 (create_cus_from_index): Likewise.
9464 (create_addrmap_from_index): Likewise.
9465 (create_addrmap_from_aranges): Likewise.
9466 (dwarf2_read_index): Likewise.
9467 (dw2_find_last_source_symtab): Likewise.
9468 (dw2_map_symtabs_matching_filename): Likewise.
9469 (dw2_symtab_iter_next): Likewise.
9470 (dw2_print_stats): Likewise.
9471 (dw2_expand_all_symtabs): Likewise.
9472 (dw2_expand_symtabs_with_fullname): Likewise.
9473 (dw2_expand_marked_cus): Likewise.
9474 (dw2_map_symbol_filenames): Likewise.
9475 (create_cus_from_debug_names): Likewise.
9476 (dwarf2_read_debug_names): Likewise.
9477 (dw2_debug_names_iterator::next): Likewise.
9478 (dwarf2_initialize_objfile): Likewise.
9479 (set_partial_user): Likewise.
9480 (dwarf2_build_psymtabs_hard): Likewise.
9481 (read_comp_units_from_section): Remove arguments, adjust to
9482 std::vector change.
9483 (create_all_comp_units): Adjust to std::vector and
9484 read_comp_units_from_section changes.
9485 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9486 change.
9487 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9488 (psyms_seen_size): Likewise.
9489 (write_gdbindex): Likewise.
9490 (write_debug_names): Likewise.
9491
9492 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9493
9494 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9495 with dwarf2_per_objfile.
9496 (create_cus_from_index): Likewise.
9497 (create_signatured_type_table_from_index): Likewise.
9498 (dwarf2_read_index): Likewise.
9499 (dwarf2_initialize_objfile): Likewise.
9500 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9501 per_cu rather than get_dwarf2_per_objfile.
9502
9503 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9504
9505 * dwarf2read.h (struct signatured_type): Forward declare.
9506 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9507 New methods.
9508 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9509 (dw2_get_cutu): ...this.
9510 (dwarf2_per_objfile::get_cu): Rename from...
9511 (dw2_get_cu): ...this.
9512 (dwarf2_per_objfile::get_tu): New.
9513 (create_addrmap_from_index): Adjust.
9514 (create_addrmap_from_aranges): Adjust.
9515 (dw2_find_last_source_symtab): Adjust.
9516 (dw2_map_symtabs_matching_filename): Adjust.
9517 (dw2_symtab_iter_next): Adjust.
9518 (dw2_print_stats): Adjust.
9519 (dw2_expand_all_symtabs): Adjust.
9520 (dw2_expand_symtabs_with_fullname): Adjust.
9521 (dw2_expand_marked_cus): Adjust.
9522 (dw_expand_symtabs_matching_file_matcher): Adjust.
9523 (dw2_map_symbol_filenames): Adjust.
9524 (dw2_debug_names_iterator::next): Adjust.
9525 (dwarf2_initialize_objfile): Adjust.
9526 (set_partial_user): Adjust.
9527 (dwarf2_build_psymtabs_hard): Adjust.
9528
9529 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9530
9531 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9532 Remove unused variables.
9533 (dw2_map_symtabs_matching_filename): Likewise.
9534 (dwarf2_record_block_ranges): Likewise.
9535 (dwarf2_read_addr_index): Likewise.
9536 (follow_die_offset): Likewise.
9537
9538 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9539
9540 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9541 to symbol_file_add_main.
9542
9543 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9544
9545 PR mi/22299
9546 * mi/mi-console.c (do_fputc_async_safe): New.
9547 (mi_console_file::write_async_safe): New.
9548 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9549 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9550 New.
9551 * ui-file.c (ui_file::putstrn): Adjust call to
9552 fputstrn_unfiltered.
9553 * utils.c (printchar): Replace do_fputs and do_fprintf
9554 parameters by do_fputc.
9555 (fputstr_filtered): Adjust call to printchar.
9556 (fputstr_unfiltered): Likewise.
9557 (fputstrn_filtered): Likewise.
9558 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9559 printchar.
9560 * utils.h (do_fputc_ftype): New typedef.
9561 (fputstrn_unfiltered): Add do_fputc parameter.
9562
9563 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9564
9565 * regformats/i386/i386-avx.dat: Remove.
9566
9567 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9568
9569 PR gdb/22979
9570 * amd64-tdep.c (amd64_none_init_abi): New function.
9571 (amd64_x32_none_init_abi): New function.
9572 (_initialize_amd64_tdep): Register handlers for x86-64 and
9573 x64_32 with GDB_OSABI_NONE.
9574 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9575 GDB_OSABI_NONE osabi.
9576
9577 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9578
9579 PR gdb/22980
9580 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9581 GDB_OSABI_NONE.
9582 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9583 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9584
9585 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9586
9587 * common/byte-vector.h (char_vector): New type.
9588 * target.h (target_read_alloc): Return
9589 gdb::optional<byte_vector>.
9590 (target_read_stralloc): Return gdb::optional<char_vector>.
9591 (target_get_osdata): Return gdb::optional<char_vector>.
9592 * target.c (target_read_alloc_1): Templatize. Replacement
9593 manual memory management with vector.
9594 (target_read_alloc): Change return type, adjust.
9595 (target_read_stralloc): Change return type, adjust.
9596 (target_get_osdata): Change return type, adjust.
9597 * auxv.c (struct auxv_info) <length>: Remove.
9598 <data>: Change type to gdb::optional<byte_vector>.
9599 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9600 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9601 (target_auxv_search): Adjust.
9602 (fprint_target_auxv): Adjust.
9603 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9604 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9605 (linux_make_corefile_notes): Adjust.
9606 * osdata.c (get_osdata): Adjust.
9607 * remote.c (remote_get_threads_with_qxfer): Adjust.
9608 (remote_memory_map): Adjust.
9609 (remote_traceframe_info): Adjust.
9610 (btrace_read_config): Adjust.
9611 (remote_read_btrace): Adjust.
9612 (remote_pid_to_exec_file): Adjust.
9613 * solib-aix.c (solib_aix_get_library_list): Adjust.
9614 * solib-dsbt.c (decode_loadmap): Don't free buf.
9615 (dsbt_get_initial_loadmaps): Adjust.
9616 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9617 * solib-target.c (solib_target_current_sos): Adjust.
9618 * tracepoint.c (sdata_make_value): Adjust.
9619 * xml-support.c (xinclude_start_include): Adjust.
9620 (xml_fetch_content_from_file): Adjust.
9621 * xml-support.h (xml_fetch_another): Change return type.
9622 (xml_fetch_content_from_file): Change return type.
9623 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9624 * xml-tdesc.c (file_read_description_xml): Adjust.
9625 (fetch_available_features_from_target): Change return type.
9626 (target_fetch_description_xml): Adjust.
9627 (target_read_description_xml): Adjust.
9628
9629 2018-04-06 Tom Tromey <tom@tromey.com>
9630
9631 * value.c (~value): Update.
9632 (struct value) <contents>: Now unique_xmalloc_ptr.
9633 (value_contents_bits_eq, allocate_value_contents)
9634 (value_contents_raw, value_contents_all_raw)
9635 (value_contents_for_printing, value_contents_for_printing_const)
9636 (set_value_enclosing_type): Update.
9637
9638 2018-04-06 Tom Tromey <tom@tromey.com>
9639
9640 * value.c (range_s): Remove typedef, VEC.
9641 (struct range): Add operator<.
9642 (range_lessthan): Remove.
9643 (ranges_contain): Change type.
9644 (~value): Update.
9645 (struct value) <unavailable, optimized_out>: Now std::vector.
9646 (value_entirely_available)
9647 (value_entirely_covered_by_range_vector)
9648 (value_entirely_unavailable, value_entirely_optimized_out):
9649 Update.
9650 (insert_into_bit_range_vector): Change argument type.
9651 (find_first_range_overlap): Likewise.
9652 (struct ranges_and_idx, value_contents_bits_eq)
9653 (require_not_optimized_out, require_available): Update.
9654 (ranges_copy_adjusted): Change argument types.
9655 (value_optimized_out, value_copy, value_fetch_lazy): Update.
9656
9657 2018-04-06 Tom Tromey <tom@tromey.com>
9658
9659 * value.c (~value): Update.
9660 (struct value) <parent>: Now a value_ref_ptr.
9661 (value_parent, set_value_parent, value_address, value_copy):
9662 Update.
9663
9664 2018-04-06 Tom Tromey <tom@tromey.com>
9665
9666 * value.c (struct value): Add constructor, destructor, and member
9667 initializers.
9668 (allocate_value_lazy, value_decref): Update.
9669
9670 2018-04-06 Tom Tromey <tom@tromey.com>
9671
9672 * value.c (struct value) <released, next>: Remove.
9673 (all_values): Now a std::vector.
9674 (allocate_value_lazy): Update.
9675 (value_next): Remove.
9676 (value_mark, value_free_to_mark, release_value)
9677 (value_release_to_mark): Update.
9678
9679 2018-04-06 Tom Tromey <tom@tromey.com>
9680
9681 * value.h (fetch_subexp_value, value_release_to_mark): Update.
9682 (free_value_chain): Remove.
9683 * value.c (free_value_chain): Remove.
9684 (value_release_to_mark): Return a std::vector.
9685 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9686 std::vector.
9687 (check_condition): Update.
9688 * eval.c (fetch_subexp_value): Change "val_chain" to a
9689 std::vector.
9690 * breakpoint.c (update_watchpoint): Update.
9691 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9692
9693 2018-04-06 Tom Tromey <tom@tromey.com>
9694
9695 * value.h (free_all_values): Remove.
9696 * value.c (free_all_values): Remove.
9697
9698 2018-04-06 Tom Tromey <tom@tromey.com>
9699
9700 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9701 (value_history_chain, value_history_count): Remove.
9702 (value_history): New global.
9703 (record_latest_value, access_value_history, show_values)
9704 (preserve_values): Update.
9705
9706 2018-04-06 Tom Tromey <tom@tromey.com>
9707
9708 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9709 * varobj.c (varobj_set_display_format, varobj_set_value)
9710 (install_default_visualizer, construct_visualizer)
9711 (install_new_value, ~varobj, varobj_get_value_type)
9712 (my_value_of_variable, varobj_editable_p): Update.
9713 * c-varobj.c (c_describe_child, c_value_of_variable)
9714 (cplus_number_of_children, cplus_describe_child): Update.
9715 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9716 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9717 (ada_value_of_variable, ada_value_is_changeable_p): Update.
9718
9719 2018-04-06 Tom Tromey <tom@tromey.com>
9720
9721 * printcmd.c (last_examine_address): Change type to
9722 value_ref_ptr.
9723 (do_examine, x_command): Update.
9724
9725 2018-04-06 Tom Tromey <tom@tromey.com>
9726
9727 * value.c (release_value): Update.
9728 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9729 (struct bpstats) <val>: Now a value_ref_ptr.
9730 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9731 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9732 (~watchpoint, print_it_watchpoint, watch_command_1)
9733 (invalidate_bp_value_on_memory_change): Update.
9734
9735 2018-04-06 Tom Tromey <tom@tromey.com>
9736
9737 * varobj.c (varobj_clear_saved_item)
9738 (update_dynamic_varobj_children, install_new_value, ~varobj):
9739 Update.
9740 * value.h (value_incref): Move declaration earlier.
9741 (value_decref): Rename from value_free.
9742 (struct value_ref_policy): New.
9743 (value_ref_ptr): New typedef.
9744 (struct value_deleter): Remove.
9745 (gdb_value_up): Remove typedef.
9746 (release_value): Change return type.
9747 (release_value_or_incref): Remove.
9748 * value.c (set_value_parent): Update.
9749 (value_incref): Change return type.
9750 (value_decref): Rename from value_free.
9751 (value_free_to_mark, free_all_values, free_value_chain): Update.
9752 (release_value): Return value_ref_ptr.
9753 (release_value_or_incref): Remove.
9754 (record_latest_value, set_internalvar, clear_internalvar):
9755 Update.
9756 * stack.c (info_frame_command): Don't call value_free.
9757 * python/py-value.c (valpy_dealloc, valpy_new)
9758 (value_to_value_object): Update.
9759 * printcmd.c (do_examine): Update.
9760 * opencl-lang.c (lval_func_free_closure): Update.
9761 * mi/mi-main.c (register_changed_p): Don't call value_free.
9762 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9763 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9764 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9765 value_free.
9766 * guile/scm-value.c (vlscm_free_value_smob)
9767 (vlscm_scm_from_value): Update.
9768 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9769 (frame_unwind_register_unsigned, get_frame_register_bytes)
9770 (put_frame_register_bytes): Don't call value_free.
9771 * findvar.c (address_from_register): Don't call value_free.
9772 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9773 * dwarf2loc.c (entry_data_value_free_closure)
9774 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9775 (dwarf2_evaluate_loc_desc_full): Update.
9776 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9777 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9778 (~watchpoint, watch_command_1)
9779 (invalidate_bp_value_on_memory_change): Update.
9780 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9781
9782 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9783
9784 PR gdb/23022
9785 * warning.m4: Add -Wno-error=deprecated-register.
9786 * configure: Re-generate.
9787
9788 2018-04-05 Tom Tromey <tom@tromey.com>
9789
9790 * linespec.h: Remove include of "vec.h".
9791
9792 2018-04-05 Tom Tromey <tom@tromey.com>
9793
9794 * linespec.c (typep): Remove typedef.
9795 (find_methods, find_superclass_methods): Take a std::vector.
9796 (find_method): Use std::vector.
9797
9798 2018-04-05 Tom Tromey <tom@tromey.com>
9799
9800 * utils.c (compare_strings): Remove.
9801 * utils.h (compare_strings): Remove.
9802 * objc-lang.h (find_imps): Update.
9803 * objc-lang.c (find_methods): Take a std::vector.
9804 (uniquify_strings, find_imps): Likewise.
9805 * linespec.c (find_methods): Take a std::vector.
9806 (decode_objc): Use std::vector.
9807 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9808 a std::vector.
9809 (find_method, find_function_symbols): Use std::vector.
9810
9811 2018-04-05 Tom Tromey <tom@tromey.com>
9812
9813 * completer.c (completion_tracker::completion_tracker): Remove
9814 cast.
9815 (completion_tracker::discard_completions): Likewise.
9816 * breakpoint.c (ambiguous_names_p): Remove cast.
9817 * ada-lang.c (_initialize_ada_language): Remove cast.
9818 * utils.h (streq): Update.
9819 (streq_hash): Add new declaration.
9820 * utils.c (streq): Return bool.
9821 (streq_hash): New function.
9822
9823 2018-04-05 Tom Tromey <tom@tromey.com>
9824
9825 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9826 Remove a string copy.
9827
9828 2018-04-05 Tom Tromey <tom@tromey.com>
9829
9830 * linespec.c (filter_results): Use std::vector.
9831 (decode_line_2, decode_line_full): Update.
9832
9833 2018-04-05 Tom Tromey <tom@tromey.com>
9834
9835 * linespec.c (canonical_to_fullform): Return std::string.
9836 (filter_results): Update.
9837 (struct decode_line_2_item): Add constructor.
9838 <fullform, displayform>: Now std::string.
9839 (decode_line_2_compare_items): Now a std::sort comparator.
9840 (decode_line_2): Update.
9841
9842 2018-04-05 Tom Tromey <tom@tromey.com>
9843
9844 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9845 (unexpected_linespec_error): Update.
9846 (linespec_parse_basic, parse_linespec): Update.
9847
9848 2018-04-05 Tom Tromey <tom@tromey.com>
9849
9850 * linespec.c (linespec_parse_basic): Reindent.
9851
9852 2018-04-05 Tom Tromey <tom@tromey.com>
9853
9854 * minsyms.h (iterate_over_minimal_symbols): Update.
9855 * minsyms.c (iterate_over_minimal_symbols): Take a
9856 gdb::function_view.
9857 * linespec.c (struct collect_minsyms): Remove.
9858 (compare_msyms): Now a std::sort comparator.
9859 (add_minsym): Add parameters.
9860 (search_minsyms_for_name): Update. Use std::vector.
9861
9862 2018-04-03 Tom Tromey <tom@tromey.com>
9863
9864 * mipsread.c (read_alphacoff_dynamic_symtab): Use
9865 gdb::byte_vector.
9866
9867 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9868
9869 * MAINTAINERS (Write After Approval): Add Weimin Pan.
9870
9871 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9872
9873 PR gdb/16959
9874 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
9875 printing static type.
9876
9877 2018-04-01 Tom Tromey <tom@tromey.com>
9878
9879 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
9880 (rs6000_xfer_shared_libraries): Update.
9881
9882 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9883
9884 * common/gdb_vecs.h (char_ptr): Remove.
9885 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
9886
9887 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9888
9889 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
9890 with std::vector.
9891 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
9892
9893 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9894
9895 * tracepoint.h (struct uploaded_tp): Initialize fields.
9896 <actions, step_actions, cmd_strings>: Change type to
9897 std::vector<char *>.
9898 * tracepoint.c (get_uploaded_tp): Allocate with new.
9899 (free_uploaded_tps): Free with delete.
9900 (parse_tracepoint_definition): Adjust to std::vector change.
9901 * breakpoint.c (read_uploaded_action): Likewise.
9902 (create_tracepoint_from_upload): Likewise.
9903 * ctf.c (ctf_write_uploaded_tp): Likewise.
9904 (SET_ARRAY_FIELD): Likewise.
9905 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
9906
9907 2018-03-30 Tom Tromey <tom@tromey.com>
9908
9909 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
9910 std::unique_ptr.
9911 (svr4_keep_data_in_core): Update.
9912 (svr4_read_so_list): Update.
9913
9914 2018-03-30 Tom Tromey <tom@tromey.com>
9915
9916 * windows-nat.c (handle_output_debug_string, handle_exception):
9917 Update.
9918 * target.h (target_read_string): Update.
9919 * target.c (target_read_string): Change "string" to
9920 unique_xmalloc_ptr.
9921 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9922 Update.
9923 * solib-frv.c (frv_current_sos): Update.
9924 * solib-dsbt.c (dsbt_current_sos): Update.
9925 * solib-darwin.c (darwin_current_sos): Update.
9926 * linux-thread-db.c (inferior_has_bug): Update.
9927 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
9928 Update. Remove alloca.
9929 * ada-lang.c (ada_main_name): Update.
9930
9931 2018-03-30 Tom Tromey <tom@tromey.com>
9932
9933 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
9934 (struct dwo_file_deleter): New.
9935 (dwo_file_up): New typedef.
9936 (open_and_init_dwo_file): Use dwo_file_up.
9937 (free_dwo_file_cleanup): Remove.
9938
9939 2018-03-30 Tom Tromey <tom@tromey.com>
9940
9941 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
9942 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
9943
9944 2018-03-30 Tom Tromey <tom@tromey.com>
9945
9946 * dwarf2read.c (class free_cached_comp_units): New class.
9947 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
9948 (free_cached_comp_units): Remove function.
9949
9950 2018-03-30 Tom Tromey <tom@tromey.com>
9951
9952 * utils.h (make_cleanup_unpush_target): Remove.
9953 * inf-ptrace.c (struct target_unpusher): New.
9954 (target_unpush_up) New typedef.
9955 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
9956 target_unpush_up.
9957 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
9958
9959 2018-03-27 Tom Tromey <tom@tromey.com>
9960
9961 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
9962
9963 2018-03-27 Pedro Alves <palves@redhat.com>
9964 Tom Tromey <tom@tromey.com>
9965
9966 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
9967 destructor. Now a class.
9968 (gdb_readline_wrapper_cleanup): Remove function.
9969 (gdb_readline_wrapper): Remove cleanups.
9970
9971 2018-03-27 Tom Tromey <tom@tromey.com>
9972
9973 * typeprint.h (struct type_print_options) <local_typedefs,
9974 global_typedefs>: Remove "struct" keyword.
9975 (class typedef_hash_table): New class.
9976 (recursively_update_typedef_hash, add_template_parameters)
9977 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
9978 (find_typedef_in_hash): Don't declare.
9979 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
9980 (typedef_hash_table::recursively_update): Rename from
9981 recursively_update_typedef_hash. Now a member.
9982 (typedef_hash_table::add_template_parameters): Rename from
9983 add_template_parameters. Now a member.
9984 (typedef_hash_table::typedef_hash_table): Now a constructor;
9985 rename from create_typedef_hash.
9986 (typedef_hash_table::~typedef_hash_table): Now a destructor;
9987 rename from free_typedef_hash.
9988 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
9989 (do_free_global_table): Remove.
9990 (typedef_hash_table::typedef_hash_table): New constructor; renamed
9991 from copy_type_recursive.
9992 (create_global_typedef_table): Remove.
9993 (typedef_hash_table::find_global_typedef): Now a member of
9994 typedef_hash_table.
9995 (typedef_hash_table::find_typedef): Rename from
9996 find_typedef_in_hash; now a member.
9997 (whatis_exp): Update.
9998 * extension.h (struct ext_lang_type_printers): Add constructor and
9999 destructor.
10000 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10001 declare.
10002 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10003 Now a constructor; rename from start_ext_lang_type_printers.
10004 (ext_lang_type_printers): Now a destructor; rename from
10005 free_ext_lang_type_printers.
10006 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10007 Update.
10008 (c_type_print_base_struct_union): Update. Remove cleanups.
10009
10010 2018-03-27 Tom Tromey <tom@tromey.com>
10011
10012 * dwarf-index-write.c: Include <cmath>.
10013
10014 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10015
10016 * NEWS: Add entry describing new "set|show varsize-limit" command.
10017 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10018 command.
10019 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10020 "set variable".
10021
10022 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10023
10024 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10025 dwarf-index-write.c
10026 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10027 * dwarf-index-common.c: New file.
10028 * dwarf-index-common.h: New file.
10029 * dwarf-index-write.c: New file.
10030 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10031 (struct dwarf2_section_info): Move from here.
10032 (dwarf2_section_info_def): Likewise.
10033 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10034 (offset_type): Likewise.
10035 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10036 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10037 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10038 (byte_swap): Likewise.
10039 (MAYBE_SWAP): Likewise.
10040 (dwarf2_per_cu_ptr): Likewise.
10041 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10042 (struct tu_stats): Likewise.
10043 (struct dwarf2_per_objfile): Likewise.
10044 (struct dwarf2_per_cu_data): Likewise.
10045 (struct signatured_type): Likewise.
10046 (sig_type_ptr): Likewise.
10047 (DEF_VEC_P (sig_type_ptr)): Likewise.
10048 (INDEX4_SUFFIX): Likewise.
10049 (INDEX5_SUFFIX): Likewise.
10050 (DEBUG_STR_SUFFIX): Likewise.
10051 (dwarf2_read_section): Make non-static.
10052 (mapped_index_string_hash): Move from here.
10053 (dwarf5_djb_hash): Likewise.
10054 (file_write): Likewise.
10055 (class data_buf): Likewise.
10056 (struct symtab_index_entry): Likewise.
10057 (struct mapped_symtab): Likewise.
10058 (find_slot): Likewise.
10059 (hash_expand): Likewise.
10060 (add_index_entry): Likewise.
10061 (uniquify_cu_indices): Likewise.
10062 (class c_str_view): Likewise.
10063 (class c_str_view_hasher): Likewise.
10064 (class vector_hasher): Likewise.
10065 (write_hash_table): Likewise.
10066 (psym_index_map): Likewise.
10067 (struct addrmap_index_data): Likewise.
10068 (add_address_entry): Likewise.
10069 (add_address_entry_worker): Likewise.
10070 (write_address_map): Likewise.
10071 (symbol_kind): Likewise.
10072 (write_psymbols): Likewise.
10073 (struct signatured_type_index_data): Likewise.
10074 (write_one_signatured_type): Likewise.
10075 (recursively_count_psymbols): Likewise.
10076 (recursively_write_psymbols): Likewise.
10077 (class debug_names): Likewise.
10078 (check_dwarf64_offsets): Likewise.
10079 (psyms_seen_size): Likewise.
10080 (write_gdbindex): Likewise.
10081 (write_debug_names): Likewise.
10082 (assert_file_size): Likewise.
10083 (write_psymtabs_to_index): Likewise.
10084 (save_gdb_index_command): Likewise.
10085 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10086 command.
10087 * dwarf2read.h: New file.
10088
10089 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10090
10091 PR gdb/22670
10092 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10093 symbol name if the CU's language stores symbol names in linkage
10094 format.
10095 * language.h (struct language_defn)
10096 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10097 all instances of this struct.
10098
10099 2018-03-26 Tom Tromey <tom@tromey.com>
10100
10101 * stack.c (backtrace_command_1): Remove verbose code.
10102
10103 2018-03-26 Tom Tromey <tom@tromey.com>
10104
10105 * python/py-framefilter.c (py_print_type): Don't catch
10106 exceptions. Return void.
10107 (py_print_value): Likewise.
10108 (py_print_single_arg): Likewise.
10109 (enumerate_args): Don't catch exceptions.
10110 (py_print_args): Likewise.
10111 (py_print_frame): Likewise.
10112 (gdbpy_apply_frame_filter): Catch exceptions here.
10113
10114 2018-03-26 Tom Tromey <tom@tromey.com>
10115
10116 * stack.c (_initialize_stack): Remove trailing newlines from help
10117 text. Add "Usage" line to "backtrace" help.
10118
10119 2018-03-26 Tom Tromey <tom@tromey.com>
10120
10121 PR python/16486:
10122 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10123
10124 2018-03-26 Tom Tromey <tom@tromey.com>
10125
10126 * python/py-framefilter.c (py_print_single_arg): Return
10127 EXT_LANG_BT_ERROR from catch.
10128
10129 2018-03-26 Tom Tromey <tom@tromey.com>
10130
10131 PR backtrace/15584:
10132 * stack.c (backtrace_command_1): Move some code into no-filters
10133 "if".
10134
10135 2018-03-26 Tom Tromey <tom@tromey.com>
10136
10137 * python/py-framefilter.c (throw_quit_or_print_exception): New
10138 function.
10139 (gdbpy_apply_frame_filter): Use it.
10140
10141 2018-03-26 Tom Tromey <tom@tromey.com>
10142
10143 PR cli/17716:
10144 * python/py-framefilter.c (py_print_type, py_print_value)
10145 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10146 RETURN_MASK_ERROR.
10147
10148 2018-03-26 Tom Tromey <tom@tromey.com>
10149
10150 * python/py-framefilter.c (enumerate_args): Use
10151 gdb::unique_xmalloc_ptr.
10152
10153 2018-03-26 Tom Tromey <tom@tromey.com>
10154
10155 * python/py-framefilter.c (py_print_frame): Return
10156 EXT_LANG_BT_OK.
10157 (gdbpy_apply_frame_filter): Update comment.
10158 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10159 Remove.
10160 <EXT_LANG_BT_NO_FILTERS>: Change value.
10161
10162 2018-03-26 Tom Tromey <tom@tromey.com>
10163
10164 PR backtrace/15582:
10165 * stack.c (backtrace_command): Parse "hide" argument.
10166 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10167 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10168 constant.
10169
10170 2018-03-26 Tom Tromey <tom@tromey.com>
10171
10172 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10173 add "flags".
10174 (backtrace_command): Remove "fulltrace", add "flags".
10175
10176 2018-03-26 Tom Tromey <tom@tromey.com>
10177
10178 * stack.c (backtrace_command): Rewrite command line parsing.
10179
10180 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10181
10182 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10183
10184 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10185
10186 * filename-seen-cache.h: Add include guard.
10187
10188 2018-03-26 Keith Seitz <keiths@redhat.com>
10189
10190 * symfile.c (place_section): Remove "struct" from section_addr_info
10191 in comment.
10192 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10193 "struct" keyword from section_addr_info.
10194
10195 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10196
10197 * regformats/regdef.h (reg): Add constructors.
10198
10199 2018-03-25 Pedro Alves <palves@redhat.com>
10200
10201 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10202 if then/else bodies in var_func_name extraction.
10203
10204 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10205
10206 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10207 lookup_minimal_symbol() to find symbol entry.
10208 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10209
10210 2018-03-23 Keith Seitz <keiths@redhat.com>
10211
10212 PR c++/22968
10213 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10214 nested type definitions for C++, too.
10215
10216 2018-03-23 Tom Tromey <tom@tromey.com>
10217
10218 * machoread.c (struct oso_el): Add a constructor. Don't define as
10219 a typedef.
10220 (macho_register_oso): Remove.
10221 (macho_symtab_read): Take a std::vector.
10222 (oso_el_compare_name): Now a std::sort comparator.
10223 (macho_symfile_read_all_oso): Take a std::vector.
10224 (macho_symfile_read): Use std::vector. Remove cleanups.
10225
10226 2018-03-22 Tom Tromey <tom@tromey.com>
10227
10228 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10229 (record_full_goto_bookmark): Use std::string.
10230
10231 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10232
10233 PR tdep/18295
10234 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10235 a single mask.
10236
10237 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10238
10239 * rs6000-tdep.c (store_insn_p): New function.
10240 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10241 and cr_reg to their unshifted values. Use store_insn_p to
10242 match LR saves using either R1 or fdata->alloca_reg. Use
10243 store_insn_p to match CR saves. Set alloca_reg_offset
10244 when alloca_reg and framep are set. Remove lr_reg shift
10245 when assigning to fdata->lr_register.
10246
10247 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10248
10249 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10250 command line args instead of emitting a warning.
10251
10252 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10253
10254 * tracepoint.h (struct static_tracepoint_marker): Initialize
10255 fields, define default constructor, move constructor and move
10256 assignment, disable the rest.
10257 <str_id, extra>: Make std::string.
10258 (release_static_tracepoint_marker): Remove.
10259 (free_current_marker): Remove.
10260 * tracepoint.c (free_current_marker): Remove.
10261 (parse_static_tracepoint_marker_definition): Adjust to
10262 std::string, use new hex2str overload.
10263 (release_static_tracepoint_marker): Remove.
10264 (print_one_static_tracepoint_marker): Get marker by reference
10265 and adjust to std::string.
10266 (info_static_tracepoint_markers_command): Adjust to std::vector
10267 changes
10268 * target.h (static_tracepoint_marker_p): Remove typedef.
10269 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10270 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10271 bool.
10272 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10273 * target-debug.h
10274 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10275 (target_debug_print_std_vector_static_tracepoint_marker): New.
10276 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10277 to...
10278 (target_debug_print_static_tracepoint_marker_p): ... this.
10279 * target-delegates.c: Re-generate.
10280 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10281 Make std::string.
10282 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10283 (decode_static_tracepoint_spec): Adjust to std::vector.
10284 (tracepoint_print_one_detail): Adjust to std::string.
10285 (strace_marker_decode_location): Adjust to std::string.
10286 (update_static_tracepoint): Adjust to std::string, remove call
10287 to release_static_tracepoint_marker.
10288 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10289 Adjust to std::vector.
10290 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10291 (remote_static_tracepoint_markers_by_strid): Adjust to
10292 std::vector.
10293 * common/rsp-low.h (hex2str): New overload with explicit count
10294 of bytes.
10295 * common/rsp-low.c (hex2str): New overload with explicit count
10296 of bytes.
10297 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10298 (_initialize_rsp_low_selftests): Add test_hex2str test.
10299 * unittests/tracepoint-selftests.c
10300 (test_parse_static_tracepoint_marker_definition): Adjust to
10301 std::string.
10302
10303 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10304
10305 * tracepoint.c (parse_static_tracepoint_marker_definition):
10306 Consider case where the definition is followed by more
10307 definitions.
10308 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10309 tracepoint-selftests.c.
10310 * unittests/tracepoint-selftests.c: New.
10311
10312 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10313
10314 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10315 Carvalho.
10316
10317 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10318
10319 * symtab.c (find_pc_sect_line): fixed indentation.
10320
10321 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10322
10323 * symtab.c (find_pc_sect_line): now uses binary search.
10324
10325 2018-03-19 Tom Tromey <tom@tromey.com>
10326
10327 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10328 "IDENT" production.
10329
10330 2018-03-19 Pedro Alves <palves@redhat.com>
10331 Tom Tromey <tom@tromey.com>
10332
10333 * unittests/observable-selftests.c: New file.
10334 * common/observable.h: New file.
10335 * observable.h: New file.
10336 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10337 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10338 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10339 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10340 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10341 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10342 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10343 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10344 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10345 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10346 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10347 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10348 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10349 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10350 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10351 tui/tui-interp.c, valops.c: Update all users.
10352 * tui/tui-hooks.c (tui_bp_created_observer)
10353 (tui_bp_deleted_observer, tui_bp_modified_observer)
10354 (tui_inferior_exit_observer, tui_before_prompt_observer)
10355 (tui_normal_stop_observer, tui_register_changed_observer):
10356 Remove.
10357 (tui_observers_token): New global.
10358 (attach_or_detach, tui_attach_detach_observers): New functions.
10359 (tui_install_hooks, tui_remove_hooks): Use
10360 tui_attach_detach_observers.
10361 * record-btrace.c (record_btrace_thread_observer): Remove.
10362 (record_btrace_thread_observer_token): New global.
10363 * observer.sh: Remove.
10364 * observer.c: Rename to observable.c.
10365 * observable.c (namespace gdb_observers): Define new objects.
10366 (observer_debug): Move into gdb_observers namespace.
10367 (struct observer, struct observer_list, xalloc_observer_list_node)
10368 (xfree_observer_list_node, generic_observer_attach)
10369 (generic_observer_detach, generic_observer_notify): Remove.
10370 (_initialize_observer): Update.
10371 Don't include observer.inc.
10372 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10373 (clean mostlyclean): Likewise.
10374 (observer.h, observer.inc): Remove targets.
10375 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10376 (COMMON_SFILES): Use observable.c, not observer.c.
10377 * .gitignore: Remove observer.h.
10378
10379 2018-03-18 Tom Tromey <tom@tromey.com>
10380
10381 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10382 gdb::def_vector.
10383 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10384
10385 2018-03-17 Tom Tromey <tom@tromey.com>
10386
10387 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10388
10389 2018-03-17 Tom Tromey <tom@tromey.com>
10390
10391 * target.c (class scoped_target_fd): New.
10392 (target_fileio_close_cleanup): Remove.
10393 (target_fileio_read_alloc_1): Use scoped_target_fd.
10394
10395 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10396
10397 * silent-rules.mk: New.
10398 * Makefile.in: Include silent-rules.mk
10399 (srcdir, VPATH, top_srcdir): Move up.
10400 (COMPILE): Add ECHO_CXX.
10401 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10402 (init.c): Add ECHO_INIT_C.
10403 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10404 (version.c): Add ECHO_GEN.
10405 (printcmd.o): Add ECHO_CXX.
10406 (target-float.o): Add ECHO_CXX.
10407 (ada-exp.o): Add ECHO_CXX.
10408 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10409 (insight$(EXEEXT)): Add ECHO_CXXLD.
10410 * gnulib/configure.ac: Add AM_SILENT_RULES.
10411 * gnulib/aclocal.m4: Re-generate.
10412 * gnulib/configure: Re-generate.
10413 * gnulib/import/Makefile.in: Re-generate.
10414
10415 2018-03-16 Tom Tromey <tom@tromey.com>
10416
10417 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10418 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10419 * utils.c (do_free_section_addr_info)
10420 (make_cleanup_free_section_addr_info): Remove.
10421 * symfile.h (struct other_sections): Add constructor.
10422 (struct section_addr_info): Remove.
10423 (section_addr_info): New typedef.
10424 (struct sym_fns) <sym_offsets>: Change type of parameter.
10425 (build_section_addr_info_from_objfile)
10426 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10427 (default_symfile_offsets, symbol_file_add)
10428 (symbol_file_add_from_bfd)
10429 (build_section_addr_info_from_section_table): Update.
10430 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10431 * symfile.c (alloc_section_addr_info): Remove.
10432 (build_section_addr_info_from_section_table): Change return type.
10433 Update.
10434 (build_section_addr_info_from_bfd)
10435 (build_section_addr_info_from_objfile): Likewise.
10436 (free_section_addr_info): Remove.
10437 (relative_addr_info_to_section_offsets): Change type of "addrs".
10438 (addrs_section_compar): Now a std::sort comparator.
10439 (addrs_section_sort): Change return type.
10440 (addr_info_make_relative): Change type of "addrs". Update.
10441 (default_symfile_offsets, syms_from_objfile_1)
10442 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10443 (symbol_file_add_separate): Update.
10444 (symbol_file_add): Change type of "addrs". Update.
10445 (add_symbol_file_command): Update. Remove cleanups.
10446 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10447 cleanups.
10448 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10449 * solib.c (solib_read_symbols): Update.
10450 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10451 * machoread.c (macho_symfile_offsets): Update.
10452 * jit.c (jit_bfd_try_read_symtab): Update.
10453
10454 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10455
10456 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10457 unittests/utils-selftests.c.
10458 * unittests/utils-selftests.c: New file.
10459
10460 2018-03-14 Tom Tromey <tom@tromey.com>
10461
10462 PR cli/14977:
10463 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10464 for NULL.
10465
10466 2018-03-14 Tom Tromey <tom@tromey.com>
10467
10468 PR cli/19918:
10469 * printcmd.c (printf_pointer): Allow "-" in format.
10470
10471 2018-03-14 Tom Tromey <tom@tromey.com>
10472
10473 * printcmd.c (_initialize_printcmd): Add usage to printf.
10474
10475 2018-03-14 Yao Qi <qiyao@sourceware.org>
10476
10477 * MAINTAINERS: Update my email address.
10478
10479 2018-03-13 Tom Tromey <tom@tromey.com>
10480
10481 * machoread.c (macho_check_dsym): Change filenamep to a
10482 std::string*.
10483 (macho_symfile_read): Update.
10484 * symfile.c (load_command): Use std::string.
10485
10486 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10487
10488 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10489 to error message string.
10490 (riscv_register_name): Use xsnprintf instead of sprintf.
10491 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10492 internal_error.
10493 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10494 error.
10495 (riscv_push_dummy_call): Likewise.
10496
10497 2018-03-12 Tom Tromey <tom@tromey.com>
10498
10499 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10500 Use gdb::byte_vector.
10501 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10502
10503 2018-03-12 Yao Qi <yao.qi@linaro.org>
10504
10505 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10506 parameter type to readable_regcache.
10507 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10508 the declaration.
10509
10510 2018-03-11 Tom Tromey <tom@tromey.com>
10511
10512 * dwarf2read.c (struct nextfield): Add initializers.
10513 (struct nextfnfield): Remove.
10514 (struct fnfieldlist): Add initializers. Remove "length" and
10515 "head", use std::vector.
10516 (struct decl_field_list): Remove.
10517 (struct field_info): Add initializers.
10518 <fields, baseclasses>: Now std::vector.
10519 <nbaseclasses, nfnfields, typedef_field_list_count,
10520 nested_types_list_count>: Remove.
10521 (dwarf2_add_field, dwarf2_add_type_defn)
10522 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10523 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10524 (process_structure_scope): Update.
10525
10526 2018-03-11 Tom Tromey <tom@tromey.com>
10527
10528 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10529 for use by std::sort.
10530 (build_type_psymtabs_1): Use std::vector.
10531
10532 2018-03-09 Eli Zaretskii <eliz@gnu.org>
10533
10534 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10535 and LIBMPFR in the printed configuration.
10536
10537 2018-03-08 Tom Tromey <tom@tromey.com>
10538
10539 * source.c (get_filename_and_charpos): Use scoped_fd.
10540 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10541 (procfs_pidlist): Likewise.
10542 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10543 (iterate_over_mappings): Likewise.
10544
10545 2018-03-08 Tom Tromey <tom@tromey.com>
10546
10547 * infcall.c (struct call_return_meta_info)
10548 <stack_temporaries_enabled>: Remove.
10549 (get_call_return_value, call_function_by_hand_dummy): Update.
10550 * thread.c (disable_thread_stack_temporaries): Remove.
10551 (enable_thread_stack_temporaries): Remove.
10552 (thread_stack_temporaries_enabled_p): Return bool.
10553 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10554 (get_last_thread_stack_temporary): Update.
10555 * eval.c (evaluate_subexp): Update.
10556 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10557 class, not a function.
10558 (value_ptr, value_vec): Remove typedefs.
10559 (class thread_info) <stack_temporaries_enabled>: Now bool.
10560 <stack_temporaries>: Now a std::vector.
10561 (thread_stack_temporaries_enabled_p)
10562 (value_in_thread_stack_temporaries): Return bool.
10563
10564 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10565
10566 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10567 (getpkt_or_notif_sane_1): Likewise.
10568
10569 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10570
10571 * build-id.c (build_id_to_debug_bfd): Use std::string.
10572
10573 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10574
10575 * build-id.c (find_separate_debug_file_by_buildid): Return
10576 std::string.
10577 * build-id.h (find_separate_debug_file_by_buildid): Return
10578 std::string.
10579 * coffread.c (coff_symfile_read): Adjust to std::string.
10580 * elfread.c (elf_symfile_read): Adjust to std::string.
10581 * symfile.c (separate_debug_file_exists): Change parameter to
10582 std::string.
10583 (find_separate_debug_file): Return std::string.
10584 (find_separate_debug_file_by_debuglink): Return std::string.
10585 * symfile.h (find_separate_debug_file_by_debuglink): Return
10586 std::string.
10587
10588 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10589
10590 * common/xml-utils.c (xml_escape_text): Move code to...
10591 (xml_escape_text_append): ... this new function.
10592 * common/xml-utils.h (xml_escape_text_append): New declaration.
10593 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10594 New function.
10595 (_initialize_xml_utils): register test_xml_escape_text_append as
10596 a selftest.
10597
10598 2018-03-07 Alan Hayward <alan.hayward@arm.com>
10599
10600 * defs.h: Remove MAX_REGISTER_SIZE.
10601 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10602 asserts.
10603 * python/py-unwind.c (pyuw_sniffer): Likewise.
10604
10605 2018-03-07 Tom Tromey <tom@tromey.com>
10606
10607 * linux-tdep.c (linux_info_proc): Update.
10608 * target.h (struct target_ops) <to_fileio_readlink>: Return
10609 optional<string>.
10610 (target_fileio_readlink): Return optional<string>.
10611 * remote.c (remote_hostio_readlink): Return optional<string>.
10612 * inf-child.c (inf_child_fileio_readlink): Return
10613 optional<string>.
10614 * target.c (target_fileio_readlink): Return optional<string>.
10615
10616 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10617
10618 * regcache.c (cooked_read_test): Add riscv to the list of
10619 architectures that have a save_reggroup.
10620
10621 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10622
10623 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10624 value is not a dynamic class object.
10625
10626 2018-03-06 Tom Tromey <tom@tromey.com>
10627
10628 * rust-exp.y: Formatting fixes.
10629
10630 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10631
10632 * riscv-tdep.c (riscv_register_name): Remove target description
10633 support.
10634 (riscv_gdbarch_init): Remove target description check.
10635
10636 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10637
10638 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10639 comment.
10640 * riscv-tdep.h: Likewise.
10641
10642 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10643
10644 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10645 (riscv_pseudo_register_write): Delete.
10646 (riscv_gdbarch_init): Remove all use of pseudo registers.
10647
10648 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10649
10650 * record-btrace.c (btrace_print_lines): Replace cleanup
10651 parameter with RAII equivalents.
10652 (btrace_insn_history): Replace cleanup with RAII equivalents.
10653 * ui-out.h (make_cleanup_ui_out_list_begin_end,
10654 make_cleanup_ui_out_tuple_begin_end): Remove.
10655 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10656 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10657 make_cleanup_ui_out_list_begin_end): Remove.
10658
10659 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10660
10661 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10662 parameter types to std::vector. Use bool.
10663 (record_btrace_wait): Replace VEC(tp_t) with
10664 std::vector<thread_info *>.
10665 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10666
10667 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10668
10669 * record-btrace.c (record_btrace_disable_callback): Remove.
10670 (struct scoped_btrace_disable): New.
10671 (record_btrace_open): Use scoped_btrace_disable.
10672
10673 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10674
10675 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10676 reading values from registers.
10677
10678 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10679
10680 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10681 where appropriate.
10682
10683 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10684
10685 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10686 change parameter type. Use GDB's print functions, and use
10687 core_addr_to_string where appropriate.
10688 (riscv_push_dummy_call): Use core_addr_to_string where
10689 appropriate, update call to riscv_print_arg_location, and reindent
10690 a few lines.
10691 (riscv_return_value): Update call to riscv_print_arg_location.
10692
10693 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10694 Tim Newsome <tim@sifive.com>
10695 Albert Ou <a0u@eecs.berkeley.edu>
10696 Darius Rad <darius@bluespec.com>
10697
10698 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10699 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10700 (ALLDEPFILES): Add riscv-tdep.c
10701 * configure.tgt: Add riscv support.
10702 * riscv-tdep.c: New file.
10703 * riscv-tdep.h: New file.
10704 * NEWS: Mention new target.
10705 * MAINTAINERS: Add entry for riscv.
10706
10707 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10708
10709 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10710 fields within aggregates.
10711
10712 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
10713
10714 * record-btrace.c (btrace_print_lines): Change type of flags to
10715 gdb_disassembly_flags.
10716
10717 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10718
10719 * fbsd-nat.c: Include "inf-ptrace.h".
10720 (USE_SIGTRAP_SIGINFO): Conditionally define.
10721 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10722 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10723 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10724 function.
10725 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10726 Likewise.
10727 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10728 Likewise.
10729 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10730 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10731 "supports_stopped_by_hw_breakpoint" target methods.
10732
10733 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10734
10735 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10736 * fbsd-nat.c (debug_fbsd_nat): New variable.
10737 (show_fbsd_nat_debug): New function.
10738 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10739 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10740
10741 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10742
10743 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10744 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10745 prototype.
10746 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10747 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10748 method.
10749
10750 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10751
10752 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10753 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10754
10755 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10756
10757 * charset.c (struct charset_vector): New.
10758 (charsets): Change type to charset_vector.
10759 (find_charset_names): Adjust.
10760 (add_one): Adjust.
10761 (_initialize_charset): Adjust.
10762
10763 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10764
10765 * progspace.h (struct program_space) <deleted_solibs>: Change
10766 type to std::vector<std::string>.
10767 * progspace.c (clear_program_space_solib_cache): Adjust.
10768 * breakpoint.c (print_solib_event): Adjust.
10769 (check_status_catch_solib): Adjust.
10770 * solib.c (update_solib_list): Adjust.
10771 * ui-out.h (class ui_out) <field_string>: New overload.
10772 * ui-out.c (ui_out::field_string): New overload.
10773
10774 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10775
10776 * progspace.h (struct program_space): Add constructor and
10777 destructor, initialize fields.
10778 (add_program_space): Remove.
10779 * progspace.c (add_program_space): Rename to...
10780 (program_space::program_space): ... this.
10781 (release_program_space): Rename to...
10782 (program_space::~program_space): ... this.
10783 (delete_program_space): Use delete to delete program_space.
10784 (initialize_progspace): Use new to allocate program_space.
10785 * inferior.c (add_inferior_with_spaces): Likewise.
10786 (clone_inferior_command): Likewise.
10787 * infrun.c (follow_fork_inferior): Likewise.
10788 (handle_vfork_child_exec_or_exit): Likewise.
10789
10790 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10791
10792 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10793 (delim_string_to_char_ptr_vec): Return std::vector of
10794 gdb::unique_xmalloc_ptr.
10795 (dirnames_to_char_ptr_vec_append): Take std::vector of
10796 gdb::unique_xmalloc_ptr.
10797 (dirnames_to_char_ptr_vec): Return std::vector of
10798 gdb::unique_xmalloc_ptr.
10799 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10800 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10801 (delim_string_to_char_ptr_vec): Return an std::vector of
10802 gdb::unique_xmalloc_ptr, adjust the code.
10803 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10804 gdb::unique_xmalloc_ptr, adjust the code.
10805 (dirnames_to_char_ptr_vec): Return an std::vector of
10806 gdb::unique_xmalloc_ptr, adjust the code.
10807 * auto-load.c (auto_load_safe_path_vec): Change type to
10808 std::vector of gdb::unique_xmalloc_ptr.
10809 (auto_load_expand_dir_vars): Return an std::vector of
10810 gdb::unique_xmalloc_ptr, adjust the code.
10811 (auto_load_safe_path_vec_update): Adjust.
10812 (filename_is_in_auto_load_safe_path_vec): Adjust.
10813 (auto_load_objfile_script_1): Adjust.
10814 * build-id.c (build_id_to_debug_bfd): Adjust.
10815 * linux-thread-db.c (thread_db_load_search): Adjust.
10816 * source.c (add_path): Adjust.
10817 (openp): Adjust.
10818 * symfile.c (find_separate_debug_file): Adjust.
10819 * utils.c (do_free_char_ptr_vec): Remove.
10820 (make_cleanup_free_char_ptr_vec): Remove.
10821
10822 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10823
10824 PR gdb/22907
10825 * common/pathstuff.c: Conditionally include "<windows.h>".
10826
10827 2018-03-01 Georg Sauthoff <mail@georg.so>
10828
10829 PR gdb/22888
10830 * gcore.in: Quote variables and switch interpreter to bash.
10831
10832 2018-03-01 Tom Tromey <tom@tromey.com>
10833
10834 * dwarf2read.c (alloc_discriminant_info): Fix default_index
10835 assertion. Add assertion for discriminant_index.
10836 (quirk_rust_enum): Use correct base type name in univariant case.
10837
10838 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
10839
10840 * record.c (get_call_history_modifiers): Return a
10841 record_print_flags.
10842 (cmd_record_call_history): Adjust.
10843 * record-btrace.c (record_btrace_call_history): Adjust.
10844 (record_btrace_call_history_range): Adjust.
10845 (record_btrace_call_history_from): Adjust.
10846 * target-debug.h (target_debug_print_record_print_flags): New.
10847 * target-delegates.c: Re-generate.
10848 * target.c (target_call_history): Change flags type.
10849 (target_call_history_from): Likewise.
10850 (target_call_history_range): Likewise.
10851 * target.h (struct target_ops) <target_call_history>: Likewise.
10852 (target_call_history_from): Likewise.
10853 (target_call_history_range): Likewise.
10854
10855 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10856 Simon Marchi <simon.marchi@polymtl.ca>
10857
10858 * common/common-utils.c: Include "sys/stat.h".
10859 (is_regular_file): Move here from "source.c"; change return
10860 type to "bool".
10861 * common/common-utils.h (is_regular_file): New prototype.
10862 * common/pathstuff.c (contains_dir_separator): New function.
10863 * common/pathstuff.h (contains_dir_separator): New prototype.
10864 * source.c: Don't include "sys/stat.h".
10865 (is_regular_file): Move to "common/common-utils.c".
10866
10867 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10868
10869 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
10870 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
10871 * auto-load.c: Include "common/pathstuff.h".
10872 * common/common-def.h (current_directory): Move here.
10873 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
10874 function.
10875 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
10876 prototype.
10877 * common/pathstuff.c: New file.
10878 * common/pathstuff.h: New file.
10879 * compile/compile.c: Include "common/pathstuff.h".
10880 * defs.h (current_directory): Move to "common/common-defs.h".
10881 * dwarf2read.c: Include "common/pathstuff.h".
10882 * exec.c: Likewise.
10883 * guile/scm-safe-call.c: Likewise.
10884 * linux-thread-db.c: Likewise.
10885 * main.c: Likewise.
10886 * nto-tdep.c: Likewise.
10887 * objfiles.c: Likewise.
10888 * source.c: Likewise.
10889 * symtab.c: Likewise.
10890 * utils.c: Include "common/pathstuff.h".
10891 (gdb_realpath): Move to "common/pathstuff.c".
10892 (gdb_realpath_keepfile): Likewise.
10893 (gdb_abspath): Likewise.
10894 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
10895 (gdb_realpath_keepfile): Likewise.
10896 (gdb_abspath): Likewise.
10897
10898 2018-02-28 John Baldwin <jhb@FreeBSD.org>
10899
10900 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
10901 wildcard process pid for super_resume for kernels with a
10902 specific bug.
10903
10904 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
10905
10906 * compile/compile.c (get_args): Add additional comments
10907 explaining function.
10908
10909 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
10910 Tom Tromey <tom@tromey.com>
10911
10912 * target.h (memory_write_request_s): Remove typedef. Don't define
10913 VEC.
10914 (target_write_memory_blocks): Change argument to std::vector.
10915 (struct memory_write_request): Add constructor.
10916 * target-memory.c (compare_block_starting_address): Return bool.
10917 Change argument types.
10918 (claim_memory): Change arguments to use std::vector.
10919 (split_regular_and_flash_blocks, blocks_to_erase)
10920 (compute_garbled_blocks): Likewise.
10921 (cleanup_request_data, cleanup_write_requests_vector): Remove.
10922 (target_write_memory_blocks): Change argument to std::vector.
10923 * symfile.c (struct load_section_data): Add constructor and
10924 destructor. Use std::vector for "requests".
10925 (struct load_progress_data): Add initializers.
10926 (load_section_callback): Update. Use "new".
10927 (clear_memory_write_data): Remove.
10928 (generic_load): Update.
10929
10930 2018-02-27 Alan Hayward <alan.hayward@arm.com>
10931
10932 * arch/aarch64.h: Use common/tdesc.h.
10933
10934 2018-02-26 Maciej W. Rozycki <macro@mips.com>
10935
10936 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
10937 architecture with a 64-bit ABI.
10938
10939 2018-02-26 Maciej W. Rozycki <macro@mips.com>
10940
10941 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
10942 ahead of target description loading.
10943
10944 2018-02-26 Tom Tromey <tom@tromey.com>
10945
10946 * stack.c (backtrace_command_1): Update.
10947 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
10948 of "flags".
10949 * python/py-framefilter.c (py_print_frame)
10950 (gdbpy_apply_frame_filter): Change type of "flags".
10951 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
10952 of "flags".
10953 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
10954 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
10955 * extension.h (enum frame_filter_flag): Rename from
10956 frame_filter_flags.
10957 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
10958 (apply_ext_lang_frame_filter): Change type of "flags".
10959 * extension.c (apply_ext_lang_frame_filter): Change type of
10960 "flags".
10961 * extension-priv.h (struct extension_language_ops)
10962 <apply_frame_filter>: Change type of "flags".
10963
10964 2018-02-26 Tom Tromey <tom@tromey.com>
10965
10966 PR python/16497:
10967 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
10968 off-by-one in py_end computation.
10969 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
10970 PRINT_MORE_FRAMES.
10971 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
10972 constant.
10973
10974 2018-02-26 Tom Tromey <tom@tromey.com>
10975
10976 * dwarf2read.c (struct variant_field): New.
10977 (struct nextfield) <variant>: New field.
10978 (dwarf2_add_field): Handle DW_TAG_variant_part.
10979 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
10980 discriminated union.
10981 (read_structure_type): Handle DW_TAG_variant_part.
10982 (handle_struct_member_die): New function, extracted from
10983 process_structure_scope. Handle DW_TAG_variant.
10984 (process_structure_scope): Handle discriminated unions. Call
10985 handle_struct_member_die.
10986
10987 2018-02-26 Tom Tromey <tom@tromey.com>
10988
10989 * rust-lang.h (rust_last_path_segment): Declare.
10990 * rust-lang.c (rust_last_path_segment): Now public. Change
10991 contract.
10992 (struct disr_info): Remove.
10993 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
10994 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
10995 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
10996 (rust_enum_p, rust_enum_variant): New function.
10997 (rust_underscore_fields): Remove "offset" parameter.
10998 (rust_print_enum): New function.
10999 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11000 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11001 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11002 enums.
11003 (rust_internal_print_type): New function, from rust_print_type.
11004 Remove enum code.
11005 (rust_print_type): Call rust_internal_print_type.
11006 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11007 Update enum handling.
11008 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11009 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11010 (rust_union_quirks): New functions.
11011 (process_full_comp_unit, process_full_type_unit): Call
11012 rust_union_quirks.
11013 (process_structure_scope): Update rust_unions if necessary.
11014
11015 2018-02-26 Tom Tromey <tom@tromey.com>
11016
11017 * value.h (value_union_variant): Declare.
11018 * valops.c (value_union_variant): New function.
11019 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11020 (struct discriminant_info): New.
11021 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11022 enumerator.
11023 (struct main_type) <flag_discriminated_union>: New field.
11024
11025 2018-02-26 Tom Tromey <tom@tromey.com>
11026
11027 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11028 unittests/unpack-selftests.c.
11029 * unittests/unpack-selftests.c: New file.
11030 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11031
11032 2018-02-26 Yao Qi <yao.qi@linaro.org>
11033
11034 * dwarf2read.c (struct partial_die_info) <read>: New method.
11035 (read_partial_die): Remove the declaration.
11036 (load_partial_dies): Update.
11037 (partial_die_info::partial_die_info):
11038 (read_partial_die): Change it to partial_die_info::read.
11039
11040 2018-02-26 Yao Qi <yao.qi@linaro.org>
11041
11042 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11043 (fixup_partial_die): Remove declaration.
11044 (scan_partial_symbols): Update.
11045 (partial_die_parent_scope): Likewise.
11046 (partial_die_full_name): Likewise.
11047 (fixup_partial_die): Change it to partial_die_info::fixup.
11048
11049 2018-02-26 Yao Qi <yao.qi@linaro.org>
11050
11051 * dwarf2read.c (read_partial_die): Update the declaration.
11052 (load_partial_dies): Caller update.
11053 (read_partial_die): Remove one argument abbrev_len.
11054
11055 2018-02-26 Yao Qi <yao.qi@linaro.org>
11056
11057 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11058 assignment operator.
11059 (load_partial_dies): Use ctor and copy ctor.
11060 (read_partial_die): Update.
11061 (dwarf2_cu::find_partial_die): Use ctor.
11062
11063 2018-02-26 Yao Qi <yao.qi@linaro.org>
11064
11065 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11066 (find_partial_die_in_comp_unit): Change it to
11067 dwarf2_cu::find_partial_die.
11068 (find_partial_die): Update.
11069
11070 2018-02-26 Yao Qi <yao.qi@linaro.org>
11071
11072 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11073 is NULL.
11074
11075 2018-02-26 Yao Qi <yao.qi@linaro.org>
11076
11077 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11078
11079 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11080
11081 * arch/amd64.h: Use common/tdesc.h.
11082 * arch/i386.c: Likewise.
11083 * arch/i386.h: Likewise.
11084 * arch/tic6x.c: Likewise.
11085 * arch/tdesc.h: Move file from here...
11086 * common/tdesc.h: ...to here.
11087 * features/aarch64-core.c: Regenerate.
11088 * features/aarch64-fpu.c: Regenerate.
11089 * features/i386/32bit-avx.c: Regenerate.
11090 * features/i386/32bit-avx512.c: Regenerate.
11091 * features/i386/32bit-core.c: Regenerate.
11092 * features/i386/32bit-linux.c: Regenerate.
11093 * features/i386/32bit-mpx.c: Regenerate.
11094 * features/i386/32bit-pkeys.c: Regenerate.
11095 * features/i386/32bit-sse.c: Regenerate.
11096 * features/i386/64bit-avx.c: Regenerate.
11097 * features/i386/64bit-avx512.c: Regenerate.
11098 * features/i386/64bit-core.c: Regenerate.
11099 * features/i386/64bit-linux.c: Regenerate.
11100 * features/i386/64bit-mpx.c: Regenerate.
11101 * features/i386/64bit-pkeys.c: Regenerate.
11102 * features/i386/64bit-segments.c: Regenerate.
11103 * features/i386/64bit-sse.c: Regenerate.
11104 * features/i386/x32-core.c: Regenerate.
11105 * features/tic6x-c6xp.c: Regenerate.
11106 * features/tic6x-core.c: Regenerate.
11107 * features/tic6x-gp.c: Regenerate.
11108 * target-descriptions.c: Use common/tdesc.h.
11109 * target-descriptions.h: Likewise.
11110
11111 2018-02-24 Tom Tromey <tom@tromey.com>
11112
11113 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11114 (try_thread_db_load_from_dir, thread_db_load_search): Use
11115 std::string.
11116 (info_auto_load_libthread_db_compare): Return bool. Change
11117 argument types.
11118 (info_auto_load_libthread_db): Use std::vector, std::string.
11119 Remove cleanups.
11120
11121 2018-02-24 Tom Tromey <tom@tromey.com>
11122
11123 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11124 std::string.
11125 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11126 std::string*.
11127 * gdbarch.c: Rebuild.
11128 * gdbarch.h: Rebuild.
11129 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11130 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11131 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11132 std::string*.
11133
11134 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11135
11136 * gdbtypes.h (sect_offset): Change type to uint64_t.
11137 (sect_offset_str): New function.
11138 * dwarf2read.c (create_addrmap_from_aranges): Use
11139 sect_offset_str.
11140 (error_check_comp_unit_head): Likewise.
11141 (create_debug_type_hash_table): Likewise.
11142 (read_cutu_die_from_dwo): Likewise.
11143 (init_cutu_and_read_dies): Likewise.
11144 (init_cutu_and_read_dies_no_follow): Likewise.
11145 (process_psymtab_comp_unit_reader): Likewise.
11146 (partial_die_parent_scope): Likewise.
11147 (peek_die_abbrev): Likewise.
11148 (process_queue): Likewise.
11149 (dwarf2_physname): Likewise.
11150 (read_namespace_alias): Likewise.
11151 (read_import_statement): Likewise.
11152 (create_dwo_cu_reader): Likewise.
11153 (create_cus_hash_table): Likewise.
11154 (lookup_dwo_cutu): Likewise.
11155 (inherit_abstract_dies): Likewise.
11156 (read_func_scope): Likewise.
11157 (read_call_site_scope): Likewise.
11158 (dwarf2_add_member_fn): Likewise.
11159 (read_common_block): Likewise.
11160 (read_module_type): Likewise.
11161 (read_typedef): Likewise.
11162 (read_subrange_type): Likewise.
11163 (load_partial_dies): Likewise.
11164 (read_partial_die): Likewise.
11165 (find_partial_die): Likewise.
11166 (read_str_index): Likewise.
11167 (dwarf2_string_attr): Likewise.
11168 (build_error_marker_type): Likewise.
11169 (lookup_die_type): Likewise.
11170 (dump_die_shallow): Likewise.
11171 (follow_die_ref): Likewise.
11172 (dwarf2_fetch_die_loc_sect_off): Likewise.
11173 (dwarf2_fetch_constant_bytes): Likewise.
11174 (follow_die_sig): Likewise.
11175 (get_signatured_type): Likewise.
11176 (get_DW_AT_signature_type): Likewise.
11177 (dwarf2_find_containing_comp_unit): Likewise.
11178 (set_die_type): Likewise.
11179
11180 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11181
11182 * arch/aarch64.c: Include "common-defs.h".
11183 * arch/amd64.c: Likewise.
11184 * arch/i386.c: Likewise.
11185
11186 2018-02-21 Tom Tromey <tom@tromey.com>
11187
11188 * value.h: (extract_field_op): Update.
11189 * eval.c (extract_field_op): Return a const char *.
11190 * expression.h (parse_expression_for_completion): Update.
11191 * completer.c (complete_expression): Update.
11192 (add_struct_fields): Make fieldname const.
11193 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11194 (mark_completion_tag, parse_exp_in_context_1): Update.
11195 (parse_expression_for_completion): Change "name" to
11196 unique_xmalloc_ptr*.
11197
11198 2018-02-21 Tom Tromey <tom@tromey.com>
11199
11200 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11201
11202 2018-02-21 Yao Qi <yao.qi@linaro.org>
11203
11204 * avr-tdep.c (avr_read_pc): Change parameter type to
11205 readable_regcache.
11206 * gdbarch.sh (read_pc): Likewise.
11207 * gdbarch.c: Re-generated.
11208 * gdbarch.h: Re-generated.
11209 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11210 readable_regcache.
11211 * ia64-tdep.c (ia64_read_pc): Likewise.
11212 * mips-tdep.c (mips_read_pc): Likewise.
11213 * spu-tdep.c (spu_read_pc): Likewise.
11214
11215 2018-02-21 Yao Qi <yao.qi@linaro.org>
11216
11217 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11218 * regcache-dump.c: New file.
11219 * regcache.c: Move register_dump to regcache-dump.c.
11220 (maintenance_print_registers): Likewise.
11221 (maintenance_print_raw_registers): Likewise.
11222 (maintenance_print_cooked_registers): Likewise.
11223 (maintenance_print_register_groups): Likewise.
11224 (maintenance_print_remote_registers): Likewise.
11225 (_initialize_regcache): Likewise.
11226 * regcache.h (register_dump): Moved from regcache.c.
11227
11228 2018-02-21 Yao Qi <yao.qi@linaro.org>
11229
11230 * regcache.c (regcache::regcache): Update.
11231 (regcache::invalidate): Move it to detached_regcache::invalidate.
11232 (get_thread_arch_aspace_regcache): Update.
11233 (regcache::raw_update): Update.
11234 (regcache::cooked_read): Remove some code.
11235 (regcache::cooked_read_value): Likewise.
11236 (regcache::raw_write): Remove assert on m_readonly_p.
11237 (regcache::raw_supply_integer): Move it to
11238 detached_regcache::raw_supply_integer.
11239 (regcache::raw_supply_zeroed): Likewise.
11240 * regcache.h (detached_regcache) <raw_supply_integer>: New
11241 declaration.
11242 <raw_supply_zeroed, invalidate>: Likewise.
11243 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11244 <invalidate>: Likewise.
11245 <m_readonly_p>: Removed.
11246
11247 2018-02-21 Yao Qi <yao.qi@linaro.org>
11248
11249 * infcmd.c (get_return_value): Let stop_regs point to
11250 get_current_regcache.
11251 * regcache.c (regcache::regcache): Remove.
11252 (register_dump_reg_buffer): New class.
11253 (regcache_print): Adjust.
11254 * regcache.h (regcache): Remove constructors.
11255
11256 2018-02-21 Yao Qi <yao.qi@linaro.org>
11257
11258 * regcache.c (class register_dump): New class.
11259 (register_dump_regcache, register_dump_none): New class.
11260 (register_dump_remote, register_dump_groups): New class.
11261 (regcache_print): Update.
11262 * regcache.h (regcache_dump_what): Move it to regcache.c.
11263 (regcache) <dump>: Remove.
11264
11265 2018-02-21 Yao Qi <yao.qi@linaro.org>
11266
11267 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11268 reg_buffer_rw *.
11269 (jit_unwind_reg_set_impl): Call raw_supply.
11270 (jit_frame_sniffer): Use reg_buffer_rw.
11271 * record-full.c (record_full_core_regbuf): Change its type.
11272 (record_full_core_open_1): Use reg_buffer_rw.
11273 (record_full_close): Likewise.
11274 (record_full_core_fetch_registers): Use regcache->raw_supply.
11275 (record_full_core_store_registers): Likewise.
11276 * regcache.c (regcache::get_register_status): Move it to
11277 reg_buffer.
11278 (regcache_raw_set_cached_value): Remove.
11279 (regcache::raw_set_cached_value): Remove.
11280 (regcache::raw_write): Call raw_supply.
11281 (regcache::raw_supply): Move it to reg_buffer_rw.
11282 * regcache.h (regcache_raw_set_cached_value): Remove.
11283 (reg_buffer_rw): New class.
11284
11285 2018-02-21 Yao Qi <yao.qi@linaro.org>
11286
11287 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11288 readonly_detached_regcache.
11289 (dummy_frame_prev_register): Use regcache->cooked_read.
11290 * frame.c (frame_save_as_regcache): Change return type.
11291 (frame_pop): Update.
11292 * frame.h (frame_save_as_regcache): Update declaration.
11293 * inferior.h (get_infcall_suspend_state_regcache): Update
11294 declaration.
11295 * infrun.c (infcall_suspend_state) <registers>: use
11296 readonly_detached_regcache.
11297 (save_infcall_suspend_state): Don't use regcache_dup.
11298 (get_infcall_suspend_state_regcache): Change return type.
11299 * linux-fork.c (struct fork_info) <savedregs>: Change to
11300 readonly_detached_regcache.
11301 <pc>: New field.
11302 (fork_save_infrun_state): Don't use regcache_dup.
11303 (info_checkpoints_command): Adjust.
11304 * mi/mi-main.c (register_changed_p): Update declaration.
11305 (mi_cmd_data_list_changed_registers): Use
11306 readonly_detached_regcache.
11307 (register_changed_p): Change parameter type to
11308 readonly_detached_regcache.
11309 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11310 readonly_detached_regcache.
11311 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11312 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11313 New.
11314 (regcache::save): Move it to reg_buffer.
11315 (regcache::restore): Change parameter type.
11316 (regcache_dup): Remove.
11317 * regcache.h (reg_buffer) <save>: New method.
11318 (readonly_detached_regcache): New class.
11319 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11320 readonly_detached_regcache.
11321 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11322
11323 2018-02-21 Yao Qi <yao.qi@linaro.org>
11324
11325 * frame.c (frame_save_as_regcache): Use regcache method save.
11326 (frame_pop): Use regcache method restore.
11327 * infrun.c (restore_infcall_suspend_state): Likewise.
11328 * linux-fork.c (fork_load_infrun_state): Likewise.
11329 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11330 save.
11331 * regcache.c (regcache_save): Remove.
11332 (regcache::restore): More asserts.
11333 (regcache_cpy): Remove.
11334 * regcache.h (regcache_save): Remove the declaration.
11335 (regcache::restore): Move from private to public.
11336 Remove the friend declaration of regcache_cpy.
11337 (regcache_cpy): Remove declaration.
11338
11339 2018-02-21 Yao Qi <yao.qi@linaro.org>
11340
11341 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11342 parameter type to 'readable_regcache *'.
11343 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11344 * arm-tdep.c (arm_neon_quad_read): Likewise.
11345 (arm_pseudo_read): Likewise.
11346 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11347 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11348 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11349 * gdbarch.c: Re-generated.
11350 * gdbarch.h: Re-generated.
11351 * gdbarch.sh (pseudo_register_read): Change parameter type to
11352 'readable_regcache *'.
11353 (pseudo_register_read_value): Likewise.
11354 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11355 (h8300_pseudo_register_read): Likewise.
11356 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11357 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11358 (i386_pseudo_register_read_into_value): Likewise.
11359 (i386_pseudo_register_read_value): Likewise.
11360 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11361 declaration.
11362 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11363 * m32c-tdep.c (m32c_raw_read): Likewise.
11364 (m32c_read_flg): Likewise.
11365 (m32c_banked_register): Likewise.
11366 (m32c_banked_read): Likewise.
11367 (m32c_sb_read): Likewise.
11368 (m32c_part_read): Likewise.
11369 (m32c_cat_read): Likewise.
11370 (m32c_r3r2r1r0_read): Likewise.
11371 (m32c_pseudo_register_read): Likewise.
11372 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11373 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11374 (mep_pseudo_cr64_read): Likewise.
11375 (mep_pseudo_register_read): Likewise.
11376 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11377 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11378 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11379 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11380 (regcache::cooked_read): Likewise.
11381 (regcache::cooked_read_value): Likewise.
11382 (regcache_cooked_read_signed):
11383 (regcache::cooked_read): Likewise.
11384 * regcache.h (readable_regcache): New class.
11385 (regcache): Inherit readable_regcache. Move some methods to
11386 readable_regcache.
11387 * rl78-tdep.c (rl78_pseudo_register_read): Change
11388 parameter type to 'readable_regcache *'.
11389 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11390 (e500_pseudo_register_read): Change parameter type to
11391 'readable_regcache *'.
11392 (dfp_pseudo_register_read): Likewise.
11393 (vsx_pseudo_register_read): Likewise.
11394 (efpr_pseudo_register_read): Likewise.
11395 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11396 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11397 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11398 (sh64_pseudo_register_read): Likewise.
11399 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11400 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11401 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11402 (spu_pseudo_register_read): Likewise.
11403 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11404 (xtensa_pseudo_register_read): Likewise.
11405
11406 2018-02-21 Yao Qi <yao.qi@linaro.org>
11407
11408 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11409 (regcache::arch): Move it to reg_buffer::arch.
11410 (regcache::register_buffer): Likewise.
11411 (regcache::assert_regnum): Likewise.
11412 (regcache::num_raw_registers): Likewise.
11413 * regcache.h (reg_buffer): New class.
11414 (regcache): Inherit reg_buffer.
11415
11416 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11417
11418 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11419 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11420
11421 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11422
11423 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11424
11425 2018-02-19 Alan Hayward <alan.hayward@arm.com>
11426
11427 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11428 (SFILES): Remove common/*.c files.
11429 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11430 * common/common.host: Add common reference.
11431 * configure.ac: Likewise.
11432 * configure: Regenerate.
11433
11434 2018-02-16 Yao Qi <yao.qi@linaro.org>
11435
11436 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11437 (block_initialize_namespace): Use new.
11438 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11439 (dwarf2_free_objfile): Use delete.
11440 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11441 (copy_type_recursive): Use new.
11442 * gdb_obstack.h (allocate_on_obstack): New.
11443
11444 2018-02-15 Yao Qi <yao.qi@linaro.org>
11445
11446 PR gdb/22849
11447 * inferior.c (exit_inferior_1): Reset inf->control.
11448
11449 2018-02-15 Joel Brobecker <brobecker@adacore.com>
11450
11451 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11452 declaration.
11453
11454 2018-02-14 Pedro Alves <palves@redhat.com>
11455
11456 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11457 frame_cleanup_after_sniffer on exception.
11458
11459 2018-02-14 Tom Tromey <tom@tromey.com>
11460
11461 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11462 const.
11463 (solib_bfd_open): Make pathname const.
11464 * solib.c (solib_bfd_open): Make pathname const.
11465 * solib-spu.c (spu_bfd_fopen): Make name const.
11466 (spu_bfd_open): Make pathname const.
11467 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11468 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11469
11470 2018-02-14 Tom Tromey <tom@tromey.com>
11471
11472 * symfile.c (symfile_bfd_open): Update.
11473 * source.h (openp, source_full_path_of, find_and_open_source):
11474 Change argument type to unique_xmalloc_ptr.
11475 * source.c (openp): Take a unique_xmalloc_ptr.
11476 (source_full_path_of, find_and_open_source): Likewise.
11477 (open_source_file, symtab_to_fullname): Update.
11478 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11479 unique_xmalloc_ptr.
11480 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11481 (exec_file_find): Update.
11482 * psymtab.c (psymtab_to_fullname): Update.
11483 * nto-tdep.h (nto_find_and_open_solib): Update.
11484 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11485 unique_xmalloc_ptr.
11486 * exec.c (exec_file_attach): Update.
11487 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11488 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11489
11490 2018-02-14 Tom Tromey <tom@tromey.com>
11491
11492 * solib.c: Include source.h.
11493 * nto-tdep.c: Include source.h.
11494 * mi/mi-cmd-env.c: Include source.h.
11495 * infcmd.c: Include source.h.
11496 * exec.c: Include source.h.
11497 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11498 (add_path, directory_switch, source_path, init_source_path): Move
11499 declarations...
11500 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11501 (add_path, directory_switch, source_path, init_source_path):
11502 ...here.
11503
11504 2018-02-14 Tom Tromey <tom@tromey.com>
11505
11506 * solist.h (exec_file_find, solib_find): Return
11507 unique_xmalloc_ptr.
11508 (solib_bfd_fopen): Take a const char *.
11509 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11510 (exec_file_find, solib_find): Likewise.
11511 (solib_bfd_fopen): Do not take ownership of "pathname".
11512 (solib_bfd_open): Use unique_xmalloc_ptr.
11513 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11514 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11515 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11516 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11517
11518 2018-02-14 Joel Brobecker <brobecker@adacore.com>
11519
11520 * ada-lang.c (name_match_type_from_name): Remove reference to
11521 ada_name_for_lookup in function's documentation.
11522 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11523
11524 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11525
11526 * defs.h (enum openp_flags): New enum.
11527 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11528 Move to enum openp_flags.
11529 (openp_flags): New enum flags.
11530 (openp): Change parameter type to openp_flags.
11531 * source.c (openp): Change parameter type to openp_flags.
11532 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11533 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11534
11535 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11536
11537 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11538 per-command.
11539
11540 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11541
11542 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11543 into...
11544 (class dwarf2_queue_guard): ...the destructor of this new class.
11545 (dw2_do_instantiate_symtab): Create instance of the new class
11546 dwarf2_queue_guard, remove cleanup.
11547
11548 2018-02-09 Tom Tromey <tom@tromey.com>
11549
11550 * source.c (find_source_lines): Don't reference past the end of
11551 the vector.
11552
11553 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11554
11555 * remote.c (remote_btrace_maybe_reopen): Change error message.
11556 * btrace.c (btrace_enable): Likewise.
11557 (parse_xml_btrace): Likewise.
11558 (parse_xml_btrace_conf): Likewise.
11559
11560 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11561
11562 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11563 (linux_enable_pt, linux_enable_bts): Call
11564 diagnose_perf_event_open_fail.
11565
11566 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11567
11568 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11569 Remove parameter and change return type. Update callers. Move it.
11570 (linux_enable_bts, linux_enable_pt): Improve error message.
11571 (linux_enable_pt): Remove zero buffer size check.
11572 (linux_enable_btrace): Improve error messages. Remove NULL return
11573 check.
11574
11575 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11576
11577 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11578 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11579 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11580 (linux_supports_pt, linux_supports_btrace): Remove.
11581 (linux_enable_bts): Call cpu_supports_bts.
11582 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11583 * remote.c (remote_supports_btrace): Remove.
11584 (init_remote_ops): Remove remote_supports_btrace.
11585 * target-delegates.c: Regenerated.
11586 * target.c (target_supports_btrace): Remove.
11587 * target.h (target_ops) <to_supports_btrace>: Remove
11588 (target_supports_btrace): Remove.
11589 * x86-linux-nat.c (x86_linux_create_target): Remove
11590 linux_supports_btrace.
11591
11592 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11593
11594 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11595 btrace failed.
11596 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11597 exception and use message in own exception.
11598
11599 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11600
11601 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11602 (perf_event_pt_event_type): Use gdb_file_up.
11603 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11604 scoped_fd, and scoped_mmap.
11605
11606 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11607
11608 * common/scoped_mmap.h: New.
11609 * unittests/scoped_mmap-selftest.c: New.
11610 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11611 unittests/scoped_mmap-selftest.c.
11612
11613 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11614
11615 * common/scoped_fd.h: New.
11616 * unittests/scoped_fd-selftest.c: New.
11617 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11618 unittests/scoped_fd-selftest.c.
11619
11620 2018-02-09 Tom Tromey <tom@tromey.com>
11621
11622 * auto-load.c (auto_load_section_scripts): Use
11623 gdb::unique_xmalloc_ptr.
11624
11625 2018-02-09 Tom Tromey <tom@tromey.com>
11626
11627 * auto-load.c (execute_script_contents): Use std::string.
11628
11629 2018-02-09 Joel Brobecker <brobecker@adacore.com>
11630
11631 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11632 Python function, rather than a new command.
11633
11634 2018-02-08 Tom Tromey <tom@tromey.com>
11635
11636 * solib.c (solib_find_1): Use std::string.
11637 (solib_bfd_fopen): Use unique_xmalloc_ptr.
11638
11639 2018-02-08 Tom Tromey <tom@tromey.com>
11640
11641 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11642
11643 2018-02-08 Tom Tromey <tom@tromey.com>
11644
11645 * source.c (find_source_lines): Use gdb::def_vector.
11646
11647 2018-02-08 Tom Tromey <tom@tromey.com>
11648
11649 * macrocmd.c (struct temporary_macro_definition): New.
11650 (macro_define_command): Use temporary_macro_definition. Remove
11651 cleanups.
11652 (free_macro_definition_ptr): Remove.
11653
11654 2018-02-08 Tom Tromey <tom@tromey.com>
11655
11656 * macroexp.c (maybe_expand): Use std::string.
11657
11658 2018-02-08 Tom Tromey <tom@tromey.com>
11659
11660 * macroexp.c (struct macro_buffer): Add initializers for some
11661 members.
11662 (init_buffer, init_shared_buffer, free_buffer)
11663 (free_buffer_return_text): Remove.
11664 (macro_buffer): New constructors.
11665 (~macro_buffer): New destructor.
11666 (macro_buffer::set_shared): New method.
11667 (macro_buffer::resize_buffer, macro_buffer::appendc)
11668 (macro_buffer::appendmem): Now methods, not free functions.
11669 (set_token, append_tokens_without_splicing, stringify)
11670 (macro_stringify): Update.
11671 (gather_arguments): Change return type. Remove argc_p argument,
11672 add args_ptr argument. Use std::vector.
11673 (substitute_args): Remove argc argument. Accept std::vector.
11674 (expand): Update. Use std::vector.
11675 (scan, macro_expand, macro_expand_next): Update.
11676
11677 2018-02-08 Tom Tromey <tom@tromey.com>
11678
11679 * symtab.c (default_collect_symbol_completion_matches_break_on):
11680 Use unique_xmalloc_ptr.
11681 * macroscope.h: (sal_macro_scope, user_macro_scope)
11682 (default_macro_scope): Return unique_xmalloc_ptr.
11683 * macroscope.c (sal_macro_scope, user_macro_scope)
11684 (default_macro_scope): Return unique_xmalloc_ptr.
11685 * macroexp.h (macro_expand, macro_expand_once): Return
11686 unique_xmalloc_ptr.
11687 * macroexp.c (macro_expand, macro_expand_once): Return
11688 unique_xmalloc_ptr.
11689 * macrocmd.c (macro_expand_command, macro_expand_once_command)
11690 (info_macro_command, info_macros_command): Use
11691 unique_xmalloc_ptr.
11692 * compile/compile-c-support.c (write_macro_definitions): Use
11693 unique_xmalloc_ptr.
11694 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11695
11696 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
11697
11698 * value.c (value_static_field): Assign field type instead of
11699 containing type when returning an optimized out value.
11700
11701 2018-02-06 Yao Qi <yao.qi@linaro.org>
11702
11703 * ft32-tdep.c (ft32_read_pc): Remove.
11704 (ft32_write_pc): Remove.
11705 (ft32_gdbarch_init): Update.
11706 * m32r-tdep.c (m32r_read_pc): Remove.
11707 (m32r_gdbarch_init): Update.
11708 * mep-tdep.c (mep_read_pc): Remove.
11709 (mep_gdbarch_init): Update.
11710 * microblaze-tdep.c (microblaze_write_pc): Remove.
11711 (microblaze_gdbarch_init): Update.
11712 * mn10300-tdep.c (mn10300_read_pc): Remove.
11713 (mn10300_write_pc): Remove.
11714 (mn10300_gdbarch_init): Update.
11715 * moxie-tdep.c (moxie_read_pc): Remove.
11716 (moxie_write_pc): Remove.
11717 (moxie_gdbarch_init): Update.
11718
11719 2018-02-06 Yao Qi <yao.qi@linaro.org>
11720
11721 * expprint.c (print_subexp_standard): Handle
11722 OP_F77_UNDETERMINED_ARGLIST.
11723 (dump_subexp_body_standard): Likewise.
11724
11725 2018-02-05 Alan Hayward <alan.hayward@arm.com>
11726
11727 * target-descriptions.c (tdesc_element_visitor) Add empty
11728 implementations.
11729 (tdesc_type): Move make_gdb_type from here.
11730 (tdesc_type_builtin): Likewise.
11731 (tdesc_type_vector): Likewise.
11732 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11733 (make_gdb_type_struct): Move from tdesc_type_with_fields.
11734 (make_gdb_type_union): Likewise.
11735 (make_gdb_type_flags): Likewise.
11736 (make_gdb_type_enum): Likewise.
11737 (make_gdb_type): New function.
11738 (tdesc_register_type): Use static make_gdb_type.
11739
11740 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11741
11742 * infcmd.c (default_print_one_register_info): Align natural-format
11743 column values consistently one under another.
11744 (pad_to_column): New function.
11745
11746 2018-02-05 Joel Brobecker <brobecker@adacore.com>
11747
11748 * dwarf2read.c (dwarf2_physname): Move commment.
11749
11750 2018-02-01 Leszek Swirski <leszeks@google.com>
11751
11752 * varobj.c (varobj_formatted_print_options): Allow recursive
11753 pretty printing if pretty printing is enabled.
11754
11755 2018-02-01 Leszek Swirski <leszeks@google.com>
11756
11757 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11758 names after a structop as a filename.
11759
11760 2018-02-01 Yao Qi <yao.qi@linaro.org>
11761
11762 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11763 (arm_record_coproc_data_proc): Likewise.
11764
11765 2018-02-01 Yao Qi <yao.qi@linaro.org>
11766
11767 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11768
11769 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11770
11771 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11772 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11773
11774 2018-01-31 Pedro Alves <palves@redhat.com>
11775
11776 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11777 * inflow.c (child_terminal_save_inferior): Wrap reference to
11778 tcgetpgrp in HAVE_TERMIOS_H.
11779 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11780 _WIN32.
11781 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11782 always iterate over all inferiors.
11783 (gdbsim_cntrl_c): Adjust.
11784 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11785
11786 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11787
11788 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11789 index type is objfile-owned if the element type is as well.
11790
11791 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11792
11793 GDB 8.1 released.
11794
11795 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11796
11797 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11798 "features/s390x-linux64.c".
11799 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11800 s390_linux32 and s390x_linux64.
11801 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11802 default tdesc.
11803 * s390-tdep.c: Include "features/s390-linux32.c" and
11804 "features/s390x-linux64.c".
11805 (s390_tdesc_valid): Add check for tdesc_has_registers.
11806 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11807 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11808 tdesc_s390x_linux64.
11809 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11810 tdesc_s390x_linux64 to...
11811 * s390-tdep.h: ...here.
11812
11813 2018-01-30 Pedro Alves <palves@redhat.com>
11814
11815 PR gdb/13211
11816 * config.in, configure: Regenerate.
11817 * configure.ac: Check for getpgid.
11818 * go32-nat.c (go32_pass_ctrlc): New.
11819 (go32_target): Install it.
11820 * inf-child.c (inf_child_target): Install
11821 child_terminal_save_inferior, child_pass_ctrlc and
11822 child_interrupt.
11823 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11824 (inf_ptrace_target): No longer install it.
11825 * infcmd.c (interrupt_target_1): Adjust.
11826 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11827 (child_interrupt): Declare.
11828 (inferior::terminal_state): New.
11829 * inflow.c (struct terminal_info): Update comments.
11830 (inferior_process_group): Delete.
11831 (terminal_is_ours): Delete.
11832 (gdb_tty_state): New.
11833 (child_terminal_init): Adjust.
11834 (is_gdb_terminal, sharing_input_terminal_1)
11835 (sharing_input_terminal): New functions.
11836 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
11837 Set the process's actual process group in the foreground if
11838 possible. Handle is_ours_for_output/is_ours distinction. Don't
11839 mark terminal as the inferior's if not sharing GDB's terminal.
11840 Don't check attach_flag.
11841 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11842 pass down a target_terminal_state.
11843 (child_terminal_save_inferior): New, factored out from ...
11844 (child_terminal_ours_1): ... this. Handle
11845 target_terminal_state::is_ours_for_output.
11846 (child_interrupt, child_pass_ctrlc): New.
11847 (inflow_inferior_exit): Clear the inferior's terminal_state.
11848 (copy_terminal_info): Copy the inferior's terminal state.
11849 (_initialize_inflow): Remove reference to terminal_is_ours.
11850 * inflow.h (inferior_process_group): Delete.
11851 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11852 * procfs.c (procfs_target): Don't install procfs_interrupt.
11853 (procfs_interrupt): Delete.
11854 * remote.c (remote_serial_quit_handler): Adjust.
11855 (remote_interrupt): Remove ptid parameter. Adjust.
11856 * target-delegates.c: Regenerate.
11857 * target.c: Include "terminal.h".
11858 (target_terminal::terminal_state): Rename to ...
11859 (target_terminal::m_terminal_state): ... this.
11860 (target_terminal::init): Adjust.
11861 (target_terminal::inferior): Adjust to per-inferior
11862 terminal_state.
11863 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
11864 (target_terminal::ours, target_terminal::ours_for_output): Use
11865 target_terminal_is_ours_kind.
11866 (target_interrupt): Remove ptid parameter. Adjust.
11867 (default_target_pass_ctrlc): Adjust.
11868 * target.h (target_ops::to_terminal_save_inferior): New field.
11869 (target_ops::to_interrupt): Remove ptid_t parameter.
11870 (target_interrupt): Remove ptid_t parameter. Update comment.
11871 (target_pass_ctrlc): Update comment.
11872 * target/target.h (target_terminal_state): New scoped enum,
11873 factored out of ...
11874 (target_terminal::terminal_state): ... here.
11875 (target_terminal::inferior): Update comments.
11876 (target_terminal::restore_inferior): New.
11877 (target_terminal::is_inferior, target_terminal::is_ours)
11878 (target_terminal::is_ours_for_output): Adjust.
11879 (target_terminal::scoped_restore_terminal_state): Adjust to
11880 rename, and call restore_inferior() instead of inferior().
11881 (target_terminal::scoped_restore_terminal_state::m_state): Change
11882 type.
11883 (target_terminal::terminal_state): Rename to ...
11884 (target_terminal::m_terminal_state): ... this and change type.
11885
11886 2018-01-30 Pedro Alves <palves@redhat.com>
11887
11888 * linux-nat.c (wait_for_signal): New function.
11889 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
11890 directly.
11891 (async_terminal_is_ours)
11892 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
11893 (linux_nat_add_target): Don't override
11894 to_terminal_inferior/to_terminal_ours.
11895
11896 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
11897
11898 * remote.c (remote_follow_fork): Don't call "detach_inferior".
11899
11900 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
11901
11902 * dwarf2read.c (free_dwo_files): Add forward-declaration.
11903 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
11904 dwarf2_per_objfile_free here.
11905 (dwarf2_per_objfile_free): Remove.
11906 (_initialize_dwarf2_read): Don't register
11907 dwarf2_per_objfile_free as a registry cleanup.
11908
11909 2018-01-27 Eli Zaretskii <eliz@gnu.org>
11910
11911 Avoid compilation errors in MinGW native builds
11912
11913 The error is triggered by including python-internal.h, and the
11914 error message is:
11915
11916 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
11917 from build-gnulib/import/math.h:27,
11918 from d:/usr/Python26/include/pyport.h:235,
11919 from d:/usr/Python26/include/Python.h:58,
11920 from python/python-internal.h:94,
11921 from python/py-arch.c:24:
11922 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
11923 using ::hypot;
11924 ^~~~~
11925
11926 This happens because Python headers define 'hypot' to expand t
11927 '_hypot' in the Windows builds.
11928 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
11929 'hypoth'. This avoids a compilation error.
11930
11931 2018-01-26 Alan Hayward <alan.hayward@arm.com>
11932
11933 * MAINTAINERS (Write After Approval): Fix ordering.
11934
11935 2018-01-26 Alan Hayward <alan.hayward@arm.com>
11936
11937 * MAINTAINERS (Write After Approval): Add Alan Hayward.
11938
11939 2018-01-26 Alan Modra <amodra@gmail.com>
11940
11941 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
11942 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
11943 Remove nop. Make const. Comment.
11944 (powerpc32_plt_stub_so_2): New.
11945 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
11946 Correct count. Update uses.
11947 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
11948 Move common code reading PLT entry word. Correct
11949 powerpc32_plt_stub PLT address calculation.
11950 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
11951 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
11952 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
11953 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
11954 (ppc64_standard_linkage8): Likewise.
11955 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
11956 Correct insns description.
11957 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
11958
11959 2018-01-24 Pedro Alves <palves@redhat.com>
11960
11961 GCC PR libstdc++/83906
11962 * gdbtypes.c (operator==(const dynamic_prop &,
11963 const dynamic_prop &)): New.
11964 (operator==(const range_bounds &, const range_bounds &)): New.
11965 (check_types_equal): Use them instead of memcmp.
11966 * gdbtypes.h (operator==(const dynamic_prop &,
11967 const dynamic_prop &)): Declare.
11968 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
11969 (operator==(const range_bounds &, const range_bounds &)): Declare.
11970 (operator!=(const range_bounds &, const range_bounds &)): Declare.
11971
11972 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11973
11974 * s390-linux-tdep.c (s390_record_address_mask)
11975 (s390_record_calc_disp_common, s390_record_calc_disp)
11976 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11977 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11978 (s390_process_record): Move to s390-tdep.c.
11979 (s390_linux_init_abi_any): Adjust.
11980 * s390-tdep.c (s390_record_address_mask)
11981 (s390_record_calc_disp_common, s390_record_calc_disp)
11982 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11983 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11984 (s390_process_record): Moved from s390-linux-tdep.c
11985 (s390_gdbarch_init): Adjust.
11986
11987 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11988
11989 * s390-linux-nat.c (s390-tdep.h): New include.
11990 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
11991 (HFILES_NO_SRCDIR): Add s390-tdep.h.
11992 (ALLDEPFILES): Add s390-tdep.c.
11993 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
11994 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
11995 * s390-tdep.h: ...this. New file.
11996 * s390-linux-tdep.c (s390-tdep.h): New include.
11997 (_initialize_s390_tdep): Rename to...
11998 (_initialize_s390_linux_tdep): ...this and adjust.
11999 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12000 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12001 s390-tdep.h.
12002 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12003 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12004 (s390_is_partial_instruction, s390_software_single_step)
12005 (is_non_branch_ril, s390_displaced_step_copy_insn)
12006 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12007 (s390_prologue_data, s390_addr, s390_store, s390_load)
12008 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12009 (s390_register_call_saved, s390_guess_tracepoint_registers)
12010 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12011 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12012 (s390_pseudo_register_name, s390_pseudo_register_type)
12013 (s390_pseudo_register_read, s390_pseudo_register_write)
12014 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12015 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12016 (s390_addr_bits_remove, s390_address_class_type_flags)
12017 (s390_address_class_type_flags_to_name)
12018 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12019 (s390_function_arg_float, s390_function_arg_vector)
12020 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12021 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12022 (s390_frame_align, s390_register_return_value, s390_return_value)
12023 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12024 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12025 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12026 (s390_trad_frame_prev_register, s390_unwind_cache)
12027 (s390_prologue_frame_unwind_cache)
12028 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12029 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12030 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12031 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12032 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12033 (s390_frame_base_address, s390_local_base_address)
12034 (s390_frame_base, s390_gcc_target_options)
12035 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12036 (s390_validate_reg_range, s390_tdesc_valid)
12037 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12038 * s390-tdep.c: ...this. New file.
12039
12040 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12041
12042 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12043 (s390_process_record, s390_gdbarch_tdep_alloc)
12044 (s390_linux_init_abi_any): Use/set new hook.
12045
12046 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12047
12048 * s390-linux-tdep.c (osabi.h): New include.
12049 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12050 (s390_linux_init_abi_any): New functions.
12051 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12052
12053 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12054
12055 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12056 tdesc_has_registers check
12057
12058 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12059
12060 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12061 (s390_validate_reg_range): New macro.
12062 (s390_gdbarch_init): Adjust.
12063
12064 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12065
12066 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12067 (s390_gdbarch_tdep_alloc): Adjust.
12068 (s390_gdbarch_init): Adjust.
12069
12070 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12071
12072 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12073 <have_tdb>: Change type to bool.
12074 (s390_gdbarch_tdep_alloc): Adjust.
12075 (s390_gdbarch_init): Adjust.
12076
12077 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12078
12079 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12080 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12081 (s390_gdbarch_tdep_alloc): New function.
12082 (s390_gdbarch_init): Allocate tdep at start and use its fields
12083 instead of separate variables.
12084
12085 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12086
12087 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12088 when looking for cached gdbarch and add comment for remaining.
12089
12090 2018-01-22 Pedro Alves <palves@redhat.com>
12091 Sergio Durigan Junior <sergiodj@redhat.com>
12092
12093 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12094 case.
12095
12096 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12097
12098 * MAINTAINERS: Update my company e-mail address.
12099
12100 2018-01-22 Yao Qi <yao.qi@linaro.org>
12101
12102 * regcache.c (cooked_write_test): New function.
12103 (_initialize_regcache): Register the test.
12104
12105 2018-01-22 Yao Qi <yao.qi@linaro.org>
12106
12107 * ia64-tdep.c (ia64_pseudo_register_read): Call
12108 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12109 * m32c-tdep.c (m32c_cat_read): Likewise.
12110 (m32c_r3r2r1r0_read): Likewise.
12111 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12112 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12113
12114 2018-01-22 Yao Qi <yao.qi@linaro.org>
12115
12116 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12117 method raw_read instead of regcache_raw_read.
12118 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12119 * arm-tdep.c (arm_neon_quad_read): Likewise.
12120 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12121 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12122 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12123 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12124 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12125 (i386_pseudo_register_read_into_value): Likewise.
12126 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12127 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12128 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12129 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12130 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12131 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12132 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12133 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12134 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12135
12136 2018-01-22 Yao Qi <yao.qi@linaro.org>
12137
12138 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12139 * configure.tgt: Remove target mt.
12140 * mt-tdep.c: Remove.
12141 * regcache.c (cooked_read_test): Remove the check for mt.
12142
12143 2018-01-22 Yao Qi <yao.qi@linaro.org>
12144
12145 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12146 instead of gdbarch_pseudo_register_read_value.
12147
12148 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12149
12150 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12151 language is Ada.
12152
12153 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12154
12155 * linespec.c (create_sals_line_offset): Remove code that preserved
12156 the symtab_and_line's line number.
12157
12158 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12159
12160 * varobj.c (varobj_create): Don't set valid_block when creating a
12161 floating varobj.
12162
12163 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12164
12165 * varobj.c (varobj_create): Remove out of date comment.
12166
12167 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12168
12169 PR mi/20395
12170 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12171 updating innermost block.
12172 * parse.c (innermost_block_tracker::update): Take extra type
12173 parameter, and check types match before updating innermost block.
12174 (write_dollar_variable): Update innermost block for registers.
12175 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12176 (innermost_block_tracker::innermost_block_tracker): Initialise
12177 m_types member.
12178 (innermost_block_tracker::reset): Take type parameter.
12179 (innermost_block_tracker::update): Take type parameter, and pass
12180 type through as needed.
12181 (innermost_block_tracker::m_types): New member.
12182 * varobj.c (varobj_create): Pass type when reseting innermost
12183 block.
12184
12185 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12186
12187 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12188 * ada-lang.c (resolve_subexp): Likewise.
12189 * breakpoint.c (set_breakpoint_condition) Likewise.
12190 (watch_command_1) Likewise.
12191 * c-exp.y (variable): Likewise.
12192 * d-exp.y (PrimaryExpression): Likewise.
12193 * f-exp.y (variable): Likewise.
12194 * go-exp.y (variable): Likewise.
12195 * m2-exp.y (variable): Likewise.
12196 * objfiles.c (objfile::~objfile): Likewise.
12197 * p-exp.y (variable): Likewise.
12198 * parse.c (innermost_block): Change type.
12199 * parser-defs.h (class innermost_block_tracker): New.
12200 (innermost_block): Change to innermost_block_tracker.
12201 * printcmd.c (display_command): Switch to innermost_block API.
12202 (do_one_display): Likewise.
12203 * rust-exp.y (do_one_display): Likewise.
12204 * symfile.c (clear_symtab_users): Likewise.
12205 * varobj.c (varobj_create): Switch to innermost_block API, replace
12206 use of innermost_block with block stored on varobj object.
12207
12208 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12209
12210 * expression.h (innermost_block): Remove declaration.
12211 * varobj.c: Add 'parser-defs.h' include.
12212
12213 2018-01-19 Tom Tromey <tom@tromey.com>
12214
12215 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12216 symbols in the static and global blocks.
12217
12218 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12219
12220 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12221 gdb_ptrace.h, and move including gdb_wait.h ...
12222 * nat/linux-ptrace.h: ... to here.
12223
12224 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12225
12226 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12227 inf_ptrace_detach_success.
12228 (inf_ptrace_detach_success): Add inferior parameter, use it
12229 instead of inferior_ptid, pass it to detach_inferior.
12230 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12231 parameter.
12232 * inferior.c (detach_inferior): Add overload that takes an
12233 inferior object.
12234 * inferior.h (detach_inferior): Likewise.
12235 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12236 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12237 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12238
12239 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12240
12241 * target.h (struct target_ops) <to_detach>: Add inferior
12242 parameter.
12243 (target_detach): Likewise.
12244 * target.c (dispose_inferior): Pass inferior down.
12245 (target_detach): Pass inferior down. Assert that it is equal to
12246 the current inferior.
12247 * aix-thread.c (aix_thread_detach): Pass inferior down.
12248 * corefile.c (core_file_command): Pass current_inferior() down.
12249 * corelow.c (core_detach): Add inferior parameter.
12250 * darwin-nat.c (darwin_detach): Likewise.
12251 * gnu-nat.c (gnu_detach): Likewise.
12252 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12253 * infcmd.c (detach_command): Pass current_inferior() down to
12254 target_detach.
12255 * infrun.c (follow_fork_inferior): Pass parent_inf to
12256 target_detach.
12257 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12258 target_detach.
12259 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12260 * linux-thread-db.c (thread_db_detach): Likewise.
12261 * nto-procfs.c (procfs_detach): Likewise.
12262 * procfs.c (procfs_detach): Likewise.
12263 * record.c (record_detach): Likewise.
12264 * record.h (struct inferior): Forward-declare.
12265 (record_detach): Add inferior parameter.
12266 * remote-sim.c (gdbsim_detach): Likewise.
12267 * remote.c (remote_detach_1): Likewise.
12268 (remote_detach): Likewise.
12269 (extended_remote_detach): Likewise.
12270 * sol-thread.c (sol_thread_detach): Likewise.
12271 * target-debug.h (target_debug_print_inferior_p): New macro.
12272 * target-delegates.c: Re-generate.
12273 * top.c (kill_or_detach): Pass inferior down to target_detach.
12274 * windows-nat.c (windows_detach): Add inferior parameter.
12275
12276 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12277
12278 * target.h (struct target_ops) <to_detach>: Remove args
12279 parameter.
12280 (target_detach): Likewise.
12281 * target.c (dispose_inferior): Adjust.
12282 (target_detach): Remove args parameter, adjust.
12283 * aix-thread.c (aix_thread_detach): Adjust.
12284 * corefile.c (core_file_command): Adjust.
12285 * corelow.c (core_detach): Adjust.
12286 * darwin-nat.c (darwin_detach): Adjust.
12287 * gnu-nat.c (gnu_detach): Adjust.
12288 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12289 * infcmd.c (detach_command): Adjust
12290 * infrun.c (follow_fork_inferior): Adjust.
12291 (handle_vfork_child_exec_or_exit): Adjust.
12292 * linux-fork.c (linux_fork_detach): Remove args parameter.
12293 * linux-fork.h (linux_fork_detach): Likewise.
12294 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12295 * linux-thread-db.c (thread_db_detach): Likewise.
12296 * nto-procfs.c (procfs_detach): Likewise.
12297 * procfs.c (procfs_detach): Likewise.
12298 (do_detach): Remove signo parameter.
12299 * record.c (record_detach): Remove args parameter.
12300 * record.h (record_detach): Likewise.
12301 * remote-sim.c (gdbsim_detach): Likewise.
12302 * remote.c (remote_detach_1): Likewise.
12303 (remote_detach): Likewise.
12304 (extended_remote_detach): Likewise.
12305 * sol-thread.c (sol_thread_detach): Likewise.
12306 * target-delegates.c: Re-generate.
12307 * top.c (struct qt_args) <args>: Remove field.
12308 (kill_or_detach): Don't pass args.
12309 (quit_force): Don't set args.
12310 * windows-nat.c (windows_detach): Remove args parameter.
12311
12312 2018-01-19 Yao Qi <yao.qi@linaro.org>
12313
12314 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12315 (arm_linux_init_abi): Install it.
12316
12317 2018-01-19 Yao Qi <yao.qi@linaro.org>
12318
12319 * osabi.c (gdb_osabi_names): Extend the regexp for
12320 arm-linux-gnueabihf.
12321
12322 2018-01-18 Yao Qi <yao.qi@linaro.org>
12323
12324 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12325 m_abbrevs.
12326 (abbrev_table::add_abbrev): Update.
12327 (abbrev_table::lookup_abbrev): Update.
12328
12329 2018-01-18 Yao Qi <yao.qi@linaro.org>
12330
12331 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12332
12333 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12334
12335 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12336 to "std::string".
12337
12338 2018-01-17 Tom Tromey <tom@tromey.com>
12339
12340 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12341
12342 2018-01-17 Tom Tromey <tom@tromey.com>
12343
12344 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12345 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12346 (create_array_type_with_stride): Update.
12347 * dwarf2read.c (set_die_type): Update.
12348
12349 2018-01-17 Tom Tromey <tom@tromey.com>
12350
12351 * dwarf2read.c (delayed_method_info): Remove typedef.
12352 (dwarf2_cu::method_info): Now a std::vector.
12353 (add_to_method_list): Update.
12354 (free_delayed_list): Remove.
12355 (compute_delayed_physnames): Update.
12356 (process_full_comp_unit, process_full_type_unit): Clear the method
12357 list. Remove cleanups.
12358 (psymtab_include_file_name): Add name_holder parameter. Use
12359 unique_xmalloc_ptr.
12360 (dwarf_decode_lines): Update.
12361
12362 2018-01-17 Tom Tromey <tom@tromey.com>
12363 Simon Marchi <simon.marchi@ericsson.com>
12364
12365 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12366 (dwarf2_per_objfile::free_cached_comp_units)
12367 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12368 (init_cutu_and_read_dies_no_follow): Update.
12369 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12370 (dwarf2_cu::~dwarf2_cu): New.
12371 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12372 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12373
12374 2018-01-17 Tom Tromey <tom@tromey.com>
12375 Simon Marchi <simon.marchi@ericsson.com>
12376
12377 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12378 (struct die_reader_specs) <abbrev_table>: New member.
12379 (struct abbrev_table): Add constructor.
12380 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12381 <abbrev_obstack>: Now an auto_obstack.
12382 (abbrev_table_up): New typedef.
12383 (init_cu_die_reader): Add abbrev_table parameter.
12384 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12385 Add result_dwo_abbrev_table.
12386 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12387 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12388 Update.
12389 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12390 parameter.
12391 (skip_children): Update.
12392 (abbrev_table::alloc_abbrev): Rename from
12393 abbrev_table_alloc_abbrev.
12394 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12395 (abbrev_table::lookup_abbrev): Rename from
12396 abbrev_table_lookup_abbrev.
12397 (abbrev_table_read_table): Return abbrev_table_up.
12398 (abbrev_table_free, abbrev_table_free_cleanup)
12399 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12400 (load_partial_dies): Update.
12401
12402 2018-01-17 Tom Tromey <tom@tromey.com>
12403
12404 * dwarf2read.c (dwarf2_compute_name): Update comment.
12405 (read_func_scope, read_variable): Update.
12406 (new_symbol): Remove.
12407 (new_symbol_full): Rename to new_symbol.
12408
12409 2018-01-17 Mike Gulick <mgulick@mathworks.com>
12410
12411 PR gdb/16577
12412 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12413 a warning instead of throwing an error, set section size to 0 and return
12414 NULL.
12415 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12416
12417 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12418
12419 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12420 std::string.
12421 (linux_ptrace_attach_fail_reason_string): Likewise.
12422 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12423 Likewise.
12424 (linux_ptrace_attach_fail_reason_string): Likewise.
12425 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12426
12427 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12428
12429 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12430
12431 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12432
12433 PR gdb/21559
12434 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12435 checking for fs_base/gs_base fields in struct user_regs_struct.
12436 * configure: Regenerate.
12437
12438 2018-01-17 Yao Qi <yao.qi@linaro.org>
12439
12440 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12441 function.
12442 (aarch64_linux_init_abi): Install it to gdbarch hook
12443 gcc_target_options.
12444
12445 2018-01-15 Pedro Alves <palves@redhat.com>
12446
12447 * common/signals-state-save-restore.c
12448 (save_original_signals_state): Fix typos.
12449
12450 2017-01-12 Tom Tromey <tom@tromey.com>
12451 Sergio Durigan Junior <sergiodj@redhat.com>
12452
12453 * Makefile.in (install-only): Install gdb-add-index.
12454
12455 2018-01-12 John Baldwin <jhb@FreeBSD.org>
12456
12457 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12458
12459 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12460
12461 * infrun.c (keep_going_pass_signal): Clear step-over info when
12462 insert_breakpoints fails.
12463
12464 2018-01-11 Pedro Alves <palves@redhat.com>
12465
12466 PR gdb/22583
12467 * infrun.c (resume): Rename to ...
12468 (resume_1): ... this.
12469 (resume): Reimplement as wrapper around resume_1.
12470
12471 2018-01-11 Pedro Alves <palves@redhat.com>
12472
12473 PR remote/22597
12474 * remote.c (remote_parse_stop_reply): Default to the last-set
12475 general thread instead of to 'magic_null_ptid'.
12476
12477 2018-01-10 Pedro Alves <palves@redhat.com>
12478
12479 * language.h (language_get_symbol_name_matcher): Rename ...
12480 (get_symbol_name_matcher): ... this.
12481 * language.c (language_get_symbol_name_matcher): Ditto.
12482 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12483 callers adjusted.
12484
12485 2018-01-10 Pedro Alves <palves@redhat.com>
12486
12487 PR gdb/22670
12488 * dwarf2read.c
12489 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12490 Adjust to use language_get_symbol_name_matcher instead of
12491 language_defn::la_get_symbol_name_matcher.
12492 * language.c (language_get_symbol_name_matcher): If in Ada mode
12493 and the lookup name is a verbatim match, return Ada's matcher.
12494 * language.h (language_get_symbol_name_matcher): Adjust comment.
12495 (ada_lookup_name_info::verbatim_p):: New method.
12496
12497 2018-01-10 Pedro Alves <palves@redhat.com>
12498
12499 PR gdb/22670
12500 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12501 minsym's language is language_auto or language_cplus, pass down
12502 language_ada instead.
12503 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12504
12505 2018-01-10 Pedro Alves <palves@redhat.com>
12506
12507 PR gdb/22670
12508 * minsyms.c (linkage_name_str): New function.
12509 (iterate_over_minimal_symbols): Use it.
12510
12511 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12512
12513 * NEWS: Document that 'info proc' now works on FreeBSD.
12514
12515 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12516
12517 * configure.ac: Check for kinfo_getfile in libutil.
12518 * configure: Regenerate.
12519 * config.in: Regenerate.
12520 * fbsd-nat.c: Include "fbsd-tdep.h".
12521 (fbsd_fetch_cmdline): New.
12522 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12523 rather than calling error.
12524 (fbsd_info_proc): New.
12525 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12526 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12527 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12528
12529 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12530
12531 * fbsd-nat.c (struct free_deleter): Remove.
12532 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12533
12534 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12535
12536 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12537 NULL for an empty pathname.
12538
12539 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12540
12541 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12542 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12543 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12544 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12545 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12546 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12547 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12548 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12549 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12550 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12551 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12552 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12553 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12554 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12555 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12556
12557 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12558
12559 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12560 (gnu_xfer_auxv): New function.
12561 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12562 TARGET_OBJECT_AUXV.
12563
12564 2018-01-08 Yao Qi <yao.qi@linaro.org>
12565 Simon Marchi <simon.marchi@ericsson.com>
12566
12567 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12568 common/selftest.c.
12569 (COMMON_OBS): Remove selftest.o.
12570 * configure.ac: Append selftest-arch.c and common/selftest.c to
12571 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12572 * configure: Re-generated.
12573 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12574 GDB_SELF_TEST.
12575 (maintenance_info_selftests): Likewise.
12576
12577 2018-01-08 Xavier Roirand <roirand@adacore.com>
12578
12579 * ada-valprint.c (val_print_packed_array_elements): Use
12580 proper number of elements when printing an array indexed
12581 by an enumeration type.
12582
12583 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12584
12585 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12586 (dw2_get_file_names_reader): Adjust.
12587 (lookup_dwo_signatured_type): Adjust.
12588 (lookup_dwp_signatured_type): Adjust.
12589 (lookup_signatured_type): Adjust.
12590 (create_type_unit_group): Adjust.
12591 (get_type_unit_group): Adjust.
12592 (process_psymtab_comp_unit_reader): Adjust.
12593 (build_type_psymtabs_reader): Adjust.
12594 (scan_partial_symbols): Adjust.
12595 (add_partial_symbol): Adjust.
12596 (add_partial_subprogram): Adjust.
12597 (peek_die_abbrev): Adjust.
12598 (fixup_go_packaging): Adjust.
12599 (process_imported_unit_die): Adjust.
12600 (dwarf2_compute_name): Adjust.
12601 (dwarf2_physname): Adjust.
12602 (read_import_statement): Adjust.
12603 (handle_DW_AT_stmt_list): Adjust.
12604 (read_file_scope): Adjust.
12605 (read_func_scope): Adjust.
12606 (read_lexical_block_scope): Adjust.
12607 (read_call_site_scope): Adjust.
12608 (read_variable): Adjust.
12609 (dwarf2_rnglists_process): Adjust.
12610 (dwarf2_ranges_process): Adjust.
12611 (dwarf2_ranges_read): Adjust.
12612 (dwarf2_get_pc_bounds): Adjust.
12613 (dwarf2_record_block_ranges): Adjust.
12614 (dwarf2_add_field): Adjust.
12615 (dwarf2_add_member_fn): Adjust.
12616 (read_structure_type): Adjust.
12617 (process_structure_scope): Adjust.
12618 (read_enumeration_type): Adjust.
12619 (read_array_type): Adjust.
12620 (mark_common_block_symbol_computed): Adjust.
12621 (read_common_block): Adjust.
12622 (read_namespace_type): Adjust.
12623 (read_namespace): Adjust.
12624 (read_module_type): Adjust.
12625 (read_tag_pointer_type): Adjust.
12626 (read_tag_ptr_to_member_type): Adjust.
12627 (read_tag_string_type): Adjust.
12628 (read_subroutine_type): Adjust.
12629 (read_typedef): Adjust.
12630 (read_base_type): Adjust.
12631 (attr_to_dynamic_prop): Adjust.
12632 (read_subrange_type): Adjust.
12633 (read_unspecified_type): Adjust.
12634 (dwarf2_read_abbrevs): Adjust.
12635 (load_partial_dies): Adjust.
12636 (read_partial_die): Adjust.
12637 (find_partial_die): Adjust.
12638 (guess_partial_die_structure_name): Adjust.
12639 (fixup_partial_die): Adjust.
12640 (read_attribute_value): Adjust.
12641 (read_addr_index): Adjust.
12642 (read_addr_index_from_leb128): Adjust.
12643 (read_str_index): Adjust.
12644 (dwarf2_string_attr): Adjust.
12645 (get_debug_line_section): Adjust.
12646 (dwarf_decode_line_header): Adjust.
12647 (lnp_state_machine::check_line_address): Adjust.
12648 (dwarf_decode_lines_1): Adjust.
12649 (dwarf_decode_lines): Adjust.
12650 (dwarf2_start_symtab): Adjust.
12651 (var_decode_location): Adjust.
12652 (new_symbol_full): Adjust.
12653 (dwarf2_const_value_data): Adjust.
12654 (dwarf2_const_value_attr): Adjust.
12655 (dwarf2_const_value): Adjust.
12656 (die_type): Adjust.
12657 (die_containing_type): Adjust.
12658 (build_error_marker_type): Adjust.
12659 (lookup_die_type): Adjust.
12660 (guess_full_die_structure_name): Adjust.
12661 (anonymous_struct_prefix): Adjust.
12662 (determine_prefix): Adjust.
12663 (dwarf2_name): Adjust.
12664 (follow_die_ref_or_sig): Adjust.
12665 (follow_die_offset): Adjust.
12666 (follow_die_ref): Adjust.
12667 (follow_die_sig_1): Adjust.
12668 (follow_die_sig): Adjust.
12669 (get_signatured_type): Adjust.
12670 (get_DW_AT_signature_type): Adjust.
12671 (decode_locdesc): Adjust.
12672 (dwarf_decode_macros): Adjust.
12673 (cu_debug_loc_section): Adjust.
12674 (fill_in_loclist_baton): Adjust.
12675 (dwarf2_symbol_mark_computed): Adjust.
12676 (init_one_comp_unit): Don't assign
12677 dwarf2_cu::dwarf2_per_objfile.
12678 (set_die_type): Adjust.
12679
12680 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12681
12682 * dwarf2read.c (struct mapped_debug_names): Add constructor.
12683 <dwarf2_per_objfile>: New field.
12684 (dwarf2_per_objfile): Remove global.
12685 (get_dwarf2_per_objfile): New function.
12686 (set_dwarf2_per_objfile): New function.
12687 (dwarf2_build_psymtabs_hard): Change objfile parameter to
12688 dwarf2_per_objfile.
12689 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12690 (read_abbrev_offset): Likewise.
12691 (read_indirect_string): Likewise.
12692 (read_indirect_line_string): Likewise.
12693 (read_indirect_string_at_offset): Likewise.
12694 (read_indirect_string_from_dwz): Likewise.
12695 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12696 dwarf2_per_objfile.
12697 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12698 (create_all_comp_units): Change objfile parameter to
12699 dwarf2_per_objfile.
12700 (create_all_type_units): Likewise.
12701 (process_queue): Add dwarf2_per_objfile parameter.
12702 (read_and_check_comp_unit_head): Likewise.
12703 (lookup_dwo_unit_in_dwp): Likewise.
12704 (get_dwp_file): Likewise.
12705 (process_cu_includes): Likewise.
12706 (struct free_dwo_file_cleanup_data): New struct.
12707 (dwarf2_has_info): Use get_dwarf2_per_objfile and
12708 set_dwarf2_per_objfile.
12709 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12710 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12711 context, adjust calls.
12712 (dw2_instantiate_symtab): Likewise.
12713 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12714 (dw2_get_cu): Likewise.
12715 (create_cu_from_index_list): Change objfile parameter to
12716 dwarf2_per_objfile.
12717 (create_cus_from_index_list): Get dwarf2_per_objfile from
12718 context, adjust calls.
12719 (create_cus_from_index): Likewise.
12720 (create_signatured_type_table_from_index): Change objfile
12721 parameter to dwarf2_per_objfile.
12722 (create_signatured_type_table_from_debug_names): Change objfile
12723 parameter to dwarf2_per_objfile.
12724 (create_addrmap_from_index): Likewise.
12725 (create_addrmap_from_aranges): Likewise.
12726 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12727 (dw2_setup): Remove.
12728 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12729 context.
12730 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12731 get_dwarf2_per_objfile.
12732 (dw2_forget_cached_source_info): Likewise.
12733 (dw2_map_symtabs_matching_filename): Likewise.
12734 (struct dw2_symtab_iterator) <index>: Remove.
12735 <dwarf2_per_objfile>: New field.
12736 (dw2_symtab_iter_init): Replace index parameter with
12737 dwarf2_per_objfile.
12738 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12739 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12740 (dw2_print_stats): Likewise.
12741 (dw2_dump): Likewise.
12742 (dw2_expand_symtabs_for_function): Likewise.
12743 (dw2_expand_all_symtabs): Likewise.
12744 (dw2_expand_symtabs_with_fullname): Likewise.
12745 (dw2_expand_marked_cus): Replace index and objfile parameters
12746 with dwarf2_per_objfile.
12747 (dw_expand_symtabs_matching_file_matcher): Add
12748 dwarf2_per_objfile parameter and adjust calls.
12749 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12750 adjust calls.
12751 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12752 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12753 adjust calls.
12754 (create_cus_from_debug_names_list): Replace objfile parameter
12755 with dwarf2_per_objfile and adjust calls.
12756 (create_cus_from_debug_names): Likewise.
12757 (dwarf2_read_debug_names): Likewise.
12758 (mapped_debug_names::namei_to_name): Adjust call.
12759 (dw2_debug_names_iterator::next): Likewise.
12760 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12761 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12762 (dw2_debug_names_dump): Likewise.
12763 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12764 (dw2_debug_names_expand_symtabs_matching): Likewise.
12765 (dwarf2_initialize_objfile): Likewise.
12766 (dwarf2_build_psymtabs): Likewise.
12767 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12768 this_cu.
12769 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12770 (read_and_check_comp_unit_head): Likewise.
12771 (read_abbrev_offset): Likewise.
12772 (create_debug_type_hash_table): Likewise.
12773 (create_debug_types_hash_table): Likewise.
12774 (create_all_type_units): Replace objfile parameter with
12775 dwarf2_per_objfile.
12776 (add_type_unit): Add dwarf2_per_objfile parameter.
12777 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12778 with dwarf2_per_objfile.
12779 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12780 (lookup_dwp_signatured_type): Likewise.
12781 (lookup_signatured_type): Likewise.
12782 (read_cutu_die_from_dwo): Likewise.
12783 (init_tu_and_read_dwo_dies): Likewise.
12784 (init_cutu_and_read_dies): Likewise.
12785 (init_cutu_and_read_dies_no_follow): Likewise.
12786 (allocate_type_unit_groups_table): Add objfile parameter.
12787 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12788 (get_type_unit_group): Likewise.
12789 (process_psymtab_comp_unit): Update call.
12790 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12791 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12792 (print_tu_stats): Likewise.
12793 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12794 in void* parameter.
12795 (build_type_psymtabs): Change objfile parameter to
12796 dwarf2_per_objfile.
12797 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12798 passed in void* parameter.
12799 (process_skeletonless_type_units): Change objfile parameter to
12800 dwarf2_per_objfile.
12801 (set_partial_user): Likewise.
12802 (dwarf2_build_psymtabs_hard): Likewise.
12803 (read_comp_units_from_section): Likewise.
12804 (create_all_comp_units): Likewise.
12805 (scan_partial_symbols): Update calls.
12806 (add_partial_symbol): Likewise.
12807 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12808 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12809 (process_queue): Add dwarf2_per_objfile parameter.
12810 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12811 (compute_compunit_symtab_includes): Likewise.
12812 (process_cu_includes): Add dwarf2_per_objfile parameter.
12813 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12814 (process_full_type_unit): Likewise.
12815 (process_imported_unit_die): Update call.
12816 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12817 (read_file_scope): Likewise.
12818 (allocate_dwo_file_hash_table): Add objfile parameter.
12819 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12820 (create_cus_hash_table): Likewise.
12821 (create_dwp_hash_table): Likewise.
12822 (create_dwo_unit_in_dwp_v1): Likewise.
12823 (create_dwp_v2_section): Likewise.
12824 (create_dwo_unit_in_dwp_v2): Likewise.
12825 (lookup_dwo_unit_in_dwp): Likewise.
12826 (try_open_dwop_file): Likewise.
12827 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12828 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12829 cleanup to include a reference to dwarf2_per_objfile.
12830 (open_dwp_file): Add dwarf2_per_objfile parameter.
12831 (open_and_init_dwp_file): Likewise.
12832 (get_dwp_file): Likewise.
12833 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12834 (queue_and_load_all_dwo_tus): Update call.
12835 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12836 data.
12837 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12838 (dwarf2_ranges_process): Likewise.
12839 (dwarf2_get_pc_bounds): Likewise.
12840 (mark_common_block_symbol_computed): Likewise.
12841 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12842 (dwarf2_read_abbrevs): Update call.
12843 (read_partial_die): Use dwarf2_per_objfile from cu.
12844 (find_partial_die): Likewise.
12845 (fixup_partial_die): Likewise.
12846 (read_attribute_value): Likewise.
12847 (read_indirect_string_at_offset_from): Add objfile parameter.
12848 (read_indirect_string_at_offset): Add dwarf2_per_objfile
12849 parameter.
12850 (read_indirect_string_from_dwz): Add objfile parameter.
12851 (read_indirect_string): Add objfile parameter.
12852 (read_addr_index_1): Add dwarf2_per_objfile parameter.
12853 (read_addr_index): Use dwarf2_per_objfile from cu.
12854 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12855 call dw2_setup.
12856 (read_str_index): Use dwarf2_per_objfile from cu.
12857 (get_debug_line_section): Likewise.
12858 (read_formatted_entries): Add dwarf2_per_objfile parameter.
12859 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
12860 (new_symbol_full): Use dwarf2_per_objfile from cu.
12861 (build_error_marker_type): Likewise.
12862 (lookup_die_type): Likewise.
12863 (determine_prefix): Likewise.
12864 (follow_die_offset): Likewise.
12865 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
12866 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
12867 (dwarf2_fetch_die_type_sect_off): Likewise.
12868 (dwarf2_get_die_type): Likewise.
12869 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
12870 (get_signatured_type): Likewise.
12871 (get_DW_AT_signature_type): Likewise.
12872 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
12873 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
12874 (cu_debug_loc_section): Likewise.
12875 (fill_in_loclist_baton): Likewise.
12876 (dwarf2_symbol_mark_computed): Likewise.
12877 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12878 dwarf2_per_objfile.
12879 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
12880 parameter.
12881 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12882 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
12883 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
12884 (set_die_type): Use dwarf2_free_objfile from cu.
12885 (get_die_type_at_offset): Likewise.
12886 (dwarf2_per_objfile_free): Don't assign global variable.
12887 (debug_names) <constructor>: Add dwarf2_per_objfile
12888 parameter, update m_debugstrlookup construction.
12889 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
12890 parameter.
12891 <m_dwarf2_per_objfile>: New field.
12892 <lookup>: Use m_dwarf2_per_objfile.
12893 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
12894 (psyms_seen_size): Likewise.
12895 (write_gdbindex): Replace objfile parameter with
12896 dwarf2_per_objfile.
12897 (write_debug_names): Likewise.
12898 (write_psymtabs_to_index): Likewise.
12899 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
12900 calls.
12901
12902 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12903
12904 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
12905 <dwarf2_per_objfile>: New field.
12906 (struct dwarf2_per_cu_data) <objfile>: Remove.
12907 <dwarf2_per_objfile>: New field.
12908 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
12909 of objfile.
12910 (create_signatured_type_table_from_index): Likewise.
12911 (create_debug_type_hash_table): Likewise.
12912 (fill_in_sig_entry_from_dwo_entry): Likewise.
12913 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
12914 (create_type_unit_group): Assign dwarf2_per_objfile instead of
12915 objfile.
12916 (create_partial_symtab): Access objfile through
12917 dwarf2_per_objfile.
12918 (process_psymtab_comp_unit_reader): Likewise.
12919 (read_comp_units_from_section): Likewise.
12920 (scan_partial_symbols): Likewise.
12921 (add_partial_symbol): Likewise.
12922 (add_partial_subprogram): Likewise.
12923 (peek_die_abbrev): Likewise.
12924 (fixup_go_packaging): Likewise.
12925 (process_full_comp_unit): Likewise.
12926 (process_full_type_unit): Likewise.
12927 (process_imported_unit_die): Likewise.
12928 (dwarf2_compute_name): Likewise.
12929 (dwarf2_physname): Likewise.
12930 (read_import_statement): Likewise.
12931 (create_cus_hash_table): Assign dwarf2_physname instead of
12932 objfile.
12933 (read_func_scope): Access objfile through dwarf2_per_objfile.
12934 (read_lexical_block_scope): Likewise.
12935 (read_call_site_scope): Likewise.
12936 (read_variable): Likewise.
12937 (dwarf2_rnglists_process): Likewise.
12938 (dwarf2_ranges_process): Likewise.
12939 (dwarf2_ranges_read): Likewise.
12940 (dwarf2_record_block_ranges): Likewise.
12941 (dwarf2_add_field): Likewise.
12942 (dwarf2_add_member_fn): Likewise.
12943 (read_structure_type): Likewise.
12944 (process_structure_scope): Likewise.
12945 (read_enumeration_type): Likewise.
12946 (read_array_type): Likewise.
12947 (read_common_block): Likewise.
12948 (read_namespace_type): Likewise.
12949 (read_namespace): Likewise.
12950 (read_module_type): Likewise.
12951 (read_tag_pointer_type): Likewise.
12952 (read_tag_ptr_to_member_type): Likewise.
12953 (read_tag_string_type): Likewise.
12954 (read_subroutine_type): Likewise.
12955 (read_typedef): Likewise.
12956 (read_base_type): Likewise.
12957 (attr_to_dynamic_prop): Likewise.
12958 (read_subrange_type): Likewise.
12959 (read_unspecified_type): Likewise.
12960 (load_partial_dies): Likewise.
12961 (read_partial_die): Likewise.
12962 (find_partial_die): Likewise.
12963 (guess_partial_die_structure_name): Likewise.
12964 (fixup_partial_die): Likewise.
12965 (read_attribute_value): Likewise.
12966 (read_addr_index_from_leb128): Likewise.
12967 (dwarf2_read_addr_index): Likewise.
12968 (dwarf2_string_attr): Likewise.
12969 (lnp_state_machine::check_line_address): Likewise.
12970 (dwarf_decode_lines_1): Likewise.
12971 (dwarf_decode_lines): Likewise.
12972 (dwarf2_start_symtab): Likewise.
12973 (var_decode_location): Likewise.
12974 (new_symbol_full): Likewise.
12975 (dwarf2_const_value_data): Likewise.
12976 (dwarf2_const_value_attr): Likewise.
12977 (dwarf2_const_value): Likewise.
12978 (die_type): Likewise.
12979 (die_containing_type): Likewise.
12980 (lookup_die_type): Likewise.
12981 (guess_full_die_structure_name): Likewise.
12982 (anonymous_struct_prefix): Likewise.
12983 (dwarf2_name): Likewise.
12984 (follow_die_ref_or_sig): Likewise.
12985 (follow_die_offset): Likewise.
12986 (follow_die_ref): Likewise.
12987 (dwarf2_fetch_die_loc_sect_off): Likewise.
12988 (dwarf2_fetch_constant_bytes): Likewise.
12989 (dwarf2_fetch_die_type_sect_off): Likewise.
12990 (dwarf2_get_die_type): Likewise.
12991 (follow_die_sig): Likewise.
12992 (decode_locdesc): Likewise.
12993 (dwarf2_per_cu_objfile): Likewise.
12994 (dwarf2_per_cu_text_offset): Likewise.
12995 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
12996 objfile.
12997 (set_die_type): Access objfile through
12998 dwarf2_per_objfile.
12999
13000 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13001
13002 * valprint.c (converted_character_d): Remove typedef.
13003 (DEF_VEC_O (converted_character_d)): Remove.
13004 (count_next_character): Use std::vector.
13005 (print_converted_chars_to_obstack): Likewise.
13006 (generic_printstr): Likewise.
13007
13008 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13009
13010 * xml-support.h (struct gdb_xml_value): Add constructor.
13011 <value>: Change type to unique_xmalloc_ptr.
13012 (gdb_xml_value_s): Remove typedef.
13013 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13014 (gdb_xml_element_start_handler): Change parameter type to
13015 std::vector.
13016 (xml_find_attribute): Likewise.
13017 * xml-support.c (xml_find_attribute): Change parameter type to
13018 std::vector and adjust.
13019 (gdb_xml_values_cleanup): Remove.
13020 (gdb_xml_parser::start_element): Adjust to std::vector.
13021 (xinclude_start_include): Change paraeter type to std::vector
13022 and adjust.
13023 * btrace.c (check_xml_btrace_version): Likewise.
13024 (parse_xml_btrace_block): Likewise.
13025 (parse_xml_btrace_pt_config_cpu): Likewise.
13026 (parse_xml_btrace_pt): Likewise.
13027 (parse_xml_btrace_conf_bts): Likewise.
13028 (parse_xml_btrace_conf_pt): Likewise.
13029 * memory-map.c (memory_map_start_memory): Likewise.
13030 (memory_map_start_property): Likewise.
13031 * osdata.c (osdata_start_osdata): Likewise.
13032 (osdata_start_item): Likewise.
13033 (osdata_start_column): Likewise.
13034 * remote.c (start_thread): Likewise.
13035 * solib-aix.c (library_list_start_library): Likewise.
13036 (library_list_start_list): Likewise.
13037 * solib-svr4.c (library_list_start_library): Likewise.
13038 (svr4_library_list_start_list): Likewise.
13039 * solib-target.c (library_list_start_segment): Likewise.
13040 (library_list_start_section): Likewise.
13041 (library_list_start_library): Likewise.
13042 (library_list_start_list): Likewise.
13043 * tracepoint.c (traceframe_info_start_memory): Likewise.
13044 (traceframe_info_start_tvar): Likewise.
13045 * xml-syscall.c (syscall_start_syscall): Likewise.
13046 * xml-tdesc.c (tdesc_start_target): Likewise.
13047 (tdesc_start_feature): Likewise.
13048 (tdesc_start_reg): Likewise.
13049 (tdesc_start_union): Likewise.
13050 (tdesc_start_struct): Likewise.
13051 (tdesc_start_flags): Likewise.
13052 (tdesc_start_enum): Likewise.
13053 (tdesc_start_field): Likewise.
13054 (tdesc_start_enum_value): Likewise.
13055 (tdesc_start_vector): Likewise.
13056
13057 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13058
13059 * extension.h (struct xmethod_worker) <clone>: Remove.
13060 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13061 Remove.
13062 (python_xmethod_worker::clone): Remove.
13063 * valops.c (find_overload_match): Use std::move instead of
13064 clone.
13065
13066 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13067
13068 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13069 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13070 <free_xmethod_worker_data>: Remove.
13071 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13072 <get_xmethod_arg_types>: Remove.
13073 <get_xmethod_result_type>: Remove.
13074 <invoke_xmethod>: Remove.
13075 * extension.c (new_xmethod_worker): Remove.
13076 (clone_xmethod_worker): Remove.
13077 (get_matching_xmethod_workers): Return void, pass std::vector by
13078 pointer.
13079 (get_xmethod_arg_types): Rename to...
13080 (xmethod_worker::get_arg_types): ... this, and adjust.
13081 (get_xmethod_result_type): Rename to...
13082 (xmethod_worker::get_result_type): ... this, and adjust.
13083 (invoke_xmethod): Remove.
13084 (free_xmethod_worker): Remove.
13085 (free_xmethod_worker_vec): Remove.
13086 * extension.h (enum ext_lang_rc): Move here from
13087 extension-priv.h.
13088 (struct xmethod_worker): Add constructor and destructor.
13089 <data>: Remove.
13090 <value>: Remove.
13091 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13092 virtual pure methods.
13093 <get_arg_types, get_result_type>: New methods.
13094 (xmethod_worker_ptr): Remove typedef.
13095 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13096 (xmethod_worker_vec): Remove typedef.
13097 (xmethod_worker_up): New typedef.
13098 (invoke_xmethod): Remove.
13099 (clone_xmethod_worker): Remove.
13100 (free_xmethod_worker): Remove.
13101 (free_xmethod_worker_vec): Remove.
13102 (get_xmethod_arg_types): Remove.
13103 (get_xmethod_result_type): Remove.
13104 * valops.c (find_method_list): Use std::vector, don't use
13105 intermediate vector.
13106 (value_find_oload_method_list): Use std::vector.
13107 (find_overload_match): Use std::vector.
13108 (find_oload_champ): Use std::vector.
13109 * value.c (value_free): Use operator delete.
13110 (value_of_xmethod): Rename to...
13111 (value_from_xmethod): ... this. Don't assign
13112 xmethod_worker::value, take rvalue-reference.
13113 (result_type_of_xmethod): Adjust.
13114 (call_xmethod): Adjust.
13115 * value.h: Include extension.h.
13116 (struct xmethod_worker): Don't forward-declare.
13117 (value_of_xmethod): Rename to...
13118 (value_from_xmethod): ... this, take rvalue-reference.
13119 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13120 (struct python_xmethod_worker): ... this, add constructor and
13121 destructor.
13122 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13123 (gdbpy_free_xmethod_worker_data): Rename to...
13124 (python_xmethod_worker::~python_xmethod_worker): ... this and
13125 adjust.
13126 (gdbpy_clone_xmethod_worker_data): Rename to...
13127 (python_xmethod_worker::clone): ... this and adjust.
13128 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13129 temporary vector.
13130 (gdbpy_get_xmethod_arg_types): Rename to...
13131 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13132 (gdbpy_get_xmethod_result_type): Rename to...
13133 (python_xmethod_worker::do_get_result_type): ... this and
13134 adjust.
13135 (gdbpy_invoke_xmethod): Rename to...
13136 (python_xmethod_worker::invoke): ... this and adjust.
13137 (new_python_xmethod_worker): Rename to...
13138 (python_xmethod_worker::python_xmethod_worker): ... this and
13139 adjust.
13140 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13141 Remove.
13142 (gdbpy_free_xmethod_worker_data): Remove.
13143 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13144 (gdbpy_get_xmethod_arg_types): Remove.
13145 (gdbpy_get_xmethod_result_type): Remove.
13146 (gdbpy_invoke_xmethod): Remove.
13147 * python/python.c (python_extension_ops): Remove obsolete
13148 callbacks.
13149
13150 2018-01-05 Pedro Alves <palves@redhat.com>
13151
13152 PR gdb/18653
13153 * common/signals-state-save-restore.c
13154 (save_original_signals_state): New parameter 'quiet'. Warn if we
13155 find a custom handler preinstalled, instead of internal erroring.
13156 But only warn if !quiet.
13157 * common/signals-state-save-restore.h
13158 (save_original_signals_state): New parameter 'quiet'.
13159 * main.c (captured_main_1): Move save_original_signals_state call
13160 after option handling, and pass QUIET.
13161
13162 2018-01-05 Pedro Alves <palves@redhat.com>
13163
13164 * spu-tdep.c (spu_catch_start): Pass
13165 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13166
13167 2018-01-05 Pedro Alves <palves@redhat.com>
13168
13169 PR gdb/22670
13170 * ada-lang.c (literal_symbol_name_matcher): New function.
13171 (ada_get_symbol_name_matcher): Use it for
13172 symbol_name_match_type::SEARCH_NAME.
13173 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13174 it down instead of assuming symbol_name_match_type::FULL.
13175 * block.h (block_lookup_symbol): New parameter 'match_type'.
13176 * c-valprint.c (print_unpacked_pointer): Use
13177 lookup_symbol_search_name instead of lookup_symbol.
13178 * compile/compile-object-load.c (get_out_value_type): Pass down
13179 symbol_name_match_type::SEARCH_NAME.
13180 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13181 symbol_name_match_type::FULL.
13182 * cp-support.c (cp_get_symbol_name_matcher): Handle
13183 symbol_name_match_type::SEARCH_NAME.
13184 * infrun.c (insert_exception_resume_breakpoint): Use
13185 lookup_symbol_search_name.
13186 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13187 * psymtab.c (maintenance_check_psymtabs): Use
13188 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13189 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13190 SYMBOL_SEARCH_NAME.
13191 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13192 if symbol_name_match_type::SEARCH_NAME.
13193 (lookup_symbol_in_language): Pass down
13194 symbol_name_match_type::FULL.
13195 (lookup_symbol_search_name): New.
13196 (lookup_language_this): Pass down
13197 symbol_name_match_type::SEARCH_NAME.
13198 (lookup_symbol_aux, lookup_local_symbol): New parameter
13199 'match_type'. Pass it down.
13200 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13201 (lookup_symbol_search_name): New declaration.
13202 (lookup_symbol_in_block): New 'match_type' parameter.
13203
13204 2018-01-05 Pedro Alves <palves@redhat.com>
13205
13206 PR gdb/22670
13207 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13208 ada_lookup_symbol.
13209 (ada_lookup_symbol): Reimplement in terms of
13210 ada_lookup_symbol_list, bits factored out from
13211 ada_lookup_encoded_symbol.
13212
13213 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13214
13215 * ada-exp.y (write_object_renaming): When subscripting an array
13216 using a symbol as the index, pass the block in call to
13217 ada_lookup_encoded_symbol when looking that symbol up.
13218
13219 2018-01-05 Jerome Guitton <guitton@adacore.com>
13220
13221 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13222 TYPE_INDEX_TYPE.
13223
13224 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13225
13226 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13227 the case where VALUE_LVAL (val0) is not lval_memory.
13228
13229 2018-01-05 Xavier Roirand <roirand@adacore.com>
13230
13231 * ada-valprint.c (print_optional_low_bound): Handle
13232 character-indexed array printing like boolean-indexed array
13233 printing.
13234
13235 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13236
13237 * NEWS: Create a new section for the next release branch.
13238 Rename the section of the current branch, now that it has
13239 been cut.
13240
13241 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13242
13243 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13244 * version.in: Bump version to 8.1.50.DATE-git.
13245
13246 2018-01-03 Xavier Roirand <roirand@adacore.com>
13247
13248 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13249 Add field.
13250 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13251 Add field.
13252 (default_exception_support_info) <catch_handlers_sym>: Add field.
13253 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13254 (ada_exception_name_addr_1): Add "catch handlers" handling.
13255 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13256 Update all callers.
13257 (create_excep_cond_exprs) <ex>: Add parameter.
13258 (re_set_exception): Update create_excep_cond_exprs call.
13259 (print_it_exception, print_one_exception, print_mention_exception)
13260 (print_recreate_exception): Add "catch handler" handling.
13261 (allocate_location_catch_handlers, re_set_catch_handlers)
13262 (check_status_catch_handlers, print_it_catch_handlers)
13263 (print_one_catch_handlers, print_mention_catch_handlers)
13264 (print_recreate_catch_handlers): New function.
13265 (catch_handlers_breakpoint_ops): New variable.
13266 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13267 Add parameter. Add "catch handler" handling.
13268 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13269 Add "catch handler" handling.
13270 (ada_exception_catchpoint_cond_string): Add "catch handler"
13271 handling.
13272 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13273 call.
13274 (catch_ada_handlers_command): New function.
13275 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13276 operations structure.
13277 (_initialize_ada_language): Add "catch handlers" command entry.
13278 * NEWS: Document "catch handlers" feature.
13279
13280 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13281
13282 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13283 account when creating the array type of the slice.
13284 (ada_value_slice): Likewise.
13285
13286 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13287
13288 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13289 New enum value.
13290 (create_array_type_with_stride): Add byte_stride_prop parameter.
13291 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13292 New parameter. Update all callers in this file.
13293 (array_type_has_dynamic_stride): New function.
13294 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13295 of arrays with dynamic byte strides.
13296 * dwarf2read.c (read_array_type): Add support for dynamic
13297 DW_AT_byte_stride attributes.
13298
13299 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13300
13301 * dwarf2read.c (read_unspecified_type): Treat
13302 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13303
13304 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13305
13306 Update copyright year range in all GDB files.
13307
13308 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13309
13310 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13311 and gdb/testsuite/gdb.base/step-line.c.
13312
13313 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13314
13315 * copyright.py (main): Dump the contents of
13316 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13317 even if BY_HAND is empty.
13318
13319 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13320
13321 * top.c (print_gdb_version): Update Copyright year in version
13322 message.
13323
13324 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13325
13326 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13327
13328 For older changes see ChangeLog-2017.
13329 \f
13330 Local Variables:
13331 mode: change-log
13332 left-margin: 8
13333 fill-column: 74
13334 version-control: never
13335 coding: utf-8
13336 End:
This page took 0.365142 seconds and 4 git commands to generate.