Remove an unnecessary block in call_function_by_hand_dummy
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-09-14 Tom Tromey <tom@tromey.com>
2
3 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
4 block.
5
6 2018-09-14 Tom Tromey <tom@tromey.com>
7
8 * nat/fork-inferior.c (get_startup_shell): Remove "static".
9
10 2018-09-13 Tom Tromey <tom@tromey.com>
11
12 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
13 static.
14
15 2018-09-13 Tom Tromey <tom@tromey.com>
16
17 * exec.c (try_open_exec_file): Use std::string.
18
19 2018-09-13 Tom Tromey <tom@tromey.com>
20
21 * utils.h (gdb_bfd_errmsg): Return std::string.
22 * exec.c (exec_file_attach): Update.
23 * compile/compile-object-load.c (compile_object_load): Update.
24 * utils.c (gdb_bfd_errmsg): Return std::string.
25
26 2018-09-13 Tom Tromey <tom@tromey.com>
27
28 * procfs.c (struct procinfo_deleter): New.
29 (procinfo_up): New typedef.
30 (do_destroy_procinfo_cleanup): Remove.
31 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
32
33 2018-09-13 Tom Tromey <tom@tromey.com>
34
35 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
36
37 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
38 2018-09-13 Tom Tromey <tom@tromey.com>
39
40 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
41 (pspy_get_objfiles): New function.
42 (progspace_object_methods): New.
43 (pspace_object_type): Add tp_methods callback.
44 * python/python-internal.h (build_objfiles_list): New
45 declaration.
46 * python/python.c (build_objfiles_list): New function.
47 (gdbpy_objfiles): Implement using build_objfiles_list.
48 * NEWS: Mention the Progspace.objfiles method.
49
50 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
51
52 * python/py-inferior.c (infpy_get_progspace): New function.
53 (inferior_object_getset): Add progspace property.
54 * NEWS: Mention the new property.
55
56 2018-09-13 Tom Tromey <tom@tromey.com>
57
58 PR rust/23650:
59 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
60
61 2018-09-13 Tom Tromey <tom@tromey.com>
62
63 PR rust/23626:
64 * rust-lang.c (rust_enum_variant): Now static.
65 (rust_empty_enum_p): New function.
66 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
67 Handle empty enum.
68
69 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
70
71 * python/py-inferior.c (infpy_repr): New.
72 (inferior_object_type): Register infpy_repr.
73 * python/py-objfile.c (objfpy_repr): New.
74 (objfile_object_type): Register objfpy_repr.
75
76 2018-09-12 John Baldwin <jhb@FreeBSD.org>
77
78 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
79
80 2018-09-12 John Baldwin <jhb@FreeBSD.org>
81
82 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
83 typo.
84
85 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
86
87 * common/common-utils.c: Don't include '<sys/stat.h>'.
88 (is_regular_file): Move to...
89 * common/filestuff.c (is_regular_file): ... here.
90 * common/common-utils.h (is_regular_file): Move to...
91 * common/filestuff.h (is_regular_file): ... here.
92
93 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
94
95 * skip.c (debug_skip): New variable.
96 (skiplist_entry::do_skip_file_p): Add debug output.
97 (skiplist_entry::do_skip_gfile_p): Likewise.
98 (skiplist_entry::skip_function_p): Likewise.
99 (_initialize_step_skip): Create debug command.
100 * NEWS: Mention set/show debug skip.
101
102 2018-09-11 Xavier Roirand <roirand@adacore.com>
103
104 * darwin-nat.c (should_disable_startup_with_shell):
105 New function.
106 (darwin_nat_target::create_inferior): Add call.
107
108 2018-09-11 Xavier Roirand <roirand@adacore.com>
109
110 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
111 inf_port, msg_state>: Initialize.
112 (struct darwin_thread_info) <signaled, single_step>: Change
113 type and initialize.
114 (struct darwin_thread_info) <event>: Initialize.
115
116 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
117
118 PR gdb/23555
119 PR gdb/23558
120 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
121 guesses.
122
123 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
124
125 Revert:
126 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
127
128 PR gdb/23555
129 PR gdb/23558
130 * gnulib/aclocal.m4: Regenerate.
131 * gnulib/config.in: Regenerate.
132 * gnulib/configure: Regenerate.
133 * gnulib/import/Makefile.am: Update.
134 * gnulib/import/Makefile.in: Update.
135 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
136 * gnulib/import/_Noreturn.h: ... this.
137 * gnulib/import/alloca.in.h: Update.
138 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
139 * gnulib/import/arg-nonnull.h: ... this.
140 * gnulib/import/assure.h: Update.
141 * gnulib/import/at-func.c: Update.
142 * gnulib/import/basename-lgpl.c: Update.
143 * gnulib/import/extra/snippet/c++defs.h: Rename to...
144 * gnulib/import/c++defs.h: ... this.
145 * gnulib/import/canonicalize-lgpl.c: Update.
146 * gnulib/import/cdefs.h: Update.
147 * gnulib/import/chdir-long.c: Update.
148 * gnulib/import/chdir-long.h: Update.
149 * gnulib/import/cloexec.c: Update.
150 * gnulib/import/cloexec.h: Update.
151 * gnulib/import/close.c: Update.
152 * gnulib/import/closedir.c: Update.
153 * gnulib/import/config.charset: Update.
154 * gnulib/import/dirent-private.h: Update.
155 * gnulib/import/dirent.in.h: Update.
156 * gnulib/import/dirfd.c: Update.
157 * gnulib/import/dirname-lgpl.c: Update.
158 * gnulib/import/dirname.h: Update.
159 * gnulib/import/dosname.h: Update.
160 * gnulib/import/dup-safer-flag.c: Update.
161 * gnulib/import/dup-safer.c: Update.
162 * gnulib/import/dup.c: Update.
163 * gnulib/import/dup2.c: Update.
164 * gnulib/import/errno.in.h: Update.
165 * gnulib/import/error.c: Update.
166 * gnulib/import/error.h: Update.
167 * gnulib/import/exitfail.c: Update.
168 * gnulib/import/exitfail.h: Update.
169 * gnulib/import/extra/update-copyright: Update.
170 * gnulib/import/fchdir.c: Update.
171 * gnulib/import/fcntl.c: Update.
172 * gnulib/import/fcntl.in.h: Update.
173 * gnulib/import/fd-hook.c: Update.
174 * gnulib/import/fd-hook.h: Update.
175 * gnulib/import/fd-safer-flag.c: Update.
176 * gnulib/import/fd-safer.c: Update.
177 * gnulib/import/fdopendir.c: Update.
178 * gnulib/import/filename.h: Update.
179 * gnulib/import/filenamecat-lgpl.c: Update.
180 * gnulib/import/filenamecat.h: Update.
181 * gnulib/import/flexmember.h: Update.
182 * gnulib/import/float+.h: Update.
183 * gnulib/import/float.c: Update.
184 * gnulib/import/float.in.h: Update.
185 * gnulib/import/fnmatch.c: Update.
186 * gnulib/import/fnmatch.in.h: Update.
187 * gnulib/import/fnmatch_loop.c: Update.
188 * gnulib/import/fpucw.h: Update.
189 * gnulib/import/frexp.c: Update.
190 * gnulib/import/frexpl.c: Update.
191 * gnulib/import/fstat.c: Update.
192 * gnulib/import/fstatat.c: Update.
193 * gnulib/import/getcwd-lgpl.c: Update.
194 * gnulib/import/getcwd.c: Update.
195 * gnulib/import/getdtablesize.c: Update.
196 * gnulib/import/getlogin_r.c: Update.
197 * gnulib/import/getprogname.c: Update.
198 * gnulib/import/getprogname.h: Update.
199 * gnulib/import/gettext.h: Update.
200 * gnulib/import/gettimeofday.c: Update.
201 * gnulib/import/glob-libc.h: Update.
202 * gnulib/import/glob.c: Update.
203 * gnulib/import/glob.in.h: Update.
204 * gnulib/import/glob_internal.h: Update.
205 * gnulib/import/glob_pattern_p.c: Update.
206 * gnulib/import/globfree.c: Update.
207 * gnulib/import/hard-locale.c: Update.
208 * gnulib/import/hard-locale.h: Update.
209 * gnulib/import/intprops.h: Update.
210 * gnulib/import/inttypes.in.h: Update.
211 * gnulib/import/isnan.c: Update.
212 * gnulib/import/isnand-nolibm.h: Update.
213 * gnulib/import/isnand.c: Update.
214 * gnulib/import/isnanl-nolibm.h: Update.
215 * gnulib/import/isnanl.c: Update.
216 * gnulib/import/itold.c: Update.
217 * gnulib/import/libc-config.h: Update.
218 * gnulib/import/limits.in.h: Update.
219 * gnulib/import/localcharset.c: Update.
220 * gnulib/import/localcharset.h: Update.
221 * gnulib/import/localtime-buffer.c: Update.
222 * gnulib/import/localtime-buffer.h: Update.
223 * gnulib/import/lstat.c: Update.
224 * gnulib/import/m4/00gnulib.m4: Update.
225 * gnulib/import/m4/__inline.m4: Update.
226 * gnulib/import/m4/absolute-header.m4: Update.
227 * gnulib/import/m4/alloca.m4: Update.
228 * gnulib/import/m4/builtin-expect.m4: Update.
229 * gnulib/import/m4/canonicalize.m4: Update.
230 * gnulib/import/m4/chdir-long.m4: Update.
231 * gnulib/import/m4/close.m4: Update.
232 * gnulib/import/m4/closedir.m4: Update.
233 * gnulib/import/m4/configmake.m4: Update.
234 * gnulib/import/m4/d-ino.m4: Update.
235 * gnulib/import/m4/d-type.m4: Update.
236 * gnulib/import/m4/dirent_h.m4: Update.
237 * gnulib/import/m4/dirfd.m4: Update.
238 * gnulib/import/m4/dirname.m4: Update.
239 * gnulib/import/m4/double-slash-root.m4: Update.
240 * gnulib/import/m4/dup.m4: Update.
241 * gnulib/import/m4/dup2.m4: Update.
242 * gnulib/import/m4/eealloc.m4: Update.
243 * gnulib/import/m4/environ.m4: Update.
244 * gnulib/import/m4/errno_h.m4: Update.
245 * gnulib/import/m4/error.m4: Update.
246 * gnulib/import/m4/exponentd.m4: Update.
247 * gnulib/import/m4/exponentl.m4: Update.
248 * gnulib/import/m4/extensions.m4: Update.
249 * gnulib/import/m4/extern-inline.m4: Update.
250 * gnulib/import/m4/fchdir.m4: Update.
251 * gnulib/import/m4/fcntl-o.m4: Update.
252 * gnulib/import/m4/fcntl.m4: Update.
253 * gnulib/import/m4/fcntl_h.m4: Update.
254 * gnulib/import/m4/fdopendir.m4: Update.
255 * gnulib/import/m4/filenamecat.m4: Update.
256 * gnulib/import/m4/flexmember.m4: Update.
257 * gnulib/import/m4/float_h.m4: Update.
258 * gnulib/import/m4/fnmatch.m4: Update.
259 * gnulib/import/m4/fnmatch_h.m4: Update.
260 * gnulib/import/m4/fpieee.m4: Update.
261 * gnulib/import/m4/frexp.m4: Update.
262 * gnulib/import/m4/frexpl.m4: Update.
263 * gnulib/import/m4/fstat.m4: Update.
264 * gnulib/import/m4/fstatat.m4: Update.
265 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
266 * gnulib/import/m4/getcwd-path-max.m4: Update.
267 * gnulib/import/m4/getcwd.m4: Update.
268 * gnulib/import/m4/getdtablesize.m4: Update.
269 * gnulib/import/m4/getlogin.m4: Update.
270 * gnulib/import/m4/getlogin_r.m4: Update.
271 * gnulib/import/m4/getpagesize.m4: Update.
272 * gnulib/import/m4/getprogname.m4: Update.
273 * gnulib/import/m4/gettimeofday.m4: Update.
274 * gnulib/import/m4/glibc21.m4: Update.
275 * gnulib/import/m4/glob.m4: Update.
276 * gnulib/import/m4/glob_h.m4: Update.
277 * gnulib/import/m4/gnulib-cache.m4: Update.
278 * gnulib/import/m4/gnulib-common.m4: Update.
279 * gnulib/import/m4/gnulib-comp.m4: Update.
280 * gnulib/import/m4/gnulib-tool.m4: Update.
281 * gnulib/import/m4/hard-locale.m4: Update.
282 * gnulib/import/m4/include_next.m4: Update.
283 * gnulib/import/m4/inttypes-pri.m4: Update.
284 * gnulib/import/m4/inttypes.m4: Update.
285 * gnulib/import/m4/isnand.m4: Update.
286 * gnulib/import/m4/isnanl.m4: Update.
287 * gnulib/import/m4/largefile.m4: Update.
288 * gnulib/import/m4/limits-h.m4: Update.
289 * gnulib/import/m4/localcharset.m4: Update.
290 * gnulib/import/m4/locale-fr.m4: Update.
291 * gnulib/import/m4/locale-ja.m4: Update.
292 * gnulib/import/m4/locale-zh.m4: Update.
293 * gnulib/import/m4/localtime-buffer.m4: Update.
294 * gnulib/import/m4/longlong.m4: Update.
295 * gnulib/import/m4/lstat.m4: Update.
296 * gnulib/import/m4/malloc.m4: Update.
297 * gnulib/import/m4/malloca.m4: Update.
298 * gnulib/import/m4/math_h.m4: Update.
299 * gnulib/import/m4/mbrtowc.m4: Update.
300 * gnulib/import/m4/mbsinit.m4: Update.
301 * gnulib/import/m4/mbsrtowcs.m4: Update.
302 * gnulib/import/m4/mbstate_t.m4: Update.
303 * gnulib/import/m4/memchr.m4: Update.
304 * gnulib/import/m4/memmem.m4: Update.
305 * gnulib/import/m4/mempcpy.m4: Update.
306 * gnulib/import/m4/memrchr.m4: Update.
307 * gnulib/import/m4/mkdir.m4: Update.
308 * gnulib/import/m4/mkstemp.m4: Update.
309 * gnulib/import/m4/mmap-anon.m4: Update.
310 * gnulib/import/m4/mode_t.m4: Update.
311 * gnulib/import/m4/msvc-inval.m4: Update.
312 * gnulib/import/m4/msvc-nothrow.m4: Update.
313 * gnulib/import/m4/multiarch.m4: Update.
314 * gnulib/import/m4/nocrash.m4: Update.
315 * gnulib/import/m4/off_t.m4: Update.
316 * gnulib/import/m4/onceonly.m4: Update.
317 * gnulib/import/m4/open-cloexec.m4: Update.
318 * gnulib/import/m4/open.m4: Update.
319 * gnulib/import/m4/openat.m4: Update.
320 * gnulib/import/m4/opendir.m4: Update.
321 * gnulib/import/m4/pathmax.m4: Update.
322 * gnulib/import/m4/rawmemchr.m4: Update.
323 * gnulib/import/m4/readdir.m4: Update.
324 * gnulib/import/m4/readlink.m4: Update.
325 * gnulib/import/m4/realloc.m4: Update.
326 * gnulib/import/m4/rename.m4: Update.
327 * gnulib/import/m4/rewinddir.m4: Update.
328 * gnulib/import/m4/rmdir.m4: Update.
329 * gnulib/import/m4/save-cwd.m4: Update.
330 * gnulib/import/m4/secure_getenv.m4: Update.
331 * gnulib/import/m4/setenv.m4: Update.
332 * gnulib/import/m4/signal_h.m4: Update.
333 * gnulib/import/m4/ssize_t.m4: Update.
334 * gnulib/import/m4/stat-time.m4: Update.
335 * gnulib/import/m4/stat.m4: Update.
336 * gnulib/import/m4/std-gnu11.m4: Update.
337 * gnulib/import/m4/stdbool.m4: Update.
338 * gnulib/import/m4/stddef_h.m4: Update.
339 * gnulib/import/m4/stdint.m4: Update.
340 * gnulib/import/m4/stdio_h.m4: Update.
341 * gnulib/import/m4/stdlib_h.m4: Update.
342 * gnulib/import/m4/strchrnul.m4: Update.
343 * gnulib/import/m4/strdup.m4: Update.
344 * gnulib/import/m4/strerror.m4: Update.
345 * gnulib/import/m4/string_h.m4: Update.
346 * gnulib/import/m4/strstr.m4: Update.
347 * gnulib/import/m4/strtok_r.m4: Update.
348 * gnulib/import/m4/sys_socket_h.m4: Update.
349 * gnulib/import/m4/sys_stat_h.m4: Update.
350 * gnulib/import/m4/sys_time_h.m4: Update.
351 * gnulib/import/m4/sys_types_h.m4: Update.
352 * gnulib/import/m4/tempname.m4: Update.
353 * gnulib/import/m4/time_h.m4: Update.
354 * gnulib/import/m4/unistd-safer.m4: Update.
355 * gnulib/import/m4/unistd_h.m4: Update.
356 * gnulib/import/m4/warn-on-use.m4: Update.
357 * gnulib/import/m4/wchar_h.m4: Update.
358 * gnulib/import/m4/wchar_t.m4: Update.
359 * gnulib/import/m4/wctype_h.m4: Update.
360 * gnulib/import/m4/wint_t.m4: Update.
361 * gnulib/import/malloc.c: Update.
362 * gnulib/import/malloc/scratch_buffer.h: Update.
363 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
364 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
365 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
366 * gnulib/import/malloca.c: Update.
367 * gnulib/import/malloca.h: Update.
368 * gnulib/import/malloca.valgrind: Update.
369 * gnulib/import/math.in.h: Update.
370 * gnulib/import/mbrtowc.c: Update.
371 * gnulib/import/mbsinit.c: Update.
372 * gnulib/import/mbsrtowcs-impl.h: Update.
373 * gnulib/import/mbsrtowcs-state.c: Update.
374 * gnulib/import/mbsrtowcs.c: Update.
375 * gnulib/import/memchr.c: Update.
376 * gnulib/import/memmem.c: Update.
377 * gnulib/import/mempcpy.c: Update.
378 * gnulib/import/memrchr.c: Update.
379 * gnulib/import/mkdir.c: Update.
380 * gnulib/import/mkstemp.c: Update.
381 * gnulib/import/msvc-inval.c: Update.
382 * gnulib/import/msvc-inval.h: Update.
383 * gnulib/import/msvc-nothrow.c: Update.
384 * gnulib/import/msvc-nothrow.h: Update.
385 * gnulib/import/open.c: Update.
386 * gnulib/import/openat-die.c: Update.
387 * gnulib/import/openat-priv.h: Update.
388 * gnulib/import/openat-proc.c: Update.
389 * gnulib/import/openat.c: Update.
390 * gnulib/import/openat.h: Update.
391 * gnulib/import/opendir.c: Update.
392 * gnulib/import/pathmax.h: Update.
393 * gnulib/import/pipe-safer.c: Update.
394 * gnulib/import/rawmemchr.c: Update.
395 * gnulib/import/readdir.c: Update.
396 * gnulib/import/readlink.c: Update.
397 * gnulib/import/realloc.c: Update.
398 * gnulib/import/ref-add.sin: Update.
399 * gnulib/import/ref-del.sin: Update.
400 * gnulib/import/rename.c: Update.
401 * gnulib/import/rewinddir.c: Update.
402 * gnulib/import/rmdir.c: Update.
403 * gnulib/import/same-inode.h: Update.
404 * gnulib/import/save-cwd.c: Update.
405 * gnulib/import/save-cwd.h: Update.
406 * gnulib/import/scratch_buffer.h: Update.
407 * gnulib/import/secure_getenv.c: Update.
408 * gnulib/import/setenv.c: Update.
409 * gnulib/import/signal.in.h: Update.
410 * gnulib/import/stat-time.c: Update.
411 * gnulib/import/stat-time.h: Update.
412 * gnulib/import/stat-w32.c: Update.
413 * gnulib/import/stat-w32.h: Update.
414 * gnulib/import/stat.c: Update.
415 * gnulib/import/stdbool.in.h: Update.
416 * gnulib/import/stddef.in.h: Update.
417 * gnulib/import/stdint.in.h: Update.
418 * gnulib/import/stdio.in.h: Update.
419 * gnulib/import/stdlib.in.h: Update.
420 * gnulib/import/str-two-way.h: Update.
421 * gnulib/import/strchrnul.c: Update.
422 * gnulib/import/strdup.c: Update.
423 * gnulib/import/streq.h: Update.
424 * gnulib/import/strerror-override.c: Update.
425 * gnulib/import/strerror-override.h: Update.
426 * gnulib/import/strerror.c: Update.
427 * gnulib/import/string.in.h: Update.
428 * gnulib/import/stripslash.c: Update.
429 * gnulib/import/strnlen1.c: Update.
430 * gnulib/import/strnlen1.h: Update.
431 * gnulib/import/strstr.c: Update.
432 * gnulib/import/strtok_r.c: Update.
433 * gnulib/import/sys_stat.in.h: Update.
434 * gnulib/import/sys_time.in.h: Update.
435 * gnulib/import/sys_types.in.h: Update.
436 * gnulib/import/tempname.c: Update.
437 * gnulib/import/tempname.h: Update.
438 * gnulib/import/time.in.h: Update.
439 * gnulib/import/unistd--.h: Update.
440 * gnulib/import/unistd-safer.h: Update.
441 * gnulib/import/unistd.in.h: Update.
442 * gnulib/import/unsetenv.c: Update.
443 * gnulib/import/verify.h: Update.
444 * gnulib/import/extra/snippet/warn-on-use.h: Update.
445 * gnulib/import/wchar.in.h: Update.
446 * gnulib/import/wctype.in.h: Update.
447 * gnulib/import/xalloc-oversized.h: Update.
448 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
449 "53e2c179f26a890fa6685af4b6c1397ee370433b".
450
451 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
452
453 * record-btrace.c (get_thread_current_frame): Remove
454 old_inferior_ptid.
455
456 2018-09-10 Jerome Guitton <guitton@adacore.com>
457
458 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
459 with check_tag to 1 if and only if the type is tagged and the
460 component being searched cannot been found in the current
461 view. Otherwise, always call ada_to_fixed_type with
462 check_tag to 0.
463
464 2018-09-10 Xavier Roirand <roirand@adacore.com>
465
466 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
467 declaration.
468 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
469 * ada-varobj.c (ada_varobj_get_number_of_children,
470 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
471
472 2018-09-10 Xavier Roirand <roirand@adacore.com>
473
474 * ada-valprint.c (ada_value_print): Use type instead of
475 enclosing type.
476
477 2018-09-10 Xavier Roirand <roirand@adacore.com>
478
479 * ada-lang.c (ada_value_subscript): Handle case when parameter is
480 an array of access to unconstrained array.
481
482 2018-09-10 Xavier Roirand <roirand@adacore.com>
483
484 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
485 (ada_check_typedef): Use it.
486
487 2018-09-10 Xavier Roirand <roirand@adacore.com>
488
489 * ada-varobj.c (ada_varobj_describe_struct_child)
490 (ada_varobj_describe_child): Handle union case like struct one.
491
492 2018-09-10 Tom Tromey <tom@tromey.com>
493
494 PR python/18380:
495 * python/python.c (_initialize_python): Make example in "python"
496 help work in Python 3.
497
498 2018-09-10 Eli Zaretskii <eliz@gnu.org>
499
500 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
501 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
502 $(EXEEXT) to the script, as it is not a program.
503
504 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
505
506 * python/py-prettyprint.c (pretty_print_one_value): Return
507 gdbpy_ref<>.
508 (print_string_repr): Adjust.
509 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
510 * python/python-internal.h (apply_varobj_pretty_printer): Return
511 gdbpy_ref<>.
512 * varobj.c (varobj_value_get_print_value): Adjust.
513
514 2018-09-08 Tom Tromey <tom@tromey.com>
515
516 PR python/16047:
517 * python/py-prettyprint.c (pretty_print_one_value): Check for
518 to_string method.
519
520 2018-09-08 Joel Brobecker <brobecker@adacore.com>
521
522 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
523 replace_operator_with_call.
524
525 2018-09-08 Joel Brobecker <brobecker@adacore.com>
526
527 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
528
529 2018-09-08 Joel Brobecker <brobecker@adacore.com>
530
531 * ada-typeprint.c (print_range): Print the bounds using TYPE
532 rather than its TYPE_TARGET_TYPE.
533
534 2018-09-08 Joel Brobecker <brobecker@adacore.com>
535
536 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
537 call to ada_to_fixed_value_create.
538
539 2018-09-08 Jerome Guitton <guitton@adacore.com>
540
541 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
542
543 2018-09-08 Joel Brobecker <brobecker@adacore.com>
544
545 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
546 by calls to error.
547
548 2018-09-08 Joel Brobecker <brobecker@adacore.com>
549
550 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
551 Move update of loop variable "fi".
552
553 2018-09-08 Joel Brobecker <brobecker@adacore.com>
554
555 * ada-lang.c (value_assign_to_component): In the case of
556 big-endian targets, extract the bits of the given VAL
557 using an src_offset of zero if container is not a scalar.
558
559 2018-09-06 Simon Ser <contact@emersion.fr>
560
561 PR gdb/23105
562 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
563 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
564 * fbsd-tdep.c (fbsd_make_note_desc): New.
565 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
566 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
567 * target.h (enum target_object) Add FreeBSD-specific
568 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
569
570 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
571
572 * compile/compile-c.h (generate_c_for_variable_locations):
573 Change reference to pointer.
574 * compile/compile-c-support.c (compile_program) <compute>:
575 Likewise.
576 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
577 (generate_c_for_for_one_variable): Likewise
578 (generate_c_for_variable_locations): Likewise
579 * compile/compile-c-types.c (compile_c_instance::convert_type):
580 Likewise
581 * compile/compile-cplus-symbols.c (convert_one_symbol):
582 std::move the scope passed to enter_scope.
583 * compile/compile-cplus-types.c
584 (compile_cplus_instance::enter_scope): Make parameter
585 rvalue-reference.
586 (compile_cplus_instance::new_scope): Change reference to
587 pointer.
588 (compile_cplus_instance::convert_type): Likewise
589 (compile_cplus_convert_typedef): std::move the scope passed to
590 enter_scope.
591 (compile_cplus_convert_struct_or_union): Likewise.
592 (compile_cplus_convert_enum): Likewise.
593 (compile_cplus_convert_namespace): Likewise.
594 * compile/compile-cplus.h (compile_cplus_instance)
595 <enter_scope>: Make parameter rvalue-reference.
596 * compile/compile-internal.h (compile_instance)
597 <get_cached_type>: Likewise
598 * compile/compile-loc2c.c (push): Likewise
599 (pushf): Likewise
600 (unary): Likewise
601 (binary): Likewise
602 (print_label): Likewise
603 (pushf_register_address): Likewise
604 (pushf_register): Likewise
605 (do_compile_dwarf_expr_to_c): Likewise
606 (compile_dwarf_expr_to_c): Likewise
607 (compile_dwarf_bounds_to_c): Likewise
608 * compile/compile.c (compile_instance::get_cached_type):
609 Likewise
610 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
611 (compile_dwarf_bounds_to_c): Likewise
612 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
613 (dwarf2_compile_property_to_c): Likewise
614 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
615 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
616 Likewise
617
618 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
619
620 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
621 * tui/tui-data.c (init_content_element): Don't initialize it.
622
623 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
624
625 * tui/tui-data.h (struct tui_win_info)
626 <detail::opaque>: Remove.
627 * tui/tui-data.c (init_win_info): Remove assignment.
628
629 2018-09-05 Tom Tromey <tom@tromey.com>
630
631 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
632 -Wformat-nonliteral.
633 * target-float.c (host_float_ops<T>::to_string)
634 (host_float_ops<T>::from_string): Use
635 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
636 * configure: Rebuild.
637
638 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
639
640 * printcmd.c (printf_c_string): Use
641 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
642 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
643
644 2018-09-05 Tom Tromey <tom@tromey.com>
645
646 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
647
648 2018-09-05 Tom de Vries <tdevries@suse.de>
649
650 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
651 with resolve_abstract_p == true.
652 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
653 defaulting to false. Propagate resolve_abstract_p to
654 dwarf2_fetch_die_loc_sect_off.
655 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
656 parameter, defaulting to false.
657 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
658 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
659 parameter.
660 * dwarf2read.h (struct die_info): Forward-declare.
661 (die_info_ptr): New typedef.
662 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
663
664 2018-09-05 Joel Brobecker <brobecker@adacore.com>
665
666 GDB 8.2 released.
667
668 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
669 Pedro Alves <palves@redhat.com>
670
671 * gnulib/Makefile.in (aclocal_m4_deps): Move to
672 "aclocal-m4-deps.mk". Include file here.
673 $(srcdir)/aclocal.m4: Add "configure.ac".
674 * gnulib/aclocal-m4-deps.mk: New file.
675 * gnulib/update-gnulib.sh: Automatically update
676 "aclocal-m4-deps.mk".
677
678 2018-09-04 Tom Tromey <tom@tromey.com>
679
680 * configure: Rebuild.
681 * configure.ac: Remove multi-ice code.
682
683 2018-09-04 Tom Tromey <tom@tromey.com>
684
685 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
686 (ada-exp.o): Update.
687
688 2018-09-04 Tom Tromey <tom@tromey.com>
689
690 * Makefile.in (printcmd.o, target-float.o): Remove.
691 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
692
693 2018-09-04 Tom Tromey <tom@tromey.com>
694
695 * gnulib/Makefile.in: Remove obsolete comment.
696 * Makefile.in: Remove obsolete comment.
697
698 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
699
700 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
701 line with '+'.
702
703 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * riscv-tdep.c: Add 'prologue-value.h' include.
706 (struct riscv_unwind_cache): New struct.
707 (riscv_debug_unwinder): New global.
708 (riscv_scan_prologue): Update arguments, capture register details
709 from prologue scan.
710 (riscv_skip_prologue): Reformat arguments line, move end of
711 prologue calculation into riscv_scan_prologue.
712 (riscv_frame_cache): Update return type, create
713 riscv_unwind_cache, scan the prologue, and fill in remaining cache
714 details.
715 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
716 (riscv_frame_prev_register): Use the trad_frame within the
717 riscv_unwind_cache.
718 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
719 flag.
720
721 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * trad-frame.h (trad_frame_set_realreg): Declare.
724 (trad_frame_set_addr): Declare.
725 * trad-frame.c (trad_frame_set_realreg): Define new function.
726 (trad_frame_set_addr): Define new function.
727 (trad_frame_set_reg_realreg): Use new function.
728 (trad_frame_set_reg_addr): Use new function.
729
730 2018-09-01 Keith Seitz <keiths@redhat.com>
731
732 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
733 pulongest instead of "%lld".
734 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
735 ATTRIBUTE_UNUSED.
736
737 2018-08-31 Tom Tromey <tom@tromey.com>
738
739 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
740 variant part type.
741
742 2018-08-31 Pedro Alves <palves@redhat.com>
743
744 * gdbarch.h: Regenerate.
745
746 2018-08-31 Pedro Alves <palves@redhat.com>
747
748 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
749 * target.h (Hardware watchpoint interfaces): Describe
750 continuable/steppable/non-steppable watchpoints.
751 * gdbarch.h, gdbarch.c: Regenerate.
752
753 2018-08-31 Pedro Alves <palves@redhat.com>
754
755 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
756 Delete.
757 * s390-linux-nat.c
758 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
759 * target.h (target_ops::have_continuable_watchpoint): Delete.
760 (target_have_continuable_watchpoint): Delete.
761 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
762 * target-delegates.c: Regenerate.
763
764 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
765
766 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
767 the files present in "gnulib/import/m4/".
768
769 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
772 c.sw, c.swsp, and c.sdsp.
773
774 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
775
776 * riscv-tdep.c (struct riscv_inferior_data): Delete.
777 (riscv_read_misa_reg): Don't cache value read into inferior data.
778 (riscv_new_inferior_data): Delete.
779 (riscv_inferior_data_cleanup): Delete.
780 (riscv_inferior_data): Delete.
781 (riscv_invalidate_inferior_data): Delete.
782 (_initialize_riscv_tdep): Remove initialisation of inferior data.
783
784 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
785
786 * compile/compile-cplus-types.c
787 (compile_cplus_instance::leave_scope): Take the address of scope
788 object.
789 (compile_cplus_instance::convert_qualified_base): Compare quals
790 to 0.
791
792 2018-08-30 Keith Seitz <keiths@redhat.com>
793
794 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
795 Use "%s" and host_address_to_string instead of "%p" in printf.
796
797 2018-08-29 Keith Seitz <keiths@redhat.com>
798
799 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
800 and compile-cplus-types.c.
801 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
802 * c-lang.c (cplus_language_defn): Set C++ compile functions.
803 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
804 Declare.
805 * compile/compile-c-support.c: Include compile-cplus.h.
806 (load_libcompile): Templatize.
807 (get_compile_context): "New" function.
808 (c_get_compile_context): Use get_compile_context.
809 (cplus_get_compile_context): New function.
810 (cplus_push_user_expression, cplus_pop_user_expression)
811 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
812 (cplus_compute_program): Define new structs/functions.
813 * compile/compile-cplus-symmbols.c: New file.
814 * compile/compile-cplus-types.c: New file.
815 * compile/compile-cplus.h: New file.
816 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
817 Declare.
818 * compile/compile-object-load.c (get_out_value_type): Use
819 strncmp_iw when comparing symbol names.
820 (compile_object_load): Add mst_bss and mst_data.
821 * compile/compile.c (_initialize_compile): Remove
822 -Wno-implicit-function-declaration from `compile_args'.
823 * compile/gcc-cp-plugin.h: New file.
824 * NEWS: Mention C++ compile support and new debug options.
825
826 2018-08-29 Keith Seitz <keiths@redhat.com>
827
828 * linespec.c (collect_info::add_symbol): Make virtual.
829 (struct symbol_searcher_collect_info): New struct.
830 (symbol_searcher::find_all_symbols): New method.
831 * symtab.h (class symbol_searcher): New class.
832
833 2018-08-29 Keith Seitz <keiths@redhat.com>
834
835 * linespec.c (struct linespec) <function_symbols, label_symbols>:
836 Change to vector of block_symbol. Update all users.
837 (struct collect_info) <symbols>: Likewise.
838 (collect_info::add_symbol): Take block_symbol as argument.
839 Update all callers.
840 (decode_compound_collector) <m_symbols>: Change type to vector
841 of block_symbol. Update all users.
842 (decode_compound_collector::operator ()): Change parameter type
843 to block_symbol.
844 (find_method, find_function_symbols, find_linespec_symbols)
845 (find_label_symbols_in_block, find_label_symbols): Change symbol
846 vectors to block_symbol vectors.
847 * symtab.h (symbol_found_callback_ftype): Change parameter type to
848 block_symbol.
849
850 2018-08-29 Keith Seitz <keiths@redhat.com>
851
852 * linespec.c (symbolp): Remove typedef and VEC definitions.
853 (bound_minimal_symbol_d): Likewise.
854
855 2018-08-29 Keith Seitz <keiths@redhat.com>
856
857 * linespec.c (decode_compound_collector::decode_compound_collector):
858 Remove initialization for `m_symtabs'.
859 (decode_compound_collector::release_symbols): Change return type
860 to std::vector. Update all callers.
861 (class decode_compound_collector) <m_symbols>: Change type to
862 std::vector.
863 (lookup_prefix_sym): Change return type to std::vector. Update all
864 callers.
865 (compare_symbols): Remove.
866 (std_compare_symbols): Rename to `compare_symbols'.
867 (find_method): Change `sym_classes' parameter to std::vector.
868 Update all callers. Use std::sort to sort sym_classes.
869 (find_linespec_symbols): Remove cleanup.
870
871 2018-08-29 Keith Seitz <keiths@redhat.com>
872
873 * linespec.c (struct linespec) <minimal_symbols>: Change type to
874 std::vector. Update all users.
875 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
876 (struct collect_info) <minimal_symbols>: Likewise.
877 (compare_msymbols): Return bool. Change parameters to const
878 bound_minimal_symbol references.
879 (find_method, find_function_symbols, find_linespec_symbols): Change
880 `minsyms' parameter to std::vector. Update all callers.
881
882 2018-08-29 Keith Seitz <keiths@redhat.com>
883
884 * linespec.c (struct linespec) <label_symbols>: Change type to
885 std::vector. Update all users.
886 (find_label_symbols_in_block): Change `result' parameter to
887 std::vector. Update all callers.
888 (find_label_symbols): Return std::vector. Update all callers.
889
890 2018-08-29 Keith Seitz <keiths@redhat.com>
891
892 * linespec.c (struct linespec) <function_symbols>: Change type to
893 std::vector. Update all users.
894 (struct collect_info) <function_symbols>: Likewise.
895 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
896 (std_compare_symbols): New function.
897 (find_method, find_function_symbols, find_linespec_symbols)
898 (find_label_symbols_in_block): Change `symbols' parameter to
899 std::vector. Update all callers.
900 (find_label_symbols): Likewise for `function_symbols' and
901 `label_funcs_ret'.
902
903 2018-08-29 Keith Seitz <keiths@redhat.com>
904
905 * linespec.c (symtab_vector_up): Define.
906 (struct linespec) <file_symtabs>: Change type to std::vector *.
907 Update all uses.
908 (struct collect_info) <file_symtabs>: Likewise.
909 (collect_symtabs_from_filename): Return symtab_vector_up.
910 Update all callers.
911 (decode_objc): Remove cleanup.
912 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
913 (symtab_collector::release_symtabs): Return symtab_vector_up.
914 Update all callers.
915 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
916 Update all users.
917 (collect_symtabs_from_filename, symtabs_from_filename): Return
918 symtab_vector_up. Update all callers.
919
920 2018-08-29 Tom Tromey <tom@tromey.com>
921
922 * csky-tdep.c (csky_analyze_prologue): Use
923 core_addr_to_string_nz.
924
925 2018-08-29 Tom Tromey <tom@tromey.com>
926
927 * windows-nat.c (struct xlate_exception) <them>: Change type to
928 DWORD.
929 (xlate): Fix formatting. Remove last entry.
930 (struct xlate_exception, xlate): Comment out.
931 (windows_nat_target::resume): Use ranged for.
932
933 2018-08-29 Jim Wilson <jimw@sifive.com>
934
935 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
936 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
937 of NT_PRFPREG.
938 (riscv_linux_nat_target::store_registers): Likewise.
939
940 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
941
942 PR gdb/23555
943 PR gdb/23558
944 * gnulib/aclocal.m4: Regenerate.
945 * gnulib/config.in: Regenerate.
946 * gnulib/configure: Regenerate.
947 * gnulib/import/Makefile.am: Update.
948 * gnulib/import/Makefile.in: Update.
949 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
950 * gnulib/import/_Noreturn.h: ... this.
951 * gnulib/import/alloca.in.h: Update.
952 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
953 * gnulib/import/arg-nonnull.h: ... this.
954 * gnulib/import/assure.h: Update.
955 * gnulib/import/at-func.c: Update.
956 * gnulib/import/basename-lgpl.c: Update.
957 * gnulib/import/extra/snippet/c++defs.h: Rename to...
958 * gnulib/import/c++defs.h: ... this.
959 * gnulib/import/canonicalize-lgpl.c: Update.
960 * gnulib/import/cdefs.h: Update.
961 * gnulib/import/chdir-long.c: Update.
962 * gnulib/import/chdir-long.h: Update.
963 * gnulib/import/cloexec.c: Update.
964 * gnulib/import/cloexec.h: Update.
965 * gnulib/import/close.c: Update.
966 * gnulib/import/closedir.c: Update.
967 * gnulib/import/config.charset: Update.
968 * gnulib/import/dirent-private.h: Update.
969 * gnulib/import/dirent.in.h: Update.
970 * gnulib/import/dirfd.c: Update.
971 * gnulib/import/dirname-lgpl.c: Update.
972 * gnulib/import/dirname.h: Update.
973 * gnulib/import/dosname.h: Update.
974 * gnulib/import/dup-safer-flag.c: Update.
975 * gnulib/import/dup-safer.c: Update.
976 * gnulib/import/dup.c: Update.
977 * gnulib/import/dup2.c: Update.
978 * gnulib/import/errno.in.h: Update.
979 * gnulib/import/error.c: Update.
980 * gnulib/import/error.h: Update.
981 * gnulib/import/exitfail.c: Update.
982 * gnulib/import/exitfail.h: Update.
983 * gnulib/import/extra/update-copyright: Update.
984 * gnulib/import/fchdir.c: Update.
985 * gnulib/import/fcntl.c: Update.
986 * gnulib/import/fcntl.in.h: Update.
987 * gnulib/import/fd-hook.c: Update.
988 * gnulib/import/fd-hook.h: Update.
989 * gnulib/import/fd-safer-flag.c: Update.
990 * gnulib/import/fd-safer.c: Update.
991 * gnulib/import/fdopendir.c: Update.
992 * gnulib/import/filename.h: Update.
993 * gnulib/import/filenamecat-lgpl.c: Update.
994 * gnulib/import/filenamecat.h: Update.
995 * gnulib/import/flexmember.h: Update.
996 * gnulib/import/float+.h: Update.
997 * gnulib/import/float.c: Update.
998 * gnulib/import/float.in.h: Update.
999 * gnulib/import/fnmatch.c: Update.
1000 * gnulib/import/fnmatch.in.h: Update.
1001 * gnulib/import/fnmatch_loop.c: Update.
1002 * gnulib/import/fpucw.h: Update.
1003 * gnulib/import/frexp.c: Update.
1004 * gnulib/import/frexpl.c: Update.
1005 * gnulib/import/fstat.c: Update.
1006 * gnulib/import/fstatat.c: Update.
1007 * gnulib/import/getcwd-lgpl.c: Update.
1008 * gnulib/import/getcwd.c: Update.
1009 * gnulib/import/getdtablesize.c: Update.
1010 * gnulib/import/getlogin_r.c: Update.
1011 * gnulib/import/getprogname.c: Update.
1012 * gnulib/import/getprogname.h: Update.
1013 * gnulib/import/gettext.h: Update.
1014 * gnulib/import/gettimeofday.c: Update.
1015 * gnulib/import/glob-libc.h: Update.
1016 * gnulib/import/glob.c: Update.
1017 * gnulib/import/glob.in.h: Update.
1018 * gnulib/import/glob_internal.h: Update.
1019 * gnulib/import/glob_pattern_p.c: Update.
1020 * gnulib/import/globfree.c: Update.
1021 * gnulib/import/hard-locale.c: Update.
1022 * gnulib/import/hard-locale.h: Update.
1023 * gnulib/import/intprops.h: Update.
1024 * gnulib/import/inttypes.in.h: Update.
1025 * gnulib/import/isnan.c: Update.
1026 * gnulib/import/isnand-nolibm.h: Update.
1027 * gnulib/import/isnand.c: Update.
1028 * gnulib/import/isnanl-nolibm.h: Update.
1029 * gnulib/import/isnanl.c: Update.
1030 * gnulib/import/itold.c: Update.
1031 * gnulib/import/libc-config.h: Update.
1032 * gnulib/import/limits.in.h: Update.
1033 * gnulib/import/localcharset.c: Update.
1034 * gnulib/import/localcharset.h: Update.
1035 * gnulib/import/localtime-buffer.c: Update.
1036 * gnulib/import/localtime-buffer.h: Update.
1037 * gnulib/import/lstat.c: Update.
1038 * gnulib/import/m4/00gnulib.m4: Update.
1039 * gnulib/import/m4/__inline.m4: Update.
1040 * gnulib/import/m4/absolute-header.m4: Update.
1041 * gnulib/import/m4/alloca.m4: Update.
1042 * gnulib/import/m4/builtin-expect.m4: Update.
1043 * gnulib/import/m4/canonicalize.m4: Update.
1044 * gnulib/import/m4/chdir-long.m4: Update.
1045 * gnulib/import/m4/close.m4: Update.
1046 * gnulib/import/m4/closedir.m4: Update.
1047 * gnulib/import/m4/configmake.m4: Update.
1048 * gnulib/import/m4/d-ino.m4: Update.
1049 * gnulib/import/m4/d-type.m4: Update.
1050 * gnulib/import/m4/dirent_h.m4: Update.
1051 * gnulib/import/m4/dirfd.m4: Update.
1052 * gnulib/import/m4/dirname.m4: Update.
1053 * gnulib/import/m4/double-slash-root.m4: Update.
1054 * gnulib/import/m4/dup.m4: Update.
1055 * gnulib/import/m4/dup2.m4: Update.
1056 * gnulib/import/m4/eealloc.m4: Update.
1057 * gnulib/import/m4/environ.m4: Update.
1058 * gnulib/import/m4/errno_h.m4: Update.
1059 * gnulib/import/m4/error.m4: Update.
1060 * gnulib/import/m4/exponentd.m4: Update.
1061 * gnulib/import/m4/exponentl.m4: Update.
1062 * gnulib/import/m4/extensions.m4: Update.
1063 * gnulib/import/m4/extern-inline.m4: Update.
1064 * gnulib/import/m4/fchdir.m4: Update.
1065 * gnulib/import/m4/fcntl-o.m4: Update.
1066 * gnulib/import/m4/fcntl.m4: Update.
1067 * gnulib/import/m4/fcntl_h.m4: Update.
1068 * gnulib/import/m4/fdopendir.m4: Update.
1069 * gnulib/import/m4/filenamecat.m4: Update.
1070 * gnulib/import/m4/flexmember.m4: Update.
1071 * gnulib/import/m4/float_h.m4: Update.
1072 * gnulib/import/m4/fnmatch.m4: Update.
1073 * gnulib/import/m4/fnmatch_h.m4: Update.
1074 * gnulib/import/m4/fpieee.m4: Update.
1075 * gnulib/import/m4/frexp.m4: Update.
1076 * gnulib/import/m4/frexpl.m4: Update.
1077 * gnulib/import/m4/fstat.m4: Update.
1078 * gnulib/import/m4/fstatat.m4: Update.
1079 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1080 * gnulib/import/m4/getcwd-path-max.m4: Update.
1081 * gnulib/import/m4/getcwd.m4: Update.
1082 * gnulib/import/m4/getdtablesize.m4: Update.
1083 * gnulib/import/m4/getlogin.m4: Update.
1084 * gnulib/import/m4/getlogin_r.m4: Update.
1085 * gnulib/import/m4/getpagesize.m4: Update.
1086 * gnulib/import/m4/getprogname.m4: Update.
1087 * gnulib/import/m4/gettimeofday.m4: Update.
1088 * gnulib/import/m4/glibc21.m4: Update.
1089 * gnulib/import/m4/glob.m4: Update.
1090 * gnulib/import/m4/glob_h.m4: Update.
1091 * gnulib/import/m4/gnulib-cache.m4: Update.
1092 * gnulib/import/m4/gnulib-common.m4: Update.
1093 * gnulib/import/m4/gnulib-comp.m4: Update.
1094 * gnulib/import/m4/gnulib-tool.m4: Update.
1095 * gnulib/import/m4/hard-locale.m4: Update.
1096 * gnulib/import/m4/include_next.m4: Update.
1097 * gnulib/import/m4/inttypes-pri.m4: Update.
1098 * gnulib/import/m4/inttypes.m4: Update.
1099 * gnulib/import/m4/isnand.m4: Update.
1100 * gnulib/import/m4/isnanl.m4: Update.
1101 * gnulib/import/m4/largefile.m4: Update.
1102 * gnulib/import/m4/limits-h.m4: Update.
1103 * gnulib/import/m4/localcharset.m4: Update.
1104 * gnulib/import/m4/locale-fr.m4: Update.
1105 * gnulib/import/m4/locale-ja.m4: Update.
1106 * gnulib/import/m4/locale-zh.m4: Update.
1107 * gnulib/import/m4/localtime-buffer.m4: Update.
1108 * gnulib/import/m4/longlong.m4: Update.
1109 * gnulib/import/m4/lstat.m4: Update.
1110 * gnulib/import/m4/malloc.m4: Update.
1111 * gnulib/import/m4/malloca.m4: Update.
1112 * gnulib/import/m4/math_h.m4: Update.
1113 * gnulib/import/m4/mbrtowc.m4: Update.
1114 * gnulib/import/m4/mbsinit.m4: Update.
1115 * gnulib/import/m4/mbsrtowcs.m4: Update.
1116 * gnulib/import/m4/mbstate_t.m4: Update.
1117 * gnulib/import/m4/memchr.m4: Update.
1118 * gnulib/import/m4/memmem.m4: Update.
1119 * gnulib/import/m4/mempcpy.m4: Update.
1120 * gnulib/import/m4/memrchr.m4: Update.
1121 * gnulib/import/m4/mkdir.m4: Update.
1122 * gnulib/import/m4/mkstemp.m4: Update.
1123 * gnulib/import/m4/mmap-anon.m4: Update.
1124 * gnulib/import/m4/mode_t.m4: Update.
1125 * gnulib/import/m4/msvc-inval.m4: Update.
1126 * gnulib/import/m4/msvc-nothrow.m4: Update.
1127 * gnulib/import/m4/multiarch.m4: Update.
1128 * gnulib/import/m4/nocrash.m4: Update.
1129 * gnulib/import/m4/off_t.m4: Update.
1130 * gnulib/import/m4/onceonly.m4: Update.
1131 * gnulib/import/m4/open-cloexec.m4: Update.
1132 * gnulib/import/m4/open.m4: Update.
1133 * gnulib/import/m4/openat.m4: Update.
1134 * gnulib/import/m4/opendir.m4: Update.
1135 * gnulib/import/m4/pathmax.m4: Update.
1136 * gnulib/import/m4/rawmemchr.m4: Update.
1137 * gnulib/import/m4/readdir.m4: Update.
1138 * gnulib/import/m4/readlink.m4: Update.
1139 * gnulib/import/m4/realloc.m4: Update.
1140 * gnulib/import/m4/rename.m4: Update.
1141 * gnulib/import/m4/rewinddir.m4: Update.
1142 * gnulib/import/m4/rmdir.m4: Update.
1143 * gnulib/import/m4/save-cwd.m4: Update.
1144 * gnulib/import/m4/secure_getenv.m4: Update.
1145 * gnulib/import/m4/setenv.m4: Update.
1146 * gnulib/import/m4/signal_h.m4: Update.
1147 * gnulib/import/m4/ssize_t.m4: Update.
1148 * gnulib/import/m4/stat-time.m4: Update.
1149 * gnulib/import/m4/stat.m4: Update.
1150 * gnulib/import/m4/std-gnu11.m4: Update.
1151 * gnulib/import/m4/stdbool.m4: Update.
1152 * gnulib/import/m4/stddef_h.m4: Update.
1153 * gnulib/import/m4/stdint.m4: Update.
1154 * gnulib/import/m4/stdio_h.m4: Update.
1155 * gnulib/import/m4/stdlib_h.m4: Update.
1156 * gnulib/import/m4/strchrnul.m4: Update.
1157 * gnulib/import/m4/strdup.m4: Update.
1158 * gnulib/import/m4/strerror.m4: Update.
1159 * gnulib/import/m4/string_h.m4: Update.
1160 * gnulib/import/m4/strstr.m4: Update.
1161 * gnulib/import/m4/strtok_r.m4: Update.
1162 * gnulib/import/m4/sys_socket_h.m4: Update.
1163 * gnulib/import/m4/sys_stat_h.m4: Update.
1164 * gnulib/import/m4/sys_time_h.m4: Update.
1165 * gnulib/import/m4/sys_types_h.m4: Update.
1166 * gnulib/import/m4/tempname.m4: Update.
1167 * gnulib/import/m4/time_h.m4: Update.
1168 * gnulib/import/m4/unistd-safer.m4: Update.
1169 * gnulib/import/m4/unistd_h.m4: Update.
1170 * gnulib/import/m4/warn-on-use.m4: Update.
1171 * gnulib/import/m4/wchar_h.m4: Update.
1172 * gnulib/import/m4/wchar_t.m4: Update.
1173 * gnulib/import/m4/wctype_h.m4: Update.
1174 * gnulib/import/m4/wint_t.m4: Update.
1175 * gnulib/import/malloc.c: Update.
1176 * gnulib/import/malloc/scratch_buffer.h: Update.
1177 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1178 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1179 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1180 * gnulib/import/malloca.c: Update.
1181 * gnulib/import/malloca.h: Update.
1182 * gnulib/import/malloca.valgrind: Update.
1183 * gnulib/import/math.in.h: Update.
1184 * gnulib/import/mbrtowc.c: Update.
1185 * gnulib/import/mbsinit.c: Update.
1186 * gnulib/import/mbsrtowcs-impl.h: Update.
1187 * gnulib/import/mbsrtowcs-state.c: Update.
1188 * gnulib/import/mbsrtowcs.c: Update.
1189 * gnulib/import/memchr.c: Update.
1190 * gnulib/import/memmem.c: Update.
1191 * gnulib/import/mempcpy.c: Update.
1192 * gnulib/import/memrchr.c: Update.
1193 * gnulib/import/mkdir.c: Update.
1194 * gnulib/import/mkstemp.c: Update.
1195 * gnulib/import/msvc-inval.c: Update.
1196 * gnulib/import/msvc-inval.h: Update.
1197 * gnulib/import/msvc-nothrow.c: Update.
1198 * gnulib/import/msvc-nothrow.h: Update.
1199 * gnulib/import/open.c: Update.
1200 * gnulib/import/openat-die.c: Update.
1201 * gnulib/import/openat-priv.h: Update.
1202 * gnulib/import/openat-proc.c: Update.
1203 * gnulib/import/openat.c: Update.
1204 * gnulib/import/openat.h: Update.
1205 * gnulib/import/opendir.c: Update.
1206 * gnulib/import/pathmax.h: Update.
1207 * gnulib/import/pipe-safer.c: Update.
1208 * gnulib/import/rawmemchr.c: Update.
1209 * gnulib/import/readdir.c: Update.
1210 * gnulib/import/readlink.c: Update.
1211 * gnulib/import/realloc.c: Update.
1212 * gnulib/import/ref-add.sin: Update.
1213 * gnulib/import/ref-del.sin: Update.
1214 * gnulib/import/rename.c: Update.
1215 * gnulib/import/rewinddir.c: Update.
1216 * gnulib/import/rmdir.c: Update.
1217 * gnulib/import/same-inode.h: Update.
1218 * gnulib/import/save-cwd.c: Update.
1219 * gnulib/import/save-cwd.h: Update.
1220 * gnulib/import/scratch_buffer.h: Update.
1221 * gnulib/import/secure_getenv.c: Update.
1222 * gnulib/import/setenv.c: Update.
1223 * gnulib/import/signal.in.h: Update.
1224 * gnulib/import/stat-time.c: Update.
1225 * gnulib/import/stat-time.h: Update.
1226 * gnulib/import/stat-w32.c: Update.
1227 * gnulib/import/stat-w32.h: Update.
1228 * gnulib/import/stat.c: Update.
1229 * gnulib/import/stdbool.in.h: Update.
1230 * gnulib/import/stddef.in.h: Update.
1231 * gnulib/import/stdint.in.h: Update.
1232 * gnulib/import/stdio.in.h: Update.
1233 * gnulib/import/stdlib.in.h: Update.
1234 * gnulib/import/str-two-way.h: Update.
1235 * gnulib/import/strchrnul.c: Update.
1236 * gnulib/import/strdup.c: Update.
1237 * gnulib/import/streq.h: Update.
1238 * gnulib/import/strerror-override.c: Update.
1239 * gnulib/import/strerror-override.h: Update.
1240 * gnulib/import/strerror.c: Update.
1241 * gnulib/import/string.in.h: Update.
1242 * gnulib/import/stripslash.c: Update.
1243 * gnulib/import/strnlen1.c: Update.
1244 * gnulib/import/strnlen1.h: Update.
1245 * gnulib/import/strstr.c: Update.
1246 * gnulib/import/strtok_r.c: Update.
1247 * gnulib/import/sys_stat.in.h: Update.
1248 * gnulib/import/sys_time.in.h: Update.
1249 * gnulib/import/sys_types.in.h: Update.
1250 * gnulib/import/tempname.c: Update.
1251 * gnulib/import/tempname.h: Update.
1252 * gnulib/import/time.in.h: Update.
1253 * gnulib/import/unistd--.h: Update.
1254 * gnulib/import/unistd-safer.h: Update.
1255 * gnulib/import/unistd.in.h: Update.
1256 * gnulib/import/unsetenv.c: Update.
1257 * gnulib/import/verify.h: Update.
1258 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1259 * gnulib/import/wchar.in.h: Update.
1260 * gnulib/import/wctype.in.h: Update.
1261 * gnulib/import/xalloc-oversized.h: Update.
1262 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1263 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1264
1265 2018-08-16 Gary Benson <gbenson@redhat.com>
1266
1267 PR gdb/13000:
1268 * gdb/main.c (captured_main_1): Exit with nonzero status
1269 in batch mode if the last command to be executed failed.
1270 * NEWS: Mention the above.
1271
1272 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1273
1274 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1275 end of warning message.
1276
1277 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1278
1279 PR gdb/22943:
1280 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1281 (aarch64_extract_return_value): Use
1282 aapcs_is_vfp_call_or_return_candidate.
1283 (aarch64_return_in_memory): Likewise.
1284 (aarch64_store_return_value): Likewise.
1285
1286 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1287
1288 * aarch64-tdep.c
1289 (aapcs_is_vfp_call_or_return_candidate): Make static
1290 (pass_in_v_or_stack): Remove function.
1291 (pass_in_v_vfp_candidate): New function.
1292 (aarch64_push_dummy_call): Check for float register candidates.
1293
1294 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1295
1296 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1297 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1298 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1299
1300 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1301
1302 PR build/23399
1303 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1304 (struct ipa_sym_addresses): Rename to...
1305 (struct ipa_sym_addresses_common): ... this.
1306 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1307
1308 2018-08-28 Tom Tromey <tom@tromey.com>
1309
1310 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1311 (token_fifo): Now a std::vector.
1312 (yylex, c_parse): Update.
1313 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1314 (token_fifo): Now a std::vector.
1315 (yylex, d_parse): Update.
1316 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1317 (token_fifo): Now a std::vector.
1318 (yylex, go_parse): Update.
1319
1320 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1321
1322 * parser-defs.h (struct type_stack) <elements>: Change type to
1323 std::vector<union type_stack_elt>.
1324 <depth, size>: Remove.
1325 * parse.c (parse_exp_in_context_1): Adjust.
1326 (type_stack_reserve): Remove.
1327 (check_type_stack_depth): Remove.
1328 (insert_into_type_stack): Adjust to std::vector.
1329 (insert_type): Likewise.
1330 (push_type): Likewise.
1331 (push_type_int): Likewise.
1332 (insert_type_address_space): Likewise.
1333 (pop_type): Likewise.
1334 (pop_type_int): Likewise.
1335 (pop_typelist): Likewise.
1336 (pop_type_stack): Likewise.
1337 (append_type_stack): Likewise.
1338 (push_type_stack): Likewise.
1339 (get_type_stack): Likewise.
1340 (type_stack_cleanup): Likewise.
1341 (push_typelist): Likewise.
1342 (follow_types): Likewise.
1343 (_initialize_parse): Likewise.
1344
1345 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1346
1347 * NEWS: Mention csky target.
1348
1349 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1350 Hafiz Abid Qadeer <abidh@codesourcery.com>
1351 Don Breazeal <donb@codesourcery.com>
1352
1353 * csky-linux-tdep.c: New file.
1354 * csky-tdep.c: Likewise.
1355 * csky-tdep.h: Likewise.
1356 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1357 csky-tdep.o.
1358 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1359 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1360 * configure.tgt: Add csky support.
1361
1362 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1363
1364 * python/py-framefilter.c (py_print_frame): Print frame architecture
1365 when printing on an MI output.
1366
1367 2018-08-27 Tom Tromey <tom@tromey.com>
1368
1369 PR build/23087:
1370 * configure: Rebuild.
1371 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1372
1373 2018-08-27 Tom Tromey <tom@tromey.com>
1374
1375 * aarch64-linux-tdep.c
1376 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1377 casts to int.
1378
1379 2018-08-27 Tom Tromey <tom@tromey.com>
1380
1381 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1382 unsigned.
1383 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1384 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1385 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1386 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1387 unsigned.
1388
1389 2018-08-27 Tom Tromey <tom@tromey.com>
1390
1391 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1392 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1393
1394 2018-08-27 Tom Tromey <tom@tromey.com>
1395
1396 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1397 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1398 ULONGEST_MAX.
1399 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1400 ULONGEST_MAX.
1401 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1402 ULONGEST_MAX.
1403 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1404 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1405 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1406 ULONGEST_MAX.
1407 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1408 (ppc64_linux_sigaction_tramp_frame)
1409 (ppc32_linux_sighandler_tramp_frame)
1410 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1411 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1412 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1413 * mn10300-linux-tdep.c (am33_linux_sigframe)
1414 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1415 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1416 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1417 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1418 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1419 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1420 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1421 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1422 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1423 * microblaze-linux-tdep.c
1424 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1425 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1426 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1427 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1428 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1429 * common/common-types.h (ULONGEST_MAX): New define.
1430 (CORE_ADDR_MAX): Fix formatting.
1431 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1432 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1433 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1434 (arm_linux_rt_sigreturn_tramp_frame)
1435 (arm_eabi_linux_sigreturn_tramp_frame)
1436 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1437 (thumb2_eabi_linux_sigreturn_tramp_frame)
1438 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1439 (arm_linux_restart_syscall_tramp_frame)
1440 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1441 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1442 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1443 ULONGEST_MAX.
1444 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1445
1446 2018-08-27 Tom Tromey <tom@tromey.com>
1447
1448 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1449 CORE_ADDR_MAX.
1450 * mips-tdep.c (mips_deal_with_atomic_sequence)
1451 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1452 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1453 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1454 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1455 CORE_ADDR_MAX.
1456 * aarch64-tdep.c (aarch64_software_single_step): Use
1457 CORE_ADDR_MAX.
1458
1459 2018-08-27 Tom Tromey <tom@tromey.com>
1460
1461 * linespec.c (complete_linespec_component): Add cast to "char".
1462 * completer.c (completion_tracker::build_completion_result): Add
1463 cast to "char".
1464
1465 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1466
1467 * solist.h (struct solist, struct target_so_ops): Fix
1468 indentation.
1469
1470 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1471
1472 * ada-tasks.c (ada_task_info_s): Remove typedef.
1473 (DEF_VEC_O(ada_task_info_s)): Remove.
1474 (struct ada_tasks_inferior_data): Initialize fields.
1475 <task_list>: Make an std::vector.
1476 (get_ada_tasks_inferior_data): Allocate with new.
1477 (ada_get_task_number): Adjust.
1478 (get_task_number_from_id): Likewise.
1479 (valid_task_id): Likewise.
1480 (ada_get_task_info_from_ptid): Likewise.
1481 (iterate_over_live_ada_tasks): Likewise.
1482 (add_ada_task): Likewise.
1483 (read_known_tasks): Likewise.
1484 (ada_build_task_list): Likewise.
1485 (print_ada_task_info): Likewise.
1486 (info_task): Likewise.
1487 (task_command_1): Likewise.
1488
1489 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1490
1491 * ada-lang.c (add_angle_brackets): Return std::string.
1492
1493 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1494
1495 * python/py-threadevent.c (py_get_event_thread): Initialize
1496 pythread.
1497
1498 2018-08-24 Pedro Alves <palves@redhat.com>
1499
1500 * python/py-bpevent.c (create_breakpoint_event_object): Use
1501 copy-initialization.
1502 * python/py-continueevent.c (emit_continue_event): Use
1503 copy-initialization.
1504 * python/py-exitedevent.c (create_exited_event_object): Return a
1505 gdbpy_ref<>.
1506 (emit_exited_event): Use copy-initialization.
1507 * python/py-inferior.c (python_new_inferior)
1508 (python_inferior_deleted, add_thread_object): Use
1509 copy-initialization.
1510 * python/py-infevents.c (create_inferior_call_event_object)
1511 (create_register_changed_event_object)
1512 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1513 (emit_inferior_call_event, emit_memory_changed_event)
1514 (emit_register_changed_event): Use copy-initialization.
1515 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1516 Return a gdbpy_ref<>.
1517 (emit_new_objfile_event): Use copy-initialization.
1518 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1519 (emit_clear_objfiles_event): Use copy-initialization.
1520 * python/py-signalevent.c (create_signal_event_object): Use
1521 copy-initialization.
1522 * python/py-threadevent.c (create_thread_event_object): Use
1523 copy-initialization.
1524
1525 2018-08-24 Pedro Alves <palves@redhat.com>
1526 Simon Marchi <simon.marchi@ericsson.com>
1527
1528 PR gdb/23379
1529 * python/py-continueevent.c: Include "gdbthread.h".
1530 (create_continue_event_object): Add intro comment. Add 'ptid'
1531 parameter. Use it to find thread to pass to
1532 create_thread_event_object.
1533 (emit_continue_event): Pass PTID down to
1534 create_continue_event_object.
1535 * python/py-event.h (py_get_event_thread): Declare.
1536 (create_thread_event_object): Remove default from 'thread'
1537 parameter.
1538 * python/py-stopevent.c (create_stop_event_object): Use
1539 py_get_event_thread.
1540 * python/py-threadevent.c (get_event_thread): Rename to ...
1541 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1542 and use it to find the thread.
1543 (create_thread_event_object): Assert that THREAD isn't null.
1544 Don't find the event thread here.
1545
1546 2018-08-23 Kevin Buettner <kevinb@redhat.com>
1547
1548 * block.h (blockrange, blockranges): New struct declarations.
1549 (struct block): Add new field named `ranges'.
1550 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1551 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1552 macros for accessing ranges in struct block.
1553 (make_blockranges): New declaration.
1554 block.c (make_blockranges): New function.
1555 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1556 for block.
1557 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1558 * blockframe.c (cache_pc_function_block): New static global.
1559 (clear_pc_function_cache): Clear cache_pc_function_block.
1560 (find_pc_partial_function): Move comment to symtab.h. Add
1561 support for non-contiguous blocks.
1562 * cli/cli-cmds.c (block.h): Include.
1563 (print_disassembly): Handle printing of non-contiguous blocks.
1564 (disassemble_current_function): Likewise.
1565 (disassemble_command): Likewise.
1566
1567 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1568 BLOCK_START.
1569 * blockframe.c (get_pc_function_start): Likewise.
1570 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1571 (gcc_symbol_address): Likewise.
1572 * compile/compile-object-run.c (compile_object_run): Likewise.
1573 * compile/compile.c (get_expr_block_and_pc): Likewise.
1574 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1575 (func_addr_to_tail_call_list): Likewise.
1576 * findvar.c (default_read_var_value): Likewise.
1577 * inline-frame.c (inline_frame_this_id): Likewise.
1578 (skip-inline_frames): Likewise.
1579 * infcmd.c (until_next_command): Likewise.
1580 * linespec.c (convert_linespec_to_sals): Likewise.
1581 * parse.c (parse_exp_in_context_1): Likewise.
1582 * printcmd.c (build_address_symbolic): likewise.
1583 (info_address_command): Likewise.
1584 symtab.c (find_function_start_sal): Likewise.
1585 (skip_prologue_sal): Likewise.
1586 (find_function_alias_target): Likewise.
1587 (find_gnu_ifunc): Likewise.
1588 * stack.c (find_frame_funname): Likewise.
1589 * symtab.c (fixup_symbol_section): Likewise.
1590 (find_function_start_sal): Likewise.
1591 (skip_prologue_sal): Likewsie.
1592 (find_function_alias_target): Likewise.
1593 (find_gnu_ifunc): Likewise.
1594 * tracepoint.c (info_scope_command): Likewise.
1595 * value.c (value_fn_field): Likewise.
1596
1597 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1598 in place of find_pc_partial_function.
1599 * blockframe.c (find_function_entry_range_from_pc): New function.
1600 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1601 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1602 for each range in a block.
1603
1604
1605 2018-08-23 Xavier Roirand <roirand@adacore.com>
1606
1607 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1608 incrementation.
1609
1610 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1611
1612 * solib-svr4.c (read_program_headers_from_bfd): Return
1613 gdb::optional<gdb::byte_vector>.
1614 (svr4_exec_displacement): Adjust.
1615
1616 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1617
1618 * solib-svr4.c (read_program_header): Return
1619 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1620 (find_program_interpreter): Return
1621 gdb::optional<gdb::byte_vector>.
1622 (scan_dyntag_auxv): Adjust.
1623 (enable_break): Adjust.
1624 (svr4_exec_displacement): Adjust.
1625
1626 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1627
1628 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1629 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1630
1631 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1632
1633 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1634 string_vprintf.
1635 * guile/scm-utils.c (gdbscm_printf): Likewise.
1636 * serial.c (serial_printf): Likewise.
1637 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1638
1639 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1640
1641 * stack.c (print_frame): Print frame architecture when printing on
1642 an MI output.
1643 * NEWS: Mention new "arch" attribute in frame output.
1644
1645 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1646
1647 * arch/aarch64.h (aarch64_regnum): Update comment.
1648
1649 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1650
1651 * NEWS: Add SVE to 8.2 section.
1652
1653 2018-08-21 Pedro Alves <palves@redhat.com>
1654
1655 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1656 out from gdbscm_parse_function_args.
1657 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1658 gdbscm_parse_function_args_1.
1659
1660 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1661
1662 PR gdb/17816
1663 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1664 operator.
1665
1666 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1667
1668 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1669
1670 2018-08-19 Michael Spang <spang@google.com>
1671
1672 PR gdb/11786
1673 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1674 for PT_TLS segments.
1675
1676 2018-08-18 Kevin Buettner <kevinb@redhat.com>
1677
1678 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1679 dwarf_variable_value.
1680 * dwarf2-frame.c (class dwarf_expr_executor):
1681 Add override for dwarf_variable_value.
1682 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1683 (class symbol_needs_eval_context): Likewise.
1684 (indirect_synthetic_pointer): Add forward declaration.
1685 (sect_variable_value): New function.
1686 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1687 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1688 for DW_OP_GNU_variable_value.
1689
1690 2018-08-16 Tom Tromey <tom@tromey.com>
1691
1692 * top.c (read_command_file): Update.
1693 (command_line_input): Remove "repeat" argument.
1694 * ada-lang.c (get_selections): Update.
1695 * linespec.c (decode_line_2): Update.
1696 * defs.h (command_line_input): Remove argument.
1697 * cli/cli-script.c (read_next_line): Update.
1698 * python/py-gdb-readline.c: Update.
1699
1700 2018-08-17 Tom Tromey <tom@tromey.com>
1701
1702 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1703 command_line_input.
1704
1705 2018-08-15 Tom Tromey <tom@tromey.com>
1706
1707 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1708
1709 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1710
1711 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1712 If used, use find_pc_partial_function to find address range
1713 to disassemble.
1714 * mi/mi-main.c (mi_cmd_list_features): Report
1715 "data-disassemble-a-option" feature.
1716 * NEWS: Mention new -data-disassemble option -a.
1717
1718 2018-08-13 Tom Tromey <tom@tromey.com>
1719
1720 * common/common-defs.h (_FORTIFY_SOURCE): Define.
1721
1722 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1723
1724 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1725 (aarch64_linux_collect_sve_regset): Likewise.
1726 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1727 * regcache.h (regcache_map_entry_size): New function.
1728
1729 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1730
1731 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1732 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1733 (SVE_HEADER_VL_LENGTH): Likewise.
1734 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1735 (SVE_HEADER_FLAGS_LENGTH): Likewise.
1736 (SVE_HEADER_RESERVED_LENGTH): Likewise.
1737 (SVE_HEADER_SIZE_OFFSET): Likewise.
1738 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1739 (SVE_HEADER_VL_OFFSET): Likewise.
1740 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1741 (SVE_HEADER_FLAGS_OFFSET): Likewise.
1742 (SVE_HEADER_RESERVED_OFFSET): Likewise.
1743 (SVE_HEADER_SIZE): Likewise.
1744 (aarch64_linux_core_read_vq): Add function.
1745 (aarch64_linux_core_read_description): Check for SVE section.
1746
1747 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1748
1749 * aarch64-fbsd-tdep.c
1750 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1751 collect_size.
1752 * aarch64-linux-tdep.c
1753 (aarch64_linux_iterate_over_regset_sections): Likewise.
1754 * alpha-linux-tdep.c
1755 (alpha_linux_iterate_over_regset_sections):
1756 * alpha-nbsd-tdep.c
1757 (alphanbsd_iterate_over_regset_sections): Likewise.
1758 * amd64-fbsd-tdep.c
1759 (amd64fbsd_iterate_over_regset_sections): Likewise.
1760 * amd64-linux-tdep.c
1761 (amd64_linux_iterate_over_regset_sections): Likewise.
1762 * arm-bsd-tdep.c
1763 (armbsd_iterate_over_regset_sections): Likewise.
1764 * arm-fbsd-tdep.c
1765 (arm_fbsd_iterate_over_regset_sections): Likewise.
1766 * arm-linux-tdep.c
1767 (arm_linux_iterate_over_regset_sections): Likewise.
1768 * corelow.c (get_core_registers_cb): Likewise.
1769 (core_target::fetch_registers): Likewise.
1770 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1771 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1772 * gdbarch.h (void): Regenerate.
1773 * gdbarch.sh: Add supply_size and collect_size.
1774 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1775 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1776 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1777 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1778 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1779 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1780 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1781 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1782 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1783 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1784 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1785 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1786 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1787 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1788 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1789 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1790 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1791 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1792 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1793 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1794 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1795 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1796 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1797 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1798 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1799 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1800 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1801 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1802 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1803 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1804
1805 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
1806
1807 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1808 with string_printf.
1809
1810 2018-08-10 Keith Seitz <keiths@redhat.com>
1811
1812 * compile/compile-c-support.c (add_code_header, add_code_footer):
1813 Move into policy class.
1814 (c_push_user_expression, pop_user_expression_nop)
1815 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1816 (compile_program): New host class.
1817 (c_compile_program): New typedef.
1818 (c_compute_porgram): Use c_compile_program.
1819
1820 2018-08-10 Keith Seitz <keiths@redhat.com>
1821
1822 * compile/compile-internal.h (compile_instance::~compile_instance):
1823 Remove calls to htab_delete.
1824 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1825 * compile.c (compile_instance::compile_instance): Initialize
1826 htab unique pointers.
1827 (compile_instance::get_cached_type, compile_instance::insert_type)
1828 (compile_instance::error_symbol_once): Update for unique_ptr.
1829
1830 2018-08-10 Keith Seitz <keiths@redhat.com>
1831
1832 * compile/compile-c-symbols.c (struct symbol_error)
1833 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1834 (compile_instance::insert_symbol_error)
1835 (compile_instance::error_symbol_once): Move to ...
1836 * compile/compile.c: ... here.
1837
1838 2018-08-10 Keith Seitz <keiths@redhat.com>
1839
1840 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1841 instead of `new_compile_instance'.
1842 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1843 Update description.
1844 If the symbol error map is not initialized, create it.
1845 (generate_c_for_for_one_symbol): Do not check/initialize
1846 the symbol error map.
1847 * compile/compile-c-types.c (compile_c_instance): Make a class.
1848 Update all callers.
1849 (compile_instance::compile_instance): Initialize the type cache.
1850 (get_cached_type): New function.
1851 (insert_type): Update description.
1852 (compile_c_instance::m_default_cflags): Define.
1853 (convert_type): Update description. Use get_cached_type.
1854 (delete_instance): Moved to destructor.
1855 (new_compile_instance): Moved to constructor.
1856 * compile/compile-c.h (compile_c_instance): Make class inheriting
1857 from compile_instance.
1858 <base>: Remove field.
1859 <type_map, symbol_err_map>: Move to base class.
1860 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1861 * compile/compile-internal.h (compile_instance): Make class.
1862 <type_map_t, symbol_err_map_t>: Define.
1863 <fe>: Rename to `m_gcc_fe'.
1864 <scope, block, gcc_target_options>: Add `m_' prefix.
1865 <m_type_map, m_symbol_err_map>: New fields, moved from
1866 compile_c_instance.
1867 <destroy>: Remove.
1868 (convert_type, new_compile_instance): Remove.
1869 * compile/compile.c (cleanup_compile_instance): Remove.
1870 (compile_to_object): Use unique_ptr to eliminate cleanups.
1871 (compile_instance::set_print_callback, compile_instance::version)
1872 (compile_instance::set_verbose)
1873 (compile_instance::set_driver_filename)
1874 (compile_instance::set_triplet_regexp)
1875 (compile_instance::set_arguments)
1876 (compile_instance::set_source_file)
1877 (compile_instance::compile): Define.
1878
1879 2018-08-10 Keith Seitz <keiths@redhat.com>
1880
1881 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1882 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1883 gcc-c-fe.def to define C plugin.
1884 (delete_instance): Delete `c_plugin'.
1885 (new_compile_instance): Initialize `c_plugin'.
1886 * compile/compile-c.h: Include gcc_c_plugin.h.
1887 (struct compile_c_instance) <c_plugin>: New member.
1888 * gcc-c-plugin.h: New file.
1889 Update all callers with API change.
1890
1891 2018-08-10 Keith Seitz <keiths@redhat.com>
1892
1893 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1894 (HFILES_NO_SRCDIR): ... to here.
1895 Add compile-internal.h and compile-c.h.
1896 * compile/compile-c-support.c: Include compile-c.h.
1897 * compile/compile-c-symbols.c: Include compile-c.h.
1898 (generate_c_for_variable_locations): Update comment.
1899 * compile/compile-c-types.c: Include compile-c.h.
1900 * compile/compile-c.h: New file -- moved C language declarations
1901 from other files here.
1902 * compile/compile-internal.h: Do not include hashtab.h or
1903 common/enum-flags.h.
1904 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1905 (gcc_convert_symbol, gcc_symbol_address)
1906 (generate_c_for_variable_locations, c_get_mode_for_size)
1907 (c_get_range_decl_name): Definitions moved to compile-c.h.
1908 * compile/compile-loc2c.c: Include compile-c.h.
1909
1910 2018-08-10 Keith Seitz <keiths@redhat.com>
1911
1912 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1913 (c_symbol_substitution_name): ... this.
1914 Update all callers.
1915
1916 2018-08-10 Keith Seitz <keiths@redhat.com>
1917
1918 * compile/compile-c-support.c (c_compute_program): Use
1919 unique_xmalloc_ptr to eliminate cleanup.
1920 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1921 Return a unique_xmalloc_ptr and eliminate cleanup.
1922 * compile/compile-internal.h (generate_c_for_variable_locations):
1923 Return unique_xmalloc_ptr and update description.
1924
1925 2018-08-10 Alan Hayward <alan.hayward@arm.com>
1926
1927 * corelow.c (core_target::get_core_register_section): Rename
1928 min_size to section_min_size.
1929
1930 2018-08-09 Jim Wilson <jimw@sifive.com>
1931
1932 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1933 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1934 * NEWS: Mention new GNU/Linux RISC-V target.
1935 * configure.host: Add riscv*-*-linux*.
1936 * configure.nat: Add riscv*.
1937 * configure.tgt: Add riscv*-*-linux*.
1938 * riscv-linux-nat.c: New file.
1939 * riscv-linux-tdep.c: New file.
1940
1941 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1942
1943 * infrun.c (resume): Make static, add forward declaration.
1944 (proceed): Update header comment.
1945 * infrun.h (resume): Delete declaration.
1946
1947 2018-08-09 Tom Tromey <tom@tromey.com>
1948
1949 * riscv-tdep.h: Minor formatting fixes.
1950
1951 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
1952
1953 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
1954 * dwarf-index-cache.c (create_dir_and_check): Likewise.
1955 (test_mkdir_recursive): Likewise.
1956 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
1957
1958 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1959
1960 * valarith.c (value_subscripted_rvalue): If an array is not in
1961 memory, and we don't know the upper bound, then we can't know that
1962 the requested element exists or not.
1963
1964 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
1965
1966 * target.c (str_comma_list_concat_elem): Fix typo in comment.
1967 (target_options_to_string): Add comment.
1968
1969 2018-08-08 Tom Tromey <tom@tromey.com>
1970
1971 * unittests/scoped_mmap-selftests.c: Check result of "write".
1972
1973 2018-08-08 Jim Wilson <jimw@sifive.com>
1974
1975 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
1976 (decode_register_index_short): New.
1977 (decode_j_type_insn, decode_cj_type_insn): New.
1978 (decode_b_type_insn, decode_cb_type_insn): New.
1979 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
1980 local xlen. Check xlen when decoding ambiguous compressed insns. In
1981 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
1982 is_c_sw_insn instead of is_sw_insn.
1983 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
1984 (riscv_software_single_step): New.
1985 * riscv-tdep.h (riscv_software_single_step): Declare.
1986
1987 * riscv-tdep.c (riscv_isa_xlen): Drop static.
1988 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
1989
1990 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
1991
1992 PR gdb/18050:
1993 * target.c (dispose_inferior): Don't dispose of inferiors that are
1994 already killed.
1995
1996 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1997
1998 * remote.c (remote_target::download_tracepoint): Change char* to
1999 const char*.
2000
2001 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2002
2003 * target.h (target_options_to_string): Return an std::string.
2004 * target.c (str_comma_list_concat_elem): Return void, use
2005 std::string.
2006 (do_option): Likewise.
2007 (target_options_to_string): Return an std::string.
2008 * linux-nat.c (linux_nat_target::wait): Adjust.
2009 * target-debug.h (target_debug_print_options): Adjust.
2010
2011 2018-08-07 Tom Tromey <tom@tromey.com>
2012
2013 * Makefile.in (CPPFLAGS): New variable.
2014 (INTERNAL_CPPFLAGS): Use it.
2015
2016 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2017
2018 * NEWS: Mention the index cache.
2019
2020 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2021
2022 * common/pathstuff.h (get_standard_cache_dir): New.
2023 * common/pathstuff.c (get_standard_cache_dir): New.
2024 * build-id.h (build_id_to_string): New.
2025 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2026 DEBUG_STR_SUFFIX): Move to here.
2027 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2028 DEBUG_STR_SUFFIX): Move from there.
2029 (write_psymtabs_to_index): Make non-static, add basename
2030 parameter. Write to temporary files, rename when done.
2031 (save_gdb_index_command): Adjust call to
2032 write_psymtabs_to_index.
2033 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2034 field.
2035 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2036 (get_gdb_index_contents_from_cache): New.
2037 (get_gdb_index_contents_from_cache_dwz): New.
2038 (dwarf2_initialize_objfile): Read index from cache.
2039 (dwarf2_build_psymtabs): Save to index.
2040 * dwarf-index-cache.h: New file.
2041 * dwarf-index-cache.c: New file.
2042 * dwarf-index-write.h: New file.
2043
2044 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2045
2046 * gnulib/aclocal.m4: Re-generate.
2047 * gnulib/config.in: Re-generate.
2048 * gnulib/configure: Re-generate.
2049 * gnulib/import/Makefile.am: Re-generate.
2050 * gnulib/import/Makefile.in: Re-generate.
2051 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2052 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2053 * gnulib/import/m4/mkdir.m4: New file.
2054 * gnulib/import/mkdir.c: New file.
2055 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2056 module.
2057
2058 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2059
2060 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2061 * common/scoped_mmap.c: New file.
2062 * common/scoped_mmap.h (destroy): New method.
2063 (~scoped_mmap, reset): Use destroy.
2064 (scoped_mmap): New move constructor.
2065 (mmap_file): New declaration.
2066 * unittests/scoped_mmap-selftests.c (test_normal,
2067 test_invalid_filename, run_tests): New functions.
2068 (_initialize_scoped_mmap_selftests): Register selftest.
2069
2070 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2071
2072 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2073 (read_gdb_index_from_buffer): ... this. Remove section
2074 parameter, add buffer parameter.
2075 (get_gdb_index_contents_ftype,
2076 get_gdb_index_contents_dwz_ftype): New typedefs.
2077 (dwarf2_read_gdb_index): Add callback parameters to get the
2078 index contents.
2079 (get_gdb_index_contents_from_section): New.
2080 (dwarf2_initialize_objfile): Update call to
2081 dwarf2_read_gdb_index.
2082
2083 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2084
2085 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2086 (gdb_open_cloexec): Likewise.
2087 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2088 (commandline_from_pid): Likewise.
2089 (linux_xfer_osdata_threads): Likewise.
2090 (linux_xfer_osdata_fds): Likewise.
2091 * ada-lang.c (is_package_name): Likewise.
2092 * auxv.c (procfs_xfer_auxv): Likewise.
2093 * breakpoint.c (print_one_breakpoint_location): Use
2094 uiout::field_fmt.
2095 (print_one_catch_solib): Use string_printf.
2096 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2097 (add_pe_forwarded_sym): Likewise.
2098 * dwarf2read.c (create_type_unit_group): Likewise.
2099 (build_error_marker_type): Likewise.
2100 * infcall.c (get_function_name): Likewise.
2101 * valprint.c (print_converted_chars_to_obstack): Likewise.
2102 * xtensa-tdep.c (xtensa_register_type): Likewise.
2103
2104 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2105
2106 * remote.c (remote_target::download_tracepoint): Fix format
2107 string errors.
2108
2109 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2110
2111 * tracefile.c: Include common/byte-vector.h.
2112 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2113 with trace_regblock_size if needed. Update uses of buf.
2114
2115 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2116
2117 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2118 std::vector<unsigned char>.
2119 * tracepoint.c (collection_list::collection_list): Remove
2120 m_regs_mask initializer from initializer list. Resize
2121 m_regs_mask using the largest remote register number.
2122 (collection_list::add_remote_register): Remove size check on
2123 m_regs_mask. Use at to access element.
2124 (collection_list::stringify): Change type of temp_buf to
2125 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2126 stringify the register mask. Use pack_hex_byte for the register
2127 mask.
2128
2129 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2130
2131 * tracepoint.h (class collection_list) <add_register>: Remove.
2132 <add_remote_register, add_ax_registers, add_local_register>:
2133 Declare.
2134 <add_memrange>: Add scope parameter.
2135 * tracepoint.c (encode_actions_1): Likewise.
2136 (collection_list::add_register): Rename to ...
2137 (collection_list::add_remote_register): ... this. Update
2138 comment.
2139 (collection_list::add_ax_registers, add_local_register): New
2140 methods.
2141 (collection_list::add_memrange): Add scope parameter. Call
2142 add_local_register instead of add_register.
2143 (finalize_tracepoint_aexpr): New function.
2144 (collection_list::collect_symbol): Update calls to add_memrange.
2145 Call add_local_register instead of add_register. Call
2146 add_ax_registers. Call finalize_tracepoint_aexpr.
2147 (encode_actions_1): Get remote regnos for $reg action. Call
2148 add_remote_register, add_ax_registers, and add_local_register.
2149 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2150 (validate_actionline): Call finalize_tracepoint_aexpr.
2151
2152 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2153
2154 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2155 Replace array buf with gdb::char_vector buf, of size
2156 get_remote_packet_size (). Replace references to buf and
2157 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2158 and xsnprintf with snprintf. Raise errors if the buffer is too
2159 small.
2160
2161 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2162
2163 * remote.c (remote_target::download_tracepoint): Fix the has_more
2164 predicate in the QTDP action list iteration.
2165
2166 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2167
2168 * remote.c (remote_target::download_tracepoint): Fix indentation
2169 in for block.
2170
2171 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2172
2173 * proc-api.c (_initialize_proc_api): Remove c, unused.
2174 * procfs.c (procfs_init_inferior): Remove signals, unused.
2175 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2176 unused.
2177
2178 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2179 Andrew Burgess <andrew.burgess@embecosm.com>
2180
2181 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2182 'W_STOPCODE (0)' as this could be ambiguous.
2183
2184 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2185
2186 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2187 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2188 "ai_socktype").
2189
2190 2018-08-02 Tom Tromey <tom@tromey.com>
2191
2192 PR symtab/16842.
2193 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2194 symbols.
2195 (process_structure_scope): Likewise.
2196
2197 2018-08-02 Xavier Roirand <roirand@adacore.com>
2198
2199 PR gdb/22629:
2200 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2201 kill inferior.
2202
2203 2018-08-02 Tom Tromey <tom@tromey.com>
2204
2205 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2206 (darwin_suspend_inferior, darwin_resume_inferior)
2207 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2208 (darwin_check_new_threads): Check result of get_darwin_inferior.
2209
2210 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2211
2212 GDB 8.1.1 released.
2213
2214 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2215
2216 * varobj.c (varobj_get_path_expr_parent): Report an error if
2217 parent is a dynamic varobj.
2218
2219 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2220
2221 * gnulib/aclocal.m4: Re-generate.
2222 * gnulib/config.in: Re-generate.
2223 * gnulib/configure: Re-generate.
2224 * gnulib/import/Makefile.in: Re-generate.
2225 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2226 * gnulib/import/m4/onceonly.m4: Re-generate.
2227
2228 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2229
2230 * target-descriptions.c (struct xml_test_tdesc): New.
2231 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2232 (record_xml_tdesc): Update.
2233 (maintenance_check_xml_descriptions): Update.
2234 * target-descriptions.h (record_xml_tdesc): Update comment.
2235
2236 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2237
2238 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2239 checking array bounds are defined.
2240
2241 2018-07-30 Tom Tromey <tom@tromey.com>
2242
2243 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2244 irreflexivity violation.
2245
2246 2018-07-30 Tom Tromey <tom@tromey.com>
2247
2248 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2249 * value.c (unpack_long): Remove lint code.
2250 * valops.c (value_ind): Remove lint code.
2251 * valarith.c (value_x_binop, value_x_unop, value_equal)
2252 (value_pos): Remove lint code.
2253
2254 2018-07-28 Tom de Vries <tdevries@suse.de>
2255
2256 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2257 with undefined upper bound as <optimized out>.
2258
2259 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2260
2261 * gcore.in: Rename variable "name" to "prefix". Expand
2262 "usage" text.
2263
2264 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2265
2266 * windows-nat.c (windows_nat_target::create_inferior): Update to
2267 call close() in global namespace.
2268
2269 2018-07-26 Tom Tromey <tom@tromey.com>
2270
2271 * dwarf-index-write.c (add_address_entry): Don't add objfile
2272 offsets.
2273 * dbxread.c (find_stab_function): Rename from
2274 find_stab_function_addr. Return a bound_minimal_symbol.
2275 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2276 Don't add objfile offsets.
2277 (end_psymtab): Use raw_text_low, raw_text_high,
2278 MSYMBOL_VALUE_RAW_ADDRESS.
2279 (read_ofile_symtab): Update.
2280 (process_one_symbol): Update.
2281 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2282 offsets.
2283 (dw2_relocate): Remove.
2284 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2285 searching addrmap.
2286 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2287 Update.
2288 (process_psymtab_comp_unit_reader, add_partial_symbol)
2289 (add_partial_subprogram, dwarf2_ranges_read): Update.
2290 (load_partial_dies): Update.
2291 (add_address_entry): Don't add objfile offsets.
2292 (dwarf2_build_include_psymtabs): Update.
2293 (create_addrmap_from_aranges): Don't add objfile offsets.
2294 (dw2_find_pc_sect_compunit_symtab): Update.
2295 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2296 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2297 Update.
2298 (parse_partial_symbols): Don't add objfile offsets. Use
2299 raw_text_low, raw_text_high. Update.
2300 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2301 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2302 or call 'relocate' quick function. Clear psymbol_map.
2303 * psympriv.h (struct partial_symbol) <address>: Add section
2304 offset.
2305 <set_unrelocated_address>: Rename from set_address.
2306 <raw_text_low, raw_text_high>: New methods.
2307 <text_low, text_high>: Add objfile parameter.
2308 (add_psymbol_to_bcache): Add 'section' parameter. Call
2309 set_unrelocated_address.
2310 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2311 (find_pc_psymbol): Update.
2312 (fixup_psymbol_section, relocate_psymtabs): Remove.
2313 (dump_psymtab, psym_functions): Update.
2314 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2315 parameter.
2316 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2317 (start_psymtab_common): Update.
2318 * symfile-debug.c (debug_qf_relocate): Remove.
2319 (debug_sym_quick_functions): Update.
2320 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2321 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2322 Update.
2323
2324 2018-07-26 Tom Tromey <tromey@redhat.com>
2325
2326 * dbxread.c (end_psymtab): Use text_high_valid and
2327 text_low_valid.
2328 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2329 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2330 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2331 Update comment.
2332 <text_low_valid, text_high_valid>: New fields.
2333 <set_text_low, set_text_high>: Update.
2334 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2335
2336 2018-07-26 Tom Tromey <tom@tromey.com>
2337
2338 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2339 Update.
2340 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2341 textlow and texthigh fields.
2342 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2343 Update.
2344 * mdebugread.c (parse_lines, parse_partial_symbols)
2345 (psymtab_to_symtab_1): Update.
2346 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2347 Rename fields. Update comment. Now private.
2348 <text_low, text_high, set_text_low, set_text_high>: New methods.
2349 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2350 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2351 (start_psymtab_common, maintenance_info_psymtabs)
2352 (maintenance_check_psymtabs): Update.
2353 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2354 texthigh fields.
2355 (scan_xcoff_symtab): Update.
2356
2357 2018-07-26 Tom Tromey <tromey@redhat.com>
2358
2359 * psympriv.h (struct partial_symbol) <unrelocated_address,
2360 address, set_address>: New methods.
2361 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2362 (fixup_psymbol_section, relocate_psymtabs): Update.
2363 (print_partial_symbols): Add 'objfile' parameter. Update.
2364 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2365 Update.
2366
2367 2018-07-26 Tom Tromey <tom@tromey.com>
2368
2369 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2370 (debug_names::write_psymbols): Update.
2371 * psympriv.h (struct partial_symbol): Derive from
2372 general_symbol_info.
2373 <obj_section>: New method.
2374 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2375 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2376 (find_pc_sect_psymbol, fixup_psymbol_section)
2377 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2378 (print_partial_symbols, recursively_search_psymtabs)
2379 (compare_psymbols, psymbol_hash, psymbol_compare)
2380 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2381 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2382
2383 2018-07-26 Tom Tromey <tromey@redhat.com>
2384
2385 * dbxread.c (end_psymtab): Remove dead code.
2386
2387 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2388
2389 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2390 DWARF unwinders are disabled.
2391 * dwarf2-frame.c: Add dwarf2read.h include.
2392 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2393 disabled.
2394 (dwarf2_frame_unwinders_enabled_p): Define.
2395 (show_dwarf_unwinders_enabled_p): New function.
2396 (_initialize_dwarf2_frame): Register switch to control DWARF
2397 unwinder use.
2398 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2399 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2400 (show_dwarf_cmdlist): Remove static keyword.
2401 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2402 (show_dwarf_cmdlist): Declare.
2403 * NEWS: Document new feature.
2404
2405 2018-07-26 Tom de Vries <tdevries@suse.de>
2406
2407 PR breakpoints/23366
2408 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2409
2410 2018-07-26 Tom de Vries <tdevries@suse.de>
2411
2412 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2413 DW_AT_count can't be translated to a dynamic prop.
2414
2415 2018-07-25 Tom de Vries <tdevries@suse.de>
2416
2417 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2418 try/catch.
2419
2420 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2421
2422 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2423
2424 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2425
2426 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2427
2428 2018-07-24 Keith Seitz <keiths@redhat.comt
2429
2430 PR symtab/23010
2431 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2432 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2433 instead of add_symbol_to_list.
2434 (read_file_scope): Call prepare_one_comp_unit before reading
2435 any other DIEs.
2436
2437 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2438
2439 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2440
2441 2018-07-24 Tom Tromey <tom@tromey.com>
2442
2443 * utils.c (malloc, realloc, free): Don't declare.
2444 * configure, config.in: Rebuild.
2445 * configure.ac: Don't check for declarations of free, malloc, or
2446 realloc.
2447
2448 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2449
2450 * aarch64-linux-nat.c
2451 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2452 variable.
2453 * arm-linux-nat.c (fetch_regs): Likewise.
2454 (store_regs): Likewise.
2455 (fetch_vfp_regs): Likewise.
2456 (store_vfp_regs): Likewise.
2457 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2458 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2459 (arm_linux_nat_target::insert_watchpoint): Likewise.
2460 (arm_linux_nat_target::remove_watchpoint): Likewise.
2461 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2462 Likewise.
2463 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2464 Likewise.
2465 * ppc-linux-nat.c (fetch_register): Likewise.
2466 (fetch_all_gp_regs): Likewise.
2467 (fetch_ppc_registers): Likewise.
2468 (store_all_gp_regs): Likewise.
2469 (store_ppc_registers): Likewise.
2470 (hwdebug_insert_point): Likewise.
2471 (can_use_watchpoint_cond_accel): Likewise.
2472 * remote-sim.c (gdb_os_write_stdout): Likewise.
2473
2474 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2475 Tom Tromey <tom@tromey.com>
2476
2477 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2478 test for it.
2479 * configure: Rebuild.
2480
2481 2018-07-22 Tom Tromey <tom@tromey.com>
2482
2483 * regformats/regdat.sh: Define xmltarget_${name} inside
2484 #ifndef IN_PROCESS_AGENT.
2485
2486 2018-07-22 Tom Tromey <tom@tromey.com>
2487
2488 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2489
2490 2018-07-22 Tom Tromey <tom@tromey.com>
2491
2492 * symfile.c (reread_symbols): Notify iter, not objfile.
2493
2494 2018-07-22 Tom Tromey <tom@tromey.com>
2495
2496 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2497 Use arch_ops.
2498 (ravenscar_thread_target::prepare_to_store): Likewise.
2499
2500 2018-07-22 Tom Tromey <tom@tromey.com>
2501
2502 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2503 unused variable. Call value_fetch_lazy when needed.
2504 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2505 Remove unused variable. Call value_fetch_lazy when needed.
2506
2507 2018-07-22 Tom Tromey <tom@tromey.com>
2508
2509 * m32c-tdep.c (mark_dma): Return void.
2510 (make_regs): Remove unused declarations.
2511
2512 2018-07-22 Tom Tromey <tom@tromey.com>
2513
2514 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2515 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2516 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2517 bkscm_get_valid_block_smob_arg_unsafe for effect.
2518
2519 2018-07-22 Tom Tromey <tom@tromey.com>
2520
2521 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2522 value_type.
2523
2524 2018-07-22 Tom Tromey <tom@tromey.com>
2525
2526 * windows-nat.c (saved_context): Conditionally define.
2527 * remote.c (remote_target::remote_btrace_maybe_reopen):
2528 Conditionally declare "warned".
2529 * inflow.c (sigquit_ours): Conditionally define.
2530 (new_tty): Move "tty" declaration inside #if.
2531 * guile/guile.c (guile_datadir): Conditionally define.
2532 * charset.c (set_be_le_names): Move some declarations inside #if.
2533 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2534 #if.
2535 (parse_xml_btrace_conf): Likewise.
2536
2537 2018-07-22 Tom Tromey <tom@tromey.com>
2538
2539 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2540
2541 2018-07-22 Tom Tromey <tom@tromey.com>
2542
2543 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2544 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2545 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2546 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2547 * stack.c (frame_apply_level_command): Remove unused variable.
2548 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2549 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2550 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2551 unused variable.
2552 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2553 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2554 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2555 variable.
2556 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2557 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2558 variable.
2559 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2560 Remove unused variable.
2561 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2562 variable.
2563 * common/tdesc.c (print_xml_feature::visit): Remove unused
2564 variable.
2565 * compile/compile-object-load.c (store_regs): Remove unused
2566 variables.
2567 * complaints.c (clear_complaints): Remove unused variable.
2568 * corelow.c (core_target_open): Remove unused variable.
2569 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2570 variable.
2571 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2572 variable.
2573 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2574 variable.
2575 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2576 variable.
2577 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2578 variable.
2579 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2580 variable.
2581 * ia64-tdep.c (examine_prologue): Remove unused variable.
2582 * infcall.c (run_inferior_call): Remove unused variable.
2583 * inferior.c (exit_inferior): Remove unused variable.
2584 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2585 * linespec.c (decode_line_2): Remove unused variable.
2586 * linux-nat.c (super_close): Remove.
2587 * linux-tdep.c (linux_info_proc): Remove unused variable.
2588 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2589 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2590 Remove unused variable.
2591 * parse.c (find_minsym_type_and_address): Remove unused variable.
2592 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2593 variable.
2594 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2595 variable.
2596 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2597 variables.
2598 * record-btrace.c (record_btrace_target::store_registers): Remove
2599 unused variable.
2600 (cmd_show_record_btrace_cpu): Remove unused variable.
2601 * riscv-tdep.c (riscv_register_reggroup_p)
2602 (riscv_push_dummy_call, riscv_return_value): Remove unused
2603 variable.
2604 * rust-exp.y (literal): Remove unused variable.
2605 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2606 unused variable.
2607 <STRUCTOP_ANONYMOUS>: Likewise.
2608 * s390-linux-tdep.c (s390_linux_init_abi_31)
2609 (s390_linux_init_abi_64): Remove unused variable.
2610 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2611 (file_select_thread, net_windows_open, _initialize_ser_windows):
2612 Remove unused variables.
2613 * symtab.c (find_pc_sect_line): Remove unused variable.
2614 * target-memory.c (compute_garbled_blocks): Remove unused
2615 variable.
2616 (target_write_memory_blocks): Remove unused variable.
2617 * target.c (target_stack::unpush): Remove unused variables.
2618 * tracepoint.c (start_tracing, all_tracepoint_actions)
2619 (merge_uploaded_trace_state_variables)
2620 (print_one_static_tracepoint_marker): Remove unused variable.
2621 * unittests/basic_string_view/element_access/char/1.cc (test01):
2622 Remove unused variable.
2623 * windows-nat.c (windows_continue, windows_add_all_dlls)
2624 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2625 Remove unused variables.
2626
2627 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2628
2629 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2630 attr_profile in HAVE_ELF.
2631 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2632 HAVE_ELF.
2633
2634 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2635
2636 * frame.c (frame_register_unwind): Change parameter name.
2637 (frame_unwind_register): Likewise.
2638 (frame_unwind_register_value): Likewise.
2639 (frame_unwind_register_signed): Likewise.
2640 (frame_unwind_register_unsigned): Likewise.
2641 * frame.h (frame_register_unwind): Likewise.
2642 (frame_unwind_register): Likewise.
2643 (frame_unwind_register_value): Likewise.
2644 (frame_unwind_register_signed): Likewise.
2645 (frame_unwind_register_unsigned): Likewise.
2646 (frame_unwind_arch): Likewise.
2647
2648 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2649
2650 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2651 ISA maintenance.
2652
2653 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2654
2655 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2656 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2657 hand.
2658
2659 2018-07-20 Keith Seitz <keiths@redhat.com>
2660
2661 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2662 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2663 m_compunit_symtab, m_language>: Add "m_" prefix.
2664 Update all uses.
2665 * buildsym.c: Update all uses.
2666
2667 2018-07-20 Tom Tromey <tom@tromey.com>
2668
2669 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2670 * buildsym.h (record_line_ftype): Remove typedef.
2671
2672 2018-07-20 Tom Tromey <tom@tromey.com>
2673
2674 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2675 (end_expandable_symtab): Likewise.
2676 (end_symtab_get_static_block): Likewise.
2677 (end_symtab_from_static_block): Likewise.
2678 * buildsym-legacy.c (augment_type_symtab): Remove.
2679 (end_expandable_symtab): Remove.
2680 (end_symtab_get_static_block): Remove.
2681 (end_symtab_from_static_block): Remove.
2682
2683 2018-07-20 Tom Tromey <tom@tromey.com>
2684
2685 * dwarf2read.c: Include buildsym.h.
2686 (struct dwarf2_cu) <builder>: New method.
2687 (fixup_go_packaging): Update.
2688 (process_full_comp_unit, process_full_type_unit): Update. Don't
2689 use scoped_free_pendings.
2690 (using_directives): Add "cu" parameter, remove "language".
2691 (read_import_statement, setup_type_unit_groups, )
2692 (read_func_scope, read_lexical_block_scope)
2693 (dwarf2_record_block_ranges, read_namespace): Update.
2694 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2695 (lnp_state_machine::handle_end_sequence): Update.
2696 (class lnp_state_machine) <m_cu>: New member.
2697 <m_record_line_callback>: Remove.
2698 <m_currently_recording_lines>: New member.
2699 (lnp_state_machine::handle_set_file): Update.
2700 (noop_record_line): Remove.
2701 (dwarf_record_line_p): Add cu parameter.
2702 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2703 (lnp_state_machine::record_line)
2704 (lnp_state_machine::lnp_state_machine)
2705 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2706 (dwarf_decode_lines): Update.
2707 (dwarf2_start_subfile): Add cu parameter.
2708 (dwarf2_start_symtab, new_symbol): Update.
2709 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2710 Remove dwarf2_per_objfile parameter.
2711 (dwarf_decode_macros): Update.
2712
2713 2018-07-20 Tom Tromey <tom@tromey.com>
2714
2715 * stabsread.c (define_symbol): Update.
2716 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2717 * dwarf2read.c (new_symbol): Update.
2718 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2719 * cp-namespace.c: Include buildsym.h.
2720 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2721 * buildsym-legacy.c (get_buildsym_compunit): New function.
2722
2723 2018-07-20 Tom Tromey <tom@tromey.com>
2724
2725 * xcoffread.c: Include buildsym-legacy.h.
2726 * windows-nat.c: Include buildsym-legacy.h.
2727 * stabsread.c: Include buildsym-legacy.h.
2728 * mdebugread.c: Include buildsym-legacy.h.
2729 * buildsym-legacy.h: New file.
2730 * buildsym-legacy.c: New file, from buildsym.c.
2731 * go32-nat.c: Include buildsym-legacy.h.
2732 * dwarf2read.c: Include buildsym-legacy.h.
2733 * dbxread.c: Include buildsym-legacy.h.
2734 * cp-namespace.c: Include buildsym-legacy.h.
2735 * coffread.c: Include buildsym-legacy.h.
2736 * buildsym.h: Move some contents to buildsym-legacy.h.
2737 * buildsym.c: Include buildsym-legacy.h. Move many functions to
2738 buildsym-legacy.c.
2739 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2740
2741 2018-07-20 Tom Tromey <tom@tromey.com>
2742
2743 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2744 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2745 (buildsym_compunit::buildsym_compunit)
2746 (buildsym_compunit::~buildsym_compunit)
2747 (buildsym_compunit::get_macro_table): Define.
2748
2749 2018-07-20 Tom Tromey <tom@tromey.com>
2750
2751 * buildsym.c (reset_symtab_globals): Remove.
2752 (buildsym_compunit::end_symtab_from_static_block): Update.
2753 (buildsym_compunit::augment_type_symtab): Update.
2754 (end_symtab_from_static_block): Call free_buildsym_compunit.
2755 (augment_type_symtab, end_symtab, end_expandable_symtab):
2756 Likewise.
2757
2758 2018-07-20 Tom Tromey <tom@tromey.com>
2759
2760 * arch-utils.c: Do not include buildsym.h.
2761 * mipsread.c: Do not include buildsym.h.
2762 * machoread.c: Do not include buildsym.h.
2763 * elfread.c: Do not include buildsym.h.
2764
2765 2018-07-20 Tom Tromey <tom@tromey.com>
2766
2767 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2768 initialization.
2769 (buildsym_compunit): Add new constructor.
2770 (struct buildsym_compunit) <get_last_source_file, finish_block,
2771 record_block_range, start_subfile, patch_subfile_names,
2772 push_subfile, pop_subfile, record_line, get_compunit_symtab,
2773 set_last_source_start_addr, get_last_source_start_addr,
2774 get_local_using_directives, set_local_using_directives,
2775 get_global_using_directives, outermost_context_p,
2776 get_current_context_stack, get_context_stack_depth,
2777 get_current_subfile, get_local_symbols, get_file_symbols,
2778 get_global_symbols, record_debugformat, record_producer,
2779 push_context, pop_context, end_symtab_get_static_block,
2780 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2781 New public methods.
2782 <record_pending_block, finish_block_internal, make_blockvector,
2783 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2784 private methods.
2785 Update all users.
2786
2787 2018-05-22 Tom Tromey <tom@tromey.com>
2788
2789 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2790 parameter.
2791 (finish_block_internal): Update.
2792
2793 2018-07-20 Tom Tromey <tom@tromey.com>
2794
2795 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2796 parameter.
2797 (finish_block_internal): Update.
2798
2799 2018-07-20 Tom Tromey <tom@tromey.com>
2800
2801 * buildsym.h (EXTERN): Don't define or undef.
2802 * buildsym.c (EXTERN): Don't define.
2803
2804 2018-07-20 Tom Tromey <tom@tromey.com>
2805
2806 * buildsym.c: Remove TODO comment.
2807
2808 2018-07-20 Tom Tromey <tom@tromey.com>
2809
2810 * coffread.c (coff_symtab_read): Update.
2811 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2812 (xcoff_new_init): Update.
2813 * mipsread.c (mipscoff_new_init): Update.
2814 * mdebugread.c (mdebug_build_psymtabs): Update.
2815 * elfread.c (elf_new_init): Update.
2816 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2817 Update.
2818 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2819 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2820 (stabsect_build_psymtabs): Update.
2821 * buildsym.h (buildsym_init): Don't declare.
2822 * buildsym.c: Update comment.
2823 (prepare_for_building): Remove.
2824 (start_symtab, restart_symtab): Update.
2825 (reset_symtab_globals): Update comment.
2826 (buildsym_init): Remove.
2827
2828 2018-07-20 Tom Tromey <tom@tromey.com>
2829
2830 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2831 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2832 (read_enum_type, common_block_start, common_block_end)
2833 (cleanup_undefined_types_1, finish_global_stabs): Update.
2834 * mdebugread.c (psymtab_to_symtab_1): Update.
2835 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2836 (read_lexical_block_scope, new_symbol): Update.
2837 * dbxread.c (process_one_symbol): Update.
2838 * coffread.c (coff_symtab_read, process_coff_symbol)
2839 (coff_read_enum_type): Update.
2840 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2841 declare.
2842 (get_local_symbols, get_file_symbols, get_global_symbols): New
2843 functions.
2844 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2845 m_global_symbols.
2846 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2847 (~scoped_free_pendings): Update.
2848 (finish_block, prepare_for_building, reset_symtab_globals)
2849 (end_symtab_get_static_block, end_symtab_with_blockvector)
2850 (augment_type_symtab, push_context): Update.
2851 (get_local_symbols, get_file_symbols, get_global_symbols): New
2852 functions.
2853 (buildsym_init): Update.
2854
2855 2018-07-20 Tom Tromey <tom@tromey.com>
2856
2857 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2858 (process_full_type_unit): Likewise.
2859 (dwarf2_start_symtab): Set list_in_scope.
2860
2861 2018-07-20 Tom Tromey <tom@tromey.com>
2862
2863 * dwarf2read.c (process_psymtab_comp_unit_reader)
2864 (build_type_psymtabs_reader): Do not set list_in_scope.
2865
2866 2018-07-20 Tom Tromey <tom@tromey.com>
2867
2868 * buildsym.c (free_pendings): Remove.
2869 (add_symbol_to_list, scoped_free_pendings)
2870 (finish_block_internal, buildsym_init): Update.
2871
2872 2018-07-20 Tom Tromey <tom@tromey.com>
2873
2874 * xcoffread.c (read_xcoff_symtab): Update.
2875 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2876 Update.
2877 * dbxread.c (process_one_symbol): Update.
2878 * coffread.c (coff_symtab_read): Update.
2879 * buildsym.h (finish_block): Update.
2880 * buildsym.c (finish_block): Remove "listhead" argument.
2881 (end_symtab_get_static_block): Update.
2882
2883 2018-07-20 Tom Tromey <tom@tromey.com>
2884
2885 * buildsym.h (class scoped_free_pendings): Remove constructor.
2886 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2887 method.
2888 <m_pending_block_obstack, m_pending_blocks>: New members.
2889 (pending_block_obstack, pending_blocks): Remove.
2890 (scoped_free_pendings::scoped_free_pendings): Default.
2891 (~scoped_free_pendings): Update.
2892 (free_pending_blocks): Remove.
2893 (finish_block_internal, record_pending_block, make_blockvector)
2894 (end_symtab_get_static_block, augment_type_symtab, push_context)
2895 (buildsym_init): Update.
2896
2897 2018-07-20 Tom Tromey <tom@tromey.com>
2898
2899 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2900 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2901 members.
2902 (pending_addrmap, pending_addrmap_obstack)
2903 (pending_addrmap_interesting): Remove.
2904 (scoped_free_pendings, record_block_range, make_blockvector)
2905 (prepare_for_building, reset_symtab_globals, buildsym_init):
2906 Update.
2907
2908 2018-07-20 Tom Tromey <tom@tromey.com>
2909
2910 * xcoffread.c (process_linenos): Update.
2911 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2912 * mdebugread.c (psymtab_to_symtab_1): Update.
2913 * dwarf2read.c (setup_type_unit_groups)
2914 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2915 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2916 * dbxread.c (process_one_symbol): Update.
2917 * coffread.c (coff_symtab_read, enter_linenos)
2918 (process_coff_symbol): Update.
2919 * buildsym.h (current_subfile): Don't declare.
2920 (get_current_subfile): Declare.
2921 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2922 member.
2923 (start_subfile, free_buildsym_compunit, push_subfile)
2924 (prepare_for_building, start_symtab): Update.
2925 (get_current_subfile): New function.
2926
2927 2018-07-20 Tom Tromey <tom@tromey.com>
2928
2929 * coffread.c (coff_symtab_read): Update.
2930 * xcoffread.c (read_xcoff_symtab): Update.
2931 * dwarf2read.c (new_symbol): Update.
2932 (read_func_scope, read_lexical_block_scope): Update.
2933 * dbxread.c (process_one_symbol): Update.
2934 * buildsym.h (context_stack, context_stack_depth): Don't declare.
2935 (outermost_context_p): Remove macro.
2936 (outermost_context_p, get_current_context_stack)
2937 (get_context_stack_depth): Declare.
2938 (pop_context): Return struct context_stack.
2939 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
2940 member.
2941 (context_stack_size): Remove.
2942 (INITIAL_CONTEXT_STACK_SIZE): Remove.
2943 (prepare_for_building, end_symtab_get_static_block)
2944 (augment_type_symtab, push_context): Update.
2945 (pop_context): Return struct context_stack.
2946 (outermost_context_p, get_current_context_stack)
2947 (get_context_stack_depth): New functions.
2948 (buildsym_init): Update.
2949
2950 2018-07-20 Tom Tromey <tom@tromey.com>
2951
2952 * rust-exp.y: Now a pure parser. Update all rules.
2953 (%union): Move earlier.
2954 (current_parser, work_obstack): Remove globals.
2955 (rust_parser, ~rust_parser): Update.
2956 (class rust_parser) <copy_name, concat3, crate_name, super_name,
2957 lex_character, lex_number, lex_string, lex_identifier,
2958 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
2959 convert_name, convert_params_to_expression,
2960 convert_ast_to_expression, ast_basic_type, ast_operation,
2961 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
2962 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
2963 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
2964 ast_array_type, ast_slice_type, ast_reference_type,
2965 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
2966 (rust_parse): Update.
2967 (rustyyerror, rustyylex): Add parser parameter.
2968 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
2969 (rust_lex_stringish_test, rust_lex_test_sequence)
2970 (rust_lex_test_trailing_dot, rust_lex_test_completion)
2971 (rust_lex_test_push_back, rust_lex_tests): Update.
2972
2973 2018-07-19 Pedro Alves <palves@redhat.com>
2974
2975 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
2976 gdb::unique_xmalloc_ptr.
2977 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
2978 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
2979 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
2980 copy-initialization.
2981 * guile/scm-pretty-print.c (ppscm_print_children): Use
2982 gdb::unique_xmalloc_ptr instead of cleanups.
2983 (gdbscm_apply_val_pretty_printer): Remove cleanups.
2984 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
2985 gdb::unique_xmalloc_ptr.
2986 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2987 Adjust to use gdb::unique_xmalloc_ptr.
2988 * guile/scm-utils.c (extract_arg): Adjust.
2989 * guile/scm-value.c (gdbscm_value_field): Adjust to use
2990 gdb::unique_xmalloc_ptr instead of a cleanup.
2991
2992 2018-07-19 Tom Tromey <tom@tromey.com>
2993
2994 * utils.c (do_value_free_to_mark)
2995 (make_cleanup_value_free_to_mark): Remove.
2996 * utils.h (make_cleanup_value_free_to_mark): Remove.
2997
2998 2018-07-19 Pedro Alves <palves@redhat.com>
2999
3000 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3001 forwarding reference.
3002
3003 2018-07-18 Pedro Alves <palves@redhat.com>
3004
3005 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3006 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3007 cleanup.
3008
3009 2018-07-18 Pedro Alves <palves@redhat.com>
3010
3011 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3012 exceptions.
3013 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3014 (gdbscm_wrap): New.
3015 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3016 directly instead of a cleanup.
3017 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3018 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3019 (vlscm_binop_gdbthrow): New, factored out from ...
3020 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3021 (vlscm_rich_compare): Use gdbscm_wrap.
3022 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3023 instead of a cleanup.
3024 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3025 cleanup.
3026 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3027 Use xfree directly instead of a cleanup.
3028 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3029 Adjust to use gdbscm_wrap and scoped_value_mark.
3030 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3031 (gdbscm_value_address, gdbscm_value_dereference)
3032 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3033 scoped_value_mark.
3034 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3035 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3036 scoped_value_mark.
3037 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3038 gdbscm_wrap and scoped_value_mark.
3039 (gdbscm_value_to_string): Use xfree directly instead of a
3040 cleanup. Move 'buffer' unique_ptr to TRY scope.
3041 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3042 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3043 scoped_value_mark.
3044 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3045 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3046 scoped_value_mark.
3047 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3048 gdbscm_wrap.
3049
3050 2018-07-18 Tom de Vries <tdevries@suse.de>
3051
3052 * findvar.c (default_read_var_value): Also resolve dynamic type for
3053 LOC_OPTIMIZED_OUT vars.
3054
3055 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3056
3057 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3058 decoding.
3059
3060 2018-07-17 Tom Tromey <tom@tromey.com>
3061
3062 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3063 (compute_enum_list, pascm_set_param_value_x)
3064 (gdbscm_parameter_value): Update.
3065 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3066 (gdbscm_scm_to_host_string): Update.
3067 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3068 Update.
3069 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3070 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3071 * guile/scm-string.c (gdbscm_scm_to_string): Return
3072 unique_xmalloc_ptr.
3073 (gdbscm_scm_to_host_string): Likewise.
3074
3075 2018-07-17 Tom Tromey <tom@tromey.com>
3076
3077 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3078 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3079 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3080 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3081 unique_xmalloc_ptr.
3082
3083 2018-07-17 Tom Tromey <tom@tromey.com>
3084
3085 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3086 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3087 Update.
3088 * guile/scm-cmd.c (cmdscm_function): Update.
3089 * guile/scm-pretty-print.c
3090 (ppscm_print_exception_unless_memory_error): Update.
3091 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3092 Return unique_xmalloc_ptr.
3093
3094 2018-07-17 Tom Tromey <tom@tromey.com>
3095
3096 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3097 Use string_printf.
3098
3099 2018-07-17 Jim Wilson <jimw@sifive.com>
3100
3101 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3102 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3103 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3104 unecessary braces after EF_RISCV_RVC test. Delete call to
3105 set_gdbarch_decr_pc_after_break.
3106
3107 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3108 RISCV_LAST_FP_REGNUM + 1.
3109 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3110
3111 2018-07-17 Tom Tromey <tom@tromey.com>
3112
3113 * configure.ac: Remove --disable-gdbcli.
3114 * configure: Rebuild.
3115 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3116 (SUBDIR_CLI_CFLAGS): Remove.
3117 (SFILES): Use SUBDIR_CLI_SRCS.
3118 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3119
3120 2018-07-17 Tom Tromey <tom@tromey.com>
3121
3122 PR gdb/18624:
3123 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3124
3125 2018-07-16 Jim Wilson <jimw@sifive.com>
3126
3127 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3128
3129 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3130
3131 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3132 variable.
3133 (libunwind_frame_sniffer): Likewise.
3134 (libunwind_frame_prev_register): Likewise.
3135 (libunwind_sigtramp_frame_sniffer): Likewise.
3136 * ia64-tdep.c (ia64_access_reg): Likewise.
3137 (ia64_access_rse_reg): Likewise.
3138 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3139 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3140
3141 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3142
3143 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3144
3145 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3146
3147 * remote-sim.c (gdbsim_target::close,
3148 gdbsim_target::mourn_inferior): Remove unused variables.
3149
3150 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3151
3152 * ia64-tdep.c (ktab_buf): New global.
3153 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3154 (get_kernel_table): Adjust.
3155
3156 2018-07-16 Tom Tromey <tom@tromey.com>
3157
3158 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3159 * dwarf2read.c (using_directives, new_symbol): Use
3160 outermost_context_p.
3161 * dbxread.c (process_one_symbol): Use outermost_context_p.
3162 * coffread.c (coff_symtab_read): Use outermost_context_p.
3163
3164 2018-07-16 Tom Tromey <tom@tromey.com>
3165
3166 * dwarf2read.c (using_directives, read_func_scope)
3167 (read_lexical_block_scope): Update.
3168 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3169 * buildsym.h (local_using_directives, global_using_directives):
3170 Don't declare.
3171 (get_local_using_directives, set_local_using_directives)
3172 (get_global_using_directives): Declare.
3173 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3174 m_global_using_directives>: New members.
3175 (finish_block_internal, prepare_for_building)
3176 (reset_symtab_globals, end_symtab_get_static_block)
3177 (push_context): Update.
3178 (get_local_using_directives, set_local_using_directives)
3179 (get_global_using_directives): New functions.
3180 (buildsym_init): Update.
3181
3182 2018-07-16 Tom Tromey <tom@tromey.com>
3183
3184 * xcoffread.c (xcoff_initial_scan): Don't call
3185 free_pending_blocks.
3186 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3187 * buildsym.h (class scoped_free_pendings): Add constructor.
3188 (free_pending_blocks): Don't declare.
3189 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3190 (free_pending_blocks): Now static.
3191
3192 2018-07-16 Tom Tromey <tom@tromey.com>
3193
3194 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3195 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3196 member.
3197 (struct subfile_stack): Remove.
3198 (subfile_stack): Remove.
3199 (push_subfile, pop_subfile, buildsym_init): Update.
3200
3201 2018-07-16 Tom Tromey <tom@tromey.com>
3202
3203 * buildsym.c (push_subfile): Use gdb_assert.
3204 (pop_subfile): Use gdb_assert.
3205
3206 2018-07-16 Tom Tromey <tom@tromey.com>
3207
3208 * buildsym.h (merge_symbol_lists): Remove.
3209 * buildsym.c (merge_symbol_lists): Remove.
3210
3211 2018-07-16 Tom Tromey <tom@tromey.com>
3212
3213 * stabsread.c (scan_file_globals): Update comment.
3214 * stabsread.h (scan_file_globals): Move from buildsym.h.
3215 * buildsym.h (scan_file_globals): Move to stabsread.h.
3216
3217 2018-07-16 Tom Tromey <tom@tromey.com>
3218
3219 * xcoffread.c (xcoff_new_init): Update.
3220 * mipsread.c (mipscoff_new_init): Update.
3221 * mdebugread.c (mdebug_build_psymtabs): Update.
3222 * elfread.c (elf_new_init): Update.
3223 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3224 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3225 * buildsym.h (buildsym_new_init): Don't declare.
3226 * buildsym.c (buildsym_new_init): Remove.
3227
3228 2018-07-16 Tom Tromey <tom@tromey.com>
3229
3230 * stabsread.h (within_function): Move from buildsym.h.
3231 * stabsread.c (start_stabs): Clear within_function.
3232 * coffread.c (coff_start_symtab): Clear within_function.
3233 * buildsym.h (within_function): Move to stabsread.h.
3234 * buildsym.c (prepare_for_building): Update.
3235
3236 2018-07-16 Tom Tromey <tom@tromey.com>
3237
3238 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3239 * dwarf2read.c (dwarf2_start_symtab): Don't set
3240 processing_gcc_compilation.
3241 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3242
3243 2018-07-16 Tom Tromey <tom@tromey.com>
3244
3245 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3246 (next_symbol_text_func): Move from buildsym.h.
3247 * stabsread.c (hashname): Move from buildsym.c.
3248 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3249 (next_symbol_text_func, hashname): Move to stabsread.h.
3250 * buildsym.c: Don't include bcache.h
3251 (hashname): Move to stasbread.c.
3252
3253 2018-07-16 Tom Tromey <tom@tromey.com>
3254
3255 * buildsym.h (context_stack_size): Don't declare.
3256 * buildsym.c (context_stack_size): New global.
3257
3258 2018-07-16 Tom Tromey <tom@tromey.com>
3259
3260 * dbxread.c (processing_acc_compilation): New global.
3261 * buildsym.h (processing_acc_compilation): Don't declare.
3262
3263 2018-07-16 Tom Tromey <tom@tromey.com>
3264
3265 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3266 * dbxread.c (read_ofile_symtab): Update.
3267 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3268 * buildsym.h (last_source_start_addr): Remove.
3269 (set_last_source_start_addr, get_last_source_start_addr):
3270 Declare.
3271 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3272 parameter.
3273 (struct buildsym_compunit) <m_last_source_start_addr>: New
3274 member.
3275 (prepare_for_building): Remove start_addr parameter.
3276 (start_symtab, restart_symtab, end_symtab_get_static_block)
3277 (end_symtab_with_blockvector): Update.
3278 (set_last_source_start_addr, get_last_source_start_addr): New
3279 functions.
3280
3281 2018-07-16 Tom Tromey <tom@tromey.com>
3282
3283 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3284 member.
3285 (have_line_numbers): Remove.
3286 (record_line, prepare_for_building, end_symtab_get_static_block)
3287 (augment_type_symtab): Update.
3288
3289 2018-07-16 Tom Tromey <tom@tromey.com>
3290
3291 * buildsym.c (~buildsym_compunit): Free the macro table.
3292 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3293 methods.
3294 <m_pending_macros>: New member.
3295 (pending_macros): Remove.
3296 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3297 (reset_symtab_globals, end_symtab_get_static_block)
3298 (end_symtab_with_blockvector, augment_type_symtab)
3299 (buildsym_init): Update.
3300
3301 2018-07-16 Tom Tromey <tom@tromey.com>
3302
3303 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3304 parameter.
3305 (buildsym_compunit::set_last_source_file): New method.
3306 <m_last_source_file>: New member.
3307 (prepare_for_building): Remove "name" parameter.
3308 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3309 (last_source_file): Remove.
3310 (set_last_source_file, get_last_source_file): Update.
3311
3312 2018-07-16 Tom Tromey <tom@tromey.com>
3313
3314 * buildsym.c (prepare_for_building): Add assert.
3315
3316 2018-07-16 Tom Tromey <tom@tromey.com>
3317
3318 * buildsym.c (~buildsym_compunit): Update.
3319 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3320 (start_subfile, patch_subfile_names)
3321 (end_symtab_with_blockvector): Update.
3322
3323 2018-07-16 Tom Tromey <tom@tromey.com>
3324
3325 * buildsym.c (struct buildsym_compunit): Add constructor,
3326 destructor, initializers.
3327 (start_buildsym_compunit): Remove.
3328 (free_buildsym_compunit): Use "delete".
3329 (start_symtab, restart_symtab): Use "new".
3330
3331 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3332
3333 * symfile.c (set_objfile_default_section_offset): Remove struct
3334 keyword.
3335
3336 2018-07-14 Stafford Horne <shorne@gmail.com>
3337
3338 * (Responsible Maintainers): Add myself as or1k maintainer.
3339
3340 2018-07-13 Tom Tromey <tom@tromey.com>
3341
3342 * symfile.c (set_objfile_default_section_offset): Use extra braces
3343 around initializer.
3344
3345 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3346
3347 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3348 non-branching basr.
3349
3350 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3351
3352 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3353 unittests/cli-utils-selftests.c
3354 * unittests/cli-utils-selftests.c: New file.
3355
3356 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3357
3358 * NEWS: Mention new commands. Mention change to 'thread apply'.
3359
3360 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3361
3362 * thread.c (thr_try_catch_cmd): New function.
3363 (thread_apply_all_command): Handle qcs flags.
3364 (thread_apply_command): Handle qcs flags.
3365 (taas_command): New function.
3366 (tfaas_command): New function.
3367 (_initialize_thread): Update to setup the new commands 'taas
3368 and 'tfaas'. Change doc string for 'thread apply'.
3369
3370 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3371
3372 * stack.c: (trailing_outermost_frame): New function, mostly
3373 extracted from backtrace_command_1.
3374 (leading_innermost_frame): New function.
3375 (backtrace_command_1): Update to call trailing_outermost_frame.
3376 (frame_apply_command_count): New function.
3377 (frame_apply_level_command): New function.
3378 (frame_apply_all_command): New function.
3379 (frame_apply_command): New function.
3380 (faas_command): New function.
3381 (frame_cmd_list): New variable.
3382 (_initialize_stack): Update to setup the new commands 'frame apply'
3383 and 'faas'.
3384
3385 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3386
3387 * cli-utils.c (number_or_range_parser::get_number): Only handle
3388 numbers or convenience var as numbers.
3389 (parse_flags): New function.
3390 (parse_flags_qcs): New function.
3391 (number_or_range_parser::finished): Ensure parsing end is detected
3392 before end of string.
3393 * cli-utils.h (parse_flags): New function.
3394 (parse_flags_qcs): New function.
3395 (number_or_range_parser): Remove m_finished bool.
3396 (number_or_range_parser::skip_range): Set m_in_range to false.
3397
3398 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3399
3400 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3401 on Windows.
3402
3403 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3404 Jan Kratochvil <jan.kratochvil@redhat.com>
3405 Paul Fertser <fercerpav@gmail.com>
3406 Tsutomu Seki <sekiriki@gmail.com>
3407 Pedro Alves <palves@redhat.com>
3408
3409 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3410 'unittests/parse-connection-spec-selftests.c'.
3411 (COMMON_SFILES): Add 'common/netstuff.c'.
3412 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3413 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3414 * common/netstuff.c: New file.
3415 * common/netstuff.h: New file.
3416 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3417 (wait_for_connect): Update comment. New parameter
3418 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3419 Use 'sock' directly instead of 'scb->fd'.
3420 (try_connect): New function, with code from 'net_open'.
3421 (net_open): Rewrite main loop to deal with multiple
3422 sockets/addresses. Handle IPv6-style hostnames; implement
3423 support for IPv6 connections.
3424 * unittests/parse-connection-spec-selftests.c: New file.
3425
3426 2018-07-11 Pedro Alves <palves@redhat.com>
3427
3428 PR gdb/23377
3429 * remote.c (remote_target::remote_detach_pid): Call
3430 set_current_process.
3431
3432 2018-07-11 Pedro Alves <palves@redhat.com>
3433
3434 * h8300-tdep.c (h8300_gdbarch_init): Remove
3435 set_gdbarch_ecoff_reg_to_regnum calls.
3436
3437 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3438
3439 PR c++/23373
3440 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3441 offsets/sizes for static members of a class/struct.
3442
3443 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3444
3445 * target-descriptions.c (tdesc_register_bitsize): Rename.
3446 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3447 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3448 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3449
3450 2018-07-10 Tom Tromey <tom@tromey.com>
3451
3452 * breakpoint.c (moribund_locations): Now static and a
3453 std::vector.
3454 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3455 (build_bpstat_chain, update_global_location_list)
3456 (breakpoint_retire_moribund): Update.
3457 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3458 VEC.
3459
3460 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3461
3462 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3463 (riscv_register_reggroup_p): Use new function, remove unneeded
3464 parenthesis.
3465 (riscv_push_dummy_call): Extend assert to compare against xlen or
3466 flen based on register type.
3467
3468 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3469
3470 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3471
3472 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3473
3474 * remote.c (show_hardware_watchpoint_limit): New function.
3475 (show_hardware_watchpoint_length_limit): New function.
3476 (show_hardware_breakpoint_limit): New function.
3477 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3478 where appropriate, update help text.
3479
3480 2018-07-09 Tom Tromey <tom@tromey.com>
3481
3482 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3483 (CLIBS): Don't mention NAT_CLIBS.
3484
3485 2018-07-09 Tom Tromey <tom@tromey.com>
3486
3487 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3488 (LIBGDB_OBS, clean mostlyclean): Update.
3489 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3490
3491 2018-07-09 Tom Tromey <tom@tromey.com>
3492
3493 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3494 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3495 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3496
3497 2018-07-09 Tom Tromey <tom@tromey.com>
3498
3499 * Makefile.in (ALLDEPFILES): Remove exec.c.
3500 (COMMON_OBS): Remove exec.o.
3501 (COMMON_SFILES): Add exec.c.
3502
3503 2018-07-09 Tom Tromey <tom@tromey.com>
3504
3505 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3506
3507 2018-07-09 Tom Tromey <tom@tromey.com>
3508
3509 * Makefile.in (clean mostlyclean): Remove stamp-version.
3510 (version.c): Depend on stamp-version.
3511 (stamp-version): New rule, from version.c rule.
3512
3513 2018-07-09 Tom Tromey <tom@tromey.com>
3514
3515 * Makefile.in (init.c): Depend on stamp-init.
3516 (stamp-init): New rule, from init.c rule.
3517 (clean mostlyclean): Remove stamp-init.
3518
3519 2018-07-09 Tom Tromey <tom@tromey.com>
3520
3521 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3522 SUBDIR_GCC_COMPILE_SRCS.
3523
3524 2018-07-09 Tom Tromey <tom@tromey.com>
3525
3526 * Makefile.in (init.c): Remove some unused sed rules.
3527
3528 2018-07-09 Tom Tromey <tom@tromey.com>
3529
3530 * Makefile.in (TSOBS): Remove.
3531 (INIT_FILES): Update.
3532 (LIBGDB_OBS): Update.
3533 (COMMON_SFILES): Add inflow.c.
3534 (SFILES): Remove inflow.c.
3535
3536 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3537
3538 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3539
3540 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3541
3542 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3543 get_saveloc_name, is_signal_frame_name, step_name,
3544 init_remote_name, create_addr_space_name,
3545 destroy_addr_space_name, search_unwind_table_name,
3546 find_dyn_list_name): Constify.
3547
3548 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3549
3550 * darwin-nat.c (darwin_pthread_kill): New function.
3551 (darwin_resume_thread): Use darwin_pthread_kill.
3552
3553 2018-07-05 Tom de Vries <tdevries@suse.de>
3554
3555 * macroexp.c (macro_buffer) <operator=>: New member function.
3556
3557 2018-07-04 Tom Tromey <tom@tromey.com>
3558
3559 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3560
3561 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3562
3563 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3564 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3565 * maint.c: Likewise.
3566 * top.c: Likewise.
3567
3568 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3569
3570 * NEWS: Create a new section for the next release branch.
3571 Rename the section of the current branch, now that it has
3572 been cut.
3573
3574 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3575
3576 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3577 * version.in: Bump version to 8.2.50.DATE-git.
3578
3579 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3580 Pedro Alves <palves@redhat.com>
3581
3582 * linux-nat.c (linux_init_ptrace): Rename to ...
3583 (linux_init_ptrace_procfs): ... this. Call
3584 linux_proc_init_warnings.
3585 (linux_nat_target::post_attach)
3586 (linux_nat_target::post_startup_inferior): Adjust.
3587 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3588 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3589
3590 2018-07-04 Tom de Vries <tdevries@suse.de>
3591
3592 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3593 check ...
3594 (read_comp_unit_head): ... here.
3595
3596 2018-07-03 Tom Tromey <tom@tromey.com>
3597
3598 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3599 (stop_tracing, tstatus_command)
3600 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3601 (print_one_static_tracepoint_marker): Update.
3602 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3603 std::vector.
3604 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3605 VEC.
3606 (all_tracepoints, static_tracepoints_here): Return std::vector.
3607
3608 2018-07-03 Tom Tromey <tom@tromey.com>
3609
3610 * common/ptid.c (ptid_equal): Remove.
3611 * common/ptid.h (ptid_equal): Don't declare.
3612 * ada-tasks.c: Update.
3613 * breakpoint.c: Update.
3614 * common/agent.c: Update.
3615 * corelow.c: Update.
3616 * darwin-nat-info.c: Update.
3617 * darwin-nat.c: Update.
3618 * dcache.c: Update.
3619 * dtrace-probe.c: Update.
3620 * dummy-frame.c: Update.
3621 * fbsd-nat.c: Update.
3622 * frame.c: Update.
3623 * gdbthread.h: Update.
3624 * gnu-nat.c: Update.
3625 * go32-nat.c: Update.
3626 * inf-loop.c: Update.
3627 * inf-ptrace.c: Update.
3628 * infcall.c: Update.
3629 * infcmd.c: Update.
3630 * inflow.c: Update.
3631 * infrun.c: Update.
3632 * linux-fork.c: Update.
3633 * linux-nat.c: Update.
3634 * linux-thread-db.c: Update.
3635 * mi/mi-cmd-var.c: Update.
3636 * mi/mi-interp.c: Update.
3637 * mi/mi-main.c: Update.
3638 * nto-procfs.c: Update.
3639 * ppc-linux-tdep.c: Update.
3640 * procfs.c: Update.
3641 * python/py-inferior.c: Update.
3642 * python/py-record-btrace.c: Update.
3643 * python/py-record.c: Update.
3644 * ravenscar-thread.c: Update.
3645 * regcache.c: Update.
3646 * remote-sim.c: Update.
3647 * remote.c: Update.
3648 * sol-thread.c: Update.
3649 * solib.c: Update.
3650 * target.c: Update.
3651 * tui/tui-stack.c: Update.
3652 * varobj.c: Update.
3653 * windows-nat.c: Update.
3654 * windows-tdep.c: Update.
3655
3656 2018-07-03 Tom Tromey <tom@tromey.com>
3657
3658 * common/ptid.c (ptid_match): Remove.
3659 * common/ptid.h (ptid_match): Don't declare.
3660 * fbsd-nat.c: Update.
3661 * infcmd.c: Update.
3662 * infrun.c: Update.
3663 * linux-nat.c: Update.
3664 * record-btrace.c: Update.
3665 * regcache.c: Update.
3666 * remote.c: Update.
3667
3668 2018-07-03 Tom Tromey <tom@tromey.com>
3669
3670 * common/ptid.c (ptid_tid_p): Remove.
3671 * common/ptid.h (ptid_tid_p): Don't declare.
3672 * sol-thread.c: Update.
3673
3674 2018-07-03 Tom Tromey <tom@tromey.com>
3675
3676 * common/ptid.c (ptid_lwp_p): Remove.
3677 * common/ptid.h (ptid_lwp_p): Don't declare.
3678 * fbsd-nat.c: Update.
3679 * linux-nat.c: Update.
3680 * nat/linux-procfs.c: Update.
3681 * nat/x86-linux-dregs.c: Update.
3682 * sol-thread.c: Update.
3683
3684 2018-07-03 Tom Tromey <tom@tromey.com>
3685
3686 * common/ptid.c (ptid_is_pid): Remove.
3687 * common/ptid.h (ptid_is_pid): Don't declare.
3688 * infrun.c: Update.
3689 * linux-nat.c: Update.
3690 * mi/mi-interp.c: Update.
3691 * remote.c: Update.
3692 * thread.c: Update.
3693
3694 2018-07-03 Tom Tromey <tom@tromey.com>
3695
3696 * common/ptid.c (ptid_get_tid): Remove.
3697 * common/ptid.h (ptid_get_tid): Don't declare.
3698 * ada-tasks.c: Update.
3699 * aix-thread.c: Update.
3700 * bsd-uthread.c: Update.
3701 * darwin-nat.c: Update.
3702 * fbsd-nat.c: Update.
3703 * i386-darwin-nat.c: Update.
3704 * infrun.c: Update.
3705 * linux-tdep.c: Update.
3706 * nto-procfs.c: Update.
3707 * ppc-ravenscar-thread.c: Update.
3708 * python/py-infthread.c: Update.
3709 * ravenscar-thread.c: Update.
3710 * sol-thread.c: Update.
3711 * sparc-ravenscar-thread.c: Update.
3712 * windows-nat.c: Update.
3713
3714 2018-07-03 Tom Tromey <tom@tromey.com>
3715
3716 * common/ptid.c (ptid_get_lwp): Remove.
3717 * common/ptid.h (ptid_get_lwp): Don't declare.
3718 * aarch64-linux-nat.c: Update.
3719 * ada-tasks.c: Update.
3720 * aix-thread.c: Update.
3721 * amd64-linux-nat.c: Update.
3722 * arm-linux-nat.c: Update.
3723 * corelow.c: Update.
3724 * fbsd-nat.c: Update.
3725 * fbsd-tdep.c: Update.
3726 * gnu-nat.c: Update.
3727 * i386-cygwin-tdep.c: Update.
3728 * i386-gnu-nat.c: Update.
3729 * i386-linux-nat.c: Update.
3730 * ia64-linux-nat.c: Update.
3731 * inf-ptrace.c: Update.
3732 * infrun.c: Update.
3733 * linux-fork.c: Update.
3734 * linux-nat.c: Update.
3735 * linux-tdep.c: Update.
3736 * linux-thread-db.c: Update.
3737 * mips-linux-nat.c: Update.
3738 * nat/aarch64-linux-hw-point.c: Update.
3739 * nat/aarch64-linux.c: Update.
3740 * nat/linux-btrace.c: Update.
3741 * nat/linux-osdata.c: Update.
3742 * nat/linux-procfs.c: Update.
3743 * nat/x86-linux-dregs.c: Update.
3744 * obsd-nat.c: Update.
3745 * ppc-fbsd-nat.c: Update.
3746 * ppc-linux-nat.c: Update.
3747 * procfs.c: Update.
3748 * python/py-infthread.c: Update.
3749 * ravenscar-thread.c: Update.
3750 * remote.c: Update.
3751 * s390-linux-nat.c: Update.
3752 * sol-thread.c: Update.
3753 * sol2-tdep.c: Update.
3754 * spu-linux-nat.c: Update.
3755 * x86-linux-nat.c: Update.
3756 * xtensa-linux-nat.c: Update.
3757
3758 2018-07-03 Tom Tromey <tom@tromey.com>
3759
3760 * common/ptid.c (ptid_get_pid): Remove.
3761 * common/ptid.h (ptid_get_pid): Don't declare.
3762 * aarch64-linux-nat.c: Update.
3763 * ada-lang.c: Update.
3764 * aix-thread.c: Update.
3765 * alpha-bsd-nat.c: Update.
3766 * amd64-fbsd-nat.c: Update.
3767 * amd64-linux-nat.c: Update.
3768 * arm-linux-nat.c: Update.
3769 * arm-nbsd-nat.c: Update.
3770 * auxv.c: Update.
3771 * break-catch-syscall.c: Update.
3772 * breakpoint.c: Update.
3773 * bsd-uthread.c: Update.
3774 * corelow.c: Update.
3775 * ctf.c: Update.
3776 * darwin-nat.c: Update.
3777 * fbsd-nat.c: Update.
3778 * fbsd-tdep.c: Update.
3779 * gcore.c: Update.
3780 * gnu-nat.c: Update.
3781 * hppa-nbsd-nat.c: Update.
3782 * hppa-obsd-nat.c: Update.
3783 * i386-fbsd-nat.c: Update.
3784 * ia64-linux-nat.c: Update.
3785 * inf-ptrace.c: Update.
3786 * infcmd.c: Update.
3787 * inferior.c: Update.
3788 * inferior.h: Update.
3789 * inflow.c: Update.
3790 * infrun.c: Update.
3791 * linux-fork.c: Update.
3792 * linux-nat.c: Update.
3793 * linux-tdep.c: Update.
3794 * linux-thread-db.c: Update.
3795 * m68k-bsd-nat.c: Update.
3796 * mi/mi-interp.c: Update.
3797 * mi/mi-main.c: Update.
3798 * mips-linux-nat.c: Update.
3799 * mips-nbsd-nat.c: Update.
3800 * mips64-obsd-nat.c: Update.
3801 * nat/aarch64-linux-hw-point.c: Update.
3802 * nat/aarch64-linux.c: Update.
3803 * nat/linux-btrace.c: Update.
3804 * nat/linux-osdata.c: Update.
3805 * nat/linux-procfs.c: Update.
3806 * nat/x86-linux-dregs.c: Update.
3807 * nto-procfs.c: Update.
3808 * obsd-nat.c: Update.
3809 * ppc-linux-nat.c: Update.
3810 * ppc-nbsd-nat.c: Update.
3811 * ppc-obsd-nat.c: Update.
3812 * proc-service.c: Update.
3813 * procfs.c: Update.
3814 * python/py-inferior.c: Update.
3815 * python/py-infthread.c: Update.
3816 * ravenscar-thread.c: Update.
3817 * record.c: Update.
3818 * remote-sim.c: Update.
3819 * remote.c: Update.
3820 * rs6000-nat.c: Update.
3821 * s390-linux-nat.c: Update.
3822 * sh-nbsd-nat.c: Update.
3823 * sol-thread.c: Update.
3824 * sparc-nat.c: Update.
3825 * sparc64-tdep.c: Update.
3826 * spu-linux-nat.c: Update.
3827 * spu-tdep.c: Update.
3828 * target-debug.h: Update.
3829 * target.c: Update.
3830 * thread.c: Update.
3831 * tid-parse.c: Update.
3832 * tracefile-tfile.c: Update.
3833 * vax-bsd-nat.c: Update.
3834 * windows-nat.c: Update.
3835 * x86-linux-nat.c: Update.
3836 * x86-nat.c: Update.
3837
3838 2018-07-03 Tom Tromey <tom@tromey.com>
3839
3840 * common/ptid.c (pid_to_ptid): Remove.
3841 * common/ptid.h (pid_to_ptid): Don't declare.
3842 * aix-thread.c: Update.
3843 * arm-linux-nat.c: Update.
3844 * common/ptid.c: Update.
3845 * common/ptid.h: Update.
3846 * corelow.c: Update.
3847 * ctf.c: Update.
3848 * darwin-nat.c: Update.
3849 * fbsd-nat.c: Update.
3850 * fork-child.c: Update.
3851 * gnu-nat.c: Update.
3852 * go32-nat.c: Update.
3853 * inf-ptrace.c: Update.
3854 * infcmd.c: Update.
3855 * inferior.c: Update.
3856 * infrun.c: Update.
3857 * linux-fork.c: Update.
3858 * linux-nat.c: Update.
3859 * nat/aarch64-linux-hw-point.c: Update.
3860 * nat/fork-inferior.c: Update.
3861 * nat/x86-linux-dregs.c: Update.
3862 * nto-procfs.c: Update.
3863 * obsd-nat.c: Update.
3864 * procfs.c: Update.
3865 * progspace.c: Update.
3866 * remote.c: Update.
3867 * rs6000-nat.c: Update.
3868 * s390-linux-nat.c: Update.
3869 * sol-thread.c: Update.
3870 * spu-linux-nat.c: Update.
3871 * target.c: Update.
3872 * top.c: Update.
3873 * tracefile-tfile.c: Update.
3874 * windows-nat.c: Update.
3875
3876 2018-07-03 Tom Tromey <tom@tromey.com>
3877
3878 * common/ptid.h (ptid_build): Don't declare.
3879 * common/ptid.c (ptid_build): Remove.
3880 * aix-thread.c: Update.
3881 * bsd-kvm.c: Update.
3882 * bsd-uthread.c: Update.
3883 * common/agent.c: Update.
3884 * common/ptid.c: Update.
3885 * common/ptid.h: Update.
3886 * corelow.c: Update.
3887 * darwin-nat.c: Update.
3888 * fbsd-nat.c: Update.
3889 * gnu-nat.c: Update.
3890 * linux-fork.c: Update.
3891 * linux-nat.c: Update.
3892 * linux-thread-db.c: Update.
3893 * nat/linux-osdata.c: Update.
3894 * nat/linux-procfs.c: Update.
3895 * nto-procfs.c: Update.
3896 * obsd-nat.c: Update.
3897 * proc-service.c: Update.
3898 * procfs.c: Update.
3899 * ravenscar-thread.c: Update.
3900 * remote-sim.c: Update.
3901 * remote.c: Update.
3902 * sol-thread.c: Update.
3903 * target.c: Update.
3904 * windows-nat.c: Update.
3905
3906 2018-07-03 Tom Tromey <tom@tromey.com>
3907
3908 * infrun.c (follow_exec): Use exit_inferior_silent.
3909 * inferior.c (exit_inferior_num_silent): Remove.
3910 * inferior.h (exit_inferior_num_silent): Don't declare.
3911
3912 2018-07-03 Tom Tromey <tom@tromey.com>
3913
3914 PR cli/23340:
3915 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3916 inferior_ptid on error.
3917
3918 2018-07-02 Maciej W. Rozycki <macro@mips.com>
3919 Simon Marchi <simon.marchi@polymtl.ca>
3920
3921 PR tdep/8282
3922 * disasm.h (gdb_disassembler): Add
3923 `m_disassembler_options_holder'. member
3924 * disasm.c (get_all_disassembler_options): New function.
3925 (gdb_disassembler::gdb_disassembler): Use it.
3926 (gdb_buffered_insn_length_init_dis): Likewise.
3927 (gdb_buffered_insn_length): Adjust accordingly.
3928 (set_disassembler_options): Handle options with arguments.
3929 (show_disassembler_options_sfunc): Likewise. Add a leading new
3930 line if showing options with descriptions.
3931 (disassembler_options_completer): Adapt to using the
3932 `disasm_options_and_args_t' structure.
3933 * mips-tdep.c (mips_disassembler_options): New variable.
3934 (mips_disassembler_options_o32): Likewise.
3935 (mips_disassembler_options_n32): Likewise.
3936 (mips_disassembler_options_n64): Likewise.
3937 (gdb_print_insn_mips): Don't set `disassembler_options'.
3938 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3939 functions.
3940 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
3941 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
3942 `gdbarch_disassembler_options_implicit' and
3943 `gdbarch_valid_disassembler_options'.
3944 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
3945 `disasm_options_and_args_t' structure.
3946 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
3947 method.
3948 (valid_disassembler_options): Switch from `disasm_options_t' to
3949 the `disasm_options_and_args_t' structure.
3950 * NEWS: Document `set disassembler-options' support for the MIPS
3951 target.
3952 * gdbarch.h: Regenerate.
3953 * gdbarch.c: Regenerate.
3954
3955 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3956
3957 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
3958
3959 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3960
3961 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
3962 parameter in call to amd64_target_description.
3963 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3964 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
3965 (amd64fbsd_init_abi): Likewise.
3966 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3967 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3968 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3969 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
3970
3971 2018-06-29 Pedro Alves <palves@redhat.com>
3972
3973 * gdb/amd64-tdep.h (amd64_create_target_description): Add
3974 "segments" parameter.
3975 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
3976 (_initialize_amd64_tdep): Update call to
3977 amd64_create_target_description.
3978 (amd64_target_description): Add "segments" parameter. Adjust
3979 the implementation to use it.
3980 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
3981 call to amd64_create_target_description.
3982 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
3983 * gdb/arch/amd64.h (amd64_create_target_description): Add
3984 "segments" register.
3985 * gdb/arch/amd64.c (amd64_create_target_description): Add
3986 "segments" parameter. Call create_feature_i386_64bit_segments
3987 only if SEGMENTS is true.
3988 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
3989 call to amd64_create_target_description.
3990
3991 2018-06-29 Pedro Alves <palves@redhat.com>
3992
3993 * thread.c (thread_target_id_str): New, factored out from ...
3994 (print_thread_info_1): ... here. Use it to compute the max
3995 "Target Id" column width.
3996
3997 2018-06-29 Pedro Alves <palves@redhat.com>
3998
3999 * remote.c (remote_target::extra_thread_info): Delete
4000 'display_buf' and 'n' locals. from the cache, regardless of
4001 packet mechanims is in use. Use cache for qThreadExtra and qP
4002 methods too.
4003
4004 2018-06-29 Pedro Alves <palves@redhat.com>
4005
4006 * blockframe.c (find_pc_sect_containing_function): New function.
4007 * breakpoint.c (print_breakpoint_location): Don't call
4008 find_pc_sect_function.
4009 * linespec.c (create_sals_line_offset): Record the location's
4010 symbol in the sal.
4011 * linespec.c (convert_address_location_to_sals): Fill in sal's
4012 symbol with find_pc_sect_containing_function.
4013 * symtab.c (find_function_start_sal): Rename to ...
4014 (find_function_start_sal_1): ... this.
4015 (find_function_start_sal): Reimplement as wrapper around
4016 find_function_start_sal_1, and use
4017 find_pc_sect_containing_function to fill in the sal's symbol.
4018 (find_function_start_sal(symbol*, bool)): Adjust.
4019 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4020 comments.
4021 (find_pc_sect_containing_function): Declare.
4022
4023 2018-06-29 Pedro Alves <palves@redhat.com>
4024
4025 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4026 true if the the location has no symbol.
4027
4028 2018-06-28 Tom Tromey <tom@tromey.com>
4029
4030 * NEWS: Mention --enable-codesign.
4031 * silent-rules.mk (ECHO_SIGN): New variable.
4032 * configure.ac: Add --enable-codesign.
4033 * configure: Rebuild.
4034 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4035 (gdb$(EXEEXT)): Optionally invoke codesign.
4036
4037 2018-06-28 Pedro Alves <palves@redhat.com>
4038
4039 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4040 comments.
4041 (switch_to_thread_no_regs): Adjust comment.
4042 * infcmd.c (stop_pc): Delete.
4043 (post_create_inferior, info_program_command): Replace references
4044 to stop_pc with references to thread_info->suspend.stop_pc.
4045 * inferior.h (stop_pc): Delete declaration.
4046 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4047 (handle_inferior_event_1, handle_signal_stop)
4048 (process_event_stop_test, keep_going_stepped_thread)
4049 (handle_step_into_function, handle_step_into_function_backward)
4050 (print_stop_location): Replace references to stop_pc with
4051 references to thread_info->suspend.stop_pc.
4052 (struct infcall_suspend_state) <stop_pc>: Delete field.
4053 (save_infcall_suspend_state, restore_infcall_suspend_state):
4054 Remove references to inf_stat->stop_pc.
4055 * linux-fork.c (fork_load_infrun_state): Likewise.
4056 * record-btrace.c (record_btrace_set_replay): Likewise.
4057 * record-full.c (record_full_goto_entry): Likewise.
4058 * remote.c (print_one_stopped_thread): Likewise.
4059 * target.c (target_resume): Extend comment.
4060 * thread.c (set_executing_thread): New.
4061 (set_executing): Use it.
4062 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4063 Remove references to stop_pc.
4064
4065 2018-06-28 Pedro Alves <palves@redhat.com>
4066
4067 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4068 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4069
4070 2018-06-28 Tom Tromey <tom@tromey.com>
4071
4072 * coffread.c (coff_symfile_finish): Update.
4073 * xcoffread.c (xcoff_symfile_finish): Update.
4074 * elfread.c (elf_symfile_finish): Update.
4075 * symfile.h (dwarf2_free_objfile): Don't declare.
4076 * dwarf2read.c (_initialize_dwarf2_read): Use
4077 register_objfile_data_with_cleanup.
4078 (dwarf2_free_objfile): Now static. Change signature.
4079
4080 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4081
4082 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4083 option "-o" to add-symbol-file-load to add an offset to each
4084 section's load address.
4085 * symfile.c (set_objfile_default_section_offset): New function.
4086
4087 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4088
4089 * symfile.c (add_symbol_file_command): Make sure that sections
4090 with the same name are sorted in the same order.
4091
4092 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4093
4094 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4095 require the second argument. If omitted, load sections at the
4096 addresses specified in the file.
4097
4098 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4099
4100 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4101 (_initialize_symfile): Add option "-o" to symbol-file to add an
4102 offset to each section of the symbol file.
4103
4104 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4105
4106 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4107
4108 2018-06-27 Tom Tromey <tom@tromey.com>
4109
4110 * stack.c (_initialize_stack): Update "func" help text.
4111
4112 2018-06-27 Tom Tromey <tom@tromey.com>
4113
4114 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4115 std::vector.
4116 (unwind_infopy_str, pyuw_create_unwind_info)
4117 (unwind_infopy_add_saved_register, pyuw_sniffer)
4118 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4119 Update.
4120 (struct saved_reg): Add constructor.
4121 <value>: Now a gdbpy_ref<>.
4122
4123 2018-06-27 Tom Tromey <tom@tromey.com>
4124
4125 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4126
4127 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4128
4129 * gdb-gdb.py.in: Format using autopep8.
4130
4131 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4132
4133 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4134 (type_lookup_function): Recognize CORE_ADDR values.
4135
4136 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4137
4138 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4139 print tag_name.
4140
4141 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4142
4143 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4144 <__lt__>: Add.
4145
4146 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4147
4148 * gdb-gdb.py: Move to...
4149 * gdb-gdb.py.in: ... here.
4150 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4151 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4152 dependencies.
4153 (distclean): Remove gdb-gdb.py when cleaning.
4154 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4155 * configure: Re-generate.
4156
4157 2018-06-27 Pedro Alves <palves@redhat.com>
4158
4159 * proc-service.c (get_ps_regcache): New.
4160 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4161 (ps_lsetfpregs): Use it.
4162
4163 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4164
4165 PR gdb/21695
4166 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4167 (dwarf_decode_lines_1): Adjust.
4168
4169 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4170
4171 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4172 override.
4173 <info_proc>: Likewise.
4174
4175 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4176
4177 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4178 to windows_fetch_one_register, and only handle the case of
4179 fetching one register. Move the code that reloads the context
4180 and iterates over all registers if R is negative to...
4181 (windows_nat_target::fetch_registers): ... here.
4182 (do_windows_store_inferior_registers): Rename to
4183 windows_store_one_register, and only handle the case of storing
4184 one register. Move the code that handles the case where r is
4185 negative to...
4186 (windows_nat_target::store_registers) ... here.
4187
4188 2018-06-26 Tom Tromey <tom@tromey.com>
4189
4190 PR rust/22574:
4191 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4192 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4193 Update.
4194 (rust_internal_print_type): Add podata parameter.
4195 (rust_print_type): Update.
4196
4197 2018-06-26 Tom Tromey <tom@tromey.com>
4198
4199 * typeprint.h (struct print_offset_data) <update, finish,
4200 maybe_print_hole>: New methods.
4201 <indentation>: New constant.
4202 * typeprint.c (print_offset_data::indentation): Define.
4203 (print_offset_data::maybe_print_hole, print_offset_data::update)
4204 (print_offset_data::finish): Move from c-typeprint.c and rename.
4205 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4206 (print_spaces_filtered_with_print_options): Update.
4207 (c_print_type_union_field_offset, maybe_print_hole)
4208 (c_print_type_struct_field_offset): Move to typeprint.c and
4209 rename.
4210 (c_type_print_base_struct_union): Update.
4211
4212 2018-06-25 Pedro Alves <palves@redhat.com>
4213
4214 * gdbthread.h (thread_info_ref, delete_thread)
4215 (delete_thread_silent, first_thread_of_inferior)
4216 (any_thread_of_inferior, switch_to_thread)
4217 (enable_thread_stack_temporaries)
4218 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4219 (get_last_thread_stack_temporary)
4220 (value_in_thread_stack_temporaries, can_access_registers_thread):
4221 Spell out "struct thread_info" instead of just "thread_info".
4222 * inferior.h (notice_new_inferior): Likewise.
4223
4224 2018-06-25 Pedro Alves <palves@redhat.com>
4225
4226 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4227 pass thread_info pointer to delete_thread.
4228 (windows_nat_target::detach): Pass inferior pointer to
4229 detach_inferior.
4230 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4231 delete_thread.
4232 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4233 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4234 and pass a thread_info pointer to delete_thread.
4235 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4236 pass thread_info pointer to delete_thread.
4237 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4238 delete_thread_silent call.
4239 * procfs.c (procfs_target::detach): Pass inferior pointer to
4240 detach_inferior.
4241 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4242 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4243 delete_thread_silent call.
4244 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4245 pass thread_info pointer to delete_thread.
4246 (windows_nat_target::detach): Pass inferior pointer to
4247 delete_inferior.
4248
4249 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4250
4251 * regcache.c (readable_regcache::read_part): Fix asserts.
4252 (reg_buffer::raw_collect_part): New function.
4253 (regcache::write_part): Fix asserts.
4254 (reg_buffer::raw_supply_part): New function.
4255 (regcache::transfer_regset_register): New helper function.
4256 (regcache::transfer_regset): Call new functions.
4257 (regcache_supply_regset): Use gdb_byte*.
4258 (regcache::supply_regset): Likewise.
4259 (regcache_collect_regset): Likewise.
4260 (regcache::collect_regset): Likewise.
4261 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4262 (reg_buffer::raw_supply_part): Likewise.
4263 (regcache::transfer_regset_register): Likewise.
4264 (regcache::transfer_regset): Use gdb_byte*.
4265
4266 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4267
4268 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4269
4270 2018-06-21 Pedro Alves <palves@redhat.com>
4271
4272 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4273 instead of a ptid_t. All callers adjusted.
4274 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4275 adjusted.
4276 (print_ada_task_info, display_current_task_id, task_command_1):
4277 Adjust.
4278 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4279 inferior_thread.
4280 (breakpoint_kind): Adjust.
4281 (remove_breakpoints_pid): Rename to ...
4282 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4283 pointer. All callers adjusted.
4284 (bpstat_clear_actions): Use inferior_thread.
4285 (get_bpstat_thread): New.
4286 (bpstat_do_actions): Use it.
4287 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4288 to take a thread_info pointer. All callers adjusted.
4289 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4290 (breakpoint_re_set_thread): Use inferior_thread.
4291 * breakpoint.h (struct inferior): Forward declare.
4292 (bpstat_stop_status): Update.
4293 (remove_breakpoints_pid): Delete.
4294 (remove_breakpoints_inf): New.
4295 * bsd-uthread.c (bsd_uthread_target::wait)
4296 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4297 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4298 (maint_btrace_packet_history_cmd)
4299 (maint_btrace_clear_packet_history_cmd): Adjust.
4300 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4301 inferior_thread.
4302 * cli/cli-interp.c: Include "inferior.h".
4303 * common/refcounted-object.h (struct
4304 refcounted_object_ref_policy): New.
4305 * compile/compile-object-load.c: Include gdbthread.h.
4306 (store_regs): Use inferior_thread.
4307 * corelow.c (core_target::close): Use current_inferior.
4308 (core_target_open): Adjust to use first_thread_of_inferior and use
4309 the current inferior.
4310 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4311 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4312 <thread>: ... this new field. All references adjusted.
4313 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4314 Take a thread_info pointer instead of a ptid_t.
4315 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4316 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4317 thread_info pointer instead of a ptid_t.
4318 * elfread.c: Include "inferior.h".
4319 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4320 Use inferior_thread.
4321 * eval.c (evaluate_subexp): Likewise.
4322 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4323 inferior_thread.
4324 * gdb_proc_service.h (struct thread_info): Forward declare.
4325 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4326 <thread>: ... this new field. All references adjusted.
4327 * gdbarch.h, gdbarch.c: Regenerate.
4328 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4329 'thread' parameter. All implementations and callers adjusted.
4330 * gdbthread.h (thread_info) <set_running>: New method.
4331 (delete_thread, delete_thread_silent): Take a thread_info pointer
4332 instead of a ptid.
4333 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4334 (first_thread_of_process): Delete, replaced by ...
4335 (first_thread_of_inferior): ... this new function. All callers
4336 adjusted.
4337 (any_live_thread_of_process): Delete, replaced by ...
4338 (any_live_thread_of_inferior): ... this new function. All callers
4339 adjusted.
4340 (switch_to_thread, switch_to_no_thread): Declare.
4341 (is_executing): Delete.
4342 (enable_thread_stack_temporaries): Update comment.
4343 <enable_thread_stack_temporaries>: Take a thread_info pointer
4344 instead of a ptid_t. Incref the thread.
4345 <~enable_thread_stack_temporaries>: Decref the thread.
4346 <m_ptid>: Delete
4347 <m_thr>: New.
4348 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4349 (get_last_thread_stack_temporary)
4350 (value_in_thread_stack_temporaries, can_access_registers_thread):
4351 Take a thread_info pointer instead of a ptid_t. All callers
4352 adjusted.
4353 * infcall.c (get_call_return_value): Use inferior_thread.
4354 (run_inferior_call): Work with thread pointers instead of ptid_t.
4355 (call_function_by_hand_dummy): Work with thread pointers instead
4356 of ptid_t. Use thread_info_ref.
4357 * infcmd.c (proceed_thread_callback): Access thread's state
4358 directly.
4359 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4360 access thread's state directly.
4361 (continue_command): Use inferior_thread.
4362 (info_program_command): Use find_thread_ptid and access thread
4363 state directly.
4364 (proceed_after_attach_callback): Use thread state directly.
4365 (notice_new_inferior): Take a thread_info pointer instead of a
4366 ptid_t. All callers adjusted.
4367 (exit_inferior): Take an inferior pointer instead of a pid. All
4368 callers adjusted.
4369 (exit_inferior_silent): New.
4370 (detach_inferior): Delete.
4371 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4372 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4373 (detach_inferior_command, kill_inferior_command): Use
4374 find_inferior_id instead of valid_gdb_inferior_id and
4375 gdb_inferior_id_to_pid.
4376 (inferior_command): Use inferior and thread pointers.
4377 * inferior.h (struct thread_info): Forward declare.
4378 (notice_new_inferior): Take a thread_info pointer instead of a
4379 ptid_t. All callers adjusted.
4380 (detach_inferior): Delete declaration.
4381 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4382 instead of a pid. All callers adjusted.
4383 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4384 (valid_gdb_inferior_id): Delete.
4385 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4386 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4387 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4388 ...
4389 <inf>: ... this new field.
4390 <step_ptid>: Delete, replaced by ...
4391 <step_thread>: ... this new field.
4392 (get_displaced_stepping_state): Take an inferior pointer instead
4393 of a pid. All callers adjusted.
4394 (displaced_step_in_progress_any_inferior): Adjust.
4395 (displaced_step_in_progress_thread): Take a thread pointer instead
4396 of a ptid_t. All callers adjusted.
4397 (displaced_step_in_progress, add_displaced_stepping_state): Take
4398 an inferior pointer instead of a pid. All callers adjusted.
4399 (get_displaced_step_closure_by_addr): Adjust.
4400 (remove_displaced_stepping_state): Take an inferior pointer
4401 instead of a pid. All callers adjusted.
4402 (displaced_step_prepare_throw, displaced_step_prepare)
4403 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4404 All callers adjusted.
4405 (start_step_over): Adjust.
4406 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4407 displaced step queue.
4408 (do_target_resume): Adjust.
4409 (fetch_inferior_event): Use inferior_thread.
4410 (context_switch, get_inferior_stop_soon): Take an
4411 execution_control_state pointer instead of a ptid_t. All callers
4412 adjusted.
4413 (switch_to_thread_cleanup): Delete.
4414 (stop_all_threads): Use scoped_restore_current_thread.
4415 * inline-frame.c: Include "gdbthread.h".
4416 (inline_state) <inline_state>: Take a thread pointer instead of a
4417 ptid_t. All callers adjusted.
4418 <ptid>: Delete, replaced by ...
4419 <thread>: ... this new field.
4420 (find_inline_frame_state): Take a thread pointer instead of a
4421 ptid_t. All callers adjusted.
4422 (skip_inline_frames, step_into_inline_frame)
4423 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4424 pointer instead of a ptid_t. All callers adjusted.
4425 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4426 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4427 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4428 pointers directly.
4429 * linux-nat.c (get_detach_signal): Likewise.
4430 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4431 (thread_db_notice_clone): Adjust.
4432 (thread_db_find_new_threads_silently)
4433 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4434 a thread pointer instead of a ptid_t. All callers adjusted.
4435 * mi/mi-cmd-var.c: Include "inferior.h".
4436 (mi_cmd_var_update_iter): Update to use thread pointers.
4437 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4438 inferior directly.
4439 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4440 out to ...
4441 (mi_output_running): ... this new function.
4442 (mi_on_resume_1): Adjust to use it.
4443 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4444 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4445 directly.
4446 (interrupt_thread_callback): : Adjust to use thread and inferior
4447 pointers.
4448 * proc-service.c: Include "gdbthread.h".
4449 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4450 * progspace-and-thread.c: Include "inferior.h".
4451 * progspace.c: Include "inferior.h".
4452 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4453 hold a reference to an inferior_object.
4454 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4455 inferior_thread.
4456 * python/py-inferior.c (struct inferior_object): Give the type a
4457 tag name instead of a typedef.
4458 (python_on_normal_stop): No need to check if the current thread is
4459 listed.
4460 (inferior_to_inferior_object): Change return type to
4461 inferior_object. All callers adjusted.
4462 (find_thread_object): Delete, bits factored out to ...
4463 (thread_to_thread_object): ... this new function.
4464 * python/py-infthread.c (create_thread_object): Use
4465 inferior_to_inferior_object.
4466 (thpy_is_stopped): Use thread pointer directly.
4467 (gdbpy_selected_thread): Use inferior_thread.
4468 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4469 field, replaced with ...
4470 <thread>: ... this new field. All users adjusted.
4471 (btpy_insn_or_gap_new): Drop const.
4472 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4473 callers adjusted.
4474 * python/py-record.c: Include "gdbthread.h".
4475 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4476 a ptid_t. All callers adjusted.
4477 (gdbpy_current_recording): Use inferior_thread.
4478 * python/py-record.h (recpy_record_object) <ptid>: Delete
4479 field, replaced with ...
4480 <thread>: ... this new field. All users adjusted.
4481 (recpy_element_object) <ptid>: Delete
4482 field, replaced with ...
4483 <thread>: ... this new field. All users adjusted.
4484 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4485 a ptid_t. All callers adjusted.
4486 * python/py-threadevent.c: Include "gdbthread.h".
4487 (get_event_thread): Use thread_to_thread_object.
4488 * python/python-internal.h (struct inferior_object): Forward
4489 declare.
4490 (find_thread_object, find_inferior_object): Delete declarations.
4491 (thread_to_thread_object, inferior_to_inferior_object): New
4492 declarations.
4493 * record-btrace.c: Include "inferior.h".
4494 (require_btrace_thread): Use inferior_thread.
4495 (record_btrace_frame_sniffer)
4496 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4497 (get_thread_current_frame): Use scoped_restore_current_thread and
4498 switch_to_thread.
4499 (get_thread_current_frame): Use thread pointer directly.
4500 (record_btrace_replay_at_breakpoint): Use thread's inferior
4501 pointer directly.
4502 * record-full.c: Include "inferior.h".
4503 * regcache.c: Include "gdbthread.h".
4504 (get_thread_arch_regcache): Use the inferior's address space
4505 directly.
4506 (get_thread_regcache, registers_changed_thread): New.
4507 * regcache.h (get_thread_regcache(thread_info *thread)): New
4508 overload.
4509 (registers_changed_thread): New.
4510 (remote_target) <remote_detach_1>: Swap order of parameters.
4511 (remote_add_thread): <remote_add_thread>: Return the new thread.
4512 (get_remote_thread_info(ptid_t)): New overload.
4513 (remote_target::remote_notice_new_inferior): Use thread pointers
4514 directly.
4515 (remote_target::process_initial_stop_replies): Use
4516 thread_info::set_running.
4517 (remote_target::remote_detach_1, remote_target::detach)
4518 (extended_remote_target::detach): Adjust.
4519 * stack.c (frame_show_address): Use inferior_thread.
4520 * target-debug.h (target_debug_print_thread_info_pp): New.
4521 * target-delegates.c: Regenerate.
4522 * target.c (default_thread_address_space): Delete.
4523 (memory_xfer_partial_1): Use current_inferior.
4524 (target_detach): Use current_inferior.
4525 (target_thread_address_space): Delete.
4526 (generic_mourn_inferior): Use current_inferior.
4527 * target.h (struct target_ops) <thread_address_space>: Delete.
4528 (target_thread_address_space): Delete.
4529 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4530 pointers directly.
4531 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4532 thread pointer instead of a ptid_t. Adjust all callers.
4533 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4534 (first_thread_of_process): Delete, replaced by ...
4535 (first_thread_of_inferior): ... this new function. All callers
4536 adjusted.
4537 (any_thread_of_process): Rename to ...
4538 (any_thread_of_inferior): ... this, and take an inferior pointer.
4539 (any_live_thread_of_process): Rename to ...
4540 (any_live_thread_of_inferior): ... this, and take an inferior
4541 pointer.
4542 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4543 (value_in_thread_stack_temporaries)
4544 (get_last_thread_stack_temporary): Take a thread pointer instead
4545 of a ptid_t. Adjust all callers.
4546 (thread_info::set_running): New.
4547 (validate_registers_access): Use inferior_thread.
4548 (can_access_registers_ptid): Rename to ...
4549 (can_access_registers_thread): ... this, and take a thread
4550 pointer.
4551 (print_thread_info_1): Adjust to compare thread pointers instead
4552 of ptids.
4553 (switch_to_no_thread, switch_to_thread): Make extern.
4554 (scoped_restore_current_thread::~scoped_restore_current_thread):
4555 Use m_thread pointer directly.
4556 (scoped_restore_current_thread::scoped_restore_current_thread):
4557 Use inferior_thread.
4558 (thread_command): Use thread pointer directly.
4559 (thread_num_make_value_helper): Use inferior_thread.
4560 * top.c (execute_command): Use inferior_thread.
4561 * tui/tui-interp.c: Include "inferior.h".
4562 * varobj.c (varobj_create): Use inferior_thread.
4563 (value_of_root_1): Use find_thread_global_id instead of
4564 global_thread_id_to_ptid.
4565
4566 2018-06-21 Alan Hayward <alan.hayward@arm.com>
4567
4568 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4569 possible.
4570 (regcache::write_part): Likewise.
4571 (readable_regcache::cooked_read_part): Update comment.
4572 (readable_regcache::cooked_write_part): Likewise.
4573 * regcache.h: (readable_regcache::read_part): Likewise.
4574 (regcache::write_part): Likewise.
4575
4576 2018-06-21 Richard Bunt <richard.bunt@arm.com>
4577 Dirk Schubert <dirk.schubert@arm.com>
4578
4579 * aarch64-linux-nat.c (post_attach): New.
4580 (aarch64_linux_nat_target::post_attach): Override post_attach to
4581 record the number of hardware debug registers.
4582
4583 2018-06-20 Tom Tromey <tom@tromey.com>
4584
4585 * python/py-param.c (add_setshow_generic): Make parameters const.
4586 (parmpy_init): Update.
4587
4588 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4589
4590 * regcache.h (regcache_cooked_read_ftype): Rename to...
4591 (register_read_ftype): ...this, change type to function_view.
4592 (class reg_buffer) <save>: Remove src parameter.
4593 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4594 parameter non-const in first overload. Remove src parameter in
4595 second overload.
4596 * regcache.c (do_cooked_read): Remove.
4597 (readonly_detached_regcache::readonly_detached_regcache): Make
4598 parameter non-const, adjust call to other constructor.
4599 (reg_buffer::save): Remove src parameter.
4600 * frame.c (do_frame_register_read): Remove.
4601 (frame_save_as_regcache): Use lambda function.
4602 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4603 parameter to ppu2spu_data *.
4604 (ppu2spu_sniffer): Use lambda function.
4605
4606 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4607
4608 * record-full.c (record_full_target::insert_breakpoint): Remove
4609 "struct" keyword, add const.
4610
4611 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4612
4613 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4614 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4615 * configure.ac: Remove AC_PREREQ, add missing quoting.
4616 * gnulib/configure.ac: Modernize usage of
4617 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4618 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4619 (AUTOMAKE_VERSION): Bump to 1.15.1.
4620 * configure: Re-generate.
4621 * config.in: Re-generate.
4622 * aclocal.m4: Re-generate.
4623 * gnulib/aclocal.m4: Re-generate.
4624 * gnulib/config.in: Re-generate.
4625 * gnulib/configure: Re-generate.
4626 * gnulib/import/Makefile.in: Re-generate.
4627
4628 2018-06-19 Pedro Alves <palves@redhat.com>
4629
4630 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4631 (lookup_minimal_symbol_by_pc_section): ... here with
4632 gdb_assert_not_reached added.
4633
4634 2018-06-19 Pedro Alves <palves@redhat.com>
4635
4636 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4637 parameter with a block parameter. Compare location's block symbol
4638 with the frame's block instead of addresses.
4639 (skip_inline_frames): Pass the current block instead of the
4640 frame's address. Break out as soon as we determine the frame
4641 should not be skipped.
4642
4643 2018-06-18 Tom Tromey <tom@tromey.com>
4644
4645 * solib-aix.c (solib_aix_get_section_offsets): Return
4646 unique_xmalloc_ptr.
4647 (solib_aix_solib_create_inferior_hook): Update.
4648
4649 2018-06-18 Tom Tromey <tom@tromey.com>
4650
4651 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4652
4653 2018-06-18 Tom Tromey <tom@tromey.com>
4654
4655 * solib-frv.c (frv_relocate_main_executable): Use
4656 unique_xmalloc_ptr.
4657 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4658 unique_xmalloc_ptr.
4659
4660 2018-06-18 Tom Tromey <tom@tromey.com>
4661
4662 * objfiles.h (inhibit_section_map_updates): Update.
4663 (resume_section_map_updates, resume_section_map_updates_cleanup):
4664 Remove.
4665 * solib-svr4.c (svr4_handle_solib_event): Update.
4666 * objfiles.c (inhibit_section_map_updates): Return
4667 scoped_restore_tmpl<int>.
4668 (resume_section_map_updates, resume_section_map_updates_cleanup):
4669 Remove.
4670
4671 2018-06-18 Tom Tromey <tom@tromey.com>
4672
4673 * valprint.h (read_string): Update.
4674 * valprint.c (read_string): Change type of "buffer".
4675 (val_print_string): Update.
4676 * python/py-value.c (valpy_string): Update.
4677 * language.h (struct language_defn) <la_get_string>: Change
4678 type of "buffer".
4679 (default_get_string, c_get_string): Update.
4680 * language.c (default_get_string): Change type of "buffer".
4681 * guile/scm-value.c (gdbscm_value_to_string): Update.
4682 * c-lang.c (c_get_string): Change type of "buffer".
4683
4684 2018-06-18 Tom Tromey <tom@tromey.com>
4685
4686 * ser-mingw.c (struct pipe_state_destroyer): New.
4687 (pipe_state_up): New typedef.
4688 (cleanup_pipe_state): Remove.
4689 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4690
4691 2018-06-18 Tom Tromey <tom@tromey.com>
4692
4693 * rust-lang.h (rust_yyerror): Don't declare.
4694 * rust-lang.c (rust_language_defn): Update.
4695 * rust-exp.y (yyerror): Now static.
4696 * parse.c (parse_exp_in_context_1): Update.
4697 * p-lang.h (p_yyerror): Don't declare.
4698 * p-lang.c (p_language_defn): Update.
4699 * p-exp.y (yyerror): Now static.
4700 * opencl-lang.c (opencl_language_defn): Update.
4701 * objc-lang.c (objc_language_defn): Update.
4702 * m2-lang.h (m2_yyerror): Don't declare.
4703 * m2-lang.c (m2_language_defn): Update.
4704 * m2-exp.y (yyerror): Now static.
4705 * language.h (struct language_defn) <la_error>: Remove.
4706 * language.c (unk_lang_error): Remove.
4707 (unknown_language_defn, auto_language_defn): Remove.
4708 * go-lang.h (go_yyerror): Don't declare.
4709 * go-lang.c (go_language_defn): Update.
4710 * go-exp.y (yyerror): Now static.
4711 * f-lang.h (f_yyerror): Don't declare.
4712 * f-lang.c (f_language_defn): Update.
4713 * f-exp.y (yyerror): Now static.
4714 * d-lang.h (d_yyerror): Don't declare.
4715 * d-lang.c (d_language_defn): Update.
4716 * d-exp.y (yyerror): Now static.
4717 * c-lang.h (c_yyerror): Don't declare.
4718 * c-lang.c (c_language_defn, cplus_language_defn)
4719 (asm_language_defn, minimal_language_defn): Update.
4720 * c-exp.y (yyerror): Now static.
4721 * ada-lang.h (ada_yyerror): Don't declare.
4722 * ada-lang.c (ada_language_defn): Update.
4723 * ada-exp.y (yyerror): Now static.
4724
4725 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4726
4727 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4728 (store_sveregs_to_thread): Likewise.
4729 (aarch64_linux_fetch_inferior_registers): Check for SVE.
4730 (aarch64_linux_store_inferior_registers): Likewise.
4731 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4732 function.
4733 (aarch64_sve_regs_copy_to_regcache): Likewise.
4734 (aarch64_sve_regs_copy_from_regcache): Likewise.
4735 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4736 declaration.
4737 (aarch64_sve_regs_copy_to_regcache): Likewise.
4738 (aarch64_sve_regs_copy_from_regcache): Likewise.
4739 (sve_context): Structure from Linux headers.
4740 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4741 (SVE_SIG_ZREG_SIZE): Likewise.
4742 (SVE_SIG_PREG_SIZE): Likewise.
4743 (SVE_SIG_FFR_SIZE): Likewise.
4744 (SVE_SIG_REGS_OFFSET): Likewise.
4745 (SVE_SIG_ZREGS_OFFSET): Likewise.
4746 (SVE_SIG_ZREG_OFFSET): Likewise.
4747 (SVE_SIG_ZREGS_SIZE): Likewise.
4748 (SVE_SIG_PREGS_OFFSET): Likewise.
4749 (SVE_SIG_PREG_OFFSET): Likewise.
4750 (SVE_SIG_PREGS_SIZE): Likewise.
4751 (SVE_SIG_FFR_OFFSET): Likewise.
4752 (SVE_SIG_REGS_SIZE): Likewise.
4753 (SVE_SIG_CONTEXT_SIZE): Likewise.
4754 (SVE_PT_REGS_MASK): Likewise.
4755 (SVE_PT_REGS_FPSIMD): Likewise.
4756 (SVE_PT_REGS_SVE): Likewise.
4757 (SVE_PT_VL_INHERIT): Likewise.
4758 (SVE_PT_VL_ONEXEC): Likewise.
4759 (SVE_PT_REGS_OFFSET): Likewise.
4760 (SVE_PT_FPSIMD_OFFSET): Likewise.
4761 (SVE_PT_FPSIMD_SIZE): Likewise.
4762 (SVE_PT_SVE_ZREG_SIZE): Likewise.
4763 (SVE_PT_SVE_PREG_SIZE): Likewise.
4764 (SVE_PT_SVE_FFR_SIZE): Likewise.
4765 (SVE_PT_SVE_FPSR_SIZE): Likewise.
4766 (SVE_PT_SVE_FPCR_SIZE): Likewise.
4767 (__SVE_SIG_TO_PT): Likewise.
4768 (SVE_PT_SVE_OFFSET): Likewise.
4769 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4770 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4771 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4772 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4773 (SVE_PT_SVE_PREG_OFFSET): Likewise.
4774 (SVE_PT_SVE_PREGS_SIZE): Likewise.
4775 (SVE_PT_SVE_FFR_OFFSET): Likewise.
4776 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4777 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4778 (SVE_PT_SVE_SIZE): Likewise.
4779 (SVE_PT_SIZE): Likewise.
4780 (HAS_SVE_STATE): New define.
4781
4782 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4783
4784 * nat/aarch64-sve-linux-sigcontext.h: New file.
4785 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4786 new files.
4787 (SVE_VQ_MIN): Likewise.
4788 (SVE_VQ_MAX): Likewise.
4789 (SVE_VL_MIN): Likewise.
4790 (SVE_VL_MAX): Likewise.
4791 (SVE_NUM_ZREGS): Likewise.
4792 (SVE_NUM_PREGS): Likewise.
4793 (sve_vl_valid): Likewise.
4794 (struct user_sve_header): Likewise.
4795
4796 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4797 Richard Bunt <Richard.Bunt@arm.com>
4798
4799 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4800 was requested by GDB.
4801
4802 2018-06-15 Tom de Vries <tdevries@suse.de>
4803
4804 * MAINTAINERS (Write After Approval): Add Tom de Vries.
4805
4806 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
4807
4808 * gnulib/update-gnulib.sh: Print expected versions of
4809 autoconf/aclocal.
4810
4811 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
4812
4813 * arch-utils.c (default_type_align): Use type_length_units.
4814 * gdbtypes.c (type_align): Use type_length_units.
4815
4816 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4817
4818 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4819 of 'define' command.
4820
4821 2018-06-14 Tom de Vries <tdevries@suse.de>
4822
4823 PR cli/22573
4824 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4825 get_no_prettyformat_print_options.
4826
4827 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4828
4829 * sparc-nat.h: Include target.h.
4830 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4831 <fetch_registers>: Remove this argument in function call.
4832 <store_registers>: Remove this argument in function call, remove
4833 extra semicolon.
4834 <low_forget_process>: Call sparc64_forget_process instead of
4835 sparc_forget_process.
4836
4837 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4838
4839 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4840 (procfs_target::make_corefile_notes): Adjust to new
4841 target_read_alloc return type.
4842
4843 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4844 Stephen Roberts <stephen.roberts@arm.com>
4845
4846 PR gdb/22882
4847 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4848 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4849 Move should_notify_stop local into more inner scope.
4850
4851 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4852 Stephen Roberts <stephen.roberts@arm.com>
4853
4854 PR gdb/22882
4855 * infrun.c (resume_1): Add call to mark_async_event_handler.
4856
4857 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4858
4859 * infrun.c (do_target_wait): Change old version of $pc printed.
4860
4861 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4862
4863 * dwarf2read.c (read_index_from_section): Rename to...
4864 (read_gdb_index_from_section): ... this, update all callers.
4865 (dwarf2_read_index): Rename to...
4866 (dwarf2_read_gdb_index): ... this, update all callers.
4867
4868 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
4869
4870 * gdb/hppa-linux-nat.c
4871 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4872 hppa_linux_nat_target::fetch_registers.
4873
4874 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4875
4876 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4877 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4878 (AARCH64_DWARF_SVE_FFR): Likewise.
4879 (AARCH64_DWARF_SVE_P0): Likewise.
4880 (AARCH64_DWARF_SVE_Z0): Likewise.
4881
4882 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4883
4884 * common/common-regcache.h (raw_compare): New function.
4885 * regcache.c (regcache::raw_compare): Likewise.
4886 * regcache.h (regcache::raw_compare): New declaration.
4887
4888 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4889
4890 * common/common-regcache.h (reg_buffer_common): New structure.
4891 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4892 (reg_buffer::raw_supply): Likewise.
4893 (reg_buffer::raw_supply_integer): Likewise.
4894 (reg_buffer::raw_supply_zeroed): Likewise.
4895 (reg_buffer::raw_collect): Likewise.
4896 (reg_buffer::raw_collect_integer): Likewise.
4897 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4898 (reg_buffer::raw_supply): Likewise.
4899 (reg_buffer::raw_supply_integer): Likewise.
4900 (reg_buffer::raw_supply_zeroed): Likewise.
4901 (reg_buffer::raw_collect): Likewise.
4902 (reg_buffer::raw_collect_integer): Likewise.
4903
4904 2018-06-10 Tom Tromey <tom@tromey.com>
4905
4906 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4907 (class remote_state) <stop_reply_queue>: Now std::vector.
4908 (remote_state::~remote_state)
4909 (remote_target::stop_reply_queue_length): Update.
4910 (struct queue_iter_param, remove_child_of_pending_fork)
4911 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4912 (check_pending_event_prevents_wildcard_vcont_callback)
4913 (remove_stop_reply_for_inferior)
4914 (remove_stop_reply_of_remote_state)
4915 (remote_notif_remove_once_on_match)
4916 (stop_reply_match_ptid_and_ws)
4917 (remote_kill_child_of_pending_fork): Remove.
4918 (remote_target::remove_new_fork_children)
4919 (remote_target::check_pending_events_prevent_wildcard_vcont)
4920 (remote_target::discard_pending_stop_replies)
4921 (remote_target::discard_pending_stop_replies_in_queue)
4922 (remote_target::remote_notif_remove_queued_reply)
4923 (remote_target::queued_stop_reply)
4924 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4925 (remote_target::wait, remote_target::kill_new_fork_children)
4926 (remote_target::async): Update.
4927
4928 2018-06-10 Tom Tromey <tom@tromey.com>
4929
4930 * record-full.c (record_full_arch_list_cleanups): Remove.
4931 (record_full_message): Use try/catch.
4932 (record_full_wait_cleanups): Remove.
4933 (record_full_wait_1): Use try/catch.
4934 (record_full_restore): Likewise.
4935
4936 2018-06-10 Tom Tromey <tom@tromey.com>
4937
4938 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
4939 declare VEC. Add constructor.
4940 <in_target_beneath>: Now bool.
4941 (record_full_breakpoints): Now a std::vector, static.
4942 (record_full_sync_record_breakpoints)
4943 (record_full_init_record_breakpoints)
4944 (record_full_target::insert_breakpoint)
4945 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
4946
4947 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4948
4949 * dwarf2read.c (process_cu_includes): Remove struct keyword.
4950 * serial.c (serial_interface_lookup): Remove struct keyword.
4951
4952 2018-06-10 Tom Tromey <tom@tromey.com>
4953
4954 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
4955 method.
4956 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
4957 a method.
4958 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
4959 method.
4960 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
4961 "beneath" as a method.
4962 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
4963 Use "beneath" as a method.
4964
4965 2018-06-10 Tom Tromey <tom@tromey.com>
4966
4967 * tracefile.c (struct trace_file_writer_deleter): New.
4968 <operator()>: Rename from trace_file_writer_xfree.
4969 (trace_file_writer_up): New typedef.
4970 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
4971
4972 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4973
4974 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
4975 <m_registers, m_register_status>: Change type to
4976 std::unique_ptr.
4977 * regcache.c (reg_buffer::reg_buffer): Use new instead of
4978 XCNEWVEC.
4979
4980 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4981
4982 * common/common-regcache.h (enum register_status): Add
4983 underlying type "signed char".
4984 * regcache.h (reg_buffer) <m_register_status>: Change type to
4985 register_status *.
4986 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
4987 register_status instead of signed char.
4988 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
4989 (reg_buffer::get_register_status): Remove cast.
4990 (readable_regcache::raw_read): Remove cast.
4991 (readable_regcache::cooked_read): Remove cast.
4992
4993 2018-06-09 Tom Tromey <tom@tromey.com>
4994
4995 * source.c (reverse_search_command, forward_search_command): Use
4996 scoped_fd.
4997
4998 2018-06-09 Tom Tromey <tom@tromey.com>
4999
5000 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5001 (serial_ops_list): Now static, std::vector.
5002 (serial_interface_lookup, serial_add_interface): Update.
5003
5004 2018-06-09 Tom Tromey <tom@tromey.com>
5005
5006 * dwarf2read.c (process_cu_includes): Update.
5007 (process_full_comp_unit): Update.
5008 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5009 std::vector.
5010
5011 2018-06-08 Paul Koning <paul_koning@dell.com>
5012
5013 PR gdb/23252
5014
5015 * python/python.c (do_start_initialization):
5016 Avoid call to internal Python API.
5017 (init__gdb_module): New function.
5018
5019 2018-06-08 Gary Benson <gbenson@redhat.com>
5020
5021 * linux-thread-db.c (valprint.h): New include.
5022 (struct check_thread_db_info): New structure.
5023 (check_thread_db_on_load, tdb_testinfo): New static globals.
5024 (check_thread_db, check_thread_db_callback): New functions.
5025 (try_thread_db_load_1): Run integrity checks if requested.
5026 (maintenance_check_libthread_db): New function.
5027 (_initialize_thread_db): Register "maint check libthread-db"
5028 and "maint set/show check-libthread-db".
5029 * NEWS: Mention the above new commands.
5030
5031 2018-06-08 Tom Tromey <tom@tromey.com>
5032
5033 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5034 now a method.
5035
5036 2018-06-08 Tom Tromey <tom@tromey.com>
5037
5038 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5039
5040 2018-06-08 Tom Tromey <tom@tromey.com>
5041
5042 * common/btrace-common.h (struct btrace_data): Add constructor,
5043 destructor, move assignment operator.
5044 <empty, clear, fini>: New methods.
5045 <format>: Initialize.
5046 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5047 (btrace_data_empty): Don't declare.
5048 * common/btrace-common.c (btrace_data_init): Remove.
5049 (btrace_data::fini): Rename from btrace_data_fini.
5050 (btrace_data::empty): Rename from btrace_data_empty.
5051 (btrace_data::clear): Rename from btrace_data_clear. Return
5052 bool.
5053 * btrace.h (make_cleanup_btrace_data): Don't declare.
5054 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5055 (parse_xml_btrace): Update.
5056 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5057 (maint_btrace_clear_packet_history_cmd): Update.
5058
5059 2018-06-07 Pedro Alves <palves@redhat.com>
5060
5061 * target.h (target_ops) <beneath>: Now a method. All references
5062 updated.
5063 (class target_stack): New.
5064 * target.c (g_target_stack): New.
5065 (g_current_top_target): Delete.
5066 (current_top_target): Get the top target out of g_target_stack.
5067 (target_stack::push, target_stack::unpush): New.
5068 (push_target, unpush_target): Reimplement.
5069 (target_is_pushed): Reimplement in terms of g_target_stack.
5070 (target_ops::beneath, target_stack::find_beneath): New.
5071
5072 2018-06-07 Pedro Alves <palves@redhat.com>
5073
5074 * target.h (find_target_beneath): Delete declaration.
5075 * target.c (find_target_beneath): Delete definition.
5076 * aix-thread.c: All callers of find_target_beneath adjusted to
5077 call target_ops::beneath instead.
5078 * bsd-uthread.c: Likewise.
5079 * linux-thread-db.c: Likewise.
5080 * ravenscar-thread.c: Likewise.
5081 * sol-thread.c: Likewise.
5082 * spu-multiarch.c: Likewise.
5083
5084 2018-06-07 Pedro Alves <palves@redhat.com>
5085
5086 * target.h (target_ops) <beneath>: Now a method. All references
5087 updated.
5088 (target_ops) <m_beneath>: New.
5089 * target.c (target_ops::beneath): New.
5090 * corelow.c: Adjust all references to target_ops::beneath.
5091 * linux-thread-db.c: Likewise.
5092 * make-target-delegates: Likewise.
5093 * record-btrace.c: Likewise.
5094 * record-full.c: Likewise.
5095 * remote.c: Likewise.
5096 * target.c: Likewise.
5097 * target-delegates.c: Regenerate.
5098
5099 2018-06-07 Pedro Alves <palves@redhat.com>
5100
5101 * target.h (target_stack): Delete.
5102 (current_top_target): Declare function.
5103 * target.c (target_stack): Delete.
5104 (g_current_top_target): New.
5105 (current_top_target): New function.
5106 * auxv.c: Use current_top_target instead of target_stack
5107 throughout.
5108 * avr-tdep.c: Likewise.
5109 * breakpoint.c: Likewise.
5110 * corefile.c: Likewise.
5111 * elfread.c: Likewise.
5112 * eval.c: Likewise.
5113 * exceptions.c: Likewise.
5114 * frame.c: Likewise.
5115 * gdbarch-selftests.c: Likewise.
5116 * gnu-v3-abi.c: Likewise.
5117 * ia64-tdep.c: Likewise.
5118 * ia64-vms-tdep.c: Likewise.
5119 * infcall.c: Likewise.
5120 * infcmd.c: Likewise.
5121 * infrun.c: Likewise.
5122 * linespec.c: Likewise.
5123 * linux-tdep.c: Likewise.
5124 * minsyms.c: Likewise.
5125 * ppc-linux-nat.c: Likewise.
5126 * ppc-linux-tdep.c: Likewise.
5127 * procfs.c: Likewise.
5128 * regcache.c: Likewise.
5129 * remote.c: Likewise.
5130 * rs6000-tdep.c: Likewise.
5131 * s390-linux-nat.c: Likewise.
5132 * s390-tdep.c: Likewise.
5133 * solib-aix.c: Likewise.
5134 * solib-darwin.c: Likewise.
5135 * solib-dsbt.c: Likewise.
5136 * solib-spu.c: Likewise.
5137 * solib-svr4.c: Likewise.
5138 * solib-target.c: Likewise.
5139 * sparc-tdep.c: Likewise.
5140 * sparc64-tdep.c: Likewise.
5141 * spu-tdep.c: Likewise.
5142 * symfile.c: Likewise.
5143 * symtab.c: Likewise.
5144 * target-descriptions.c: Likewise.
5145 * target-memory.c: Likewise.
5146 * target.c: Likewise.
5147 * target.h: Likewise.
5148 * tracefile-tfile.c: Likewise.
5149 * tracepoint.c: Likewise.
5150 * valops.c: Likewise.
5151 * valprint.c: Likewise.
5152 * value.c: Likewise.
5153 * windows-tdep.c: Likewise.
5154 * mi/mi-main.c: Likewise.
5155
5156 2018-06-07 Tom Tromey <tom@tromey.com>
5157
5158 * valprint.h (build_address_symbolic): Declare.
5159 * printcmd.c (print_address_symbolic): Update.
5160 (build_address_symbolic): Change "name" and "filename" to
5161 std::string.
5162 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5163 Update.
5164 * defs.h (build_address_symbolic): Remove declaration.
5165
5166 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5167
5168 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5169 (aarch64_vnv_type): Add function.
5170 (aarch64_pseudo_register_name): Add V regs for SVE.
5171 (aarch64_pseudo_register_type): Likewise.
5172 (aarch64_pseudo_register_reggroup_p): Likewise.
5173 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5174 (aarch64_pseudo_read_value): Add V regs for SVE.
5175 (aarch64_pseudo_write_2): Use V0 offset for SVE
5176 (aarch64_pseudo_write): Add V regs for SVE.
5177 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5178
5179 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5180
5181 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5182 (sve_vl_from_vq): Likewise.
5183
5184 2018-06-05 Tom Tromey <tom@tromey.com>
5185
5186 * cli/cli-cmds.c (show_version): Update.
5187 * top.c (print_gdb_version): Add "interactive" parameter.
5188 Update.
5189 * main.c (captured_main_1): Update.
5190 * top.h (print_gdb_version): Add "interactive" parameter and a
5191 comment.
5192
5193 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5194
5195 * common/enum-flags.h: Add trailing semicolon to example in
5196 comment.
5197
5198 2018-06-05 Tom Tromey <tom@tromey.com>
5199
5200 PR cli/12326:
5201 * NEWS: Add entry about pager.
5202 * utils.c (pagination_disabled_for_command): New global.
5203 (prompt_for_continue): Allow "c" response to prompt.
5204 (reinitialize_more_filter): Clear
5205 pagination_disabled_for_command.
5206 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5207
5208 2018-06-04 Tom Tromey <tom@tromey.com>
5209
5210 * ada-lang.h (ada_lookup_symbol_list): Update.
5211 * ada-lang.c (resolve_subexp): Update.
5212 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5213 parameter.
5214 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5215 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5216 results parameter to std::vector.
5217 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5218 Update.
5219 * ada-exp.y (block_lookup): Update.
5220 (select_possible_type_sym): Change type of syms. Remove nsyms
5221 parameter.
5222 (write_var_or_type, write_name_assoc): Update.
5223
5224 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5225
5226 * windows-nat.c (windows_nat_target::xfer_partial): Return
5227 TARGET_XFER_E_IO if we need to delegate to the target beneath
5228 but BENEATH is NULL.
5229
5230 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5231
5232 * Makefile.in (config.status): Add configure.nat as a
5233 dependency.
5234
5235 2018-06-04 Tom Tromey <tom@tromey.com>
5236
5237 * cp-name-parser.y (cpname_state): Add method declarations.
5238 (HANDLE_QUAL): Update.
5239 (cpname_state::d_grab, cpname_state::fill_comp)
5240 (cpname_state::make_operator, cpname_state::make_dtor)
5241 (cpname_state::make_builtin_type, cpname_state::make_name)
5242 (cpname_state::d_qualify, cpname_state::d_int_type)
5243 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5244 (%union): Move earlier.
5245
5246 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5247
5248 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5249
5250 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5251
5252 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5253 (aarch64_pseudo_write_1): Likewise.
5254 (aarch64_pseudo_read_value): Use helper.
5255 (aarch64_pseudo_write): Likewise.
5256
5257 2018-06-04 Pedro Alves <palves@redhat.com>
5258
5259 * darwin-nat.c (darwin_ops): Delete.
5260 (darwin_attach_pid): Use get_native_target.
5261
5262 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5263
5264 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5265 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5266
5267 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5268
5269 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5270 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5271 (aarch64_gdbarch_init): Check for SVE.
5272 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5273
5274 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5275
5276 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5277 * aarch64-tdep.h (aarch64_read_description): Likewise.
5278 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5279 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5280 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5281 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5282 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5283
5284 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5285
5286 * value.c (value_fetch_lazy_bitfield): New.
5287 (value_fetch_lazy_memory): New.
5288 (value_fetch_lazy_register): New.
5289 (value_fetch_lazy): Factor out to smaller functions.
5290
5291 2018-06-01 Tom Tromey <tom@tromey.com>
5292
5293 * cp-name-parser.y (backslashable, represented): Now const.
5294
5295 2018-06-01 Tom Tromey <tom@tromey.com>
5296
5297 * cp-name-parser.y: Include parser-defs.h.
5298 (parser_fprintf): Remove declaration.
5299
5300 2018-06-01 Tom Tromey <tom@tromey.com>
5301
5302 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5303 %parse-param.
5304 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5305 (global_result): Remove globals.
5306 (struct cpname_state): New.
5307 (yyparse): Don't declare.
5308 (yylex, yyerror): Move declarations after %union.
5309 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5310 (make_name): Add state parameter.
5311 Update all callers.
5312 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5313 parameter.
5314 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5315 Update.
5316 (yylex): Add lvalp, state parameters.
5317 (yyerror): Add state parameter.
5318 (cp_demangled_name_to_comp): Update.
5319
5320 2018-06-01 Tom Tromey <tom@tromey.com>
5321
5322 * cp-name-parser.y (parser_fprintf): Declare.
5323 (GDB_YY_REMAP_PREFIX): Define.
5324 Include yy-remap.h. Don't redefine yy* identifiers.
5325
5326 2018-06-01 Tom Tromey <tom@tromey.com>
5327
5328 * python/py-type.c (typy_legacy_template_argument): Update.
5329 * cp-support.h (cp_demangled_name_to_comp): Update.
5330 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5331 parameter to be a "std::string *".
5332 (main): Update.
5333
5334 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5335
5336 * ada-lex.l: Include "diagnostics.h" instead of
5337 "common/diagnostics.h".
5338 * unittests/environ-selftests.c: Likewise.
5339 * common/diagnostics.h: Moved to ../include.
5340
5341 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5342
5343 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5344 to language_mode_manual while calling breakpoint_re_set_one.
5345
5346 2018-06-01 Tom Tromey <tom@tromey.com>
5347
5348 * valops.c (value_cast_structs, destructor_name_p): Update.
5349 * symtab.c (gdb_mangle_name): Update.
5350 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5351 Update.
5352 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5353 (pascal_object_print_value_fields, pascal_object_print_value):
5354 Update.
5355 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5356 * linespec.c (find_methods): Update.
5357 * gdbtypes.h (type_name_no_tag): Remove.
5358 (type_name_or_error): Rename from type_name_no_tag_or_error.
5359 * gdbtypes.c (type_name_no_tag): Remove.
5360 (type_name_or_error): Rename from type_name_no_tag_or_error.
5361 (lookup_struct_elt_type, check_typedef): Update.
5362 * expprint.c (print_subexp_standard): Update.
5363 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5364 * d-namespace.c (d_lookup_nested_symbol): Update.
5365 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5366 (cp_print_class_member): Update.
5367 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5368 * completer.c (add_struct_fields): Update.
5369 * c-typeprint.c (cp_type_print_derivation_info)
5370 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5371 Update.
5372 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5373 (ada_prefer_type, ada_is_exception_sym): Update.
5374
5375 2018-06-01 Tom Tromey <tom@tromey.com>
5376
5377 * valops.c (enum_constant_from_type, value_namespace_elt)
5378 (value_maybe_namespace_elt): Update.
5379 * valarith.c (find_size_for_pointer_math): Update.
5380 * target-descriptions.c (make_gdb_type): Update.
5381 * symmisc.c (print_symbol): Update.
5382 * stabsread.c (define_symbol, read_type)
5383 (complain_about_struct_wipeout, add_undefined_type)
5384 (cleanup_undefined_types_1): Update.
5385 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5386 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5387 (rust_internal_print_type, rust_composite_type)
5388 (rust_evaluate_funcall, rust_evaluate_subexp)
5389 (rust_inclusive_range_type_p): Update.
5390 * python/py-type.c (typy_get_tag): Update.
5391 * p-typeprint.c (pascal_type_print_base): Update.
5392 * mdebugread.c (parse_symbol, parse_type): Update.
5393 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5394 Update.
5395 * guile/scm-type.c (gdbscm_type_tag): Update.
5396 * go-lang.c (sixg_string_p): Update.
5397 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5398 Update.
5399 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5400 (TYPE_TAG_NAME): Remove.
5401 * gdbtypes.c (type_name_no_tag): Simplify.
5402 (check_typedef, check_types_equal, recursive_dump_type)
5403 (copy_type_recursive, arch_composite_type): Update.
5404 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5405 in summary mode when needed.
5406 * eval.c (evaluate_funcall): Update.
5407 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5408 (process_structure_scope, read_enumeration_type)
5409 (read_namespace_type, read_module_type, determine_prefix): Update.
5410 * cp-support.c (inspect_type): Update.
5411 * coffread.c (process_coff_symbol, decode_base_type): Update.
5412 * c-varobj.c (c_is_path_expr_parent): Update.
5413 * c-typeprint.c (c_type_print_base_struct_union): Update.
5414 (c_type_print_base_1): Update. Print struct/class/union/enum in
5415 summary when using C language.
5416 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5417 (gen_maybe_namespace_elt): Update.
5418 * ada-lang.c (ada_type_name): Simplify.
5419 (empty_record, ada_template_to_fixed_record_type_1)
5420 (template_to_static_fixed_type)
5421 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5422
5423 2018-06-01 Tom Tromey <tom@tromey.com>
5424
5425 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5426 c_print_type.
5427 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5428 (c_print_type): Update.
5429 (c_print_type): New overload.
5430 (c_type_print_varspec_prefix, c_type_print_args)
5431 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5432 (c_type_print_base_struct_union, c_type_print_base_1)
5433 (cp_type_print_method_args): Add "language" parameter.
5434 (c_type_print_base): Update.
5435 * c-lang.h (c_print_type): Add new overload.
5436
5437 2018-06-01 Tom Tromey <tom@tromey.com>
5438
5439 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5440 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5441
5442 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5443
5444 * aarch64-tdep.c (aarch64_sve_register_names): New const
5445 var.
5446 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5447 (AARCH64_SVE_Z_REGS_NUM): New define.
5448 (AARCH64_SVE_P_REGS_NUM): Likewise.
5449 (AARCH64_SVE_NUM_REGS): Likewise.
5450
5451 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5452
5453 * nat/linux-ptrace.h [__alpha__]
5454 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5455 definitions.
5456
5457 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5458
5459 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5460 the endianness selected.
5461 * NEWS: Document `set endian auto' mode operation update.
5462
5463 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5464
5465 * Makefile.in: Add new header.
5466 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5467 (sve_vl_from_vg): Likewise.
5468 (sve_vq_from_vl): Likewise.
5469 (sve_vl_from_vq): Likewise.
5470 (sve_vq_from_vg): Likewise.
5471 (sve_vg_from_vq): Likewise.
5472 * configure.nat: Add new c file.
5473 * nat/aarch64-sve-linux-ptrace.c: New file.
5474 * nat/aarch64-sve-linux-ptrace.h: New file.
5475
5476 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5477
5478 * aarch64-linux-nat.c (aarch64_linux_read_description):
5479 Add parmeter zero.
5480 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5481 Likewise.
5482 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5483 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5484 (aarch64_gdbarch_init): Add parmeter zero.
5485 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5486 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5487 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5488 parmeter.
5489 * doc/gdb.texinfo: Describe SVE feature
5490 * features/aarch64-sve.c: New file.
5491
5492 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
5493
5494 PR gdb/23210
5495 * gdbarch.sh (significant_addr_bit): Default to zero when
5496 not set by target architecture.
5497 * gdbarch.c: Re-generated.
5498 * utils.c (address_significant): Update.
5499
5500 2018-05-30 Joel Brobecker <brobecker@adacore.com>
5501
5502 * stack.c (func_command): Remove trailing newline in call to error.
5503
5504 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5505
5506 * regcache.h (regcache_raw_collect): Remove, update callers to
5507 use regcache::raw_collect.
5508 * regcache.c (regcache_raw_collect): Remove.
5509
5510 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5511
5512 * regcache.h (regcache_raw_supply): Remove, update callers to
5513 use detached_regcache::raw_supply.
5514 * regcache.c (regcache_raw_supply): Remove.
5515
5516 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5517
5518 * regcache.h (regcache_cooked_write_part): Remove, update
5519 callers to use regcache::cooked_write_part.
5520 * regcache.c (regcache_cooked_write_part): Remove.
5521
5522 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5523
5524 * regcache.h (regcache_cooked_read_part): Remove, update callers
5525 to use readable_regcache::cooked_read_part.
5526 * regcache.c (regcache_cooked_read_part): Remove.
5527
5528 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5529
5530 * regcache.h (regcache_cooked_read_value): Remove, update
5531 callers to use readable_regcache::cooked_read_value.
5532 * regcache.c (regcache_cooked_read_value): Remove.
5533
5534 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5535
5536 * regcache.h (regcache_cooked_write): Remove, update callers to
5537 use regcache::cooked_write.
5538 * regcache.c (regcache_cooked_write): Remove.
5539
5540 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5541
5542 * regcache.h (regcache_invalidate): Remove, update callers to
5543 use detached_regcache::invalidate instead.
5544 * regcache.c (regcache_invalidate): Remove.
5545
5546 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5547
5548 * regcache.h (regcache_raw_write_part): Remove, update callers
5549 to use regcache::raw_write_part instead.
5550 * regcache.c (regcache_raw_write_part): Remove.
5551
5552 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5553
5554 * regcache.h (regcache_raw_read_part): Remove, update callers to
5555 use readable_regcache::raw_read_part instead.
5556 * regcache.c (regcache_raw_read_part): Remove.
5557
5558 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5559
5560 * regcache.h (regcache_cooked_read): Remove, update callers to
5561 use readable_regcache::cooked_read instead.
5562 * regcache.c (regcache_cooked_read): Remove.
5563
5564 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5565
5566 * regcache.h (regcache_raw_write): Remove, update callers to use
5567 regcache::raw_write instead.
5568 * regcache.c (regcache_raw_write): Remove.
5569
5570 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5571
5572 * regcache.h (regcache_raw_read): Remove, update callers to use
5573 readable_regcache::raw_read instead.
5574 * regcache.c (regcache_raw_read): Remove.
5575
5576 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5577
5578 * regcache.h (regcache_raw_update): Remove, update callers to
5579 use readable_regcache::raw_update instead.
5580 * regcache.c (regcache_raw_update): Remove.
5581
5582 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5583
5584 * regcache.h (regcache_register_status): Remove, update callers
5585 to use reg_buffer::get_register_status directly instead.
5586 * regcache.c (regcache_register_status): Remove.
5587
5588 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5589
5590 * regcache.h (regcache_get_ptid): Remove, update all callers to
5591 call regcache::ptid instead.
5592 * regcache.c (regcache_get_ptid): Remove.
5593
5594 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5595
5596 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5597
5598 2018-05-30 Pedro Alves <palves@redhat.com>
5599
5600 * common/common-exceptions.h (exception_rethrow): Use
5601 ATTRIBUTE_NORETURN.
5602
5603 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5604
5605 * breakpoint.c (print_solib_event, check_status_catch_solib):
5606 Remove struct keyword in range-based for loops.
5607 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5608 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5609 Likewise.
5610 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5611 Likewise.
5612 * symfile.c (addr_info_make_relative): Likewise.
5613 * thread.c (value_in_thread_stack_temporaries): Likewise.
5614
5615 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
5616
5617 PR gdb/16841
5618 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5619 aggregate type to get its real type before accessing it.
5620
5621 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
5622
5623 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5624 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5625 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5626 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5627 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5628 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5629 * printcmd.c (info_address_command): Likewise.
5630
5631 2018-05-29 Tom Tromey <tom@tromey.com>
5632
5633 * windows-nat.c (handle_exception): Update fall-through comment.
5634
5635 2018-05-29 Tom Tromey <tom@tromey.com>
5636
5637 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5638 (struct program_space) <added_solibs>: Now a std::vector.
5639 * breakpoint.c (print_solib_event): Update.
5640 (check_status_catch_solib): Update.
5641 * progspace.c (clear_program_space_solib_cache): Update.
5642 * solib.c (update_solib_list): Update.
5643
5644 2018-05-29 Tom Tromey <tom@tromey.com>
5645
5646 * python/py-type.c (typy_richcompare): Update.
5647 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5648 * gdbtypes.h (types_deeply_equal): Return bool.
5649 (types_equal): Likewise.
5650 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5651 declare VEC.
5652 (check_types_equal): Change worklist to std::vector. Return
5653 bool.
5654 (struct type_equality_entry): Add constructor.
5655 (compare_maybe_null_strings): Return bool.
5656 (check_types_worklist): Return bool. Change worklist to
5657 std::vector.
5658 (types_deeply_equal): Use std::vector.
5659 (types_equal): Return bool.
5660 (compare_maybe_null_strings): Simplify.
5661
5662 2018-05-29 Tom Tromey <tom@tromey.com>
5663
5664 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5665
5666 2018-05-29 Tom Tromey <tom@tromey.com>
5667
5668 * objc-lang.h: Don't include cp-support.h.
5669 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5670 declare VEC.
5671
5672 2018-05-27 Tom Tromey <tom@tromey.com>
5673
5674 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5675
5676 2018-05-25 Tom Tromey <tom@tromey.com>
5677
5678 * value.c (value::location): Initialize.
5679
5680 2018-05-25 Tom Tromey <tom@tromey.com>
5681
5682 * dbxread.c (init_bincl_list): Remove.
5683 (bincl_list): Now a std::vector.
5684 (bincls_allocated, next_bincl): Remove.
5685 (free_bincl_list, do_free_bincl_list_cleanup)
5686 (make_cleanup_free_bincl_list): Remove.
5687 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5688 unique_xmalloc_ptr.
5689 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5690 (struct header_file_location): Add constructor.
5691 (add_bincl_to_list): Remove.
5692
5693 2018-05-25 Tom Tromey <tom@tromey.com>
5694
5695 * tui/tui.c (tui_enable): Update.
5696 * mi/mi-interp.c (mi_interp::init): Update.
5697 * interps.h (class interp) <name>: New method.
5698 <m_name>: Rename from name.
5699 (~scoped_restore_interp): Update.
5700 * interps.c (interp::interp): Update.
5701 (interp_add, interp_set, interp_lookup_existing)
5702 (current_interp_named_p): Update.
5703
5704 2018-05-25 Tom Tromey <tom@tromey.com>
5705
5706 * interps.c (interp_name): Remove.
5707 * mi/mi-interp.c (mi_interp::init): Update.
5708 * interps.h (interp_name): Remove.
5709 (~scoped_restore_interp): Update.
5710 * tui/tui.c (tui_enable): Update.
5711
5712 2018-05-25 Tom Tromey <tom@tromey.com>
5713
5714 * utils.c (fputs_maybe_filtered): Update.
5715 * linespec.c (decode_line_full): Update.
5716 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5717 (mi_print_breakpoint_for_event, mi_solib_loaded)
5718 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5719 (mi_user_selected_context_changed): Update.
5720 * mi/mi-main.c (mi_execute_command): Update.
5721 * cli/cli-script.c (execute_control_command): Update.
5722 * python/python.c (execute_gdb_command): Update.
5723 * solib.c (info_sharedlibrary_command): Update.
5724 * interps.c (interp_ui_out): Remove.
5725 * interps.h (interp_ui_out): Remove.
5726
5727 2018-05-25 Tom Tromey <tom@tromey.com>
5728
5729 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5730 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5731 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5732
5733 2018-05-25 Tom Tromey <tom@tromey.com>
5734
5735 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5736 * interps.c (interp_exec): Use scoped_restore.
5737
5738 2018-05-25 Tom Tromey <tom@tromey.com>
5739
5740 * remote.c (remote_target::remote_file_get): Use
5741 gdb::byte_vector.
5742 (remote_target::remote_file_put): Likewise.
5743
5744 2018-05-25 Tom Tromey <tom@tromey.com>
5745
5746 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5747 a std::string.
5748 (get_pe_section_index, add_pe_exported_sym): Update.
5749 (read_pe_exported_syms): Use gdb::def_vector.
5750
5751 2018-05-25 Tom Tromey <tom@tromey.com>
5752
5753 * frame.c (remove_prev_frame): Remove.
5754 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5755
5756 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5757
5758 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5759 Remove prototypes.
5760 * mips-linux-nat.c (supply_fpregset): Always call
5761 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5762 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5763 `mips_fill_fpregset'.
5764 * mips-linux-tdep.c (mips_supply_fpregset)
5765 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5766 (mips_fill_fpregset_wrapper): Remove functions.
5767 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5768 (mips_linux_fpregset): Remove variable.
5769 (mips_linux_iterate_over_regset_sections): Use
5770 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5771 (mips_linux_o32_sigframe_init): Remove comment.
5772
5773 2018-05-25 Pedro Alves <palves@redhat.com>
5774
5775 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5776 (struct readahead_cache, struct packet_reg, struct
5777 remote_arch_state, class remote_state): Move higher up in the
5778 file.
5779 (remote_target::m_remote_state): Now an object instead of a pointer.
5780 (remote_target::get_remote_state): Adjust.
5781
5782 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5783
5784 * stack.c (select_and_print_frame): Delete.
5785 (struct function_bounds): Move struct within function.
5786 (func_command): Most content moved into new function
5787 find_frame_for_function, use new function, print result, add
5788 function comment.
5789 (find_frame_for_function): New function, now returns a result.
5790
5791 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5792
5793 * stack.c (iterate_over_block_arg_vars): Fix comment.
5794 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5795
5796 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5797
5798 PR gdb/23203
5799 * frame.c
5800 (scoped_restore_selected_frame::scoped_restore_selected_frame):
5801 Define.
5802 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5803 Define.
5804 * frame.h (class scoped_restore_selected_frame): New class.
5805 * stack.c (print_frame_local_vars): Remove catching and rethrowing
5806 of any exception, use scoped_restore_selected_frame to restore the
5807 frame instead.
5808
5809 2018-05-24 Pedro Alves <palves@redhat.com>
5810
5811 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5812 override.
5813
5814 2018-05-23 Tom Tromey <tom@tromey.com>
5815
5816 * complaints.c (struct complaints): Remove.
5817 (symfile_complaint_book): Remove.
5818 (series): New global.
5819 (complaint_internal): Update.
5820 (clear_complaints): Update.
5821
5822 2018-05-23 Tom Tromey <tom@tromey.com>
5823
5824 * complaints.c (counters): New global.
5825 (struct complain): Remove.
5826 (struct complaints) <root>: Remove.
5827 (complaint_sentinel): Remove.
5828 (symfile_complaint_book): Update.
5829 (find_complaint) Remove.
5830 (complaint_internal, clear_complaints): Update.
5831
5832 2018-05-23 Tom Tromey <tom@tromey.com>
5833
5834 * complaints.c (struct complain) <file, line>: Remove.
5835 (find_complaint): Remove file, line parameters.
5836 (complaint_internal): Update.
5837
5838 2018-05-23 Tom Tromey <tom@tromey.com>
5839
5840 * complaints.c (vcomplaint): Remove.
5841 (complaint_internal) Merge in contents of vcomplaint.
5842
5843 2018-05-23 Tom Tromey <tom@tromey.com>
5844
5845 * complaints.c (struct complaints) <explanation>: Remove.
5846 (symfile_explanations): Remove.
5847 (symfile_complaint_book): Update.
5848 (vcomplaint): Update.
5849 (struct explanation): Remove.
5850
5851 2018-05-23 Tom Tromey <tom@tromey.com>
5852
5853 * complaints.c (symfile_complaints): Remove.
5854 (complaint_internal): Remove "complaints" parameter.
5855 (clear_complaints, vcomplaint): Remove "c" parameter.
5856 (get_complaints): Remove.
5857 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5858 (dwarf2_debug_line_missing_file_complaint)
5859 (dwarf2_debug_line_missing_end_sequence_complaint)
5860 (dwarf2_complex_location_expr_complaint)
5861 (dwarf2_const_value_length_mismatch_complaint)
5862 (dwarf2_section_buffer_overflow_complaint)
5863 (dwarf2_macro_malformed_definition_complaint)
5864 (dwarf2_invalid_attrib_class_complaint)
5865 (create_addrmap_from_index, dw2_symtab_iter_next)
5866 (dw2_expand_marked_cus)
5867 (dw2_debug_names_iterator::find_vec_in_debug_names)
5868 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5869 (create_debug_type_hash_table, init_cutu_and_read_dies)
5870 (partial_die_parent_scope, add_partial_enumeration)
5871 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5872 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5873 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5874 (create_cus_hash_table, create_dwp_hash_table)
5875 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5876 (dwarf2_rnglists_process, dwarf2_ranges_process)
5877 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5878 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5879 (handle_struct_member_die, process_structure_scope)
5880 (read_array_type, read_common_block, read_module_type)
5881 (read_tag_pointer_type, read_typedef, read_base_type)
5882 (read_subrange_type, load_partial_dies, partial_die_info::read)
5883 (partial_die_info::read, partial_die_info::read)
5884 (partial_die_info::read, read_checked_initial_length_and_offset)
5885 (dwarf2_string_attr, read_formatted_entries)
5886 (dwarf_decode_line_header)
5887 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5888 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5889 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5890 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5891 (get_signatured_type, get_DW_AT_signature_type)
5892 (decode_locdesc, file_file_name, consume_improper_spaces)
5893 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5894 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5895 (dwarf2_symbol_mark_computed, set_die_type)
5896 (read_attribute_value): Update.
5897 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5898 Update.
5899 * dbxread.c (unknown_symtype_complaint)
5900 (lbrac_mismatch_complaint, repeated_header_complaint)
5901 (set_namestring, function_outside_compilation_unit_complaint)
5902 (read_dbx_symtab, process_one_symbol): Update.
5903 * gdbtypes.c (stub_noname_complaint): Update.
5904 * windows-nat.c (handle_unload_dll): Update.
5905 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5906 (decode_base_type): Update.
5907 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5908 (eb_complaint, record_include_begin, record_include_end)
5909 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5910 (process_xcoff_symbol, read_symbol)
5911 (function_outside_compilation_unit_complaint)
5912 (scan_xcoff_symtab): Update.
5913 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5914 * buildsym.c (finish_block_internal, make_blockvector)
5915 (end_symtab_get_static_block, augment_type_symtab): Update.
5916 * dtrace-probe.c (dtrace_process_dof)
5917 (dtrace_static_probe_ops::get_probes): Update.
5918 * complaints.h (struct complaint): Don't declare.
5919 (symfile_complaints): Remove.
5920 (complaint_internal): Remove "complaints" parameter.
5921 (complaint): Likewise.
5922 (clear_complaints): Likewise.
5923 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5924 (reread_symbols): Update.
5925 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5926 (dwarf2_frame_cache, decode_frame_entry): Update.
5927 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5928 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5929 (info_selectors_command): Update.
5930 * macrotab.c (macro_include, check_for_redefinition)
5931 (macro_undef): Update.
5932 * objfiles.c (filter_overlapping_sections): Update.
5933 * stabsread.c (invalid_cpp_abbrev_complaint)
5934 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5935 (define_symbol, error_type, read_type, rs6000_builtin_type)
5936 (stabs_method_name_from_physname, read_member_functions)
5937 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5938 (attach_fields_to_type, complain_about_struct_wipeout)
5939 (read_range_type, read_args, common_block_start)
5940 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
5941 Update.
5942 * mdebugread.c (index_complaint, unknown_ext_complaint)
5943 (basic_type_complaint, bad_tag_guess_complaint)
5944 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
5945 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
5946 (parse_procedure, parse_lines)
5947 (function_outside_compilation_unit_complaint)
5948 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
5949 (bad_tag_guess_complaint, reg_value_complaint): Update.
5950 * cp-support.c (demangled_name_complaint): Update.
5951 * macroscope.c (sal_macro_scope): Update.
5952 * dwarf-index-write.c (class debug_names): Update.
5953
5954 2018-05-23 Tom Tromey <tom@tromey.com>
5955
5956 * complaints.c (clear_complaints): Remove "noisy" parameter.
5957 * complaints.h (clear_complaints): Update.
5958 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5959 (reread_symbols): Update.
5960
5961 2018-05-23 Tom Tromey <tom@tromey.com>
5962
5963 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
5964 SUBSEQUENT_MESSAGE.
5965 (vcomplaint, clear_complaints): Update.
5966 (symfile_explanations): Remove some messages.
5967
5968 2018-05-23 Tom Tromey <tom@tromey.com>
5969
5970 * complaints.c (internal_complaint): Remove.
5971 * complaints.h (internal_complaint): Remove.
5972
5973 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5974
5975 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
5976
5977 2018-05-22 Pedro Alves <palves@redhat.com>
5978
5979 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
5980 (remote_fileio_badfd, remote_fileio_return_errno)
5981 (remote_fileio_return_success, remote_fileio_func_open)
5982 (remote_fileio_func_open, remote_fileio_func_close)
5983 (remote_fileio_func_read, remote_fileio_func_write)
5984 (remote_fileio_func_lseek, remote_fileio_func_rename)
5985 (remote_fileio_func_unlink, remote_fileio_func_stat)
5986 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5987 (remote_fileio_func_isatty, remote_fileio_func_system): Add
5988 remote_target parameter.
5989 (remote_fio_func_map) <func>: Add remote_target parameter.
5990 (do_remote_fileio_request, remote_fileio_request):
5991 * remote-fileio.h (remote_fileio_request):
5992 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
5993 remote_target parameter.
5994 (remote_notif_process, handle_notification): Adjust to pass down
5995 the remote.
5996 (remote_notif_state_allocate): Add remote_target parameter. Save
5997 it.
5998 * remote-notif.h (struct remote_target): Forward declare.
5999 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6000 remote_target parameter.
6001 (struct remote_notif_state) <remote>: New field.
6002 (remote_notif_ack, remote_notif_parse): Add remote_target
6003 parameter.
6004 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6005 remote_target parameter.
6006 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6007 (threads_listing_context, rmt_thread_action, protocol_feature)
6008 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6009 (packet_result, struct threads_listing_context, remote_state):
6010 Move definitions and declarations higher up.
6011 (remote_target) <~remote_target>: Declare.
6012 (remote_download_command_source, remote_file_put, remote_file_get)
6013 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6014 (remote_hostio_pread_vFile, remote_hostio_send_command)
6015 (remote_hostio_set_filesystem, remote_hostio_open)
6016 (remote_hostio_close, remote_hostio_unlink, remote_state)
6017 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6018 (get_memory_write_packet_size, get_memory_read_packet_size)
6019 (append_pending_thread_resumptions, remote_detach_1)
6020 (append_resumption, remote_resume_with_vcont)
6021 (add_current_inferior_and_thread, wait_ns, wait_as)
6022 (process_stop_reply, remote_notice_new_inferior)
6023 (process_initial_stop_replies, remote_add_thread)
6024 (btrace_sync_conf, remote_btrace_maybe_reopen)
6025 (remove_new_fork_children, kill_new_fork_children)
6026 (discard_pending_stop_replies, stop_reply_queue_length)
6027 (check_pending_events_prevent_wildcard_vcont)
6028 (discard_pending_stop_replies_in_queue, stop_reply)
6029 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6030 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6031 (remote_interrupt_as, remote_interrupt_ns)
6032 (remote_get_noisy_reply, remote_query_attached)
6033 (remote_add_inferior, remote_current_thread, get_current_thread)
6034 (set_thread, set_general_thread, set_continue_thread)
6035 (set_general_process, write_ptid)
6036 (remote_unpack_thread_info_response, remote_get_threadinfo)
6037 (parse_threadlist_response, remote_get_threadlist)
6038 (remote_threadlist_iterator, remote_get_threads_with_ql)
6039 (remote_get_threads_with_qxfer)
6040 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6041 (get_offsets, remote_check_symbols, remote_supported_packet)
6042 (remote_query_supported, remote_packet_size)
6043 (remote_serial_quit_handler, remote_detach_pid)
6044 (remote_vcont_probe, remote_resume_with_hc)
6045 (send_interrupt_sequence, interrupt_query)
6046 (remote_notif_get_pending_events, fetch_register_using_p)
6047 (send_g_packet, process_g_packet, fetch_registers_using_g)
6048 (store_register_using_P, store_registers_using_G)
6049 (set_remote_traceframe, check_binary_download)
6050 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6051 (remote_xfer_live_readonly_partial, remote_read_bytes)
6052 (remote_send_printf, remote_flash_write, readchar)
6053 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6054 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6055 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6056 (extended_remote_disable_randomization, extended_remote_run)
6057 (send_environment_packet, extended_remote_environment_support)
6058 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6059 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6060 (packet_command): Now methods of ...
6061 (remote_target): ... this class.
6062 (m_remote_state) <remote_target>: New field.
6063 (struct remote_state) <stop_reply_queue,
6064 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6065 fields.
6066 (remote_state::remote_state): Allocate stop_reply_queue.
6067 (remote_state): Delete global.
6068 (get_remote_state_raw): Delete.
6069 (remote_target::get_remote_state): Allocate m_remote_state on
6070 demand.
6071 (get_current_remote_target): New.
6072 (remote_ops, extended_remote_ops): Delete.
6073 (wait_forever_enabled_p, remote_async_inferior_event_token):
6074 Delete, moved to struct remote_state.
6075 (remote_target::close): Delete self. Destruction bits split to
6076 ...
6077 (remote_target::~remote_target): ... this.
6078 (show_memory_packet_size): Adjust to use
6079 get_current_remote_target.
6080 (struct protocol_feature) <func>: Add remote_target parameter.
6081 All callers adjusted.
6082 (curr_quit_handler_target): New.
6083 (remote_serial_quit_handler): Reimplement.
6084 (remote_target::open_1): Adjust to use get_current_remote_target.
6085 Heap-allocate remote_target/extended_remote_target instances.
6086 (vcont_builder::vcont_builder): Add remote_target parameter, and
6087 save it in m_remote. All callers adjusted.
6088 (vcont_builder::m_remote): New field.
6089 (vcont_builder::restart, vcont_builder::flush)
6090 (vcont_builder::push_action): Use it.
6091 (remote_target::commit_resume): Use it.
6092 (struct queue_iter_param) <remote>: New field.
6093 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6094 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6095 (check_pending_event_prevents_wildcard_vcont_callback)
6096 (remote_target::check_pending_events_prevent_wildcard_vcont)
6097 (remote_target::discard_pending_stop_replies)
6098 (remote_target::discard_pending_stop_replies_in_queue)
6099 (remote_target::remote_notif_remove_queued_reply): Fill in
6100 'remote' field.
6101 (remote_notif_get_pending_events): New.
6102 (remote_target::readchar, remote_target::remote_serial_write):
6103 Save/restore curr_quit_handler_target.
6104 (putpkt): New.
6105 (kill_new_fork_children): Fill in 'remote' field.
6106 (packet_command): Use get_current_remote_target, defer to
6107 remote_target method of same name.
6108 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6109 parameter, and save it in m_remote. All callers adjusted.
6110 (scoped_remote_fd::release): Use m_remote.
6111 (scoped_remote_fd::m_remote): New field.
6112 (remote_file_put, remote_file_get, remote_file_delete): Use
6113 get_current_remote_target, defer to remote_target method of same
6114 name.
6115 (remote_btrace_reset): Add remote_state paremeter. Update all
6116 callers.
6117 (remote_async_inferior_event_handler). Pass down 'data'.
6118 (remote_new_objfile): Use get_current_remote_target.
6119 (remote_target::vcont_r_supported): New.
6120 (set_range_stepping): Use get_current_remote_target and
6121 remote_target::vcont_r_supported.
6122 (_initialize_remote): Don't allocate 'remote_state' and
6123 'stop_reply_queue' globals.
6124 * remote.h (struct remote_target): Forward declare.
6125 (getpkt, putpkt, remote_notif_get_pending_events): Add
6126 'remote_target' parameter.
6127
6128 2018-05-22 Pedro Alves <palves@redhat.com>
6129
6130 * remote.c (vcont_builder): Now a class. Make all data members
6131 private.
6132 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6133 Declare methods.
6134 (vcont_builder_restart): Rename to ...
6135 (vcont_builder::restart): ... this.
6136 (vcont_builder_flush): Rename to ...
6137 (vcont_builder::flush): ... this.
6138 (vcont_builder_push_action): Rename to ...
6139 (vcont_builder::push_action): ... this.
6140 (remote_target::commit_resume): Adjust.
6141
6142 2018-05-22 Pedro Alves <palves@redhat.com>
6143
6144 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6145 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6146 (get_fixed_memory_packet_size): New.
6147 (get_memory_packet_size): Use it.
6148 (set_memory_packet_size): Don't override the config size with
6149 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6150 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6151 Don't refer to get_memory_packet_size if not connected to a remote
6152 target. Show "(default)" if configured size is 0.
6153
6154 2018-05-22 Pedro Alves <palves@redhat.com>
6155
6156 * remote.c (remote_target::mourn_inferior): Move
6157 discard_pending_stop_replies call here from ...
6158 (_initialize_remote): ... here.
6159
6160 2018-05-22 Pedro Alves <palves@redhat.com>
6161
6162 * remote.c (compare_section_command): Remove set_general_process
6163 call.
6164
6165 2018-05-22 Pedro Alves <palves@redhat.com>
6166
6167 * remote.c (struct packet_reg, struct remote_arch_state):
6168 Move higher up in the file.
6169 (remote_state) <m_arch_states>: Store remote_arch_state values
6170 instead of remote_arch_state pointers.
6171 (remote_state::get_remote_arch_state): Adjust.
6172
6173 2018-05-22 Pedro Alves <palves@redhat.com>
6174
6175 * remote.c: Include <unordered_map>.
6176 (remote_state): Now a class.
6177 (remote_state) <get_remote_arch_state>: Declare method.
6178 <get_remote_arch_state>: New field.
6179 (remote_arch_state) <remote_arch_state>: Declare ctor.
6180 <regs>: Now a unique_ptr.
6181 (remote_gdbarch_data_handle): Delete.
6182 (get_remote_arch_state): Delete.
6183 (remote_state::get_remote_arch_state): New.
6184 (get_remote_state): Adjust to call remote_state's
6185 get_remote_arch_state method.
6186 (init_remote_state): Delete, bits factored out to ...
6187 (remote_arch_state::remote_arch_state): ... this new method.
6188 (get_remote_packet_size, get_memory_packet_size)
6189 (process_g_packet, remote_target::fetch_registers)
6190 (remote_target::prepare_to_store, store_registers_using_G)
6191 (remote_target::store_registers, remote_target::get_trace_status):
6192 Adjust to call remote_state's method.
6193 (_initialize_remote): Remove reference to
6194 remote_gdbarch_data_handle.
6195
6196 2018-05-22 Pedro Alves <palves@redhat.com>
6197
6198 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6199 pread>: New method declarations.
6200 (remote_target::open_1): Adjust.
6201 (readahead_cache_invalidate): Rename to ...
6202 (readahead_cache::invalidate): ... this, and adjust to be a class
6203 method.
6204 (readahead_cache_invalidate_fd): Rename to ...
6205 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6206 class method.
6207 (remote_hostio_pwrite): Adjust.
6208 (remote_hostio_pread_from_cache): Rename to ...
6209 (readahead_cache::pread): ... this, and adjust to be a class
6210 method.
6211 (remote_hostio_close): Adjust.
6212
6213 2018-05-22 Pedro Alves <palves@redhat.com>
6214
6215 * remote.c (remote_hostio_close_cleanup): Delete.
6216 (class scoped_remote_fd): New.
6217 (remote_file_put, remote_file_get): Use it.
6218
6219 2018-05-22 Pedro Alves <palves@redhat.com>
6220
6221 (struct vCont_action_support): Use bool and initialize all fields.
6222 (struct readahead_cache): Initialize all fields.
6223 (remote_state): Use bool and initialize all fields.
6224 (remote_state::remote_state, remote_state::~remote_state): New.
6225 (new_remote_state): Delete.
6226 (_initialize_remote): Use new to allocate remote_state.
6227
6228 2018-05-22 Pedro Alves <palves@redhat.com>
6229 張俊芝 <zjz@zjz.name>
6230
6231 PR gdb/22973
6232 * c-exp.y: Include "c-support.h".
6233 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6234 of tolower. Use c_ident_is_alpha to scan names.
6235 * c-lang.c: Include "c-support.h".
6236 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6237 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6238 * c-support.h: New file, with bits factored out from ...
6239 * cp-name-parser.y: ... this file.
6240 Include "c-support.h".
6241 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6242 c-support.h and renamed.
6243 (symbol_end, yylex): Adjust.
6244
6245 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6246
6247 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6248 parameter type to CORE_ADDR.
6249 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6250 parameter type in declaration to CORE_ADDR.
6251 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6252 target_auxv_search to get AT_HWCAP and use the result to get the
6253 target description.
6254 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6255 to CORE_ADDR. Remove the cast of the return value to unsigned
6256 long. Fix error predicate of target_auxv_search.
6257 (ppc_linux_nat_target::read_description): Change the type of the
6258 hwcap variable to CORE_ADDR.
6259
6260 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6261
6262 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6263 if the size of fpscr is larger than 32 bits.
6264
6265 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6266
6267 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6268 (ppc32_linux_vsxregmap): New global.
6269 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6270 regcache_supply_regset, and regcache_collect_regset.
6271 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6272 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6273 (fetch_vsx_register, store_vsx_register): Remove.
6274 (fetch_vsx_registers): Add regno parameter. Get regset using
6275 ppc_linux_vsxregset. Use regset to supply registers.
6276 (store_vsx_registers): Add regno parameter. Get regset using
6277 ppc_linux_vsxregset. Use regset to collect registers.
6278 (fetch_register): Call fetch_vsx_registers instead of
6279 fetch_vsx_register.
6280 (store_register): Call store_vsx_registers instead of
6281 store_vsx_register.
6282 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6283 new regno parameter.
6284 (store_ppc_registers): Call store_vsx_registers with -1 for the
6285 new regno parameter.
6286 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6287 (ppc_collect_vsxregset): Remove.
6288
6289 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6290
6291 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6292 offset fields.
6293 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6294 for vector register offset fields.
6295 (ppc64_fbsd_reg_offsets): Likewise.
6296 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6297 to vector register offset fields.
6298 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6299 to vector register offset fields.
6300 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6301 vector register offset fields.
6302 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6303 initializers for vector register offset fields.
6304 (rs6000_aix64_reg_offsets): Likewise.
6305 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6306 (ppc_supply_vrregset): Remove.
6307 (ppc_collect_vrregset): Remove.
6308 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6309 (ppc_linux_vrregset) : New function.
6310 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6311 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6312 (ppc32_linux_vrregset): Remove.
6313 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6314 and use result instead of ppc32_linux_vrregset.
6315 (ppc32_linux_reg_offsets): Remove initializers for vector register
6316 offset fields.
6317 (ppc64_linux_reg_offsets): Likewise.
6318 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6319 * ppc-linux-nat.c: Include regset.h.
6320 (gdb_vrregset_t): Adjust comment to account for little-endian
6321 mode.
6322 (supply_vrregset, fill_vrregset): Remove.
6323 (fetch_altivec_register, store_altivec_register): Remove.
6324 (fetch_altivec_registers): Add regno parameter. Get regset using
6325 ppc_linux_vrregset. Use regset to supply registers.
6326 (store_altivec_registers): Add regno parameter. Get regset using
6327 ppc_linux_vrregset. Use regset to collect registers.
6328 (fetch_register): Call fetch_altivec_registers instead of
6329 fetch_altivec_register.
6330 (store_register): Call store_altivec_registers instead of
6331 store_altivec_register.
6332 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6333 the new regno parameter.
6334 (store_ppc_registers): Call store_altivec_registers with -1 for
6335 the new regno parameter.
6336
6337 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6338
6339 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6340 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6341 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6342 (gdb_vrregset_t): Change array type size to
6343 PPC_LINUX_SIZEOF_VRREGSET.
6344 (gdb_vsxregset_t): Change array type size to
6345 PPC_LINUX_SIZEOF_VSXREGSET.
6346 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6347 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6348 PPC_LINUX_SIZEOF_VSXREGSET.
6349
6350 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6351
6352 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6353 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6354 nat/ppc-linux.c.
6355 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6356 ppc_linux_target_wordsize with tid.
6357 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6358 wordsize with tid.
6359 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6360 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6361 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6362 tid parameter. Remove static specifier.
6363 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6364 (ppc_linux_target_wordsize): New declaration.
6365
6366 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6367
6368 * arch/ppc-linux-common.c: New file.
6369 * arch/ppc-linux-common.h: New file.
6370 * arch/ppc-linux-tdesc.h: New file.
6371 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6372 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6373 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6374 arch/ppc-linux-tdesc.h.
6375 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6376 arch/ppc-linux-tdesc.h.
6377 (ppc_linux_nat_target::read_description): Remove target
6378 description matching code. Fill a ppc_linux_features struct and
6379 call ppc_linux_match_description with it. Move comment about ISA
6380 2.05 to ppc-linux-common.c.
6381 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6382 arch/ppc-linux-tdesc.h.
6383 (ppc_linux_core_read_description): Remove target description
6384 matching code. Fill a ppc_linux_features struct and call
6385 ppc_linux_match_description with it.
6386 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6387 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6388 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6389 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6390 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6391 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6392 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6393 (tdesc_powerpc_e500l): Remove.
6394
6395 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6396
6397 * ada-lang.c (catch_assert_command): Pass empty string instead
6398 of NULL for excep_string argument.
6399
6400 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6401
6402 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6403 the width of the requested register exceeds the width of the
6404 `ptrace' data type.
6405
6406 2018-05-21 Tom Tromey <tom@tromey.com>
6407
6408 * printcmd.c (output_command): Remove.
6409 (output_command_const): Rename to output_command.
6410 * valprint.h (output_command): Rename from output_command_const.
6411 * tracepoint.c (trace_dump_actions): Call output_command.
6412
6413 2018-05-21 Tom Tromey <tom@tromey.com>
6414
6415 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6416 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6417 * ada-lang.h (create_ada_exception_catchpoint): Update.
6418 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6419 std::string.
6420 (create_excep_cond_exprs, ~ada_catchpoint)
6421 (should_stop_exception, print_one_exception)
6422 (print_mention_exception, print_recreate_exception): Update.
6423 (ada_get_next_arg): Remove.
6424 (catch_ada_exception_command_split): Use std::string. Change type
6425 of "excep_string", "cond_string".
6426 (catch_ada_exception_command): Update.
6427 (create_ada_exception_catchpoint): Change type of excep_string.
6428 (ada_exception_sal): Remove excep_string parameter.
6429 (~ada_catchpoint): Remove.
6430
6431 2018-05-21 Tom Tromey <tom@tromey.com>
6432
6433 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6434 cleanup.
6435
6436 2018-05-21 Tom Tromey <tom@tromey.com>
6437
6438 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6439 Return unique_xmalloc_ptr.
6440 (print_it_exception): Update.
6441
6442 2018-05-21 Tom Tromey <tom@tromey.com>
6443
6444 * tracepoint.c (trace_dump_actions): Use std::string.
6445
6446 2018-05-21 Tom Tromey <tom@tromey.com>
6447
6448 * symfile.c (reread_symbols): Use std::string for original_name.
6449
6450 2018-05-21 Tom Tromey <tom@tromey.com>
6451
6452 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6453 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6454 constructor.
6455
6456 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6457
6458 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6459 instance to...
6460 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6461 * objfiles.c (get_objfile_bfd_data): Allocate
6462 objfile_per_bfd_storage with obstack_new when allocating on
6463 obstack.
6464
6465 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6466
6467 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6468 OBSTACK_ZALLOC.
6469 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6470 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6471 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6472 (add_pending): Likewise.
6473 (parse_symbol): Likewise.
6474 (parse_partial_symbols): Likewise.
6475 (psymtab_to_symtab_1): Likewise.
6476 (new_psymtab): Likewise.
6477 (elfmdebug_build_psymtabs): Likewise.
6478 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6479 * objfiles.c (get_objfile_bfd_data): Likewise.
6480 (objfile_register_static_link): Likewise.
6481 * psymtab.c (allocate_psymtab): Likewise.
6482 * stabsread.c (read_member_functions): Likewise.
6483 * xcoffread.c (xcoff_end_psymtab): Likewise.
6484
6485 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6486
6487 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6488 compiler supports std::is_trivially_constructible.
6489 * common/poison.h: Include obstack.h.
6490 (IsMallocable): Define to is_trivially_constructible if the
6491 compiler supports it, define to true_type otherwise.
6492 (xobnew): New.
6493 (XOBNEW): Redefine.
6494 (xobnewvec): New.
6495 (XOBNEWVEC): Redefine.
6496 * gdb_obstack.h (obstack_zalloc): New.
6497 (OBSTACK_ZALLOC): Redefine.
6498 (obstack_calloc): New.
6499 (OBSTACK_CALLOC): Redefine.
6500 (obstack_new): New.
6501 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6502 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6503 gdbarch.c.
6504 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6505 obstack_calloc/obstack_zalloc.
6506 (gdbarch_obstack_zalloc): Remove.
6507 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6508
6509 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6510
6511 * stack.c (backtrace_command_1): Remove useless variable int i.
6512
6513 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6514
6515 * stack.c (print_frame_info): Fix comment.
6516
6517 2018-05-18 Tom Tromey <tom@tromey.com>
6518
6519 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6520 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6521 (~dwarf2_per_objfile): Update
6522 (dwarf2_get_dwz_file): Use new.
6523 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6524 unique_ptr.
6525
6526 2018-05-18 Tom Tromey <tom@tromey.com>
6527
6528 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6529 unique_ptr.
6530 * dwarf2read.c (struct dwp_file): Add constructor and
6531 initializers.
6532 (open_and_init_dwp_file): Return a unique_ptr.
6533 (dwarf2_per_objfile, create_dwp_hash_table)
6534 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6535 (lookup_dwo_unit_in_dwp): Update.
6536 (open_and_init_dwp_file, get_dwp_file): Update.
6537
6538 2018-05-18 Tom Tromey <tom@tromey.com>
6539
6540 * dwarf2read.c (dwarf2_per_objfile): Update.
6541 (struct mapped_index): Add initializers.
6542 (dwarf2_read_index): Use new.
6543 (dw2_symtab_iter_init): Update.
6544 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6545 unique_ptr.
6546
6547 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6548
6549 * dwarf2read.c (mapped_index) <total_size>: Remove.
6550
6551 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6552
6553 * unittests/format_pieces-selftests.c (test_format_specifier):
6554 Add ARI comments.
6555
6556 2018-05-18 Tom Tromey <tom@tromey.com>
6557
6558 * c-typeprint.c (maybe_print_hole): New function.
6559 (c_print_type_struct_field_offset): Update.
6560 (c_type_print_base_struct_union): Call maybe_print_hole.
6561
6562 2018-05-17 Keith Seitz <keiths@redhat.com>
6563
6564 * breakpoint.c (build_bpstat_chain): New function, moved from
6565 bpstat_stop_status.
6566 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6567 If no stop chain is passed, call build_bpstat_chain to build it.
6568 * breakpoint.h (build_bpstat_chain): Declare.
6569 (bpstat_stop_status): Move documentation here from breakpoint.c.
6570 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6571 build the stop chain and pass it to skip_inline_frames.
6572 Pass this stop chain to bpstat_stop_status.
6573 * inline-frame.c: Include breakpoint.h.
6574 (stopped_by_user_bp_inline_frame): New function.
6575 (skip_inline_frames): Add parameter `stop_chain'.
6576 Move documention to inline-frame.h.
6577 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6578 whether the frame should be elided.
6579 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6580 Add moved documentation and update for new parameter.
6581
6582 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6583
6584 PR cli/14975
6585 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6586 unittests/format_pieces-selftests.c.
6587 * common/format.h (format_piece) <operator==>: New.
6588 (format_pieces) <operator[]>: Remove.
6589 * common/format.c (format_pieces::format_pieces): Handle \e.
6590 * unittests/format_pieces-selftests.c: New.
6591
6592 2018-05-17 Tom Tromey <tom@tromey.com>
6593
6594 PR symtab/23010:
6595 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6596 (dw2_instantiate_symtab): Add skip_partial parameter.
6597 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6598 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6599 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6600 (dw2_expand_symtabs_matching_one)
6601 (dw2_find_pc_sect_compunit_symtab)
6602 (dw2_debug_names_lookup_symbol)
6603 (dw2_debug_names_expand_symtabs_for_function): Update.
6604 (init_cutu_and_read_dies): Add skip_partial parameter.
6605 (process_psymtab_comp_unit, build_type_psymtabs_1)
6606 (process_skeletonless_type_unit, load_partial_comp_unit)
6607 (psymtab_to_symtab_1): Update.
6608 (load_full_comp_unit): Add skip_partial parameter.
6609 (process_imported_unit_die, dwarf2_read_addr_index)
6610 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6611 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6612 (read_signatured_type): Update.
6613
6614 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6615
6616 * value.c (release_value): Remove unused variable.
6617 (record_latest_value): Likewise.
6618 (access_value_history): Likewise.
6619 (preserve_values): Likewise.
6620
6621 2018-05-17 Tom Tromey <tom@tromey.com>
6622
6623 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6624 Initialize.
6625
6626 2018-05-16 Maciej W. Rozycki <macro@mips.com>
6627
6628 PR gdb/22286
6629 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6630 Also handle registers whose width is not a multiple of
6631 PTRACE_TYPE_RET.
6632 (linux_nat_trad_target::store_register): Likewise.
6633
6634 2018-05-16 Tom Tromey <tom@tromey.com>
6635
6636 * gdbcore.h (core_bfd): Redefine.
6637 * corelow.c (core_target::close): Update.
6638 (core_target_open): Update.
6639 * progspace.h (struct program_space) <cbfd>: Now a
6640 gdb_bfd_ref_ptr.
6641
6642 2018-05-16 Tom Tromey <tom@tromey.com>
6643
6644 PR cli/19551:
6645 * symfile-add-flags.h (enum symfile_add_flags)
6646 <SYMFILE_NOT_FILENAME>: New constant.
6647 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6648 objfile name from BFD.
6649 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6650 * minidebug.c (find_separate_debug_file_in_section): Put
6651 ".gnu_debugdata" into BFD's file name.
6652
6653 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6654
6655 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6656 Remove.
6657
6658 2018-05-15 Tamar Christina <tamar.christina@arm.com>
6659
6660 PR binutils/21446
6661 * aarch64-tdep.c (aarch64_analyze_prologue,
6662 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6663 Indicate not interested in errors.
6664
6665 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6666
6667 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6668 Supply the MIPS_ZERO_REGNUM register.
6669
6670 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6671
6672 * mips-tdep.c (mask_address_var): Make variable static.
6673
6674 2018-05-14 Tom Tromey <tom@tromey.com>
6675
6676 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6677
6678 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6679
6680 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6681 FXSAVE_ADDR for the mxcsr register.
6682
6683 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6684
6685 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6686
6687 2018-05-11 Pedro Alves <palves@redhat.com>
6688
6689 * corelow.c (core_target) <core_target>: No longer inline.
6690 Initialize m_core_gdbarch, m_core_vec and build the section table
6691 here.
6692 <~core_target>: New.
6693 <core_gdbarch, get_core_register_section>: New methods.
6694 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6695 factored out from ...
6696 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6697 (core_ops): Delete.
6698 (sniff_core_bfd): Add gdbarch parameter.
6699 (core_close): Delete, merged into ...
6700 (core_target::close): ... here. Delete self.
6701 (core_close_cleanup): Delete.
6702 (core_target_open): Allocate a core_target on the heap. Use a
6703 unique_ptr instead of a cleanup. Bits moved into the core_target
6704 ctor. Adjust to use core_target methods instead of globals.
6705 (get_core_register_section): Rename to ...
6706 (core_target::get_core_register_section): ... this and adjust.
6707 (struct get_core_registers_cb_data): New.
6708 (get_core_registers_cb): Use it. Use bool.
6709 (core_target::fetch_registers, core_target::files_info)
6710 (core_target::xfer_partial, core_target::read_description)
6711 (core_target::pid_to, core_target::thread_name): Adjust to
6712 reference class fields instead of globals.
6713 * target.h (struct target_ops_deleter, target_ops_up): New.
6714
6715 2018-05-11 Pedro Alves <palves@redhat.com>
6716
6717 * corefile.c (core_file_command): Move to corelow.c.
6718 * corelow.c (the_core_target): Delete.
6719 (core_file_command): Moved from corefile.c. Check exec_bfd
6720 instead of the_core_target. Use target_detach instead of calling
6721 into the_core_target directly.
6722 (maybe_say_no_core_file_now): New.
6723 (core_target::detach): Use it.
6724 (_initialize_corelow): Remove references to the_core_target.
6725 * gdbcore.h (the_core_target): Delete.
6726
6727 2018-05-11 Tom Tromey <tromey@redhat.com>
6728 Pedro Alves <palves@redhat.com>
6729
6730 * corefile.c (core_bfd): Remove.
6731 * gdbcore.h (core_bfd): Now a macro.
6732 * progspace.h (struct program_space) <cbfd>: New field.
6733
6734 2018-05-11 Tom Tromey <tom@tromey.com>
6735
6736 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6737 gdb::def_vector.
6738
6739 2018-05-10 Tom Tromey <tom@tromey.com>
6740
6741 * configure: Rebuild.
6742 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6743
6744 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6745
6746 PR server/23158:
6747 * regformats/regdat.sh: Adjust script, following the addition
6748 of the new expedite_regs parameter to init_target_desc.
6749
6750 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
6751
6752 PR gdb/23127
6753 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6754 set_gdbarch_significant_addr_bit.
6755 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6756 set_gdbarch_significant_addr_bit.
6757 * utils.c (address_significant): Update to sign extend addr.
6758
6759 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
6760
6761 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6762 (xtensa_linux_init_abi): Limit tdep->num_regs by
6763 tdep->num_nopriv_regs.
6764 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6765 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6766 not initialized.
6767
6768 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
6769
6770 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6771
6772 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6773
6774 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6775 (I387_MXCSR_INIT_VAL): New constant.
6776 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6777 buffer if it was supplied by the inferior.
6778 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6779 (i387_xsave_get_clear_bv): New function.
6780 (i387_supply_xsave): Only read x87 control registers from the
6781 xsave buffer if the feature is enabled, and the state will have
6782 been written, otherwise, provide a suitable default.
6783 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6784 including x87 control registers. Update control registers if they
6785 have changed from the default value, and mark features as enabled
6786 as required.
6787 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6788
6789 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6790
6791 * spu-tdep.c (info_spu_event_command): Fix output formatting.
6792
6793 2018-05-07 Tom Tromey <tom@tromey.com>
6794
6795 * configure: Rebuild.
6796 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6797
6798 2018-05-07 Tom Tromey <tom@tromey.com>
6799
6800 PR tdep/20362:
6801 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6802 bit. Use correct value for VDIV.
6803
6804 2018-05-04 Tom Tromey <tom@tromey.com>
6805
6806 * configure: Rebuild.
6807 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6808
6809 2018-05-04 Tom Tromey <tom@tromey.com>
6810
6811 * linux-record.c (record_linux_system_call) <case
6812 RECORD_SYS_RECVFROM>: Add "break".
6813
6814 2018-05-04 Tom Tromey <tom@tromey.com>
6815
6816 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6817 Add missing "break".
6818 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6819 Add missing "break".
6820
6821 2018-05-04 Tom Tromey <tom@tromey.com>
6822
6823 * rs6000-tdep.c (ppc_process_record_op4)
6824 (ppc_process_record_op63): Add fall-through comment.
6825
6826 2018-05-04 Tom Tromey <tom@tromey.com>
6827
6828 * i386-tdep.c (i386_process_record): Add fall-through comment.
6829
6830 2018-05-04 Tom Tromey <tom@tromey.com>
6831
6832 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6833 comment.
6834
6835 2018-05-04 Tom Tromey <tom@tromey.com>
6836
6837 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6838 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6839 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6840 comment.
6841 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6842 comment.
6843 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6844 comment.
6845
6846 2018-05-04 Tom Tromey <tom@tromey.com>
6847
6848 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6849
6850 2018-05-04 Tom Tromey <tom@tromey.com>
6851
6852 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6853 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6854 * symfile.c (section_is_mapped): Fix fall-through comment.
6855 * stabsread.c (define_symbol, read_member_functions): Fix
6856 fall-through comment.
6857 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6858 comment.
6859 * remote.c (remote_wait_as): Fix fall-through comment.
6860 * p-exp.y (yylex): Fix fall-through comment.
6861 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6862 comment.
6863 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6864 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6865 * jv-exp.y (yylex): Fix fall-through comment.
6866 * go-exp.y (lex_one_token): Fix fall-through comment.
6867 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6868 fall-through comment.
6869 * f-exp.y (yylex): Fix fall-through comment.
6870 * dwarf2read.c (process_die): Fix fall-through comments.
6871 * dbxread.c (process_one_symbol): Fix fall-through comment.
6872 * d-exp.y (lex_one_token): Fix fall-through comment.
6873 * cp-name-parser.y (yylex): Fix fall-through comment.
6874 * coffread.c (coff_symtab_read): Fix fall-through comment.
6875 * c-exp.y (lex_one_token): Fix fall-through comment.
6876 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6877 comment.
6878 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6879 comment.
6880
6881 2018-05-04 Tom Tromey <tom@tromey.com>
6882
6883 PR python/22730:
6884 * NEWS: Mention gdb.execute change.
6885 * gdbcmd.h (execute_control_command): Don't declare.
6886 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6887 execute_control_commands, execute_control_commands_to_string.
6888 * cli/cli-script.h (execute_control_commands)
6889 (execute_control_commands_to_string): Declare.
6890 (execute_control_command): Add from_tty parameter.
6891 * cli/cli-script.c (execute_control_commands)
6892 (execute_control_commands_to_string): New functions.
6893 (execute_user_command): Use execute_control_commands.
6894 (execute_control_command_1): Add "from_tty" parameter. Update.
6895 (execute_control_command): Likewise.
6896
6897 2018-05-04 Tom Tromey <tom@tromey.com>
6898
6899 PR python/22731:
6900 * NEWS: Mention that breakpoint commands are writable.
6901 * python/py-breakpoint.c (bppy_set_commands): New function.
6902 (breakpoint_object_getset) <"commands">: Use it.
6903
6904 2018-05-04 Tom Tromey <tom@tromey.com>
6905
6906 * tracepoint.c (actions_command): Update.
6907 * mi/mi-cmd-break.c (mi_command_line_array)
6908 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6909 (mi_read_next_line): Remove.
6910 (mi_cmd_break_commands): Update.
6911 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6912 function_view.
6913 * cli/cli-script.c (get_command_line): Update.
6914 (process_next_line): Use function_view. Constify.
6915 (recurse_read_control_structure, read_command_lines)
6916 (read_command_lines_1): Change argument types to function_view.
6917 (do_define_command, document_command): Update.
6918 * breakpoint.h (check_tracepoint_command): Don't declare.
6919 * breakpoint.c (check_tracepoint_command): Remove.
6920 (commands_command_1, create_tracepoint_from_upload): Update.
6921
6922 2018-05-04 Tom Tromey <tom@tromey.com>
6923
6924 PR gdb/11750:
6925 * cli/cli-script.h (enum command_control_type) <define_control>:
6926 New constant.
6927 * cli/cli-script.c (multi_line_command_p): Handle define_control.
6928 (build_command_line, execute_control_command_1)
6929 (process_next_line): Likewise.
6930 (do_define_command): New function, extracted from define_command.
6931 (define_command): Use it.
6932
6933 2018-05-04 Tom Tromey <tom@tromey.com>
6934
6935 * tracepoint.c (actions_command): Update.
6936 * cli/cli-script.h (read_command_lines): Update.
6937 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6938 (MAX_TMPBUF): Remove define.
6939 (define_command): Use string_printf.
6940 (document_command): Likewise.
6941 * breakpoint.c (commands_command_1): Update.
6942
6943 2018-05-04 Tom Tromey <tom@tromey.com>
6944
6945 * top.c (execute_command): Update.
6946 * cli/cli-script.h (print_command_lines): Now varargs.
6947 * cli/cli-script.c (print_command_lines): Now varargs.
6948 (execute_control_command_1) <case while_control, case if_control>:
6949 Update.
6950
6951 2018-05-04 Tom Tromey <tom@tromey.com>
6952
6953 * tracepoint.c (all_tracepoint_actions): Rename from
6954 all_tracepoint_actions_and_cleanup. Change return type.
6955 (actions_command, encode_actions_1, encode_actions)
6956 (trace_dump_actions, tdump_command): Update.
6957 * remote.c (remote_download_command_source): Update.
6958 * python/python.c (gdbpy_eval_from_control_command)
6959 (python_command, python_interactive_command): Update.
6960 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6961 * guile/guile.c (guile_command)
6962 (gdbscm_eval_from_control_command, guile_command): Update.
6963 * compile/compile.c (compile_code_command)
6964 (compile_print_command, compile_to_object): Update.
6965 * cli/cli-script.h (struct command_lines_deleter): New.
6966 (counted_command_line): New typedef.
6967 (struct command_line): Add constructor, destructor.
6968 <body_list>: Remove.
6969 <body_list_0, body_list_1>: New members.
6970 (command_line_up): Remove typedef.
6971 (read_command_lines, read_command_lines_1, get_command_line):
6972 Update.
6973 (copy_command_lines): Don't declare.
6974 * cli/cli-script.c (build_command_line): Use "new".
6975 (get_command_line): Return counted_command_line.
6976 (print_command_lines, execute_user_command)
6977 (execute_control_command_1, while_command, if_command): Update.
6978 (realloc_body_list): Remove.
6979 (process_next_line, recurse_read_control_structure): Update.
6980 (read_command_lines, read_command_lines_1): Return counted_command_line.
6981 (free_command_lines): Use "delete".
6982 (copy_command_lines): Remove.
6983 (define_command, document_command, show_user_1): Update.
6984 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
6985 a counted_command_line.
6986 * breakpoint.h (counted_command_line): Remove typedef.
6987 (breakpoint_set_commands): Update.
6988 * breakpoint.c (check_no_tracepoint_commands)
6989 (validate_commands_for_breakpoint): Update.
6990 (breakpoint_set_commands): Change commands to be a
6991 counted_command_line.
6992 (commands_command_1, update_dprintf_command_list)
6993 (create_tracepoint_from_upload): Update.
6994
6995 2018-05-04 Tom Tromey <tom@tromey.com>
6996
6997 * cli/cli-decode.h (cmd_list_element): New constructor.
6998 (~cmd_list_element): New destructor.
6999 (struct cmd_list_element): Add initializers.
7000 * cli/cli-decode.c (do_add_cmd): Use "new".
7001 (delete_cmd): Use "delete".
7002
7003 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7004 Pedro Alves <palves@redhat.com>
7005
7006 PR breakpoints/19806 and support for PR external/20207.
7007 * NEWS: Mention Aarch64 watchpoint improvements.
7008 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7009 watchpoints and PR external/20207 watchpoints.
7010 * nat/aarch64-linux-hw-point.c
7011 (kernel_supports_any_contiguous_range): New.
7012 (aarch64_watchpoint_offset): New.
7013 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7014 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7015 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7016 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7017 next_addr_orig_p. Support PR external/20207 watchpoints.
7018 (aarch64_downgrade_regs): New.
7019 (aarch64_dr_state_insert_one_point): New parameters offset and
7020 addr_orig.
7021 (aarch64_dr_state_remove_one_point): Likewise.
7022 (aarch64_handle_breakpoint): Update caller.
7023 (aarch64_handle_aligned_watchpoint): Likewise.
7024 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7025 aligned_offset.
7026 (aarch64_linux_set_debug_regs): Remove const from state. Call
7027 aarch64_downgrade_regs.
7028 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7029 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7030 (DR_CONTROL_MASK): ... this.
7031 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7032 (unsigned int aarch64_watchpoint_offset): New prototype.
7033 (aarch64_linux_set_debug_regs): Remove const from state.
7034 * utils.c (align_up, align_down): Move to ...
7035 * common/common-utils.c (align_up, align_down): ... here.
7036 * utils.h (align_up, align_down): Move to ...
7037 * common/common-utils.h (align_up, align_down): ... here.
7038
7039 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7040
7041 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7042 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7043 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7044 Re-implement to match the ABI as summarized in GCC's
7045 gcc/config/sparc/sparc.c. All callers updated.
7046 (sparc32_store_arguments): Remove assertion.
7047
7048 2018-05-04 Tom Tromey <tom@tromey.com>
7049
7050 * printcmd.c: Don't include tui.h.
7051 (decode_format): Use skip_spaces.
7052
7053 2018-05-04 Tom Tromey <tom@tromey.com>
7054
7055 PR gdb/22619:
7056 * printcmd.c (last_count): New global.
7057 (x_command): Use saved count when repeating.
7058
7059 2018-05-04 Tom Tromey <tom@tromey.com>
7060
7061 * nto-procfs.c (do_closedir_cleanup): Remove.
7062 (procfs_pidlist): Use gdb_dir_up.
7063 * procfs.c (do_closedir_cleanup): Remove.
7064 (proc_update_threads): Use gdb_dir_up.
7065 * common/filestuff.h (struct gdb_dir_deleter): New.
7066 (gdb_dir_up): New typedef.
7067
7068 2018-05-04 Tom Tromey <tom@tromey.com>
7069
7070 * ada-lang.c (print_mention_exception): Use std::string.
7071
7072 2018-05-04 Tom Tromey <tom@tromey.com>
7073
7074 * ada-lang.c (create_excep_cond_exprs): Update.
7075 (ada_exception_catchpoint_cond_string): Use std::string.
7076
7077 2018-05-04 Tom Tromey <tom@tromey.com>
7078
7079 * ada-lang.c (xget_renaming_scope): Return std::string.
7080 (old_renaming_is_invisible): Update.
7081
7082 2018-05-04 Tom Tromey <tom@tromey.com>
7083
7084 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7085 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7086
7087 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7088
7089 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7090
7091 2018-05-04 Tom Tromey <tom@tromey.com>
7092
7093 * remote.c (remote_query_supported_append): Change type.
7094 (remote_check_symbols): Update.
7095
7096 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7097
7098 PR gdb/11420
7099 * configure.ac: Prepend libpython.
7100 * python/python-config.py: Likewise.
7101 * configure: Regenerate.
7102
7103 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7104
7105 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7106
7107 2018-05-03 Pedro Alves <palves@redhat.com>
7108
7109 * s390-linux-nat.c
7110 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7111 override. Write 'true' instead of '1'.
7112 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7113 declaration.
7114
7115 2018-05-02 Pedro Alves <palves@redhat.com>
7116
7117 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7118 add_inf_child_target.
7119 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7120 add_inf_child_target.
7121 * aix-thread.c (aix_thread_target_info): New.
7122 (aix_thread_target) <shortname, longname, doc>: Delete.
7123 <info>: New.
7124 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7125 add_inf_child_target.
7126 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7127 add_inf_child_target.
7128 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7129 add_inf_child_target.
7130 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7131 add_inf_child_target.
7132 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7133 add_inf_child_target.
7134 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7135 add_inf_child_target.
7136 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7137 add_inf_child_target.
7138 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7139 add_inf_child_target.
7140 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7141 add_inf_child_target.
7142 * bfd-target.c (target_bfd_target_info): New.
7143 (target_bfd) <shortname, longname, doc>: Delete.
7144 <info>: New.
7145 * bsd-kvm.c (bsd_kvm_target_info): New.
7146 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7147 <info>: New.
7148 (bsd_kvm_target::open): Rename to ...
7149 (bsd_kvm_target_open): ... this. Adjust.
7150 * bsd-uthread.c (bsd_uthread_target_info): New.
7151 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7152 <info>: New.
7153 * corefile.c (core_file_command): Adjust.
7154 * corelow.c (core_target_info): New.
7155 (core_target) <shortname, longname, doc>: Delete.
7156 <info>: New.
7157 (core_target::open): Rename to ...
7158 (core_target_open): ... this. Adjust.
7159 * ctf.c (ctf_target_info): New.
7160 (ctf_target) <shortname, longname, doc>: Delete.
7161 <info>: New.
7162 (ctf_target::open): Rename to ...
7163 (ctf_target_open): ... this.
7164 (_initialize_ctf): Adjust.
7165 * exec.c (exec_target_info): New.
7166 (exec_target) <shortname, longname, doc>: Delete.
7167 <info>: New.
7168 (exec_target::open): Rename to ...
7169 (exec_target_open): ... this.
7170 * gdbcore.h (core_target_open): Declare.
7171 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7172 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7173 add_inf_child_target.
7174 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7175 add_inf_child_target.
7176 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7177 add_inf_child_target.
7178 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7179 add_inf_child_target.
7180 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7181 add_inf_child_target.
7182 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7183 add_inf_child_target.
7184 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7185 add_inf_child_target.
7186 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7187 add_inf_child_target.
7188 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7189 add_inf_child_target.
7190 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7191 add_inf_child_target.
7192 * inf-child.c (inf_child_target_info): New.
7193 (inf_child_target::info): New.
7194 (inf_child_open_target): Remove 'target' parameter. Use
7195 get_native_target instead.
7196 (inf_child_target::open): Delete.
7197 (add_inf_child_target): New.
7198 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7199 Delete.
7200 <info>: New.
7201 (add_inf_child_target): Declare.
7202 (inf_child_open_target): Declare.
7203 * linux-thread-db.c (thread_db_target_info): New.
7204 (thread_db_target) <shortname, longname, doc>: Delete.
7205 <info>: New.
7206 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7207 add_inf_child_target.
7208 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7209 add_inf_child_target.
7210 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7211 add_inf_child_target.
7212 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7213 add_inf_child_target.
7214 * make-target-delegates (print_class): Adjust.
7215 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7216 add_inf_child_target.
7217 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7218 add_inf_child_target.
7219 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7220 add_inf_child_target.
7221 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7222 add_inf_child_target.
7223 * nto-procfs.c (nto_native_target_info): New.
7224 (nto_procfs_target_native) <shortname, longname, doc>:
7225 Delete.
7226 <info>: New.
7227 (nto_procfs_target_info): New.
7228 (nto_procfs_target_procfs) <shortname, longname, doc>:
7229 Delete.
7230 <info>: New.
7231 (init_procfs_targets): Adjust.
7232 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7233 add_inf_child_target.
7234 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7235 add_inf_child_target.
7236 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7237 add_inf_child_target.
7238 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7239 add_inf_child_target.
7240 * ravenscar-thread.c (ravenscar_target_info): New.
7241 (ravenscar_thread_target) <shortname, longname, doc>:
7242 Delete.
7243 <info>: New.
7244 * record-btrace.c (record_btrace_target_info):
7245 (record_btrace_target) <shortname, longname, doc>: Delete.
7246 <info>: New.
7247 (record_btrace_target::open): Rename to ...
7248 (record_btrace_target_open): ... this. Adjust.
7249 * record-full.c (record_longname, record_doc): New.
7250 (record_full_base_target) <shortname, longname, doc>: Delete.
7251 <info>: New.
7252 (record_full_target_info): New.
7253 (record_full_target): <shortname>: Delete.
7254 <info>: New.
7255 (record_full_core_open_1, record_full_open_1): Update comments.
7256 (record_full_base_target::open): Rename to ...
7257 (record_full_open): ... this.
7258 (cmd_record_full_restore): Update.
7259 (_initialize_record_full): Update.
7260 * remote-sim.c (remote_sim_target_info): New.
7261 (gdbsim_target) <shortname, longname, doc>: Delete.
7262 <info>: New.
7263 (gdbsim_target::open): Rename to ...
7264 (gdbsim_target_open): ... this.
7265 (_initialize_remote_sim): Adjust.
7266 * remote.c (remote_doc): New.
7267 (remote_target_info): New.
7268 (remote_target) <shortname, longname, doc>: Delete.
7269 <info>: New.
7270 (extended_remote_target_info): New.
7271 (extended_remote_target) <shortname, longname, doc>: Delete.
7272 <info>: New.
7273 (remote_target::open_1): Make static. Adjust.
7274 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7275 * s390-linux-nat.c (_initialize_s390_nat): Use
7276 add_inf_child_target.
7277 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7278 add_inf_child_target.
7279 * sol-thread.c (thread_db_target_info): New.
7280 (sol_thread_target) <shortname, longname, doc>: Delete.
7281 <info>: New.
7282 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7283 add_inf_child_target.
7284 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7285 add_inf_child_target.
7286 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7287 add_inf_child_target.
7288 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7289 add_inf_child_target.
7290 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7291 add_inf_child_target.
7292 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7293 add_inf_child_target.
7294 * spu-linux-nat.c (_initialize_spu_nat): Use
7295 add_inf_child_target.
7296 * spu-multiarch.c (spu_multiarch_target_info): New.
7297 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7298 <info>: New.
7299 * target-delegates.c: Regenerate.
7300 * target.c: Include <unordered_map>.
7301 (target_ops_p): Delete.
7302 (DEF_VEC_P(target_ops_p)): Delete.
7303 (target_factories): New.
7304 (test_target_info): New.
7305 (test_target_ops::info): New.
7306 (open_target): Adjust to use target_factories.
7307 (add_target_with_completer): Rename to ...
7308 (add_target): ... this. Change prototype. Register target_info
7309 and open callback in target_factories. Register target_info in
7310 command context instead of target_ops.
7311 (add_target): Delete old implementation.
7312 (add_deprecated_target_alias): Change prototype. Adjust.
7313 (the_native_target): New.
7314 (set_native_target, get_native_target): New.
7315 (find_default_run_target): Use the_native_target.
7316 (find_attach_target, find_run_target): Simplify.
7317 (target_ops::open): Delete.
7318 (dummy_target_info): New.
7319 (dummy_target::shortname, dummy_target::longname)
7320 (dummy_target::doc): Delete.
7321 (dummy_target::info): New.
7322 (debug_target::shortname, debug_target::longname)
7323 (debug_target::doc): Delete.
7324 (debug_target::info): New.
7325 * target.h (struct target_info): New.
7326 (target_ops::~target_ops): Add comment.
7327 (target_ops::info): New.
7328 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7329 longer virtual. Implement in terms of target_info.
7330 (set_native_target, get_native_target): Declare.
7331 (target_open_ftype): New.
7332 (add_target, add_target_with_completer)
7333 (add_deprecated_target_alias): Change prototype.
7334 (test_target) <shortname, longname, doc>: Delete.
7335 <info>: New.
7336 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7337 add_inf_child_target.
7338 * tracefile-tfile.c (tfile_target_info): New.
7339 (tfile_target) <shortname, longname, doc>: Delete.
7340 <info>: New.
7341 (tfile_target::open): Rename to ...
7342 (tfile_target_open): ... this.
7343 (_initialize_tracefile_tfile): Adjust.
7344 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7345 add_inf_child_target.
7346 * windows-nat.c (_initialize_windows_nat): Use
7347 add_inf_child_target.
7348 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7349 add_inf_child_target.
7350
7351 2018-05-02 Pedro Alves <palves@redhat.com>
7352
7353 * linux-nat.h (linux_nat_target) <low_new_thread,
7354 low_delete_thread, low_new_fork, low_forget_process,
7355 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7356 New virtual methods.
7357 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7358 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7359 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7360 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7361 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7362 Delete.
7363 * linux-fork.c (delete_fork): Adjust to call low method.
7364 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7365 (linux_nat_new_fork, linux_nat_forget_process_hook)
7366 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7367 (linux_nat_status_is_event):
7368 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7369 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7370 to call low method.
7371 (sigtrap_is_event): Rename to ...
7372 (linux_nat_target::low_status_is_event): ... this.
7373 (linux_nat_set_status_is_event): Delete.
7374 (save_stop_reason, linux_nat_wait_1)
7375 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7376 low methods.
7377 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7378 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7379 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7380 (linux_nat_set_prepare_to_resume): Delete.
7381 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7382 low virtual methods.
7383 * amd64-linux-nat.c: Likewise.
7384 * arm-linux-nat.c: Likewise.
7385 * i386-linux-nat.c: Likewise.
7386 * ia64-linux-nat.c: Likewise.
7387 * mips-linux-nat.c: Likewise.
7388 * ppc-linux-nat.c: Likewise.
7389 * s390-linux-nat.c: Likewise.
7390 * sparc64-linux-nat.c: Likewise.
7391 * x86-linux-nat.c: Likewise.
7392 * x86-linux-nat.h: Include "nat/x86-linux.h".
7393 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7394 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7395 Override methods.
7396
7397 2018-05-02 Pedro Alves <palves@redhat.com>
7398
7399 * target.h (target_ops)
7400 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7401 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7402 stopped_by_watchpoint, have_continuable_watchpoint,
7403 stopped_data_address, watchpoint_addr_within_range,
7404 can_accel_watchpoint_condition, can_run, thread_alive,
7405 has_all_memory, has_memory, has_stack, has_registers,
7406 has_execution, can_async_p, is_async_p, supports_non_stop,
7407 always_non_stop_p, can_execute_reverse, supports_multi_process,
7408 supports_enable_disable_tracepoint,
7409 supports_disable_randomization, supports_string_tracing,
7410 supports_evaluation_of_breakpoint_conditions,
7411 can_run_breakpoint_commands, filesystem_is_local,
7412 can_download_tracepoint, get_trace_state_variable_value,
7413 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7414 record_is_replaying, record_will_replay,
7415 augmented_libraries_svr4_read>: Adjust to return bool.
7416 * aarch64-linux-nat.c: All implementations adjusted.
7417 * aix-thread.c: All implementations adjusted.
7418 * arm-linux-nat.c: All implementations adjusted.
7419 * breakpoint.c: All implementations adjusted.
7420 * bsd-kvm.c: All implementations adjusted.
7421 * bsd-uthread.c: All implementations adjusted.
7422 * corelow.c: All implementations adjusted.
7423 * ctf.c: All implementations adjusted.
7424 * darwin-nat.c: All implementations adjusted.
7425 * darwin-nat.h: All implementations adjusted.
7426 * exec.c: All implementations adjusted.
7427 * fbsd-nat.c: All implementations adjusted.
7428 * fbsd-nat.h: All implementations adjusted.
7429 * gnu-nat.c: All implementations adjusted.
7430 * gnu-nat.h: All implementations adjusted.
7431 * go32-nat.c: All implementations adjusted.
7432 * ia64-linux-nat.c: All implementations adjusted.
7433 * inf-child.c: All implementations adjusted.
7434 * inf-child.h: All implementations adjusted.
7435 * inf-ptrace.c: All implementations adjusted.
7436 * inf-ptrace.h: All implementations adjusted.
7437 * linux-nat.c: All implementations adjusted.
7438 * linux-nat.h: All implementations adjusted.
7439 * mips-linux-nat.c: All implementations adjusted.
7440 * nto-procfs.c: All implementations adjusted.
7441 * ppc-linux-nat.c: All implementations adjusted.
7442 * procfs.c: All implementations adjusted.
7443 * ravenscar-thread.c: All implementations adjusted.
7444 * record-btrace.c: All implementations adjusted.
7445 * record-full.c: All implementations adjusted.
7446 * remote-sim.c: All implementations adjusted.
7447 * remote.c: All implementations adjusted.
7448 * s390-linux-nat.c: All implementations adjusted.
7449 * sol-thread.c: All implementations adjusted.
7450 * spu-multiarch.c: All implementations adjusted.
7451 * target-delegates.c: All implementations adjusted.
7452 * target.c: All implementations adjusted.
7453 * target.h: All implementations adjusted.
7454 * tracefile-tfile.c: All implementations adjusted.
7455 * tracefile.c: All implementations adjusted.
7456 * tracefile.h: All implementations adjusted.
7457 * windows-nat.c: All implementations adjusted.
7458 * x86-linux-nat.h: All implementations adjusted.
7459 * x86-nat.h: All implementations adjusted.
7460
7461 2018-05-02 Pedro Alves <palves@redhat.com>
7462
7463 * make-target-delegates (scan_target_h): Don't trim lines here.
7464 Replace sequences of tabs and/or whitespace with a single
7465 whitespace.
7466 (top level, parsing methods): Trim each line before processing it
7467 here.
7468
7469 2018-05-02 Pedro Alves <palves@redhat.com>
7470 John Baldwin <jhb@freebsd.org>
7471
7472 * target.h (enum strata) <debug_stratum>: New.
7473 (struct target_ops) <all delegation methods>: Replace by C++
7474 virtual methods, and drop "to_" prefix. All references updated
7475 throughout.
7476 <to_shortname, to_longname, to_doc, to_data,
7477 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7478 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7479 virtual methods. All references updated throughout.
7480 <can_attach, supports_terminal_ours, can_create_inferior,
7481 get_thread_control_capabilities, attach_no_wait>: New
7482 virtual methods.
7483 <insert_breakpoint, remove_breakpoint>: Now
7484 TARGET_DEFAULT_NORETURN methods.
7485 <info_proc>: Now returns bool.
7486 <to_magic>: Delete.
7487 (OPS_MAGIC): Delete.
7488 (current_target): Delete. All references replaced by references
7489 to ...
7490 (target_stack): ... this. New.
7491 (target_shortname, target_longname): Adjust.
7492 (target_can_run): Now a function declaration.
7493 (default_child_has_all_memory, default_child_has_memory)
7494 (default_child_has_stack, default_child_has_registers)
7495 (default_child_has_execution): Remove target_ops parameter.
7496 (complete_target_initialization): Delete.
7497 (memory_breakpoint_target): New template class.
7498 (test_target_ops): Refactor as a C++ class with virtual methods.
7499 * make-target-delegates (NAME_PART): Tighten.
7500 (POINTER_PART, CP_SYMBOL): New.
7501 (SIMPLE_RETURN_PART): Reimplement.
7502 (VEC_RETURN_PART): Expect less.
7503 (RETURN_PART, VIRTUAL_PART): New.
7504 (METHOD): Adjust to C++ virtual methods.
7505 (scan_target_h): Remove reference to C99.
7506 (dname): Output "target_ops::" prefix.
7507 (write_function_header): Adjust to output a C++ class method.
7508 (write_declaration): New.
7509 (write_delegator): Adjust to output a C++ class method.
7510 (tdname): Output "dummy_target::" prefix.
7511 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7512 method.
7513 (tdefault_names, debug_names): Delete.
7514 (return_types, tdefaults, styles, argtypes_array): New.
7515 (top level): All methods are delegators.
7516 (print_class): New.
7517 (top level): Print dummy_target and debug_target classes.
7518 * target-delegates.c: Regenerate.
7519 * target-debug.h (target_debug_print_enum_info_proc_what)
7520 (target_debug_print_thread_control_capabilities)
7521 (target_debug_print_thread_info_p): New.
7522 * target.c (dummy_target): Delete.
7523 (the_dummy_target, the_debug_target): New.
7524 (target_stack): Now extern.
7525 (set_targetdebug): Push/unpush debug target.
7526 (default_child_has_all_memory, default_child_has_memory)
7527 (default_child_has_stack, default_child_has_registers)
7528 (default_child_has_execution): Remove target_ops parameter.
7529 (complete_target_initialization): Delete.
7530 (add_target_with_completer): No longer call
7531 complete_target_initialization.
7532 (target_supports_terminal_ours): Use regular delegation.
7533 (update_current_target): Delete.
7534 (push_target): No longer check magic number. Don't call
7535 update_current_target.
7536 (unpush_target): Don't call update_current_target.
7537 (target_is_pushed): No longer check magic number.
7538 (target_require_runnable): Skip for all stratums over
7539 process_stratum.
7540 (target_ops::info_proc): New.
7541 (target_info_proc): Use find_target_at and
7542 find_default_run_target.
7543 (target_supports_disable_randomization): Use regular delegation.
7544 (target_get_osdata): Use find_target_at.
7545 (target_ops::open, target_ops::close, target_ops::can_attach)
7546 (target_ops::attach, target_ops::can_create_inferior)
7547 (target_ops::create_inferior, target_ops::can_run)
7548 (target_can_run): New.
7549 (default_fileio_target): Use regular delegation.
7550 (target_ops::fileio_open, target_ops::fileio_pwrite)
7551 (target_ops::fileio_pread, target_ops::fileio_fstat)
7552 (target_ops::fileio_close, target_ops::fileio_unlink)
7553 (target_ops::fileio_readlink): New.
7554 (target_fileio_open_1, target_fileio_unlink)
7555 (target_fileio_readlink): Always call the target method. Handle
7556 FILEIO_ENOSYS.
7557 (return_zero, return_zero_has_execution): Delete.
7558 (init_dummy_target): Delete.
7559 (dummy_target::dummy_target, dummy_target::shortname)
7560 (dummy_target::longname, dummy_target::doc)
7561 (debug_target::debug_target, debug_target::shortname)
7562 (debug_target::longname, debug_target::doc): New.
7563 (target_supports_delete_record): Use regular delegation.
7564 (setup_target_debug): Delete.
7565 (maintenance_print_target_stack): Skip debug_stratum.
7566 (initialize_targets): Instantiate the_dummy_target and
7567 the_debug_target.
7568 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7569 use target_stack.
7570 (target_auxv_search, fprint_target_auxv): Adjust.
7571 (info_auxv_command): Adjust to use target_stack.
7572 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7573 * exceptions.c (print_flush): Handle a NULL target_stack.
7574 * regcache.c (target_ops_no_register): Refactor as class with
7575 virtual methods.
7576
7577 * exec.c (exec_target): New class.
7578 (exec_ops): Now an exec_target.
7579 (exec_open, exec_close_1, exec_get_section_table)
7580 (exec_xfer_partial, exec_files_info, exec_has_memory)
7581 (exec_make_note_section): Refactor as exec_target methods.
7582 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7583 Delete.
7584 (exec_target::find_memory_regions): New.
7585 (_initialize_exec): Don't call init_exec_ops.
7586 * gdbcore.h (exec_file_clear): Delete.
7587
7588 * corefile.c (core_target): Delete.
7589 (core_file_command): Adjust.
7590 * corelow.c (core_target): New class.
7591 (the_core_target): New.
7592 (core_close): Remove target_ops parameter.
7593 (core_close_cleanup): Adjust.
7594 (core_target::close): New.
7595 (core_open, core_detach, get_core_registers, core_files_info)
7596 (core_xfer_partial, core_thread_alive, core_read_description)
7597 (core_pid_to_str, core_thread_name, core_has_memory)
7598 (core_has_stack, core_has_registers, core_info_proc): Rework as
7599 core_target methods.
7600 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7601 (_initialize_corelow): Initialize the_core_target.
7602 * gdbcore.h (core_target): Delete.
7603 (the_core_target): New.
7604
7605 * ctf.c: (ctf_target): New class.
7606 (ctf_ops): Now a ctf_target.
7607 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7608 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7609 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7610 methods.
7611 (init_ctf_ops): Delete.
7612 (_initialize_ctf): Don't call it.
7613 * tracefile-tfile.c (tfile_target): New class.
7614 (tfile_ops): Now a tfile_target.
7615 (tfile_open, tfile_close, tfile_files_info)
7616 (tfile_get_tracepoint_status, tfile_trace_find)
7617 (tfile_fetch_registers, tfile_xfer_partial)
7618 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7619 Refactor as tfile_target methods.
7620 (tfile_xfer_partial_features): Remove target_ops parameter.
7621 (init_tfile_ops): Delete.
7622 (_initialize_tracefile_tfile): Don't call it.
7623 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7624 (tracefile_has_stack, tracefile_has_registers)
7625 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7626 tracefile_target methods.
7627 (init_tracefile_ops): Delete.
7628 (tracefile_target::tracefile_target): New.
7629 * tracefile.h: Include "target.h".
7630 (tracefile_target): New class.
7631 (init_tracefile_ops): Delete.
7632
7633 * spu-multiarch.c (spu_multiarch_target): New class.
7634 (spu_ops): Now a spu_multiarch_target.
7635 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7636 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7637 (spu_search_memory, spu_mourn_inferior): Refactor as
7638 spu_multiarch_target methods.
7639 (init_spu_ops): Delete.
7640 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7641 complete_target_initialization.
7642
7643 * ravenscar-thread.c (ravenscar_thread_target): New class.
7644 (ravenscar_ops): Now a ravenscar_thread_target.
7645 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7646 (ravenscar_thread_alive, ravenscar_pid_to_str)
7647 (ravenscar_fetch_registers, ravenscar_store_registers)
7648 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7649 (ravenscar_stopped_by_hw_breakpoint)
7650 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7651 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7652 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7653 methods.
7654 (init_ravenscar_thread_ops): Delete.
7655 (_initialize_ravenscar): Remove references to
7656 init_ravenscar_thread_ops and complete_target_initialization.
7657
7658 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7659 (bsd_uthread_target): New class.
7660 (bsd_uthread_ops): Now a bsd_uthread_target.
7661 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7662 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7663 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7664 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7665 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7666 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7667 (bsd_uthread_target): Delete function.
7668 (_initialize_bsd_uthread): Remove reference to
7669 complete_target_initialization.
7670
7671 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7672 (target_bfd): ... this new class.
7673 (target_bfd_xfer_partial, target_bfd_get_section_table)
7674 (target_bfd_close): Refactor as target_bfd methods.
7675 (target_bfd::~target_bfd): New.
7676 (target_bfd_reopen): Adjust.
7677 (target_bfd::close): New.
7678
7679 * record-btrace.c (record_btrace_target): New class.
7680 (record_btrace_ops): Now a record_btrace_target.
7681 (record_btrace_open, record_btrace_stop_recording)
7682 (record_btrace_disconnect, record_btrace_close)
7683 (record_btrace_async, record_btrace_info)
7684 (record_btrace_insn_history, record_btrace_insn_history_range)
7685 (record_btrace_insn_history_from, record_btrace_call_history)
7686 (record_btrace_call_history_range)
7687 (record_btrace_call_history_from, record_btrace_record_method)
7688 (record_btrace_is_replaying, record_btrace_will_replay)
7689 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7690 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7691 (record_btrace_store_registers, record_btrace_prepare_to_store)
7692 (record_btrace_to_get_unwinder)
7693 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7694 (record_btrace_commit_resume, record_btrace_wait)
7695 (record_btrace_stop, record_btrace_can_execute_reverse)
7696 (record_btrace_stopped_by_sw_breakpoint)
7697 (record_btrace_supports_stopped_by_sw_breakpoint)
7698 (record_btrace_stopped_by_hw_breakpoint)
7699 (record_btrace_supports_stopped_by_hw_breakpoint)
7700 (record_btrace_update_thread_list, record_btrace_thread_alive)
7701 (record_btrace_goto_begin, record_btrace_goto_end)
7702 (record_btrace_goto, record_btrace_stop_replaying_all)
7703 (record_btrace_execution_direction)
7704 (record_btrace_prepare_to_generate_core)
7705 (record_btrace_done_generating_core): Refactor as
7706 record_btrace_target methods.
7707 (init_record_btrace_ops): Delete.
7708 (_initialize_record_btrace): Remove reference to
7709 init_record_btrace_ops.
7710 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7711 the execution_direction global.
7712 (record_full_base_target, record_full_target)
7713 (record_full_core_target): New classes.
7714 (record_full_ops): Now a record_full_target.
7715 (record_full_core_ops): Now a record_full_core_target.
7716 (record_full_target::detach, record_full_target::disconnect)
7717 (record_full_core_target::disconnect)
7718 (record_full_target::mourn_inferior, record_full_target::kill):
7719 New.
7720 (record_full_open, record_full_close, record_full_async): Refactor
7721 as methods of the record_full_base_target class.
7722 (record_full_resume, record_full_commit_resume): Refactor
7723 as methods of the record_full_target class.
7724 (record_full_wait, record_full_stopped_by_watchpoint)
7725 (record_full_stopped_data_address)
7726 (record_full_stopped_by_sw_breakpoint)
7727 (record_full_supports_stopped_by_sw_breakpoint)
7728 (record_full_stopped_by_hw_breakpoint)
7729 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7730 methods of the record_full_base_target class.
7731 (record_full_store_registers, record_full_xfer_partial)
7732 (record_full_insert_breakpoint, record_full_remove_breakpoint):
7733 Refactor as methods of the record_full_target class.
7734 (record_full_can_execute_reverse, record_full_get_bookmark)
7735 (record_full_goto_bookmark, record_full_execution_direction)
7736 (record_full_record_method, record_full_info, record_full_delete)
7737 (record_full_is_replaying, record_full_will_replay)
7738 (record_full_goto_begin, record_full_goto_end, record_full_goto)
7739 (record_full_stop_replaying): Refactor as methods of the
7740 record_full_base_target class.
7741 (record_full_core_resume, record_full_core_kill)
7742 (record_full_core_fetch_registers)
7743 (record_full_core_prepare_to_store)
7744 (record_full_core_store_registers, record_full_core_xfer_partial)
7745 (record_full_core_insert_breakpoint)
7746 (record_full_core_remove_breakpoint)
7747 (record_full_core_has_execution): Refactor
7748 as methods of the record_full_core_target class.
7749 (record_full_base_target::supports_delete_record): New.
7750 (init_record_full_ops): Delete.
7751 (init_record_full_core_ops): Delete.
7752 (record_full_save): Refactor as method of the
7753 record_full_base_target class.
7754 (_initialize_record_full): Remove references to
7755 init_record_full_ops and init_record_full_core_ops.
7756
7757 * remote.c (remote_target, extended_remote_target): New classes.
7758 (remote_ops): Now a remote_target.
7759 (extended_remote_ops): Now an extended_remote_target.
7760 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7761 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7762 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7763 (remote_pass_signals, remote_set_syscall_catchpoint)
7764 (remote_program_signals, )
7765 (remote_thread_always_alive): Remove target_ops parameter.
7766 (remote_thread_alive, remote_thread_name)
7767 (remote_update_thread_list, remote_threads_extra_info)
7768 (remote_static_tracepoint_marker_at)
7769 (remote_static_tracepoint_markers_by_strid)
7770 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7771 (remote_open): Refactor as methods of remote_target.
7772 (extended_remote_open, extended_remote_detach)
7773 (extended_remote_attach, extended_remote_post_attach):
7774 (extended_remote_supports_disable_randomization)
7775 (extended_remote_create_inferior): : Refactor as method of
7776 extended_remote_target.
7777 (remote_set_permissions, remote_open_1, remote_detach)
7778 (remote_follow_fork, remote_follow_exec, remote_disconnect)
7779 (remote_resume, remote_commit_resume, remote_stop)
7780 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7781 (remote_terminal_ours, remote_wait, remote_fetch_registers)
7782 (remote_prepare_to_store, remote_store_registers)
7783 (remote_flash_erase, remote_flash_done, remote_files_info)
7784 (remote_kill, remote_mourn, remote_insert_breakpoint)
7785 (remote_remove_breakpoint, remote_insert_watchpoint)
7786 (remote_watchpoint_addr_within_range)
7787 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7788 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7789 (remote_supports_stopped_by_sw_breakpoint)
7790 (remote_stopped_by_hw_breakpoint)
7791 (remote_supports_stopped_by_hw_breakpoint)
7792 (remote_stopped_by_watchpoint, remote_stopped_data_address)
7793 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7794 (remote_verify_memory): Refactor as methods of remote_target.
7795 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7796 parameter.
7797 (remote_xfer_partial, remote_get_memory_xfer_limit)
7798 (remote_search_memory, remote_rcmd, remote_memory_map)
7799 (remote_pid_to_str, remote_get_thread_local_address)
7800 (remote_get_tib_address, remote_read_description): Refactor as
7801 methods of remote_target.
7802 (remote_target::fileio_open, remote_target::fileio_pwrite)
7803 (remote_target::fileio_pread, remote_target::fileio_close): New.
7804 (remote_hostio_readlink, remote_hostio_fstat)
7805 (remote_filesystem_is_local, remote_can_execute_reverse)
7806 (remote_supports_non_stop, remote_supports_disable_randomization)
7807 (remote_supports_multi_process, remote_supports_cond_breakpoints)
7808 (remote_supports_enable_disable_tracepoint)
7809 (remote_supports_string_tracing)
7810 (remote_can_run_breakpoint_commands, remote_trace_init)
7811 (remote_download_tracepoint, remote_can_download_tracepoint)
7812 (remote_download_trace_state_variable, remote_enable_tracepoint)
7813 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7814 (remote_trace_start, remote_get_trace_status)
7815 (remote_get_tracepoint_status, remote_trace_stop)
7816 (remote_trace_find, remote_get_trace_state_variable_value)
7817 (remote_save_trace_data, remote_get_raw_trace_data)
7818 (remote_set_disconnected_tracing, remote_core_of_thread)
7819 (remote_set_circular_trace_buffer, remote_traceframe_info)
7820 (remote_get_min_fast_tracepoint_insn_len)
7821 (remote_set_trace_buffer_size, remote_set_trace_notes)
7822 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7823 (remote_disable_btrace, remote_teardown_btrace)
7824 (remote_read_btrace, remote_btrace_conf)
7825 (remote_augmented_libraries_svr4_read, remote_load)
7826 (remote_pid_to_exec_file, remote_can_do_single_step)
7827 (remote_execution_direction, remote_thread_handle_to_thread_info):
7828 Refactor as methods of remote_target.
7829 (init_remote_ops, init_extended_remote_ops): Delete.
7830 (remote_can_async_p, remote_is_async_p, remote_async)
7831 (remote_thread_events, remote_upload_tracepoints)
7832 (remote_upload_trace_state_variables): Refactor as methods of
7833 remote_target.
7834 (_initialize_remote): Remove references to init_remote_ops and
7835 init_extended_remote_ops.
7836
7837 * remote-sim.c (gdbsim_target): New class.
7838 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7839 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7840 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7841 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7842 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7843 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7844 Refactor as methods of gdbsim_target.
7845 (gdbsim_ops): Now a gdbsim_target.
7846 (init_gdbsim_ops): Delete.
7847 (gdbsim_cntrl_c): Adjust.
7848 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7849
7850 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7851 (the_amd64_linux_nat_target): New.
7852 (amd64_linux_fetch_inferior_registers)
7853 (amd64_linux_store_inferior_registers): Refactor as methods of
7854 amd64_linux_nat_target.
7855 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7856 * i386-linux-nat.c: Don't include "linux-nat.h".
7857 (i386_linux_nat_target): New class.
7858 (the_i386_linux_nat_target): New.
7859 (i386_linux_fetch_inferior_registers)
7860 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7861 as methods of i386_linux_nat_target.
7862 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7863 * inf-child.c (inf_child_ops): Delete.
7864 (inf_child_fetch_inferior_registers)
7865 (inf_child_store_inferior_registers): Delete.
7866 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7867 methods of inf_child_target.
7868 (inf_child_target::supports_terminal_ours)
7869 (inf_child_target::terminal_init)
7870 (inf_child_target::terminal_inferior)
7871 (inf_child_target::terminal_ours_for_output)
7872 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7873 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7874 New.
7875 (inf_child_open, inf_child_disconnect, inf_child_close)
7876 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7877 (inf_child_post_startup_inferior, inf_child_can_run)
7878 (inf_child_pid_to_exec_file): Refactor as methods of
7879 inf_child_target.
7880 (inf_child_follow_fork): Delete.
7881 (inf_child_target::can_create_inferior)
7882 (inf_child_target::can_attach): New.
7883 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7884 (inf_child_target::has_stack, inf_child_target::has_registers)
7885 (inf_child_target::has_execution): New.
7886 (inf_child_fileio_open, inf_child_fileio_pwrite)
7887 (inf_child_fileio_pread, inf_child_fileio_fstat)
7888 (inf_child_fileio_close, inf_child_fileio_unlink)
7889 (inf_child_fileio_readlink, inf_child_use_agent)
7890 (inf_child_can_use_agent): Refactor as methods of
7891 inf_child_target.
7892 (return_zero, inf_child_target): Delete.
7893 (inf_child_target::inf_child_target): New.
7894 * inf-child.h: Include "target.h".
7895 (inf_child_target): Delete function prototype.
7896 (inf_child_target): New class.
7897 (inf_child_open_target, inf_child_mourn_inferior)
7898 (inf_child_maybe_unpush_target): Delete.
7899 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7900 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7901 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7902 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7903 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7904 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7905 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7906 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7907 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7908 methods of inf_ptrace_target.
7909 (inf_ptrace_target): Delete function.
7910 * inf-ptrace.h: Include "inf-child.h".
7911 (inf_ptrace_target): Delete function declaration.
7912 (inf_ptrace_target): New class.
7913 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7914 * linux-nat.c (linux_target): New.
7915 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7916 (linux_nat_target::~linux_nat_target): New.
7917 (linux_child_post_attach, linux_child_post_startup_inferior)
7918 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7919 (linux_child_remove_fork_catchpoint)
7920 (linux_child_insert_vfork_catchpoint)
7921 (linux_child_remove_vfork_catchpoint)
7922 (linux_child_insert_exec_catchpoint)
7923 (linux_child_remove_exec_catchpoint)
7924 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7925 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7926 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7927 (linux_nat_stopped_data_address)
7928 (linux_nat_stopped_by_sw_breakpoint)
7929 (linux_nat_supports_stopped_by_sw_breakpoint)
7930 (linux_nat_stopped_by_hw_breakpoint)
7931 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7932 (linux_nat_kill, linux_nat_mourn_inferior)
7933 (linux_nat_xfer_partial, linux_nat_thread_alive)
7934 (linux_nat_update_thread_list, linux_nat_pid_to_str)
7935 (linux_nat_thread_name, linux_child_pid_to_exec_file)
7936 (linux_child_static_tracepoint_markers_by_strid)
7937 (linux_nat_is_async_p, linux_nat_can_async_p)
7938 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7939 (linux_nat_supports_multi_process)
7940 (linux_nat_supports_disable_randomization, linux_nat_async)
7941 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
7942 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
7943 (linux_nat_fileio_open, linux_nat_fileio_readlink)
7944 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
7945 methods of linux_nat_target.
7946 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
7947 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
7948 parameter.
7949 (check_stopped_by_watchpoint): Adjust.
7950 (linux_xfer_partial): Delete.
7951 (linux_target_install_ops, linux_target, linux_nat_add_target):
7952 Delete.
7953 (linux_nat_target::linux_nat_target): New.
7954 * linux-nat.h: Include "inf-ptrace.h".
7955 (linux_nat_target): New.
7956 (linux_target, linux_target_install_ops, linux_nat_add_target):
7957 Delete function declarations.
7958 (linux_target): Declare global.
7959 * linux-thread-db.c (thread_db_target): New.
7960 (thread_db_target::thread_db_target): New.
7961 (thread_db_ops): Delete.
7962 (the_thread_db_target): New.
7963 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
7964 (thread_db_update_thread_list, thread_db_pid_to_str)
7965 (thread_db_extra_thread_info)
7966 (thread_db_thread_handle_to_thread_info)
7967 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
7968 (thread_db_resume): Refactor as methods of thread_db_target.
7969 (init_thread_db_ops): Delete.
7970 (_initialize_thread_db): Remove reference to init_thread_db_ops.
7971 * x86-linux-nat.c: Don't include "linux-nat.h".
7972 (super_post_startup_inferior): Delete.
7973 (x86_linux_nat_target::~x86_linux_nat_target): New.
7974 (x86_linux_child_post_startup_inferior)
7975 (x86_linux_read_description, x86_linux_enable_btrace)
7976 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
7977 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
7978 methods of x86_linux_nat_target.
7979 (x86_linux_create_target): Delete. Bits folded ...
7980 (x86_linux_add_target): ... here. Now takes a linux_nat_target
7981 pointer.
7982 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
7983 (x86_linux_nat_target): New class.
7984 (x86_linux_create_target): Delete.
7985 (x86_linux_add_target): Now takes a linux_nat_target pointer.
7986 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
7987 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
7988 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
7989 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
7990 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
7991 make extern.
7992 (x86_use_watchpoints): Delete.
7993 * x86-nat.h: Include "breakpoint.h" and "target.h".
7994 (x86_use_watchpoints): Delete.
7995 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
7996 (x86_stopped_by_watchpoint, x86_stopped_data_address)
7997 (x86_insert_watchpoint, x86_remove_watchpoint)
7998 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
7999 (x86_stopped_by_hw_breakpoint): New declarations.
8000 (x86_nat_target): New template class.
8001
8002 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8003 (the_ppc_linux_nat_target): New.
8004 (ppc_linux_fetch_inferior_registers)
8005 (ppc_linux_can_use_hw_breakpoint)
8006 (ppc_linux_region_ok_for_hw_watchpoint)
8007 (ppc_linux_ranged_break_num_registers)
8008 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8009 (ppc_linux_insert_mask_watchpoint)
8010 (ppc_linux_remove_mask_watchpoint)
8011 (ppc_linux_can_accel_watchpoint_condition)
8012 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8013 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8014 (ppc_linux_watchpoint_addr_within_range)
8015 (ppc_linux_masked_watch_num_registers)
8016 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8017 (ppc_linux_read_description): Refactor as methods of
8018 ppc_linux_nat_target.
8019 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8020
8021 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8022 (procfs_target): New class.
8023 (the_procfs_target): New.
8024 (procfs_target): Delete function.
8025 (procfs_auxv_parse, procfs_attach, procfs_detach)
8026 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8027 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8028 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8029 (procfs_create_inferior, procfs_update_thread_list)
8030 (procfs_thread_alive, procfs_pid_to_str)
8031 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8032 (procfs_stopped_data_address, procfs_insert_watchpoint)
8033 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8034 (proc_find_memory_regions, procfs_info_proc)
8035 (procfs_make_note_section): Refactor as methods of procfs_target.
8036 (_initialize_procfs): Adjust.
8037 * sol-thread.c (sol_thread_target): New class.
8038 (sol_thread_ops): Now a sol_thread_target.
8039 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8040 (sol_thread_fetch_registers, sol_thread_store_registers)
8041 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8042 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8043 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8044 (init_sol_thread_ops): Delete.
8045 (_initialize_sol_thread): Adjust. Remove references to
8046 init_sol_thread_ops and complete_target_initialization.
8047
8048 * windows-nat.c (windows_nat_target): New class.
8049 (windows_fetch_inferior_registers)
8050 (windows_store_inferior_registers, windows_resume, windows_wait)
8051 (windows_attach, windows_detach, windows_pid_to_exec_file)
8052 (windows_files_info, windows_create_inferior)
8053 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8054 (windows_close, windows_pid_to_str, windows_xfer_partial)
8055 (windows_get_tib_address, windows_get_ada_task_ptid)
8056 (windows_thread_name, windows_thread_alive): Refactor as
8057 windows_nat_target methods.
8058 (do_initial_windows_stuff): Adjust.
8059 (windows_target): Delete function.
8060 (_initialize_windows_nat): Adjust.
8061
8062 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8063 (darwin_mourn_inferior, darwin_kill_inferior)
8064 (darwin_create_inferior, darwin_attach, darwin_detach)
8065 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8066 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8067 (darwin_supports_multi_process): Refactor as darwin_nat_target
8068 methods.
8069 (darwin_resume_to, darwin_files_info): Delete.
8070 (_initialize_darwin_inferior): Rename to ...
8071 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8072 * darwin-nat.h: Include "inf-child.h".
8073 (darwin_nat_target): New class.
8074 (darwin_complete_target): Delete.
8075 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8076 (darwin_target): New.
8077 (i386_darwin_fetch_inferior_registers)
8078 (i386_darwin_store_inferior_registers): Refactor as methods of
8079 darwin_nat_target.
8080 (darwin_complete_target): Delete, with ...
8081 (_initialize_i386_darwin_nat): ... bits factored out here.
8082
8083 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8084 (the_alpha_linux_nat_target): New.
8085 (alpha_linux_register_u_offset): Refactor as
8086 alpha_linux_nat_target method.
8087 (_initialize_alpha_linux_nat): Adjust.
8088 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8089 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8090 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8091 methods of linux_nat_trad_target.
8092 (linux_trad_target): Delete.
8093 * linux-nat-trad.h (linux_trad_target): Delete function.
8094 (linux_nat_trad_target): New class.
8095 * mips-linux-nat.c (mips_linux_nat_target): New class.
8096 (super_fetch_registers, super_store_registers, super_close):
8097 Delete.
8098 (the_mips_linux_nat_target): New.
8099 (mips64_linux_regsets_fetch_registers)
8100 (mips64_linux_regsets_store_registers)
8101 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8102 (mips_linux_register_u_offset, mips_linux_read_description)
8103 (mips_linux_can_use_hw_breakpoint)
8104 (mips_linux_stopped_by_watchpoint)
8105 (mips_linux_stopped_data_address)
8106 (mips_linux_region_ok_for_hw_watchpoint)
8107 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8108 (mips_linux_close): Refactor as methods of mips_linux_nat.
8109 (_initialize_mips_linux_nat): Adjust to C++ification.
8110
8111 * aix-thread.c (aix_thread_target): New class.
8112 (aix_thread_ops): Now an aix_thread_target.
8113 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8114 (aix_thread_fetch_registers, aix_thread_store_registers)
8115 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8116 (aix_thread_thread_alive, aix_thread_pid_to_str)
8117 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8118 Refactor as methods of aix_thread_target.
8119 (init_aix_thread_ops): Delete.
8120 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8121 and complete_target_initialization.
8122 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8123 (rs6000_nat_target): New class.
8124 (the_rs6000_nat_target): New.
8125 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8126 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8127 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8128 (super_create_inferior): Delete.
8129 (_initialize_rs6000_nat): Adjust to C++ification.
8130
8131 * arm-linux-nat.c (arm_linux_nat_target): New class.
8132 (the_arm_linux_nat_target): New.
8133 (arm_linux_fetch_inferior_registers)
8134 (arm_linux_store_inferior_registers, arm_linux_read_description)
8135 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8136 (arm_linux_remove_hw_breakpoint)
8137 (arm_linux_region_ok_for_hw_watchpoint)
8138 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8139 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8140 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8141 arm_linux_nat_target.
8142 (_initialize_arm_linux_nat): Adjust to C++ification.
8143
8144 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8145 (the_aarch64_linux_nat_target): New.
8146 (aarch64_linux_fetch_inferior_registers)
8147 (aarch64_linux_store_inferior_registers)
8148 (aarch64_linux_child_post_startup_inferior)
8149 (aarch64_linux_read_description)
8150 (aarch64_linux_can_use_hw_breakpoint)
8151 (aarch64_linux_insert_hw_breakpoint)
8152 (aarch64_linux_remove_hw_breakpoint)
8153 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8154 (aarch64_linux_region_ok_for_hw_watchpoint)
8155 (aarch64_linux_stopped_data_address)
8156 (aarch64_linux_stopped_by_watchpoint)
8157 (aarch64_linux_watchpoint_addr_within_range)
8158 (aarch64_linux_can_do_single_step): Refactor as methods of
8159 aarch64_linux_nat_target.
8160 (super_post_startup_inferior): Delete.
8161 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8162
8163 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8164 (the_hppa_linux_nat_target): New.
8165 (hppa_linux_fetch_inferior_registers)
8166 (hppa_linux_store_inferior_registers): Refactor as methods of
8167 hppa_linux_nat_target.
8168 (_initialize_hppa_linux_nat): Adjust to C++ification.
8169
8170 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8171 (the_ia64_linux_nat_target): New.
8172 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8173 (ia64_linux_stopped_data_address)
8174 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8175 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8176 ia64_linux_nat_target methods.
8177 (super_xfer_partial): Delete.
8178 (_initialize_ia64_linux_nat): Adjust to C++ification.
8179
8180 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8181 (the_m32r_linux_nat_target): New.
8182 (m32r_linux_fetch_inferior_registers)
8183 (m32r_linux_store_inferior_registers): Refactor as
8184 m32r_linux_nat_target methods.
8185 (_initialize_m32r_linux_nat): Adjust to C++ification.
8186
8187 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8188 (the_m68k_linux_nat_target): New.
8189 (m68k_linux_fetch_inferior_registers)
8190 (m68k_linux_store_inferior_registers): Refactor as
8191 m68k_linux_nat_target methods.
8192 (_initialize_m68k_linux_nat): Adjust to C++ification.
8193
8194 * s390-linux-nat.c (s390_linux_nat_target): New class.
8195 (the_s390_linux_nat_target): New.
8196 (s390_linux_fetch_inferior_registers)
8197 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8198 (s390_insert_watchpoint, s390_remove_watchpoint)
8199 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8200 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8201 (s390_auxv_parse, s390_read_description): Refactor as methods of
8202 s390_linux_nat_target.
8203 (_initialize_s390_nat): Adjust to C++ification.
8204
8205 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8206 (the_sparc_linux_nat_target): New.
8207 (_initialize_sparc_linux_nat): Adjust to C++ification.
8208 * sparc-nat.c (sparc_fetch_inferior_registers)
8209 (sparc_store_inferior_registers): Remove target_ops parameter.
8210 * sparc-nat.h (sparc_fetch_inferior_registers)
8211 (sparc_store_inferior_registers): Remove target_ops parameter.
8212 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8213 (the_sparc64_linux_nat_target): New.
8214 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8215
8216 * spu-linux-nat.c (spu_linux_nat_target): New class.
8217 (the_spu_linux_nat_target): New.
8218 (spu_child_post_startup_inferior, spu_child_post_attach)
8219 (spu_child_wait, spu_fetch_inferior_registers)
8220 (spu_store_inferior_registers, spu_xfer_partial)
8221 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8222 methods.
8223 (_initialize_spu_nat): Adjust to C++ification.
8224
8225 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8226 (the_tilegx_linux_nat_target): New.
8227 (fetch_inferior_registers, store_inferior_registers):
8228 Refactor as methods.
8229 (_initialize_tile_linux_nat): Adjust to C++ification.
8230
8231 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8232 (the_xtensa_linux_nat_target): New.
8233 (xtensa_linux_fetch_inferior_registers)
8234 (xtensa_linux_store_inferior_registers): Refactor as
8235 xtensa_linux_nat_target methods.
8236 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8237
8238 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8239 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8240 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8241 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8242 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8243 (fbsd_stopped_by_sw_breakpoint)
8244 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8245 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8246 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8247 (fbsd_post_startup_inferior, fbsd_post_attach)
8248 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8249 (fbsd_set_syscall_catchpoint)
8250 (super_xfer_partial, super_resume, super_wait)
8251 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8252 (fbsd_handle_debug_trap): Remove target_ops parameter.
8253 (fbsd_nat_add_target): Delete.
8254 * fbsd-nat.h: Include "inf-ptrace.h".
8255 (fbsd_nat_add_target): Delete.
8256 (USE_SIGTRAP_SIGINFO): Define.
8257 (fbsd_nat_target): New class.
8258
8259 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8260 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8261 (amd64bsd_target): Delete.
8262 * amd64-bsd-nat.h: New file.
8263 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8264 "x86-bsd-nat.h".
8265 (amd64_fbsd_nat_target): New class.
8266 (the_amd64_fbsd_nat_target): New.
8267 (amd64fbsd_read_description): Refactor as method of
8268 amd64_fbsd_nat_target.
8269 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8270 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8271 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8272 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8273 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8274 (i386bsd_target): Delete.
8275 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8276 (i386bsd_fetch_inferior_registers)
8277 (i386bsd_store_inferior_registers): Declare.
8278 (i386_bsd_nat_target): New class.
8279 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8280 (the_i386_fbsd_nat_target): New.
8281 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8282 i386_fbsd_nat_target methods.
8283 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8284 (_initialize_i386fbsd_nat): Adjust to C++ification.
8285 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8286 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8287 (_initialize_x86_bsd_nat): Adjust to C++ification.
8288 * x86-bsd-nat.h: Include "x86-nat.h".
8289 (x86bsd_target): Delete declaration.
8290 (x86bsd_nat_target): New class.
8291
8292 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8293 (the_aarch64_fbsd_nat_target): New.
8294 (aarch64_fbsd_fetch_inferior_registers)
8295 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8296 aarch64_fbsd_nat_target.
8297 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8298 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8299 (the_alpha_bsd_nat_target): New.
8300 (alphabsd_fetch_inferior_registers)
8301 (alphabsd_store_inferior_registers): Refactor as
8302 alpha_bsd_nat_target methods.
8303 (_initialize_alphabsd_nat): Refactor as methods of
8304 alpha_bsd_nat_target.
8305 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8306 (the_amd64_nbsd_nat_target): New.
8307 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8308 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8309 (the_amd64_obsd_nat_target): New.
8310 (_initialize_amd64obsd_nat): Adjust to C++ification.
8311 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8312 (the_arm_fbsd_nat_target): New.
8313 (arm_fbsd_fetch_inferior_registers)
8314 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8315 (_initialize_arm_fbsd_nat): Refactor as methods of
8316 arm_fbsd_nat_target.
8317 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8318 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8319 (the_arm_netbsd_nat_target): New.
8320 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8321 arm_netbsd_nat_target.
8322 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8323 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8324 (the_hppa_nbsd_nat_target): New.
8325 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8326 hppa_nbsd_nat_target methods.
8327 (_initialize_hppanbsd_nat): Adjust to C++ification.
8328 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8329 (the_hppa_obsd_nat_target): New.
8330 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8331 methods of hppa_obsd_nat_target.
8332 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8333 add_target.
8334 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8335 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8336 add_target.
8337 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8338 (_initialize_i386obsd_nat): Use add_target.
8339 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8340 (the_m68k_bsd_nat_target): New.
8341 (m68kbsd_fetch_inferior_registers)
8342 (m68kbsd_store_inferior_registers): Refactor as methods of
8343 m68k_bsd_nat_target.
8344 (_initialize_m68kbsd_nat): Adjust to C++ification.
8345 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8346 (the_mips_fbsd_nat_target): New.
8347 (mips_fbsd_fetch_inferior_registers)
8348 (mips_fbsd_store_inferior_registers): Refactor as methods of
8349 mips_fbsd_nat_target.
8350 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8351 add_target.
8352 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8353 (the_mips_nbsd_nat_target): New.
8354 (mipsnbsd_fetch_inferior_registers)
8355 (mipsnbsd_store_inferior_registers): Refactor as methods of
8356 mips_nbsd_nat_target.
8357 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8358 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8359 (the_mips64_obsd_nat_target): New.
8360 (mips64obsd_fetch_inferior_registers)
8361 (mips64obsd_store_inferior_registers): Refactor as methods of
8362 mips64_obsd_nat_target.
8363 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8364 add_target.
8365 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8366 nbsd_nat_target.
8367 * nbsd-nat.h: Include "inf-ptrace.h".
8368 (nbsd_nat_target): New class.
8369 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8370 (obsd_wait): Refactor as methods of obsd_nat_target.
8371 (obsd_add_target): Delete.
8372 * obsd-nat.h: Include "inf-ptrace.h".
8373 (obsd_nat_target): New class.
8374 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8375 (the_ppc_fbsd_nat_target): New.
8376 (ppcfbsd_fetch_inferior_registers)
8377 (ppcfbsd_store_inferior_registers): Refactor as methods of
8378 ppc_fbsd_nat_target.
8379 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8380 add_target.
8381 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8382 (the_ppc_nbsd_nat_target): New.
8383 (ppcnbsd_fetch_inferior_registers)
8384 (ppcnbsd_store_inferior_registers): Refactor as methods of
8385 ppc_nbsd_nat_target.
8386 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8387 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8388 (the_ppc_obsd_nat_target): New.
8389 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8390 methods of ppc_obsd_nat_target.
8391 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8392 add_target.
8393 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8394 (the_sh_nbsd_nat_target): New.
8395 (shnbsd_fetch_inferior_registers)
8396 (shnbsd_store_inferior_registers): Refactor as methods of
8397 sh_nbsd_nat_target.
8398 (_initialize_shnbsd_nat): Adjust to C++ification.
8399 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8400 (inf_ptrace_xfer_partial): Delete.
8401 (sparc_xfer_partial, sparc_target): Delete.
8402 * sparc-nat.h (sparc_fetch_inferior_registers)
8403 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8404 (sparc_target): Delete function declaration.
8405 (sparc_target): New template class.
8406 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8407 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8408 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8409 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8410 add_target.
8411 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8412 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8413 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8414 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8415 add_target.
8416 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8417 (the_vax_bsd_nat_target): New.
8418 (vaxbsd_fetch_inferior_registers)
8419 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8420 methods.
8421 (_initialize_vaxbsd_nat): Adjust to C++ification.
8422
8423 * bsd-kvm.c (bsd_kvm_target): New class.
8424 (bsd_kvm_ops): Now a bsd_kvm_target.
8425 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8426 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8427 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8428 bsd_kvm_target.
8429 (bsd_kvm_return_one): Delete.
8430 (bsd_kvm_add_target): Adjust to C++ification.
8431
8432 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8433 (nto_procfs_target_procfs): New classes.
8434 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8435 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8436 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8437 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8438 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8439 (procfs_remove_hw_breakpoint, procfs_resume)
8440 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8441 (procfs_kill_inferior, procfs_store_registers)
8442 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8443 as methods of nto_procfs_target.
8444 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8445 (nto_native_ops): Delete.
8446 (procfs_open, procfs_native_open): Delete.
8447 (nto_native_ops): Now an nto_procfs_target_native.
8448 (init_procfs_targets): Adjust to C++ification.
8449 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8450 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8451 Refactor as methods of nto_procfs_target.
8452
8453 * go32-nat.c (go32_nat_target): New class.
8454 (the_go32_nat_target): New.
8455 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8456 (go32_store_registers, go32_xfer_partial, go32_files_info)
8457 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8458 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8459 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8460 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8461 (go32_target): Delete.
8462 (_initialize_go32_nat): Adjust to C++ification.
8463
8464 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8465 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8466 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8467 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8468 gnu_nat_target.
8469 (gnu_target): Delete.
8470 * gnu-nat.h (gnu_target): Delete.
8471 (gnu_nat_target): New class.
8472 * i386-gnu-nat.c (gnu_base_target): New.
8473 (i386_gnu_nat_target): New class.
8474 (the_i386_gnu_nat_target): New.
8475 (_initialize_i386gnu_nat): Adjust to C++ification.
8476
8477 2018-05-02 Pedro Alves <palves@redhat.com>
8478
8479 * bfd-target.c (target_bfd_xclose): Rename to ...
8480 (target_bfd_close): ... this.
8481 (target_bfd_reopen): Adjust.
8482 * target.c (target_close): Remove references to to_xclose.
8483 * target.h (target_ops::to_xclose): Delete.
8484 (target_ops::to_close): Update comments.
8485
8486 2018-05-02 Pedro Alves <palves@redhat.com>
8487
8488 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8489 "linux-nat.h".
8490 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8491 * inf-ptrace.c (inf_ptrace_register_u_offset)
8492 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8493 (inf_ptrace_store_register, inf_ptrace_store_registers)
8494 (inf_ptrace_trad_target): Move to ...
8495 * linux-nat-trad.c: ... this new file.
8496 * linux-nat-trad.h: New file.
8497 * linux-nat.c (linux_target_install_ops): Make extern.
8498 (linux_trad_target): Delete.
8499 * linux-nat.h (linux_trad_target): Delete declaration.
8500 (linux_target_install_ops): Declare.
8501 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8502 "linux-nat.h".
8503
8504 2018-05-02 Pedro Alves <palves@redhat.com>
8505
8506 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8507 procfs_target/add_target here.
8508 * procfs.c (procfs_target): Make static.
8509 (_initialize_procfs): Call add_target here.
8510 * procfs.h (struct target_ops): Remove forward declaration.
8511 (procfs_target): Remove declaration.
8512 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8513
8514 2018-05-02 Pedro Alves <palves@redhat.com>
8515
8516 * procfs.c (procfs_stopped_by_watchpoint)
8517 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8518 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8519 Forward declare.
8520 (procfs_use_watchpoints): Delete, move contents...
8521 (procfs_target): ... here.
8522 * procfs.h (procfs_use_watchpoints): Delete declaration.
8523 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8524 procfs_use_watchpoints.
8525 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8526 procfs_use_watchpoints.
8527
8528 2018-05-02 Tom Tromey <tom@tromey.com>
8529
8530 PR python/20084:
8531 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8532 and var_zuinteger_unlimited.
8533 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8534 and PARAM_ZUINTEGER_UNLIMITED.
8535 (set_parameter_value): Handle var_zuinteger and
8536 var_zuinteger_unlimited.
8537 (add_setshow_generic): Likewise.
8538 (parmpy_init): Likewise.
8539
8540 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8541
8542 PR rust/23124
8543 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8544 pointer is not null before dereferencing it.
8545
8546 2018-04-30 Tom Tromey <tom@tromey.com>
8547
8548 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8549 is_mi_like_p.
8550
8551 2018-04-30 Tom Tromey <tom@tromey.com>
8552
8553 * breakpoint.c (mention): Remove use of is_mi_like_p.
8554 (print_mention_ranged_breakpoint): Likewise.
8555 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8556 of is_mi_like_p.
8557
8558 2018-04-30 Tom Tromey <tom@tromey.com>
8559
8560 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8561
8562 2018-04-30 Tom Tromey <tom@tromey.com>
8563
8564 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8565 (info_spu_event_command): Remove some uses of is_mi_like_p.
8566
8567 2018-04-30 Tom Tromey <tom@tromey.com>
8568
8569 * python/py-framefilter.c (py_print_single_arg)
8570 (enumerate_locals, py_print_args, py_print_frame): Remove some
8571 uses of is_mi_like_p.
8572
8573 2018-04-30 Tom Tromey <tom@tromey.com>
8574
8575 * ui-out.c: Update.
8576 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8577 * ui-out.h (ui_out::is_mi_like_p): Now const.
8578 (ui_out::do_is_mi_like_p): Now const.
8579 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8580
8581 2018-04-30 Tom Tromey <tom@tromey.com>
8582
8583 * varobj.c (varobj_set_visualizer): Use new_reference.
8584 * python/python.c (gdbpy_decode_line): Use new_reference.
8585 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8586 new_reference.
8587
8588 2018-04-30 Tom Tromey <tom@tromey.com>
8589
8590 * varobj.c (install_new_value): Use new_reference.
8591 * value.h (value_incref): Return void. Swap intro comment with
8592 value_decref.
8593 * value.c (set_value_parent): Use new_reference.
8594 (value_incref): Return void. Update intro comment.
8595 (release_value): Use new_reference.
8596 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8597
8598 2018-04-30 Tom Tromey <tom@tromey.com>
8599
8600 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8601 * gdb_bfd.h (new_bfd_ref): Remove.
8602 (gdb_bfd_open): Update comment.
8603 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8604 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8605 (gdb_bfd_fdopenr): Use new_reference.
8606 * exec.c (exec_file_attach): Use new_reference.
8607
8608 2018-04-30 Tom Tromey <tom@tromey.com>
8609
8610 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8611 method.
8612
8613 2018-04-30 Tom Tromey <tom@tromey.com>
8614
8615 * jit.c (jit_read_code_entry): Use type_align.
8616 * i386-tdep.c (i386_gdbarch_init): Don't call
8617 set_gdbarch_long_long_align_bit.
8618 * gdbarch.sh: Remove long_long_align_bit.
8619 * gdbarch.c, gdbarch.h: Rebuild.
8620 * arc-tdep.c (arc_type_align): New function.
8621 (arc_gdbarch_init): Use arc_type_align. Don't call
8622 set_gdbarch_long_long_align_bit.
8623
8624 2018-04-30 Tom Tromey <tom@tromey.com>
8625
8626 * rust-lang.c (rust_type_alignment): Remove.
8627 (rust_composite_type): Use type_align.
8628
8629 2018-04-30 Tom Tromey <tom@tromey.com>
8630
8631 * NEWS: Mention Type.align.
8632 * python/py-type.c (typy_get_alignof): New function.
8633 (type_object_getset): Add "alignof".
8634
8635 2018-04-30 Tom Tromey <tom@tromey.com>
8636
8637 PR exp/17095:
8638 * NEWS: Update.
8639 * std-operator.def (UNOP_ALIGNOF): New operator.
8640 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8641 New.
8642 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8643 * c-lang.c (c_op_print_tab): Add alignof.
8644 * c-exp.y (ALIGNOF): New token.
8645 (exp): Add "ALIGNOF" production.
8646 (ident_tokens): Add _Alignof and alignof.
8647
8648 2018-04-30 Tom Tromey <tom@tromey.com>
8649
8650 * i386-tdep.c (i386_type_align): New function.
8651 (i386_gdbarch_init): Update.
8652 * gdbarch.sh (type_align): New method.
8653 * gdbarch.c, gdbarch.h: Rebuild.
8654 * arch-utils.h (default_type_align): Declare.
8655 * arch-utils.c (default_type_align): New function.
8656 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8657 (struct type) <align_log2>: New field.
8658 <instance_flags>: Now a bitfield.
8659 (TYPE_RAW_ALIGN): New macro.
8660 (type_align, type_raw_align, set_type_align): Declare.
8661 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8662 functions.
8663 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8664 (get_alignment, maybe_set_alignment): New functions.
8665 (read_structure_type, read_enumeration_type, read_array_type)
8666 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8667 (read_subrange_type, read_base_type): Set type alignment.
8668
8669 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8670
8671 * dwarf2read.c (read_index_from_section): Use bool.
8672
8673 2018-04-29 Fabian Groffen <grobian@gentoo.org>
8674
8675 PR gdb/22950
8676 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8677 with #ifdef.
8678
8679 2018-04-29 John Reiser <jreiser@BitWagon.com>
8680
8681 PR build/22873
8682 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8683 last step, and do it atomically.
8684
8685 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
8686
8687 * compile/compile-c-types.c (convert_int, convert_float):
8688 Update for C FE v1.
8689
8690 2018-04-27 Tom Tromey <tom@tromey.com>
8691
8692 PR rust/22545:
8693 * rust-lang.c (rust_inclusive_range_type_p): New function.
8694 (rust_range): Handle inclusive ranges.
8695 (rust_compute_range): Likewise.
8696 * rust-exp.y (struct rust_op) <inclusive>: New field.
8697 (DOTDOTEQ): New constant.
8698 (range_expr): Add "..=" productions.
8699 (operator_tokens): Add "..=" token.
8700 (ast_range): Add "inclusive" parameter.
8701 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8702 ranges.
8703 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8704 bounds values.
8705 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8706 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8707 Update comments.
8708 * expprint.c (print_subexp_standard): Handle new bounds values.
8709 (dump_subexp_body_standard): Likewise.
8710
8711 2018-04-27 Tom Tromey <tom@tromey.com>
8712
8713 * configure: Rebuild.
8714 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8715 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8716 "OVERRIDE".
8717 (class symbol_needs_eval_context): Likewise.
8718 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8719 (mock_mapped_index::symbol_name_at): Use "override". Remove
8720 "virtual".
8721 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8722 "override".
8723 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8724 * aarch64-tdep.c (instruction_reader::read): Use "override".
8725 (instruction_reader_test::read): Likewise.
8726 * arm-tdep.c (instruction_reader::read): Use "override".
8727 (instruction_reader_thumb::read): Likewise.
8728
8729 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
8730
8731 PR remote/9665
8732 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8733 instead of remote_send.
8734 (remote_send): Remove.
8735
8736 2018-04-26 Pedro Alves <palves@redhat.com>
8737
8738 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8739 find_function_start_sal instead of find_pc_line.
8740
8741 2018-04-26 Pedro Alves <palves@redhat.com>
8742
8743 * breakpoint.c (set_breakpoint_location_function): Handle
8744 mst_data_gnu_ifunc.
8745 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8746 * elfread.c (elf_symtab_read): Give data symbols with
8747 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8748 (elf_rel_plt_read): Update comment.
8749 * linespec.c (convert_linespec_to_sals): Handle
8750 mst_data_gnu_ifunc.
8751 (minsym_found): Handle mst_data_gnu_ifunc.
8752 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8753 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8754 * parse.c (find_minsym_type_and_address): Handle
8755 mst_data_gnu_ifunc.
8756 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8757 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8758 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8759 comment.
8760 <mst_data_gnu_ifunc>: New enumerator.
8761
8762 2018-04-26 Pedro Alves <palves@redhat.com>
8763
8764 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8765 (lookup_minimal_symbol_by_pc_section): ... this. Replace
8766 'want_trampoline' parameter by a lookup_msym_prefer parameter.
8767 Handle it.
8768 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8769 (lookup_minimal_symbol_by_pc): Adjust.
8770 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8771 (lookup_solib_trampoline_symbol_by_pc): Adjust.
8772 * minsyms.h (lookup_msym_prefer): New enum.
8773 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8774 parameter by a lookup_msym_prefer parameter.
8775
8776 2018-04-26 Pedro Alves <palves@redhat.com>
8777
8778 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8779 ends in "@plt" instead of looking at the symbol's section.
8780
8781 2018-04-26 Pedro Alves <palves@redhat.com>
8782
8783 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
8784 all references.
8785 (find_pc_partial_function_gnu_ifunc): Rename to ...
8786 (find_pc_partial_function): ... this, and remove references to
8787 'is_gnu_ifunc_p'.
8788 (find_pc_partial_function): Delete old implementation.
8789 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8790
8791 2018-04-26 Pedro Alves <palves@redhat.com>
8792
8793 * linespec.c (struct bound_minimal_symbol_search_key): New.
8794 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
8795 skip first line if we found a GNU ifunc minimal symbol by name.
8796 (compare_msymbols): Change parameters to work with a destructured
8797 lhs minsym.
8798 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8799 functions.
8800
8801 2018-04-26 Pedro Alves <palves@redhat.com>
8802
8803 * breakpoint.c (set_breakpoint_location_function): Don't resolve
8804 ifunc targets here. Instead, if we have an ifunc minsym, use its
8805 address/name.
8806 (add_location_to_breakpoint): Store the minsym and the objfile in
8807 the breakpoint location.
8808 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8809 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8810 Record the minsym in the sal.
8811 * symtab.h (symtab_and_line) <msymbol>: New field.
8812
8813 2018-04-26 Pedro Alves <palves@redhat.com>
8814
8815 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8816 unless we actually resolved the ifunc.
8817
8818 2018-04-26 Pedro Alves <palves@redhat.com>
8819
8820 * c-exp.y (variable production): Prefer ifunc minsyms over
8821 regular function symbols.
8822 * symtab.c (find_gnu_ifunc): New function.
8823 * minsyms.h (lookup_msym_prefer): New enum.
8824 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8825 parameter by a lookup_msym_prefer parameter.
8826 * symtab.h (find_gnu_ifunc): New declaration.
8827
8828 2018-04-26 Pedro Alves <palves@redhat.com>
8829
8830 * blockframe.c (find_gnu_ifunc_target_type): New function.
8831 (find_function_type): New.
8832 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8833 return a value with a memory address.
8834 (eval_call): For calls to GNU ifunc functions, try to find the
8835 type of the target function from the type that the resolver
8836 returns.
8837 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8838 symbols.
8839 * infcall.c (find_function_return_type): Delete.
8840 (find_function_addr): Add 'function_type' parameter. For calls to
8841 GNU ifunc functions, try to find the type of the target function
8842 from the type that the resolver returns, and return it via
8843 FUNCTION_TYPE.
8844 (call_function_by_hand_dummy): Adjust to use the function type
8845 returned by find_function_addr.
8846 (find_function_addr): Add 'function_type' parameter and move
8847 description here.
8848 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8849 declarations.
8850
8851 2018-04-26 Pedro Alves <palves@redhat.com>
8852
8853 * c-exp.y (variable production): Skip finding an alias for ifunc
8854 symbols.
8855
8856 2018-04-26 Pedro Alves <palves@redhat.com>
8857
8858 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8859
8860 2018-04-25 Pedro Alves <palves@redhat.com>
8861
8862 * infcmd.c (kill_command): Print the pid as string, not the whole
8863 thread's ptid. Add comment. s/has been killed/killed/ in output
8864 message.
8865 * remote.c (remote_detach_1): Print the pid as string, not the
8866 whole thread's ptid.
8867
8868 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8869 Sergio Durigan Junior <sergiodj@redhat.com>
8870 Pedro Alves <palves@redhat.com>
8871
8872 * infcmd.c (kill_command): Print message when inferior has
8873 been killed.
8874 * inferior.c (print_inferior_events): Remove 'static'. Set as
8875 '1'.
8876 (add_inferior): Improve message printed when
8877 'print_inferior_events' is on.
8878 (exit_inferior): Remove message printed when
8879 'print_inferior_events' is on.
8880 (detach_inferior): Improve message printed when
8881 'print_inferior_events' is on.
8882 (initialize_inferiors): Use 'add_inferior_silent' to set
8883 'current_inferior_'.
8884 * inferior.h (print_inferior_events): Declare here as
8885 'extern'.
8886 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8887 '[Detaching...]' messages when 'print_inferior_events' is on.
8888 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8889 as prefix/suffix for messages. Remove periods. Fix erroneous
8890 'Detaching after fork from child...', replace it by '... from
8891 parent...'.
8892 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8893 prefix/suffix when printing 'Detaching...' messages. Print
8894 them when 'print_inferior_events' is on.
8895 * remote.c (remote_detach_1): Print message when detaching
8896 from inferior and '!is_fork_parent'.
8897
8898 2018-04-24 Tom Tromey <tom@tromey.com>
8899
8900 * cli-out.h: Reindent.
8901
8902 2018-04-24 Tom Tromey <tom@tromey.com>
8903
8904 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8905 (cli_ui_out::do_field_string): Use fputs_filtered.
8906 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8907
8908 2018-04-23 Tom Tromey <tom@tromey.com>
8909
8910 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8911 gdb::unique_xmalloc_ptr.
8912
8913 2018-04-23 Tom Tromey <tom@tromey.com>
8914
8915 * configure: Rebuild.
8916
8917 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
8918
8919 PR gdb/23095
8920 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8921 prepare_for_testing. Set normal_bp to r_debug_state if target
8922 is bsd.
8923
8924 2018-04-21 Pedro Alves <palves@redhat.com>
8925 Rajendra SY <rajendra.sy@gmail.com>
8926
8927 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8928 * remote.c (extended_remote_attach): In all-stop mode, mark the
8929 thread as executing.
8930
8931 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8932
8933 * thread.c (thread_apply_all_command): Fix comment.
8934 (thread_command): Fix comment.
8935
8936 2018-04-10 Alan Hayward <alan.hayward@arm.com>
8937
8938 * common/tdesc.h (tdesc_create_feature): Remove xml filename
8939 parameter.
8940 * features/aarch64-core.c (create_feature_aarch64_core):
8941 Regenerate.
8942 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
8943 Likewise.
8944 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
8945 Likewise.
8946 * features/i386/32bit-avx512.c
8947 (create_feature_i386_32bit_avx512): Likewise.
8948 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
8949 Likewise.
8950 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
8951 Likewise.
8952 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
8953 Likewise.
8954 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
8955 Likewise.
8956 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
8957 Likewise.
8958 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
8959 Likewise.
8960 * features/i386/64bit-avx512.c
8961 (create_feature_i386_64bit_avx512): Likewise.
8962 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
8963 Likewise.
8964 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
8965 Likewise.
8966 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
8967 Likewise.
8968 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
8969 Likewise.
8970 * features/i386/64bit-segments.c
8971 (create_feature_i386_64bit_segments): Likewise.
8972 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
8973 Likewise.
8974 * features/i386/x32-core.c
8975 (create_feature_i386_x32_core): Likewise.
8976 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
8977 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
8978 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
8979 * target-descriptions.c: In generated code, don't pass xml
8980 filename.
8981
8982 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8983
8984 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
8985 (print_xml_feature::visit_post): Likewise.
8986 (print_xml_feature::visit): Likewise.
8987 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
8988 (print_xml_feature): Add new class.
8989 * regformats/regdat.sh: Null xmltarget on feature targets.
8990 * target-descriptions.c (struct target_desc): Add xmltarget.
8991 (maintenance_check_tdesc_xml_convert): Add unittest function.
8992 (tdesc_get_features_xml): Add function to get xml.
8993 (maintenance_check_xml_descriptions): Test xml generation.
8994 * xml-tdesc.c (string_read_description_xml): Add function.
8995 * xml-tdesc.h (string_read_description_xml): Add declaration.
8996
8997 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8998
8999 * features/Makefile: Add feature marker to targets with new style
9000 target descriptions.
9001 * regformats/aarch64.dat: Regenerate.
9002 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9003 * regformats/i386/amd64-avx-linux.dat: Likewise.
9004 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9005 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9006 * regformats/i386/amd64-linux.dat: Likewise.
9007 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9008 * regformats/i386/amd64.dat: Likewise.
9009 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9010 * regformats/i386/i386-avx-linux.dat: Likewise.
9011 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9012 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9013 * regformats/i386/i386-linux.dat: Likewise.
9014 * regformats/i386/i386-mmx-linux.dat: Likewise.
9015 * regformats/i386/i386-mpx-linux.dat: Likewise.
9016 * regformats/i386/i386.dat: Likewise.
9017 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9018 * regformats/i386/x32-avx-linux.dat: Likewise.
9019 * regformats/i386/x32-linux.dat: Likewise.
9020 * regformats/tic6x-c62x-linux.dat: Likewise.
9021 * regformats/tic6x-c64x-linux.dat: Likewise.
9022 * regformats/tic6x-c64xp-linux.dat: Likewise.
9023 * regformats/regdat.sh: Parse feature marker.
9024
9025 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9026
9027 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9028 (tdesc_osabi_name): Likewise.
9029 * target-descriptions.c (tdesc_architecture_name): Add new
9030 function.
9031 (tdesc_osabi_name): Likewise.
9032
9033 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9034
9035 * common/tdesc.c (tdesc_predefined_type): Move to here.
9036 (tdesc_named_type): Likewise.
9037 (tdesc_create_vector): Likewise.
9038 (tdesc_create_struct): Likewise.
9039 (tdesc_set_struct_size): Likewise.
9040 (tdesc_create_union): Likewise.
9041 (tdesc_create_flags): Likewise.
9042 (tdesc_create_enum): Likewise.
9043 (tdesc_add_field): Likewise.
9044 (tdesc_add_typed_bitfield): Likewise.
9045 (tdesc_add_bitfield): Likewise.
9046 (tdesc_add_flag): Likewise.
9047 (tdesc_add_enum_value): Likewise.
9048 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9049 (struct tdesc_type_vector): Likewise.
9050 (struct tdesc_type_field): Likewise.
9051 (struct tdesc_type_with_fields): Likewise.
9052 (tdesc_create_enum): Add declaration.
9053 (tdesc_add_typed_bitfield): Likewise.
9054 (tdesc_add_enum_value): Likewise.
9055 * target-descriptions.c (tdesc_type_field): Move from here.
9056 (tdesc_type_builtin): Likewise.
9057 (tdesc_type_vector): Likewise.
9058 (tdesc_type_with_fields): Likewise.
9059 (tdesc_predefined_types): Likewise.
9060 (tdesc_named_type): Likewise.
9061 (tdesc_create_vector): Likewise.
9062 (tdesc_create_struct): Likewise.
9063 (tdesc_set_struct_size): Likewise.
9064 (tdesc_create_union): Likewise.
9065 (tdesc_create_flags): Likewise.
9066 (tdesc_create_enum): Likewise.
9067 (tdesc_add_field): Likewise.
9068 (tdesc_add_typed_bitfield): Likewise.
9069 (tdesc_add_bitfield): Likewise.
9070 (tdesc_add_flag): Likewise.
9071 (tdesc_add_enum_value): Likewise.
9072 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9073 (tdesc_add_typed_bitfield): Likewise.
9074 (tdesc_add_enum_value): Likewise.
9075
9076 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9077
9078 * common/tdesc.c (tdesc_feature::accept): Move to here.
9079 (tdesc_feature::operator==): Likewise.
9080 (tdesc_create_reg): Likewise.
9081 * common/tdesc.h (tdesc_type_kind): Likewise.
9082 (struct tdesc_type): Likewise.
9083 (struct tdesc_feature): Likewise.
9084 * regformats/regdat.sh: Create a feature.
9085 * target-descriptions.c (tdesc_type_kind): Move from here.
9086 (tdesc_type): Likewise.
9087 (tdesc_type_up): Likewise.
9088 (tdesc_feature): Likewise.
9089 (tdesc_create_reg): Likewise.
9090
9091 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9092
9093 * Makefile.in: Add arch/tdesc.c
9094 * common/tdesc.c: New file.
9095 * common/tdesc.h (tdesc_element_visitor): Move to here.
9096 (tdesc_element): Likewise.
9097 (tdesc_reg): Likewise.
9098 (tdesc_reg_up): Likewise.
9099 * regformats/regdef.h (reg): Add offset to constructors.
9100 * target-descriptions.c (tdesc_element_visitor): Move from here.
9101 (tdesc_element): Likewise.
9102 (tdesc_reg): Likewise.
9103 (tdesc_reg_up): Likewise.
9104
9105 2018-04-17 Tom Tromey <tom@tromey.com>
9106
9107 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9108 discriminant field.
9109
9110 2018-04-17 Tom Tromey <tom@tromey.com>
9111
9112 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9113
9114 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9115
9116 * symtab.c (print_symbol_info): Skip printing filename and line
9117 number when `last' is NULL.
9118 (symtab_symbol_info): Use empty string instead of NULL for first
9119 invocation of print_symbol_info.
9120 (rbreak_command): Pass NULL to `last' parameter of
9121 print_symbol_info.
9122
9123 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9124
9125 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9126 instead of nullptr.
9127
9128 2018-04-16 Pedro Alves <palves@redhat.com>
9129
9130 * MAINTAINERS (sh): Remove.
9131 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9132 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9133 (ALLDEPFILES): Remove sh64-tdep.c.
9134 * NEWS: Mentions that support for SH-5/SH64 is removed.
9135 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9136 (sh*-*-openbsd*): Ditto.
9137 (sh64-*-elf*): Remove.
9138 (sh*): Remove.
9139 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9140 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9141 * sh-tdep.c: No longer include "sh64-tdep.h".
9142 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9143 * sh64-tdep.c, sh64-tdep.h: Remove files.
9144
9145 2018-04-16 Pedro Alves <palves@redhat.com>
9146
9147 * MAINTAINERS: Remove m88k.
9148 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9149 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9150 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9151 * NEWS: Mention that support for m88k was removed.
9152 * configure.host (m88*-*-*): Remove support.
9153 * configure.nat (m88k-*-*): Remove support.
9154 * configure.tgt (m88*-*-openbsd*): Remove.
9155 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9156
9157 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9158
9159 * configure.tgt (x86_tobjs): New variable.
9160 (amd64_tobjs, i386_tobjs): Use it.
9161
9162 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9163
9164 * symtab.c (print_symbol_info): Precede the symbol definition by
9165 the line number when available.
9166 * NEWS: Advertise this enhancement.
9167
9168 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9169
9170 * NEWS (New options): announce set/show record btrace cpu.
9171 * btrace.c: Include record-btrace.h.
9172 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9173 the vendor is unknown.
9174 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9175 Maybe overwrite the btrace configuration's cpu.
9176 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9177 (btrace_fetch): Add cpu parameter. Update callers.
9178 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9179 Maybe overwrite the btrace configuration's cpu. Skip enabling
9180 errata workarounds if the vendor is unknown.
9181 * python/py-record-btrace.c: Include record-btrace.h.
9182 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9183 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9184 * record-btrace.c (record_btrace_cpu_state_kind): New.
9185 (record_btrace_cpu): New.
9186 (set_record_btrace_cpu_cmdlist): New.
9187 (record_btrace_get_cpu): New.
9188 (require_btrace_thread, record_btrace_info)
9189 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9190 (cmd_set_record_btrace_cpu_none): New.
9191 (cmd_set_record_btrace_cpu_auto): New.
9192 (cmd_set_record_btrace_cpu): New.
9193 (cmd_show_record_btrace_cpu): New.
9194 (_initialize_record_btrace): Initialize set/show record btrace cpu
9195 commands.
9196 * record-btrace.h (record_btrace_get_cpu): New.
9197
9198 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9199
9200 * record.c (set_record_command): Fix typo in message.
9201
9202 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9203
9204 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9205
9206 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9207
9208 * infrun.c (process_event_stop_test): Call
9209 gdbarch_in_indirect_branch_thunk.
9210 * gdbarch.sh (in_indirect_branch_thunk): New.
9211 * gdbarch.c: Regenerated.
9212 * gdbarch.h: Regenerated.
9213 * x86-tdep.h: New.
9214 * x86-tdep.c: New.
9215 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9216 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9217 (ALLDEPFILES): Add x86-tdep.c.
9218 * arch-utils.h (default_in_indirect_branch_thunk): New.
9219 * arch-utils.c (default_in_indirect_branch_thunk): New.
9220 * i386-tdep: Include x86-tdep.h.
9221 (i386_in_indirect_branch_thunk): New.
9222 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9223 function.
9224 * amd64-tdep: Include x86-tdep.h.
9225 (amd64_in_indirect_branch_thunk): New.
9226 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9227
9228 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9229
9230 PR gdb/23053
9231 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9232 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9233 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9234 regression.
9235
9236 2018-04-12 Tom Tromey <tom@tromey.com>
9237
9238 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9239 (rust_evaluate_subexp): Likewise.
9240
9241 2018-04-12 Pedro Alves <palves@redhat.com>
9242
9243 * procfs.c (procfs_detach): Make forward declaration's prototype
9244 match definition's protototype.
9245 (proc_get_LDT_entry): Remove stale do_cleanups call.
9246
9247 2018-04-12 Pedro Alves <palves@redhat.com>
9248
9249 * target.h (target_ops::to_has_exited): Delete.
9250 (target_has_exited): Delete.
9251 * target-delegates.c: Regenerate.
9252
9253 2018-04-11 Pedro Alves <palves@redhat.com>
9254
9255 * target.c (fileio_fh_t::t): Add comment.
9256 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9257 (target_fileio_close): Handle a NULL target.
9258 (invalidate_fileio_fh): New.
9259 (target_close): Call it.
9260 * remote.c (remote_hostio_send_command): No longer check whether
9261 remote_desc is open.
9262
9263 2018-04-11 Pedro Alves <palves@redhat.com>
9264
9265 * target.c (fileio_fh_t): Make it a named struct instead of a
9266 typedef.
9267 (fileio_fh_t::is_closed): New method.
9268 (DEF_VEC_O (fileio_fh_t)): Remove.
9269 (fileio_fhandles): Now a std::vector.
9270 (is_closed_fileio_fh): Delete.
9271 (acquire_fileio_fd): Adjust. Rename parameters.
9272 (release_fileio_fd): Adjust.
9273 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9274 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9275 (target_fileio_close): Adjust.
9276
9277 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9278
9279 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9280 index.
9281
9282 2018-04-10 Pedro Alves <palves@redhat.com>
9283
9284 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9285 (scoped_finish_thread_state): New class.
9286 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9287 cleanup.
9288 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9289 (fetch_inferior_event, normal_stop): Likewise.
9290 * thread.c (finish_thread_state_cleanup): Delete.
9291
9292 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9293 Pedro Alves <palves@redhat.com>
9294
9295 * value.c: Include "selftest.h" and "common/array-view.h".
9296 (struct range) <operator ==>: New.
9297 (test_ranges_contain): New.
9298 (check_ranges_vector): New.
9299 (test_insert_into_bit_range_vector): New.
9300 (_initialize_values): Register selftests.
9301 * common/array-view.h (operator==, operator!=): New.
9302
9303 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9304
9305 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9306 an iterator.
9307 * inline-frame.c: Include <algorithm>.
9308 (struct inline_state): Add constructor.
9309 (inline_state_s): Remove.
9310 (DEF_VEC_O(inline_state_s)): Remove.
9311 (inline_states): Change type to std::vector.
9312 (find_inline_frame_state): Adjust to std::vector.
9313 (allocate_inline_frame_state): Remove.
9314 (clear_inline_frame_state): Adjust to std::vector.
9315 (skip_inline_frames): Adjust to std::vector.
9316
9317 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9318
9319 * tracepoint.h (struct trace_state_variable): Add constructor.
9320 <name>: Change type to std::string.
9321 * tracepoint.c (tsv_s): Remove.
9322 (DEF_VEC_O(tsv_s)): Remove.
9323 (tvariables): Change to std::vector.
9324 (create_trace_state_variable): Adjust to std::vector.
9325 (find_trace_state_variable): Likewise.
9326 (find_trace_state_variable_by_number): Likewise.
9327 (delete_trace_state_variable): Likewise.
9328 (trace_variable_command): Adjust to std::string.
9329 (delete_trace_variable_command): Likewise.
9330 (tvariables_info_1): Adjust to std::vector.
9331 (save_trace_state_variables): Likewise.
9332 (start_tracing): Likewise.
9333 (merge_uploaded_trace_state_variables): Adjust to std::vector
9334 and std::string.
9335 * target.h (struct target_ops)
9336 <to_download_trace_state_variable>: Pass reference to
9337 trace_state_variable.
9338 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9339 * target-delegates.c: Re-generate.
9340 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9341 (mi_tsv_deleted): Likewise.
9342 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9343 * remote.c (remote_download_trace_state_variable): Change
9344 pointer to reference and adjust.
9345 * make-target-delegates (parse_argtypes): Handle references.
9346 (write_function_header): Likewise.
9347 (munge_type): Likewise.
9348
9349 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9350
9351 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9352 string_view-selftests.c.
9353 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9354 testsuite.
9355 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9356 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9357 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9358 * unittests/basic_string_view/element_access/char/1.cc:
9359 Likewise.
9360 * unittests/basic_string_view/element_access/char/empty.cc:
9361 Likewise.
9362 * unittests/basic_string_view/element_access/char/front_back.cc:
9363 Likewise.
9364 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9365 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9366 Likewise.
9367 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9368 Likewise.
9369 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9370 Likewise.
9371 * unittests/basic_string_view/operations/compare/char/1.cc:
9372 Likewise.
9373 * unittests/basic_string_view/operations/compare/char/13650.cc:
9374 Likewise.
9375 * unittests/basic_string_view/operations/copy/char/1.cc:
9376 Likewise.
9377 * unittests/basic_string_view/operations/data/char/1.cc:
9378 Likewise.
9379 * unittests/basic_string_view/operations/find/char/1.cc:
9380 Likewise.
9381 * unittests/basic_string_view/operations/find/char/2.cc:
9382 Likewise.
9383 * unittests/basic_string_view/operations/find/char/3.cc:
9384 Likewise.
9385 * unittests/basic_string_view/operations/find/char/4.cc:
9386 Likewise.
9387 * unittests/basic_string_view/operations/rfind/char/1.cc:
9388 Likewise.
9389 * unittests/basic_string_view/operations/rfind/char/2.cc:
9390 Likewise.
9391 * unittests/basic_string_view/operations/rfind/char/3.cc:
9392 Likewise.
9393 * unittests/basic_string_view/operations/substr/char/1.cc:
9394 Likewise.
9395 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9396 * unittests/string_view-selftests.c: New file.
9397
9398 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9399
9400 * unittests/basic_string_view/capacity/1.cc: New file.
9401 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9402 * unittests/basic_string_view/cons/char/1.cc: New file.
9403 * unittests/basic_string_view/cons/char/2.cc: New file.
9404 * unittests/basic_string_view/cons/char/3.cc: New file.
9405 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9406 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9407 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9408 * unittests/basic_string_view/element_access/char/1.cc: New file.
9409 * unittests/basic_string_view/element_access/char/2.cc: New file.
9410 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9411 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9412 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9413 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9414 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9415 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9416 * unittests/basic_string_view/include.cc: New file.
9417 * unittests/basic_string_view/inserters/char/1.cc: New file.
9418 * unittests/basic_string_view/inserters/char/2.cc: New file.
9419 * unittests/basic_string_view/inserters/char/3.cc: New file.
9420 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9421 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9422 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9423 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9424 * unittests/basic_string_view/literals/types.cc: New file.
9425 * unittests/basic_string_view/literals/values.cc: New file.
9426 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9427 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9428 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9429 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9430 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9431 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9432 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9433 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9434 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9435 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9436 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9437 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9438 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9439 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9440 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9441 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9442 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9443 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9444 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9445 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9446 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9447 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9448 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9449 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9450 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9451 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9452 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9453 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9454 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9455 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9456 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9457 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9458 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9459 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9460 * unittests/basic_string_view/operators/char/2.cc: New file.
9461 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9462 * unittests/basic_string_view/range_access/char/1.cc: New file.
9463 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9464 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9465 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9466 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9467 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9468 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9469 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9470 * unittests/basic_string_view/typedefs.cc: New file.
9471 * unittests/basic_string_view/types/1.cc: New file.
9472
9473 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9474
9475 * common/gdb_string_view.h: Remove libstdc++ implementation
9476 details, adjust to gdb reality.
9477 * common/gdb_string_view.tcc: Likewise.
9478 * cli/cli-script.c (struct string_view): Remove.
9479 (user_args) <m_args>: Change element type to gdb::string_view.
9480 (user_args::insert_args): Adjust.
9481
9482 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9483
9484 * common/gdb_string_view.h: New file.
9485 * common/gdb_string_view.tcc: New file.
9486
9487 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9488
9489 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9490 * configure: Re-generate.
9491
9492 2018-04-09 Pedro Alves <palves@redhat.com>
9493
9494 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9495 (set_target_gdbarch): Call
9496 gdb::observers::architecture_changed.notify instead of
9497 observer_notify_architecture_changed.
9498
9499 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9500
9501 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9502 (do_restore_current_traceframe_cleanup): Remove.
9503 (restore_current_traceframe_cleanup_dtor): Remove.
9504 (make_cleanup_restore_current_traceframe): Remove.
9505 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9506 New.
9507 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9508 * infrun.c (fetch_inferior_event): Use
9509 scoped_restore_current_traceframe.
9510
9511 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9512
9513 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9514 Remove.
9515 <n_allocated_type_units>: Remove.
9516 <all_type_units>: Change to std::vector.
9517 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9518 to std::vector change.
9519 (dwarf2_per_objfile::get_cutu): Likewise.
9520 (dwarf2_per_objfile::get_tu): Likewise.
9521 (create_signatured_type_table_from_index): Likewise.
9522 (create_signatured_type_table_from_debug_names): Likewise.
9523 (dw2_symtab_iter_next): Likewise.
9524 (dw2_print_stats): Likewise.
9525 (dw2_expand_all_symtabs): Likewise.
9526 (dw2_expand_marked_cus): Likewise.
9527 (dw2_debug_names_iterator::next): Likewise.
9528 (dwarf2_initialize_objfile): Likewise.
9529 (add_signatured_type_cu_to_table): Likewise.
9530 (create_all_type_units): Likewise.
9531 (add_type_unit): Likewise.
9532 (struct tu_abbrev_offset): Add constructor.
9533 (build_type_psymtabs_1): Adjust to std::vector change.
9534 (print_tu_stats): Likewise.
9535 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9536 (write_debug_names): Likewise.
9537
9538 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9539
9540 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9541 Make an std::vector.
9542 <n_comp_units>: Remove.
9543 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9544 to std::vector change.
9545 (dwarf2_per_objfile::get_cutu): Likewise.
9546 (dwarf2_per_objfile::get_cu): Likewise.
9547 (create_cus_from_index): Likewise.
9548 (create_addrmap_from_index): Likewise.
9549 (create_addrmap_from_aranges): Likewise.
9550 (dwarf2_read_index): Likewise.
9551 (dw2_find_last_source_symtab): Likewise.
9552 (dw2_map_symtabs_matching_filename): Likewise.
9553 (dw2_symtab_iter_next): Likewise.
9554 (dw2_print_stats): Likewise.
9555 (dw2_expand_all_symtabs): Likewise.
9556 (dw2_expand_symtabs_with_fullname): Likewise.
9557 (dw2_expand_marked_cus): Likewise.
9558 (dw2_map_symbol_filenames): Likewise.
9559 (create_cus_from_debug_names): Likewise.
9560 (dwarf2_read_debug_names): Likewise.
9561 (dw2_debug_names_iterator::next): Likewise.
9562 (dwarf2_initialize_objfile): Likewise.
9563 (set_partial_user): Likewise.
9564 (dwarf2_build_psymtabs_hard): Likewise.
9565 (read_comp_units_from_section): Remove arguments, adjust to
9566 std::vector change.
9567 (create_all_comp_units): Adjust to std::vector and
9568 read_comp_units_from_section changes.
9569 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9570 change.
9571 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9572 (psyms_seen_size): Likewise.
9573 (write_gdbindex): Likewise.
9574 (write_debug_names): Likewise.
9575
9576 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9577
9578 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9579 with dwarf2_per_objfile.
9580 (create_cus_from_index): Likewise.
9581 (create_signatured_type_table_from_index): Likewise.
9582 (dwarf2_read_index): Likewise.
9583 (dwarf2_initialize_objfile): Likewise.
9584 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9585 per_cu rather than get_dwarf2_per_objfile.
9586
9587 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9588
9589 * dwarf2read.h (struct signatured_type): Forward declare.
9590 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9591 New methods.
9592 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9593 (dw2_get_cutu): ...this.
9594 (dwarf2_per_objfile::get_cu): Rename from...
9595 (dw2_get_cu): ...this.
9596 (dwarf2_per_objfile::get_tu): New.
9597 (create_addrmap_from_index): Adjust.
9598 (create_addrmap_from_aranges): Adjust.
9599 (dw2_find_last_source_symtab): Adjust.
9600 (dw2_map_symtabs_matching_filename): Adjust.
9601 (dw2_symtab_iter_next): Adjust.
9602 (dw2_print_stats): Adjust.
9603 (dw2_expand_all_symtabs): Adjust.
9604 (dw2_expand_symtabs_with_fullname): Adjust.
9605 (dw2_expand_marked_cus): Adjust.
9606 (dw_expand_symtabs_matching_file_matcher): Adjust.
9607 (dw2_map_symbol_filenames): Adjust.
9608 (dw2_debug_names_iterator::next): Adjust.
9609 (dwarf2_initialize_objfile): Adjust.
9610 (set_partial_user): Adjust.
9611 (dwarf2_build_psymtabs_hard): Adjust.
9612
9613 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9614
9615 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9616 Remove unused variables.
9617 (dw2_map_symtabs_matching_filename): Likewise.
9618 (dwarf2_record_block_ranges): Likewise.
9619 (dwarf2_read_addr_index): Likewise.
9620 (follow_die_offset): Likewise.
9621
9622 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9623
9624 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9625 to symbol_file_add_main.
9626
9627 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9628
9629 PR mi/22299
9630 * mi/mi-console.c (do_fputc_async_safe): New.
9631 (mi_console_file::write_async_safe): New.
9632 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9633 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9634 New.
9635 * ui-file.c (ui_file::putstrn): Adjust call to
9636 fputstrn_unfiltered.
9637 * utils.c (printchar): Replace do_fputs and do_fprintf
9638 parameters by do_fputc.
9639 (fputstr_filtered): Adjust call to printchar.
9640 (fputstr_unfiltered): Likewise.
9641 (fputstrn_filtered): Likewise.
9642 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9643 printchar.
9644 * utils.h (do_fputc_ftype): New typedef.
9645 (fputstrn_unfiltered): Add do_fputc parameter.
9646
9647 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9648
9649 * regformats/i386/i386-avx.dat: Remove.
9650
9651 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9652
9653 PR gdb/22979
9654 * amd64-tdep.c (amd64_none_init_abi): New function.
9655 (amd64_x32_none_init_abi): New function.
9656 (_initialize_amd64_tdep): Register handlers for x86-64 and
9657 x64_32 with GDB_OSABI_NONE.
9658 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9659 GDB_OSABI_NONE osabi.
9660
9661 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9662
9663 PR gdb/22980
9664 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9665 GDB_OSABI_NONE.
9666 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9667 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9668
9669 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9670
9671 * common/byte-vector.h (char_vector): New type.
9672 * target.h (target_read_alloc): Return
9673 gdb::optional<byte_vector>.
9674 (target_read_stralloc): Return gdb::optional<char_vector>.
9675 (target_get_osdata): Return gdb::optional<char_vector>.
9676 * target.c (target_read_alloc_1): Templatize. Replacement
9677 manual memory management with vector.
9678 (target_read_alloc): Change return type, adjust.
9679 (target_read_stralloc): Change return type, adjust.
9680 (target_get_osdata): Change return type, adjust.
9681 * auxv.c (struct auxv_info) <length>: Remove.
9682 <data>: Change type to gdb::optional<byte_vector>.
9683 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9684 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9685 (target_auxv_search): Adjust.
9686 (fprint_target_auxv): Adjust.
9687 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9688 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9689 (linux_make_corefile_notes): Adjust.
9690 * osdata.c (get_osdata): Adjust.
9691 * remote.c (remote_get_threads_with_qxfer): Adjust.
9692 (remote_memory_map): Adjust.
9693 (remote_traceframe_info): Adjust.
9694 (btrace_read_config): Adjust.
9695 (remote_read_btrace): Adjust.
9696 (remote_pid_to_exec_file): Adjust.
9697 * solib-aix.c (solib_aix_get_library_list): Adjust.
9698 * solib-dsbt.c (decode_loadmap): Don't free buf.
9699 (dsbt_get_initial_loadmaps): Adjust.
9700 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9701 * solib-target.c (solib_target_current_sos): Adjust.
9702 * tracepoint.c (sdata_make_value): Adjust.
9703 * xml-support.c (xinclude_start_include): Adjust.
9704 (xml_fetch_content_from_file): Adjust.
9705 * xml-support.h (xml_fetch_another): Change return type.
9706 (xml_fetch_content_from_file): Change return type.
9707 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9708 * xml-tdesc.c (file_read_description_xml): Adjust.
9709 (fetch_available_features_from_target): Change return type.
9710 (target_fetch_description_xml): Adjust.
9711 (target_read_description_xml): Adjust.
9712
9713 2018-04-06 Tom Tromey <tom@tromey.com>
9714
9715 * value.c (~value): Update.
9716 (struct value) <contents>: Now unique_xmalloc_ptr.
9717 (value_contents_bits_eq, allocate_value_contents)
9718 (value_contents_raw, value_contents_all_raw)
9719 (value_contents_for_printing, value_contents_for_printing_const)
9720 (set_value_enclosing_type): Update.
9721
9722 2018-04-06 Tom Tromey <tom@tromey.com>
9723
9724 * value.c (range_s): Remove typedef, VEC.
9725 (struct range): Add operator<.
9726 (range_lessthan): Remove.
9727 (ranges_contain): Change type.
9728 (~value): Update.
9729 (struct value) <unavailable, optimized_out>: Now std::vector.
9730 (value_entirely_available)
9731 (value_entirely_covered_by_range_vector)
9732 (value_entirely_unavailable, value_entirely_optimized_out):
9733 Update.
9734 (insert_into_bit_range_vector): Change argument type.
9735 (find_first_range_overlap): Likewise.
9736 (struct ranges_and_idx, value_contents_bits_eq)
9737 (require_not_optimized_out, require_available): Update.
9738 (ranges_copy_adjusted): Change argument types.
9739 (value_optimized_out, value_copy, value_fetch_lazy): Update.
9740
9741 2018-04-06 Tom Tromey <tom@tromey.com>
9742
9743 * value.c (~value): Update.
9744 (struct value) <parent>: Now a value_ref_ptr.
9745 (value_parent, set_value_parent, value_address, value_copy):
9746 Update.
9747
9748 2018-04-06 Tom Tromey <tom@tromey.com>
9749
9750 * value.c (struct value): Add constructor, destructor, and member
9751 initializers.
9752 (allocate_value_lazy, value_decref): Update.
9753
9754 2018-04-06 Tom Tromey <tom@tromey.com>
9755
9756 * value.c (struct value) <released, next>: Remove.
9757 (all_values): Now a std::vector.
9758 (allocate_value_lazy): Update.
9759 (value_next): Remove.
9760 (value_mark, value_free_to_mark, release_value)
9761 (value_release_to_mark): Update.
9762
9763 2018-04-06 Tom Tromey <tom@tromey.com>
9764
9765 * value.h (fetch_subexp_value, value_release_to_mark): Update.
9766 (free_value_chain): Remove.
9767 * value.c (free_value_chain): Remove.
9768 (value_release_to_mark): Return a std::vector.
9769 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9770 std::vector.
9771 (check_condition): Update.
9772 * eval.c (fetch_subexp_value): Change "val_chain" to a
9773 std::vector.
9774 * breakpoint.c (update_watchpoint): Update.
9775 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9776
9777 2018-04-06 Tom Tromey <tom@tromey.com>
9778
9779 * value.h (free_all_values): Remove.
9780 * value.c (free_all_values): Remove.
9781
9782 2018-04-06 Tom Tromey <tom@tromey.com>
9783
9784 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9785 (value_history_chain, value_history_count): Remove.
9786 (value_history): New global.
9787 (record_latest_value, access_value_history, show_values)
9788 (preserve_values): Update.
9789
9790 2018-04-06 Tom Tromey <tom@tromey.com>
9791
9792 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9793 * varobj.c (varobj_set_display_format, varobj_set_value)
9794 (install_default_visualizer, construct_visualizer)
9795 (install_new_value, ~varobj, varobj_get_value_type)
9796 (my_value_of_variable, varobj_editable_p): Update.
9797 * c-varobj.c (c_describe_child, c_value_of_variable)
9798 (cplus_number_of_children, cplus_describe_child): Update.
9799 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9800 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9801 (ada_value_of_variable, ada_value_is_changeable_p): Update.
9802
9803 2018-04-06 Tom Tromey <tom@tromey.com>
9804
9805 * printcmd.c (last_examine_address): Change type to
9806 value_ref_ptr.
9807 (do_examine, x_command): Update.
9808
9809 2018-04-06 Tom Tromey <tom@tromey.com>
9810
9811 * value.c (release_value): Update.
9812 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9813 (struct bpstats) <val>: Now a value_ref_ptr.
9814 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9815 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9816 (~watchpoint, print_it_watchpoint, watch_command_1)
9817 (invalidate_bp_value_on_memory_change): Update.
9818
9819 2018-04-06 Tom Tromey <tom@tromey.com>
9820
9821 * varobj.c (varobj_clear_saved_item)
9822 (update_dynamic_varobj_children, install_new_value, ~varobj):
9823 Update.
9824 * value.h (value_incref): Move declaration earlier.
9825 (value_decref): Rename from value_free.
9826 (struct value_ref_policy): New.
9827 (value_ref_ptr): New typedef.
9828 (struct value_deleter): Remove.
9829 (gdb_value_up): Remove typedef.
9830 (release_value): Change return type.
9831 (release_value_or_incref): Remove.
9832 * value.c (set_value_parent): Update.
9833 (value_incref): Change return type.
9834 (value_decref): Rename from value_free.
9835 (value_free_to_mark, free_all_values, free_value_chain): Update.
9836 (release_value): Return value_ref_ptr.
9837 (release_value_or_incref): Remove.
9838 (record_latest_value, set_internalvar, clear_internalvar):
9839 Update.
9840 * stack.c (info_frame_command): Don't call value_free.
9841 * python/py-value.c (valpy_dealloc, valpy_new)
9842 (value_to_value_object): Update.
9843 * printcmd.c (do_examine): Update.
9844 * opencl-lang.c (lval_func_free_closure): Update.
9845 * mi/mi-main.c (register_changed_p): Don't call value_free.
9846 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9847 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9848 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9849 value_free.
9850 * guile/scm-value.c (vlscm_free_value_smob)
9851 (vlscm_scm_from_value): Update.
9852 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9853 (frame_unwind_register_unsigned, get_frame_register_bytes)
9854 (put_frame_register_bytes): Don't call value_free.
9855 * findvar.c (address_from_register): Don't call value_free.
9856 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9857 * dwarf2loc.c (entry_data_value_free_closure)
9858 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9859 (dwarf2_evaluate_loc_desc_full): Update.
9860 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9861 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9862 (~watchpoint, watch_command_1)
9863 (invalidate_bp_value_on_memory_change): Update.
9864 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9865
9866 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9867
9868 PR gdb/23022
9869 * warning.m4: Add -Wno-error=deprecated-register.
9870 * configure: Re-generate.
9871
9872 2018-04-05 Tom Tromey <tom@tromey.com>
9873
9874 * linespec.h: Remove include of "vec.h".
9875
9876 2018-04-05 Tom Tromey <tom@tromey.com>
9877
9878 * linespec.c (typep): Remove typedef.
9879 (find_methods, find_superclass_methods): Take a std::vector.
9880 (find_method): Use std::vector.
9881
9882 2018-04-05 Tom Tromey <tom@tromey.com>
9883
9884 * utils.c (compare_strings): Remove.
9885 * utils.h (compare_strings): Remove.
9886 * objc-lang.h (find_imps): Update.
9887 * objc-lang.c (find_methods): Take a std::vector.
9888 (uniquify_strings, find_imps): Likewise.
9889 * linespec.c (find_methods): Take a std::vector.
9890 (decode_objc): Use std::vector.
9891 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9892 a std::vector.
9893 (find_method, find_function_symbols): Use std::vector.
9894
9895 2018-04-05 Tom Tromey <tom@tromey.com>
9896
9897 * completer.c (completion_tracker::completion_tracker): Remove
9898 cast.
9899 (completion_tracker::discard_completions): Likewise.
9900 * breakpoint.c (ambiguous_names_p): Remove cast.
9901 * ada-lang.c (_initialize_ada_language): Remove cast.
9902 * utils.h (streq): Update.
9903 (streq_hash): Add new declaration.
9904 * utils.c (streq): Return bool.
9905 (streq_hash): New function.
9906
9907 2018-04-05 Tom Tromey <tom@tromey.com>
9908
9909 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9910 Remove a string copy.
9911
9912 2018-04-05 Tom Tromey <tom@tromey.com>
9913
9914 * linespec.c (filter_results): Use std::vector.
9915 (decode_line_2, decode_line_full): Update.
9916
9917 2018-04-05 Tom Tromey <tom@tromey.com>
9918
9919 * linespec.c (canonical_to_fullform): Return std::string.
9920 (filter_results): Update.
9921 (struct decode_line_2_item): Add constructor.
9922 <fullform, displayform>: Now std::string.
9923 (decode_line_2_compare_items): Now a std::sort comparator.
9924 (decode_line_2): Update.
9925
9926 2018-04-05 Tom Tromey <tom@tromey.com>
9927
9928 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9929 (unexpected_linespec_error): Update.
9930 (linespec_parse_basic, parse_linespec): Update.
9931
9932 2018-04-05 Tom Tromey <tom@tromey.com>
9933
9934 * linespec.c (linespec_parse_basic): Reindent.
9935
9936 2018-04-05 Tom Tromey <tom@tromey.com>
9937
9938 * minsyms.h (iterate_over_minimal_symbols): Update.
9939 * minsyms.c (iterate_over_minimal_symbols): Take a
9940 gdb::function_view.
9941 * linespec.c (struct collect_minsyms): Remove.
9942 (compare_msyms): Now a std::sort comparator.
9943 (add_minsym): Add parameters.
9944 (search_minsyms_for_name): Update. Use std::vector.
9945
9946 2018-04-03 Tom Tromey <tom@tromey.com>
9947
9948 * mipsread.c (read_alphacoff_dynamic_symtab): Use
9949 gdb::byte_vector.
9950
9951 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9952
9953 * MAINTAINERS (Write After Approval): Add Weimin Pan.
9954
9955 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9956
9957 PR gdb/16959
9958 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
9959 printing static type.
9960
9961 2018-04-01 Tom Tromey <tom@tromey.com>
9962
9963 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
9964 (rs6000_xfer_shared_libraries): Update.
9965
9966 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9967
9968 * common/gdb_vecs.h (char_ptr): Remove.
9969 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
9970
9971 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9972
9973 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
9974 with std::vector.
9975 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
9976
9977 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9978
9979 * tracepoint.h (struct uploaded_tp): Initialize fields.
9980 <actions, step_actions, cmd_strings>: Change type to
9981 std::vector<char *>.
9982 * tracepoint.c (get_uploaded_tp): Allocate with new.
9983 (free_uploaded_tps): Free with delete.
9984 (parse_tracepoint_definition): Adjust to std::vector change.
9985 * breakpoint.c (read_uploaded_action): Likewise.
9986 (create_tracepoint_from_upload): Likewise.
9987 * ctf.c (ctf_write_uploaded_tp): Likewise.
9988 (SET_ARRAY_FIELD): Likewise.
9989 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
9990
9991 2018-03-30 Tom Tromey <tom@tromey.com>
9992
9993 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
9994 std::unique_ptr.
9995 (svr4_keep_data_in_core): Update.
9996 (svr4_read_so_list): Update.
9997
9998 2018-03-30 Tom Tromey <tom@tromey.com>
9999
10000 * windows-nat.c (handle_output_debug_string, handle_exception):
10001 Update.
10002 * target.h (target_read_string): Update.
10003 * target.c (target_read_string): Change "string" to
10004 unique_xmalloc_ptr.
10005 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10006 Update.
10007 * solib-frv.c (frv_current_sos): Update.
10008 * solib-dsbt.c (dsbt_current_sos): Update.
10009 * solib-darwin.c (darwin_current_sos): Update.
10010 * linux-thread-db.c (inferior_has_bug): Update.
10011 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10012 Update. Remove alloca.
10013 * ada-lang.c (ada_main_name): Update.
10014
10015 2018-03-30 Tom Tromey <tom@tromey.com>
10016
10017 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10018 (struct dwo_file_deleter): New.
10019 (dwo_file_up): New typedef.
10020 (open_and_init_dwo_file): Use dwo_file_up.
10021 (free_dwo_file_cleanup): Remove.
10022
10023 2018-03-30 Tom Tromey <tom@tromey.com>
10024
10025 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10026 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10027
10028 2018-03-30 Tom Tromey <tom@tromey.com>
10029
10030 * dwarf2read.c (class free_cached_comp_units): New class.
10031 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10032 (free_cached_comp_units): Remove function.
10033
10034 2018-03-30 Tom Tromey <tom@tromey.com>
10035
10036 * utils.h (make_cleanup_unpush_target): Remove.
10037 * inf-ptrace.c (struct target_unpusher): New.
10038 (target_unpush_up) New typedef.
10039 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10040 target_unpush_up.
10041 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10042
10043 2018-03-27 Tom Tromey <tom@tromey.com>
10044
10045 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10046
10047 2018-03-27 Pedro Alves <palves@redhat.com>
10048 Tom Tromey <tom@tromey.com>
10049
10050 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10051 destructor. Now a class.
10052 (gdb_readline_wrapper_cleanup): Remove function.
10053 (gdb_readline_wrapper): Remove cleanups.
10054
10055 2018-03-27 Tom Tromey <tom@tromey.com>
10056
10057 * typeprint.h (struct type_print_options) <local_typedefs,
10058 global_typedefs>: Remove "struct" keyword.
10059 (class typedef_hash_table): New class.
10060 (recursively_update_typedef_hash, add_template_parameters)
10061 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10062 (find_typedef_in_hash): Don't declare.
10063 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10064 (typedef_hash_table::recursively_update): Rename from
10065 recursively_update_typedef_hash. Now a member.
10066 (typedef_hash_table::add_template_parameters): Rename from
10067 add_template_parameters. Now a member.
10068 (typedef_hash_table::typedef_hash_table): Now a constructor;
10069 rename from create_typedef_hash.
10070 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10071 rename from free_typedef_hash.
10072 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10073 (do_free_global_table): Remove.
10074 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10075 from copy_type_recursive.
10076 (create_global_typedef_table): Remove.
10077 (typedef_hash_table::find_global_typedef): Now a member of
10078 typedef_hash_table.
10079 (typedef_hash_table::find_typedef): Rename from
10080 find_typedef_in_hash; now a member.
10081 (whatis_exp): Update.
10082 * extension.h (struct ext_lang_type_printers): Add constructor and
10083 destructor.
10084 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10085 declare.
10086 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10087 Now a constructor; rename from start_ext_lang_type_printers.
10088 (ext_lang_type_printers): Now a destructor; rename from
10089 free_ext_lang_type_printers.
10090 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10091 Update.
10092 (c_type_print_base_struct_union): Update. Remove cleanups.
10093
10094 2018-03-27 Tom Tromey <tom@tromey.com>
10095
10096 * dwarf-index-write.c: Include <cmath>.
10097
10098 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10099
10100 * NEWS: Add entry describing new "set|show varsize-limit" command.
10101 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10102 command.
10103 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10104 "set variable".
10105
10106 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10107
10108 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10109 dwarf-index-write.c
10110 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10111 * dwarf-index-common.c: New file.
10112 * dwarf-index-common.h: New file.
10113 * dwarf-index-write.c: New file.
10114 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10115 (struct dwarf2_section_info): Move from here.
10116 (dwarf2_section_info_def): Likewise.
10117 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10118 (offset_type): Likewise.
10119 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10120 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10121 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10122 (byte_swap): Likewise.
10123 (MAYBE_SWAP): Likewise.
10124 (dwarf2_per_cu_ptr): Likewise.
10125 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10126 (struct tu_stats): Likewise.
10127 (struct dwarf2_per_objfile): Likewise.
10128 (struct dwarf2_per_cu_data): Likewise.
10129 (struct signatured_type): Likewise.
10130 (sig_type_ptr): Likewise.
10131 (DEF_VEC_P (sig_type_ptr)): Likewise.
10132 (INDEX4_SUFFIX): Likewise.
10133 (INDEX5_SUFFIX): Likewise.
10134 (DEBUG_STR_SUFFIX): Likewise.
10135 (dwarf2_read_section): Make non-static.
10136 (mapped_index_string_hash): Move from here.
10137 (dwarf5_djb_hash): Likewise.
10138 (file_write): Likewise.
10139 (class data_buf): Likewise.
10140 (struct symtab_index_entry): Likewise.
10141 (struct mapped_symtab): Likewise.
10142 (find_slot): Likewise.
10143 (hash_expand): Likewise.
10144 (add_index_entry): Likewise.
10145 (uniquify_cu_indices): Likewise.
10146 (class c_str_view): Likewise.
10147 (class c_str_view_hasher): Likewise.
10148 (class vector_hasher): Likewise.
10149 (write_hash_table): Likewise.
10150 (psym_index_map): Likewise.
10151 (struct addrmap_index_data): Likewise.
10152 (add_address_entry): Likewise.
10153 (add_address_entry_worker): Likewise.
10154 (write_address_map): Likewise.
10155 (symbol_kind): Likewise.
10156 (write_psymbols): Likewise.
10157 (struct signatured_type_index_data): Likewise.
10158 (write_one_signatured_type): Likewise.
10159 (recursively_count_psymbols): Likewise.
10160 (recursively_write_psymbols): Likewise.
10161 (class debug_names): Likewise.
10162 (check_dwarf64_offsets): Likewise.
10163 (psyms_seen_size): Likewise.
10164 (write_gdbindex): Likewise.
10165 (write_debug_names): Likewise.
10166 (assert_file_size): Likewise.
10167 (write_psymtabs_to_index): Likewise.
10168 (save_gdb_index_command): Likewise.
10169 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10170 command.
10171 * dwarf2read.h: New file.
10172
10173 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10174
10175 PR gdb/22670
10176 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10177 symbol name if the CU's language stores symbol names in linkage
10178 format.
10179 * language.h (struct language_defn)
10180 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10181 all instances of this struct.
10182
10183 2018-03-26 Tom Tromey <tom@tromey.com>
10184
10185 * stack.c (backtrace_command_1): Remove verbose code.
10186
10187 2018-03-26 Tom Tromey <tom@tromey.com>
10188
10189 * python/py-framefilter.c (py_print_type): Don't catch
10190 exceptions. Return void.
10191 (py_print_value): Likewise.
10192 (py_print_single_arg): Likewise.
10193 (enumerate_args): Don't catch exceptions.
10194 (py_print_args): Likewise.
10195 (py_print_frame): Likewise.
10196 (gdbpy_apply_frame_filter): Catch exceptions here.
10197
10198 2018-03-26 Tom Tromey <tom@tromey.com>
10199
10200 * stack.c (_initialize_stack): Remove trailing newlines from help
10201 text. Add "Usage" line to "backtrace" help.
10202
10203 2018-03-26 Tom Tromey <tom@tromey.com>
10204
10205 PR python/16486:
10206 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10207
10208 2018-03-26 Tom Tromey <tom@tromey.com>
10209
10210 * python/py-framefilter.c (py_print_single_arg): Return
10211 EXT_LANG_BT_ERROR from catch.
10212
10213 2018-03-26 Tom Tromey <tom@tromey.com>
10214
10215 PR backtrace/15584:
10216 * stack.c (backtrace_command_1): Move some code into no-filters
10217 "if".
10218
10219 2018-03-26 Tom Tromey <tom@tromey.com>
10220
10221 * python/py-framefilter.c (throw_quit_or_print_exception): New
10222 function.
10223 (gdbpy_apply_frame_filter): Use it.
10224
10225 2018-03-26 Tom Tromey <tom@tromey.com>
10226
10227 PR cli/17716:
10228 * python/py-framefilter.c (py_print_type, py_print_value)
10229 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10230 RETURN_MASK_ERROR.
10231
10232 2018-03-26 Tom Tromey <tom@tromey.com>
10233
10234 * python/py-framefilter.c (enumerate_args): Use
10235 gdb::unique_xmalloc_ptr.
10236
10237 2018-03-26 Tom Tromey <tom@tromey.com>
10238
10239 * python/py-framefilter.c (py_print_frame): Return
10240 EXT_LANG_BT_OK.
10241 (gdbpy_apply_frame_filter): Update comment.
10242 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10243 Remove.
10244 <EXT_LANG_BT_NO_FILTERS>: Change value.
10245
10246 2018-03-26 Tom Tromey <tom@tromey.com>
10247
10248 PR backtrace/15582:
10249 * stack.c (backtrace_command): Parse "hide" argument.
10250 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10251 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10252 constant.
10253
10254 2018-03-26 Tom Tromey <tom@tromey.com>
10255
10256 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10257 add "flags".
10258 (backtrace_command): Remove "fulltrace", add "flags".
10259
10260 2018-03-26 Tom Tromey <tom@tromey.com>
10261
10262 * stack.c (backtrace_command): Rewrite command line parsing.
10263
10264 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10265
10266 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10267
10268 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10269
10270 * filename-seen-cache.h: Add include guard.
10271
10272 2018-03-26 Keith Seitz <keiths@redhat.com>
10273
10274 * symfile.c (place_section): Remove "struct" from section_addr_info
10275 in comment.
10276 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10277 "struct" keyword from section_addr_info.
10278
10279 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10280
10281 * regformats/regdef.h (reg): Add constructors.
10282
10283 2018-03-25 Pedro Alves <palves@redhat.com>
10284
10285 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10286 if then/else bodies in var_func_name extraction.
10287
10288 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10289
10290 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10291 lookup_minimal_symbol() to find symbol entry.
10292 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10293
10294 2018-03-23 Keith Seitz <keiths@redhat.com>
10295
10296 PR c++/22968
10297 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10298 nested type definitions for C++, too.
10299
10300 2018-03-23 Tom Tromey <tom@tromey.com>
10301
10302 * machoread.c (struct oso_el): Add a constructor. Don't define as
10303 a typedef.
10304 (macho_register_oso): Remove.
10305 (macho_symtab_read): Take a std::vector.
10306 (oso_el_compare_name): Now a std::sort comparator.
10307 (macho_symfile_read_all_oso): Take a std::vector.
10308 (macho_symfile_read): Use std::vector. Remove cleanups.
10309
10310 2018-03-22 Tom Tromey <tom@tromey.com>
10311
10312 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10313 (record_full_goto_bookmark): Use std::string.
10314
10315 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10316
10317 PR tdep/18295
10318 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10319 a single mask.
10320
10321 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10322
10323 * rs6000-tdep.c (store_insn_p): New function.
10324 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10325 and cr_reg to their unshifted values. Use store_insn_p to
10326 match LR saves using either R1 or fdata->alloca_reg. Use
10327 store_insn_p to match CR saves. Set alloca_reg_offset
10328 when alloca_reg and framep are set. Remove lr_reg shift
10329 when assigning to fdata->lr_register.
10330
10331 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10332
10333 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10334 command line args instead of emitting a warning.
10335
10336 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10337
10338 * tracepoint.h (struct static_tracepoint_marker): Initialize
10339 fields, define default constructor, move constructor and move
10340 assignment, disable the rest.
10341 <str_id, extra>: Make std::string.
10342 (release_static_tracepoint_marker): Remove.
10343 (free_current_marker): Remove.
10344 * tracepoint.c (free_current_marker): Remove.
10345 (parse_static_tracepoint_marker_definition): Adjust to
10346 std::string, use new hex2str overload.
10347 (release_static_tracepoint_marker): Remove.
10348 (print_one_static_tracepoint_marker): Get marker by reference
10349 and adjust to std::string.
10350 (info_static_tracepoint_markers_command): Adjust to std::vector
10351 changes
10352 * target.h (static_tracepoint_marker_p): Remove typedef.
10353 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10354 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10355 bool.
10356 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10357 * target-debug.h
10358 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10359 (target_debug_print_std_vector_static_tracepoint_marker): New.
10360 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10361 to...
10362 (target_debug_print_static_tracepoint_marker_p): ... this.
10363 * target-delegates.c: Re-generate.
10364 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10365 Make std::string.
10366 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10367 (decode_static_tracepoint_spec): Adjust to std::vector.
10368 (tracepoint_print_one_detail): Adjust to std::string.
10369 (strace_marker_decode_location): Adjust to std::string.
10370 (update_static_tracepoint): Adjust to std::string, remove call
10371 to release_static_tracepoint_marker.
10372 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10373 Adjust to std::vector.
10374 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10375 (remote_static_tracepoint_markers_by_strid): Adjust to
10376 std::vector.
10377 * common/rsp-low.h (hex2str): New overload with explicit count
10378 of bytes.
10379 * common/rsp-low.c (hex2str): New overload with explicit count
10380 of bytes.
10381 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10382 (_initialize_rsp_low_selftests): Add test_hex2str test.
10383 * unittests/tracepoint-selftests.c
10384 (test_parse_static_tracepoint_marker_definition): Adjust to
10385 std::string.
10386
10387 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10388
10389 * tracepoint.c (parse_static_tracepoint_marker_definition):
10390 Consider case where the definition is followed by more
10391 definitions.
10392 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10393 tracepoint-selftests.c.
10394 * unittests/tracepoint-selftests.c: New.
10395
10396 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10397
10398 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10399 Carvalho.
10400
10401 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10402
10403 * symtab.c (find_pc_sect_line): fixed indentation.
10404
10405 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10406
10407 * symtab.c (find_pc_sect_line): now uses binary search.
10408
10409 2018-03-19 Tom Tromey <tom@tromey.com>
10410
10411 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10412 "IDENT" production.
10413
10414 2018-03-19 Pedro Alves <palves@redhat.com>
10415 Tom Tromey <tom@tromey.com>
10416
10417 * unittests/observable-selftests.c: New file.
10418 * common/observable.h: New file.
10419 * observable.h: New file.
10420 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10421 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10422 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10423 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10424 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10425 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10426 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10427 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10428 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10429 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10430 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10431 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10432 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10433 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10434 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10435 tui/tui-interp.c, valops.c: Update all users.
10436 * tui/tui-hooks.c (tui_bp_created_observer)
10437 (tui_bp_deleted_observer, tui_bp_modified_observer)
10438 (tui_inferior_exit_observer, tui_before_prompt_observer)
10439 (tui_normal_stop_observer, tui_register_changed_observer):
10440 Remove.
10441 (tui_observers_token): New global.
10442 (attach_or_detach, tui_attach_detach_observers): New functions.
10443 (tui_install_hooks, tui_remove_hooks): Use
10444 tui_attach_detach_observers.
10445 * record-btrace.c (record_btrace_thread_observer): Remove.
10446 (record_btrace_thread_observer_token): New global.
10447 * observer.sh: Remove.
10448 * observer.c: Rename to observable.c.
10449 * observable.c (namespace gdb_observers): Define new objects.
10450 (observer_debug): Move into gdb_observers namespace.
10451 (struct observer, struct observer_list, xalloc_observer_list_node)
10452 (xfree_observer_list_node, generic_observer_attach)
10453 (generic_observer_detach, generic_observer_notify): Remove.
10454 (_initialize_observer): Update.
10455 Don't include observer.inc.
10456 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10457 (clean mostlyclean): Likewise.
10458 (observer.h, observer.inc): Remove targets.
10459 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10460 (COMMON_SFILES): Use observable.c, not observer.c.
10461 * .gitignore: Remove observer.h.
10462
10463 2018-03-18 Tom Tromey <tom@tromey.com>
10464
10465 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10466 gdb::def_vector.
10467 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10468
10469 2018-03-17 Tom Tromey <tom@tromey.com>
10470
10471 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10472
10473 2018-03-17 Tom Tromey <tom@tromey.com>
10474
10475 * target.c (class scoped_target_fd): New.
10476 (target_fileio_close_cleanup): Remove.
10477 (target_fileio_read_alloc_1): Use scoped_target_fd.
10478
10479 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10480
10481 * silent-rules.mk: New.
10482 * Makefile.in: Include silent-rules.mk
10483 (srcdir, VPATH, top_srcdir): Move up.
10484 (COMPILE): Add ECHO_CXX.
10485 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10486 (init.c): Add ECHO_INIT_C.
10487 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10488 (version.c): Add ECHO_GEN.
10489 (printcmd.o): Add ECHO_CXX.
10490 (target-float.o): Add ECHO_CXX.
10491 (ada-exp.o): Add ECHO_CXX.
10492 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10493 (insight$(EXEEXT)): Add ECHO_CXXLD.
10494 * gnulib/configure.ac: Add AM_SILENT_RULES.
10495 * gnulib/aclocal.m4: Re-generate.
10496 * gnulib/configure: Re-generate.
10497 * gnulib/import/Makefile.in: Re-generate.
10498
10499 2018-03-16 Tom Tromey <tom@tromey.com>
10500
10501 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10502 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10503 * utils.c (do_free_section_addr_info)
10504 (make_cleanup_free_section_addr_info): Remove.
10505 * symfile.h (struct other_sections): Add constructor.
10506 (struct section_addr_info): Remove.
10507 (section_addr_info): New typedef.
10508 (struct sym_fns) <sym_offsets>: Change type of parameter.
10509 (build_section_addr_info_from_objfile)
10510 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10511 (default_symfile_offsets, symbol_file_add)
10512 (symbol_file_add_from_bfd)
10513 (build_section_addr_info_from_section_table): Update.
10514 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10515 * symfile.c (alloc_section_addr_info): Remove.
10516 (build_section_addr_info_from_section_table): Change return type.
10517 Update.
10518 (build_section_addr_info_from_bfd)
10519 (build_section_addr_info_from_objfile): Likewise.
10520 (free_section_addr_info): Remove.
10521 (relative_addr_info_to_section_offsets): Change type of "addrs".
10522 (addrs_section_compar): Now a std::sort comparator.
10523 (addrs_section_sort): Change return type.
10524 (addr_info_make_relative): Change type of "addrs". Update.
10525 (default_symfile_offsets, syms_from_objfile_1)
10526 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10527 (symbol_file_add_separate): Update.
10528 (symbol_file_add): Change type of "addrs". Update.
10529 (add_symbol_file_command): Update. Remove cleanups.
10530 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10531 cleanups.
10532 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10533 * solib.c (solib_read_symbols): Update.
10534 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10535 * machoread.c (macho_symfile_offsets): Update.
10536 * jit.c (jit_bfd_try_read_symtab): Update.
10537
10538 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10539
10540 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10541 unittests/utils-selftests.c.
10542 * unittests/utils-selftests.c: New file.
10543
10544 2018-03-14 Tom Tromey <tom@tromey.com>
10545
10546 PR cli/14977:
10547 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10548 for NULL.
10549
10550 2018-03-14 Tom Tromey <tom@tromey.com>
10551
10552 PR cli/19918:
10553 * printcmd.c (printf_pointer): Allow "-" in format.
10554
10555 2018-03-14 Tom Tromey <tom@tromey.com>
10556
10557 * printcmd.c (_initialize_printcmd): Add usage to printf.
10558
10559 2018-03-14 Yao Qi <qiyao@sourceware.org>
10560
10561 * MAINTAINERS: Update my email address.
10562
10563 2018-03-13 Tom Tromey <tom@tromey.com>
10564
10565 * machoread.c (macho_check_dsym): Change filenamep to a
10566 std::string*.
10567 (macho_symfile_read): Update.
10568 * symfile.c (load_command): Use std::string.
10569
10570 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10571
10572 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10573 to error message string.
10574 (riscv_register_name): Use xsnprintf instead of sprintf.
10575 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10576 internal_error.
10577 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10578 error.
10579 (riscv_push_dummy_call): Likewise.
10580
10581 2018-03-12 Tom Tromey <tom@tromey.com>
10582
10583 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10584 Use gdb::byte_vector.
10585 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10586
10587 2018-03-12 Yao Qi <yao.qi@linaro.org>
10588
10589 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10590 parameter type to readable_regcache.
10591 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10592 the declaration.
10593
10594 2018-03-11 Tom Tromey <tom@tromey.com>
10595
10596 * dwarf2read.c (struct nextfield): Add initializers.
10597 (struct nextfnfield): Remove.
10598 (struct fnfieldlist): Add initializers. Remove "length" and
10599 "head", use std::vector.
10600 (struct decl_field_list): Remove.
10601 (struct field_info): Add initializers.
10602 <fields, baseclasses>: Now std::vector.
10603 <nbaseclasses, nfnfields, typedef_field_list_count,
10604 nested_types_list_count>: Remove.
10605 (dwarf2_add_field, dwarf2_add_type_defn)
10606 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10607 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10608 (process_structure_scope): Update.
10609
10610 2018-03-11 Tom Tromey <tom@tromey.com>
10611
10612 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10613 for use by std::sort.
10614 (build_type_psymtabs_1): Use std::vector.
10615
10616 2018-03-09 Eli Zaretskii <eliz@gnu.org>
10617
10618 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10619 and LIBMPFR in the printed configuration.
10620
10621 2018-03-08 Tom Tromey <tom@tromey.com>
10622
10623 * source.c (get_filename_and_charpos): Use scoped_fd.
10624 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10625 (procfs_pidlist): Likewise.
10626 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10627 (iterate_over_mappings): Likewise.
10628
10629 2018-03-08 Tom Tromey <tom@tromey.com>
10630
10631 * infcall.c (struct call_return_meta_info)
10632 <stack_temporaries_enabled>: Remove.
10633 (get_call_return_value, call_function_by_hand_dummy): Update.
10634 * thread.c (disable_thread_stack_temporaries): Remove.
10635 (enable_thread_stack_temporaries): Remove.
10636 (thread_stack_temporaries_enabled_p): Return bool.
10637 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10638 (get_last_thread_stack_temporary): Update.
10639 * eval.c (evaluate_subexp): Update.
10640 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10641 class, not a function.
10642 (value_ptr, value_vec): Remove typedefs.
10643 (class thread_info) <stack_temporaries_enabled>: Now bool.
10644 <stack_temporaries>: Now a std::vector.
10645 (thread_stack_temporaries_enabled_p)
10646 (value_in_thread_stack_temporaries): Return bool.
10647
10648 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10649
10650 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10651 (getpkt_or_notif_sane_1): Likewise.
10652
10653 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10654
10655 * build-id.c (build_id_to_debug_bfd): Use std::string.
10656
10657 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10658
10659 * build-id.c (find_separate_debug_file_by_buildid): Return
10660 std::string.
10661 * build-id.h (find_separate_debug_file_by_buildid): Return
10662 std::string.
10663 * coffread.c (coff_symfile_read): Adjust to std::string.
10664 * elfread.c (elf_symfile_read): Adjust to std::string.
10665 * symfile.c (separate_debug_file_exists): Change parameter to
10666 std::string.
10667 (find_separate_debug_file): Return std::string.
10668 (find_separate_debug_file_by_debuglink): Return std::string.
10669 * symfile.h (find_separate_debug_file_by_debuglink): Return
10670 std::string.
10671
10672 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10673
10674 * common/xml-utils.c (xml_escape_text): Move code to...
10675 (xml_escape_text_append): ... this new function.
10676 * common/xml-utils.h (xml_escape_text_append): New declaration.
10677 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10678 New function.
10679 (_initialize_xml_utils): register test_xml_escape_text_append as
10680 a selftest.
10681
10682 2018-03-07 Alan Hayward <alan.hayward@arm.com>
10683
10684 * defs.h: Remove MAX_REGISTER_SIZE.
10685 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10686 asserts.
10687 * python/py-unwind.c (pyuw_sniffer): Likewise.
10688
10689 2018-03-07 Tom Tromey <tom@tromey.com>
10690
10691 * linux-tdep.c (linux_info_proc): Update.
10692 * target.h (struct target_ops) <to_fileio_readlink>: Return
10693 optional<string>.
10694 (target_fileio_readlink): Return optional<string>.
10695 * remote.c (remote_hostio_readlink): Return optional<string>.
10696 * inf-child.c (inf_child_fileio_readlink): Return
10697 optional<string>.
10698 * target.c (target_fileio_readlink): Return optional<string>.
10699
10700 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10701
10702 * regcache.c (cooked_read_test): Add riscv to the list of
10703 architectures that have a save_reggroup.
10704
10705 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10706
10707 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10708 value is not a dynamic class object.
10709
10710 2018-03-06 Tom Tromey <tom@tromey.com>
10711
10712 * rust-exp.y: Formatting fixes.
10713
10714 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10715
10716 * riscv-tdep.c (riscv_register_name): Remove target description
10717 support.
10718 (riscv_gdbarch_init): Remove target description check.
10719
10720 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10721
10722 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10723 comment.
10724 * riscv-tdep.h: Likewise.
10725
10726 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10727
10728 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10729 (riscv_pseudo_register_write): Delete.
10730 (riscv_gdbarch_init): Remove all use of pseudo registers.
10731
10732 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10733
10734 * record-btrace.c (btrace_print_lines): Replace cleanup
10735 parameter with RAII equivalents.
10736 (btrace_insn_history): Replace cleanup with RAII equivalents.
10737 * ui-out.h (make_cleanup_ui_out_list_begin_end,
10738 make_cleanup_ui_out_tuple_begin_end): Remove.
10739 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10740 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10741 make_cleanup_ui_out_list_begin_end): Remove.
10742
10743 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10744
10745 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10746 parameter types to std::vector. Use bool.
10747 (record_btrace_wait): Replace VEC(tp_t) with
10748 std::vector<thread_info *>.
10749 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10750
10751 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10752
10753 * record-btrace.c (record_btrace_disable_callback): Remove.
10754 (struct scoped_btrace_disable): New.
10755 (record_btrace_open): Use scoped_btrace_disable.
10756
10757 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10758
10759 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10760 reading values from registers.
10761
10762 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10763
10764 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10765 where appropriate.
10766
10767 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10768
10769 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10770 change parameter type. Use GDB's print functions, and use
10771 core_addr_to_string where appropriate.
10772 (riscv_push_dummy_call): Use core_addr_to_string where
10773 appropriate, update call to riscv_print_arg_location, and reindent
10774 a few lines.
10775 (riscv_return_value): Update call to riscv_print_arg_location.
10776
10777 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10778 Tim Newsome <tim@sifive.com>
10779 Albert Ou <a0u@eecs.berkeley.edu>
10780 Darius Rad <darius@bluespec.com>
10781
10782 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10783 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10784 (ALLDEPFILES): Add riscv-tdep.c
10785 * configure.tgt: Add riscv support.
10786 * riscv-tdep.c: New file.
10787 * riscv-tdep.h: New file.
10788 * NEWS: Mention new target.
10789 * MAINTAINERS: Add entry for riscv.
10790
10791 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10792
10793 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10794 fields within aggregates.
10795
10796 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
10797
10798 * record-btrace.c (btrace_print_lines): Change type of flags to
10799 gdb_disassembly_flags.
10800
10801 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10802
10803 * fbsd-nat.c: Include "inf-ptrace.h".
10804 (USE_SIGTRAP_SIGINFO): Conditionally define.
10805 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10806 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10807 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10808 function.
10809 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10810 Likewise.
10811 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10812 Likewise.
10813 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10814 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10815 "supports_stopped_by_hw_breakpoint" target methods.
10816
10817 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10818
10819 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10820 * fbsd-nat.c (debug_fbsd_nat): New variable.
10821 (show_fbsd_nat_debug): New function.
10822 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10823 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10824
10825 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10826
10827 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10828 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10829 prototype.
10830 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10831 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10832 method.
10833
10834 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10835
10836 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10837 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10838
10839 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10840
10841 * charset.c (struct charset_vector): New.
10842 (charsets): Change type to charset_vector.
10843 (find_charset_names): Adjust.
10844 (add_one): Adjust.
10845 (_initialize_charset): Adjust.
10846
10847 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10848
10849 * progspace.h (struct program_space) <deleted_solibs>: Change
10850 type to std::vector<std::string>.
10851 * progspace.c (clear_program_space_solib_cache): Adjust.
10852 * breakpoint.c (print_solib_event): Adjust.
10853 (check_status_catch_solib): Adjust.
10854 * solib.c (update_solib_list): Adjust.
10855 * ui-out.h (class ui_out) <field_string>: New overload.
10856 * ui-out.c (ui_out::field_string): New overload.
10857
10858 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10859
10860 * progspace.h (struct program_space): Add constructor and
10861 destructor, initialize fields.
10862 (add_program_space): Remove.
10863 * progspace.c (add_program_space): Rename to...
10864 (program_space::program_space): ... this.
10865 (release_program_space): Rename to...
10866 (program_space::~program_space): ... this.
10867 (delete_program_space): Use delete to delete program_space.
10868 (initialize_progspace): Use new to allocate program_space.
10869 * inferior.c (add_inferior_with_spaces): Likewise.
10870 (clone_inferior_command): Likewise.
10871 * infrun.c (follow_fork_inferior): Likewise.
10872 (handle_vfork_child_exec_or_exit): Likewise.
10873
10874 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10875
10876 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10877 (delim_string_to_char_ptr_vec): Return std::vector of
10878 gdb::unique_xmalloc_ptr.
10879 (dirnames_to_char_ptr_vec_append): Take std::vector of
10880 gdb::unique_xmalloc_ptr.
10881 (dirnames_to_char_ptr_vec): Return std::vector of
10882 gdb::unique_xmalloc_ptr.
10883 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10884 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10885 (delim_string_to_char_ptr_vec): Return an std::vector of
10886 gdb::unique_xmalloc_ptr, adjust the code.
10887 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10888 gdb::unique_xmalloc_ptr, adjust the code.
10889 (dirnames_to_char_ptr_vec): Return an std::vector of
10890 gdb::unique_xmalloc_ptr, adjust the code.
10891 * auto-load.c (auto_load_safe_path_vec): Change type to
10892 std::vector of gdb::unique_xmalloc_ptr.
10893 (auto_load_expand_dir_vars): Return an std::vector of
10894 gdb::unique_xmalloc_ptr, adjust the code.
10895 (auto_load_safe_path_vec_update): Adjust.
10896 (filename_is_in_auto_load_safe_path_vec): Adjust.
10897 (auto_load_objfile_script_1): Adjust.
10898 * build-id.c (build_id_to_debug_bfd): Adjust.
10899 * linux-thread-db.c (thread_db_load_search): Adjust.
10900 * source.c (add_path): Adjust.
10901 (openp): Adjust.
10902 * symfile.c (find_separate_debug_file): Adjust.
10903 * utils.c (do_free_char_ptr_vec): Remove.
10904 (make_cleanup_free_char_ptr_vec): Remove.
10905
10906 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10907
10908 PR gdb/22907
10909 * common/pathstuff.c: Conditionally include "<windows.h>".
10910
10911 2018-03-01 Georg Sauthoff <mail@georg.so>
10912
10913 PR gdb/22888
10914 * gcore.in: Quote variables and switch interpreter to bash.
10915
10916 2018-03-01 Tom Tromey <tom@tromey.com>
10917
10918 * dwarf2read.c (alloc_discriminant_info): Fix default_index
10919 assertion. Add assertion for discriminant_index.
10920 (quirk_rust_enum): Use correct base type name in univariant case.
10921
10922 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
10923
10924 * record.c (get_call_history_modifiers): Return a
10925 record_print_flags.
10926 (cmd_record_call_history): Adjust.
10927 * record-btrace.c (record_btrace_call_history): Adjust.
10928 (record_btrace_call_history_range): Adjust.
10929 (record_btrace_call_history_from): Adjust.
10930 * target-debug.h (target_debug_print_record_print_flags): New.
10931 * target-delegates.c: Re-generate.
10932 * target.c (target_call_history): Change flags type.
10933 (target_call_history_from): Likewise.
10934 (target_call_history_range): Likewise.
10935 * target.h (struct target_ops) <target_call_history>: Likewise.
10936 (target_call_history_from): Likewise.
10937 (target_call_history_range): Likewise.
10938
10939 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10940 Simon Marchi <simon.marchi@polymtl.ca>
10941
10942 * common/common-utils.c: Include "sys/stat.h".
10943 (is_regular_file): Move here from "source.c"; change return
10944 type to "bool".
10945 * common/common-utils.h (is_regular_file): New prototype.
10946 * common/pathstuff.c (contains_dir_separator): New function.
10947 * common/pathstuff.h (contains_dir_separator): New prototype.
10948 * source.c: Don't include "sys/stat.h".
10949 (is_regular_file): Move to "common/common-utils.c".
10950
10951 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10952
10953 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
10954 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
10955 * auto-load.c: Include "common/pathstuff.h".
10956 * common/common-def.h (current_directory): Move here.
10957 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
10958 function.
10959 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
10960 prototype.
10961 * common/pathstuff.c: New file.
10962 * common/pathstuff.h: New file.
10963 * compile/compile.c: Include "common/pathstuff.h".
10964 * defs.h (current_directory): Move to "common/common-defs.h".
10965 * dwarf2read.c: Include "common/pathstuff.h".
10966 * exec.c: Likewise.
10967 * guile/scm-safe-call.c: Likewise.
10968 * linux-thread-db.c: Likewise.
10969 * main.c: Likewise.
10970 * nto-tdep.c: Likewise.
10971 * objfiles.c: Likewise.
10972 * source.c: Likewise.
10973 * symtab.c: Likewise.
10974 * utils.c: Include "common/pathstuff.h".
10975 (gdb_realpath): Move to "common/pathstuff.c".
10976 (gdb_realpath_keepfile): Likewise.
10977 (gdb_abspath): Likewise.
10978 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
10979 (gdb_realpath_keepfile): Likewise.
10980 (gdb_abspath): Likewise.
10981
10982 2018-02-28 John Baldwin <jhb@FreeBSD.org>
10983
10984 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
10985 wildcard process pid for super_resume for kernels with a
10986 specific bug.
10987
10988 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
10989
10990 * compile/compile.c (get_args): Add additional comments
10991 explaining function.
10992
10993 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
10994 Tom Tromey <tom@tromey.com>
10995
10996 * target.h (memory_write_request_s): Remove typedef. Don't define
10997 VEC.
10998 (target_write_memory_blocks): Change argument to std::vector.
10999 (struct memory_write_request): Add constructor.
11000 * target-memory.c (compare_block_starting_address): Return bool.
11001 Change argument types.
11002 (claim_memory): Change arguments to use std::vector.
11003 (split_regular_and_flash_blocks, blocks_to_erase)
11004 (compute_garbled_blocks): Likewise.
11005 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11006 (target_write_memory_blocks): Change argument to std::vector.
11007 * symfile.c (struct load_section_data): Add constructor and
11008 destructor. Use std::vector for "requests".
11009 (struct load_progress_data): Add initializers.
11010 (load_section_callback): Update. Use "new".
11011 (clear_memory_write_data): Remove.
11012 (generic_load): Update.
11013
11014 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11015
11016 * arch/aarch64.h: Use common/tdesc.h.
11017
11018 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11019
11020 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11021 architecture with a 64-bit ABI.
11022
11023 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11024
11025 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11026 ahead of target description loading.
11027
11028 2018-02-26 Tom Tromey <tom@tromey.com>
11029
11030 * stack.c (backtrace_command_1): Update.
11031 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11032 of "flags".
11033 * python/py-framefilter.c (py_print_frame)
11034 (gdbpy_apply_frame_filter): Change type of "flags".
11035 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11036 of "flags".
11037 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11038 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11039 * extension.h (enum frame_filter_flag): Rename from
11040 frame_filter_flags.
11041 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11042 (apply_ext_lang_frame_filter): Change type of "flags".
11043 * extension.c (apply_ext_lang_frame_filter): Change type of
11044 "flags".
11045 * extension-priv.h (struct extension_language_ops)
11046 <apply_frame_filter>: Change type of "flags".
11047
11048 2018-02-26 Tom Tromey <tom@tromey.com>
11049
11050 PR python/16497:
11051 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11052 off-by-one in py_end computation.
11053 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11054 PRINT_MORE_FRAMES.
11055 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11056 constant.
11057
11058 2018-02-26 Tom Tromey <tom@tromey.com>
11059
11060 * dwarf2read.c (struct variant_field): New.
11061 (struct nextfield) <variant>: New field.
11062 (dwarf2_add_field): Handle DW_TAG_variant_part.
11063 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11064 discriminated union.
11065 (read_structure_type): Handle DW_TAG_variant_part.
11066 (handle_struct_member_die): New function, extracted from
11067 process_structure_scope. Handle DW_TAG_variant.
11068 (process_structure_scope): Handle discriminated unions. Call
11069 handle_struct_member_die.
11070
11071 2018-02-26 Tom Tromey <tom@tromey.com>
11072
11073 * rust-lang.h (rust_last_path_segment): Declare.
11074 * rust-lang.c (rust_last_path_segment): Now public. Change
11075 contract.
11076 (struct disr_info): Remove.
11077 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11078 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11079 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11080 (rust_enum_p, rust_enum_variant): New function.
11081 (rust_underscore_fields): Remove "offset" parameter.
11082 (rust_print_enum): New function.
11083 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11084 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11085 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11086 enums.
11087 (rust_internal_print_type): New function, from rust_print_type.
11088 Remove enum code.
11089 (rust_print_type): Call rust_internal_print_type.
11090 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11091 Update enum handling.
11092 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11093 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11094 (rust_union_quirks): New functions.
11095 (process_full_comp_unit, process_full_type_unit): Call
11096 rust_union_quirks.
11097 (process_structure_scope): Update rust_unions if necessary.
11098
11099 2018-02-26 Tom Tromey <tom@tromey.com>
11100
11101 * value.h (value_union_variant): Declare.
11102 * valops.c (value_union_variant): New function.
11103 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11104 (struct discriminant_info): New.
11105 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11106 enumerator.
11107 (struct main_type) <flag_discriminated_union>: New field.
11108
11109 2018-02-26 Tom Tromey <tom@tromey.com>
11110
11111 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11112 unittests/unpack-selftests.c.
11113 * unittests/unpack-selftests.c: New file.
11114 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11115
11116 2018-02-26 Yao Qi <yao.qi@linaro.org>
11117
11118 * dwarf2read.c (struct partial_die_info) <read>: New method.
11119 (read_partial_die): Remove the declaration.
11120 (load_partial_dies): Update.
11121 (partial_die_info::partial_die_info):
11122 (read_partial_die): Change it to partial_die_info::read.
11123
11124 2018-02-26 Yao Qi <yao.qi@linaro.org>
11125
11126 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11127 (fixup_partial_die): Remove declaration.
11128 (scan_partial_symbols): Update.
11129 (partial_die_parent_scope): Likewise.
11130 (partial_die_full_name): Likewise.
11131 (fixup_partial_die): Change it to partial_die_info::fixup.
11132
11133 2018-02-26 Yao Qi <yao.qi@linaro.org>
11134
11135 * dwarf2read.c (read_partial_die): Update the declaration.
11136 (load_partial_dies): Caller update.
11137 (read_partial_die): Remove one argument abbrev_len.
11138
11139 2018-02-26 Yao Qi <yao.qi@linaro.org>
11140
11141 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11142 assignment operator.
11143 (load_partial_dies): Use ctor and copy ctor.
11144 (read_partial_die): Update.
11145 (dwarf2_cu::find_partial_die): Use ctor.
11146
11147 2018-02-26 Yao Qi <yao.qi@linaro.org>
11148
11149 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11150 (find_partial_die_in_comp_unit): Change it to
11151 dwarf2_cu::find_partial_die.
11152 (find_partial_die): Update.
11153
11154 2018-02-26 Yao Qi <yao.qi@linaro.org>
11155
11156 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11157 is NULL.
11158
11159 2018-02-26 Yao Qi <yao.qi@linaro.org>
11160
11161 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11162
11163 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11164
11165 * arch/amd64.h: Use common/tdesc.h.
11166 * arch/i386.c: Likewise.
11167 * arch/i386.h: Likewise.
11168 * arch/tic6x.c: Likewise.
11169 * arch/tdesc.h: Move file from here...
11170 * common/tdesc.h: ...to here.
11171 * features/aarch64-core.c: Regenerate.
11172 * features/aarch64-fpu.c: Regenerate.
11173 * features/i386/32bit-avx.c: Regenerate.
11174 * features/i386/32bit-avx512.c: Regenerate.
11175 * features/i386/32bit-core.c: Regenerate.
11176 * features/i386/32bit-linux.c: Regenerate.
11177 * features/i386/32bit-mpx.c: Regenerate.
11178 * features/i386/32bit-pkeys.c: Regenerate.
11179 * features/i386/32bit-sse.c: Regenerate.
11180 * features/i386/64bit-avx.c: Regenerate.
11181 * features/i386/64bit-avx512.c: Regenerate.
11182 * features/i386/64bit-core.c: Regenerate.
11183 * features/i386/64bit-linux.c: Regenerate.
11184 * features/i386/64bit-mpx.c: Regenerate.
11185 * features/i386/64bit-pkeys.c: Regenerate.
11186 * features/i386/64bit-segments.c: Regenerate.
11187 * features/i386/64bit-sse.c: Regenerate.
11188 * features/i386/x32-core.c: Regenerate.
11189 * features/tic6x-c6xp.c: Regenerate.
11190 * features/tic6x-core.c: Regenerate.
11191 * features/tic6x-gp.c: Regenerate.
11192 * target-descriptions.c: Use common/tdesc.h.
11193 * target-descriptions.h: Likewise.
11194
11195 2018-02-24 Tom Tromey <tom@tromey.com>
11196
11197 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11198 (try_thread_db_load_from_dir, thread_db_load_search): Use
11199 std::string.
11200 (info_auto_load_libthread_db_compare): Return bool. Change
11201 argument types.
11202 (info_auto_load_libthread_db): Use std::vector, std::string.
11203 Remove cleanups.
11204
11205 2018-02-24 Tom Tromey <tom@tromey.com>
11206
11207 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11208 std::string.
11209 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11210 std::string*.
11211 * gdbarch.c: Rebuild.
11212 * gdbarch.h: Rebuild.
11213 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11214 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11215 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11216 std::string*.
11217
11218 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11219
11220 * gdbtypes.h (sect_offset): Change type to uint64_t.
11221 (sect_offset_str): New function.
11222 * dwarf2read.c (create_addrmap_from_aranges): Use
11223 sect_offset_str.
11224 (error_check_comp_unit_head): Likewise.
11225 (create_debug_type_hash_table): Likewise.
11226 (read_cutu_die_from_dwo): Likewise.
11227 (init_cutu_and_read_dies): Likewise.
11228 (init_cutu_and_read_dies_no_follow): Likewise.
11229 (process_psymtab_comp_unit_reader): Likewise.
11230 (partial_die_parent_scope): Likewise.
11231 (peek_die_abbrev): Likewise.
11232 (process_queue): Likewise.
11233 (dwarf2_physname): Likewise.
11234 (read_namespace_alias): Likewise.
11235 (read_import_statement): Likewise.
11236 (create_dwo_cu_reader): Likewise.
11237 (create_cus_hash_table): Likewise.
11238 (lookup_dwo_cutu): Likewise.
11239 (inherit_abstract_dies): Likewise.
11240 (read_func_scope): Likewise.
11241 (read_call_site_scope): Likewise.
11242 (dwarf2_add_member_fn): Likewise.
11243 (read_common_block): Likewise.
11244 (read_module_type): Likewise.
11245 (read_typedef): Likewise.
11246 (read_subrange_type): Likewise.
11247 (load_partial_dies): Likewise.
11248 (read_partial_die): Likewise.
11249 (find_partial_die): Likewise.
11250 (read_str_index): Likewise.
11251 (dwarf2_string_attr): Likewise.
11252 (build_error_marker_type): Likewise.
11253 (lookup_die_type): Likewise.
11254 (dump_die_shallow): Likewise.
11255 (follow_die_ref): Likewise.
11256 (dwarf2_fetch_die_loc_sect_off): Likewise.
11257 (dwarf2_fetch_constant_bytes): Likewise.
11258 (follow_die_sig): Likewise.
11259 (get_signatured_type): Likewise.
11260 (get_DW_AT_signature_type): Likewise.
11261 (dwarf2_find_containing_comp_unit): Likewise.
11262 (set_die_type): Likewise.
11263
11264 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11265
11266 * arch/aarch64.c: Include "common-defs.h".
11267 * arch/amd64.c: Likewise.
11268 * arch/i386.c: Likewise.
11269
11270 2018-02-21 Tom Tromey <tom@tromey.com>
11271
11272 * value.h: (extract_field_op): Update.
11273 * eval.c (extract_field_op): Return a const char *.
11274 * expression.h (parse_expression_for_completion): Update.
11275 * completer.c (complete_expression): Update.
11276 (add_struct_fields): Make fieldname const.
11277 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11278 (mark_completion_tag, parse_exp_in_context_1): Update.
11279 (parse_expression_for_completion): Change "name" to
11280 unique_xmalloc_ptr*.
11281
11282 2018-02-21 Tom Tromey <tom@tromey.com>
11283
11284 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11285
11286 2018-02-21 Yao Qi <yao.qi@linaro.org>
11287
11288 * avr-tdep.c (avr_read_pc): Change parameter type to
11289 readable_regcache.
11290 * gdbarch.sh (read_pc): Likewise.
11291 * gdbarch.c: Re-generated.
11292 * gdbarch.h: Re-generated.
11293 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11294 readable_regcache.
11295 * ia64-tdep.c (ia64_read_pc): Likewise.
11296 * mips-tdep.c (mips_read_pc): Likewise.
11297 * spu-tdep.c (spu_read_pc): Likewise.
11298
11299 2018-02-21 Yao Qi <yao.qi@linaro.org>
11300
11301 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11302 * regcache-dump.c: New file.
11303 * regcache.c: Move register_dump to regcache-dump.c.
11304 (maintenance_print_registers): Likewise.
11305 (maintenance_print_raw_registers): Likewise.
11306 (maintenance_print_cooked_registers): Likewise.
11307 (maintenance_print_register_groups): Likewise.
11308 (maintenance_print_remote_registers): Likewise.
11309 (_initialize_regcache): Likewise.
11310 * regcache.h (register_dump): Moved from regcache.c.
11311
11312 2018-02-21 Yao Qi <yao.qi@linaro.org>
11313
11314 * regcache.c (regcache::regcache): Update.
11315 (regcache::invalidate): Move it to detached_regcache::invalidate.
11316 (get_thread_arch_aspace_regcache): Update.
11317 (regcache::raw_update): Update.
11318 (regcache::cooked_read): Remove some code.
11319 (regcache::cooked_read_value): Likewise.
11320 (regcache::raw_write): Remove assert on m_readonly_p.
11321 (regcache::raw_supply_integer): Move it to
11322 detached_regcache::raw_supply_integer.
11323 (regcache::raw_supply_zeroed): Likewise.
11324 * regcache.h (detached_regcache) <raw_supply_integer>: New
11325 declaration.
11326 <raw_supply_zeroed, invalidate>: Likewise.
11327 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11328 <invalidate>: Likewise.
11329 <m_readonly_p>: Removed.
11330
11331 2018-02-21 Yao Qi <yao.qi@linaro.org>
11332
11333 * infcmd.c (get_return_value): Let stop_regs point to
11334 get_current_regcache.
11335 * regcache.c (regcache::regcache): Remove.
11336 (register_dump_reg_buffer): New class.
11337 (regcache_print): Adjust.
11338 * regcache.h (regcache): Remove constructors.
11339
11340 2018-02-21 Yao Qi <yao.qi@linaro.org>
11341
11342 * regcache.c (class register_dump): New class.
11343 (register_dump_regcache, register_dump_none): New class.
11344 (register_dump_remote, register_dump_groups): New class.
11345 (regcache_print): Update.
11346 * regcache.h (regcache_dump_what): Move it to regcache.c.
11347 (regcache) <dump>: Remove.
11348
11349 2018-02-21 Yao Qi <yao.qi@linaro.org>
11350
11351 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11352 reg_buffer_rw *.
11353 (jit_unwind_reg_set_impl): Call raw_supply.
11354 (jit_frame_sniffer): Use reg_buffer_rw.
11355 * record-full.c (record_full_core_regbuf): Change its type.
11356 (record_full_core_open_1): Use reg_buffer_rw.
11357 (record_full_close): Likewise.
11358 (record_full_core_fetch_registers): Use regcache->raw_supply.
11359 (record_full_core_store_registers): Likewise.
11360 * regcache.c (regcache::get_register_status): Move it to
11361 reg_buffer.
11362 (regcache_raw_set_cached_value): Remove.
11363 (regcache::raw_set_cached_value): Remove.
11364 (regcache::raw_write): Call raw_supply.
11365 (regcache::raw_supply): Move it to reg_buffer_rw.
11366 * regcache.h (regcache_raw_set_cached_value): Remove.
11367 (reg_buffer_rw): New class.
11368
11369 2018-02-21 Yao Qi <yao.qi@linaro.org>
11370
11371 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11372 readonly_detached_regcache.
11373 (dummy_frame_prev_register): Use regcache->cooked_read.
11374 * frame.c (frame_save_as_regcache): Change return type.
11375 (frame_pop): Update.
11376 * frame.h (frame_save_as_regcache): Update declaration.
11377 * inferior.h (get_infcall_suspend_state_regcache): Update
11378 declaration.
11379 * infrun.c (infcall_suspend_state) <registers>: use
11380 readonly_detached_regcache.
11381 (save_infcall_suspend_state): Don't use regcache_dup.
11382 (get_infcall_suspend_state_regcache): Change return type.
11383 * linux-fork.c (struct fork_info) <savedregs>: Change to
11384 readonly_detached_regcache.
11385 <pc>: New field.
11386 (fork_save_infrun_state): Don't use regcache_dup.
11387 (info_checkpoints_command): Adjust.
11388 * mi/mi-main.c (register_changed_p): Update declaration.
11389 (mi_cmd_data_list_changed_registers): Use
11390 readonly_detached_regcache.
11391 (register_changed_p): Change parameter type to
11392 readonly_detached_regcache.
11393 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11394 readonly_detached_regcache.
11395 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11396 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11397 New.
11398 (regcache::save): Move it to reg_buffer.
11399 (regcache::restore): Change parameter type.
11400 (regcache_dup): Remove.
11401 * regcache.h (reg_buffer) <save>: New method.
11402 (readonly_detached_regcache): New class.
11403 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11404 readonly_detached_regcache.
11405 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11406
11407 2018-02-21 Yao Qi <yao.qi@linaro.org>
11408
11409 * frame.c (frame_save_as_regcache): Use regcache method save.
11410 (frame_pop): Use regcache method restore.
11411 * infrun.c (restore_infcall_suspend_state): Likewise.
11412 * linux-fork.c (fork_load_infrun_state): Likewise.
11413 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11414 save.
11415 * regcache.c (regcache_save): Remove.
11416 (regcache::restore): More asserts.
11417 (regcache_cpy): Remove.
11418 * regcache.h (regcache_save): Remove the declaration.
11419 (regcache::restore): Move from private to public.
11420 Remove the friend declaration of regcache_cpy.
11421 (regcache_cpy): Remove declaration.
11422
11423 2018-02-21 Yao Qi <yao.qi@linaro.org>
11424
11425 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11426 parameter type to 'readable_regcache *'.
11427 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11428 * arm-tdep.c (arm_neon_quad_read): Likewise.
11429 (arm_pseudo_read): Likewise.
11430 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11431 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11432 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11433 * gdbarch.c: Re-generated.
11434 * gdbarch.h: Re-generated.
11435 * gdbarch.sh (pseudo_register_read): Change parameter type to
11436 'readable_regcache *'.
11437 (pseudo_register_read_value): Likewise.
11438 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11439 (h8300_pseudo_register_read): Likewise.
11440 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11441 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11442 (i386_pseudo_register_read_into_value): Likewise.
11443 (i386_pseudo_register_read_value): Likewise.
11444 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11445 declaration.
11446 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11447 * m32c-tdep.c (m32c_raw_read): Likewise.
11448 (m32c_read_flg): Likewise.
11449 (m32c_banked_register): Likewise.
11450 (m32c_banked_read): Likewise.
11451 (m32c_sb_read): Likewise.
11452 (m32c_part_read): Likewise.
11453 (m32c_cat_read): Likewise.
11454 (m32c_r3r2r1r0_read): Likewise.
11455 (m32c_pseudo_register_read): Likewise.
11456 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11457 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11458 (mep_pseudo_cr64_read): Likewise.
11459 (mep_pseudo_register_read): Likewise.
11460 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11461 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11462 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11463 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11464 (regcache::cooked_read): Likewise.
11465 (regcache::cooked_read_value): Likewise.
11466 (regcache_cooked_read_signed):
11467 (regcache::cooked_read): Likewise.
11468 * regcache.h (readable_regcache): New class.
11469 (regcache): Inherit readable_regcache. Move some methods to
11470 readable_regcache.
11471 * rl78-tdep.c (rl78_pseudo_register_read): Change
11472 parameter type to 'readable_regcache *'.
11473 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11474 (e500_pseudo_register_read): Change parameter type to
11475 'readable_regcache *'.
11476 (dfp_pseudo_register_read): Likewise.
11477 (vsx_pseudo_register_read): Likewise.
11478 (efpr_pseudo_register_read): Likewise.
11479 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11480 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11481 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11482 (sh64_pseudo_register_read): Likewise.
11483 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11484 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11485 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11486 (spu_pseudo_register_read): Likewise.
11487 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11488 (xtensa_pseudo_register_read): Likewise.
11489
11490 2018-02-21 Yao Qi <yao.qi@linaro.org>
11491
11492 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11493 (regcache::arch): Move it to reg_buffer::arch.
11494 (regcache::register_buffer): Likewise.
11495 (regcache::assert_regnum): Likewise.
11496 (regcache::num_raw_registers): Likewise.
11497 * regcache.h (reg_buffer): New class.
11498 (regcache): Inherit reg_buffer.
11499
11500 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11501
11502 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11503 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11504
11505 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11506
11507 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11508
11509 2018-02-19 Alan Hayward <alan.hayward@arm.com>
11510
11511 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11512 (SFILES): Remove common/*.c files.
11513 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11514 * common/common.host: Add common reference.
11515 * configure.ac: Likewise.
11516 * configure: Regenerate.
11517
11518 2018-02-16 Yao Qi <yao.qi@linaro.org>
11519
11520 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11521 (block_initialize_namespace): Use new.
11522 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11523 (dwarf2_free_objfile): Use delete.
11524 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11525 (copy_type_recursive): Use new.
11526 * gdb_obstack.h (allocate_on_obstack): New.
11527
11528 2018-02-15 Yao Qi <yao.qi@linaro.org>
11529
11530 PR gdb/22849
11531 * inferior.c (exit_inferior_1): Reset inf->control.
11532
11533 2018-02-15 Joel Brobecker <brobecker@adacore.com>
11534
11535 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11536 declaration.
11537
11538 2018-02-14 Pedro Alves <palves@redhat.com>
11539
11540 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11541 frame_cleanup_after_sniffer on exception.
11542
11543 2018-02-14 Tom Tromey <tom@tromey.com>
11544
11545 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11546 const.
11547 (solib_bfd_open): Make pathname const.
11548 * solib.c (solib_bfd_open): Make pathname const.
11549 * solib-spu.c (spu_bfd_fopen): Make name const.
11550 (spu_bfd_open): Make pathname const.
11551 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11552 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11553
11554 2018-02-14 Tom Tromey <tom@tromey.com>
11555
11556 * symfile.c (symfile_bfd_open): Update.
11557 * source.h (openp, source_full_path_of, find_and_open_source):
11558 Change argument type to unique_xmalloc_ptr.
11559 * source.c (openp): Take a unique_xmalloc_ptr.
11560 (source_full_path_of, find_and_open_source): Likewise.
11561 (open_source_file, symtab_to_fullname): Update.
11562 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11563 unique_xmalloc_ptr.
11564 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11565 (exec_file_find): Update.
11566 * psymtab.c (psymtab_to_fullname): Update.
11567 * nto-tdep.h (nto_find_and_open_solib): Update.
11568 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11569 unique_xmalloc_ptr.
11570 * exec.c (exec_file_attach): Update.
11571 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11572 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11573
11574 2018-02-14 Tom Tromey <tom@tromey.com>
11575
11576 * solib.c: Include source.h.
11577 * nto-tdep.c: Include source.h.
11578 * mi/mi-cmd-env.c: Include source.h.
11579 * infcmd.c: Include source.h.
11580 * exec.c: Include source.h.
11581 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11582 (add_path, directory_switch, source_path, init_source_path): Move
11583 declarations...
11584 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11585 (add_path, directory_switch, source_path, init_source_path):
11586 ...here.
11587
11588 2018-02-14 Tom Tromey <tom@tromey.com>
11589
11590 * solist.h (exec_file_find, solib_find): Return
11591 unique_xmalloc_ptr.
11592 (solib_bfd_fopen): Take a const char *.
11593 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11594 (exec_file_find, solib_find): Likewise.
11595 (solib_bfd_fopen): Do not take ownership of "pathname".
11596 (solib_bfd_open): Use unique_xmalloc_ptr.
11597 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11598 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11599 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11600 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11601
11602 2018-02-14 Joel Brobecker <brobecker@adacore.com>
11603
11604 * ada-lang.c (name_match_type_from_name): Remove reference to
11605 ada_name_for_lookup in function's documentation.
11606 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11607
11608 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11609
11610 * defs.h (enum openp_flags): New enum.
11611 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11612 Move to enum openp_flags.
11613 (openp_flags): New enum flags.
11614 (openp): Change parameter type to openp_flags.
11615 * source.c (openp): Change parameter type to openp_flags.
11616 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11617 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11618
11619 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11620
11621 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11622 per-command.
11623
11624 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11625
11626 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11627 into...
11628 (class dwarf2_queue_guard): ...the destructor of this new class.
11629 (dw2_do_instantiate_symtab): Create instance of the new class
11630 dwarf2_queue_guard, remove cleanup.
11631
11632 2018-02-09 Tom Tromey <tom@tromey.com>
11633
11634 * source.c (find_source_lines): Don't reference past the end of
11635 the vector.
11636
11637 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11638
11639 * remote.c (remote_btrace_maybe_reopen): Change error message.
11640 * btrace.c (btrace_enable): Likewise.
11641 (parse_xml_btrace): Likewise.
11642 (parse_xml_btrace_conf): Likewise.
11643
11644 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11645
11646 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11647 (linux_enable_pt, linux_enable_bts): Call
11648 diagnose_perf_event_open_fail.
11649
11650 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11651
11652 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11653 Remove parameter and change return type. Update callers. Move it.
11654 (linux_enable_bts, linux_enable_pt): Improve error message.
11655 (linux_enable_pt): Remove zero buffer size check.
11656 (linux_enable_btrace): Improve error messages. Remove NULL return
11657 check.
11658
11659 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11660
11661 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11662 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11663 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11664 (linux_supports_pt, linux_supports_btrace): Remove.
11665 (linux_enable_bts): Call cpu_supports_bts.
11666 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11667 * remote.c (remote_supports_btrace): Remove.
11668 (init_remote_ops): Remove remote_supports_btrace.
11669 * target-delegates.c: Regenerated.
11670 * target.c (target_supports_btrace): Remove.
11671 * target.h (target_ops) <to_supports_btrace>: Remove
11672 (target_supports_btrace): Remove.
11673 * x86-linux-nat.c (x86_linux_create_target): Remove
11674 linux_supports_btrace.
11675
11676 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11677
11678 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11679 btrace failed.
11680 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11681 exception and use message in own exception.
11682
11683 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11684
11685 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11686 (perf_event_pt_event_type): Use gdb_file_up.
11687 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11688 scoped_fd, and scoped_mmap.
11689
11690 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11691
11692 * common/scoped_mmap.h: New.
11693 * unittests/scoped_mmap-selftest.c: New.
11694 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11695 unittests/scoped_mmap-selftest.c.
11696
11697 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11698
11699 * common/scoped_fd.h: New.
11700 * unittests/scoped_fd-selftest.c: New.
11701 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11702 unittests/scoped_fd-selftest.c.
11703
11704 2018-02-09 Tom Tromey <tom@tromey.com>
11705
11706 * auto-load.c (auto_load_section_scripts): Use
11707 gdb::unique_xmalloc_ptr.
11708
11709 2018-02-09 Tom Tromey <tom@tromey.com>
11710
11711 * auto-load.c (execute_script_contents): Use std::string.
11712
11713 2018-02-09 Joel Brobecker <brobecker@adacore.com>
11714
11715 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11716 Python function, rather than a new command.
11717
11718 2018-02-08 Tom Tromey <tom@tromey.com>
11719
11720 * solib.c (solib_find_1): Use std::string.
11721 (solib_bfd_fopen): Use unique_xmalloc_ptr.
11722
11723 2018-02-08 Tom Tromey <tom@tromey.com>
11724
11725 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11726
11727 2018-02-08 Tom Tromey <tom@tromey.com>
11728
11729 * source.c (find_source_lines): Use gdb::def_vector.
11730
11731 2018-02-08 Tom Tromey <tom@tromey.com>
11732
11733 * macrocmd.c (struct temporary_macro_definition): New.
11734 (macro_define_command): Use temporary_macro_definition. Remove
11735 cleanups.
11736 (free_macro_definition_ptr): Remove.
11737
11738 2018-02-08 Tom Tromey <tom@tromey.com>
11739
11740 * macroexp.c (maybe_expand): Use std::string.
11741
11742 2018-02-08 Tom Tromey <tom@tromey.com>
11743
11744 * macroexp.c (struct macro_buffer): Add initializers for some
11745 members.
11746 (init_buffer, init_shared_buffer, free_buffer)
11747 (free_buffer_return_text): Remove.
11748 (macro_buffer): New constructors.
11749 (~macro_buffer): New destructor.
11750 (macro_buffer::set_shared): New method.
11751 (macro_buffer::resize_buffer, macro_buffer::appendc)
11752 (macro_buffer::appendmem): Now methods, not free functions.
11753 (set_token, append_tokens_without_splicing, stringify)
11754 (macro_stringify): Update.
11755 (gather_arguments): Change return type. Remove argc_p argument,
11756 add args_ptr argument. Use std::vector.
11757 (substitute_args): Remove argc argument. Accept std::vector.
11758 (expand): Update. Use std::vector.
11759 (scan, macro_expand, macro_expand_next): Update.
11760
11761 2018-02-08 Tom Tromey <tom@tromey.com>
11762
11763 * symtab.c (default_collect_symbol_completion_matches_break_on):
11764 Use unique_xmalloc_ptr.
11765 * macroscope.h: (sal_macro_scope, user_macro_scope)
11766 (default_macro_scope): Return unique_xmalloc_ptr.
11767 * macroscope.c (sal_macro_scope, user_macro_scope)
11768 (default_macro_scope): Return unique_xmalloc_ptr.
11769 * macroexp.h (macro_expand, macro_expand_once): Return
11770 unique_xmalloc_ptr.
11771 * macroexp.c (macro_expand, macro_expand_once): Return
11772 unique_xmalloc_ptr.
11773 * macrocmd.c (macro_expand_command, macro_expand_once_command)
11774 (info_macro_command, info_macros_command): Use
11775 unique_xmalloc_ptr.
11776 * compile/compile-c-support.c (write_macro_definitions): Use
11777 unique_xmalloc_ptr.
11778 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11779
11780 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
11781
11782 * value.c (value_static_field): Assign field type instead of
11783 containing type when returning an optimized out value.
11784
11785 2018-02-06 Yao Qi <yao.qi@linaro.org>
11786
11787 * ft32-tdep.c (ft32_read_pc): Remove.
11788 (ft32_write_pc): Remove.
11789 (ft32_gdbarch_init): Update.
11790 * m32r-tdep.c (m32r_read_pc): Remove.
11791 (m32r_gdbarch_init): Update.
11792 * mep-tdep.c (mep_read_pc): Remove.
11793 (mep_gdbarch_init): Update.
11794 * microblaze-tdep.c (microblaze_write_pc): Remove.
11795 (microblaze_gdbarch_init): Update.
11796 * mn10300-tdep.c (mn10300_read_pc): Remove.
11797 (mn10300_write_pc): Remove.
11798 (mn10300_gdbarch_init): Update.
11799 * moxie-tdep.c (moxie_read_pc): Remove.
11800 (moxie_write_pc): Remove.
11801 (moxie_gdbarch_init): Update.
11802
11803 2018-02-06 Yao Qi <yao.qi@linaro.org>
11804
11805 * expprint.c (print_subexp_standard): Handle
11806 OP_F77_UNDETERMINED_ARGLIST.
11807 (dump_subexp_body_standard): Likewise.
11808
11809 2018-02-05 Alan Hayward <alan.hayward@arm.com>
11810
11811 * target-descriptions.c (tdesc_element_visitor) Add empty
11812 implementations.
11813 (tdesc_type): Move make_gdb_type from here.
11814 (tdesc_type_builtin): Likewise.
11815 (tdesc_type_vector): Likewise.
11816 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11817 (make_gdb_type_struct): Move from tdesc_type_with_fields.
11818 (make_gdb_type_union): Likewise.
11819 (make_gdb_type_flags): Likewise.
11820 (make_gdb_type_enum): Likewise.
11821 (make_gdb_type): New function.
11822 (tdesc_register_type): Use static make_gdb_type.
11823
11824 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11825
11826 * infcmd.c (default_print_one_register_info): Align natural-format
11827 column values consistently one under another.
11828 (pad_to_column): New function.
11829
11830 2018-02-05 Joel Brobecker <brobecker@adacore.com>
11831
11832 * dwarf2read.c (dwarf2_physname): Move commment.
11833
11834 2018-02-01 Leszek Swirski <leszeks@google.com>
11835
11836 * varobj.c (varobj_formatted_print_options): Allow recursive
11837 pretty printing if pretty printing is enabled.
11838
11839 2018-02-01 Leszek Swirski <leszeks@google.com>
11840
11841 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11842 names after a structop as a filename.
11843
11844 2018-02-01 Yao Qi <yao.qi@linaro.org>
11845
11846 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11847 (arm_record_coproc_data_proc): Likewise.
11848
11849 2018-02-01 Yao Qi <yao.qi@linaro.org>
11850
11851 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11852
11853 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11854
11855 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11856 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11857
11858 2018-01-31 Pedro Alves <palves@redhat.com>
11859
11860 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11861 * inflow.c (child_terminal_save_inferior): Wrap reference to
11862 tcgetpgrp in HAVE_TERMIOS_H.
11863 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11864 _WIN32.
11865 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11866 always iterate over all inferiors.
11867 (gdbsim_cntrl_c): Adjust.
11868 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11869
11870 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11871
11872 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11873 index type is objfile-owned if the element type is as well.
11874
11875 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11876
11877 GDB 8.1 released.
11878
11879 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11880
11881 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11882 "features/s390x-linux64.c".
11883 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11884 s390_linux32 and s390x_linux64.
11885 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11886 default tdesc.
11887 * s390-tdep.c: Include "features/s390-linux32.c" and
11888 "features/s390x-linux64.c".
11889 (s390_tdesc_valid): Add check for tdesc_has_registers.
11890 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11891 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11892 tdesc_s390x_linux64.
11893 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11894 tdesc_s390x_linux64 to...
11895 * s390-tdep.h: ...here.
11896
11897 2018-01-30 Pedro Alves <palves@redhat.com>
11898
11899 PR gdb/13211
11900 * config.in, configure: Regenerate.
11901 * configure.ac: Check for getpgid.
11902 * go32-nat.c (go32_pass_ctrlc): New.
11903 (go32_target): Install it.
11904 * inf-child.c (inf_child_target): Install
11905 child_terminal_save_inferior, child_pass_ctrlc and
11906 child_interrupt.
11907 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11908 (inf_ptrace_target): No longer install it.
11909 * infcmd.c (interrupt_target_1): Adjust.
11910 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11911 (child_interrupt): Declare.
11912 (inferior::terminal_state): New.
11913 * inflow.c (struct terminal_info): Update comments.
11914 (inferior_process_group): Delete.
11915 (terminal_is_ours): Delete.
11916 (gdb_tty_state): New.
11917 (child_terminal_init): Adjust.
11918 (is_gdb_terminal, sharing_input_terminal_1)
11919 (sharing_input_terminal): New functions.
11920 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
11921 Set the process's actual process group in the foreground if
11922 possible. Handle is_ours_for_output/is_ours distinction. Don't
11923 mark terminal as the inferior's if not sharing GDB's terminal.
11924 Don't check attach_flag.
11925 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11926 pass down a target_terminal_state.
11927 (child_terminal_save_inferior): New, factored out from ...
11928 (child_terminal_ours_1): ... this. Handle
11929 target_terminal_state::is_ours_for_output.
11930 (child_interrupt, child_pass_ctrlc): New.
11931 (inflow_inferior_exit): Clear the inferior's terminal_state.
11932 (copy_terminal_info): Copy the inferior's terminal state.
11933 (_initialize_inflow): Remove reference to terminal_is_ours.
11934 * inflow.h (inferior_process_group): Delete.
11935 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11936 * procfs.c (procfs_target): Don't install procfs_interrupt.
11937 (procfs_interrupt): Delete.
11938 * remote.c (remote_serial_quit_handler): Adjust.
11939 (remote_interrupt): Remove ptid parameter. Adjust.
11940 * target-delegates.c: Regenerate.
11941 * target.c: Include "terminal.h".
11942 (target_terminal::terminal_state): Rename to ...
11943 (target_terminal::m_terminal_state): ... this.
11944 (target_terminal::init): Adjust.
11945 (target_terminal::inferior): Adjust to per-inferior
11946 terminal_state.
11947 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
11948 (target_terminal::ours, target_terminal::ours_for_output): Use
11949 target_terminal_is_ours_kind.
11950 (target_interrupt): Remove ptid parameter. Adjust.
11951 (default_target_pass_ctrlc): Adjust.
11952 * target.h (target_ops::to_terminal_save_inferior): New field.
11953 (target_ops::to_interrupt): Remove ptid_t parameter.
11954 (target_interrupt): Remove ptid_t parameter. Update comment.
11955 (target_pass_ctrlc): Update comment.
11956 * target/target.h (target_terminal_state): New scoped enum,
11957 factored out of ...
11958 (target_terminal::terminal_state): ... here.
11959 (target_terminal::inferior): Update comments.
11960 (target_terminal::restore_inferior): New.
11961 (target_terminal::is_inferior, target_terminal::is_ours)
11962 (target_terminal::is_ours_for_output): Adjust.
11963 (target_terminal::scoped_restore_terminal_state): Adjust to
11964 rename, and call restore_inferior() instead of inferior().
11965 (target_terminal::scoped_restore_terminal_state::m_state): Change
11966 type.
11967 (target_terminal::terminal_state): Rename to ...
11968 (target_terminal::m_terminal_state): ... this and change type.
11969
11970 2018-01-30 Pedro Alves <palves@redhat.com>
11971
11972 * linux-nat.c (wait_for_signal): New function.
11973 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
11974 directly.
11975 (async_terminal_is_ours)
11976 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
11977 (linux_nat_add_target): Don't override
11978 to_terminal_inferior/to_terminal_ours.
11979
11980 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
11981
11982 * remote.c (remote_follow_fork): Don't call "detach_inferior".
11983
11984 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
11985
11986 * dwarf2read.c (free_dwo_files): Add forward-declaration.
11987 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
11988 dwarf2_per_objfile_free here.
11989 (dwarf2_per_objfile_free): Remove.
11990 (_initialize_dwarf2_read): Don't register
11991 dwarf2_per_objfile_free as a registry cleanup.
11992
11993 2018-01-27 Eli Zaretskii <eliz@gnu.org>
11994
11995 Avoid compilation errors in MinGW native builds
11996
11997 The error is triggered by including python-internal.h, and the
11998 error message is:
11999
12000 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12001 from build-gnulib/import/math.h:27,
12002 from d:/usr/Python26/include/pyport.h:235,
12003 from d:/usr/Python26/include/Python.h:58,
12004 from python/python-internal.h:94,
12005 from python/py-arch.c:24:
12006 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12007 using ::hypot;
12008 ^~~~~
12009
12010 This happens because Python headers define 'hypot' to expand t
12011 '_hypot' in the Windows builds.
12012 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12013 'hypoth'. This avoids a compilation error.
12014
12015 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12016
12017 * MAINTAINERS (Write After Approval): Fix ordering.
12018
12019 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12020
12021 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12022
12023 2018-01-26 Alan Modra <amodra@gmail.com>
12024
12025 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12026 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12027 Remove nop. Make const. Comment.
12028 (powerpc32_plt_stub_so_2): New.
12029 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12030 Correct count. Update uses.
12031 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12032 Move common code reading PLT entry word. Correct
12033 powerpc32_plt_stub PLT address calculation.
12034 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12035 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12036 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12037 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12038 (ppc64_standard_linkage8): Likewise.
12039 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12040 Correct insns description.
12041 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12042
12043 2018-01-24 Pedro Alves <palves@redhat.com>
12044
12045 GCC PR libstdc++/83906
12046 * gdbtypes.c (operator==(const dynamic_prop &,
12047 const dynamic_prop &)): New.
12048 (operator==(const range_bounds &, const range_bounds &)): New.
12049 (check_types_equal): Use them instead of memcmp.
12050 * gdbtypes.h (operator==(const dynamic_prop &,
12051 const dynamic_prop &)): Declare.
12052 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12053 (operator==(const range_bounds &, const range_bounds &)): Declare.
12054 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12055
12056 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12057
12058 * s390-linux-tdep.c (s390_record_address_mask)
12059 (s390_record_calc_disp_common, s390_record_calc_disp)
12060 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12061 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12062 (s390_process_record): Move to s390-tdep.c.
12063 (s390_linux_init_abi_any): Adjust.
12064 * s390-tdep.c (s390_record_address_mask)
12065 (s390_record_calc_disp_common, s390_record_calc_disp)
12066 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12067 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12068 (s390_process_record): Moved from s390-linux-tdep.c
12069 (s390_gdbarch_init): Adjust.
12070
12071 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12072
12073 * s390-linux-nat.c (s390-tdep.h): New include.
12074 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12075 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12076 (ALLDEPFILES): Add s390-tdep.c.
12077 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12078 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12079 * s390-tdep.h: ...this. New file.
12080 * s390-linux-tdep.c (s390-tdep.h): New include.
12081 (_initialize_s390_tdep): Rename to...
12082 (_initialize_s390_linux_tdep): ...this and adjust.
12083 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12084 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12085 s390-tdep.h.
12086 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12087 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12088 (s390_is_partial_instruction, s390_software_single_step)
12089 (is_non_branch_ril, s390_displaced_step_copy_insn)
12090 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12091 (s390_prologue_data, s390_addr, s390_store, s390_load)
12092 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12093 (s390_register_call_saved, s390_guess_tracepoint_registers)
12094 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12095 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12096 (s390_pseudo_register_name, s390_pseudo_register_type)
12097 (s390_pseudo_register_read, s390_pseudo_register_write)
12098 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12099 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12100 (s390_addr_bits_remove, s390_address_class_type_flags)
12101 (s390_address_class_type_flags_to_name)
12102 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12103 (s390_function_arg_float, s390_function_arg_vector)
12104 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12105 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12106 (s390_frame_align, s390_register_return_value, s390_return_value)
12107 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12108 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12109 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12110 (s390_trad_frame_prev_register, s390_unwind_cache)
12111 (s390_prologue_frame_unwind_cache)
12112 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12113 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12114 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12115 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12116 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12117 (s390_frame_base_address, s390_local_base_address)
12118 (s390_frame_base, s390_gcc_target_options)
12119 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12120 (s390_validate_reg_range, s390_tdesc_valid)
12121 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12122 * s390-tdep.c: ...this. New file.
12123
12124 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12125
12126 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12127 (s390_process_record, s390_gdbarch_tdep_alloc)
12128 (s390_linux_init_abi_any): Use/set new hook.
12129
12130 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12131
12132 * s390-linux-tdep.c (osabi.h): New include.
12133 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12134 (s390_linux_init_abi_any): New functions.
12135 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12136
12137 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12138
12139 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12140 tdesc_has_registers check
12141
12142 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12143
12144 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12145 (s390_validate_reg_range): New macro.
12146 (s390_gdbarch_init): Adjust.
12147
12148 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12149
12150 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12151 (s390_gdbarch_tdep_alloc): Adjust.
12152 (s390_gdbarch_init): Adjust.
12153
12154 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12155
12156 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12157 <have_tdb>: Change type to bool.
12158 (s390_gdbarch_tdep_alloc): Adjust.
12159 (s390_gdbarch_init): Adjust.
12160
12161 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12162
12163 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12164 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12165 (s390_gdbarch_tdep_alloc): New function.
12166 (s390_gdbarch_init): Allocate tdep at start and use its fields
12167 instead of separate variables.
12168
12169 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12170
12171 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12172 when looking for cached gdbarch and add comment for remaining.
12173
12174 2018-01-22 Pedro Alves <palves@redhat.com>
12175 Sergio Durigan Junior <sergiodj@redhat.com>
12176
12177 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12178 case.
12179
12180 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12181
12182 * MAINTAINERS: Update my company e-mail address.
12183
12184 2018-01-22 Yao Qi <yao.qi@linaro.org>
12185
12186 * regcache.c (cooked_write_test): New function.
12187 (_initialize_regcache): Register the test.
12188
12189 2018-01-22 Yao Qi <yao.qi@linaro.org>
12190
12191 * ia64-tdep.c (ia64_pseudo_register_read): Call
12192 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12193 * m32c-tdep.c (m32c_cat_read): Likewise.
12194 (m32c_r3r2r1r0_read): Likewise.
12195 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12196 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12197
12198 2018-01-22 Yao Qi <yao.qi@linaro.org>
12199
12200 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12201 method raw_read instead of regcache_raw_read.
12202 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12203 * arm-tdep.c (arm_neon_quad_read): Likewise.
12204 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12205 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12206 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12207 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12208 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12209 (i386_pseudo_register_read_into_value): Likewise.
12210 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12211 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12212 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12213 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12214 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12215 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12216 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12217 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12218 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12219
12220 2018-01-22 Yao Qi <yao.qi@linaro.org>
12221
12222 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12223 * configure.tgt: Remove target mt.
12224 * mt-tdep.c: Remove.
12225 * regcache.c (cooked_read_test): Remove the check for mt.
12226
12227 2018-01-22 Yao Qi <yao.qi@linaro.org>
12228
12229 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12230 instead of gdbarch_pseudo_register_read_value.
12231
12232 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12233
12234 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12235 language is Ada.
12236
12237 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12238
12239 * linespec.c (create_sals_line_offset): Remove code that preserved
12240 the symtab_and_line's line number.
12241
12242 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12243
12244 * varobj.c (varobj_create): Don't set valid_block when creating a
12245 floating varobj.
12246
12247 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12248
12249 * varobj.c (varobj_create): Remove out of date comment.
12250
12251 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12252
12253 PR mi/20395
12254 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12255 updating innermost block.
12256 * parse.c (innermost_block_tracker::update): Take extra type
12257 parameter, and check types match before updating innermost block.
12258 (write_dollar_variable): Update innermost block for registers.
12259 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12260 (innermost_block_tracker::innermost_block_tracker): Initialise
12261 m_types member.
12262 (innermost_block_tracker::reset): Take type parameter.
12263 (innermost_block_tracker::update): Take type parameter, and pass
12264 type through as needed.
12265 (innermost_block_tracker::m_types): New member.
12266 * varobj.c (varobj_create): Pass type when reseting innermost
12267 block.
12268
12269 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12270
12271 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12272 * ada-lang.c (resolve_subexp): Likewise.
12273 * breakpoint.c (set_breakpoint_condition) Likewise.
12274 (watch_command_1) Likewise.
12275 * c-exp.y (variable): Likewise.
12276 * d-exp.y (PrimaryExpression): Likewise.
12277 * f-exp.y (variable): Likewise.
12278 * go-exp.y (variable): Likewise.
12279 * m2-exp.y (variable): Likewise.
12280 * objfiles.c (objfile::~objfile): Likewise.
12281 * p-exp.y (variable): Likewise.
12282 * parse.c (innermost_block): Change type.
12283 * parser-defs.h (class innermost_block_tracker): New.
12284 (innermost_block): Change to innermost_block_tracker.
12285 * printcmd.c (display_command): Switch to innermost_block API.
12286 (do_one_display): Likewise.
12287 * rust-exp.y (do_one_display): Likewise.
12288 * symfile.c (clear_symtab_users): Likewise.
12289 * varobj.c (varobj_create): Switch to innermost_block API, replace
12290 use of innermost_block with block stored on varobj object.
12291
12292 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12293
12294 * expression.h (innermost_block): Remove declaration.
12295 * varobj.c: Add 'parser-defs.h' include.
12296
12297 2018-01-19 Tom Tromey <tom@tromey.com>
12298
12299 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12300 symbols in the static and global blocks.
12301
12302 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12303
12304 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12305 gdb_ptrace.h, and move including gdb_wait.h ...
12306 * nat/linux-ptrace.h: ... to here.
12307
12308 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12309
12310 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12311 inf_ptrace_detach_success.
12312 (inf_ptrace_detach_success): Add inferior parameter, use it
12313 instead of inferior_ptid, pass it to detach_inferior.
12314 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12315 parameter.
12316 * inferior.c (detach_inferior): Add overload that takes an
12317 inferior object.
12318 * inferior.h (detach_inferior): Likewise.
12319 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12320 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12321 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12322
12323 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12324
12325 * target.h (struct target_ops) <to_detach>: Add inferior
12326 parameter.
12327 (target_detach): Likewise.
12328 * target.c (dispose_inferior): Pass inferior down.
12329 (target_detach): Pass inferior down. Assert that it is equal to
12330 the current inferior.
12331 * aix-thread.c (aix_thread_detach): Pass inferior down.
12332 * corefile.c (core_file_command): Pass current_inferior() down.
12333 * corelow.c (core_detach): Add inferior parameter.
12334 * darwin-nat.c (darwin_detach): Likewise.
12335 * gnu-nat.c (gnu_detach): Likewise.
12336 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12337 * infcmd.c (detach_command): Pass current_inferior() down to
12338 target_detach.
12339 * infrun.c (follow_fork_inferior): Pass parent_inf to
12340 target_detach.
12341 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12342 target_detach.
12343 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12344 * linux-thread-db.c (thread_db_detach): Likewise.
12345 * nto-procfs.c (procfs_detach): Likewise.
12346 * procfs.c (procfs_detach): Likewise.
12347 * record.c (record_detach): Likewise.
12348 * record.h (struct inferior): Forward-declare.
12349 (record_detach): Add inferior parameter.
12350 * remote-sim.c (gdbsim_detach): Likewise.
12351 * remote.c (remote_detach_1): Likewise.
12352 (remote_detach): Likewise.
12353 (extended_remote_detach): Likewise.
12354 * sol-thread.c (sol_thread_detach): Likewise.
12355 * target-debug.h (target_debug_print_inferior_p): New macro.
12356 * target-delegates.c: Re-generate.
12357 * top.c (kill_or_detach): Pass inferior down to target_detach.
12358 * windows-nat.c (windows_detach): Add inferior parameter.
12359
12360 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12361
12362 * target.h (struct target_ops) <to_detach>: Remove args
12363 parameter.
12364 (target_detach): Likewise.
12365 * target.c (dispose_inferior): Adjust.
12366 (target_detach): Remove args parameter, adjust.
12367 * aix-thread.c (aix_thread_detach): Adjust.
12368 * corefile.c (core_file_command): Adjust.
12369 * corelow.c (core_detach): Adjust.
12370 * darwin-nat.c (darwin_detach): Adjust.
12371 * gnu-nat.c (gnu_detach): Adjust.
12372 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12373 * infcmd.c (detach_command): Adjust
12374 * infrun.c (follow_fork_inferior): Adjust.
12375 (handle_vfork_child_exec_or_exit): Adjust.
12376 * linux-fork.c (linux_fork_detach): Remove args parameter.
12377 * linux-fork.h (linux_fork_detach): Likewise.
12378 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12379 * linux-thread-db.c (thread_db_detach): Likewise.
12380 * nto-procfs.c (procfs_detach): Likewise.
12381 * procfs.c (procfs_detach): Likewise.
12382 (do_detach): Remove signo parameter.
12383 * record.c (record_detach): Remove args parameter.
12384 * record.h (record_detach): Likewise.
12385 * remote-sim.c (gdbsim_detach): Likewise.
12386 * remote.c (remote_detach_1): Likewise.
12387 (remote_detach): Likewise.
12388 (extended_remote_detach): Likewise.
12389 * sol-thread.c (sol_thread_detach): Likewise.
12390 * target-delegates.c: Re-generate.
12391 * top.c (struct qt_args) <args>: Remove field.
12392 (kill_or_detach): Don't pass args.
12393 (quit_force): Don't set args.
12394 * windows-nat.c (windows_detach): Remove args parameter.
12395
12396 2018-01-19 Yao Qi <yao.qi@linaro.org>
12397
12398 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12399 (arm_linux_init_abi): Install it.
12400
12401 2018-01-19 Yao Qi <yao.qi@linaro.org>
12402
12403 * osabi.c (gdb_osabi_names): Extend the regexp for
12404 arm-linux-gnueabihf.
12405
12406 2018-01-18 Yao Qi <yao.qi@linaro.org>
12407
12408 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12409 m_abbrevs.
12410 (abbrev_table::add_abbrev): Update.
12411 (abbrev_table::lookup_abbrev): Update.
12412
12413 2018-01-18 Yao Qi <yao.qi@linaro.org>
12414
12415 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12416
12417 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12418
12419 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12420 to "std::string".
12421
12422 2018-01-17 Tom Tromey <tom@tromey.com>
12423
12424 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12425
12426 2018-01-17 Tom Tromey <tom@tromey.com>
12427
12428 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12429 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12430 (create_array_type_with_stride): Update.
12431 * dwarf2read.c (set_die_type): Update.
12432
12433 2018-01-17 Tom Tromey <tom@tromey.com>
12434
12435 * dwarf2read.c (delayed_method_info): Remove typedef.
12436 (dwarf2_cu::method_info): Now a std::vector.
12437 (add_to_method_list): Update.
12438 (free_delayed_list): Remove.
12439 (compute_delayed_physnames): Update.
12440 (process_full_comp_unit, process_full_type_unit): Clear the method
12441 list. Remove cleanups.
12442 (psymtab_include_file_name): Add name_holder parameter. Use
12443 unique_xmalloc_ptr.
12444 (dwarf_decode_lines): Update.
12445
12446 2018-01-17 Tom Tromey <tom@tromey.com>
12447 Simon Marchi <simon.marchi@ericsson.com>
12448
12449 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12450 (dwarf2_per_objfile::free_cached_comp_units)
12451 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12452 (init_cutu_and_read_dies_no_follow): Update.
12453 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12454 (dwarf2_cu::~dwarf2_cu): New.
12455 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12456 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12457
12458 2018-01-17 Tom Tromey <tom@tromey.com>
12459 Simon Marchi <simon.marchi@ericsson.com>
12460
12461 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12462 (struct die_reader_specs) <abbrev_table>: New member.
12463 (struct abbrev_table): Add constructor.
12464 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12465 <abbrev_obstack>: Now an auto_obstack.
12466 (abbrev_table_up): New typedef.
12467 (init_cu_die_reader): Add abbrev_table parameter.
12468 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12469 Add result_dwo_abbrev_table.
12470 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12471 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12472 Update.
12473 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12474 parameter.
12475 (skip_children): Update.
12476 (abbrev_table::alloc_abbrev): Rename from
12477 abbrev_table_alloc_abbrev.
12478 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12479 (abbrev_table::lookup_abbrev): Rename from
12480 abbrev_table_lookup_abbrev.
12481 (abbrev_table_read_table): Return abbrev_table_up.
12482 (abbrev_table_free, abbrev_table_free_cleanup)
12483 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12484 (load_partial_dies): Update.
12485
12486 2018-01-17 Tom Tromey <tom@tromey.com>
12487
12488 * dwarf2read.c (dwarf2_compute_name): Update comment.
12489 (read_func_scope, read_variable): Update.
12490 (new_symbol): Remove.
12491 (new_symbol_full): Rename to new_symbol.
12492
12493 2018-01-17 Mike Gulick <mgulick@mathworks.com>
12494
12495 PR gdb/16577
12496 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12497 a warning instead of throwing an error, set section size to 0 and return
12498 NULL.
12499 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12500
12501 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12502
12503 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12504 std::string.
12505 (linux_ptrace_attach_fail_reason_string): Likewise.
12506 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12507 Likewise.
12508 (linux_ptrace_attach_fail_reason_string): Likewise.
12509 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12510
12511 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12512
12513 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12514
12515 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12516
12517 PR gdb/21559
12518 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12519 checking for fs_base/gs_base fields in struct user_regs_struct.
12520 * configure: Regenerate.
12521
12522 2018-01-17 Yao Qi <yao.qi@linaro.org>
12523
12524 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12525 function.
12526 (aarch64_linux_init_abi): Install it to gdbarch hook
12527 gcc_target_options.
12528
12529 2018-01-15 Pedro Alves <palves@redhat.com>
12530
12531 * common/signals-state-save-restore.c
12532 (save_original_signals_state): Fix typos.
12533
12534 2017-01-12 Tom Tromey <tom@tromey.com>
12535 Sergio Durigan Junior <sergiodj@redhat.com>
12536
12537 * Makefile.in (install-only): Install gdb-add-index.
12538
12539 2018-01-12 John Baldwin <jhb@FreeBSD.org>
12540
12541 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12542
12543 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12544
12545 * infrun.c (keep_going_pass_signal): Clear step-over info when
12546 insert_breakpoints fails.
12547
12548 2018-01-11 Pedro Alves <palves@redhat.com>
12549
12550 PR gdb/22583
12551 * infrun.c (resume): Rename to ...
12552 (resume_1): ... this.
12553 (resume): Reimplement as wrapper around resume_1.
12554
12555 2018-01-11 Pedro Alves <palves@redhat.com>
12556
12557 PR remote/22597
12558 * remote.c (remote_parse_stop_reply): Default to the last-set
12559 general thread instead of to 'magic_null_ptid'.
12560
12561 2018-01-10 Pedro Alves <palves@redhat.com>
12562
12563 * language.h (language_get_symbol_name_matcher): Rename ...
12564 (get_symbol_name_matcher): ... this.
12565 * language.c (language_get_symbol_name_matcher): Ditto.
12566 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12567 callers adjusted.
12568
12569 2018-01-10 Pedro Alves <palves@redhat.com>
12570
12571 PR gdb/22670
12572 * dwarf2read.c
12573 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12574 Adjust to use language_get_symbol_name_matcher instead of
12575 language_defn::la_get_symbol_name_matcher.
12576 * language.c (language_get_symbol_name_matcher): If in Ada mode
12577 and the lookup name is a verbatim match, return Ada's matcher.
12578 * language.h (language_get_symbol_name_matcher): Adjust comment.
12579 (ada_lookup_name_info::verbatim_p):: New method.
12580
12581 2018-01-10 Pedro Alves <palves@redhat.com>
12582
12583 PR gdb/22670
12584 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12585 minsym's language is language_auto or language_cplus, pass down
12586 language_ada instead.
12587 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12588
12589 2018-01-10 Pedro Alves <palves@redhat.com>
12590
12591 PR gdb/22670
12592 * minsyms.c (linkage_name_str): New function.
12593 (iterate_over_minimal_symbols): Use it.
12594
12595 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12596
12597 * NEWS: Document that 'info proc' now works on FreeBSD.
12598
12599 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12600
12601 * configure.ac: Check for kinfo_getfile in libutil.
12602 * configure: Regenerate.
12603 * config.in: Regenerate.
12604 * fbsd-nat.c: Include "fbsd-tdep.h".
12605 (fbsd_fetch_cmdline): New.
12606 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12607 rather than calling error.
12608 (fbsd_info_proc): New.
12609 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12610 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12611 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12612
12613 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12614
12615 * fbsd-nat.c (struct free_deleter): Remove.
12616 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12617
12618 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12619
12620 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12621 NULL for an empty pathname.
12622
12623 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12624
12625 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12626 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12627 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12628 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12629 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12630 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12631 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12632 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12633 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12634 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12635 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12636 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12637 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12638 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12639 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12640
12641 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12642
12643 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12644 (gnu_xfer_auxv): New function.
12645 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12646 TARGET_OBJECT_AUXV.
12647
12648 2018-01-08 Yao Qi <yao.qi@linaro.org>
12649 Simon Marchi <simon.marchi@ericsson.com>
12650
12651 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12652 common/selftest.c.
12653 (COMMON_OBS): Remove selftest.o.
12654 * configure.ac: Append selftest-arch.c and common/selftest.c to
12655 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12656 * configure: Re-generated.
12657 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12658 GDB_SELF_TEST.
12659 (maintenance_info_selftests): Likewise.
12660
12661 2018-01-08 Xavier Roirand <roirand@adacore.com>
12662
12663 * ada-valprint.c (val_print_packed_array_elements): Use
12664 proper number of elements when printing an array indexed
12665 by an enumeration type.
12666
12667 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12668
12669 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12670 (dw2_get_file_names_reader): Adjust.
12671 (lookup_dwo_signatured_type): Adjust.
12672 (lookup_dwp_signatured_type): Adjust.
12673 (lookup_signatured_type): Adjust.
12674 (create_type_unit_group): Adjust.
12675 (get_type_unit_group): Adjust.
12676 (process_psymtab_comp_unit_reader): Adjust.
12677 (build_type_psymtabs_reader): Adjust.
12678 (scan_partial_symbols): Adjust.
12679 (add_partial_symbol): Adjust.
12680 (add_partial_subprogram): Adjust.
12681 (peek_die_abbrev): Adjust.
12682 (fixup_go_packaging): Adjust.
12683 (process_imported_unit_die): Adjust.
12684 (dwarf2_compute_name): Adjust.
12685 (dwarf2_physname): Adjust.
12686 (read_import_statement): Adjust.
12687 (handle_DW_AT_stmt_list): Adjust.
12688 (read_file_scope): Adjust.
12689 (read_func_scope): Adjust.
12690 (read_lexical_block_scope): Adjust.
12691 (read_call_site_scope): Adjust.
12692 (read_variable): Adjust.
12693 (dwarf2_rnglists_process): Adjust.
12694 (dwarf2_ranges_process): Adjust.
12695 (dwarf2_ranges_read): Adjust.
12696 (dwarf2_get_pc_bounds): Adjust.
12697 (dwarf2_record_block_ranges): Adjust.
12698 (dwarf2_add_field): Adjust.
12699 (dwarf2_add_member_fn): Adjust.
12700 (read_structure_type): Adjust.
12701 (process_structure_scope): Adjust.
12702 (read_enumeration_type): Adjust.
12703 (read_array_type): Adjust.
12704 (mark_common_block_symbol_computed): Adjust.
12705 (read_common_block): Adjust.
12706 (read_namespace_type): Adjust.
12707 (read_namespace): Adjust.
12708 (read_module_type): Adjust.
12709 (read_tag_pointer_type): Adjust.
12710 (read_tag_ptr_to_member_type): Adjust.
12711 (read_tag_string_type): Adjust.
12712 (read_subroutine_type): Adjust.
12713 (read_typedef): Adjust.
12714 (read_base_type): Adjust.
12715 (attr_to_dynamic_prop): Adjust.
12716 (read_subrange_type): Adjust.
12717 (read_unspecified_type): Adjust.
12718 (dwarf2_read_abbrevs): Adjust.
12719 (load_partial_dies): Adjust.
12720 (read_partial_die): Adjust.
12721 (find_partial_die): Adjust.
12722 (guess_partial_die_structure_name): Adjust.
12723 (fixup_partial_die): Adjust.
12724 (read_attribute_value): Adjust.
12725 (read_addr_index): Adjust.
12726 (read_addr_index_from_leb128): Adjust.
12727 (read_str_index): Adjust.
12728 (dwarf2_string_attr): Adjust.
12729 (get_debug_line_section): Adjust.
12730 (dwarf_decode_line_header): Adjust.
12731 (lnp_state_machine::check_line_address): Adjust.
12732 (dwarf_decode_lines_1): Adjust.
12733 (dwarf_decode_lines): Adjust.
12734 (dwarf2_start_symtab): Adjust.
12735 (var_decode_location): Adjust.
12736 (new_symbol_full): Adjust.
12737 (dwarf2_const_value_data): Adjust.
12738 (dwarf2_const_value_attr): Adjust.
12739 (dwarf2_const_value): Adjust.
12740 (die_type): Adjust.
12741 (die_containing_type): Adjust.
12742 (build_error_marker_type): Adjust.
12743 (lookup_die_type): Adjust.
12744 (guess_full_die_structure_name): Adjust.
12745 (anonymous_struct_prefix): Adjust.
12746 (determine_prefix): Adjust.
12747 (dwarf2_name): Adjust.
12748 (follow_die_ref_or_sig): Adjust.
12749 (follow_die_offset): Adjust.
12750 (follow_die_ref): Adjust.
12751 (follow_die_sig_1): Adjust.
12752 (follow_die_sig): Adjust.
12753 (get_signatured_type): Adjust.
12754 (get_DW_AT_signature_type): Adjust.
12755 (decode_locdesc): Adjust.
12756 (dwarf_decode_macros): Adjust.
12757 (cu_debug_loc_section): Adjust.
12758 (fill_in_loclist_baton): Adjust.
12759 (dwarf2_symbol_mark_computed): Adjust.
12760 (init_one_comp_unit): Don't assign
12761 dwarf2_cu::dwarf2_per_objfile.
12762 (set_die_type): Adjust.
12763
12764 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12765
12766 * dwarf2read.c (struct mapped_debug_names): Add constructor.
12767 <dwarf2_per_objfile>: New field.
12768 (dwarf2_per_objfile): Remove global.
12769 (get_dwarf2_per_objfile): New function.
12770 (set_dwarf2_per_objfile): New function.
12771 (dwarf2_build_psymtabs_hard): Change objfile parameter to
12772 dwarf2_per_objfile.
12773 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12774 (read_abbrev_offset): Likewise.
12775 (read_indirect_string): Likewise.
12776 (read_indirect_line_string): Likewise.
12777 (read_indirect_string_at_offset): Likewise.
12778 (read_indirect_string_from_dwz): Likewise.
12779 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12780 dwarf2_per_objfile.
12781 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12782 (create_all_comp_units): Change objfile parameter to
12783 dwarf2_per_objfile.
12784 (create_all_type_units): Likewise.
12785 (process_queue): Add dwarf2_per_objfile parameter.
12786 (read_and_check_comp_unit_head): Likewise.
12787 (lookup_dwo_unit_in_dwp): Likewise.
12788 (get_dwp_file): Likewise.
12789 (process_cu_includes): Likewise.
12790 (struct free_dwo_file_cleanup_data): New struct.
12791 (dwarf2_has_info): Use get_dwarf2_per_objfile and
12792 set_dwarf2_per_objfile.
12793 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12794 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12795 context, adjust calls.
12796 (dw2_instantiate_symtab): Likewise.
12797 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12798 (dw2_get_cu): Likewise.
12799 (create_cu_from_index_list): Change objfile parameter to
12800 dwarf2_per_objfile.
12801 (create_cus_from_index_list): Get dwarf2_per_objfile from
12802 context, adjust calls.
12803 (create_cus_from_index): Likewise.
12804 (create_signatured_type_table_from_index): Change objfile
12805 parameter to dwarf2_per_objfile.
12806 (create_signatured_type_table_from_debug_names): Change objfile
12807 parameter to dwarf2_per_objfile.
12808 (create_addrmap_from_index): Likewise.
12809 (create_addrmap_from_aranges): Likewise.
12810 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12811 (dw2_setup): Remove.
12812 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12813 context.
12814 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12815 get_dwarf2_per_objfile.
12816 (dw2_forget_cached_source_info): Likewise.
12817 (dw2_map_symtabs_matching_filename): Likewise.
12818 (struct dw2_symtab_iterator) <index>: Remove.
12819 <dwarf2_per_objfile>: New field.
12820 (dw2_symtab_iter_init): Replace index parameter with
12821 dwarf2_per_objfile.
12822 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12823 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12824 (dw2_print_stats): Likewise.
12825 (dw2_dump): Likewise.
12826 (dw2_expand_symtabs_for_function): Likewise.
12827 (dw2_expand_all_symtabs): Likewise.
12828 (dw2_expand_symtabs_with_fullname): Likewise.
12829 (dw2_expand_marked_cus): Replace index and objfile parameters
12830 with dwarf2_per_objfile.
12831 (dw_expand_symtabs_matching_file_matcher): Add
12832 dwarf2_per_objfile parameter and adjust calls.
12833 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12834 adjust calls.
12835 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12836 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12837 adjust calls.
12838 (create_cus_from_debug_names_list): Replace objfile parameter
12839 with dwarf2_per_objfile and adjust calls.
12840 (create_cus_from_debug_names): Likewise.
12841 (dwarf2_read_debug_names): Likewise.
12842 (mapped_debug_names::namei_to_name): Adjust call.
12843 (dw2_debug_names_iterator::next): Likewise.
12844 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12845 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12846 (dw2_debug_names_dump): Likewise.
12847 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12848 (dw2_debug_names_expand_symtabs_matching): Likewise.
12849 (dwarf2_initialize_objfile): Likewise.
12850 (dwarf2_build_psymtabs): Likewise.
12851 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12852 this_cu.
12853 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12854 (read_and_check_comp_unit_head): Likewise.
12855 (read_abbrev_offset): Likewise.
12856 (create_debug_type_hash_table): Likewise.
12857 (create_debug_types_hash_table): Likewise.
12858 (create_all_type_units): Replace objfile parameter with
12859 dwarf2_per_objfile.
12860 (add_type_unit): Add dwarf2_per_objfile parameter.
12861 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12862 with dwarf2_per_objfile.
12863 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12864 (lookup_dwp_signatured_type): Likewise.
12865 (lookup_signatured_type): Likewise.
12866 (read_cutu_die_from_dwo): Likewise.
12867 (init_tu_and_read_dwo_dies): Likewise.
12868 (init_cutu_and_read_dies): Likewise.
12869 (init_cutu_and_read_dies_no_follow): Likewise.
12870 (allocate_type_unit_groups_table): Add objfile parameter.
12871 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12872 (get_type_unit_group): Likewise.
12873 (process_psymtab_comp_unit): Update call.
12874 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12875 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12876 (print_tu_stats): Likewise.
12877 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12878 in void* parameter.
12879 (build_type_psymtabs): Change objfile parameter to
12880 dwarf2_per_objfile.
12881 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12882 passed in void* parameter.
12883 (process_skeletonless_type_units): Change objfile parameter to
12884 dwarf2_per_objfile.
12885 (set_partial_user): Likewise.
12886 (dwarf2_build_psymtabs_hard): Likewise.
12887 (read_comp_units_from_section): Likewise.
12888 (create_all_comp_units): Likewise.
12889 (scan_partial_symbols): Update calls.
12890 (add_partial_symbol): Likewise.
12891 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12892 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12893 (process_queue): Add dwarf2_per_objfile parameter.
12894 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12895 (compute_compunit_symtab_includes): Likewise.
12896 (process_cu_includes): Add dwarf2_per_objfile parameter.
12897 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12898 (process_full_type_unit): Likewise.
12899 (process_imported_unit_die): Update call.
12900 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12901 (read_file_scope): Likewise.
12902 (allocate_dwo_file_hash_table): Add objfile parameter.
12903 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12904 (create_cus_hash_table): Likewise.
12905 (create_dwp_hash_table): Likewise.
12906 (create_dwo_unit_in_dwp_v1): Likewise.
12907 (create_dwp_v2_section): Likewise.
12908 (create_dwo_unit_in_dwp_v2): Likewise.
12909 (lookup_dwo_unit_in_dwp): Likewise.
12910 (try_open_dwop_file): Likewise.
12911 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12912 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12913 cleanup to include a reference to dwarf2_per_objfile.
12914 (open_dwp_file): Add dwarf2_per_objfile parameter.
12915 (open_and_init_dwp_file): Likewise.
12916 (get_dwp_file): Likewise.
12917 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12918 (queue_and_load_all_dwo_tus): Update call.
12919 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12920 data.
12921 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12922 (dwarf2_ranges_process): Likewise.
12923 (dwarf2_get_pc_bounds): Likewise.
12924 (mark_common_block_symbol_computed): Likewise.
12925 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12926 (dwarf2_read_abbrevs): Update call.
12927 (read_partial_die): Use dwarf2_per_objfile from cu.
12928 (find_partial_die): Likewise.
12929 (fixup_partial_die): Likewise.
12930 (read_attribute_value): Likewise.
12931 (read_indirect_string_at_offset_from): Add objfile parameter.
12932 (read_indirect_string_at_offset): Add dwarf2_per_objfile
12933 parameter.
12934 (read_indirect_string_from_dwz): Add objfile parameter.
12935 (read_indirect_string): Add objfile parameter.
12936 (read_addr_index_1): Add dwarf2_per_objfile parameter.
12937 (read_addr_index): Use dwarf2_per_objfile from cu.
12938 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12939 call dw2_setup.
12940 (read_str_index): Use dwarf2_per_objfile from cu.
12941 (get_debug_line_section): Likewise.
12942 (read_formatted_entries): Add dwarf2_per_objfile parameter.
12943 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
12944 (new_symbol_full): Use dwarf2_per_objfile from cu.
12945 (build_error_marker_type): Likewise.
12946 (lookup_die_type): Likewise.
12947 (determine_prefix): Likewise.
12948 (follow_die_offset): Likewise.
12949 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
12950 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
12951 (dwarf2_fetch_die_type_sect_off): Likewise.
12952 (dwarf2_get_die_type): Likewise.
12953 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
12954 (get_signatured_type): Likewise.
12955 (get_DW_AT_signature_type): Likewise.
12956 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
12957 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
12958 (cu_debug_loc_section): Likewise.
12959 (fill_in_loclist_baton): Likewise.
12960 (dwarf2_symbol_mark_computed): Likewise.
12961 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12962 dwarf2_per_objfile.
12963 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
12964 parameter.
12965 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12966 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
12967 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
12968 (set_die_type): Use dwarf2_free_objfile from cu.
12969 (get_die_type_at_offset): Likewise.
12970 (dwarf2_per_objfile_free): Don't assign global variable.
12971 (debug_names) <constructor>: Add dwarf2_per_objfile
12972 parameter, update m_debugstrlookup construction.
12973 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
12974 parameter.
12975 <m_dwarf2_per_objfile>: New field.
12976 <lookup>: Use m_dwarf2_per_objfile.
12977 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
12978 (psyms_seen_size): Likewise.
12979 (write_gdbindex): Replace objfile parameter with
12980 dwarf2_per_objfile.
12981 (write_debug_names): Likewise.
12982 (write_psymtabs_to_index): Likewise.
12983 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
12984 calls.
12985
12986 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12987
12988 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
12989 <dwarf2_per_objfile>: New field.
12990 (struct dwarf2_per_cu_data) <objfile>: Remove.
12991 <dwarf2_per_objfile>: New field.
12992 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
12993 of objfile.
12994 (create_signatured_type_table_from_index): Likewise.
12995 (create_debug_type_hash_table): Likewise.
12996 (fill_in_sig_entry_from_dwo_entry): Likewise.
12997 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
12998 (create_type_unit_group): Assign dwarf2_per_objfile instead of
12999 objfile.
13000 (create_partial_symtab): Access objfile through
13001 dwarf2_per_objfile.
13002 (process_psymtab_comp_unit_reader): Likewise.
13003 (read_comp_units_from_section): Likewise.
13004 (scan_partial_symbols): Likewise.
13005 (add_partial_symbol): Likewise.
13006 (add_partial_subprogram): Likewise.
13007 (peek_die_abbrev): Likewise.
13008 (fixup_go_packaging): Likewise.
13009 (process_full_comp_unit): Likewise.
13010 (process_full_type_unit): Likewise.
13011 (process_imported_unit_die): Likewise.
13012 (dwarf2_compute_name): Likewise.
13013 (dwarf2_physname): Likewise.
13014 (read_import_statement): Likewise.
13015 (create_cus_hash_table): Assign dwarf2_physname instead of
13016 objfile.
13017 (read_func_scope): Access objfile through dwarf2_per_objfile.
13018 (read_lexical_block_scope): Likewise.
13019 (read_call_site_scope): Likewise.
13020 (read_variable): Likewise.
13021 (dwarf2_rnglists_process): Likewise.
13022 (dwarf2_ranges_process): Likewise.
13023 (dwarf2_ranges_read): Likewise.
13024 (dwarf2_record_block_ranges): Likewise.
13025 (dwarf2_add_field): Likewise.
13026 (dwarf2_add_member_fn): Likewise.
13027 (read_structure_type): Likewise.
13028 (process_structure_scope): Likewise.
13029 (read_enumeration_type): Likewise.
13030 (read_array_type): Likewise.
13031 (read_common_block): Likewise.
13032 (read_namespace_type): Likewise.
13033 (read_namespace): Likewise.
13034 (read_module_type): Likewise.
13035 (read_tag_pointer_type): Likewise.
13036 (read_tag_ptr_to_member_type): Likewise.
13037 (read_tag_string_type): Likewise.
13038 (read_subroutine_type): Likewise.
13039 (read_typedef): Likewise.
13040 (read_base_type): Likewise.
13041 (attr_to_dynamic_prop): Likewise.
13042 (read_subrange_type): Likewise.
13043 (read_unspecified_type): Likewise.
13044 (load_partial_dies): Likewise.
13045 (read_partial_die): Likewise.
13046 (find_partial_die): Likewise.
13047 (guess_partial_die_structure_name): Likewise.
13048 (fixup_partial_die): Likewise.
13049 (read_attribute_value): Likewise.
13050 (read_addr_index_from_leb128): Likewise.
13051 (dwarf2_read_addr_index): Likewise.
13052 (dwarf2_string_attr): Likewise.
13053 (lnp_state_machine::check_line_address): Likewise.
13054 (dwarf_decode_lines_1): Likewise.
13055 (dwarf_decode_lines): Likewise.
13056 (dwarf2_start_symtab): Likewise.
13057 (var_decode_location): Likewise.
13058 (new_symbol_full): Likewise.
13059 (dwarf2_const_value_data): Likewise.
13060 (dwarf2_const_value_attr): Likewise.
13061 (dwarf2_const_value): Likewise.
13062 (die_type): Likewise.
13063 (die_containing_type): Likewise.
13064 (lookup_die_type): Likewise.
13065 (guess_full_die_structure_name): Likewise.
13066 (anonymous_struct_prefix): Likewise.
13067 (dwarf2_name): Likewise.
13068 (follow_die_ref_or_sig): Likewise.
13069 (follow_die_offset): Likewise.
13070 (follow_die_ref): Likewise.
13071 (dwarf2_fetch_die_loc_sect_off): Likewise.
13072 (dwarf2_fetch_constant_bytes): Likewise.
13073 (dwarf2_fetch_die_type_sect_off): Likewise.
13074 (dwarf2_get_die_type): Likewise.
13075 (follow_die_sig): Likewise.
13076 (decode_locdesc): Likewise.
13077 (dwarf2_per_cu_objfile): Likewise.
13078 (dwarf2_per_cu_text_offset): Likewise.
13079 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13080 objfile.
13081 (set_die_type): Access objfile through
13082 dwarf2_per_objfile.
13083
13084 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13085
13086 * valprint.c (converted_character_d): Remove typedef.
13087 (DEF_VEC_O (converted_character_d)): Remove.
13088 (count_next_character): Use std::vector.
13089 (print_converted_chars_to_obstack): Likewise.
13090 (generic_printstr): Likewise.
13091
13092 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13093
13094 * xml-support.h (struct gdb_xml_value): Add constructor.
13095 <value>: Change type to unique_xmalloc_ptr.
13096 (gdb_xml_value_s): Remove typedef.
13097 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13098 (gdb_xml_element_start_handler): Change parameter type to
13099 std::vector.
13100 (xml_find_attribute): Likewise.
13101 * xml-support.c (xml_find_attribute): Change parameter type to
13102 std::vector and adjust.
13103 (gdb_xml_values_cleanup): Remove.
13104 (gdb_xml_parser::start_element): Adjust to std::vector.
13105 (xinclude_start_include): Change paraeter type to std::vector
13106 and adjust.
13107 * btrace.c (check_xml_btrace_version): Likewise.
13108 (parse_xml_btrace_block): Likewise.
13109 (parse_xml_btrace_pt_config_cpu): Likewise.
13110 (parse_xml_btrace_pt): Likewise.
13111 (parse_xml_btrace_conf_bts): Likewise.
13112 (parse_xml_btrace_conf_pt): Likewise.
13113 * memory-map.c (memory_map_start_memory): Likewise.
13114 (memory_map_start_property): Likewise.
13115 * osdata.c (osdata_start_osdata): Likewise.
13116 (osdata_start_item): Likewise.
13117 (osdata_start_column): Likewise.
13118 * remote.c (start_thread): Likewise.
13119 * solib-aix.c (library_list_start_library): Likewise.
13120 (library_list_start_list): Likewise.
13121 * solib-svr4.c (library_list_start_library): Likewise.
13122 (svr4_library_list_start_list): Likewise.
13123 * solib-target.c (library_list_start_segment): Likewise.
13124 (library_list_start_section): Likewise.
13125 (library_list_start_library): Likewise.
13126 (library_list_start_list): Likewise.
13127 * tracepoint.c (traceframe_info_start_memory): Likewise.
13128 (traceframe_info_start_tvar): Likewise.
13129 * xml-syscall.c (syscall_start_syscall): Likewise.
13130 * xml-tdesc.c (tdesc_start_target): Likewise.
13131 (tdesc_start_feature): Likewise.
13132 (tdesc_start_reg): Likewise.
13133 (tdesc_start_union): Likewise.
13134 (tdesc_start_struct): Likewise.
13135 (tdesc_start_flags): Likewise.
13136 (tdesc_start_enum): Likewise.
13137 (tdesc_start_field): Likewise.
13138 (tdesc_start_enum_value): Likewise.
13139 (tdesc_start_vector): Likewise.
13140
13141 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13142
13143 * extension.h (struct xmethod_worker) <clone>: Remove.
13144 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13145 Remove.
13146 (python_xmethod_worker::clone): Remove.
13147 * valops.c (find_overload_match): Use std::move instead of
13148 clone.
13149
13150 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13151
13152 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13153 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13154 <free_xmethod_worker_data>: Remove.
13155 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13156 <get_xmethod_arg_types>: Remove.
13157 <get_xmethod_result_type>: Remove.
13158 <invoke_xmethod>: Remove.
13159 * extension.c (new_xmethod_worker): Remove.
13160 (clone_xmethod_worker): Remove.
13161 (get_matching_xmethod_workers): Return void, pass std::vector by
13162 pointer.
13163 (get_xmethod_arg_types): Rename to...
13164 (xmethod_worker::get_arg_types): ... this, and adjust.
13165 (get_xmethod_result_type): Rename to...
13166 (xmethod_worker::get_result_type): ... this, and adjust.
13167 (invoke_xmethod): Remove.
13168 (free_xmethod_worker): Remove.
13169 (free_xmethod_worker_vec): Remove.
13170 * extension.h (enum ext_lang_rc): Move here from
13171 extension-priv.h.
13172 (struct xmethod_worker): Add constructor and destructor.
13173 <data>: Remove.
13174 <value>: Remove.
13175 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13176 virtual pure methods.
13177 <get_arg_types, get_result_type>: New methods.
13178 (xmethod_worker_ptr): Remove typedef.
13179 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13180 (xmethod_worker_vec): Remove typedef.
13181 (xmethod_worker_up): New typedef.
13182 (invoke_xmethod): Remove.
13183 (clone_xmethod_worker): Remove.
13184 (free_xmethod_worker): Remove.
13185 (free_xmethod_worker_vec): Remove.
13186 (get_xmethod_arg_types): Remove.
13187 (get_xmethod_result_type): Remove.
13188 * valops.c (find_method_list): Use std::vector, don't use
13189 intermediate vector.
13190 (value_find_oload_method_list): Use std::vector.
13191 (find_overload_match): Use std::vector.
13192 (find_oload_champ): Use std::vector.
13193 * value.c (value_free): Use operator delete.
13194 (value_of_xmethod): Rename to...
13195 (value_from_xmethod): ... this. Don't assign
13196 xmethod_worker::value, take rvalue-reference.
13197 (result_type_of_xmethod): Adjust.
13198 (call_xmethod): Adjust.
13199 * value.h: Include extension.h.
13200 (struct xmethod_worker): Don't forward-declare.
13201 (value_of_xmethod): Rename to...
13202 (value_from_xmethod): ... this, take rvalue-reference.
13203 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13204 (struct python_xmethod_worker): ... this, add constructor and
13205 destructor.
13206 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13207 (gdbpy_free_xmethod_worker_data): Rename to...
13208 (python_xmethod_worker::~python_xmethod_worker): ... this and
13209 adjust.
13210 (gdbpy_clone_xmethod_worker_data): Rename to...
13211 (python_xmethod_worker::clone): ... this and adjust.
13212 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13213 temporary vector.
13214 (gdbpy_get_xmethod_arg_types): Rename to...
13215 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13216 (gdbpy_get_xmethod_result_type): Rename to...
13217 (python_xmethod_worker::do_get_result_type): ... this and
13218 adjust.
13219 (gdbpy_invoke_xmethod): Rename to...
13220 (python_xmethod_worker::invoke): ... this and adjust.
13221 (new_python_xmethod_worker): Rename to...
13222 (python_xmethod_worker::python_xmethod_worker): ... this and
13223 adjust.
13224 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13225 Remove.
13226 (gdbpy_free_xmethod_worker_data): Remove.
13227 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13228 (gdbpy_get_xmethod_arg_types): Remove.
13229 (gdbpy_get_xmethod_result_type): Remove.
13230 (gdbpy_invoke_xmethod): Remove.
13231 * python/python.c (python_extension_ops): Remove obsolete
13232 callbacks.
13233
13234 2018-01-05 Pedro Alves <palves@redhat.com>
13235
13236 PR gdb/18653
13237 * common/signals-state-save-restore.c
13238 (save_original_signals_state): New parameter 'quiet'. Warn if we
13239 find a custom handler preinstalled, instead of internal erroring.
13240 But only warn if !quiet.
13241 * common/signals-state-save-restore.h
13242 (save_original_signals_state): New parameter 'quiet'.
13243 * main.c (captured_main_1): Move save_original_signals_state call
13244 after option handling, and pass QUIET.
13245
13246 2018-01-05 Pedro Alves <palves@redhat.com>
13247
13248 * spu-tdep.c (spu_catch_start): Pass
13249 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13250
13251 2018-01-05 Pedro Alves <palves@redhat.com>
13252
13253 PR gdb/22670
13254 * ada-lang.c (literal_symbol_name_matcher): New function.
13255 (ada_get_symbol_name_matcher): Use it for
13256 symbol_name_match_type::SEARCH_NAME.
13257 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13258 it down instead of assuming symbol_name_match_type::FULL.
13259 * block.h (block_lookup_symbol): New parameter 'match_type'.
13260 * c-valprint.c (print_unpacked_pointer): Use
13261 lookup_symbol_search_name instead of lookup_symbol.
13262 * compile/compile-object-load.c (get_out_value_type): Pass down
13263 symbol_name_match_type::SEARCH_NAME.
13264 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13265 symbol_name_match_type::FULL.
13266 * cp-support.c (cp_get_symbol_name_matcher): Handle
13267 symbol_name_match_type::SEARCH_NAME.
13268 * infrun.c (insert_exception_resume_breakpoint): Use
13269 lookup_symbol_search_name.
13270 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13271 * psymtab.c (maintenance_check_psymtabs): Use
13272 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13273 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13274 SYMBOL_SEARCH_NAME.
13275 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13276 if symbol_name_match_type::SEARCH_NAME.
13277 (lookup_symbol_in_language): Pass down
13278 symbol_name_match_type::FULL.
13279 (lookup_symbol_search_name): New.
13280 (lookup_language_this): Pass down
13281 symbol_name_match_type::SEARCH_NAME.
13282 (lookup_symbol_aux, lookup_local_symbol): New parameter
13283 'match_type'. Pass it down.
13284 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13285 (lookup_symbol_search_name): New declaration.
13286 (lookup_symbol_in_block): New 'match_type' parameter.
13287
13288 2018-01-05 Pedro Alves <palves@redhat.com>
13289
13290 PR gdb/22670
13291 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13292 ada_lookup_symbol.
13293 (ada_lookup_symbol): Reimplement in terms of
13294 ada_lookup_symbol_list, bits factored out from
13295 ada_lookup_encoded_symbol.
13296
13297 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13298
13299 * ada-exp.y (write_object_renaming): When subscripting an array
13300 using a symbol as the index, pass the block in call to
13301 ada_lookup_encoded_symbol when looking that symbol up.
13302
13303 2018-01-05 Jerome Guitton <guitton@adacore.com>
13304
13305 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13306 TYPE_INDEX_TYPE.
13307
13308 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13309
13310 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13311 the case where VALUE_LVAL (val0) is not lval_memory.
13312
13313 2018-01-05 Xavier Roirand <roirand@adacore.com>
13314
13315 * ada-valprint.c (print_optional_low_bound): Handle
13316 character-indexed array printing like boolean-indexed array
13317 printing.
13318
13319 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13320
13321 * NEWS: Create a new section for the next release branch.
13322 Rename the section of the current branch, now that it has
13323 been cut.
13324
13325 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13326
13327 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13328 * version.in: Bump version to 8.1.50.DATE-git.
13329
13330 2018-01-03 Xavier Roirand <roirand@adacore.com>
13331
13332 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13333 Add field.
13334 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13335 Add field.
13336 (default_exception_support_info) <catch_handlers_sym>: Add field.
13337 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13338 (ada_exception_name_addr_1): Add "catch handlers" handling.
13339 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13340 Update all callers.
13341 (create_excep_cond_exprs) <ex>: Add parameter.
13342 (re_set_exception): Update create_excep_cond_exprs call.
13343 (print_it_exception, print_one_exception, print_mention_exception)
13344 (print_recreate_exception): Add "catch handler" handling.
13345 (allocate_location_catch_handlers, re_set_catch_handlers)
13346 (check_status_catch_handlers, print_it_catch_handlers)
13347 (print_one_catch_handlers, print_mention_catch_handlers)
13348 (print_recreate_catch_handlers): New function.
13349 (catch_handlers_breakpoint_ops): New variable.
13350 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13351 Add parameter. Add "catch handler" handling.
13352 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13353 Add "catch handler" handling.
13354 (ada_exception_catchpoint_cond_string): Add "catch handler"
13355 handling.
13356 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13357 call.
13358 (catch_ada_handlers_command): New function.
13359 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13360 operations structure.
13361 (_initialize_ada_language): Add "catch handlers" command entry.
13362 * NEWS: Document "catch handlers" feature.
13363
13364 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13365
13366 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13367 account when creating the array type of the slice.
13368 (ada_value_slice): Likewise.
13369
13370 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13371
13372 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13373 New enum value.
13374 (create_array_type_with_stride): Add byte_stride_prop parameter.
13375 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13376 New parameter. Update all callers in this file.
13377 (array_type_has_dynamic_stride): New function.
13378 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13379 of arrays with dynamic byte strides.
13380 * dwarf2read.c (read_array_type): Add support for dynamic
13381 DW_AT_byte_stride attributes.
13382
13383 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13384
13385 * dwarf2read.c (read_unspecified_type): Treat
13386 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13387
13388 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13389
13390 Update copyright year range in all GDB files.
13391
13392 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13393
13394 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13395 and gdb/testsuite/gdb.base/step-line.c.
13396
13397 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13398
13399 * copyright.py (main): Dump the contents of
13400 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13401 even if BY_HAND is empty.
13402
13403 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13404
13405 * top.c (print_gdb_version): Update Copyright year in version
13406 message.
13407
13408 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13409
13410 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13411
13412 For older changes see ChangeLog-2017.
13413 \f
13414 Local Variables:
13415 mode: change-log
13416 left-margin: 8
13417 fill-column: 74
13418 version-control: never
13419 coding: utf-8
13420 End:
This page took 0.305132 seconds and 4 git commands to generate.