Fix a typo in a comment.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
88f22c34
JB
12018-09-12 John Baldwin <jhb@FreeBSD.org>
2
3 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
4 typo.
5
3c025cfe
SDJ
62018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
7
8 * common/common-utils.c: Don't include '<sys/stat.h>'.
9 (is_regular_file): Move to...
10 * common/filestuff.c (is_regular_file): ... here.
11 * common/common-utils.h (is_regular_file): Move to...
12 * common/filestuff.h (is_regular_file): ... here.
13
3e68067f
SM
142018-09-12 Simon Marchi <simon.marchi@ericsson.com>
15
16 * skip.c (debug_skip): New variable.
17 (skiplist_entry::do_skip_file_p): Add debug output.
18 (skiplist_entry::do_skip_gfile_p): Likewise.
19 (skiplist_entry::skip_function_p): Likewise.
20 (_initialize_step_skip): Create debug command.
21 * NEWS: Mention set/show debug skip.
22
d6be54ef
XR
232018-09-11 Xavier Roirand <roirand@adacore.com>
24
25 * darwin-nat.c (should_disable_startup_with_shell):
26 New function.
27 (darwin_nat_target::create_inferior): Add call.
28
de1ec836
XR
292018-09-11 Xavier Roirand <roirand@adacore.com>
30
31 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
32 inf_port, msg_state>: Initialize.
33 (struct darwin_thread_info) <signaled, single_step>: Change
34 type and initialize.
35 (struct darwin_thread_info) <event>: Initialize.
36
e2fc52e7
SDJ
372018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
38
39 PR gdb/23555
40 PR gdb/23558
41 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
42 guesses.
43
5e8754f9
SDJ
442018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
45
46 Revert:
47 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
48
49 PR gdb/23555
50 PR gdb/23558
51 * gnulib/aclocal.m4: Regenerate.
52 * gnulib/config.in: Regenerate.
53 * gnulib/configure: Regenerate.
54 * gnulib/import/Makefile.am: Update.
55 * gnulib/import/Makefile.in: Update.
56 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
57 * gnulib/import/_Noreturn.h: ... this.
58 * gnulib/import/alloca.in.h: Update.
59 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
60 * gnulib/import/arg-nonnull.h: ... this.
61 * gnulib/import/assure.h: Update.
62 * gnulib/import/at-func.c: Update.
63 * gnulib/import/basename-lgpl.c: Update.
64 * gnulib/import/extra/snippet/c++defs.h: Rename to...
65 * gnulib/import/c++defs.h: ... this.
66 * gnulib/import/canonicalize-lgpl.c: Update.
67 * gnulib/import/cdefs.h: Update.
68 * gnulib/import/chdir-long.c: Update.
69 * gnulib/import/chdir-long.h: Update.
70 * gnulib/import/cloexec.c: Update.
71 * gnulib/import/cloexec.h: Update.
72 * gnulib/import/close.c: Update.
73 * gnulib/import/closedir.c: Update.
74 * gnulib/import/config.charset: Update.
75 * gnulib/import/dirent-private.h: Update.
76 * gnulib/import/dirent.in.h: Update.
77 * gnulib/import/dirfd.c: Update.
78 * gnulib/import/dirname-lgpl.c: Update.
79 * gnulib/import/dirname.h: Update.
80 * gnulib/import/dosname.h: Update.
81 * gnulib/import/dup-safer-flag.c: Update.
82 * gnulib/import/dup-safer.c: Update.
83 * gnulib/import/dup.c: Update.
84 * gnulib/import/dup2.c: Update.
85 * gnulib/import/errno.in.h: Update.
86 * gnulib/import/error.c: Update.
87 * gnulib/import/error.h: Update.
88 * gnulib/import/exitfail.c: Update.
89 * gnulib/import/exitfail.h: Update.
90 * gnulib/import/extra/update-copyright: Update.
91 * gnulib/import/fchdir.c: Update.
92 * gnulib/import/fcntl.c: Update.
93 * gnulib/import/fcntl.in.h: Update.
94 * gnulib/import/fd-hook.c: Update.
95 * gnulib/import/fd-hook.h: Update.
96 * gnulib/import/fd-safer-flag.c: Update.
97 * gnulib/import/fd-safer.c: Update.
98 * gnulib/import/fdopendir.c: Update.
99 * gnulib/import/filename.h: Update.
100 * gnulib/import/filenamecat-lgpl.c: Update.
101 * gnulib/import/filenamecat.h: Update.
102 * gnulib/import/flexmember.h: Update.
103 * gnulib/import/float+.h: Update.
104 * gnulib/import/float.c: Update.
105 * gnulib/import/float.in.h: Update.
106 * gnulib/import/fnmatch.c: Update.
107 * gnulib/import/fnmatch.in.h: Update.
108 * gnulib/import/fnmatch_loop.c: Update.
109 * gnulib/import/fpucw.h: Update.
110 * gnulib/import/frexp.c: Update.
111 * gnulib/import/frexpl.c: Update.
112 * gnulib/import/fstat.c: Update.
113 * gnulib/import/fstatat.c: Update.
114 * gnulib/import/getcwd-lgpl.c: Update.
115 * gnulib/import/getcwd.c: Update.
116 * gnulib/import/getdtablesize.c: Update.
117 * gnulib/import/getlogin_r.c: Update.
118 * gnulib/import/getprogname.c: Update.
119 * gnulib/import/getprogname.h: Update.
120 * gnulib/import/gettext.h: Update.
121 * gnulib/import/gettimeofday.c: Update.
122 * gnulib/import/glob-libc.h: Update.
123 * gnulib/import/glob.c: Update.
124 * gnulib/import/glob.in.h: Update.
125 * gnulib/import/glob_internal.h: Update.
126 * gnulib/import/glob_pattern_p.c: Update.
127 * gnulib/import/globfree.c: Update.
128 * gnulib/import/hard-locale.c: Update.
129 * gnulib/import/hard-locale.h: Update.
130 * gnulib/import/intprops.h: Update.
131 * gnulib/import/inttypes.in.h: Update.
132 * gnulib/import/isnan.c: Update.
133 * gnulib/import/isnand-nolibm.h: Update.
134 * gnulib/import/isnand.c: Update.
135 * gnulib/import/isnanl-nolibm.h: Update.
136 * gnulib/import/isnanl.c: Update.
137 * gnulib/import/itold.c: Update.
138 * gnulib/import/libc-config.h: Update.
139 * gnulib/import/limits.in.h: Update.
140 * gnulib/import/localcharset.c: Update.
141 * gnulib/import/localcharset.h: Update.
142 * gnulib/import/localtime-buffer.c: Update.
143 * gnulib/import/localtime-buffer.h: Update.
144 * gnulib/import/lstat.c: Update.
145 * gnulib/import/m4/00gnulib.m4: Update.
146 * gnulib/import/m4/__inline.m4: Update.
147 * gnulib/import/m4/absolute-header.m4: Update.
148 * gnulib/import/m4/alloca.m4: Update.
149 * gnulib/import/m4/builtin-expect.m4: Update.
150 * gnulib/import/m4/canonicalize.m4: Update.
151 * gnulib/import/m4/chdir-long.m4: Update.
152 * gnulib/import/m4/close.m4: Update.
153 * gnulib/import/m4/closedir.m4: Update.
154 * gnulib/import/m4/configmake.m4: Update.
155 * gnulib/import/m4/d-ino.m4: Update.
156 * gnulib/import/m4/d-type.m4: Update.
157 * gnulib/import/m4/dirent_h.m4: Update.
158 * gnulib/import/m4/dirfd.m4: Update.
159 * gnulib/import/m4/dirname.m4: Update.
160 * gnulib/import/m4/double-slash-root.m4: Update.
161 * gnulib/import/m4/dup.m4: Update.
162 * gnulib/import/m4/dup2.m4: Update.
163 * gnulib/import/m4/eealloc.m4: Update.
164 * gnulib/import/m4/environ.m4: Update.
165 * gnulib/import/m4/errno_h.m4: Update.
166 * gnulib/import/m4/error.m4: Update.
167 * gnulib/import/m4/exponentd.m4: Update.
168 * gnulib/import/m4/exponentl.m4: Update.
169 * gnulib/import/m4/extensions.m4: Update.
170 * gnulib/import/m4/extern-inline.m4: Update.
171 * gnulib/import/m4/fchdir.m4: Update.
172 * gnulib/import/m4/fcntl-o.m4: Update.
173 * gnulib/import/m4/fcntl.m4: Update.
174 * gnulib/import/m4/fcntl_h.m4: Update.
175 * gnulib/import/m4/fdopendir.m4: Update.
176 * gnulib/import/m4/filenamecat.m4: Update.
177 * gnulib/import/m4/flexmember.m4: Update.
178 * gnulib/import/m4/float_h.m4: Update.
179 * gnulib/import/m4/fnmatch.m4: Update.
180 * gnulib/import/m4/fnmatch_h.m4: Update.
181 * gnulib/import/m4/fpieee.m4: Update.
182 * gnulib/import/m4/frexp.m4: Update.
183 * gnulib/import/m4/frexpl.m4: Update.
184 * gnulib/import/m4/fstat.m4: Update.
185 * gnulib/import/m4/fstatat.m4: Update.
186 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
187 * gnulib/import/m4/getcwd-path-max.m4: Update.
188 * gnulib/import/m4/getcwd.m4: Update.
189 * gnulib/import/m4/getdtablesize.m4: Update.
190 * gnulib/import/m4/getlogin.m4: Update.
191 * gnulib/import/m4/getlogin_r.m4: Update.
192 * gnulib/import/m4/getpagesize.m4: Update.
193 * gnulib/import/m4/getprogname.m4: Update.
194 * gnulib/import/m4/gettimeofday.m4: Update.
195 * gnulib/import/m4/glibc21.m4: Update.
196 * gnulib/import/m4/glob.m4: Update.
197 * gnulib/import/m4/glob_h.m4: Update.
198 * gnulib/import/m4/gnulib-cache.m4: Update.
199 * gnulib/import/m4/gnulib-common.m4: Update.
200 * gnulib/import/m4/gnulib-comp.m4: Update.
201 * gnulib/import/m4/gnulib-tool.m4: Update.
202 * gnulib/import/m4/hard-locale.m4: Update.
203 * gnulib/import/m4/include_next.m4: Update.
204 * gnulib/import/m4/inttypes-pri.m4: Update.
205 * gnulib/import/m4/inttypes.m4: Update.
206 * gnulib/import/m4/isnand.m4: Update.
207 * gnulib/import/m4/isnanl.m4: Update.
208 * gnulib/import/m4/largefile.m4: Update.
209 * gnulib/import/m4/limits-h.m4: Update.
210 * gnulib/import/m4/localcharset.m4: Update.
211 * gnulib/import/m4/locale-fr.m4: Update.
212 * gnulib/import/m4/locale-ja.m4: Update.
213 * gnulib/import/m4/locale-zh.m4: Update.
214 * gnulib/import/m4/localtime-buffer.m4: Update.
215 * gnulib/import/m4/longlong.m4: Update.
216 * gnulib/import/m4/lstat.m4: Update.
217 * gnulib/import/m4/malloc.m4: Update.
218 * gnulib/import/m4/malloca.m4: Update.
219 * gnulib/import/m4/math_h.m4: Update.
220 * gnulib/import/m4/mbrtowc.m4: Update.
221 * gnulib/import/m4/mbsinit.m4: Update.
222 * gnulib/import/m4/mbsrtowcs.m4: Update.
223 * gnulib/import/m4/mbstate_t.m4: Update.
224 * gnulib/import/m4/memchr.m4: Update.
225 * gnulib/import/m4/memmem.m4: Update.
226 * gnulib/import/m4/mempcpy.m4: Update.
227 * gnulib/import/m4/memrchr.m4: Update.
228 * gnulib/import/m4/mkdir.m4: Update.
229 * gnulib/import/m4/mkstemp.m4: Update.
230 * gnulib/import/m4/mmap-anon.m4: Update.
231 * gnulib/import/m4/mode_t.m4: Update.
232 * gnulib/import/m4/msvc-inval.m4: Update.
233 * gnulib/import/m4/msvc-nothrow.m4: Update.
234 * gnulib/import/m4/multiarch.m4: Update.
235 * gnulib/import/m4/nocrash.m4: Update.
236 * gnulib/import/m4/off_t.m4: Update.
237 * gnulib/import/m4/onceonly.m4: Update.
238 * gnulib/import/m4/open-cloexec.m4: Update.
239 * gnulib/import/m4/open.m4: Update.
240 * gnulib/import/m4/openat.m4: Update.
241 * gnulib/import/m4/opendir.m4: Update.
242 * gnulib/import/m4/pathmax.m4: Update.
243 * gnulib/import/m4/rawmemchr.m4: Update.
244 * gnulib/import/m4/readdir.m4: Update.
245 * gnulib/import/m4/readlink.m4: Update.
246 * gnulib/import/m4/realloc.m4: Update.
247 * gnulib/import/m4/rename.m4: Update.
248 * gnulib/import/m4/rewinddir.m4: Update.
249 * gnulib/import/m4/rmdir.m4: Update.
250 * gnulib/import/m4/save-cwd.m4: Update.
251 * gnulib/import/m4/secure_getenv.m4: Update.
252 * gnulib/import/m4/setenv.m4: Update.
253 * gnulib/import/m4/signal_h.m4: Update.
254 * gnulib/import/m4/ssize_t.m4: Update.
255 * gnulib/import/m4/stat-time.m4: Update.
256 * gnulib/import/m4/stat.m4: Update.
257 * gnulib/import/m4/std-gnu11.m4: Update.
258 * gnulib/import/m4/stdbool.m4: Update.
259 * gnulib/import/m4/stddef_h.m4: Update.
260 * gnulib/import/m4/stdint.m4: Update.
261 * gnulib/import/m4/stdio_h.m4: Update.
262 * gnulib/import/m4/stdlib_h.m4: Update.
263 * gnulib/import/m4/strchrnul.m4: Update.
264 * gnulib/import/m4/strdup.m4: Update.
265 * gnulib/import/m4/strerror.m4: Update.
266 * gnulib/import/m4/string_h.m4: Update.
267 * gnulib/import/m4/strstr.m4: Update.
268 * gnulib/import/m4/strtok_r.m4: Update.
269 * gnulib/import/m4/sys_socket_h.m4: Update.
270 * gnulib/import/m4/sys_stat_h.m4: Update.
271 * gnulib/import/m4/sys_time_h.m4: Update.
272 * gnulib/import/m4/sys_types_h.m4: Update.
273 * gnulib/import/m4/tempname.m4: Update.
274 * gnulib/import/m4/time_h.m4: Update.
275 * gnulib/import/m4/unistd-safer.m4: Update.
276 * gnulib/import/m4/unistd_h.m4: Update.
277 * gnulib/import/m4/warn-on-use.m4: Update.
278 * gnulib/import/m4/wchar_h.m4: Update.
279 * gnulib/import/m4/wchar_t.m4: Update.
280 * gnulib/import/m4/wctype_h.m4: Update.
281 * gnulib/import/m4/wint_t.m4: Update.
282 * gnulib/import/malloc.c: Update.
283 * gnulib/import/malloc/scratch_buffer.h: Update.
284 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
285 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
286 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
287 * gnulib/import/malloca.c: Update.
288 * gnulib/import/malloca.h: Update.
289 * gnulib/import/malloca.valgrind: Update.
290 * gnulib/import/math.in.h: Update.
291 * gnulib/import/mbrtowc.c: Update.
292 * gnulib/import/mbsinit.c: Update.
293 * gnulib/import/mbsrtowcs-impl.h: Update.
294 * gnulib/import/mbsrtowcs-state.c: Update.
295 * gnulib/import/mbsrtowcs.c: Update.
296 * gnulib/import/memchr.c: Update.
297 * gnulib/import/memmem.c: Update.
298 * gnulib/import/mempcpy.c: Update.
299 * gnulib/import/memrchr.c: Update.
300 * gnulib/import/mkdir.c: Update.
301 * gnulib/import/mkstemp.c: Update.
302 * gnulib/import/msvc-inval.c: Update.
303 * gnulib/import/msvc-inval.h: Update.
304 * gnulib/import/msvc-nothrow.c: Update.
305 * gnulib/import/msvc-nothrow.h: Update.
306 * gnulib/import/open.c: Update.
307 * gnulib/import/openat-die.c: Update.
308 * gnulib/import/openat-priv.h: Update.
309 * gnulib/import/openat-proc.c: Update.
310 * gnulib/import/openat.c: Update.
311 * gnulib/import/openat.h: Update.
312 * gnulib/import/opendir.c: Update.
313 * gnulib/import/pathmax.h: Update.
314 * gnulib/import/pipe-safer.c: Update.
315 * gnulib/import/rawmemchr.c: Update.
316 * gnulib/import/readdir.c: Update.
317 * gnulib/import/readlink.c: Update.
318 * gnulib/import/realloc.c: Update.
319 * gnulib/import/ref-add.sin: Update.
320 * gnulib/import/ref-del.sin: Update.
321 * gnulib/import/rename.c: Update.
322 * gnulib/import/rewinddir.c: Update.
323 * gnulib/import/rmdir.c: Update.
324 * gnulib/import/same-inode.h: Update.
325 * gnulib/import/save-cwd.c: Update.
326 * gnulib/import/save-cwd.h: Update.
327 * gnulib/import/scratch_buffer.h: Update.
328 * gnulib/import/secure_getenv.c: Update.
329 * gnulib/import/setenv.c: Update.
330 * gnulib/import/signal.in.h: Update.
331 * gnulib/import/stat-time.c: Update.
332 * gnulib/import/stat-time.h: Update.
333 * gnulib/import/stat-w32.c: Update.
334 * gnulib/import/stat-w32.h: Update.
335 * gnulib/import/stat.c: Update.
336 * gnulib/import/stdbool.in.h: Update.
337 * gnulib/import/stddef.in.h: Update.
338 * gnulib/import/stdint.in.h: Update.
339 * gnulib/import/stdio.in.h: Update.
340 * gnulib/import/stdlib.in.h: Update.
341 * gnulib/import/str-two-way.h: Update.
342 * gnulib/import/strchrnul.c: Update.
343 * gnulib/import/strdup.c: Update.
344 * gnulib/import/streq.h: Update.
345 * gnulib/import/strerror-override.c: Update.
346 * gnulib/import/strerror-override.h: Update.
347 * gnulib/import/strerror.c: Update.
348 * gnulib/import/string.in.h: Update.
349 * gnulib/import/stripslash.c: Update.
350 * gnulib/import/strnlen1.c: Update.
351 * gnulib/import/strnlen1.h: Update.
352 * gnulib/import/strstr.c: Update.
353 * gnulib/import/strtok_r.c: Update.
354 * gnulib/import/sys_stat.in.h: Update.
355 * gnulib/import/sys_time.in.h: Update.
356 * gnulib/import/sys_types.in.h: Update.
357 * gnulib/import/tempname.c: Update.
358 * gnulib/import/tempname.h: Update.
359 * gnulib/import/time.in.h: Update.
360 * gnulib/import/unistd--.h: Update.
361 * gnulib/import/unistd-safer.h: Update.
362 * gnulib/import/unistd.in.h: Update.
363 * gnulib/import/unsetenv.c: Update.
364 * gnulib/import/verify.h: Update.
365 * gnulib/import/extra/snippet/warn-on-use.h: Update.
366 * gnulib/import/wchar.in.h: Update.
367 * gnulib/import/wctype.in.h: Update.
368 * gnulib/import/xalloc-oversized.h: Update.
369 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
370 "53e2c179f26a890fa6685af4b6c1397ee370433b".
371
8ec23583
SM
3722018-09-10 Simon Marchi <simon.marchi@ericsson.com>
373
374 * record-btrace.c (get_thread_current_frame): Remove
375 old_inferior_ptid.
376
1f5d1570
JG
3772018-09-10 Jerome Guitton <guitton@adacore.com>
378
379 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
380 with check_tag to 1 if and only if the type is tagged and the
381 component being searched cannot been found in the current
382 view. Otherwise, always call ada_to_fixed_type with
383 check_tag to 0.
384
d91e9ea8
XR
3852018-09-10 Xavier Roirand <roirand@adacore.com>
386
387 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
388 declaration.
389 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
390 * ada-varobj.c (ada_varobj_get_number_of_children,
391 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
392
cc330e39
XR
3932018-09-10 Xavier Roirand <roirand@adacore.com>
394
395 * ada-valprint.c (ada_value_print): Use type instead of
396 enclosing type.
397
b9c50e9a
XR
3982018-09-10 Xavier Roirand <roirand@adacore.com>
399
400 * ada-lang.c (ada_value_subscript): Handle case when parameter is
401 an array of access to unconstrained array.
402
736ade86
XR
4032018-09-10 Xavier Roirand <roirand@adacore.com>
404
405 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
406 (ada_check_typedef): Use it.
407
2963898f
XR
4082018-09-10 Xavier Roirand <roirand@adacore.com>
409
410 * ada-varobj.c (ada_varobj_describe_struct_child)
411 (ada_varobj_describe_child): Handle union case like struct one.
412
a154931e
TT
4132018-09-10 Tom Tromey <tom@tromey.com>
414
415 PR python/18380:
416 * python/python.c (_initialize_python): Make example in "python"
417 help work in Python 3.
418
23c4651c
EZ
4192018-09-10 Eli Zaretskii <eliz@gnu.org>
420
421 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
422 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
423 $(EXEEXT) to the script, as it is not a program.
424
a5c5eda7
SM
4252018-09-09 Simon Marchi <simon.marchi@ericsson.com>
426
427 * python/py-prettyprint.c (pretty_print_one_value): Return
428 gdbpy_ref<>.
429 (print_string_repr): Adjust.
430 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
431 * python/python-internal.h (apply_varobj_pretty_printer): Return
432 gdbpy_ref<>.
433 * varobj.c (varobj_value_get_print_value): Adjust.
434
332cf4c9
TT
4352018-09-08 Tom Tromey <tom@tromey.com>
436
437 PR python/16047:
438 * python/py-prettyprint.c (pretty_print_one_value): Check for
439 to_string method.
440
424da6cf
JB
4412018-09-08 Joel Brobecker <brobecker@adacore.com>
442
443 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
444 replace_operator_with_call.
445
95f39a5b
JB
4462018-09-08 Joel Brobecker <brobecker@adacore.com>
447
448 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
449
16b9eb7b
JB
4502018-09-08 Joel Brobecker <brobecker@adacore.com>
451
452 * ada-typeprint.c (print_range): Print the bounds using TYPE
453 rather than its TYPE_TARGET_TYPE.
454
d8ce9127
JB
4552018-09-08 Joel Brobecker <brobecker@adacore.com>
456
457 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
458 call to ada_to_fixed_value_create.
459
0d81f350
JG
4602018-09-08 Jerome Guitton <guitton@adacore.com>
461
462 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
463
57aff202
JB
4642018-09-08 Joel Brobecker <brobecker@adacore.com>
465
466 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
467 by calls to error.
468
fb44b1a7
JB
4692018-09-08 Joel Brobecker <brobecker@adacore.com>
470
471 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
472 Move update of loop variable "fi".
473
2a62dfa9
JB
4742018-09-08 Joel Brobecker <brobecker@adacore.com>
475
476 * ada-lang.c (value_assign_to_component): In the case of
477 big-endian targets, extract the bits of the given VAL
478 using an src_offset of zero if container is not a scalar.
479
739ab2e9
SS
4802018-09-06 Simon Ser <contact@emersion.fr>
481
482 PR gdb/23105
483 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
484 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
485 * fbsd-tdep.c (fbsd_make_note_desc): New.
486 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
487 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
488 * target.h (enum target_object) Add FreeBSD-specific
489 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
490
d82b3862
SM
4912018-09-06 Simon Marchi <simon.marchi@ericsson.com>
492
493 * compile/compile-c.h (generate_c_for_variable_locations):
494 Change reference to pointer.
495 * compile/compile-c-support.c (compile_program) <compute>:
496 Likewise.
497 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
498 (generate_c_for_for_one_variable): Likewise
499 (generate_c_for_variable_locations): Likewise
500 * compile/compile-c-types.c (compile_c_instance::convert_type):
501 Likewise
502 * compile/compile-cplus-symbols.c (convert_one_symbol):
503 std::move the scope passed to enter_scope.
504 * compile/compile-cplus-types.c
505 (compile_cplus_instance::enter_scope): Make parameter
506 rvalue-reference.
507 (compile_cplus_instance::new_scope): Change reference to
508 pointer.
509 (compile_cplus_instance::convert_type): Likewise
510 (compile_cplus_convert_typedef): std::move the scope passed to
511 enter_scope.
512 (compile_cplus_convert_struct_or_union): Likewise.
513 (compile_cplus_convert_enum): Likewise.
514 (compile_cplus_convert_namespace): Likewise.
515 * compile/compile-cplus.h (compile_cplus_instance)
516 <enter_scope>: Make parameter rvalue-reference.
517 * compile/compile-internal.h (compile_instance)
518 <get_cached_type>: Likewise
519 * compile/compile-loc2c.c (push): Likewise
520 (pushf): Likewise
521 (unary): Likewise
522 (binary): Likewise
523 (print_label): Likewise
524 (pushf_register_address): Likewise
525 (pushf_register): Likewise
526 (do_compile_dwarf_expr_to_c): Likewise
527 (compile_dwarf_expr_to_c): Likewise
528 (compile_dwarf_bounds_to_c): Likewise
529 * compile/compile.c (compile_instance::get_cached_type):
530 Likewise
531 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
532 (compile_dwarf_bounds_to_c): Likewise
533 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
534 (dwarf2_compile_property_to_c): Likewise
535 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
536 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
537 Likewise
538
cc5a5ae5
SM
5392018-09-06 Simon Marchi <simon.marchi@ericsson.com>
540
541 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
542 * tui/tui-data.c (init_content_element): Don't initialize it.
543
137be540
SM
5442018-09-06 Simon Marchi <simon.marchi@ericsson.com>
545
546 * tui/tui-data.h (struct tui_win_info)
547 <detail::opaque>: Remove.
548 * tui/tui-data.c (init_win_info): Remove assignment.
549
f1628857
TT
5502018-09-05 Tom Tromey <tom@tromey.com>
551
552 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
553 -Wformat-nonliteral.
554 * target-float.c (host_float_ops<T>::to_string)
555 (host_float_ops<T>::from_string): Use
556 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
557 * configure: Rebuild.
558
af39b1c2
SM
5592018-09-05 Simon Marchi <simon.marchi@ericsson.com>
560
561 * printcmd.c (printf_c_string): Use
562 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
563 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
564
081bca4d
TT
5652018-09-05 Tom Tromey <tom@tromey.com>
566
567 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
568
e4a62c65
TV
5692018-09-05 Tom de Vries <tdevries@suse.de>
570
571 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
572 with resolve_abstract_p == true.
573 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
574 defaulting to false. Propagate resolve_abstract_p to
575 dwarf2_fetch_die_loc_sect_off.
576 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
577 parameter, defaulting to false.
578 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
579 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
580 parameter.
581 * dwarf2read.h (struct die_info): Forward-declare.
582 (die_info_ptr): New typedef.
583 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
584
2b69821e
JB
5852018-09-05 Joel Brobecker <brobecker@adacore.com>
586
587 GDB 8.2 released.
588
fcc9b044
SDJ
5892018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
590 Pedro Alves <palves@redhat.com>
591
592 * gnulib/Makefile.in (aclocal_m4_deps): Move to
593 "aclocal-m4-deps.mk". Include file here.
594 $(srcdir)/aclocal.m4: Add "configure.ac".
595 * gnulib/aclocal-m4-deps.mk: New file.
596 * gnulib/update-gnulib.sh: Automatically update
597 "aclocal-m4-deps.mk".
598
d53d5436
TT
5992018-09-04 Tom Tromey <tom@tromey.com>
600
601 * configure: Rebuild.
602 * configure.ac: Remove multi-ice code.
603
8dc9fd87
TT
6042018-09-04 Tom Tromey <tom@tromey.com>
605
606 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
607 (ada-exp.o): Update.
608
3322c5d9
TT
6092018-09-04 Tom Tromey <tom@tromey.com>
610
611 * Makefile.in (printcmd.o, target-float.o): Remove.
612 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
613
ba2bf2aa
TT
6142018-09-04 Tom Tromey <tom@tromey.com>
615
616 * gnulib/Makefile.in: Remove obsolete comment.
617 * Makefile.in: Remove obsolete comment.
618
6c9d681b
AB
6192018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
620
621 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
622 line with '+'.
623
78a3b0fa
AB
6242018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
625
626 * riscv-tdep.c: Add 'prologue-value.h' include.
627 (struct riscv_unwind_cache): New struct.
628 (riscv_debug_unwinder): New global.
629 (riscv_scan_prologue): Update arguments, capture register details
630 from prologue scan.
631 (riscv_skip_prologue): Reformat arguments line, move end of
632 prologue calculation into riscv_scan_prologue.
633 (riscv_frame_cache): Update return type, create
634 riscv_unwind_cache, scan the prologue, and fill in remaining cache
635 details.
636 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
637 (riscv_frame_prev_register): Use the trad_frame within the
638 riscv_unwind_cache.
639 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
640 flag.
641
23e60e7a
AB
6422018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
643
644 * trad-frame.h (trad_frame_set_realreg): Declare.
645 (trad_frame_set_addr): Declare.
646 * trad-frame.c (trad_frame_set_realreg): Define new function.
647 (trad_frame_set_addr): Define new function.
648 (trad_frame_set_reg_realreg): Use new function.
649 (trad_frame_set_reg_addr): Use new function.
650
5c889512
KS
6512018-09-01 Keith Seitz <keiths@redhat.com>
652
653 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
654 pulongest instead of "%lld".
655 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
656 ATTRIBUTE_UNUSED.
657
c8c81635
TT
6582018-08-31 Tom Tromey <tom@tromey.com>
659
660 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
661 variant part type.
662
0c888588
PA
6632018-08-31 Pedro Alves <palves@redhat.com>
664
665 * gdbarch.h: Regenerate.
666
7ea65f08
PA
6672018-08-31 Pedro Alves <palves@redhat.com>
668
669 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
670 * target.h (Hardware watchpoint interfaces): Describe
671 continuable/steppable/non-steppable watchpoints.
672 * gdbarch.h, gdbarch.c: Regenerate.
673
7eb65faf
PA
6742018-08-31 Pedro Alves <palves@redhat.com>
675
676 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
677 Delete.
678 * s390-linux-nat.c
679 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
680 * target.h (target_ops::have_continuable_watchpoint): Delete.
681 (target_have_continuable_watchpoint): Delete.
682 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
683 * target-delegates.c: Regenerate.
684
dab999b1
SDJ
6852018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
686
687 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
688 the files present in "gnulib/import/m4/".
689
ff3a05b3
AB
6902018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
691
692 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
693 c.sw, c.swsp, and c.sdsp.
694
0b3f9efc
AB
6952018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
696
697 * riscv-tdep.c (struct riscv_inferior_data): Delete.
698 (riscv_read_misa_reg): Don't cache value read into inferior data.
699 (riscv_new_inferior_data): Delete.
700 (riscv_inferior_data_cleanup): Delete.
701 (riscv_inferior_data): Delete.
702 (riscv_invalidate_inferior_data): Delete.
703 (_initialize_riscv_tdep): Remove initialisation of inferior data.
704
a0dc02a6
SM
7052018-08-30 Simon Marchi <simon.marchi@ericsson.com>
706
707 * compile/compile-cplus-types.c
708 (compile_cplus_instance::leave_scope): Take the address of scope
709 object.
710 (compile_cplus_instance::convert_qualified_base): Compare quals
711 to 0.
712
fdad7678
KS
7132018-08-30 Keith Seitz <keiths@redhat.com>
714
715 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
716 Use "%s" and host_address_to_string instead of "%p" in printf.
717
078a0207
KS
7182018-08-29 Keith Seitz <keiths@redhat.com>
719
720 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
721 and compile-cplus-types.c.
722 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
723 * c-lang.c (cplus_language_defn): Set C++ compile functions.
724 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
725 Declare.
726 * compile/compile-c-support.c: Include compile-cplus.h.
727 (load_libcompile): Templatize.
728 (get_compile_context): "New" function.
729 (c_get_compile_context): Use get_compile_context.
730 (cplus_get_compile_context): New function.
731 (cplus_push_user_expression, cplus_pop_user_expression)
732 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
733 (cplus_compute_program): Define new structs/functions.
734 * compile/compile-cplus-symmbols.c: New file.
735 * compile/compile-cplus-types.c: New file.
736 * compile/compile-cplus.h: New file.
737 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
738 Declare.
739 * compile/compile-object-load.c (get_out_value_type): Use
740 strncmp_iw when comparing symbol names.
741 (compile_object_load): Add mst_bss and mst_data.
742 * compile/compile.c (_initialize_compile): Remove
743 -Wno-implicit-function-declaration from `compile_args'.
744 * compile/gcc-cp-plugin.h: New file.
745 * NEWS: Mention C++ compile support and new debug options.
746
fcaad03c
KS
7472018-08-29 Keith Seitz <keiths@redhat.com>
748
749 * linespec.c (collect_info::add_symbol): Make virtual.
750 (struct symbol_searcher_collect_info): New struct.
751 (symbol_searcher::find_all_symbols): New method.
752 * symtab.h (class symbol_searcher): New class.
753
7e41c8db
KS
7542018-08-29 Keith Seitz <keiths@redhat.com>
755
756 * linespec.c (struct linespec) <function_symbols, label_symbols>:
757 Change to vector of block_symbol. Update all users.
758 (struct collect_info) <symbols>: Likewise.
759 (collect_info::add_symbol): Take block_symbol as argument.
760 Update all callers.
761 (decode_compound_collector) <m_symbols>: Change type to vector
762 of block_symbol. Update all users.
763 (decode_compound_collector::operator ()): Change parameter type
764 to block_symbol.
765 (find_method, find_function_symbols, find_linespec_symbols)
766 (find_label_symbols_in_block, find_label_symbols): Change symbol
767 vectors to block_symbol vectors.
768 * symtab.h (symbol_found_callback_ftype): Change parameter type to
769 block_symbol.
770
63e8c3da
KS
7712018-08-29 Keith Seitz <keiths@redhat.com>
772
773 * linespec.c (symbolp): Remove typedef and VEC definitions.
774 (bound_minimal_symbol_d): Likewise.
775
4dedf84d
KS
7762018-08-29 Keith Seitz <keiths@redhat.com>
777
778 * linespec.c (decode_compound_collector::decode_compound_collector):
779 Remove initialization for `m_symtabs'.
780 (decode_compound_collector::release_symbols): Change return type
781 to std::vector. Update all callers.
782 (class decode_compound_collector) <m_symbols>: Change type to
783 std::vector.
784 (lookup_prefix_sym): Change return type to std::vector. Update all
785 callers.
786 (compare_symbols): Remove.
787 (std_compare_symbols): Rename to `compare_symbols'.
788 (find_method): Change `sym_classes' parameter to std::vector.
789 Update all callers. Use std::sort to sort sym_classes.
790 (find_linespec_symbols): Remove cleanup.
791
c2a031c5
KS
7922018-08-29 Keith Seitz <keiths@redhat.com>
793
794 * linespec.c (struct linespec) <minimal_symbols>: Change type to
795 std::vector. Update all users.
796 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
797 (struct collect_info) <minimal_symbols>: Likewise.
798 (compare_msymbols): Return bool. Change parameters to const
799 bound_minimal_symbol references.
800 (find_method, find_function_symbols, find_linespec_symbols): Change
801 `minsyms' parameter to std::vector. Update all callers.
802
3553eadc
KS
8032018-08-29 Keith Seitz <keiths@redhat.com>
804
805 * linespec.c (struct linespec) <label_symbols>: Change type to
806 std::vector. Update all users.
807 (find_label_symbols_in_block): Change `result' parameter to
808 std::vector. Update all callers.
809 (find_label_symbols): Return std::vector. Update all callers.
810
7243d011
KS
8112018-08-29 Keith Seitz <keiths@redhat.com>
812
813 * linespec.c (struct linespec) <function_symbols>: Change type to
814 std::vector. Update all users.
815 (struct collect_info) <function_symbols>: Likewise.
816 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
817 (std_compare_symbols): New function.
818 (find_method, find_function_symbols, find_linespec_symbols)
819 (find_label_symbols_in_block): Change `symbols' parameter to
820 std::vector. Update all callers.
821 (find_label_symbols): Likewise for `function_symbols' and
822 `label_funcs_ret'.
823
2a908241
KS
8242018-08-29 Keith Seitz <keiths@redhat.com>
825
826 * linespec.c (symtab_vector_up): Define.
827 (struct linespec) <file_symtabs>: Change type to std::vector *.
828 Update all uses.
829 (struct collect_info) <file_symtabs>: Likewise.
830 (collect_symtabs_from_filename): Return symtab_vector_up.
831 Update all callers.
832 (decode_objc): Remove cleanup.
833 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
834 (symtab_collector::release_symtabs): Return symtab_vector_up.
835 Update all callers.
836 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
837 Update all users.
838 (collect_symtabs_from_filename, symtabs_from_filename): Return
839 symtab_vector_up. Update all callers.
840
f6c4e3e8
TT
8412018-08-29 Tom Tromey <tom@tromey.com>
842
843 * csky-tdep.c (csky_analyze_prologue): Use
844 core_addr_to_string_nz.
845
73c13fe6
TT
8462018-08-29 Tom Tromey <tom@tromey.com>
847
848 * windows-nat.c (struct xlate_exception) <them>: Change type to
849 DWORD.
850 (xlate): Fix formatting. Remove last entry.
851 (struct xlate_exception, xlate): Comment out.
852 (windows_nat_target::resume): Use ranged for.
853
4d3928d7
JW
8542018-08-29 Jim Wilson <jimw@sifive.com>
855
856 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
857 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
858 of NT_PRFPREG.
859 (riscv_linux_nat_target::store_registers): Likewise.
860
7a6dbc2f
SDJ
8612018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
862
863 PR gdb/23555
864 PR gdb/23558
865 * gnulib/aclocal.m4: Regenerate.
866 * gnulib/config.in: Regenerate.
867 * gnulib/configure: Regenerate.
868 * gnulib/import/Makefile.am: Update.
869 * gnulib/import/Makefile.in: Update.
870 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
871 * gnulib/import/_Noreturn.h: ... this.
872 * gnulib/import/alloca.in.h: Update.
873 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
874 * gnulib/import/arg-nonnull.h: ... this.
875 * gnulib/import/assure.h: Update.
876 * gnulib/import/at-func.c: Update.
877 * gnulib/import/basename-lgpl.c: Update.
878 * gnulib/import/extra/snippet/c++defs.h: Rename to...
879 * gnulib/import/c++defs.h: ... this.
880 * gnulib/import/canonicalize-lgpl.c: Update.
881 * gnulib/import/cdefs.h: Update.
882 * gnulib/import/chdir-long.c: Update.
883 * gnulib/import/chdir-long.h: Update.
884 * gnulib/import/cloexec.c: Update.
885 * gnulib/import/cloexec.h: Update.
886 * gnulib/import/close.c: Update.
887 * gnulib/import/closedir.c: Update.
888 * gnulib/import/config.charset: Update.
889 * gnulib/import/dirent-private.h: Update.
890 * gnulib/import/dirent.in.h: Update.
891 * gnulib/import/dirfd.c: Update.
892 * gnulib/import/dirname-lgpl.c: Update.
893 * gnulib/import/dirname.h: Update.
894 * gnulib/import/dosname.h: Update.
895 * gnulib/import/dup-safer-flag.c: Update.
896 * gnulib/import/dup-safer.c: Update.
897 * gnulib/import/dup.c: Update.
898 * gnulib/import/dup2.c: Update.
899 * gnulib/import/errno.in.h: Update.
900 * gnulib/import/error.c: Update.
901 * gnulib/import/error.h: Update.
902 * gnulib/import/exitfail.c: Update.
903 * gnulib/import/exitfail.h: Update.
904 * gnulib/import/extra/update-copyright: Update.
905 * gnulib/import/fchdir.c: Update.
906 * gnulib/import/fcntl.c: Update.
907 * gnulib/import/fcntl.in.h: Update.
908 * gnulib/import/fd-hook.c: Update.
909 * gnulib/import/fd-hook.h: Update.
910 * gnulib/import/fd-safer-flag.c: Update.
911 * gnulib/import/fd-safer.c: Update.
912 * gnulib/import/fdopendir.c: Update.
913 * gnulib/import/filename.h: Update.
914 * gnulib/import/filenamecat-lgpl.c: Update.
915 * gnulib/import/filenamecat.h: Update.
916 * gnulib/import/flexmember.h: Update.
917 * gnulib/import/float+.h: Update.
918 * gnulib/import/float.c: Update.
919 * gnulib/import/float.in.h: Update.
920 * gnulib/import/fnmatch.c: Update.
921 * gnulib/import/fnmatch.in.h: Update.
922 * gnulib/import/fnmatch_loop.c: Update.
923 * gnulib/import/fpucw.h: Update.
924 * gnulib/import/frexp.c: Update.
925 * gnulib/import/frexpl.c: Update.
926 * gnulib/import/fstat.c: Update.
927 * gnulib/import/fstatat.c: Update.
928 * gnulib/import/getcwd-lgpl.c: Update.
929 * gnulib/import/getcwd.c: Update.
930 * gnulib/import/getdtablesize.c: Update.
931 * gnulib/import/getlogin_r.c: Update.
932 * gnulib/import/getprogname.c: Update.
933 * gnulib/import/getprogname.h: Update.
934 * gnulib/import/gettext.h: Update.
935 * gnulib/import/gettimeofday.c: Update.
936 * gnulib/import/glob-libc.h: Update.
937 * gnulib/import/glob.c: Update.
938 * gnulib/import/glob.in.h: Update.
939 * gnulib/import/glob_internal.h: Update.
940 * gnulib/import/glob_pattern_p.c: Update.
941 * gnulib/import/globfree.c: Update.
942 * gnulib/import/hard-locale.c: Update.
943 * gnulib/import/hard-locale.h: Update.
944 * gnulib/import/intprops.h: Update.
945 * gnulib/import/inttypes.in.h: Update.
946 * gnulib/import/isnan.c: Update.
947 * gnulib/import/isnand-nolibm.h: Update.
948 * gnulib/import/isnand.c: Update.
949 * gnulib/import/isnanl-nolibm.h: Update.
950 * gnulib/import/isnanl.c: Update.
951 * gnulib/import/itold.c: Update.
952 * gnulib/import/libc-config.h: Update.
953 * gnulib/import/limits.in.h: Update.
954 * gnulib/import/localcharset.c: Update.
955 * gnulib/import/localcharset.h: Update.
956 * gnulib/import/localtime-buffer.c: Update.
957 * gnulib/import/localtime-buffer.h: Update.
958 * gnulib/import/lstat.c: Update.
959 * gnulib/import/m4/00gnulib.m4: Update.
960 * gnulib/import/m4/__inline.m4: Update.
961 * gnulib/import/m4/absolute-header.m4: Update.
962 * gnulib/import/m4/alloca.m4: Update.
963 * gnulib/import/m4/builtin-expect.m4: Update.
964 * gnulib/import/m4/canonicalize.m4: Update.
965 * gnulib/import/m4/chdir-long.m4: Update.
966 * gnulib/import/m4/close.m4: Update.
967 * gnulib/import/m4/closedir.m4: Update.
968 * gnulib/import/m4/configmake.m4: Update.
969 * gnulib/import/m4/d-ino.m4: Update.
970 * gnulib/import/m4/d-type.m4: Update.
971 * gnulib/import/m4/dirent_h.m4: Update.
972 * gnulib/import/m4/dirfd.m4: Update.
973 * gnulib/import/m4/dirname.m4: Update.
974 * gnulib/import/m4/double-slash-root.m4: Update.
975 * gnulib/import/m4/dup.m4: Update.
976 * gnulib/import/m4/dup2.m4: Update.
977 * gnulib/import/m4/eealloc.m4: Update.
978 * gnulib/import/m4/environ.m4: Update.
979 * gnulib/import/m4/errno_h.m4: Update.
980 * gnulib/import/m4/error.m4: Update.
981 * gnulib/import/m4/exponentd.m4: Update.
982 * gnulib/import/m4/exponentl.m4: Update.
983 * gnulib/import/m4/extensions.m4: Update.
984 * gnulib/import/m4/extern-inline.m4: Update.
985 * gnulib/import/m4/fchdir.m4: Update.
986 * gnulib/import/m4/fcntl-o.m4: Update.
987 * gnulib/import/m4/fcntl.m4: Update.
988 * gnulib/import/m4/fcntl_h.m4: Update.
989 * gnulib/import/m4/fdopendir.m4: Update.
990 * gnulib/import/m4/filenamecat.m4: Update.
991 * gnulib/import/m4/flexmember.m4: Update.
992 * gnulib/import/m4/float_h.m4: Update.
993 * gnulib/import/m4/fnmatch.m4: Update.
994 * gnulib/import/m4/fnmatch_h.m4: Update.
995 * gnulib/import/m4/fpieee.m4: Update.
996 * gnulib/import/m4/frexp.m4: Update.
997 * gnulib/import/m4/frexpl.m4: Update.
998 * gnulib/import/m4/fstat.m4: Update.
999 * gnulib/import/m4/fstatat.m4: Update.
1000 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1001 * gnulib/import/m4/getcwd-path-max.m4: Update.
1002 * gnulib/import/m4/getcwd.m4: Update.
1003 * gnulib/import/m4/getdtablesize.m4: Update.
1004 * gnulib/import/m4/getlogin.m4: Update.
1005 * gnulib/import/m4/getlogin_r.m4: Update.
1006 * gnulib/import/m4/getpagesize.m4: Update.
1007 * gnulib/import/m4/getprogname.m4: Update.
1008 * gnulib/import/m4/gettimeofday.m4: Update.
1009 * gnulib/import/m4/glibc21.m4: Update.
1010 * gnulib/import/m4/glob.m4: Update.
1011 * gnulib/import/m4/glob_h.m4: Update.
1012 * gnulib/import/m4/gnulib-cache.m4: Update.
1013 * gnulib/import/m4/gnulib-common.m4: Update.
1014 * gnulib/import/m4/gnulib-comp.m4: Update.
1015 * gnulib/import/m4/gnulib-tool.m4: Update.
1016 * gnulib/import/m4/hard-locale.m4: Update.
1017 * gnulib/import/m4/include_next.m4: Update.
1018 * gnulib/import/m4/inttypes-pri.m4: Update.
1019 * gnulib/import/m4/inttypes.m4: Update.
1020 * gnulib/import/m4/isnand.m4: Update.
1021 * gnulib/import/m4/isnanl.m4: Update.
1022 * gnulib/import/m4/largefile.m4: Update.
1023 * gnulib/import/m4/limits-h.m4: Update.
1024 * gnulib/import/m4/localcharset.m4: Update.
1025 * gnulib/import/m4/locale-fr.m4: Update.
1026 * gnulib/import/m4/locale-ja.m4: Update.
1027 * gnulib/import/m4/locale-zh.m4: Update.
1028 * gnulib/import/m4/localtime-buffer.m4: Update.
1029 * gnulib/import/m4/longlong.m4: Update.
1030 * gnulib/import/m4/lstat.m4: Update.
1031 * gnulib/import/m4/malloc.m4: Update.
1032 * gnulib/import/m4/malloca.m4: Update.
1033 * gnulib/import/m4/math_h.m4: Update.
1034 * gnulib/import/m4/mbrtowc.m4: Update.
1035 * gnulib/import/m4/mbsinit.m4: Update.
1036 * gnulib/import/m4/mbsrtowcs.m4: Update.
1037 * gnulib/import/m4/mbstate_t.m4: Update.
1038 * gnulib/import/m4/memchr.m4: Update.
1039 * gnulib/import/m4/memmem.m4: Update.
1040 * gnulib/import/m4/mempcpy.m4: Update.
1041 * gnulib/import/m4/memrchr.m4: Update.
1042 * gnulib/import/m4/mkdir.m4: Update.
1043 * gnulib/import/m4/mkstemp.m4: Update.
1044 * gnulib/import/m4/mmap-anon.m4: Update.
1045 * gnulib/import/m4/mode_t.m4: Update.
1046 * gnulib/import/m4/msvc-inval.m4: Update.
1047 * gnulib/import/m4/msvc-nothrow.m4: Update.
1048 * gnulib/import/m4/multiarch.m4: Update.
1049 * gnulib/import/m4/nocrash.m4: Update.
1050 * gnulib/import/m4/off_t.m4: Update.
1051 * gnulib/import/m4/onceonly.m4: Update.
1052 * gnulib/import/m4/open-cloexec.m4: Update.
1053 * gnulib/import/m4/open.m4: Update.
1054 * gnulib/import/m4/openat.m4: Update.
1055 * gnulib/import/m4/opendir.m4: Update.
1056 * gnulib/import/m4/pathmax.m4: Update.
1057 * gnulib/import/m4/rawmemchr.m4: Update.
1058 * gnulib/import/m4/readdir.m4: Update.
1059 * gnulib/import/m4/readlink.m4: Update.
1060 * gnulib/import/m4/realloc.m4: Update.
1061 * gnulib/import/m4/rename.m4: Update.
1062 * gnulib/import/m4/rewinddir.m4: Update.
1063 * gnulib/import/m4/rmdir.m4: Update.
1064 * gnulib/import/m4/save-cwd.m4: Update.
1065 * gnulib/import/m4/secure_getenv.m4: Update.
1066 * gnulib/import/m4/setenv.m4: Update.
1067 * gnulib/import/m4/signal_h.m4: Update.
1068 * gnulib/import/m4/ssize_t.m4: Update.
1069 * gnulib/import/m4/stat-time.m4: Update.
1070 * gnulib/import/m4/stat.m4: Update.
1071 * gnulib/import/m4/std-gnu11.m4: Update.
1072 * gnulib/import/m4/stdbool.m4: Update.
1073 * gnulib/import/m4/stddef_h.m4: Update.
1074 * gnulib/import/m4/stdint.m4: Update.
1075 * gnulib/import/m4/stdio_h.m4: Update.
1076 * gnulib/import/m4/stdlib_h.m4: Update.
1077 * gnulib/import/m4/strchrnul.m4: Update.
1078 * gnulib/import/m4/strdup.m4: Update.
1079 * gnulib/import/m4/strerror.m4: Update.
1080 * gnulib/import/m4/string_h.m4: Update.
1081 * gnulib/import/m4/strstr.m4: Update.
1082 * gnulib/import/m4/strtok_r.m4: Update.
1083 * gnulib/import/m4/sys_socket_h.m4: Update.
1084 * gnulib/import/m4/sys_stat_h.m4: Update.
1085 * gnulib/import/m4/sys_time_h.m4: Update.
1086 * gnulib/import/m4/sys_types_h.m4: Update.
1087 * gnulib/import/m4/tempname.m4: Update.
1088 * gnulib/import/m4/time_h.m4: Update.
1089 * gnulib/import/m4/unistd-safer.m4: Update.
1090 * gnulib/import/m4/unistd_h.m4: Update.
1091 * gnulib/import/m4/warn-on-use.m4: Update.
1092 * gnulib/import/m4/wchar_h.m4: Update.
1093 * gnulib/import/m4/wchar_t.m4: Update.
1094 * gnulib/import/m4/wctype_h.m4: Update.
1095 * gnulib/import/m4/wint_t.m4: Update.
1096 * gnulib/import/malloc.c: Update.
1097 * gnulib/import/malloc/scratch_buffer.h: Update.
1098 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1099 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1100 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1101 * gnulib/import/malloca.c: Update.
1102 * gnulib/import/malloca.h: Update.
1103 * gnulib/import/malloca.valgrind: Update.
1104 * gnulib/import/math.in.h: Update.
1105 * gnulib/import/mbrtowc.c: Update.
1106 * gnulib/import/mbsinit.c: Update.
1107 * gnulib/import/mbsrtowcs-impl.h: Update.
1108 * gnulib/import/mbsrtowcs-state.c: Update.
1109 * gnulib/import/mbsrtowcs.c: Update.
1110 * gnulib/import/memchr.c: Update.
1111 * gnulib/import/memmem.c: Update.
1112 * gnulib/import/mempcpy.c: Update.
1113 * gnulib/import/memrchr.c: Update.
1114 * gnulib/import/mkdir.c: Update.
1115 * gnulib/import/mkstemp.c: Update.
1116 * gnulib/import/msvc-inval.c: Update.
1117 * gnulib/import/msvc-inval.h: Update.
1118 * gnulib/import/msvc-nothrow.c: Update.
1119 * gnulib/import/msvc-nothrow.h: Update.
1120 * gnulib/import/open.c: Update.
1121 * gnulib/import/openat-die.c: Update.
1122 * gnulib/import/openat-priv.h: Update.
1123 * gnulib/import/openat-proc.c: Update.
1124 * gnulib/import/openat.c: Update.
1125 * gnulib/import/openat.h: Update.
1126 * gnulib/import/opendir.c: Update.
1127 * gnulib/import/pathmax.h: Update.
1128 * gnulib/import/pipe-safer.c: Update.
1129 * gnulib/import/rawmemchr.c: Update.
1130 * gnulib/import/readdir.c: Update.
1131 * gnulib/import/readlink.c: Update.
1132 * gnulib/import/realloc.c: Update.
1133 * gnulib/import/ref-add.sin: Update.
1134 * gnulib/import/ref-del.sin: Update.
1135 * gnulib/import/rename.c: Update.
1136 * gnulib/import/rewinddir.c: Update.
1137 * gnulib/import/rmdir.c: Update.
1138 * gnulib/import/same-inode.h: Update.
1139 * gnulib/import/save-cwd.c: Update.
1140 * gnulib/import/save-cwd.h: Update.
1141 * gnulib/import/scratch_buffer.h: Update.
1142 * gnulib/import/secure_getenv.c: Update.
1143 * gnulib/import/setenv.c: Update.
1144 * gnulib/import/signal.in.h: Update.
1145 * gnulib/import/stat-time.c: Update.
1146 * gnulib/import/stat-time.h: Update.
1147 * gnulib/import/stat-w32.c: Update.
1148 * gnulib/import/stat-w32.h: Update.
1149 * gnulib/import/stat.c: Update.
1150 * gnulib/import/stdbool.in.h: Update.
1151 * gnulib/import/stddef.in.h: Update.
1152 * gnulib/import/stdint.in.h: Update.
1153 * gnulib/import/stdio.in.h: Update.
1154 * gnulib/import/stdlib.in.h: Update.
1155 * gnulib/import/str-two-way.h: Update.
1156 * gnulib/import/strchrnul.c: Update.
1157 * gnulib/import/strdup.c: Update.
1158 * gnulib/import/streq.h: Update.
1159 * gnulib/import/strerror-override.c: Update.
1160 * gnulib/import/strerror-override.h: Update.
1161 * gnulib/import/strerror.c: Update.
1162 * gnulib/import/string.in.h: Update.
1163 * gnulib/import/stripslash.c: Update.
1164 * gnulib/import/strnlen1.c: Update.
1165 * gnulib/import/strnlen1.h: Update.
1166 * gnulib/import/strstr.c: Update.
1167 * gnulib/import/strtok_r.c: Update.
1168 * gnulib/import/sys_stat.in.h: Update.
1169 * gnulib/import/sys_time.in.h: Update.
1170 * gnulib/import/sys_types.in.h: Update.
1171 * gnulib/import/tempname.c: Update.
1172 * gnulib/import/tempname.h: Update.
1173 * gnulib/import/time.in.h: Update.
1174 * gnulib/import/unistd--.h: Update.
1175 * gnulib/import/unistd-safer.h: Update.
1176 * gnulib/import/unistd.in.h: Update.
1177 * gnulib/import/unsetenv.c: Update.
1178 * gnulib/import/verify.h: Update.
1179 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1180 * gnulib/import/wchar.in.h: Update.
1181 * gnulib/import/wctype.in.h: Update.
1182 * gnulib/import/xalloc-oversized.h: Update.
1183 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1184 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1185
b0f492b9
GB
11862018-08-16 Gary Benson <gbenson@redhat.com>
1187
1188 PR gdb/13000:
1189 * gdb/main.c (captured_main_1): Exit with nonzero status
1190 in batch mode if the last command to be executed failed.
1191 * NEWS: Mention the above.
1192
2362e7f7
SM
11932018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1194
1195 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1196 end of warning message.
1197
4f4aedeb
AH
11982018-08-29 Alan Hayward <alan.hayward@arm.com>
1199
1200 PR gdb/22943:
1201 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1202 (aarch64_extract_return_value): Use
1203 aapcs_is_vfp_call_or_return_candidate.
1204 (aarch64_return_in_memory): Likewise.
1205 (aarch64_store_return_value): Likewise.
1206
0e745c60
AH
12072018-08-29 Alan Hayward <alan.hayward@arm.com>
1208
1209 * aarch64-tdep.c
1210 (aapcs_is_vfp_call_or_return_candidate): Make static
1211 (pass_in_v_or_stack): Remove function.
1212 (pass_in_v_vfp_candidate): New function.
1213 (aarch64_push_dummy_call): Check for float register candidates.
1214
ea92689a
AH
12152018-08-29 Alan Hayward <alan.hayward@arm.com>
1216
1217 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1218 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1219 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1220
ad202fcc
SM
12212018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1222
1223 PR build/23399
1224 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1225 (struct ipa_sym_addresses): Rename to...
1226 (struct ipa_sym_addresses_common): ... this.
1227 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1228
5fe3f3e4
TT
12292018-08-28 Tom Tromey <tom@tromey.com>
1230
1231 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1232 (token_fifo): Now a std::vector.
1233 (yylex, c_parse): Update.
1234 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1235 (token_fifo): Now a std::vector.
1236 (yylex, d_parse): Update.
1237 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1238 (token_fifo): Now a std::vector.
1239 (yylex, go_parse): Update.
1240
858d8004
SM
12412018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1242
1243 * parser-defs.h (struct type_stack) <elements>: Change type to
1244 std::vector<union type_stack_elt>.
1245 <depth, size>: Remove.
1246 * parse.c (parse_exp_in_context_1): Adjust.
1247 (type_stack_reserve): Remove.
1248 (check_type_stack_depth): Remove.
1249 (insert_into_type_stack): Adjust to std::vector.
1250 (insert_type): Likewise.
1251 (push_type): Likewise.
1252 (push_type_int): Likewise.
1253 (insert_type_address_space): Likewise.
1254 (pop_type): Likewise.
1255 (pop_type_int): Likewise.
1256 (pop_typelist): Likewise.
1257 (pop_type_stack): Likewise.
1258 (append_type_stack): Likewise.
1259 (push_type_stack): Likewise.
1260 (get_type_stack): Likewise.
1261 (type_stack_cleanup): Likewise.
1262 (push_typelist): Likewise.
1263 (follow_types): Likewise.
1264 (_initialize_parse): Likewise.
1265
416a69af
HAQ
12662018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1267
1268 * NEWS: Mention csky target.
1269
9d24df82
HAQ
12702018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1271 Hafiz Abid Qadeer <abidh@codesourcery.com>
1272 Don Breazeal <donb@codesourcery.com>
1273
1274 * csky-linux-tdep.c: New file.
1275 * csky-tdep.c: Likewise.
1276 * csky-tdep.h: Likewise.
1277 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1278 csky-tdep.o.
1279 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1280 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1281 * configure.tgt: Add csky support.
1282
3bf9c013
JV
12832018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1284
1285 * python/py-framefilter.c (py_print_frame): Print frame architecture
1286 when printing on an MI output.
1287
d3d8724a
TT
12882018-08-27 Tom Tromey <tom@tromey.com>
1289
1290 PR build/23087:
1291 * configure: Rebuild.
1292 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1293
1885053b
TT
12942018-08-27 Tom Tromey <tom@tromey.com>
1295
1296 * aarch64-linux-tdep.c
1297 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1298 casts to int.
1299
8406672e
TT
13002018-08-27 Tom Tromey <tom@tromey.com>
1301
1302 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1303 unsigned.
1304 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1305 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1306 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1307 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1308 unsigned.
1309
ec40cf90
TT
13102018-08-27 Tom Tromey <tom@tromey.com>
1311
1312 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1313 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1314
7bc02706
TT
13152018-08-27 Tom Tromey <tom@tromey.com>
1316
1317 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1318 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1319 ULONGEST_MAX.
1320 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1321 ULONGEST_MAX.
1322 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1323 ULONGEST_MAX.
1324 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1325 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1326 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1327 ULONGEST_MAX.
1328 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1329 (ppc64_linux_sigaction_tramp_frame)
1330 (ppc32_linux_sighandler_tramp_frame)
1331 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1332 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1333 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1334 * mn10300-linux-tdep.c (am33_linux_sigframe)
1335 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1336 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1337 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1338 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1339 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1340 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1341 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1342 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1343 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1344 * microblaze-linux-tdep.c
1345 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1346 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1347 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1348 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1349 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1350 * common/common-types.h (ULONGEST_MAX): New define.
1351 (CORE_ADDR_MAX): Fix formatting.
1352 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1353 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1354 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1355 (arm_linux_rt_sigreturn_tramp_frame)
1356 (arm_eabi_linux_sigreturn_tramp_frame)
1357 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1358 (thumb2_eabi_linux_sigreturn_tramp_frame)
1359 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1360 (arm_linux_restart_syscall_tramp_frame)
1361 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1362 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1363 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1364 ULONGEST_MAX.
1365 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1366
70ab8ccd
TT
13672018-08-27 Tom Tromey <tom@tromey.com>
1368
1369 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1370 CORE_ADDR_MAX.
1371 * mips-tdep.c (mips_deal_with_atomic_sequence)
1372 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1373 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1374 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1375 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1376 CORE_ADDR_MAX.
1377 * aarch64-tdep.c (aarch64_software_single_step): Use
1378 CORE_ADDR_MAX.
1379
896a7aa6
TT
13802018-08-27 Tom Tromey <tom@tromey.com>
1381
1382 * linespec.c (complete_linespec_component): Add cast to "char".
1383 * completer.c (completion_tracker::build_completion_result): Add
1384 cast to "char".
1385
dd33d41d
SM
13862018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * solist.h (struct solist, struct target_so_ops): Fix
1389 indentation.
1390
c645cda4
SM
13912018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1392
1393 * ada-tasks.c (ada_task_info_s): Remove typedef.
1394 (DEF_VEC_O(ada_task_info_s)): Remove.
1395 (struct ada_tasks_inferior_data): Initialize fields.
1396 <task_list>: Make an std::vector.
1397 (get_ada_tasks_inferior_data): Allocate with new.
1398 (ada_get_task_number): Adjust.
1399 (get_task_number_from_id): Likewise.
1400 (valid_task_id): Likewise.
1401 (ada_get_task_info_from_ptid): Likewise.
1402 (iterate_over_live_ada_tasks): Likewise.
1403 (add_ada_task): Likewise.
1404 (read_known_tasks): Likewise.
1405 (ada_build_task_list): Likewise.
1406 (print_ada_task_info): Likewise.
1407 (info_task): Likewise.
1408 (task_command_1): Likewise.
1409
39e7af3e
SM
14102018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1411
1412 * ada-lang.c (add_angle_brackets): Return std::string.
1413
bbbbbcee
SM
14142018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1415
1416 * python/py-threadevent.c (py_get_event_thread): Initialize
1417 pythread.
1418
d98fc15b
PA
14192018-08-24 Pedro Alves <palves@redhat.com>
1420
1421 * python/py-bpevent.c (create_breakpoint_event_object): Use
1422 copy-initialization.
1423 * python/py-continueevent.c (emit_continue_event): Use
1424 copy-initialization.
1425 * python/py-exitedevent.c (create_exited_event_object): Return a
1426 gdbpy_ref<>.
1427 (emit_exited_event): Use copy-initialization.
1428 * python/py-inferior.c (python_new_inferior)
1429 (python_inferior_deleted, add_thread_object): Use
1430 copy-initialization.
1431 * python/py-infevents.c (create_inferior_call_event_object)
1432 (create_register_changed_event_object)
1433 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1434 (emit_inferior_call_event, emit_memory_changed_event)
1435 (emit_register_changed_event): Use copy-initialization.
1436 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1437 Return a gdbpy_ref<>.
1438 (emit_new_objfile_event): Use copy-initialization.
1439 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1440 (emit_clear_objfiles_event): Use copy-initialization.
1441 * python/py-signalevent.c (create_signal_event_object): Use
1442 copy-initialization.
1443 * python/py-threadevent.c (create_thread_event_object): Use
1444 copy-initialization.
1445
da3c8738
PA
14462018-08-24 Pedro Alves <palves@redhat.com>
1447 Simon Marchi <simon.marchi@ericsson.com>
1448
1449 PR gdb/23379
1450 * python/py-continueevent.c: Include "gdbthread.h".
1451 (create_continue_event_object): Add intro comment. Add 'ptid'
1452 parameter. Use it to find thread to pass to
1453 create_thread_event_object.
1454 (emit_continue_event): Pass PTID down to
1455 create_continue_event_object.
1456 * python/py-event.h (py_get_event_thread): Declare.
1457 (create_thread_event_object): Remove default from 'thread'
1458 parameter.
1459 * python/py-stopevent.c (create_stop_event_object): Use
1460 py_get_event_thread.
1461 * python/py-threadevent.c (get_event_thread): Rename to ...
1462 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1463 and use it to find the thread.
1464 (create_thread_event_object): Assert that THREAD isn't null.
1465 Don't find the event thread here.
1466
26457a9c
KB
14672018-08-23 Kevin Buettner <kevinb@redhat.com>
1468
1469 * block.h (blockrange, blockranges): New struct declarations.
1470 (struct block): Add new field named `ranges'.
1471 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1472 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1473 macros for accessing ranges in struct block.
1474 (make_blockranges): New declaration.
1475 block.c (make_blockranges): New function.
2d5f09ec
KB
1476 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1477 for block.
fc811edd
KB
1478 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1479 * blockframe.c (cache_pc_function_block): New static global.
1480 (clear_pc_function_cache): Clear cache_pc_function_block.
1481 (find_pc_partial_function): Move comment to symtab.h. Add
1482 support for non-contiguous blocks.
e9480230
KB
1483 * cli/cli-cmds.c (block.h): Include.
1484 (print_disassembly): Handle printing of non-contiguous blocks.
1485 (disassemble_current_function): Likewise.
1486 (disassemble_command): Likewise.
26457a9c 1487
2b1ffcfd
KB
1488 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1489 BLOCK_START.
1490 * blockframe.c (get_pc_function_start): Likewise.
1491 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1492 (gcc_symbol_address): Likewise.
1493 * compile/compile-object-run.c (compile_object_run): Likewise.
1494 * compile/compile.c (get_expr_block_and_pc): Likewise.
1495 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1496 (func_addr_to_tail_call_list): Likewise.
1497 * findvar.c (default_read_var_value): Likewise.
1498 * inline-frame.c (inline_frame_this_id): Likewise.
1499 (skip-inline_frames): Likewise.
1500 * infcmd.c (until_next_command): Likewise.
1501 * linespec.c (convert_linespec_to_sals): Likewise.
1502 * parse.c (parse_exp_in_context_1): Likewise.
1503 * printcmd.c (build_address_symbolic): likewise.
1504 (info_address_command): Likewise.
1505 symtab.c (find_function_start_sal): Likewise.
1506 (skip_prologue_sal): Likewise.
1507 (find_function_alias_target): Likewise.
1508 (find_gnu_ifunc): Likewise.
1509 * stack.c (find_frame_funname): Likewise.
1510 * symtab.c (fixup_symbol_section): Likewise.
1511 (find_function_start_sal): Likewise.
1512 (skip_prologue_sal): Likewsie.
1513 (find_function_alias_target): Likewise.
1514 (find_gnu_ifunc): Likewise.
1515 * tracepoint.c (info_scope_command): Likewise.
1516 * value.c (value_fn_field): Likewise.
1517
9644dc3a
KB
1518 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1519 in place of find_pc_partial_function.
1520 * blockframe.c (find_function_entry_range_from_pc): New function.
1521 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1522 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1523 for each range in a block.
1524
1525
12a0d0f6
XR
15262018-08-23 Xavier Roirand <roirand@adacore.com>
1527
1528 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1529 incrementation.
1530
d1012b8e
SM
15312018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1532
1533 * solib-svr4.c (read_program_headers_from_bfd): Return
1534 gdb::optional<gdb::byte_vector>.
1535 (svr4_exec_displacement): Adjust.
1536
17658d46
SM
15372018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1538
1539 * solib-svr4.c (read_program_header): Return
1540 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1541 (find_program_interpreter): Return
1542 gdb::optional<gdb::byte_vector>.
1543 (scan_dyntag_auxv): Adjust.
1544 (enable_break): Adjust.
1545 (svr4_exec_displacement): Adjust.
1546
ae739fe7
SM
15472018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1548
1549 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1550 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1551
467dc1e2
SM
15522018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1553
1554 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1555 string_vprintf.
1556 * guile/scm-utils.c (gdbscm_printf): Likewise.
1557 * serial.c (serial_printf): Likewise.
1558 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1559
6d52907e
JV
15602018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1561
1562 * stack.c (print_frame): Print frame architecture when printing on
1563 an MI output.
1564 * NEWS: Mention new "arch" attribute in frame output.
1565
9758a8f8
AH
15662018-08-21 Alan Hayward <alan.hayward@arm.com>
1567
1568 * arch/aarch64.h (aarch64_regnum): Update comment.
1569
1461bdac
AH
15702018-08-21 Alan Hayward <alan.hayward@arm.com>
1571
1572 * NEWS: Add SVE to 8.2 section.
1573
4895f384
PA
15742018-08-21 Pedro Alves <palves@redhat.com>
1575
1576 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1577 out from gdbscm_parse_function_args.
1578 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1579 gdbscm_parse_function_args_1.
1580
a4497d2f
SM
15812018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1582
1583 PR gdb/17816
1584 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1585 operator.
1586
c44deb73
SM
15872018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1588
1589 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1590
be2d111a
MS
15912018-08-19 Michael Spang <spang@google.com>
1592
1593 PR gdb/11786
1594 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1595 for PT_TLS segments.
1596
a6b786da
KB
15972018-08-18 Kevin Buettner <kevinb@redhat.com>
1598
1599 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1600 dwarf_variable_value.
1601 * dwarf2-frame.c (class dwarf_expr_executor):
1602 Add override for dwarf_variable_value.
1603 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1604 (class symbol_needs_eval_context): Likewise.
1605 (indirect_synthetic_pointer): Add forward declaration.
1606 (sect_variable_value): New function.
1607 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1608 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1609 for DW_OP_GNU_variable_value.
1610
89fbedf3
TT
16112018-08-16 Tom Tromey <tom@tromey.com>
1612
1613 * top.c (read_command_file): Update.
1614 (command_line_input): Remove "repeat" argument.
1615 * ada-lang.c (get_selections): Update.
1616 * linespec.c (decode_line_2): Update.
1617 * defs.h (command_line_input): Remove argument.
1618 * cli/cli-script.c (read_next_line): Update.
1619 * python/py-gdb-readline.c: Update.
1620
12582533
TT
16212018-08-17 Tom Tromey <tom@tromey.com>
1622
1623 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1624 command_line_input.
1625
49514353
TT
16262018-08-15 Tom Tromey <tom@tromey.com>
1627
1628 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1629
26fb3983
JV
16302018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1631
1632 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1633 If used, use find_pc_partial_function to find address range
1634 to disassemble.
1635 * mi/mi-main.c (mi_cmd_list_features): Report
1636 "data-disassemble-a-option" feature.
1637 * NEWS: Mention new -data-disassemble option -a.
1638
a97b53dd
TT
16392018-08-13 Tom Tromey <tom@tromey.com>
1640
1641 * common/common-defs.h (_FORTIFY_SOURCE): Define.
1642
0c76e06d
AH
16432018-08-13 Alan Hayward <alan.hayward@arm.com>
1644
1645 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1646 (aarch64_linux_collect_sve_regset): Likewise.
1647 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1648 * regcache.h (regcache_map_entry_size): New function.
1649
b7fd65b9
AH
16502018-08-13 Alan Hayward <alan.hayward@arm.com>
1651
1652 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1653 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1654 (SVE_HEADER_VL_LENGTH): Likewise.
1655 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1656 (SVE_HEADER_FLAGS_LENGTH): Likewise.
1657 (SVE_HEADER_RESERVED_LENGTH): Likewise.
1658 (SVE_HEADER_SIZE_OFFSET): Likewise.
1659 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1660 (SVE_HEADER_VL_OFFSET): Likewise.
1661 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1662 (SVE_HEADER_FLAGS_OFFSET): Likewise.
1663 (SVE_HEADER_RESERVED_OFFSET): Likewise.
1664 (SVE_HEADER_SIZE): Likewise.
1665 (aarch64_linux_core_read_vq): Add function.
1666 (aarch64_linux_core_read_description): Check for SVE section.
1667
a616bb94
AH
16682018-08-13 Alan Hayward <alan.hayward@arm.com>
1669
1670 * aarch64-fbsd-tdep.c
1671 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1672 collect_size.
1673 * aarch64-linux-tdep.c
1674 (aarch64_linux_iterate_over_regset_sections): Likewise.
1675 * alpha-linux-tdep.c
1676 (alpha_linux_iterate_over_regset_sections):
1677 * alpha-nbsd-tdep.c
1678 (alphanbsd_iterate_over_regset_sections): Likewise.
1679 * amd64-fbsd-tdep.c
1680 (amd64fbsd_iterate_over_regset_sections): Likewise.
1681 * amd64-linux-tdep.c
1682 (amd64_linux_iterate_over_regset_sections): Likewise.
1683 * arm-bsd-tdep.c
1684 (armbsd_iterate_over_regset_sections): Likewise.
1685 * arm-fbsd-tdep.c
1686 (arm_fbsd_iterate_over_regset_sections): Likewise.
1687 * arm-linux-tdep.c
1688 (arm_linux_iterate_over_regset_sections): Likewise.
1689 * corelow.c (get_core_registers_cb): Likewise.
1690 (core_target::fetch_registers): Likewise.
1691 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1692 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1693 * gdbarch.h (void): Regenerate.
1694 * gdbarch.sh: Add supply_size and collect_size.
1695 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1696 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1697 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1698 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1699 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1700 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1701 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1702 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1703 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1704 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1705 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1706 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1707 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1708 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1709 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1710 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1711 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1712 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1713 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1714 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1715 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1716 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1717 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1718 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1719 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1720 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1721 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1722 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1723 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1724 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1725
a9925d4f
SM
17262018-08-10 Simon Marchi <simon.marchi@ericsson.com>
1727
1728 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1729 with string_printf.
1730
ad3a68e9
KS
17312018-08-10 Keith Seitz <keiths@redhat.com>
1732
1733 * compile/compile-c-support.c (add_code_header, add_code_footer):
1734 Move into policy class.
1735 (c_push_user_expression, pop_user_expression_nop)
1736 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1737 (compile_program): New host class.
1738 (c_compile_program): New typedef.
1739 (c_compute_porgram): Use c_compile_program.
1740
0cfbf430
KS
17412018-08-10 Keith Seitz <keiths@redhat.com>
1742
1743 * compile/compile-internal.h (compile_instance::~compile_instance):
1744 Remove calls to htab_delete.
1745 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1746 * compile.c (compile_instance::compile_instance): Initialize
1747 htab unique pointers.
1748 (compile_instance::get_cached_type, compile_instance::insert_type)
1749 (compile_instance::error_symbol_once): Update for unique_ptr.
1750
946d3d10
KS
17512018-08-10 Keith Seitz <keiths@redhat.com>
1752
1753 * compile/compile-c-symbols.c (struct symbol_error)
1754 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1755 (compile_instance::insert_symbol_error)
1756 (compile_instance::error_symbol_once): Move to ...
1757 * compile/compile.c: ... here.
1758
9cdfd9a2
KS
17592018-08-10 Keith Seitz <keiths@redhat.com>
1760
1761 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1762 instead of `new_compile_instance'.
1763 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1764 Update description.
1765 If the symbol error map is not initialized, create it.
1766 (generate_c_for_for_one_symbol): Do not check/initialize
1767 the symbol error map.
1768 * compile/compile-c-types.c (compile_c_instance): Make a class.
1769 Update all callers.
1770 (compile_instance::compile_instance): Initialize the type cache.
1771 (get_cached_type): New function.
1772 (insert_type): Update description.
1773 (compile_c_instance::m_default_cflags): Define.
1774 (convert_type): Update description. Use get_cached_type.
1775 (delete_instance): Moved to destructor.
1776 (new_compile_instance): Moved to constructor.
1777 * compile/compile-c.h (compile_c_instance): Make class inheriting
1778 from compile_instance.
1779 <base>: Remove field.
1780 <type_map, symbol_err_map>: Move to base class.
1781 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1782 * compile/compile-internal.h (compile_instance): Make class.
1783 <type_map_t, symbol_err_map_t>: Define.
1784 <fe>: Rename to `m_gcc_fe'.
1785 <scope, block, gcc_target_options>: Add `m_' prefix.
1786 <m_type_map, m_symbol_err_map>: New fields, moved from
1787 compile_c_instance.
1788 <destroy>: Remove.
1789 (convert_type, new_compile_instance): Remove.
1790 * compile/compile.c (cleanup_compile_instance): Remove.
1791 (compile_to_object): Use unique_ptr to eliminate cleanups.
1792 (compile_instance::set_print_callback, compile_instance::version)
1793 (compile_instance::set_verbose)
1794 (compile_instance::set_driver_filename)
1795 (compile_instance::set_triplet_regexp)
1796 (compile_instance::set_arguments)
1797 (compile_instance::set_source_file)
1798 (compile_instance::compile): Define.
1799
18cdc6d8
KS
18002018-08-10 Keith Seitz <keiths@redhat.com>
1801
1802 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1803 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1804 gcc-c-fe.def to define C plugin.
1805 (delete_instance): Delete `c_plugin'.
1806 (new_compile_instance): Initialize `c_plugin'.
1807 * compile/compile-c.h: Include gcc_c_plugin.h.
1808 (struct compile_c_instance) <c_plugin>: New member.
1809 * gcc-c-plugin.h: New file.
1810 Update all callers with API change.
1811
b7dc48b4
KS
18122018-08-10 Keith Seitz <keiths@redhat.com>
1813
1814 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1815 (HFILES_NO_SRCDIR): ... to here.
1816 Add compile-internal.h and compile-c.h.
1817 * compile/compile-c-support.c: Include compile-c.h.
1818 * compile/compile-c-symbols.c: Include compile-c.h.
1819 (generate_c_for_variable_locations): Update comment.
1820 * compile/compile-c-types.c: Include compile-c.h.
1821 * compile/compile-c.h: New file -- moved C language declarations
1822 from other files here.
1823 * compile/compile-internal.h: Do not include hashtab.h or
1824 common/enum-flags.h.
1825 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1826 (gcc_convert_symbol, gcc_symbol_address)
1827 (generate_c_for_variable_locations, c_get_mode_for_size)
1828 (c_get_range_decl_name): Definitions moved to compile-c.h.
1829 * compile/compile-loc2c.c: Include compile-c.h.
1830
6f36b6d2
KS
18312018-08-10 Keith Seitz <keiths@redhat.com>
1832
1833 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1834 (c_symbol_substitution_name): ... this.
1835 Update all callers.
1836
bd923e51
KS
18372018-08-10 Keith Seitz <keiths@redhat.com>
1838
1839 * compile/compile-c-support.c (c_compute_program): Use
1840 unique_xmalloc_ptr to eliminate cleanup.
1841 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1842 Return a unique_xmalloc_ptr and eliminate cleanup.
1843 * compile/compile-internal.h (generate_c_for_variable_locations):
1844 Return unique_xmalloc_ptr and update description.
1845
dbd534fe
AH
18462018-08-10 Alan Hayward <alan.hayward@arm.com>
1847
1848 * corelow.c (core_target::get_core_register_section): Rename
1849 min_size to section_min_size.
1850
90ad3654
JW
18512018-08-09 Jim Wilson <jimw@sifive.com>
1852
52a187f8
JW
1853 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1854 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1855 * NEWS: Mention new GNU/Linux RISC-V target.
1856 * configure.host: Add riscv*-*-linux*.
1857 * configure.nat: Add riscv*.
1858 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 1859 * riscv-linux-nat.c: New file.
90ad3654
JW
1860 * riscv-linux-tdep.c: New file.
1861
aff4e175
AB
18622018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1863
1864 * infrun.c (resume): Make static, add forward declaration.
1865 (proceed): Update header comment.
1866 * infrun.h (resume): Delete declaration.
1867
06ab9219
TT
18682018-08-09 Tom Tromey <tom@tromey.com>
1869
1870 * riscv-tdep.h: Minor formatting fixes.
1871
83c8d318
SM
18722018-08-09 Simon Marchi <simon.marchi@ericsson.com>
1873
1874 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
1875 * dwarf-index-cache.c (create_dir_and_check): Likewise.
1876 (test_mkdir_recursive): Likewise.
1877 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
1878
5ff2bbae
AB
18792018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1880
1881 * valarith.c (value_subscripted_rvalue): If an array is not in
1882 memory, and we don't know the upper bound, then we can't know that
1883 the requested element exists or not.
1884
fdbac7d8
SM
18852018-08-08 Simon Marchi <simon.marchi@ericsson.com>
1886
1887 * target.c (str_comma_list_concat_elem): Fix typo in comment.
1888 (target_options_to_string): Add comment.
1889
83202f7a
TT
18902018-08-08 Tom Tromey <tom@tromey.com>
1891
1892 * unittests/scoped_mmap-selftests.c: Check result of "write".
1893
411baa47
JW
18942018-08-08 Jim Wilson <jimw@sifive.com>
1895
5c720ed8
JW
1896 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
1897 (decode_register_index_short): New.
1898 (decode_j_type_insn, decode_cj_type_insn): New.
1899 (decode_b_type_insn, decode_cb_type_insn): New.
1900 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
1901 local xlen. Check xlen when decoding ambiguous compressed insns. In
1902 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
1903 is_c_sw_insn instead of is_sw_insn.
1904 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
1905 (riscv_software_single_step): New.
1906 * riscv-tdep.h (riscv_software_single_step): Declare.
1907
411baa47
JW
1908 * riscv-tdep.c (riscv_isa_xlen): Drop static.
1909 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
1910
9d4a934c
AB
19112018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
1912
1913 PR gdb/18050:
1914 * target.c (dispose_inferior): Don't dispose of inferiors that are
1915 already killed.
1916
ff36536c
SN
19172018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1918
1919 * remote.c (remote_target::download_tracepoint): Change char* to
1920 const char*.
1921
09ce46f2
SM
19222018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1923
1924 * target.h (target_options_to_string): Return an std::string.
1925 * target.c (str_comma_list_concat_elem): Return void, use
1926 std::string.
1927 (do_option): Likewise.
1928 (target_options_to_string): Return an std::string.
1929 * linux-nat.c (linux_nat_target::wait): Adjust.
1930 * target-debug.h (target_debug_print_options): Adjust.
1931
9c612964
TT
19322018-08-07 Tom Tromey <tom@tromey.com>
1933
1934 * Makefile.in (CPPFLAGS): New variable.
1935 (INTERNAL_CPPFLAGS): Use it.
1936
7d11235d
SM
19372018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1938
1939 * NEWS: Mention the index cache.
1940
87d6a7aa
SM
19412018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1942
1943 * common/pathstuff.h (get_standard_cache_dir): New.
1944 * common/pathstuff.c (get_standard_cache_dir): New.
1945 * build-id.h (build_id_to_string): New.
1946 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
1947 DEBUG_STR_SUFFIX): Move to here.
1948 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
1949 DEBUG_STR_SUFFIX): Move from there.
1950 (write_psymtabs_to_index): Make non-static, add basename
1951 parameter. Write to temporary files, rename when done.
1952 (save_gdb_index_command): Adjust call to
1953 write_psymtabs_to_index.
1954 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
1955 field.
1956 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
1957 (get_gdb_index_contents_from_cache): New.
1958 (get_gdb_index_contents_from_cache_dwz): New.
1959 (dwarf2_initialize_objfile): Read index from cache.
1960 (dwarf2_build_psymtabs): Save to index.
1961 * dwarf-index-cache.h: New file.
1962 * dwarf-index-cache.c: New file.
1963 * dwarf-index-write.h: New file.
1964
8a99096f
SM
19652018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1966
1967 * gnulib/aclocal.m4: Re-generate.
1968 * gnulib/config.in: Re-generate.
1969 * gnulib/configure: Re-generate.
1970 * gnulib/import/Makefile.am: Re-generate.
1971 * gnulib/import/Makefile.in: Re-generate.
1972 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1973 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1974 * gnulib/import/m4/mkdir.m4: New file.
1975 * gnulib/import/mkdir.c: New file.
1976 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
1977 module.
1978
5c831bb1
SM
19792018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1980
1981 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
1982 * common/scoped_mmap.c: New file.
1983 * common/scoped_mmap.h (destroy): New method.
1984 (~scoped_mmap, reset): Use destroy.
1985 (scoped_mmap): New move constructor.
1986 (mmap_file): New declaration.
1987 * unittests/scoped_mmap-selftests.c (test_normal,
1988 test_invalid_filename, run_tests): New functions.
1989 (_initialize_scoped_mmap_selftests): Register selftest.
1990
4485a1c1
SM
19912018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1992
1993 * dwarf2read.c (read_gdb_index_from_section): Rename to...
1994 (read_gdb_index_from_buffer): ... this. Remove section
1995 parameter, add buffer parameter.
1996 (get_gdb_index_contents_ftype,
1997 get_gdb_index_contents_dwz_ftype): New typedefs.
1998 (dwarf2_read_gdb_index): Add callback parameters to get the
1999 index contents.
2000 (get_gdb_index_contents_from_section): New.
2001 (dwarf2_initialize_objfile): Update call to
2002 dwarf2_read_gdb_index.
2003
528e1572
SM
20042018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2005
2006 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2007 (gdb_open_cloexec): Likewise.
2008 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2009 (commandline_from_pid): Likewise.
2010 (linux_xfer_osdata_threads): Likewise.
2011 (linux_xfer_osdata_fds): Likewise.
2012 * ada-lang.c (is_package_name): Likewise.
2013 * auxv.c (procfs_xfer_auxv): Likewise.
2014 * breakpoint.c (print_one_breakpoint_location): Use
2015 uiout::field_fmt.
2016 (print_one_catch_solib): Use string_printf.
2017 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2018 (add_pe_forwarded_sym): Likewise.
2019 * dwarf2read.c (create_type_unit_group): Likewise.
2020 (build_error_marker_type): Likewise.
2021 * infcall.c (get_function_name): Likewise.
2022 * valprint.c (print_converted_chars_to_obstack): Likewise.
2023 * xtensa-tdep.c (xtensa_register_type): Likewise.
2024
a7f25a84
SM
20252018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2026
2027 * remote.c (remote_target::download_tracepoint): Fix format
2028 string errors.
2029
296956be
PFC
20302018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2031
2032 * tracefile.c: Include common/byte-vector.h.
2033 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2034 with trace_regblock_size if needed. Update uses of buf.
2035
a04b9d62
PFC
20362018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2037
2038 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2039 std::vector<unsigned char>.
2040 * tracepoint.c (collection_list::collection_list): Remove
2041 m_regs_mask initializer from initializer list. Resize
2042 m_regs_mask using the largest remote register number.
2043 (collection_list::add_remote_register): Remove size check on
2044 m_regs_mask. Use at to access element.
2045 (collection_list::stringify): Change type of temp_buf to
2046 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2047 stringify the register mask. Use pack_hex_byte for the register
2048 mask.
2049
4277c4b8
PFC
20502018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2051
2052 * tracepoint.h (class collection_list) <add_register>: Remove.
2053 <add_remote_register, add_ax_registers, add_local_register>:
2054 Declare.
2055 <add_memrange>: Add scope parameter.
2056 * tracepoint.c (encode_actions_1): Likewise.
2057 (collection_list::add_register): Rename to ...
2058 (collection_list::add_remote_register): ... this. Update
2059 comment.
2060 (collection_list::add_ax_registers, add_local_register): New
2061 methods.
2062 (collection_list::add_memrange): Add scope parameter. Call
2063 add_local_register instead of add_register.
2064 (finalize_tracepoint_aexpr): New function.
2065 (collection_list::collect_symbol): Update calls to add_memrange.
2066 Call add_local_register instead of add_register. Call
2067 add_ax_registers. Call finalize_tracepoint_aexpr.
2068 (encode_actions_1): Get remote regnos for $reg action. Call
2069 add_remote_register, add_ax_registers, and add_local_register.
2070 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2071 (validate_actionline): Call finalize_tracepoint_aexpr.
2072
3df3a985
PFC
20732018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2074
2075 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2076 Replace array buf with gdb::char_vector buf, of size
2077 get_remote_packet_size (). Replace references to buf and
2078 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2079 and xsnprintf with snprintf. Raise errors if the buffer is too
2080 small.
2081
aa6f3694
PFC
20822018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2083
2084 * remote.c (remote_target::download_tracepoint): Fix the has_more
2085 predicate in the QTDP action list iteration.
2086
05abfc39
PFC
20872018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2088
2089 * remote.c (remote_target::download_tracepoint): Fix indentation
2090 in for block.
2091
821a2682
RO
20922018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2093
2094 * proc-api.c (_initialize_proc_api): Remove c, unused.
2095 * procfs.c (procfs_init_inferior): Remove signals, unused.
2096 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2097 unused.
2098
95347337
AB
20992018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2100 Andrew Burgess <andrew.burgess@embecosm.com>
2101
2102 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2103 'W_STOPCODE (0)' as this could be ambiguous.
2104
425699f5
SDJ
21052018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2106
2107 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2108 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2109 "ai_socktype").
2110
3e1d3d8c
TT
21112018-08-02 Tom Tromey <tom@tromey.com>
2112
2113 PR symtab/16842.
2114 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2115 symbols.
2116 (process_structure_scope): Likewise.
2117
15843549
XR
21182018-08-02 Xavier Roirand <roirand@adacore.com>
2119
2120 PR gdb/22629:
2121 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2122 kill inferior.
2123
b5bddbbb
TT
21242018-08-02 Tom Tromey <tom@tromey.com>
2125
2126 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2127 (darwin_suspend_inferior, darwin_resume_inferior)
2128 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2129 (darwin_check_new_threads): Check result of get_darwin_inferior.
2130
f61cfa07
JB
21312018-07-31 Joel Brobecker <brobecker@adacore.com>
2132
2133 GDB 8.1.1 released.
2134
5abe0f0c
JV
21352018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2136
2137 * varobj.c (varobj_get_path_expr_parent): Report an error if
2138 parent is a dynamic varobj.
2139
472fa5ee
SM
21402018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2141
2142 * gnulib/aclocal.m4: Re-generate.
2143 * gnulib/config.in: Re-generate.
2144 * gnulib/configure: Re-generate.
2145 * gnulib/import/Makefile.in: Re-generate.
2146 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2147 * gnulib/import/m4/onceonly.m4: Re-generate.
2148
1c28969e
SM
21492018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2150
2151 * target-descriptions.c (struct xml_test_tdesc): New.
2152 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2153 (record_xml_tdesc): Update.
2154 (maintenance_check_xml_descriptions): Update.
2155 * target-descriptions.h (record_xml_tdesc): Update comment.
2156
c8f2dc0d
AB
21572018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2158
2159 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2160 checking array bounds are defined.
2161
463c08d1
TT
21622018-07-30 Tom Tromey <tom@tromey.com>
2163
2164 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2165 irreflexivity violation.
2166
dba7455e
TT
21672018-07-30 Tom Tromey <tom@tromey.com>
2168
2169 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2170 * value.c (unpack_long): Remove lint code.
2171 * valops.c (value_ind): Remove lint code.
2172 * valarith.c (value_x_binop, value_x_unop, value_equal)
2173 (value_pos): Remove lint code.
2174
37cc0cae
TV
21752018-07-28 Tom de Vries <tdevries@suse.de>
2176
2177 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2178 with undefined upper bound as <optimized out>.
2179
129eb0f1
SDJ
21802018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2181
2182 * gcore.in: Rename variable "name" to "prefix". Expand
2183 "usage" text.
2184
6af79d7b
JT
21852018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2186
2187 * windows-nat.c (windows_nat_target::create_inferior): Update to
2188 call close() in global namespace.
2189
79748972
TT
21902018-07-26 Tom Tromey <tom@tromey.com>
2191
2192 * dwarf-index-write.c (add_address_entry): Don't add objfile
2193 offsets.
2194 * dbxread.c (find_stab_function): Rename from
2195 find_stab_function_addr. Return a bound_minimal_symbol.
2196 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2197 Don't add objfile offsets.
2198 (end_psymtab): Use raw_text_low, raw_text_high,
2199 MSYMBOL_VALUE_RAW_ADDRESS.
2200 (read_ofile_symtab): Update.
2201 (process_one_symbol): Update.
2202 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2203 offsets.
2204 (dw2_relocate): Remove.
2205 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2206 searching addrmap.
2207 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2208 Update.
2209 (process_psymtab_comp_unit_reader, add_partial_symbol)
2210 (add_partial_subprogram, dwarf2_ranges_read): Update.
2211 (load_partial_dies): Update.
2212 (add_address_entry): Don't add objfile offsets.
2213 (dwarf2_build_include_psymtabs): Update.
2214 (create_addrmap_from_aranges): Don't add objfile offsets.
2215 (dw2_find_pc_sect_compunit_symtab): Update.
2216 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2217 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2218 Update.
2219 (parse_partial_symbols): Don't add objfile offsets. Use
2220 raw_text_low, raw_text_high. Update.
2221 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2222 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2223 or call 'relocate' quick function. Clear psymbol_map.
2224 * psympriv.h (struct partial_symbol) <address>: Add section
2225 offset.
2226 <set_unrelocated_address>: Rename from set_address.
2227 <raw_text_low, raw_text_high>: New methods.
2228 <text_low, text_high>: Add objfile parameter.
2229 (add_psymbol_to_bcache): Add 'section' parameter. Call
2230 set_unrelocated_address.
2231 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2232 (find_pc_psymbol): Update.
2233 (fixup_psymbol_section, relocate_psymtabs): Remove.
2234 (dump_psymtab, psym_functions): Update.
2235 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2236 parameter.
2237 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2238 (start_psymtab_common): Update.
2239 * symfile-debug.c (debug_qf_relocate): Remove.
2240 (debug_sym_quick_functions): Update.
2241 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2242 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2243 Update.
2244
52948f01
TT
22452018-07-26 Tom Tromey <tromey@redhat.com>
2246
2247 * dbxread.c (end_psymtab): Use text_high_valid and
2248 text_low_valid.
2249 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2250 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2251 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2252 Update comment.
2253 <text_low_valid, text_high_valid>: New fields.
2254 <set_text_low, set_text_high>: Update.
2255 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2256
4ae976d1
TT
22572018-07-26 Tom Tromey <tom@tromey.com>
2258
2259 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2260 Update.
2261 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2262 textlow and texthigh fields.
2263 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2264 Update.
2265 * mdebugread.c (parse_lines, parse_partial_symbols)
2266 (psymtab_to_symtab_1): Update.
2267 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2268 Rename fields. Update comment. Now private.
2269 <text_low, text_high, set_text_low, set_text_high>: New methods.
2270 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2271 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2272 (start_psymtab_common, maintenance_info_psymtabs)
2273 (maintenance_check_psymtabs): Update.
2274 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2275 texthigh fields.
2276 (scan_xcoff_symtab): Update.
2277
02e9e7f7
TT
22782018-07-26 Tom Tromey <tromey@redhat.com>
2279
2280 * psympriv.h (struct partial_symbol) <unrelocated_address,
2281 address, set_address>: New methods.
2282 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2283 (fixup_psymbol_section, relocate_psymtabs): Update.
2284 (print_partial_symbols): Add 'objfile' parameter. Update.
2285 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2286 Update.
2287
8a6d4234
TT
22882018-07-26 Tom Tromey <tom@tromey.com>
2289
2290 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2291 (debug_names::write_psymbols): Update.
2292 * psympriv.h (struct partial_symbol): Derive from
2293 general_symbol_info.
2294 <obj_section>: New method.
2295 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2296 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2297 (find_pc_sect_psymbol, fixup_psymbol_section)
2298 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2299 (print_partial_symbols, recursively_search_psymtabs)
2300 (compare_psymbols, psymbol_hash, psymbol_compare)
2301 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2302 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2303
08994e1d
TT
23042018-07-26 Tom Tromey <tromey@redhat.com>
2305
2306 * dbxread.c (end_psymtab): Remove dead code.
2307
3c3bb058
AB
23082018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2309
2310 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2311 DWARF unwinders are disabled.
2312 * dwarf2-frame.c: Add dwarf2read.h include.
2313 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2314 disabled.
2315 (dwarf2_frame_unwinders_enabled_p): Define.
2316 (show_dwarf_unwinders_enabled_p): New function.
2317 (_initialize_dwarf2_frame): Register switch to control DWARF
2318 unwinder use.
2319 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2320 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2321 (show_dwarf_cmdlist): Remove static keyword.
2322 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2323 (show_dwarf_cmdlist): Declare.
2324 * NEWS: Document new feature.
2325
9e7f3bbb
TV
23262018-07-26 Tom de Vries <tdevries@suse.de>
2327
2328 PR breakpoints/23366
2329 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2330
506f5c41
TV
23312018-07-26 Tom de Vries <tdevries@suse.de>
2332
2333 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2334 DW_AT_count can't be translated to a dynamic prop.
2335
16f808ec
TV
23362018-07-25 Tom de Vries <tdevries@suse.de>
2337
2338 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2339 try/catch.
2340
d7154a8d
JV
23412018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2342
2343 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2344
a45389f6
JB
23452018-07-25 Joel Brobecker <brobecker@adacore.com>
2346
2347 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2348
380618d6
KS
23492018-07-24 Keith Seitz <keiths@redhat.comt
2350
2351 PR symtab/23010
2352 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2353 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2354 instead of add_symbol_to_list.
2355 (read_file_scope): Call prepare_one_comp_unit before reading
2356 any other DIEs.
2357
4b17aefe
SM
23582018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2359
2360 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2361
29d17e47
TT
23622018-07-24 Tom Tromey <tom@tromey.com>
2363
2364 * utils.c (malloc, realloc, free): Don't declare.
2365 * configure, config.in: Rebuild.
2366 * configure.ac: Don't check for declarations of free, malloc, or
2367 realloc.
2368
cf4088a9
SM
23692018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2370
2371 * aarch64-linux-nat.c
2372 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2373 variable.
2374 * arm-linux-nat.c (fetch_regs): Likewise.
2375 (store_regs): Likewise.
2376 (fetch_vfp_regs): Likewise.
2377 (store_vfp_regs): Likewise.
2378 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2379 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2380 (arm_linux_nat_target::insert_watchpoint): Likewise.
2381 (arm_linux_nat_target::remove_watchpoint): Likewise.
2382 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2383 Likewise.
2384 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2385 Likewise.
2386 * ppc-linux-nat.c (fetch_register): Likewise.
2387 (fetch_all_gp_regs): Likewise.
2388 (fetch_ppc_registers): Likewise.
2389 (store_all_gp_regs): Likewise.
2390 (store_ppc_registers): Likewise.
2391 (hwdebug_insert_point): Likewise.
2392 (can_use_watchpoint_cond_accel): Likewise.
2393 * remote-sim.c (gdb_os_write_stdout): Likewise.
2394
a0de763e
TT
23952018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2396 Tom Tromey <tom@tromey.com>
2397
2398 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2399 test for it.
2400 * configure: Rebuild.
2401
3b20124b
TT
24022018-07-22 Tom Tromey <tom@tromey.com>
2403
2404 * regformats/regdat.sh: Define xmltarget_${name} inside
2405 #ifndef IN_PROCESS_AGENT.
2406
8c8807f4
TT
24072018-07-22 Tom Tromey <tom@tromey.com>
2408
2409 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2410
c486b610
TT
24112018-07-22 Tom Tromey <tom@tromey.com>
2412
2413 * symfile.c (reread_symbols): Notify iter, not objfile.
2414
494f80a9
TT
24152018-07-22 Tom Tromey <tom@tromey.com>
2416
2417 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2418 Use arch_ops.
2419 (ravenscar_thread_target::prepare_to_store): Likewise.
2420
c51f6a54
TT
24212018-07-22 Tom Tromey <tom@tromey.com>
2422
2423 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2424 unused variable. Call value_fetch_lazy when needed.
2425 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2426 Remove unused variable. Call value_fetch_lazy when needed.
2427
374fd1fd
TT
24282018-07-22 Tom Tromey <tom@tromey.com>
2429
2430 * m32c-tdep.c (mark_dma): Return void.
2431 (make_regs): Remove unused declarations.
2432
d5e9a511
TT
24332018-07-22 Tom Tromey <tom@tromey.com>
2434
2435 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2436 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2437 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2438 bkscm_get_valid_block_smob_arg_unsafe for effect.
2439
996d693a
TT
24402018-07-22 Tom Tromey <tom@tromey.com>
2441
2442 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2443 value_type.
2444
15766370
TT
24452018-07-22 Tom Tromey <tom@tromey.com>
2446
2447 * windows-nat.c (saved_context): Conditionally define.
2448 * remote.c (remote_target::remote_btrace_maybe_reopen):
2449 Conditionally declare "warned".
2450 * inflow.c (sigquit_ours): Conditionally define.
2451 (new_tty): Move "tty" declaration inside #if.
2452 * guile/guile.c (guile_datadir): Conditionally define.
2453 * charset.c (set_be_le_names): Move some declarations inside #if.
2454 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2455 #if.
2456 (parse_xml_btrace_conf): Likewise.
2457
f4e80e13
TT
24582018-07-22 Tom Tromey <tom@tromey.com>
2459
2460 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2461
8d49165d
TT
24622018-07-22 Tom Tromey <tom@tromey.com>
2463
2464 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2465 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2466 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2467 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2468 * stack.c (frame_apply_level_command): Remove unused variable.
2469 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2470 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2471 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2472 unused variable.
2473 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2474 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2475 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2476 variable.
2477 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2478 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2479 variable.
2480 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2481 Remove unused variable.
2482 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2483 variable.
2484 * common/tdesc.c (print_xml_feature::visit): Remove unused
2485 variable.
2486 * compile/compile-object-load.c (store_regs): Remove unused
2487 variables.
2488 * complaints.c (clear_complaints): Remove unused variable.
2489 * corelow.c (core_target_open): Remove unused variable.
2490 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2491 variable.
2492 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2493 variable.
2494 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2495 variable.
2496 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2497 variable.
2498 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2499 variable.
2500 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2501 variable.
2502 * ia64-tdep.c (examine_prologue): Remove unused variable.
2503 * infcall.c (run_inferior_call): Remove unused variable.
2504 * inferior.c (exit_inferior): Remove unused variable.
2505 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2506 * linespec.c (decode_line_2): Remove unused variable.
2507 * linux-nat.c (super_close): Remove.
2508 * linux-tdep.c (linux_info_proc): Remove unused variable.
2509 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2510 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2511 Remove unused variable.
2512 * parse.c (find_minsym_type_and_address): Remove unused variable.
2513 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2514 variable.
2515 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2516 variable.
2517 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2518 variables.
2519 * record-btrace.c (record_btrace_target::store_registers): Remove
2520 unused variable.
2521 (cmd_show_record_btrace_cpu): Remove unused variable.
2522 * riscv-tdep.c (riscv_register_reggroup_p)
2523 (riscv_push_dummy_call, riscv_return_value): Remove unused
2524 variable.
2525 * rust-exp.y (literal): Remove unused variable.
2526 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2527 unused variable.
2528 <STRUCTOP_ANONYMOUS>: Likewise.
2529 * s390-linux-tdep.c (s390_linux_init_abi_31)
2530 (s390_linux_init_abi_64): Remove unused variable.
2531 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2532 (file_select_thread, net_windows_open, _initialize_ser_windows):
2533 Remove unused variables.
2534 * symtab.c (find_pc_sect_line): Remove unused variable.
2535 * target-memory.c (compute_garbled_blocks): Remove unused
2536 variable.
2537 (target_write_memory_blocks): Remove unused variable.
2538 * target.c (target_stack::unpush): Remove unused variables.
2539 * tracepoint.c (start_tracing, all_tracepoint_actions)
2540 (merge_uploaded_trace_state_variables)
2541 (print_one_static_tracepoint_marker): Remove unused variable.
2542 * unittests/basic_string_view/element_access/char/1.cc (test01):
2543 Remove unused variable.
2544 * windows-nat.c (windows_continue, windows_add_all_dlls)
2545 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2546 Remove unused variables.
2547
17cbafdb
SM
25482018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2549
2550 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2551 attr_profile in HAVE_ELF.
2552 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2553 HAVE_ELF.
2554
0ee6c332
SM
25552018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2556
2557 * frame.c (frame_register_unwind): Change parameter name.
2558 (frame_unwind_register): Likewise.
2559 (frame_unwind_register_value): Likewise.
2560 (frame_unwind_register_signed): Likewise.
2561 (frame_unwind_register_unsigned): Likewise.
2562 * frame.h (frame_register_unwind): Likewise.
2563 (frame_unwind_register): Likewise.
2564 (frame_unwind_register_value): Likewise.
2565 (frame_unwind_register_signed): Likewise.
2566 (frame_unwind_register_unsigned): Likewise.
2567 (frame_unwind_arch): Likewise.
2568
e2e31f10
MR
25692018-07-20 Maciej W. Rozycki <macro@mips.com>
2570
2571 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2572 ISA maintenance.
2573
2d389915
MR
25742018-07-20 Maciej W. Rozycki <macro@mips.com>
2575
2576 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2577 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2578 hand.
2579
cbb09508
KS
25802018-07-20 Keith Seitz <keiths@redhat.com>
2581
2582 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2583 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2584 m_compunit_symtab, m_language>: Add "m_" prefix.
2585 Update all uses.
2586 * buildsym.c: Update all uses.
2587
bfe2e011
TT
25882018-07-20 Tom Tromey <tom@tromey.com>
2589
2590 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2591 * buildsym.h (record_line_ftype): Remove typedef.
2592
0e6f3061
TT
25932018-07-20 Tom Tromey <tom@tromey.com>
2594
2595 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2596 (end_expandable_symtab): Likewise.
2597 (end_symtab_get_static_block): Likewise.
2598 (end_symtab_from_static_block): Likewise.
2599 * buildsym-legacy.c (augment_type_symtab): Remove.
2600 (end_expandable_symtab): Remove.
2601 (end_symtab_get_static_block): Remove.
2602 (end_symtab_from_static_block): Remove.
2603
804d2729
TT
26042018-07-20 Tom Tromey <tom@tromey.com>
2605
2606 * dwarf2read.c: Include buildsym.h.
2607 (struct dwarf2_cu) <builder>: New method.
2608 (fixup_go_packaging): Update.
2609 (process_full_comp_unit, process_full_type_unit): Update. Don't
2610 use scoped_free_pendings.
2611 (using_directives): Add "cu" parameter, remove "language".
2612 (read_import_statement, setup_type_unit_groups, )
2613 (read_func_scope, read_lexical_block_scope)
2614 (dwarf2_record_block_ranges, read_namespace): Update.
2615 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2616 (lnp_state_machine::handle_end_sequence): Update.
2617 (class lnp_state_machine) <m_cu>: New member.
2618 <m_record_line_callback>: Remove.
2619 <m_currently_recording_lines>: New member.
2620 (lnp_state_machine::handle_set_file): Update.
2621 (noop_record_line): Remove.
2622 (dwarf_record_line_p): Add cu parameter.
2623 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2624 (lnp_state_machine::record_line)
2625 (lnp_state_machine::lnp_state_machine)
2626 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2627 (dwarf_decode_lines): Update.
2628 (dwarf2_start_subfile): Add cu parameter.
2629 (dwarf2_start_symtab, new_symbol): Update.
2630 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2631 Remove dwarf2_per_objfile parameter.
2632 (dwarf_decode_macros): Update.
2633
80e649fc
TT
26342018-07-20 Tom Tromey <tom@tromey.com>
2635
2636 * stabsread.c (define_symbol): Update.
2637 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2638 * dwarf2read.c (new_symbol): Update.
2639 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2640 * cp-namespace.c: Include buildsym.h.
2641 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2642 * buildsym-legacy.c (get_buildsym_compunit): New function.
2643
0baae8db
TT
26442018-07-20 Tom Tromey <tom@tromey.com>
2645
2646 * xcoffread.c: Include buildsym-legacy.h.
2647 * windows-nat.c: Include buildsym-legacy.h.
2648 * stabsread.c: Include buildsym-legacy.h.
2649 * mdebugread.c: Include buildsym-legacy.h.
2650 * buildsym-legacy.h: New file.
2651 * buildsym-legacy.c: New file, from buildsym.c.
2652 * go32-nat.c: Include buildsym-legacy.h.
2653 * dwarf2read.c: Include buildsym-legacy.h.
2654 * dbxread.c: Include buildsym-legacy.h.
2655 * cp-namespace.c: Include buildsym-legacy.h.
2656 * coffread.c: Include buildsym-legacy.h.
2657 * buildsym.h: Move some contents to buildsym-legacy.h.
2658 * buildsym.c: Include buildsym-legacy.h. Move many functions to
2659 buildsym-legacy.c.
2660 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2661
ab209f6f
TT
26622018-07-20 Tom Tromey <tom@tromey.com>
2663
2664 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2665 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2666 (buildsym_compunit::buildsym_compunit)
2667 (buildsym_compunit::~buildsym_compunit)
2668 (buildsym_compunit::get_macro_table): Define.
2669
74c72eac
TT
26702018-07-20 Tom Tromey <tom@tromey.com>
2671
2672 * buildsym.c (reset_symtab_globals): Remove.
2673 (buildsym_compunit::end_symtab_from_static_block): Update.
2674 (buildsym_compunit::augment_type_symtab): Update.
2675 (end_symtab_from_static_block): Call free_buildsym_compunit.
2676 (augment_type_symtab, end_symtab, end_expandable_symtab):
2677 Likewise.
2678
da6580e5
TT
26792018-07-20 Tom Tromey <tom@tromey.com>
2680
2681 * arch-utils.c: Do not include buildsym.h.
2682 * mipsread.c: Do not include buildsym.h.
2683 * machoread.c: Do not include buildsym.h.
2684 * elfread.c: Do not include buildsym.h.
2685
4a2125f5
TT
26862018-07-20 Tom Tromey <tom@tromey.com>
2687
2688 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2689 initialization.
2690 (buildsym_compunit): Add new constructor.
2691 (struct buildsym_compunit) <get_last_source_file, finish_block,
2692 record_block_range, start_subfile, patch_subfile_names,
2693 push_subfile, pop_subfile, record_line, get_compunit_symtab,
2694 set_last_source_start_addr, get_last_source_start_addr,
2695 get_local_using_directives, set_local_using_directives,
2696 get_global_using_directives, outermost_context_p,
2697 get_current_context_stack, get_context_stack_depth,
2698 get_current_subfile, get_local_symbols, get_file_symbols,
2699 get_global_symbols, record_debugformat, record_producer,
2700 push_context, pop_context, end_symtab_get_static_block,
2701 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2702 New public methods.
2703 <record_pending_block, finish_block_internal, make_blockvector,
2704 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2705 private methods.
2706 Update all users.
2707
27082018-05-22 Tom Tromey <tom@tromey.com>
2709
2710 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2711 parameter.
2712 (finish_block_internal): Update.
2713
6b213a47
TT
27142018-07-20 Tom Tromey <tom@tromey.com>
2715
2716 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2717 parameter.
2718 (finish_block_internal): Update.
2719
b80a981d
TT
27202018-07-20 Tom Tromey <tom@tromey.com>
2721
2722 * buildsym.h (EXTERN): Don't define or undef.
2723 * buildsym.c (EXTERN): Don't define.
2724
ddb70602
TT
27252018-07-20 Tom Tromey <tom@tromey.com>
2726
2727 * buildsym.c: Remove TODO comment.
2728
b37dd3bc
TT
27292018-07-20 Tom Tromey <tom@tromey.com>
2730
2731 * coffread.c (coff_symtab_read): Update.
2732 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2733 (xcoff_new_init): Update.
2734 * mipsread.c (mipscoff_new_init): Update.
2735 * mdebugread.c (mdebug_build_psymtabs): Update.
2736 * elfread.c (elf_new_init): Update.
2737 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2738 Update.
2739 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2740 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2741 (stabsect_build_psymtabs): Update.
2742 * buildsym.h (buildsym_init): Don't declare.
2743 * buildsym.c: Update comment.
2744 (prepare_for_building): Remove.
2745 (start_symtab, restart_symtab): Update.
2746 (reset_symtab_globals): Update comment.
2747 (buildsym_init): Remove.
2748
e148f09d
TT
27492018-07-20 Tom Tromey <tom@tromey.com>
2750
2751 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2752 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2753 (read_enum_type, common_block_start, common_block_end)
2754 (cleanup_undefined_types_1, finish_global_stabs): Update.
2755 * mdebugread.c (psymtab_to_symtab_1): Update.
2756 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2757 (read_lexical_block_scope, new_symbol): Update.
2758 * dbxread.c (process_one_symbol): Update.
2759 * coffread.c (coff_symtab_read, process_coff_symbol)
2760 (coff_read_enum_type): Update.
2761 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2762 declare.
2763 (get_local_symbols, get_file_symbols, get_global_symbols): New
2764 functions.
2765 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2766 m_global_symbols.
2767 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2768 (~scoped_free_pendings): Update.
2769 (finish_block, prepare_for_building, reset_symtab_globals)
2770 (end_symtab_get_static_block, end_symtab_with_blockvector)
2771 (augment_type_symtab, push_context): Update.
2772 (get_local_symbols, get_file_symbols, get_global_symbols): New
2773 functions.
2774 (buildsym_init): Update.
2775
93b8bea4
TT
27762018-07-20 Tom Tromey <tom@tromey.com>
2777
2778 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2779 (process_full_type_unit): Likewise.
2780 (dwarf2_start_symtab): Set list_in_scope.
2781
f62f6af5
TT
27822018-07-20 Tom Tromey <tom@tromey.com>
2783
2784 * dwarf2read.c (process_psymtab_comp_unit_reader)
2785 (build_type_psymtabs_reader): Do not set list_in_scope.
2786
1d376700
TT
27872018-07-20 Tom Tromey <tom@tromey.com>
2788
2789 * buildsym.c (free_pendings): Remove.
2790 (add_symbol_to_list, scoped_free_pendings)
2791 (finish_block_internal, buildsym_init): Update.
2792
c233e9c6
TT
27932018-07-20 Tom Tromey <tom@tromey.com>
2794
2795 * xcoffread.c (read_xcoff_symtab): Update.
2796 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2797 Update.
2798 * dbxread.c (process_one_symbol): Update.
2799 * coffread.c (coff_symtab_read): Update.
2800 * buildsym.h (finish_block): Update.
2801 * buildsym.c (finish_block): Remove "listhead" argument.
2802 (end_symtab_get_static_block): Update.
2803
5ac04550
TT
28042018-07-20 Tom Tromey <tom@tromey.com>
2805
2806 * buildsym.h (class scoped_free_pendings): Remove constructor.
2807 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2808 method.
2809 <m_pending_block_obstack, m_pending_blocks>: New members.
2810 (pending_block_obstack, pending_blocks): Remove.
2811 (scoped_free_pendings::scoped_free_pendings): Default.
2812 (~scoped_free_pendings): Update.
2813 (free_pending_blocks): Remove.
2814 (finish_block_internal, record_pending_block, make_blockvector)
2815 (end_symtab_get_static_block, augment_type_symtab, push_context)
2816 (buildsym_init): Update.
2817
7ea05a7b
TT
28182018-07-20 Tom Tromey <tom@tromey.com>
2819
2820 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2821 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2822 members.
2823 (pending_addrmap, pending_addrmap_obstack)
2824 (pending_addrmap_interesting): Remove.
2825 (scoped_free_pendings, record_block_range, make_blockvector)
2826 (prepare_for_building, reset_symtab_globals, buildsym_init):
2827 Update.
2828
3c65e5b3
TT
28292018-07-20 Tom Tromey <tom@tromey.com>
2830
2831 * xcoffread.c (process_linenos): Update.
2832 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2833 * mdebugread.c (psymtab_to_symtab_1): Update.
2834 * dwarf2read.c (setup_type_unit_groups)
2835 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2836 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2837 * dbxread.c (process_one_symbol): Update.
2838 * coffread.c (coff_symtab_read, enter_linenos)
2839 (process_coff_symbol): Update.
2840 * buildsym.h (current_subfile): Don't declare.
2841 (get_current_subfile): Declare.
2842 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2843 member.
2844 (start_subfile, free_buildsym_compunit, push_subfile)
2845 (prepare_for_building, start_symtab): Update.
2846 (get_current_subfile): New function.
2847
a60f3166
TT
28482018-07-20 Tom Tromey <tom@tromey.com>
2849
2850 * coffread.c (coff_symtab_read): Update.
2851 * xcoffread.c (read_xcoff_symtab): Update.
2852 * dwarf2read.c (new_symbol): Update.
2853 (read_func_scope, read_lexical_block_scope): Update.
2854 * dbxread.c (process_one_symbol): Update.
2855 * buildsym.h (context_stack, context_stack_depth): Don't declare.
2856 (outermost_context_p): Remove macro.
2857 (outermost_context_p, get_current_context_stack)
2858 (get_context_stack_depth): Declare.
2859 (pop_context): Return struct context_stack.
2860 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
2861 member.
2862 (context_stack_size): Remove.
2863 (INITIAL_CONTEXT_STACK_SIZE): Remove.
2864 (prepare_for_building, end_symtab_get_static_block)
2865 (augment_type_symtab, push_context): Update.
2866 (pop_context): Return struct context_stack.
2867 (outermost_context_p, get_current_context_stack)
2868 (get_context_stack_depth): New functions.
2869 (buildsym_init): Update.
2870
56ba65a0
TT
28712018-07-20 Tom Tromey <tom@tromey.com>
2872
2873 * rust-exp.y: Now a pure parser. Update all rules.
2874 (%union): Move earlier.
2875 (current_parser, work_obstack): Remove globals.
2876 (rust_parser, ~rust_parser): Update.
2877 (class rust_parser) <copy_name, concat3, crate_name, super_name,
2878 lex_character, lex_number, lex_string, lex_identifier,
2879 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
2880 convert_name, convert_params_to_expression,
2881 convert_ast_to_expression, ast_basic_type, ast_operation,
2882 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
2883 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
2884 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
2885 ast_array_type, ast_slice_type, ast_reference_type,
2886 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
2887 (rust_parse): Update.
2888 (rustyyerror, rustyylex): Add parser parameter.
2889 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
2890 (rust_lex_stringish_test, rust_lex_test_sequence)
2891 (rust_lex_test_trailing_dot, rust_lex_test_completion)
2892 (rust_lex_test_push_back, rust_lex_tests): Update.
2893
4c693332
PA
28942018-07-19 Pedro Alves <palves@redhat.com>
2895
2896 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
2897 gdb::unique_xmalloc_ptr.
2898 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
2899 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
2900 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
2901 copy-initialization.
2902 * guile/scm-pretty-print.c (ppscm_print_children): Use
2903 gdb::unique_xmalloc_ptr instead of cleanups.
2904 (gdbscm_apply_val_pretty_printer): Remove cleanups.
2905 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
2906 gdb::unique_xmalloc_ptr.
2907 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2908 Adjust to use gdb::unique_xmalloc_ptr.
2909 * guile/scm-utils.c (extract_arg): Adjust.
2910 * guile/scm-value.c (gdbscm_value_field): Adjust to use
2911 gdb::unique_xmalloc_ptr instead of a cleanup.
2912
4581dc82
TT
29132018-07-19 Tom Tromey <tom@tromey.com>
2914
2915 * utils.c (do_value_free_to_mark)
2916 (make_cleanup_value_free_to_mark): Remove.
2917 * utils.h (make_cleanup_value_free_to_mark): Remove.
2918
43cc6c3a
PA
29192018-07-19 Pedro Alves <palves@redhat.com>
2920
2921 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
2922 forwarding reference.
2923
3a5f2a48
PA
29242018-07-18 Pedro Alves <palves@redhat.com>
2925
2926 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
2927 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
2928 cleanup.
2929
557e56be
PA
29302018-07-18 Pedro Alves <palves@redhat.com>
2931
2932 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
2933 exceptions.
2934 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
2935 (gdbscm_wrap): New.
2936 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
2937 directly instead of a cleanup.
2938 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
2939 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
2940 (vlscm_binop_gdbthrow): New, factored out from ...
2941 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
2942 (vlscm_rich_compare): Use gdbscm_wrap.
2943 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
2944 instead of a cleanup.
2945 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
2946 cleanup.
2947 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2948 Use xfree directly instead of a cleanup.
2949 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
2950 Adjust to use gdbscm_wrap and scoped_value_mark.
2951 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
2952 (gdbscm_value_address, gdbscm_value_dereference)
2953 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
2954 scoped_value_mark.
2955 (gdbscm_value_dynamic_type): Use scoped_value_mark.
2956 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
2957 scoped_value_mark.
2958 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
2959 gdbscm_wrap and scoped_value_mark.
2960 (gdbscm_value_to_string): Use xfree directly instead of a
2961 cleanup. Move 'buffer' unique_ptr to TRY scope.
2962 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
2963 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
2964 scoped_value_mark.
2965 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
2966 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
2967 scoped_value_mark.
2968 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
2969 gdbscm_wrap.
2970
42dc7699
TV
29712018-07-18 Tom de Vries <tdevries@suse.de>
2972
2973 * findvar.c (default_read_var_value): Also resolve dynamic type for
2974 LOC_OPTIMIZED_OUT vars.
2975
6592ceed
MR
29762018-07-18 Maciej W. Rozycki <macro@mips.com>
2977
2978 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
2979 decoding.
2980
c6c6149a
TT
29812018-07-17 Tom Tromey <tom@tromey.com>
2982
2983 * guile/scm-param.c (pascm_set_func, pascm_show_func)
2984 (compute_enum_list, pascm_set_param_value_x)
2985 (gdbscm_parameter_value): Update.
2986 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
2987 (gdbscm_scm_to_host_string): Update.
2988 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
2989 Update.
2990 * guile/scm-cmd.c (cmdscm_add_completion): Update.
2991 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
2992 * guile/scm-string.c (gdbscm_scm_to_string): Return
2993 unique_xmalloc_ptr.
2994 (gdbscm_scm_to_host_string): Likewise.
2995
a1a31cb8
TT
29962018-07-17 Tom Tromey <tom@tromey.com>
2997
2998 * guile/guile.c (gdbscm_eval_from_control_command): Update.
2999 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3000 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3001 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3002 unique_xmalloc_ptr.
3003
15bf3002
TT
30042018-07-17 Tom Tromey <tom@tromey.com>
3005
3006 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3007 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3008 Update.
3009 * guile/scm-cmd.c (cmdscm_function): Update.
3010 * guile/scm-pretty-print.c
3011 (ppscm_print_exception_unless_memory_error): Update.
3012 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3013 Return unique_xmalloc_ptr.
3014
7eb1a66c
TT
30152018-07-17 Tom Tromey <tom@tromey.com>
3016
3017 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3018 Use string_printf.
3019
ce73f310
JW
30202018-07-17 Jim Wilson <jimw@sifive.com>
3021
27724bad
JW
3022 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3023 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3024 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3025 unecessary braces after EF_RISCV_RVC test. Delete call to
3026 set_gdbarch_decr_pc_after_break.
3027
ce73f310
JW
3028 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3029 RISCV_LAST_FP_REGNUM + 1.
3030 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3031
056dec39
TT
30322018-07-17 Tom Tromey <tom@tromey.com>
3033
3034 * configure.ac: Remove --disable-gdbcli.
3035 * configure: Rebuild.
3036 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3037 (SUBDIR_CLI_CFLAGS): Remove.
3038 (SFILES): Use SUBDIR_CLI_SRCS.
3039 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3040
4735f0ed
TT
30412018-07-17 Tom Tromey <tom@tromey.com>
3042
3043 PR gdb/18624:
3044 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3045
117a0e99
JW
30462018-07-16 Jim Wilson <jimw@sifive.com>
3047
3048 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3049
8a67aaa8
SM
30502018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3051
3052 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3053 variable.
3054 (libunwind_frame_sniffer): Likewise.
3055 (libunwind_frame_prev_register): Likewise.
3056 (libunwind_sigtramp_frame_sniffer): Likewise.
3057 * ia64-tdep.c (ia64_access_reg): Likewise.
3058 (ia64_access_rse_reg): Likewise.
3059 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3060 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3061
ec74dcd8
SM
30622018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3063
3064 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3065
a700e753
SM
30662018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3067
3068 * remote-sim.c (gdbsim_target::close,
3069 gdbsim_target::mourn_inferior): Remove unused variables.
3070
8b411ff8
SM
30712018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3072
3073 * ia64-tdep.c (ktab_buf): New global.
3074 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3075 (get_kernel_table): Adjust.
3076
edb0470b
TT
30772018-07-16 Tom Tromey <tom@tromey.com>
3078
3079 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3080 * dwarf2read.c (using_directives, new_symbol): Use
3081 outermost_context_p.
3082 * dbxread.c (process_one_symbol): Use outermost_context_p.
3083 * coffread.c (coff_symtab_read): Use outermost_context_p.
3084
6cccc9a8
TT
30852018-07-16 Tom Tromey <tom@tromey.com>
3086
3087 * dwarf2read.c (using_directives, read_func_scope)
3088 (read_lexical_block_scope): Update.
3089 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3090 * buildsym.h (local_using_directives, global_using_directives):
3091 Don't declare.
3092 (get_local_using_directives, set_local_using_directives)
3093 (get_global_using_directives): Declare.
3094 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3095 m_global_using_directives>: New members.
3096 (finish_block_internal, prepare_for_building)
3097 (reset_symtab_globals, end_symtab_get_static_block)
3098 (push_context): Update.
3099 (get_local_using_directives, set_local_using_directives)
3100 (get_global_using_directives): New functions.
3101 (buildsym_init): Update.
3102
652788a7
TT
31032018-07-16 Tom Tromey <tom@tromey.com>
3104
3105 * xcoffread.c (xcoff_initial_scan): Don't call
3106 free_pending_blocks.
3107 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3108 * buildsym.h (class scoped_free_pendings): Add constructor.
3109 (free_pending_blocks): Don't declare.
3110 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3111 (free_pending_blocks): Now static.
3112
8419ee53
TT
31132018-07-16 Tom Tromey <tom@tromey.com>
3114
3115 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3116 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3117 member.
3118 (struct subfile_stack): Remove.
3119 (subfile_stack): Remove.
3120 (push_subfile, pop_subfile, buildsym_init): Update.
3121
ccdac490
TT
31222018-07-16 Tom Tromey <tom@tromey.com>
3123
3124 * buildsym.c (push_subfile): Use gdb_assert.
3125 (pop_subfile): Use gdb_assert.
3126
43130d6f
TT
31272018-07-16 Tom Tromey <tom@tromey.com>
3128
3129 * buildsym.h (merge_symbol_lists): Remove.
3130 * buildsym.c (merge_symbol_lists): Remove.
3131
77d6f1aa
TT
31322018-07-16 Tom Tromey <tom@tromey.com>
3133
3134 * stabsread.c (scan_file_globals): Update comment.
3135 * stabsread.h (scan_file_globals): Move from buildsym.h.
3136 * buildsym.h (scan_file_globals): Move to stabsread.h.
3137
2c722d18
TT
31382018-07-16 Tom Tromey <tom@tromey.com>
3139
3140 * xcoffread.c (xcoff_new_init): Update.
3141 * mipsread.c (mipscoff_new_init): Update.
3142 * mdebugread.c (mdebug_build_psymtabs): Update.
3143 * elfread.c (elf_new_init): Update.
3144 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3145 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3146 * buildsym.h (buildsym_new_init): Don't declare.
3147 * buildsym.c (buildsym_new_init): Remove.
3148
5985ac61
TT
31492018-07-16 Tom Tromey <tom@tromey.com>
3150
3151 * stabsread.h (within_function): Move from buildsym.h.
3152 * stabsread.c (start_stabs): Clear within_function.
3153 * coffread.c (coff_start_symtab): Clear within_function.
3154 * buildsym.h (within_function): Move to stabsread.h.
3155 * buildsym.c (prepare_for_building): Update.
3156
6b84eeb2
TT
31572018-07-16 Tom Tromey <tom@tromey.com>
3158
3159 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3160 * dwarf2read.c (dwarf2_start_symtab): Don't set
3161 processing_gcc_compilation.
3162 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3163
2150c3ef
TT
31642018-07-16 Tom Tromey <tom@tromey.com>
3165
3166 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3167 (next_symbol_text_func): Move from buildsym.h.
3168 * stabsread.c (hashname): Move from buildsym.c.
3169 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3170 (next_symbol_text_func, hashname): Move to stabsread.h.
3171 * buildsym.c: Don't include bcache.h
3172 (hashname): Move to stasbread.c.
3173
0ec44fc0
TT
31742018-07-16 Tom Tromey <tom@tromey.com>
3175
3176 * buildsym.h (context_stack_size): Don't declare.
3177 * buildsym.c (context_stack_size): New global.
3178
81cc346d
TT
31792018-07-16 Tom Tromey <tom@tromey.com>
3180
3181 * dbxread.c (processing_acc_compilation): New global.
3182 * buildsym.h (processing_acc_compilation): Don't declare.
3183
2c99ee5c
TT
31842018-07-16 Tom Tromey <tom@tromey.com>
3185
3186 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3187 * dbxread.c (read_ofile_symtab): Update.
3188 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3189 * buildsym.h (last_source_start_addr): Remove.
3190 (set_last_source_start_addr, get_last_source_start_addr):
3191 Declare.
3192 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3193 parameter.
3194 (struct buildsym_compunit) <m_last_source_start_addr>: New
3195 member.
3196 (prepare_for_building): Remove start_addr parameter.
3197 (start_symtab, restart_symtab, end_symtab_get_static_block)
3198 (end_symtab_with_blockvector): Update.
3199 (set_last_source_start_addr, get_last_source_start_addr): New
3200 functions.
3201
530fedbc
TT
32022018-07-16 Tom Tromey <tom@tromey.com>
3203
3204 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3205 member.
3206 (have_line_numbers): Remove.
3207 (record_line, prepare_for_building, end_symtab_get_static_block)
3208 (augment_type_symtab): Update.
3209
6a976300
TT
32102018-07-16 Tom Tromey <tom@tromey.com>
3211
3212 * buildsym.c (~buildsym_compunit): Free the macro table.
3213 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3214 methods.
3215 <m_pending_macros>: New member.
3216 (pending_macros): Remove.
3217 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3218 (reset_symtab_globals, end_symtab_get_static_block)
3219 (end_symtab_with_blockvector, augment_type_symtab)
3220 (buildsym_init): Update.
3221
c0015d44
TT
32222018-07-16 Tom Tromey <tom@tromey.com>
3223
3224 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3225 parameter.
3226 (buildsym_compunit::set_last_source_file): New method.
3227 <m_last_source_file>: New member.
3228 (prepare_for_building): Remove "name" parameter.
3229 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3230 (last_source_file): Remove.
3231 (set_last_source_file, get_last_source_file): Update.
3232
e62cca7c
TT
32332018-07-16 Tom Tromey <tom@tromey.com>
3234
3235 * buildsym.c (prepare_for_building): Add assert.
3236
905eb0e2
TT
32372018-07-16 Tom Tromey <tom@tromey.com>
3238
3239 * buildsym.c (~buildsym_compunit): Update.
3240 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3241 (start_subfile, patch_subfile_names)
3242 (end_symtab_with_blockvector): Update.
3243
b248663f
TT
32442018-07-16 Tom Tromey <tom@tromey.com>
3245
3246 * buildsym.c (struct buildsym_compunit): Add constructor,
3247 destructor, initializers.
3248 (start_buildsym_compunit): Remove.
3249 (free_buildsym_compunit): Use "delete".
3250 (start_symtab, restart_symtab): Use "new".
3251
ff27d073
SM
32522018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3253
3254 * symfile.c (set_objfile_default_section_offset): Remove struct
3255 keyword.
3256
6a15ecf5
SH
32572018-07-14 Stafford Horne <shorne@gmail.com>
3258
3259 * (Responsible Maintainers): Add myself as or1k maintainer.
3260
027a4c30
TT
32612018-07-13 Tom Tromey <tom@tromey.com>
3262
3263 * symfile.c (set_objfile_default_section_offset): Use extra braces
3264 around initializer.
3265
5c1eda30
AA
32662018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3267
3268 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3269 non-branching basr.
3270
bc7b042b
PW
32712018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3272
3273 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3274 unittests/cli-utils-selftests.c
3275 * unittests/cli-utils-selftests.c: New file.
3276
a14c4daa
PW
32772018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3278
3279 * NEWS: Mention new commands. Mention change to 'thread apply'.
3280
1fe75df7
PW
32812018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3282
3283 * thread.c (thr_try_catch_cmd): New function.
3284 (thread_apply_all_command): Handle qcs flags.
3285 (thread_apply_command): Handle qcs flags.
3286 (taas_command): New function.
3287 (tfaas_command): New function.
3288 (_initialize_thread): Update to setup the new commands 'taas
3289 and 'tfaas'. Change doc string for 'thread apply'.
3290
6a70eb7d
PW
32912018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3292
3293 * stack.c: (trailing_outermost_frame): New function, mostly
3294 extracted from backtrace_command_1.
3295 (leading_innermost_frame): New function.
3296 (backtrace_command_1): Update to call trailing_outermost_frame.
3297 (frame_apply_command_count): New function.
3298 (frame_apply_level_command): New function.
3299 (frame_apply_all_command): New function.
3300 (frame_apply_command): New function.
3301 (faas_command): New function.
3302 (frame_cmd_list): New variable.
3303 (_initialize_stack): Update to setup the new commands 'frame apply'
3304 and 'faas'.
3305
529c08b2
PW
33062018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3307
3308 * cli-utils.c (number_or_range_parser::get_number): Only handle
3309 numbers or convenience var as numbers.
3310 (parse_flags): New function.
3311 (parse_flags_qcs): New function.
3312 (number_or_range_parser::finished): Ensure parsing end is detected
3313 before end of string.
3314 * cli-utils.h (parse_flags): New function.
3315 (parse_flags_qcs): New function.
3316 (number_or_range_parser): Remove m_finished bool.
3317 (number_or_range_parser::skip_range): Set m_in_range to false.
3318
64b58472
SDJ
33192018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3320
3321 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3322 on Windows.
3323
c7ab0aef
SDJ
33242018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3325 Jan Kratochvil <jan.kratochvil@redhat.com>
3326 Paul Fertser <fercerpav@gmail.com>
3327 Tsutomu Seki <sekiriki@gmail.com>
3328 Pedro Alves <palves@redhat.com>
3329
3330 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3331 'unittests/parse-connection-spec-selftests.c'.
3332 (COMMON_SFILES): Add 'common/netstuff.c'.
3333 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3334 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3335 * common/netstuff.c: New file.
3336 * common/netstuff.h: New file.
3337 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3338 (wait_for_connect): Update comment. New parameter
3339 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3340 Use 'sock' directly instead of 'scb->fd'.
3341 (try_connect): New function, with code from 'net_open'.
3342 (net_open): Rewrite main loop to deal with multiple
3343 sockets/addresses. Handle IPv6-style hostnames; implement
3344 support for IPv6 connections.
3345 * unittests/parse-connection-spec-selftests.c: New file.
3346
4c7333b3
PA
33472018-07-11 Pedro Alves <palves@redhat.com>
3348
3349 PR gdb/23377
3350 * remote.c (remote_target::remote_detach_pid): Call
3351 set_current_process.
3352
a6f88f6e
PA
33532018-07-11 Pedro Alves <palves@redhat.com>
3354
3355 * h8300-tdep.c (h8300_gdbarch_init): Remove
3356 set_gdbarch_ecoff_reg_to_regnum calls.
3357
16ff70dd
SDJ
33582018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3359
3360 PR c++/23373
3361 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3362 offsets/sizes for static members of a class/struct.
3363
12863263
AH
33642018-07-11 Alan Hayward <alan.hayward@arm.com>
3365
3366 * target-descriptions.c (tdesc_register_bitsize): Rename.
3367 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3368 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3369 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3370
1123588c
TT
33712018-07-10 Tom Tromey <tom@tromey.com>
3372
3373 * breakpoint.c (moribund_locations): Now static and a
3374 std::vector.
3375 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3376 (build_bpstat_chain, update_global_location_list)
3377 (breakpoint_retire_moribund): Update.
3378 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3379 VEC.
3380
8c49aa89
AB
33812018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3382
3383 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3384 (riscv_register_reggroup_p): Use new function, remove unneeded
3385 parenthesis.
3386 (riscv_push_dummy_call): Extend assert to compare against xlen or
3387 flen based on register type.
3388
42ecac17
AB
33892018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3390
3391 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3392
055303e2
AB
33932018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3394
3395 * remote.c (show_hardware_watchpoint_limit): New function.
3396 (show_hardware_watchpoint_length_limit): New function.
3397 (show_hardware_breakpoint_limit): New function.
3398 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3399 where appropriate, update help text.
3400
8fd32c1c
TT
34012018-07-09 Tom Tromey <tom@tromey.com>
3402
3403 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3404 (CLIBS): Don't mention NAT_CLIBS.
3405
31278b51
TT
34062018-07-09 Tom Tromey <tom@tromey.com>
3407
3408 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3409 (LIBGDB_OBS, clean mostlyclean): Update.
3410 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3411
e5fd1493
TT
34122018-07-09 Tom Tromey <tom@tromey.com>
3413
3414 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3415 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3416 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3417
981e0c0c
TT
34182018-07-09 Tom Tromey <tom@tromey.com>
3419
3420 * Makefile.in (ALLDEPFILES): Remove exec.c.
3421 (COMMON_OBS): Remove exec.o.
3422 (COMMON_SFILES): Add exec.c.
3423
14ccceb2
TT
34242018-07-09 Tom Tromey <tom@tromey.com>
3425
3426 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3427
5d3c3a68
TT
34282018-07-09 Tom Tromey <tom@tromey.com>
3429
3430 * Makefile.in (clean mostlyclean): Remove stamp-version.
3431 (version.c): Depend on stamp-version.
3432 (stamp-version): New rule, from version.c rule.
3433
1998086d
TT
34342018-07-09 Tom Tromey <tom@tromey.com>
3435
3436 * Makefile.in (init.c): Depend on stamp-init.
3437 (stamp-init): New rule, from init.c rule.
3438 (clean mostlyclean): Remove stamp-init.
3439
4c754949
TT
34402018-07-09 Tom Tromey <tom@tromey.com>
3441
3442 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3443 SUBDIR_GCC_COMPILE_SRCS.
3444
6497f1dd
TT
34452018-07-09 Tom Tromey <tom@tromey.com>
3446
3447 * Makefile.in (init.c): Remove some unused sed rules.
3448
97a34db9
TT
34492018-07-09 Tom Tromey <tom@tromey.com>
3450
3451 * Makefile.in (TSOBS): Remove.
3452 (INIT_FILES): Update.
3453 (LIBGDB_OBS): Update.
3454 (COMMON_SFILES): Add inflow.c.
3455 (SFILES): Remove inflow.c.
3456
25289ac1
JK
34572018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3458
3459 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3460
e83f4d97
SM
34612018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3462
4869c585
SM
3463 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3464 get_saveloc_name, is_signal_frame_name, step_name,
3465 init_remote_name, create_addr_space_name,
3466 destroy_addr_space_name, search_unwind_table_name,
3467 find_dyn_list_name): Constify.
e83f4d97 3468
6821842f
SM
34692018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3470
3471 * darwin-nat.c (darwin_pthread_kill): New function.
3472 (darwin_resume_thread): Use darwin_pthread_kill.
3473
c530603c
TV
34742018-07-05 Tom de Vries <tdevries@suse.de>
3475
3476 * macroexp.c (macro_buffer) <operator=>: New member function.
3477
a7d0f0f0
TT
34782018-07-04 Tom Tromey <tom@tromey.com>
3479
3480 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3481
6242c6a6
SM
34822018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3483
3484 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3485 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3486 * maint.c: Likewise.
3487 * top.c: Likewise.
3488
4e5b2f89
JB
34892018-07-04 Joel Brobecker <brobecker@adacore.com>
3490
3491 * NEWS: Create a new section for the next release branch.
3492 Rename the section of the current branch, now that it has
3493 been cut.
3494
538ccc4a
JB
34952018-07-04 Joel Brobecker <brobecker@adacore.com>
3496
3497 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3498 * version.in: Bump version to 8.2.50.DATE-git.
3499
1b919490
VB
35002018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3501 Pedro Alves <palves@redhat.com>
3502
3503 * linux-nat.c (linux_init_ptrace): Rename to ...
3504 (linux_init_ptrace_procfs): ... this. Call
3505 linux_proc_init_warnings.
3506 (linux_nat_target::post_attach)
3507 (linux_nat_target::post_startup_inferior): Adjust.
3508 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3509 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3510
1ea5da02
TV
35112018-07-04 Tom de Vries <tdevries@suse.de>
3512
3513 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3514 check ...
3515 (read_comp_unit_head): ... here.
3516
f51e0e20
TT
35172018-07-03 Tom Tromey <tom@tromey.com>
3518
3519 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3520 (stop_tracing, tstatus_command)
3521 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3522 (print_one_static_tracepoint_marker): Update.
3523 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3524 std::vector.
3525 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3526 VEC.
3527 (all_tracepoints, static_tracepoints_here): Return std::vector.
3528
d7e15655
TT
35292018-07-03 Tom Tromey <tom@tromey.com>
3530
3531 * common/ptid.c (ptid_equal): Remove.
3532 * common/ptid.h (ptid_equal): Don't declare.
3533 * ada-tasks.c: Update.
3534 * breakpoint.c: Update.
3535 * common/agent.c: Update.
3536 * corelow.c: Update.
3537 * darwin-nat-info.c: Update.
3538 * darwin-nat.c: Update.
3539 * dcache.c: Update.
3540 * dtrace-probe.c: Update.
3541 * dummy-frame.c: Update.
3542 * fbsd-nat.c: Update.
3543 * frame.c: Update.
3544 * gdbthread.h: Update.
3545 * gnu-nat.c: Update.
3546 * go32-nat.c: Update.
3547 * inf-loop.c: Update.
3548 * inf-ptrace.c: Update.
3549 * infcall.c: Update.
3550 * infcmd.c: Update.
3551 * inflow.c: Update.
3552 * infrun.c: Update.
3553 * linux-fork.c: Update.
3554 * linux-nat.c: Update.
3555 * linux-thread-db.c: Update.
3556 * mi/mi-cmd-var.c: Update.
3557 * mi/mi-interp.c: Update.
3558 * mi/mi-main.c: Update.
3559 * nto-procfs.c: Update.
3560 * ppc-linux-tdep.c: Update.
3561 * procfs.c: Update.
3562 * python/py-inferior.c: Update.
3563 * python/py-record-btrace.c: Update.
3564 * python/py-record.c: Update.
3565 * ravenscar-thread.c: Update.
3566 * regcache.c: Update.
3567 * remote-sim.c: Update.
3568 * remote.c: Update.
3569 * sol-thread.c: Update.
3570 * solib.c: Update.
3571 * target.c: Update.
3572 * tui/tui-stack.c: Update.
3573 * varobj.c: Update.
3574 * windows-nat.c: Update.
3575 * windows-tdep.c: Update.
3576
26a57c92
TT
35772018-07-03 Tom Tromey <tom@tromey.com>
3578
3579 * common/ptid.c (ptid_match): Remove.
3580 * common/ptid.h (ptid_match): Don't declare.
3581 * fbsd-nat.c: Update.
3582 * infcmd.c: Update.
3583 * infrun.c: Update.
3584 * linux-nat.c: Update.
3585 * record-btrace.c: Update.
3586 * regcache.c: Update.
3587 * remote.c: Update.
3588
d2a107e3
TT
35892018-07-03 Tom Tromey <tom@tromey.com>
3590
3591 * common/ptid.c (ptid_tid_p): Remove.
3592 * common/ptid.h (ptid_tid_p): Don't declare.
3593 * sol-thread.c: Update.
3594
15a9e13e
TT
35952018-07-03 Tom Tromey <tom@tromey.com>
3596
3597 * common/ptid.c (ptid_lwp_p): Remove.
3598 * common/ptid.h (ptid_lwp_p): Don't declare.
3599 * fbsd-nat.c: Update.
3600 * linux-nat.c: Update.
3601 * nat/linux-procfs.c: Update.
3602 * nat/x86-linux-dregs.c: Update.
3603 * sol-thread.c: Update.
3604
0e998d96
TT
36052018-07-03 Tom Tromey <tom@tromey.com>
3606
3607 * common/ptid.c (ptid_is_pid): Remove.
3608 * common/ptid.h (ptid_is_pid): Don't declare.
3609 * infrun.c: Update.
3610 * linux-nat.c: Update.
3611 * mi/mi-interp.c: Update.
3612 * remote.c: Update.
3613 * thread.c: Update.
3614
cc6bcb54
TT
36152018-07-03 Tom Tromey <tom@tromey.com>
3616
3617 * common/ptid.c (ptid_get_tid): Remove.
3618 * common/ptid.h (ptid_get_tid): Don't declare.
3619 * ada-tasks.c: Update.
3620 * aix-thread.c: Update.
3621 * bsd-uthread.c: Update.
3622 * darwin-nat.c: Update.
3623 * fbsd-nat.c: Update.
3624 * i386-darwin-nat.c: Update.
3625 * infrun.c: Update.
3626 * linux-tdep.c: Update.
3627 * nto-procfs.c: Update.
3628 * ppc-ravenscar-thread.c: Update.
3629 * python/py-infthread.c: Update.
3630 * ravenscar-thread.c: Update.
3631 * sol-thread.c: Update.
3632 * sparc-ravenscar-thread.c: Update.
3633 * windows-nat.c: Update.
3634
e38504b3
TT
36352018-07-03 Tom Tromey <tom@tromey.com>
3636
3637 * common/ptid.c (ptid_get_lwp): Remove.
3638 * common/ptid.h (ptid_get_lwp): Don't declare.
3639 * aarch64-linux-nat.c: Update.
3640 * ada-tasks.c: Update.
3641 * aix-thread.c: Update.
3642 * amd64-linux-nat.c: Update.
3643 * arm-linux-nat.c: Update.
3644 * corelow.c: Update.
3645 * fbsd-nat.c: Update.
3646 * fbsd-tdep.c: Update.
3647 * gnu-nat.c: Update.
3648 * i386-cygwin-tdep.c: Update.
3649 * i386-gnu-nat.c: Update.
3650 * i386-linux-nat.c: Update.
3651 * ia64-linux-nat.c: Update.
3652 * inf-ptrace.c: Update.
3653 * infrun.c: Update.
3654 * linux-fork.c: Update.
3655 * linux-nat.c: Update.
3656 * linux-tdep.c: Update.
3657 * linux-thread-db.c: Update.
3658 * mips-linux-nat.c: Update.
3659 * nat/aarch64-linux-hw-point.c: Update.
3660 * nat/aarch64-linux.c: Update.
3661 * nat/linux-btrace.c: Update.
3662 * nat/linux-osdata.c: Update.
3663 * nat/linux-procfs.c: Update.
3664 * nat/x86-linux-dregs.c: Update.
3665 * obsd-nat.c: Update.
3666 * ppc-fbsd-nat.c: Update.
3667 * ppc-linux-nat.c: Update.
3668 * procfs.c: Update.
3669 * python/py-infthread.c: Update.
3670 * ravenscar-thread.c: Update.
3671 * remote.c: Update.
3672 * s390-linux-nat.c: Update.
3673 * sol-thread.c: Update.
3674 * sol2-tdep.c: Update.
3675 * spu-linux-nat.c: Update.
3676 * x86-linux-nat.c: Update.
3677 * xtensa-linux-nat.c: Update.
3678
e99b03dc
TT
36792018-07-03 Tom Tromey <tom@tromey.com>
3680
3681 * common/ptid.c (ptid_get_pid): Remove.
3682 * common/ptid.h (ptid_get_pid): Don't declare.
3683 * aarch64-linux-nat.c: Update.
3684 * ada-lang.c: Update.
3685 * aix-thread.c: Update.
3686 * alpha-bsd-nat.c: Update.
3687 * amd64-fbsd-nat.c: Update.
3688 * amd64-linux-nat.c: Update.
3689 * arm-linux-nat.c: Update.
3690 * arm-nbsd-nat.c: Update.
3691 * auxv.c: Update.
3692 * break-catch-syscall.c: Update.
3693 * breakpoint.c: Update.
3694 * bsd-uthread.c: Update.
3695 * corelow.c: Update.
3696 * ctf.c: Update.
3697 * darwin-nat.c: Update.
3698 * fbsd-nat.c: Update.
3699 * fbsd-tdep.c: Update.
3700 * gcore.c: Update.
3701 * gnu-nat.c: Update.
3702 * hppa-nbsd-nat.c: Update.
3703 * hppa-obsd-nat.c: Update.
3704 * i386-fbsd-nat.c: Update.
3705 * ia64-linux-nat.c: Update.
3706 * inf-ptrace.c: Update.
3707 * infcmd.c: Update.
3708 * inferior.c: Update.
3709 * inferior.h: Update.
3710 * inflow.c: Update.
3711 * infrun.c: Update.
3712 * linux-fork.c: Update.
3713 * linux-nat.c: Update.
3714 * linux-tdep.c: Update.
3715 * linux-thread-db.c: Update.
3716 * m68k-bsd-nat.c: Update.
3717 * mi/mi-interp.c: Update.
3718 * mi/mi-main.c: Update.
3719 * mips-linux-nat.c: Update.
3720 * mips-nbsd-nat.c: Update.
3721 * mips64-obsd-nat.c: Update.
3722 * nat/aarch64-linux-hw-point.c: Update.
3723 * nat/aarch64-linux.c: Update.
3724 * nat/linux-btrace.c: Update.
3725 * nat/linux-osdata.c: Update.
3726 * nat/linux-procfs.c: Update.
3727 * nat/x86-linux-dregs.c: Update.
3728 * nto-procfs.c: Update.
3729 * obsd-nat.c: Update.
3730 * ppc-linux-nat.c: Update.
3731 * ppc-nbsd-nat.c: Update.
3732 * ppc-obsd-nat.c: Update.
3733 * proc-service.c: Update.
3734 * procfs.c: Update.
3735 * python/py-inferior.c: Update.
3736 * python/py-infthread.c: Update.
3737 * ravenscar-thread.c: Update.
3738 * record.c: Update.
3739 * remote-sim.c: Update.
3740 * remote.c: Update.
3741 * rs6000-nat.c: Update.
3742 * s390-linux-nat.c: Update.
3743 * sh-nbsd-nat.c: Update.
3744 * sol-thread.c: Update.
3745 * sparc-nat.c: Update.
3746 * sparc64-tdep.c: Update.
3747 * spu-linux-nat.c: Update.
3748 * spu-tdep.c: Update.
3749 * target-debug.h: Update.
3750 * target.c: Update.
3751 * thread.c: Update.
3752 * tid-parse.c: Update.
3753 * tracefile-tfile.c: Update.
3754 * vax-bsd-nat.c: Update.
3755 * windows-nat.c: Update.
3756 * x86-linux-nat.c: Update.
3757 * x86-nat.c: Update.
3758
f2907e49
TT
37592018-07-03 Tom Tromey <tom@tromey.com>
3760
3761 * common/ptid.c (pid_to_ptid): Remove.
3762 * common/ptid.h (pid_to_ptid): Don't declare.
3763 * aix-thread.c: Update.
3764 * arm-linux-nat.c: Update.
3765 * common/ptid.c: Update.
3766 * common/ptid.h: Update.
3767 * corelow.c: Update.
3768 * ctf.c: Update.
3769 * darwin-nat.c: Update.
3770 * fbsd-nat.c: Update.
3771 * fork-child.c: Update.
3772 * gnu-nat.c: Update.
3773 * go32-nat.c: Update.
3774 * inf-ptrace.c: Update.
3775 * infcmd.c: Update.
3776 * inferior.c: Update.
3777 * infrun.c: Update.
3778 * linux-fork.c: Update.
3779 * linux-nat.c: Update.
3780 * nat/aarch64-linux-hw-point.c: Update.
3781 * nat/fork-inferior.c: Update.
3782 * nat/x86-linux-dregs.c: Update.
3783 * nto-procfs.c: Update.
3784 * obsd-nat.c: Update.
3785 * procfs.c: Update.
3786 * progspace.c: Update.
3787 * remote.c: Update.
3788 * rs6000-nat.c: Update.
3789 * s390-linux-nat.c: Update.
3790 * sol-thread.c: Update.
3791 * spu-linux-nat.c: Update.
3792 * target.c: Update.
3793 * top.c: Update.
3794 * tracefile-tfile.c: Update.
3795 * windows-nat.c: Update.
3796
fd79271b
TT
37972018-07-03 Tom Tromey <tom@tromey.com>
3798
3799 * common/ptid.h (ptid_build): Don't declare.
3800 * common/ptid.c (ptid_build): Remove.
3801 * aix-thread.c: Update.
3802 * bsd-kvm.c: Update.
3803 * bsd-uthread.c: Update.
3804 * common/agent.c: Update.
3805 * common/ptid.c: Update.
3806 * common/ptid.h: Update.
3807 * corelow.c: Update.
3808 * darwin-nat.c: Update.
3809 * fbsd-nat.c: Update.
3810 * gnu-nat.c: Update.
3811 * linux-fork.c: Update.
3812 * linux-nat.c: Update.
3813 * linux-thread-db.c: Update.
3814 * nat/linux-osdata.c: Update.
3815 * nat/linux-procfs.c: Update.
3816 * nto-procfs.c: Update.
3817 * obsd-nat.c: Update.
3818 * proc-service.c: Update.
3819 * procfs.c: Update.
3820 * ravenscar-thread.c: Update.
3821 * remote-sim.c: Update.
3822 * remote.c: Update.
3823 * sol-thread.c: Update.
3824 * target.c: Update.
3825 * windows-nat.c: Update.
3826
057302ce
TT
38272018-07-03 Tom Tromey <tom@tromey.com>
3828
3829 * infrun.c (follow_exec): Use exit_inferior_silent.
3830 * inferior.c (exit_inferior_num_silent): Remove.
3831 * inferior.h (exit_inferior_num_silent): Don't declare.
3832
a50c11c6
TT
38332018-07-03 Tom Tromey <tom@tromey.com>
3834
3835 PR cli/23340:
3836 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3837 inferior_ptid on error.
3838
471b9d15
MR
38392018-07-02 Maciej W. Rozycki <macro@mips.com>
3840 Simon Marchi <simon.marchi@polymtl.ca>
3841
3842 PR tdep/8282
3843 * disasm.h (gdb_disassembler): Add
3844 `m_disassembler_options_holder'. member
3845 * disasm.c (get_all_disassembler_options): New function.
3846 (gdb_disassembler::gdb_disassembler): Use it.
3847 (gdb_buffered_insn_length_init_dis): Likewise.
3848 (gdb_buffered_insn_length): Adjust accordingly.
3849 (set_disassembler_options): Handle options with arguments.
3850 (show_disassembler_options_sfunc): Likewise. Add a leading new
3851 line if showing options with descriptions.
3852 (disassembler_options_completer): Adapt to using the
3853 `disasm_options_and_args_t' structure.
3854 * mips-tdep.c (mips_disassembler_options): New variable.
3855 (mips_disassembler_options_o32): Likewise.
3856 (mips_disassembler_options_n32): Likewise.
3857 (mips_disassembler_options_n64): Likewise.
3858 (gdb_print_insn_mips): Don't set `disassembler_options'.
3859 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3860 functions.
3861 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
3862 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
3863 `gdbarch_disassembler_options_implicit' and
3864 `gdbarch_valid_disassembler_options'.
3865 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
3866 `disasm_options_and_args_t' structure.
3867 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
3868 method.
3869 (valid_disassembler_options): Switch from `disasm_options_t' to
3870 the `disasm_options_and_args_t' structure.
3871 * NEWS: Document `set disassembler-options' support for the MIPS
3872 target.
3873 * gdbarch.h: Regenerate.
3874 * gdbarch.c: Regenerate.
3875
41823f29
SH
38762018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3877
3878 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
3879
41206e32
JB
38802018-06-29 Joel Brobecker <brobecker@adacore.com>
3881
3882 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
3883 parameter in call to amd64_target_description.
3884 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3885 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
3886 (amd64fbsd_init_abi): Likewise.
3887 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3888 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3889 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3890 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
3891
de52b960
PA
38922018-06-29 Pedro Alves <palves@redhat.com>
3893
3894 * gdb/amd64-tdep.h (amd64_create_target_description): Add
3895 "segments" parameter.
3896 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
3897 (_initialize_amd64_tdep): Update call to
3898 amd64_create_target_description.
3899 (amd64_target_description): Add "segments" parameter. Adjust
3900 the implementation to use it.
3901 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
3902 call to amd64_create_target_description.
3903 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
3904 * gdb/arch/amd64.h (amd64_create_target_description): Add
3905 "segments" register.
3906 * gdb/arch/amd64.c (amd64_create_target_description): Add
3907 "segments" parameter. Call create_feature_i386_64bit_segments
3908 only if SEGMENTS is true.
3909 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
3910 call to amd64_create_target_description.
3911
75acb486
PA
39122018-06-29 Pedro Alves <palves@redhat.com>
3913
3914 * thread.c (thread_target_id_str): New, factored out from ...
3915 (print_thread_info_1): ... here. Use it to compute the max
3916 "Target Id" column width.
3917
c76a8ea3
PA
39182018-06-29 Pedro Alves <palves@redhat.com>
3919
3920 * remote.c (remote_target::extra_thread_info): Delete
3921 'display_buf' and 'n' locals. from the cache, regardless of
3922 packet mechanims is in use. Use cache for qThreadExtra and qP
3923 methods too.
3924
cd2bb709
PA
39252018-06-29 Pedro Alves <palves@redhat.com>
3926
3927 * blockframe.c (find_pc_sect_containing_function): New function.
3928 * breakpoint.c (print_breakpoint_location): Don't call
3929 find_pc_sect_function.
3930 * linespec.c (create_sals_line_offset): Record the location's
3931 symbol in the sal.
3932 * linespec.c (convert_address_location_to_sals): Fill in sal's
3933 symbol with find_pc_sect_containing_function.
3934 * symtab.c (find_function_start_sal): Rename to ...
3935 (find_function_start_sal_1): ... this.
3936 (find_function_start_sal): Reimplement as wrapper around
3937 find_function_start_sal_1, and use
3938 find_pc_sect_containing_function to fill in the sal's symbol.
3939 (find_function_start_sal(symbol*, bool)): Adjust.
3940 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
3941 comments.
3942 (find_pc_sect_containing_function): Declare.
3943
991ff292
PA
39442018-06-29 Pedro Alves <palves@redhat.com>
3945
3946 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
3947 true if the the location has no symbol.
3948
44cee4fd
TT
39492018-06-28 Tom Tromey <tom@tromey.com>
3950
3951 * NEWS: Mention --enable-codesign.
3952 * silent-rules.mk (ECHO_SIGN): New variable.
3953 * configure.ac: Add --enable-codesign.
3954 * configure: Rebuild.
3955 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
3956 (gdb$(EXEEXT)): Optionally invoke codesign.
3957
f2ffa92b
PA
39582018-06-28 Pedro Alves <palves@redhat.com>
3959
3960 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
3961 comments.
3962 (switch_to_thread_no_regs): Adjust comment.
3963 * infcmd.c (stop_pc): Delete.
3964 (post_create_inferior, info_program_command): Replace references
3965 to stop_pc with references to thread_info->suspend.stop_pc.
3966 * inferior.h (stop_pc): Delete declaration.
3967 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
3968 (handle_inferior_event_1, handle_signal_stop)
3969 (process_event_stop_test, keep_going_stepped_thread)
3970 (handle_step_into_function, handle_step_into_function_backward)
3971 (print_stop_location): Replace references to stop_pc with
3972 references to thread_info->suspend.stop_pc.
3973 (struct infcall_suspend_state) <stop_pc>: Delete field.
3974 (save_infcall_suspend_state, restore_infcall_suspend_state):
3975 Remove references to inf_stat->stop_pc.
3976 * linux-fork.c (fork_load_infrun_state): Likewise.
3977 * record-btrace.c (record_btrace_set_replay): Likewise.
3978 * record-full.c (record_full_goto_entry): Likewise.
3979 * remote.c (print_one_stopped_thread): Likewise.
3980 * target.c (target_resume): Extend comment.
3981 * thread.c (set_executing_thread): New.
3982 (set_executing): Use it.
3983 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
3984 Remove references to stop_pc.
3985
ecdc3a72
PA
39862018-06-28 Pedro Alves <palves@redhat.com>
3987
3988 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
3989 Moving fetching stop_pc until after ecs->event_thread is refreshed.
3990
d95d3aef
TT
39912018-06-28 Tom Tromey <tom@tromey.com>
3992
3993 * coffread.c (coff_symfile_finish): Update.
3994 * xcoffread.c (xcoff_symfile_finish): Update.
3995 * elfread.c (elf_symfile_finish): Update.
3996 * symfile.h (dwarf2_free_objfile): Don't declare.
3997 * dwarf2read.c (_initialize_dwarf2_read): Use
3998 register_objfile_data_with_cleanup.
3999 (dwarf2_free_objfile): Now static. Change signature.
4000
291f9a96
PT
40012018-06-28 Petr Tesarik <ptesarik@suse.cz>
4002
4003 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4004 option "-o" to add-symbol-file-load to add an offset to each
4005 section's load address.
4006 * symfile.c (set_objfile_default_section_offset): New function.
4007
d81a3eaf
PT
40082018-06-28 Petr Tesarik <ptesarik@suse.cz>
4009
4010 * symfile.c (add_symbol_file_command): Make sure that sections
4011 with the same name are sorted in the same order.
4012
ed6dfe51
PT
40132018-06-28 Petr Tesarik <ptesarik@suse.cz>
4014
4015 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4016 require the second argument. If omitted, load sections at the
4017 addresses specified in the file.
4018
d4d429d5
PT
40192018-06-28 Petr Tesarik <ptesarik@suse.cz>
4020
4021 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4022 (_initialize_symfile): Add option "-o" to symbol-file to add an
4023 offset to each section of the symbol file.
4024
39b27ab6
PT
40252018-06-28 Petr Tesarik <ptesarik@suse.cz>
4026
4027 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4028
41827fc3
TT
40292018-06-27 Tom Tromey <tom@tromey.com>
4030
4031 * stack.c (_initialize_stack): Update "func" help text.
4032
0c6aef22
TT
40332018-06-27 Tom Tromey <tom@tromey.com>
4034
4035 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4036 std::vector.
4037 (unwind_infopy_str, pyuw_create_unwind_info)
4038 (unwind_infopy_add_saved_register, pyuw_sniffer)
4039 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4040 Update.
4041 (struct saved_reg): Add constructor.
4042 <value>: Now a gdbpy_ref<>.
4043
63177289
TT
40442018-06-27 Tom Tromey <tom@tromey.com>
4045
4046 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4047
e76f78a0
SM
40482018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4049
4050 * gdb-gdb.py.in: Format using autopep8.
4051
9a14af7b
SM
40522018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4053
4054 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4055 (type_lookup_function): Recognize CORE_ADDR values.
4056
189366cd
SM
40572018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4058
4059 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4060 print tag_name.
4061
68ad5fb9
SM
40622018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4063
4064 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4065 <__lt__>: Add.
4066
141ec9f6
SM
40672018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4068
4069 * gdb-gdb.py: Move to...
4070 * gdb-gdb.py.in: ... here.
4071 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4072 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4073 dependencies.
4074 (distclean): Remove gdb-gdb.py when cleaning.
4075 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4076 * configure: Re-generate.
4077
4c4e7ad4
PA
40782018-06-27 Pedro Alves <palves@redhat.com>
4079
4080 * proc-service.c (get_ps_regcache): New.
4081 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4082 (ps_lsetfpregs): Use it.
4083
7ab6656f
OJ
40842018-06-27 Omair Javaid <omair.javaid@linaro.org>
4085
4086 PR gdb/21695
4087 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4088 (dwarf_decode_lines_1): Adjust.
4089
bd583225
SM
40902018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4091
4092 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4093 override.
4094 <info_proc>: Likewise.
4095
9a325b7b
JB
40962018-06-26 Joel Brobecker <brobecker@adacore.com>
4097
4098 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4099 to windows_fetch_one_register, and only handle the case of
4100 fetching one register. Move the code that reloads the context
4101 and iterates over all registers if R is negative to...
4102 (windows_nat_target::fetch_registers): ... here.
4103 (do_windows_store_inferior_registers): Rename to
4104 windows_store_one_register, and only handle the case of storing
4105 one register. Move the code that handles the case where r is
4106 negative to...
4107 (windows_nat_target::store_registers) ... here.
4108
a33ccfc7
TT
41092018-06-26 Tom Tromey <tom@tromey.com>
4110
4111 PR rust/22574:
4112 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4113 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4114 Update.
4115 (rust_internal_print_type): Add podata parameter.
4116 (rust_print_type): Update.
4117
e0c547d1
TT
41182018-06-26 Tom Tromey <tom@tromey.com>
4119
4120 * typeprint.h (struct print_offset_data) <update, finish,
4121 maybe_print_hole>: New methods.
4122 <indentation>: New constant.
4123 * typeprint.c (print_offset_data::indentation): Define.
4124 (print_offset_data::maybe_print_hole, print_offset_data::update)
4125 (print_offset_data::finish): Move from c-typeprint.c and rename.
4126 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4127 (print_spaces_filtered_with_print_options): Update.
4128 (c_print_type_union_field_offset, maybe_print_hole)
4129 (c_print_type_struct_field_offset): Move to typeprint.c and
4130 rename.
4131 (c_type_print_base_struct_union): Update.
4132
75cbc781
PA
41332018-06-25 Pedro Alves <palves@redhat.com>
4134
4135 * gdbthread.h (thread_info_ref, delete_thread)
4136 (delete_thread_silent, first_thread_of_inferior)
4137 (any_thread_of_inferior, switch_to_thread)
4138 (enable_thread_stack_temporaries)
4139 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4140 (get_last_thread_stack_temporary)
4141 (value_in_thread_stack_temporaries, can_access_registers_thread):
4142 Spell out "struct thread_info" instead of just "thread_info".
4143 * inferior.h (notice_new_inferior): Likewise.
4144
b7a08269
PA
41452018-06-25 Pedro Alves <palves@redhat.com>
4146
4147 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4148 pass thread_info pointer to delete_thread.
4149 (windows_nat_target::detach): Pass inferior pointer to
4150 detach_inferior.
4151 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4152 delete_thread.
4153 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4154 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4155 and pass a thread_info pointer to delete_thread.
4156 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4157 pass thread_info pointer to delete_thread.
4158 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4159 delete_thread_silent call.
4160 * procfs.c (procfs_target::detach): Pass inferior pointer to
4161 detach_inferior.
4162 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4163 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4164 delete_thread_silent call.
4165 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4166 pass thread_info pointer to delete_thread.
4167 (windows_nat_target::detach): Pass inferior pointer to
4168 delete_inferior.
4169
8e7767e3
AH
41702018-06-22 Alan Hayward <alan.hayward@arm.com>
4171
4172 * regcache.c (readable_regcache::read_part): Fix asserts.
4173 (reg_buffer::raw_collect_part): New function.
4174 (regcache::write_part): Fix asserts.
4175 (reg_buffer::raw_supply_part): New function.
4176 (regcache::transfer_regset_register): New helper function.
4177 (regcache::transfer_regset): Call new functions.
4178 (regcache_supply_regset): Use gdb_byte*.
4179 (regcache::supply_regset): Likewise.
4180 (regcache_collect_regset): Likewise.
4181 (regcache::collect_regset): Likewise.
4182 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4183 (reg_buffer::raw_supply_part): Likewise.
4184 (regcache::transfer_regset_register): Likewise.
4185 (regcache::transfer_regset): Use gdb_byte*.
4186
bfd60e34
AH
41872018-06-22 Alan Hayward <alan.hayward@arm.com>
4188
4189 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4190
00431a78
PA
41912018-06-21 Pedro Alves <palves@redhat.com>
4192
4193 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4194 instead of a ptid_t. All callers adjusted.
4195 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4196 adjusted.
4197 (print_ada_task_info, display_current_task_id, task_command_1):
4198 Adjust.
4199 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4200 inferior_thread.
4201 (breakpoint_kind): Adjust.
4202 (remove_breakpoints_pid): Rename to ...
4203 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4204 pointer. All callers adjusted.
4205 (bpstat_clear_actions): Use inferior_thread.
4206 (get_bpstat_thread): New.
4207 (bpstat_do_actions): Use it.
4208 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4209 to take a thread_info pointer. All callers adjusted.
4210 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4211 (breakpoint_re_set_thread): Use inferior_thread.
4212 * breakpoint.h (struct inferior): Forward declare.
4213 (bpstat_stop_status): Update.
4214 (remove_breakpoints_pid): Delete.
4215 (remove_breakpoints_inf): New.
4216 * bsd-uthread.c (bsd_uthread_target::wait)
4217 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4218 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4219 (maint_btrace_packet_history_cmd)
4220 (maint_btrace_clear_packet_history_cmd): Adjust.
4221 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4222 inferior_thread.
4223 * cli/cli-interp.c: Include "inferior.h".
4224 * common/refcounted-object.h (struct
4225 refcounted_object_ref_policy): New.
4226 * compile/compile-object-load.c: Include gdbthread.h.
4227 (store_regs): Use inferior_thread.
4228 * corelow.c (core_target::close): Use current_inferior.
4229 (core_target_open): Adjust to use first_thread_of_inferior and use
4230 the current inferior.
4231 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4232 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4233 <thread>: ... this new field. All references adjusted.
4234 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4235 Take a thread_info pointer instead of a ptid_t.
4236 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4237 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4238 thread_info pointer instead of a ptid_t.
4239 * elfread.c: Include "inferior.h".
4240 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4241 Use inferior_thread.
4242 * eval.c (evaluate_subexp): Likewise.
4243 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4244 inferior_thread.
4245 * gdb_proc_service.h (struct thread_info): Forward declare.
4246 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4247 <thread>: ... this new field. All references adjusted.
4248 * gdbarch.h, gdbarch.c: Regenerate.
4249 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4250 'thread' parameter. All implementations and callers adjusted.
4251 * gdbthread.h (thread_info) <set_running>: New method.
4252 (delete_thread, delete_thread_silent): Take a thread_info pointer
4253 instead of a ptid.
4254 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4255 (first_thread_of_process): Delete, replaced by ...
4256 (first_thread_of_inferior): ... this new function. All callers
4257 adjusted.
4258 (any_live_thread_of_process): Delete, replaced by ...
4259 (any_live_thread_of_inferior): ... this new function. All callers
4260 adjusted.
4261 (switch_to_thread, switch_to_no_thread): Declare.
4262 (is_executing): Delete.
4263 (enable_thread_stack_temporaries): Update comment.
4264 <enable_thread_stack_temporaries>: Take a thread_info pointer
4265 instead of a ptid_t. Incref the thread.
4266 <~enable_thread_stack_temporaries>: Decref the thread.
4267 <m_ptid>: Delete
4268 <m_thr>: New.
4269 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4270 (get_last_thread_stack_temporary)
4271 (value_in_thread_stack_temporaries, can_access_registers_thread):
4272 Take a thread_info pointer instead of a ptid_t. All callers
4273 adjusted.
4274 * infcall.c (get_call_return_value): Use inferior_thread.
4275 (run_inferior_call): Work with thread pointers instead of ptid_t.
4276 (call_function_by_hand_dummy): Work with thread pointers instead
4277 of ptid_t. Use thread_info_ref.
4278 * infcmd.c (proceed_thread_callback): Access thread's state
4279 directly.
4280 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4281 access thread's state directly.
4282 (continue_command): Use inferior_thread.
4283 (info_program_command): Use find_thread_ptid and access thread
4284 state directly.
4285 (proceed_after_attach_callback): Use thread state directly.
4286 (notice_new_inferior): Take a thread_info pointer instead of a
4287 ptid_t. All callers adjusted.
4288 (exit_inferior): Take an inferior pointer instead of a pid. All
4289 callers adjusted.
4290 (exit_inferior_silent): New.
4291 (detach_inferior): Delete.
4292 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4293 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4294 (detach_inferior_command, kill_inferior_command): Use
4295 find_inferior_id instead of valid_gdb_inferior_id and
4296 gdb_inferior_id_to_pid.
4297 (inferior_command): Use inferior and thread pointers.
4298 * inferior.h (struct thread_info): Forward declare.
4299 (notice_new_inferior): Take a thread_info pointer instead of a
4300 ptid_t. All callers adjusted.
4301 (detach_inferior): Delete declaration.
4302 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4303 instead of a pid. All callers adjusted.
4304 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4305 (valid_gdb_inferior_id): Delete.
4306 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4307 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4308 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4309 ...
4310 <inf>: ... this new field.
4311 <step_ptid>: Delete, replaced by ...
4312 <step_thread>: ... this new field.
4313 (get_displaced_stepping_state): Take an inferior pointer instead
4314 of a pid. All callers adjusted.
4315 (displaced_step_in_progress_any_inferior): Adjust.
4316 (displaced_step_in_progress_thread): Take a thread pointer instead
4317 of a ptid_t. All callers adjusted.
4318 (displaced_step_in_progress, add_displaced_stepping_state): Take
4319 an inferior pointer instead of a pid. All callers adjusted.
4320 (get_displaced_step_closure_by_addr): Adjust.
4321 (remove_displaced_stepping_state): Take an inferior pointer
4322 instead of a pid. All callers adjusted.
4323 (displaced_step_prepare_throw, displaced_step_prepare)
4324 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4325 All callers adjusted.
4326 (start_step_over): Adjust.
4327 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4328 displaced step queue.
4329 (do_target_resume): Adjust.
4330 (fetch_inferior_event): Use inferior_thread.
4331 (context_switch, get_inferior_stop_soon): Take an
4332 execution_control_state pointer instead of a ptid_t. All callers
4333 adjusted.
4334 (switch_to_thread_cleanup): Delete.
4335 (stop_all_threads): Use scoped_restore_current_thread.
4336 * inline-frame.c: Include "gdbthread.h".
4337 (inline_state) <inline_state>: Take a thread pointer instead of a
4338 ptid_t. All callers adjusted.
4339 <ptid>: Delete, replaced by ...
4340 <thread>: ... this new field.
4341 (find_inline_frame_state): Take a thread pointer instead of a
4342 ptid_t. All callers adjusted.
4343 (skip_inline_frames, step_into_inline_frame)
4344 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4345 pointer instead of a ptid_t. All callers adjusted.
4346 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4347 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4348 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4349 pointers directly.
4350 * linux-nat.c (get_detach_signal): Likewise.
4351 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4352 (thread_db_notice_clone): Adjust.
4353 (thread_db_find_new_threads_silently)
4354 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4355 a thread pointer instead of a ptid_t. All callers adjusted.
4356 * mi/mi-cmd-var.c: Include "inferior.h".
4357 (mi_cmd_var_update_iter): Update to use thread pointers.
4358 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4359 inferior directly.
4360 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4361 out to ...
4362 (mi_output_running): ... this new function.
4363 (mi_on_resume_1): Adjust to use it.
4364 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4365 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4366 directly.
4367 (interrupt_thread_callback): : Adjust to use thread and inferior
4368 pointers.
4369 * proc-service.c: Include "gdbthread.h".
4370 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4371 * progspace-and-thread.c: Include "inferior.h".
4372 * progspace.c: Include "inferior.h".
4373 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4374 hold a reference to an inferior_object.
4375 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4376 inferior_thread.
4377 * python/py-inferior.c (struct inferior_object): Give the type a
4378 tag name instead of a typedef.
4379 (python_on_normal_stop): No need to check if the current thread is
4380 listed.
4381 (inferior_to_inferior_object): Change return type to
4382 inferior_object. All callers adjusted.
4383 (find_thread_object): Delete, bits factored out to ...
4384 (thread_to_thread_object): ... this new function.
4385 * python/py-infthread.c (create_thread_object): Use
4386 inferior_to_inferior_object.
4387 (thpy_is_stopped): Use thread pointer directly.
4388 (gdbpy_selected_thread): Use inferior_thread.
4389 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4390 field, replaced with ...
4391 <thread>: ... this new field. All users adjusted.
4392 (btpy_insn_or_gap_new): Drop const.
4393 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4394 callers adjusted.
4395 * python/py-record.c: Include "gdbthread.h".
4396 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4397 a ptid_t. All callers adjusted.
4398 (gdbpy_current_recording): Use inferior_thread.
4399 * python/py-record.h (recpy_record_object) <ptid>: Delete
4400 field, replaced with ...
4401 <thread>: ... this new field. All users adjusted.
4402 (recpy_element_object) <ptid>: Delete
4403 field, replaced with ...
4404 <thread>: ... this new field. All users adjusted.
4405 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4406 a ptid_t. All callers adjusted.
4407 * python/py-threadevent.c: Include "gdbthread.h".
4408 (get_event_thread): Use thread_to_thread_object.
4409 * python/python-internal.h (struct inferior_object): Forward
4410 declare.
4411 (find_thread_object, find_inferior_object): Delete declarations.
4412 (thread_to_thread_object, inferior_to_inferior_object): New
4413 declarations.
4414 * record-btrace.c: Include "inferior.h".
4415 (require_btrace_thread): Use inferior_thread.
4416 (record_btrace_frame_sniffer)
4417 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4418 (get_thread_current_frame): Use scoped_restore_current_thread and
4419 switch_to_thread.
4420 (get_thread_current_frame): Use thread pointer directly.
4421 (record_btrace_replay_at_breakpoint): Use thread's inferior
4422 pointer directly.
4423 * record-full.c: Include "inferior.h".
4424 * regcache.c: Include "gdbthread.h".
4425 (get_thread_arch_regcache): Use the inferior's address space
4426 directly.
4427 (get_thread_regcache, registers_changed_thread): New.
4428 * regcache.h (get_thread_regcache(thread_info *thread)): New
4429 overload.
4430 (registers_changed_thread): New.
4431 (remote_target) <remote_detach_1>: Swap order of parameters.
4432 (remote_add_thread): <remote_add_thread>: Return the new thread.
4433 (get_remote_thread_info(ptid_t)): New overload.
4434 (remote_target::remote_notice_new_inferior): Use thread pointers
4435 directly.
4436 (remote_target::process_initial_stop_replies): Use
4437 thread_info::set_running.
4438 (remote_target::remote_detach_1, remote_target::detach)
4439 (extended_remote_target::detach): Adjust.
4440 * stack.c (frame_show_address): Use inferior_thread.
4441 * target-debug.h (target_debug_print_thread_info_pp): New.
4442 * target-delegates.c: Regenerate.
4443 * target.c (default_thread_address_space): Delete.
4444 (memory_xfer_partial_1): Use current_inferior.
4445 (target_detach): Use current_inferior.
4446 (target_thread_address_space): Delete.
4447 (generic_mourn_inferior): Use current_inferior.
4448 * target.h (struct target_ops) <thread_address_space>: Delete.
4449 (target_thread_address_space): Delete.
4450 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4451 pointers directly.
4452 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4453 thread pointer instead of a ptid_t. Adjust all callers.
4454 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4455 (first_thread_of_process): Delete, replaced by ...
4456 (first_thread_of_inferior): ... this new function. All callers
4457 adjusted.
4458 (any_thread_of_process): Rename to ...
4459 (any_thread_of_inferior): ... this, and take an inferior pointer.
4460 (any_live_thread_of_process): Rename to ...
4461 (any_live_thread_of_inferior): ... this, and take an inferior
4462 pointer.
4463 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4464 (value_in_thread_stack_temporaries)
4465 (get_last_thread_stack_temporary): Take a thread pointer instead
4466 of a ptid_t. Adjust all callers.
4467 (thread_info::set_running): New.
4468 (validate_registers_access): Use inferior_thread.
4469 (can_access_registers_ptid): Rename to ...
4470 (can_access_registers_thread): ... this, and take a thread
4471 pointer.
4472 (print_thread_info_1): Adjust to compare thread pointers instead
4473 of ptids.
4474 (switch_to_no_thread, switch_to_thread): Make extern.
4475 (scoped_restore_current_thread::~scoped_restore_current_thread):
4476 Use m_thread pointer directly.
4477 (scoped_restore_current_thread::scoped_restore_current_thread):
4478 Use inferior_thread.
4479 (thread_command): Use thread pointer directly.
4480 (thread_num_make_value_helper): Use inferior_thread.
4481 * top.c (execute_command): Use inferior_thread.
4482 * tui/tui-interp.c: Include "inferior.h".
4483 * varobj.c (varobj_create): Use inferior_thread.
4484 (value_of_root_1): Use find_thread_global_id instead of
4485 global_thread_id_to_ptid.
4486
33bab475
AH
44872018-06-21 Alan Hayward <alan.hayward@arm.com>
4488
4489 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4490 possible.
4491 (regcache::write_part): Likewise.
4492 (readable_regcache::cooked_read_part): Update comment.
4493 (readable_regcache::cooked_write_part): Likewise.
4494 * regcache.h: (readable_regcache::read_part): Likewise.
4495 (regcache::write_part): Likewise.
4496
8363f9d5
RB
44972018-06-21 Richard Bunt <richard.bunt@arm.com>
4498 Dirk Schubert <dirk.schubert@arm.com>
4499
4500 * aarch64-linux-nat.c (post_attach): New.
4501 (aarch64_linux_nat_target::post_attach): Override post_attach to
4502 record the number of hardware debug registers.
4503
0d0b0ea2
TT
45042018-06-20 Tom Tromey <tom@tromey.com>
4505
4506 * python/py-param.c (add_setshow_generic): Make parameters const.
4507 (parmpy_init): Update.
4508
302abd6e
SM
45092018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4510
4511 * regcache.h (regcache_cooked_read_ftype): Rename to...
4512 (register_read_ftype): ...this, change type to function_view.
4513 (class reg_buffer) <save>: Remove src parameter.
4514 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4515 parameter non-const in first overload. Remove src parameter in
4516 second overload.
4517 * regcache.c (do_cooked_read): Remove.
4518 (readonly_detached_regcache::readonly_detached_regcache): Make
4519 parameter non-const, adjust call to other constructor.
4520 (reg_buffer::save): Remove src parameter.
4521 * frame.c (do_frame_register_read): Remove.
4522 (frame_save_as_regcache): Use lambda function.
4523 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4524 parameter to ppu2spu_data *.
4525 (ppu2spu_sniffer): Use lambda function.
4526
19f3f25f
SM
45272018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4528
4529 * record-full.c (record_full_target::insert_breakpoint): Remove
4530 "struct" keyword, add const.
4531
d0ac1c44
SM
45322018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4533
4534 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4535 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4536 * configure.ac: Remove AC_PREREQ, add missing quoting.
4537 * gnulib/configure.ac: Modernize usage of
4538 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4539 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4540 (AUTOMAKE_VERSION): Bump to 1.15.1.
4541 * configure: Re-generate.
4542 * config.in: Re-generate.
4543 * aclocal.m4: Re-generate.
4544 * gnulib/aclocal.m4: Re-generate.
4545 * gnulib/config.in: Re-generate.
4546 * gnulib/configure: Re-generate.
4547 * gnulib/import/Makefile.in: Re-generate.
4548
6ae50267
PA
45492018-06-19 Pedro Alves <palves@redhat.com>
4550
4551 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4552 (lookup_minimal_symbol_by_pc_section): ... here with
4553 gdb_assert_not_reached added.
4554
61b04dd0
PA
45552018-06-19 Pedro Alves <palves@redhat.com>
4556
4557 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4558 parameter with a block parameter. Compare location's block symbol
4559 with the frame's block instead of addresses.
4560 (skip_inline_frames): Pass the current block instead of the
4561 frame's address. Break out as soon as we determine the frame
4562 should not be skipped.
4563
f709fabb
TT
45642018-06-18 Tom Tromey <tom@tromey.com>
4565
4566 * solib-aix.c (solib_aix_get_section_offsets): Return
4567 unique_xmalloc_ptr.
4568 (solib_aix_solib_create_inferior_hook): Update.
4569
668eb2f0
TT
45702018-06-18 Tom Tromey <tom@tromey.com>
4571
4572 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4573
309822ca
TT
45742018-06-18 Tom Tromey <tom@tromey.com>
4575
4576 * solib-frv.c (frv_relocate_main_executable): Use
4577 unique_xmalloc_ptr.
4578 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4579 unique_xmalloc_ptr.
4580
06424eac
TT
45812018-06-18 Tom Tromey <tom@tromey.com>
4582
4583 * objfiles.h (inhibit_section_map_updates): Update.
4584 (resume_section_map_updates, resume_section_map_updates_cleanup):
4585 Remove.
4586 * solib-svr4.c (svr4_handle_solib_event): Update.
4587 * objfiles.c (inhibit_section_map_updates): Return
4588 scoped_restore_tmpl<int>.
4589 (resume_section_map_updates, resume_section_map_updates_cleanup):
4590 Remove.
4591
b4be9fad
TT
45922018-06-18 Tom Tromey <tom@tromey.com>
4593
4594 * valprint.h (read_string): Update.
4595 * valprint.c (read_string): Change type of "buffer".
4596 (val_print_string): Update.
4597 * python/py-value.c (valpy_string): Update.
4598 * language.h (struct language_defn) <la_get_string>: Change
4599 type of "buffer".
4600 (default_get_string, c_get_string): Update.
4601 * language.c (default_get_string): Change type of "buffer".
4602 * guile/scm-value.c (gdbscm_value_to_string): Update.
4603 * c-lang.c (c_get_string): Change type of "buffer".
4604
3f0dbd67
TT
46052018-06-18 Tom Tromey <tom@tromey.com>
4606
4607 * ser-mingw.c (struct pipe_state_destroyer): New.
4608 (pipe_state_up): New typedef.
4609 (cleanup_pipe_state): Remove.
4610 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4611
69d340c6
TT
46122018-06-18 Tom Tromey <tom@tromey.com>
4613
4614 * rust-lang.h (rust_yyerror): Don't declare.
4615 * rust-lang.c (rust_language_defn): Update.
4616 * rust-exp.y (yyerror): Now static.
4617 * parse.c (parse_exp_in_context_1): Update.
4618 * p-lang.h (p_yyerror): Don't declare.
4619 * p-lang.c (p_language_defn): Update.
4620 * p-exp.y (yyerror): Now static.
4621 * opencl-lang.c (opencl_language_defn): Update.
4622 * objc-lang.c (objc_language_defn): Update.
4623 * m2-lang.h (m2_yyerror): Don't declare.
4624 * m2-lang.c (m2_language_defn): Update.
4625 * m2-exp.y (yyerror): Now static.
4626 * language.h (struct language_defn) <la_error>: Remove.
4627 * language.c (unk_lang_error): Remove.
4628 (unknown_language_defn, auto_language_defn): Remove.
4629 * go-lang.h (go_yyerror): Don't declare.
4630 * go-lang.c (go_language_defn): Update.
4631 * go-exp.y (yyerror): Now static.
4632 * f-lang.h (f_yyerror): Don't declare.
4633 * f-lang.c (f_language_defn): Update.
4634 * f-exp.y (yyerror): Now static.
4635 * d-lang.h (d_yyerror): Don't declare.
4636 * d-lang.c (d_language_defn): Update.
4637 * d-exp.y (yyerror): Now static.
4638 * c-lang.h (c_yyerror): Don't declare.
4639 * c-lang.c (c_language_defn, cplus_language_defn)
4640 (asm_language_defn, minimal_language_defn): Update.
4641 * c-exp.y (yyerror): Now static.
4642 * ada-lang.h (ada_yyerror): Don't declare.
4643 * ada-lang.c (ada_language_defn): Update.
4644 * ada-exp.y (yyerror): Now static.
4645
e9902bfc
AH
46462018-06-18 Alan Hayward <alan.hayward@arm.com>
4647
4648 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4649 (store_sveregs_to_thread): Likewise.
4650 (aarch64_linux_fetch_inferior_registers): Check for SVE.
4651 (aarch64_linux_store_inferior_registers): Likewise.
4652 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4653 function.
4654 (aarch64_sve_regs_copy_to_regcache): Likewise.
4655 (aarch64_sve_regs_copy_from_regcache): Likewise.
4656 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4657 declaration.
4658 (aarch64_sve_regs_copy_to_regcache): Likewise.
4659 (aarch64_sve_regs_copy_from_regcache): Likewise.
4660 (sve_context): Structure from Linux headers.
4661 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4662 (SVE_SIG_ZREG_SIZE): Likewise.
4663 (SVE_SIG_PREG_SIZE): Likewise.
4664 (SVE_SIG_FFR_SIZE): Likewise.
4665 (SVE_SIG_REGS_OFFSET): Likewise.
4666 (SVE_SIG_ZREGS_OFFSET): Likewise.
4667 (SVE_SIG_ZREG_OFFSET): Likewise.
4668 (SVE_SIG_ZREGS_SIZE): Likewise.
4669 (SVE_SIG_PREGS_OFFSET): Likewise.
4670 (SVE_SIG_PREG_OFFSET): Likewise.
4671 (SVE_SIG_PREGS_SIZE): Likewise.
4672 (SVE_SIG_FFR_OFFSET): Likewise.
4673 (SVE_SIG_REGS_SIZE): Likewise.
4674 (SVE_SIG_CONTEXT_SIZE): Likewise.
4675 (SVE_PT_REGS_MASK): Likewise.
4676 (SVE_PT_REGS_FPSIMD): Likewise.
4677 (SVE_PT_REGS_SVE): Likewise.
4678 (SVE_PT_VL_INHERIT): Likewise.
4679 (SVE_PT_VL_ONEXEC): Likewise.
4680 (SVE_PT_REGS_OFFSET): Likewise.
4681 (SVE_PT_FPSIMD_OFFSET): Likewise.
4682 (SVE_PT_FPSIMD_SIZE): Likewise.
4683 (SVE_PT_SVE_ZREG_SIZE): Likewise.
4684 (SVE_PT_SVE_PREG_SIZE): Likewise.
4685 (SVE_PT_SVE_FFR_SIZE): Likewise.
4686 (SVE_PT_SVE_FPSR_SIZE): Likewise.
4687 (SVE_PT_SVE_FPCR_SIZE): Likewise.
4688 (__SVE_SIG_TO_PT): Likewise.
4689 (SVE_PT_SVE_OFFSET): Likewise.
4690 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4691 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4692 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4693 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4694 (SVE_PT_SVE_PREG_OFFSET): Likewise.
4695 (SVE_PT_SVE_PREGS_SIZE): Likewise.
4696 (SVE_PT_SVE_FFR_OFFSET): Likewise.
4697 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4698 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4699 (SVE_PT_SVE_SIZE): Likewise.
4700 (SVE_PT_SIZE): Likewise.
4701 (HAS_SVE_STATE): New define.
4702
17a1cc89
AH
47032018-06-18 Alan Hayward <alan.hayward@arm.com>
4704
4705 * nat/aarch64-sve-linux-sigcontext.h: New file.
4706 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4707 new files.
4708 (SVE_VQ_MIN): Likewise.
4709 (SVE_VQ_MAX): Likewise.
4710 (SVE_VL_MIN): Likewise.
4711 (SVE_VL_MAX): Likewise.
4712 (SVE_NUM_ZREGS): Likewise.
4713 (SVE_NUM_PREGS): Likewise.
4714 (sve_vl_valid): Likewise.
4715 (struct user_sve_header): Likewise.
4716
7010835a
AB
47172018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4718 Richard Bunt <Richard.Bunt@arm.com>
4719
4720 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4721 was requested by GDB.
4722
479b3ef4
TV
47232018-06-15 Tom de Vries <tdevries@suse.de>
4724
4725 * MAINTAINERS (Write After Approval): Add Tom de Vries.
4726
8199b8f4
SM
47272018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
4728
4729 * gnulib/update-gnulib.sh: Print expected versions of
4730 autoconf/aclocal.
4731
55c748a1
SM
47322018-06-14 Simon Marchi <simon.marchi@ericsson.com>
4733
4734 * arch-utils.c (default_type_align): Use type_length_units.
4735 * gdbtypes.c (type_align): Use type_length_units.
4736
87a8eca7
PW
47372018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4738
4739 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4740 of 'define' command.
4741
5d9a0608
TV
47422018-06-14 Tom de Vries <tdevries@suse.de>
4743
4744 PR cli/22573
4745 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4746 get_no_prettyformat_print_options.
4747
ab89b5a5
SM
47482018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4749
4750 * sparc-nat.h: Include target.h.
4751 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4752 <fetch_registers>: Remove this argument in function call.
4753 <store_registers>: Remove this argument in function call, remove
4754 extra semicolon.
4755 <low_forget_process>: Call sparc64_forget_process instead of
4756 sparc_forget_process.
4757
62c808ae
RO
47582018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4759
4760 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4761 (procfs_target::make_corefile_notes): Adjust to new
4762 target_read_alloc return type.
4763
1840d81a
AB
47642018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4765 Stephen Roberts <stephen.roberts@arm.com>
4766
4767 PR gdb/22882
4768 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4769 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4770 Move should_notify_stop local into more inner scope.
4771
9516f85a
AB
47722018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4773 Stephen Roberts <stephen.roberts@arm.com>
4774
4775 PR gdb/22882
4776 * infrun.c (resume_1): Add call to mark_async_event_handler.
4777
defd2172
AB
47782018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4779
4780 * infrun.c (do_target_wait): Change old version of $pc printed.
4781
7b23e087
SM
47822018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4783
4784 * dwarf2read.c (read_index_from_section): Rename to...
4785 (read_gdb_index_from_section): ... this, update all callers.
4786 (dwarf2_read_index): Rename to...
4787 (dwarf2_read_gdb_index): ... this, update all callers.
4788
69c67a0b
JDA
47892018-06-11 John David Anglin <danglin@gcc.gnu.org>
4790
4791 * gdb/hppa-linux-nat.c
4792 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4793 hppa_linux_nat_target::fetch_registers.
4794
65d4cada
AH
47952018-06-11 Alan Hayward <alan.hayward@arm.com>
4796
4797 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4798 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4799 (AARCH64_DWARF_SVE_FFR): Likewise.
4800 (AARCH64_DWARF_SVE_P0): Likewise.
4801 (AARCH64_DWARF_SVE_Z0): Likewise.
4802
f868386e
AH
48032018-06-11 Alan Hayward <alan.hayward@arm.com>
4804
4805 * common/common-regcache.h (raw_compare): New function.
4806 * regcache.c (regcache::raw_compare): Likewise.
4807 * regcache.h (regcache::raw_compare): New declaration.
4808
9c861883
AH
48092018-06-11 Alan Hayward <alan.hayward@arm.com>
4810
4811 * common/common-regcache.h (reg_buffer_common): New structure.
4812 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4813 (reg_buffer::raw_supply): Likewise.
4814 (reg_buffer::raw_supply_integer): Likewise.
4815 (reg_buffer::raw_supply_zeroed): Likewise.
4816 (reg_buffer::raw_collect): Likewise.
4817 (reg_buffer::raw_collect_integer): Likewise.
4818 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4819 (reg_buffer::raw_supply): Likewise.
4820 (reg_buffer::raw_supply_integer): Likewise.
4821 (reg_buffer::raw_supply_zeroed): Likewise.
4822 (reg_buffer::raw_collect): Likewise.
4823 (reg_buffer::raw_collect_integer): Likewise.
4824
953edf2b
TT
48252018-06-10 Tom Tromey <tom@tromey.com>
4826
4827 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4828 (class remote_state) <stop_reply_queue>: Now std::vector.
4829 (remote_state::~remote_state)
4830 (remote_target::stop_reply_queue_length): Update.
4831 (struct queue_iter_param, remove_child_of_pending_fork)
4832 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4833 (check_pending_event_prevents_wildcard_vcont_callback)
4834 (remove_stop_reply_for_inferior)
4835 (remove_stop_reply_of_remote_state)
4836 (remote_notif_remove_once_on_match)
4837 (stop_reply_match_ptid_and_ws)
4838 (remote_kill_child_of_pending_fork): Remove.
4839 (remote_target::remove_new_fork_children)
4840 (remote_target::check_pending_events_prevent_wildcard_vcont)
4841 (remote_target::discard_pending_stop_replies)
4842 (remote_target::discard_pending_stop_replies_in_queue)
4843 (remote_target::remote_notif_remove_queued_reply)
4844 (remote_target::queued_stop_reply)
4845 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4846 (remote_target::wait, remote_target::kill_new_fork_children)
4847 (remote_target::async): Update.
4848
1ddbba9d
TT
48492018-06-10 Tom Tromey <tom@tromey.com>
4850
4851 * record-full.c (record_full_arch_list_cleanups): Remove.
4852 (record_full_message): Use try/catch.
4853 (record_full_wait_cleanups): Remove.
4854 (record_full_wait_1): Use try/catch.
4855 (record_full_restore): Likewise.
4856
219605fd
TT
48572018-06-10 Tom Tromey <tom@tromey.com>
4858
4859 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
4860 declare VEC. Add constructor.
4861 <in_target_beneath>: Now bool.
4862 (record_full_breakpoints): Now a std::vector, static.
4863 (record_full_sync_record_breakpoints)
4864 (record_full_init_record_breakpoints)
4865 (record_full_target::insert_breakpoint)
4866 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
4867
71b73764
SM
48682018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4869
4870 * dwarf2read.c (process_cu_includes): Remove struct keyword.
4871 * serial.c (serial_interface_lookup): Remove struct keyword.
4872
4360561f
TT
48732018-06-10 Tom Tromey <tom@tromey.com>
4874
4875 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
4876 method.
4877 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
4878 a method.
4879 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
4880 method.
4881 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
4882 "beneath" as a method.
4883 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
4884 Use "beneath" as a method.
4885
d14b92bf
TT
48862018-06-10 Tom Tromey <tom@tromey.com>
4887
4888 * tracefile.c (struct trace_file_writer_deleter): New.
4889 <operator()>: Rename from trace_file_writer_xfree.
4890 (trace_file_writer_up): New typedef.
4891 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
4892
835dcf92
SM
48932018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4894
4895 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
4896 <m_registers, m_register_status>: Change type to
4897 std::unique_ptr.
4898 * regcache.c (reg_buffer::reg_buffer): Use new instead of
4899 XCNEWVEC.
4900
aac0d564
SM
49012018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4902
4903 * common/common-regcache.h (enum register_status): Add
4904 underlying type "signed char".
4905 * regcache.h (reg_buffer) <m_register_status>: Change type to
4906 register_status *.
4907 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
4908 register_status instead of signed char.
4909 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
4910 (reg_buffer::get_register_status): Remove cast.
4911 (readable_regcache::raw_read): Remove cast.
4912 (readable_regcache::cooked_read): Remove cast.
4913
77ad7394
TT
49142018-06-09 Tom Tromey <tom@tromey.com>
4915
4916 * source.c (reverse_search_command, forward_search_command): Use
4917 scoped_fd.
4918
191cca63
TT
49192018-06-09 Tom Tromey <tom@tromey.com>
4920
4921 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
4922 (serial_ops_list): Now static, std::vector.
4923 (serial_interface_lookup, serial_add_interface): Update.
4924
c5d0225d
TT
49252018-06-09 Tom Tromey <tom@tromey.com>
4926
4927 * dwarf2read.c (process_cu_includes): Update.
4928 (process_full_comp_unit): Update.
4929 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
4930 std::vector.
4931
aeab5128
PK
49322018-06-08 Paul Koning <paul_koning@dell.com>
4933
4934 PR gdb/23252
4935
4936 * python/python.c (do_start_initialization):
4937 Avoid call to internal Python API.
4938 (init__gdb_module): New function.
4939
5045b3d7
GB
49402018-06-08 Gary Benson <gbenson@redhat.com>
4941
4942 * linux-thread-db.c (valprint.h): New include.
4943 (struct check_thread_db_info): New structure.
4944 (check_thread_db_on_load, tdb_testinfo): New static globals.
4945 (check_thread_db, check_thread_db_callback): New functions.
4946 (try_thread_db_load_1): Run integrity checks if requested.
4947 (maintenance_check_libthread_db): New function.
4948 (_initialize_thread_db): Register "maint check libthread-db"
4949 and "maint set/show check-libthread-db".
4950 * NEWS: Mention the above new commands.
4951
2f4f025f
TT
49522018-06-08 Tom Tromey <tom@tromey.com>
4953
4954 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
4955 now a method.
4956
343b0027
TT
49572018-06-08 Tom Tromey <tom@tromey.com>
4958
4959 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
4960
8dcc53b3
TT
49612018-06-08 Tom Tromey <tom@tromey.com>
4962
4963 * common/btrace-common.h (struct btrace_data): Add constructor,
4964 destructor, move assignment operator.
4965 <empty, clear, fini>: New methods.
4966 <format>: Initialize.
4967 (btrace_data_init, btrace_data_fini, btrace_data_clear)
4968 (btrace_data_empty): Don't declare.
4969 * common/btrace-common.c (btrace_data_init): Remove.
4970 (btrace_data::fini): Rename from btrace_data_fini.
4971 (btrace_data::empty): Rename from btrace_data_empty.
4972 (btrace_data::clear): Rename from btrace_data_clear. Return
4973 bool.
4974 * btrace.h (make_cleanup_btrace_data): Don't declare.
4975 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
4976 (parse_xml_btrace): Update.
4977 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
4978 (maint_btrace_clear_packet_history_cmd): Update.
4979
a1740ee1
PA
49802018-06-07 Pedro Alves <palves@redhat.com>
4981
4982 * target.h (target_ops) <beneath>: Now a method. All references
4983 updated.
4984 (class target_stack): New.
4985 * target.c (g_target_stack): New.
4986 (g_current_top_target): Delete.
4987 (current_top_target): Get the top target out of g_target_stack.
4988 (target_stack::push, target_stack::unpush): New.
4989 (push_target, unpush_target): Reimplement.
4990 (target_is_pushed): Reimplement in terms of g_target_stack.
4991 (target_ops::beneath, target_stack::find_beneath): New.
4992
d6ca69cd
PA
49932018-06-07 Pedro Alves <palves@redhat.com>
4994
4995 * target.h (find_target_beneath): Delete declaration.
4996 * target.c (find_target_beneath): Delete definition.
4997 * aix-thread.c: All callers of find_target_beneath adjusted to
4998 call target_ops::beneath instead.
4999 * bsd-uthread.c: Likewise.
5000 * linux-thread-db.c: Likewise.
5001 * ravenscar-thread.c: Likewise.
5002 * sol-thread.c: Likewise.
5003 * spu-multiarch.c: Likewise.
5004
b6a8c27b
PA
50052018-06-07 Pedro Alves <palves@redhat.com>
5006
5007 * target.h (target_ops) <beneath>: Now a method. All references
5008 updated.
5009 (target_ops) <m_beneath>: New.
5010 * target.c (target_ops::beneath): New.
5011 * corelow.c: Adjust all references to target_ops::beneath.
5012 * linux-thread-db.c: Likewise.
5013 * make-target-delegates: Likewise.
5014 * record-btrace.c: Likewise.
5015 * record-full.c: Likewise.
5016 * remote.c: Likewise.
5017 * target.c: Likewise.
5018 * target-delegates.c: Regenerate.
5019
8b88a78e
PA
50202018-06-07 Pedro Alves <palves@redhat.com>
5021
5022 * target.h (target_stack): Delete.
5023 (current_top_target): Declare function.
5024 * target.c (target_stack): Delete.
5025 (g_current_top_target): New.
5026 (current_top_target): New function.
5027 * auxv.c: Use current_top_target instead of target_stack
5028 throughout.
5029 * avr-tdep.c: Likewise.
5030 * breakpoint.c: Likewise.
5031 * corefile.c: Likewise.
5032 * elfread.c: Likewise.
5033 * eval.c: Likewise.
5034 * exceptions.c: Likewise.
5035 * frame.c: Likewise.
5036 * gdbarch-selftests.c: Likewise.
5037 * gnu-v3-abi.c: Likewise.
5038 * ia64-tdep.c: Likewise.
5039 * ia64-vms-tdep.c: Likewise.
5040 * infcall.c: Likewise.
5041 * infcmd.c: Likewise.
5042 * infrun.c: Likewise.
5043 * linespec.c: Likewise.
5044 * linux-tdep.c: Likewise.
5045 * minsyms.c: Likewise.
5046 * ppc-linux-nat.c: Likewise.
5047 * ppc-linux-tdep.c: Likewise.
5048 * procfs.c: Likewise.
5049 * regcache.c: Likewise.
5050 * remote.c: Likewise.
5051 * rs6000-tdep.c: Likewise.
5052 * s390-linux-nat.c: Likewise.
5053 * s390-tdep.c: Likewise.
5054 * solib-aix.c: Likewise.
5055 * solib-darwin.c: Likewise.
5056 * solib-dsbt.c: Likewise.
5057 * solib-spu.c: Likewise.
5058 * solib-svr4.c: Likewise.
5059 * solib-target.c: Likewise.
5060 * sparc-tdep.c: Likewise.
5061 * sparc64-tdep.c: Likewise.
5062 * spu-tdep.c: Likewise.
5063 * symfile.c: Likewise.
5064 * symtab.c: Likewise.
5065 * target-descriptions.c: Likewise.
5066 * target-memory.c: Likewise.
5067 * target.c: Likewise.
5068 * target.h: Likewise.
5069 * tracefile-tfile.c: Likewise.
5070 * tracepoint.c: Likewise.
5071 * valops.c: Likewise.
5072 * valprint.c: Likewise.
5073 * value.c: Likewise.
5074 * windows-tdep.c: Likewise.
5075 * mi/mi-main.c: Likewise.
5076
c7110220
TT
50772018-06-07 Tom Tromey <tom@tromey.com>
5078
5079 * valprint.h (build_address_symbolic): Declare.
5080 * printcmd.c (print_address_symbolic): Update.
5081 (build_address_symbolic): Change "name" and "filename" to
5082 std::string.
5083 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5084 Update.
5085 * defs.h (build_address_symbolic): Remove declaration.
5086
63bad7b6
AH
50872018-06-07 Alan Hayward <alan.hayward@arm.com>
5088
5089 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5090 (aarch64_vnv_type): Add function.
5091 (aarch64_pseudo_register_name): Add V regs for SVE.
5092 (aarch64_pseudo_register_type): Likewise.
5093 (aarch64_pseudo_register_reggroup_p): Likewise.
5094 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5095 (aarch64_pseudo_read_value): Add V regs for SVE.
5096 (aarch64_pseudo_write_2): Use V0 offset for SVE
5097 (aarch64_pseudo_write): Add V regs for SVE.
5098 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5099
13e3c608
SDJ
51002018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5101
5102 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5103 (sve_vl_from_vq): Likewise.
5104
c61b06a1
TT
51052018-06-05 Tom Tromey <tom@tromey.com>
5106
5107 * cli/cli-cmds.c (show_version): Update.
5108 * top.c (print_gdb_version): Add "interactive" parameter.
5109 Update.
5110 * main.c (captured_main_1): Update.
5111 * top.h (print_gdb_version): Add "interactive" parameter and a
5112 comment.
5113
115f7325
DM
51142018-06-05 David Malcolm <dmalcolm@redhat.com>
5115
5116 * common/enum-flags.h: Add trailing semicolon to example in
5117 comment.
5118
eb6af809
TT
51192018-06-05 Tom Tromey <tom@tromey.com>
5120
5121 PR cli/12326:
5122 * NEWS: Add entry about pager.
5123 * utils.c (pagination_disabled_for_command): New global.
5124 (prompt_for_continue): Allow "c" response to prompt.
5125 (reinitialize_more_filter): Clear
5126 pagination_disabled_for_command.
5127 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5128
54d343a2
TT
51292018-06-04 Tom Tromey <tom@tromey.com>
5130
5131 * ada-lang.h (ada_lookup_symbol_list): Update.
5132 * ada-lang.c (resolve_subexp): Update.
5133 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5134 parameter.
5135 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5136 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5137 results parameter to std::vector.
5138 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5139 Update.
5140 * ada-exp.y (block_lookup): Update.
5141 (select_possible_type_sym): Change type of syms. Remove nsyms
5142 parameter.
5143 (write_var_or_type, write_name_assoc): Update.
5144
178d6a63
JB
51452018-06-04 Joel Brobecker <brobecker@adacore.com>
5146
5147 * windows-nat.c (windows_nat_target::xfer_partial): Return
5148 TARGET_XFER_E_IO if we need to delegate to the target beneath
5149 but BENEATH is NULL.
5150
baf00c2d
SM
51512018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5152
5153 * Makefile.in (config.status): Add configure.nat as a
5154 dependency.
5155
214b073c
TT
51562018-06-04 Tom Tromey <tom@tromey.com>
5157
5158 * cp-name-parser.y (cpname_state): Add method declarations.
5159 (HANDLE_QUAL): Update.
5160 (cpname_state::d_grab, cpname_state::fill_comp)
5161 (cpname_state::make_operator, cpname_state::make_dtor)
5162 (cpname_state::make_builtin_type, cpname_state::make_name)
5163 (cpname_state::d_qualify, cpname_state::d_int_type)
5164 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5165 (%union): Move earlier.
5166
62b74cb8
AH
51672018-06-04 Alan Hayward <alan.hayward@arm.com>
5168
5169 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5170
3c5cd5c3
AH
51712018-06-04 Alan Hayward <alan.hayward@arm.com>
5172
5173 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5174 (aarch64_pseudo_write_1): Likewise.
5175 (aarch64_pseudo_read_value): Use helper.
5176 (aarch64_pseudo_write): Likewise.
5177
59f413d5
PA
51782018-06-04 Pedro Alves <palves@redhat.com>
5179
5180 * darwin-nat.c (darwin_ops): Delete.
5181 (darwin_attach_pid): Use get_native_target.
5182
1332a140
AH
51832018-06-04 Alan Hayward <alan.hayward@arm.com>
5184
5185 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5186 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5187
ba2d2bb2
AH
51882018-06-04 Alan Hayward <alan.hayward@arm.com>
5189
5190 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5191 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5192 (aarch64_gdbarch_init): Check for SVE.
5193 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5194
51952018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
5196
5197 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5198 * aarch64-tdep.h (aarch64_read_description): Likewise.
5199 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5200 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5201 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5202 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5203 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5204
41c60b4b
SM
52052018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5206
5207 * value.c (value_fetch_lazy_bitfield): New.
5208 (value_fetch_lazy_memory): New.
5209 (value_fetch_lazy_register): New.
5210 (value_fetch_lazy): Factor out to smaller functions.
5211
7b640f72
TT
52122018-06-01 Tom Tromey <tom@tromey.com>
5213
5214 * cp-name-parser.y (backslashable, represented): Now const.
5215
98e69eb3
TT
52162018-06-01 Tom Tromey <tom@tromey.com>
5217
5218 * cp-name-parser.y: Include parser-defs.h.
5219 (parser_fprintf): Remove declaration.
5220
49265499
TT
52212018-06-01 Tom Tromey <tom@tromey.com>
5222
5223 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5224 %parse-param.
5225 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5226 (global_result): Remove globals.
5227 (struct cpname_state): New.
5228 (yyparse): Don't declare.
5229 (yylex, yyerror): Move declarations after %union.
5230 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5231 (make_name): Add state parameter.
5232 Update all callers.
5233 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5234 parameter.
5235 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5236 Update.
5237 (yylex): Add lvalp, state parameters.
5238 (yyerror): Add state parameter.
5239 (cp_demangled_name_to_comp): Update.
5240
55b6c984
TT
52412018-06-01 Tom Tromey <tom@tromey.com>
5242
5243 * cp-name-parser.y (parser_fprintf): Declare.
5244 (GDB_YY_REMAP_PREFIX): Define.
5245 Include yy-remap.h. Don't redefine yy* identifiers.
5246
3513a6bb
TT
52472018-06-01 Tom Tromey <tom@tromey.com>
5248
5249 * python/py-type.c (typy_legacy_template_argument): Update.
5250 * cp-support.h (cp_demangled_name_to_comp): Update.
5251 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5252 parameter to be a "std::string *".
5253 (main): Update.
5254
e9cb46ab
L
52552018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5256
5257 * ada-lex.l: Include "diagnostics.h" instead of
5258 "common/diagnostics.h".
5259 * unittests/environ-selftests.c: Likewise.
5260 * common/diagnostics.h: Moved to ../include.
5261
8e817061
JB
52622018-06-01 Joel Brobecker <brobecker@adacore.com>
5263
5264 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5265 to language_mode_manual while calling breakpoint_re_set_one.
5266
a737d952
TT
52672018-06-01 Tom Tromey <tom@tromey.com>
5268
5269 * valops.c (value_cast_structs, destructor_name_p): Update.
5270 * symtab.c (gdb_mangle_name): Update.
5271 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5272 Update.
5273 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5274 (pascal_object_print_value_fields, pascal_object_print_value):
5275 Update.
5276 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5277 * linespec.c (find_methods): Update.
5278 * gdbtypes.h (type_name_no_tag): Remove.
5279 (type_name_or_error): Rename from type_name_no_tag_or_error.
5280 * gdbtypes.c (type_name_no_tag): Remove.
5281 (type_name_or_error): Rename from type_name_no_tag_or_error.
5282 (lookup_struct_elt_type, check_typedef): Update.
5283 * expprint.c (print_subexp_standard): Update.
5284 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5285 * d-namespace.c (d_lookup_nested_symbol): Update.
5286 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5287 (cp_print_class_member): Update.
5288 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5289 * completer.c (add_struct_fields): Update.
5290 * c-typeprint.c (cp_type_print_derivation_info)
5291 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5292 Update.
5293 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5294 (ada_prefer_type, ada_is_exception_sym): Update.
5295
e86ca25f
TT
52962018-06-01 Tom Tromey <tom@tromey.com>
5297
5298 * valops.c (enum_constant_from_type, value_namespace_elt)
5299 (value_maybe_namespace_elt): Update.
5300 * valarith.c (find_size_for_pointer_math): Update.
5301 * target-descriptions.c (make_gdb_type): Update.
5302 * symmisc.c (print_symbol): Update.
5303 * stabsread.c (define_symbol, read_type)
5304 (complain_about_struct_wipeout, add_undefined_type)
5305 (cleanup_undefined_types_1): Update.
5306 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5307 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5308 (rust_internal_print_type, rust_composite_type)
5309 (rust_evaluate_funcall, rust_evaluate_subexp)
5310 (rust_inclusive_range_type_p): Update.
5311 * python/py-type.c (typy_get_tag): Update.
5312 * p-typeprint.c (pascal_type_print_base): Update.
5313 * mdebugread.c (parse_symbol, parse_type): Update.
5314 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5315 Update.
5316 * guile/scm-type.c (gdbscm_type_tag): Update.
5317 * go-lang.c (sixg_string_p): Update.
5318 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5319 Update.
5320 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5321 (TYPE_TAG_NAME): Remove.
5322 * gdbtypes.c (type_name_no_tag): Simplify.
5323 (check_typedef, check_types_equal, recursive_dump_type)
5324 (copy_type_recursive, arch_composite_type): Update.
5325 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5326 in summary mode when needed.
5327 * eval.c (evaluate_funcall): Update.
5328 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5329 (process_structure_scope, read_enumeration_type)
5330 (read_namespace_type, read_module_type, determine_prefix): Update.
5331 * cp-support.c (inspect_type): Update.
5332 * coffread.c (process_coff_symbol, decode_base_type): Update.
5333 * c-varobj.c (c_is_path_expr_parent): Update.
5334 * c-typeprint.c (c_type_print_base_struct_union): Update.
5335 (c_type_print_base_1): Update. Print struct/class/union/enum in
5336 summary when using C language.
5337 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5338 (gen_maybe_namespace_elt): Update.
5339 * ada-lang.c (ada_type_name): Simplify.
5340 (empty_record, ada_template_to_fixed_record_type_1)
5341 (template_to_static_fixed_type)
5342 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5343
c1ec8cea
TT
53442018-06-01 Tom Tromey <tom@tromey.com>
5345
5346 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5347 c_print_type.
5348 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5349 (c_print_type): Update.
5350 (c_print_type): New overload.
5351 (c_type_print_varspec_prefix, c_type_print_args)
5352 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5353 (c_type_print_base_struct_union, c_type_print_base_1)
5354 (cp_type_print_method_args): Add "language" parameter.
5355 (c_type_print_base): Update.
5356 * c-lang.h (c_print_type): Add new overload.
5357
bc8453a7
TT
53582018-06-01 Tom Tromey <tom@tromey.com>
5359
5360 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5361 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5362
739e8682
AH
53632018-06-01 Alan Hayward <alan.hayward@arm.com>
5364
5365 * aarch64-tdep.c (aarch64_sve_register_names): New const
5366 var.
5367 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5368 (AARCH64_SVE_Z_REGS_NUM): New define.
5369 (AARCH64_SVE_P_REGS_NUM): Likewise.
5370 (AARCH64_SVE_NUM_REGS): Likewise.
5371
8a60efe7
UB
53722018-05-31 Uros Bizjak <ubizjak@gmail.com>
5373
5374 * nat/linux-ptrace.h [__alpha__]
5375 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5376 definitions.
5377
4b2dfa9d
MR
53782018-05-31 Maciej W. Rozycki <macro@mips.com>
5379
5380 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5381 the endianness selected.
5382 * NEWS: Document `set endian auto' mode operation update.
5383
122394f1
AH
53842018-05-31 Alan Hayward <alan.hayward@arm.com>
5385
5386 * Makefile.in: Add new header.
5387 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5388 (sve_vl_from_vg): Likewise.
5389 (sve_vq_from_vl): Likewise.
5390 (sve_vl_from_vq): Likewise.
5391 (sve_vq_from_vg): Likewise.
5392 (sve_vg_from_vq): Likewise.
5393 * configure.nat: Add new c file.
5394 * nat/aarch64-sve-linux-ptrace.c: New file.
5395 * nat/aarch64-sve-linux-ptrace.h: New file.
5396
95228a0d
AH
53972018-05-31 Alan Hayward <alan.hayward@arm.com>
5398
5399 * aarch64-linux-nat.c (aarch64_linux_read_description):
5400 Add parmeter zero.
5401 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5402 Likewise.
5403 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5404 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5405 (aarch64_gdbarch_init): Add parmeter zero.
5406 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5407 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5408 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5409 parmeter.
5410 * doc/gdb.texinfo: Describe SVE feature
5411 * features/aarch64-sve.c: New file.
5412
5969f0db
OJ
54132018-05-31 Omair Javaid <omair.javaid@linaro.org>
5414
5415 PR gdb/23210
5416 * gdbarch.sh (significant_addr_bit): Default to zero when
5417 not set by target architecture.
5418 * gdbarch.c: Re-generated.
5419 * utils.c (address_significant): Update.
5420
61367c61
JB
54212018-05-30 Joel Brobecker <brobecker@adacore.com>
5422
5423 * stack.c (func_command): Remove trailing newline in call to error.
5424
34a79281
SM
54252018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5426
5427 * regcache.h (regcache_raw_collect): Remove, update callers to
5428 use regcache::raw_collect.
5429 * regcache.c (regcache_raw_collect): Remove.
5430
73e1c03f
SM
54312018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5432
5433 * regcache.h (regcache_raw_supply): Remove, update callers to
5434 use detached_regcache::raw_supply.
5435 * regcache.c (regcache_raw_supply): Remove.
5436
e4c4a59b
SM
54372018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5438
5439 * regcache.h (regcache_cooked_write_part): Remove, update
5440 callers to use regcache::cooked_write_part.
5441 * regcache.c (regcache_cooked_write_part): Remove.
5442
73bb0000
SM
54432018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5444
5445 * regcache.h (regcache_cooked_read_part): Remove, update callers
5446 to use readable_regcache::cooked_read_part.
5447 * regcache.c (regcache_cooked_read_part): Remove.
5448
46a45e9d
SM
54492018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5450
5451 * regcache.h (regcache_cooked_read_value): Remove, update
5452 callers to use readable_regcache::cooked_read_value.
5453 * regcache.c (regcache_cooked_read_value): Remove.
5454
b66f5587
SM
54552018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5456
5457 * regcache.h (regcache_cooked_write): Remove, update callers to
5458 use regcache::cooked_write.
5459 * regcache.c (regcache_cooked_write): Remove.
5460
6aa7d724
SM
54612018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5462
5463 * regcache.h (regcache_invalidate): Remove, update callers to
5464 use detached_regcache::invalidate instead.
5465 * regcache.c (regcache_invalidate): Remove.
5466
4f0420fd
SM
54672018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5468
5469 * regcache.h (regcache_raw_write_part): Remove, update callers
5470 to use regcache::raw_write_part instead.
5471 * regcache.c (regcache_raw_write_part): Remove.
5472
502fe83e
SM
54732018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5474
5475 * regcache.h (regcache_raw_read_part): Remove, update callers to
5476 use readable_regcache::raw_read_part instead.
5477 * regcache.c (regcache_raw_read_part): Remove.
5478
dca08e1f
SM
54792018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5480
5481 * regcache.h (regcache_cooked_read): Remove, update callers to
5482 use readable_regcache::cooked_read instead.
5483 * regcache.c (regcache_cooked_read): Remove.
5484
10eaee5f
SM
54852018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5486
5487 * regcache.h (regcache_raw_write): Remove, update callers to use
5488 regcache::raw_write instead.
5489 * regcache.c (regcache_raw_write): Remove.
5490
0b883586
SM
54912018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5492
5493 * regcache.h (regcache_raw_read): Remove, update callers to use
5494 readable_regcache::raw_read instead.
5495 * regcache.c (regcache_raw_read): Remove.
5496
0b47d985
SM
54972018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5498
5499 * regcache.h (regcache_raw_update): Remove, update callers to
5500 use readable_regcache::raw_update instead.
5501 * regcache.c (regcache_raw_update): Remove.
5502
0ec9f114
SM
55032018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5504
5505 * regcache.h (regcache_register_status): Remove, update callers
5506 to use reg_buffer::get_register_status directly instead.
5507 * regcache.c (regcache_register_status): Remove.
5508
222312d3
SM
55092018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5510
5511 * regcache.h (regcache_get_ptid): Remove, update all callers to
5512 call regcache::ptid instead.
5513 * regcache.c (regcache_get_ptid): Remove.
5514
fdbe37e3
SM
55152018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5516
5517 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5518
f7c6f423
PA
55192018-05-30 Pedro Alves <palves@redhat.com>
5520
5521 * common/common-exceptions.h (exception_rethrow): Use
5522 ATTRIBUTE_NORETURN.
5523
52941706
SM
55242018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5525
5526 * breakpoint.c (print_solib_event, check_status_catch_solib):
5527 Remove struct keyword in range-based for loops.
5528 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5529 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5530 Likewise.
5531 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5532 Likewise.
5533 * symfile.c (addr_info_make_relative): Likewise.
5534 * thread.c (value_in_thread_stack_temporaries): Likewise.
5535
bf2977b5
WP
55362018-06-12 Weimin Pan <weimin.pan@oracle.com>
5537
5538 PR gdb/16841
5539 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5540 aggregate type to get its real type before accessing it.
5541
64cc34d8
WP
55422018-05-29 Weimin Pan <weimin.pan@oracle.com>
5543
5544 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5545 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5546 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5547 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5548 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5549 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5550 * printcmd.c (info_address_command): Likewise.
5551
e7ec8713
TT
55522018-05-29 Tom Tromey <tom@tromey.com>
5553
5554 * windows-nat.c (handle_exception): Update fall-through comment.
5555
bcb430e4
TT
55562018-05-29 Tom Tromey <tom@tromey.com>
5557
5558 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5559 (struct program_space) <added_solibs>: Now a std::vector.
5560 * breakpoint.c (print_solib_event): Update.
5561 (check_status_catch_solib): Update.
5562 * progspace.c (clear_program_space_solib_cache): Update.
5563 * solib.c (update_solib_list): Update.
5564
894882e3
TT
55652018-05-29 Tom Tromey <tom@tromey.com>
5566
5567 * python/py-type.c (typy_richcompare): Update.
5568 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5569 * gdbtypes.h (types_deeply_equal): Return bool.
5570 (types_equal): Likewise.
5571 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5572 declare VEC.
5573 (check_types_equal): Change worklist to std::vector. Return
5574 bool.
5575 (struct type_equality_entry): Add constructor.
5576 (compare_maybe_null_strings): Return bool.
5577 (check_types_worklist): Return bool. Change worklist to
5578 std::vector.
5579 (types_deeply_equal): Use std::vector.
5580 (types_equal): Return bool.
5581 (compare_maybe_null_strings): Simplify.
5582
10b2ded4
TT
55832018-05-29 Tom Tromey <tom@tromey.com>
5584
5585 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5586
4f7deebe
TT
55872018-05-29 Tom Tromey <tom@tromey.com>
5588
5589 * objc-lang.h: Don't include cp-support.h.
5590 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5591 declare VEC.
5592
b8283aea
TT
55932018-05-27 Tom Tromey <tom@tromey.com>
5594
5595 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5596
41a883c8
TT
55972018-05-25 Tom Tromey <tom@tromey.com>
5598
5599 * value.c (value::location): Initialize.
5600
bf259e25
TT
56012018-05-25 Tom Tromey <tom@tromey.com>
5602
5603 * dbxread.c (init_bincl_list): Remove.
5604 (bincl_list): Now a std::vector.
5605 (bincls_allocated, next_bincl): Remove.
5606 (free_bincl_list, do_free_bincl_list_cleanup)
5607 (make_cleanup_free_bincl_list): Remove.
5608 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5609 unique_xmalloc_ptr.
5610 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5611 (struct header_file_location): Add constructor.
5612 (add_bincl_to_list): Remove.
5613
d525a99b
TT
56142018-05-25 Tom Tromey <tom@tromey.com>
5615
5616 * tui/tui.c (tui_enable): Update.
5617 * mi/mi-interp.c (mi_interp::init): Update.
5618 * interps.h (class interp) <name>: New method.
5619 <m_name>: Rename from name.
5620 (~scoped_restore_interp): Update.
5621 * interps.c (interp::interp): Update.
5622 (interp_add, interp_set, interp_lookup_existing)
5623 (current_interp_named_p): Update.
5624
da505cff
TT
56252018-05-25 Tom Tromey <tom@tromey.com>
5626
5627 * interps.c (interp_name): Remove.
5628 * mi/mi-interp.c (mi_interp::init): Update.
5629 * interps.h (interp_name): Remove.
5630 (~scoped_restore_interp): Update.
5631 * tui/tui.c (tui_enable): Update.
5632
29f94340
TT
56332018-05-25 Tom Tromey <tom@tromey.com>
5634
5635 * utils.c (fputs_maybe_filtered): Update.
5636 * linespec.c (decode_line_full): Update.
5637 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5638 (mi_print_breakpoint_for_event, mi_solib_loaded)
5639 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5640 (mi_user_selected_context_changed): Update.
5641 * mi/mi-main.c (mi_execute_command): Update.
5642 * cli/cli-script.c (execute_control_command): Update.
5643 * python/python.c (execute_gdb_command): Update.
5644 * solib.c (info_sharedlibrary_command): Update.
5645 * interps.c (interp_ui_out): Remove.
5646 * interps.h (interp_ui_out): Remove.
5647
716b8bc5
TT
56482018-05-25 Tom Tromey <tom@tromey.com>
5649
5650 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5651 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5652 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5653
753ff9bd
TT
56542018-05-25 Tom Tromey <tom@tromey.com>
5655
5656 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5657 * interps.c (interp_exec): Use scoped_restore.
5658
5ca3b260
TT
56592018-05-25 Tom Tromey <tom@tromey.com>
5660
5661 * remote.c (remote_target::remote_file_get): Use
5662 gdb::byte_vector.
5663 (remote_target::remote_file_put): Likewise.
5664
3173aa2f
TT
56652018-05-25 Tom Tromey <tom@tromey.com>
5666
5667 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5668 a std::string.
5669 (get_pe_section_index, add_pe_exported_sym): Update.
5670 (read_pe_exported_syms): Use gdb::def_vector.
5671
09a5e1b5
TT
56722018-05-25 Tom Tromey <tom@tromey.com>
5673
5674 * frame.c (remove_prev_frame): Remove.
5675 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5676
d8dab6c3
MR
56772018-05-25 Maciej W. Rozycki <macro@mips.com>
5678
5679 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5680 Remove prototypes.
5681 * mips-linux-nat.c (supply_fpregset): Always call
5682 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5683 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5684 `mips_fill_fpregset'.
5685 * mips-linux-tdep.c (mips_supply_fpregset)
5686 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5687 (mips_fill_fpregset_wrapper): Remove functions.
5688 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5689 (mips_linux_fpregset): Remove variable.
5690 (mips_linux_iterate_over_regset_sections): Use
5691 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5692 (mips_linux_o32_sigframe_init): Remove comment.
5693
3c69da40
PA
56942018-05-25 Pedro Alves <palves@redhat.com>
5695
5696 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5697 (struct readahead_cache, struct packet_reg, struct
5698 remote_arch_state, class remote_state): Move higher up in the
5699 file.
5700 (remote_target::m_remote_state): Now an object instead of a pointer.
5701 (remote_target::get_remote_state): Adjust.
5702
39f0c204
AB
57032018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5704
5705 * stack.c (select_and_print_frame): Delete.
5706 (struct function_bounds): Move struct within function.
5707 (func_command): Most content moved into new function
5708 find_frame_for_function, use new function, print result, add
5709 function comment.
5710 (find_frame_for_function): New function, now returns a result.
5711
d392224a
PW
57122018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5713
5714 * stack.c (iterate_over_block_arg_vars): Fix comment.
5715 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5716
45f25d6c
AB
57172018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5718
5719 PR gdb/23203
5720 * frame.c
5721 (scoped_restore_selected_frame::scoped_restore_selected_frame):
5722 Define.
5723 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5724 Define.
5725 * frame.h (class scoped_restore_selected_frame): New class.
5726 * stack.c (print_frame_local_vars): Remove catching and rethrowing
5727 of any exception, use scoped_restore_selected_frame to restore the
5728 frame instead.
5729
da05d921
PA
57302018-05-24 Pedro Alves <palves@redhat.com>
5731
5732 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5733 override.
5734
a8be540e
TT
57352018-05-23 Tom Tromey <tom@tromey.com>
5736
5737 * complaints.c (struct complaints): Remove.
5738 (symfile_complaint_book): Remove.
5739 (series): New global.
5740 (complaint_internal): Update.
5741 (clear_complaints): Update.
5742
ff1cf532
TT
57432018-05-23 Tom Tromey <tom@tromey.com>
5744
5745 * complaints.c (counters): New global.
5746 (struct complain): Remove.
5747 (struct complaints) <root>: Remove.
5748 (complaint_sentinel): Remove.
5749 (symfile_complaint_book): Update.
5750 (find_complaint) Remove.
5751 (complaint_internal, clear_complaints): Update.
5752
7ff88174
TT
57532018-05-23 Tom Tromey <tom@tromey.com>
5754
5755 * complaints.c (struct complain) <file, line>: Remove.
5756 (find_complaint): Remove file, line parameters.
5757 (complaint_internal): Update.
5758
de54e1a5
TT
57592018-05-23 Tom Tromey <tom@tromey.com>
5760
5761 * complaints.c (vcomplaint): Remove.
5762 (complaint_internal) Merge in contents of vcomplaint.
5763
2ac237e5
TT
57642018-05-23 Tom Tromey <tom@tromey.com>
5765
5766 * complaints.c (struct complaints) <explanation>: Remove.
5767 (symfile_explanations): Remove.
5768 (symfile_complaint_book): Update.
5769 (vcomplaint): Update.
5770 (struct explanation): Remove.
5771
b98664d3
TT
57722018-05-23 Tom Tromey <tom@tromey.com>
5773
5774 * complaints.c (symfile_complaints): Remove.
5775 (complaint_internal): Remove "complaints" parameter.
5776 (clear_complaints, vcomplaint): Remove "c" parameter.
5777 (get_complaints): Remove.
5778 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5779 (dwarf2_debug_line_missing_file_complaint)
5780 (dwarf2_debug_line_missing_end_sequence_complaint)
5781 (dwarf2_complex_location_expr_complaint)
5782 (dwarf2_const_value_length_mismatch_complaint)
5783 (dwarf2_section_buffer_overflow_complaint)
5784 (dwarf2_macro_malformed_definition_complaint)
5785 (dwarf2_invalid_attrib_class_complaint)
5786 (create_addrmap_from_index, dw2_symtab_iter_next)
5787 (dw2_expand_marked_cus)
5788 (dw2_debug_names_iterator::find_vec_in_debug_names)
5789 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5790 (create_debug_type_hash_table, init_cutu_and_read_dies)
5791 (partial_die_parent_scope, add_partial_enumeration)
5792 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5793 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5794 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5795 (create_cus_hash_table, create_dwp_hash_table)
5796 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5797 (dwarf2_rnglists_process, dwarf2_ranges_process)
5798 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5799 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5800 (handle_struct_member_die, process_structure_scope)
5801 (read_array_type, read_common_block, read_module_type)
5802 (read_tag_pointer_type, read_typedef, read_base_type)
5803 (read_subrange_type, load_partial_dies, partial_die_info::read)
5804 (partial_die_info::read, partial_die_info::read)
5805 (partial_die_info::read, read_checked_initial_length_and_offset)
5806 (dwarf2_string_attr, read_formatted_entries)
5807 (dwarf_decode_line_header)
5808 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5809 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5810 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5811 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5812 (get_signatured_type, get_DW_AT_signature_type)
5813 (decode_locdesc, file_file_name, consume_improper_spaces)
5814 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5815 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5816 (dwarf2_symbol_mark_computed, set_die_type)
5817 (read_attribute_value): Update.
5818 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5819 Update.
5820 * dbxread.c (unknown_symtype_complaint)
5821 (lbrac_mismatch_complaint, repeated_header_complaint)
5822 (set_namestring, function_outside_compilation_unit_complaint)
5823 (read_dbx_symtab, process_one_symbol): Update.
5824 * gdbtypes.c (stub_noname_complaint): Update.
5825 * windows-nat.c (handle_unload_dll): Update.
5826 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5827 (decode_base_type): Update.
5828 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5829 (eb_complaint, record_include_begin, record_include_end)
5830 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5831 (process_xcoff_symbol, read_symbol)
5832 (function_outside_compilation_unit_complaint)
5833 (scan_xcoff_symtab): Update.
5834 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5835 * buildsym.c (finish_block_internal, make_blockvector)
5836 (end_symtab_get_static_block, augment_type_symtab): Update.
5837 * dtrace-probe.c (dtrace_process_dof)
5838 (dtrace_static_probe_ops::get_probes): Update.
5839 * complaints.h (struct complaint): Don't declare.
5840 (symfile_complaints): Remove.
5841 (complaint_internal): Remove "complaints" parameter.
5842 (complaint): Likewise.
5843 (clear_complaints): Likewise.
5844 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5845 (reread_symbols): Update.
5846 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5847 (dwarf2_frame_cache, decode_frame_entry): Update.
5848 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5849 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5850 (info_selectors_command): Update.
5851 * macrotab.c (macro_include, check_for_redefinition)
5852 (macro_undef): Update.
5853 * objfiles.c (filter_overlapping_sections): Update.
5854 * stabsread.c (invalid_cpp_abbrev_complaint)
5855 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5856 (define_symbol, error_type, read_type, rs6000_builtin_type)
5857 (stabs_method_name_from_physname, read_member_functions)
5858 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5859 (attach_fields_to_type, complain_about_struct_wipeout)
5860 (read_range_type, read_args, common_block_start)
5861 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
5862 Update.
5863 * mdebugread.c (index_complaint, unknown_ext_complaint)
5864 (basic_type_complaint, bad_tag_guess_complaint)
5865 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
5866 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
5867 (parse_procedure, parse_lines)
5868 (function_outside_compilation_unit_complaint)
5869 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
5870 (bad_tag_guess_complaint, reg_value_complaint): Update.
5871 * cp-support.c (demangled_name_complaint): Update.
5872 * macroscope.c (sal_macro_scope): Update.
5873 * dwarf-index-write.c (class debug_names): Update.
5874
4e9668d0
TT
58752018-05-23 Tom Tromey <tom@tromey.com>
5876
5877 * complaints.c (clear_complaints): Remove "noisy" parameter.
5878 * complaints.h (clear_complaints): Update.
5879 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5880 (reread_symbols): Update.
5881
43ba33c7
TT
58822018-05-23 Tom Tromey <tom@tromey.com>
5883
5884 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
5885 SUBSEQUENT_MESSAGE.
5886 (vcomplaint, clear_complaints): Update.
5887 (symfile_explanations): Remove some messages.
5888
2b9496b2
TT
58892018-05-23 Tom Tromey <tom@tromey.com>
5890
5891 * complaints.c (internal_complaint): Remove.
5892 * complaints.h (internal_complaint): Remove.
5893
35f1fea3
MR
58942018-05-22 Maciej W. Rozycki <macro@mips.com>
5895
5896 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
5897
6b8edb51
PA
58982018-05-22 Pedro Alves <palves@redhat.com>
5899
5900 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
5901 (remote_fileio_badfd, remote_fileio_return_errno)
5902 (remote_fileio_return_success, remote_fileio_func_open)
5903 (remote_fileio_func_open, remote_fileio_func_close)
5904 (remote_fileio_func_read, remote_fileio_func_write)
5905 (remote_fileio_func_lseek, remote_fileio_func_rename)
5906 (remote_fileio_func_unlink, remote_fileio_func_stat)
5907 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5908 (remote_fileio_func_isatty, remote_fileio_func_system): Add
5909 remote_target parameter.
5910 (remote_fio_func_map) <func>: Add remote_target parameter.
5911 (do_remote_fileio_request, remote_fileio_request):
5912 * remote-fileio.h (remote_fileio_request):
5913 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
5914 remote_target parameter.
5915 (remote_notif_process, handle_notification): Adjust to pass down
5916 the remote.
5917 (remote_notif_state_allocate): Add remote_target parameter. Save
5918 it.
5919 * remote-notif.h (struct remote_target): Forward declare.
5920 (struct notif_client) <parse, ack, can_get_pending_events>: Add
5921 remote_target parameter.
5922 (struct remote_notif_state) <remote>: New field.
5923 (remote_notif_ack, remote_notif_parse): Add remote_target
5924 parameter.
5925 (remote_notif_state_allocate, remote_notif_state_allocate): Add
5926 remote_target parameter.
5927 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
5928 (threads_listing_context, rmt_thread_action, protocol_feature)
5929 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
5930 (packet_result, struct threads_listing_context, remote_state):
5931 Move definitions and declarations higher up.
5932 (remote_target) <~remote_target>: Declare.
5933 (remote_download_command_source, remote_file_put, remote_file_get)
5934 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
5935 (remote_hostio_pread_vFile, remote_hostio_send_command)
5936 (remote_hostio_set_filesystem, remote_hostio_open)
5937 (remote_hostio_close, remote_hostio_unlink, remote_state)
5938 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
5939 (get_memory_write_packet_size, get_memory_read_packet_size)
5940 (append_pending_thread_resumptions, remote_detach_1)
5941 (append_resumption, remote_resume_with_vcont)
5942 (add_current_inferior_and_thread, wait_ns, wait_as)
5943 (process_stop_reply, remote_notice_new_inferior)
5944 (process_initial_stop_replies, remote_add_thread)
5945 (btrace_sync_conf, remote_btrace_maybe_reopen)
5946 (remove_new_fork_children, kill_new_fork_children)
5947 (discard_pending_stop_replies, stop_reply_queue_length)
5948 (check_pending_events_prevent_wildcard_vcont)
5949 (discard_pending_stop_replies_in_queue, stop_reply)
5950 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
5951 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
5952 (remote_interrupt_as, remote_interrupt_ns)
5953 (remote_get_noisy_reply, remote_query_attached)
5954 (remote_add_inferior, remote_current_thread, get_current_thread)
5955 (set_thread, set_general_thread, set_continue_thread)
5956 (set_general_process, write_ptid)
5957 (remote_unpack_thread_info_response, remote_get_threadinfo)
5958 (parse_threadlist_response, remote_get_threadlist)
5959 (remote_threadlist_iterator, remote_get_threads_with_ql)
5960 (remote_get_threads_with_qxfer)
5961 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
5962 (get_offsets, remote_check_symbols, remote_supported_packet)
5963 (remote_query_supported, remote_packet_size)
5964 (remote_serial_quit_handler, remote_detach_pid)
5965 (remote_vcont_probe, remote_resume_with_hc)
5966 (send_interrupt_sequence, interrupt_query)
5967 (remote_notif_get_pending_events, fetch_register_using_p)
5968 (send_g_packet, process_g_packet, fetch_registers_using_g)
5969 (store_register_using_P, store_registers_using_G)
5970 (set_remote_traceframe, check_binary_download)
5971 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
5972 (remote_xfer_live_readonly_partial, remote_read_bytes)
5973 (remote_send_printf, remote_flash_write, readchar)
5974 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
5975 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
5976 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
5977 (extended_remote_disable_randomization, extended_remote_run)
5978 (send_environment_packet, extended_remote_environment_support)
5979 (extended_remote_set_inferior_cwd, remote_write_qxfer)
5980 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
5981 (packet_command): Now methods of ...
5982 (remote_target): ... this class.
5983 (m_remote_state) <remote_target>: New field.
5984 (struct remote_state) <stop_reply_queue,
5985 remote_async_inferior_event_token, wait_forever_enabled_p>: New
5986 fields.
5987 (remote_state::remote_state): Allocate stop_reply_queue.
5988 (remote_state): Delete global.
5989 (get_remote_state_raw): Delete.
5990 (remote_target::get_remote_state): Allocate m_remote_state on
5991 demand.
5992 (get_current_remote_target): New.
5993 (remote_ops, extended_remote_ops): Delete.
5994 (wait_forever_enabled_p, remote_async_inferior_event_token):
5995 Delete, moved to struct remote_state.
5996 (remote_target::close): Delete self. Destruction bits split to
5997 ...
5998 (remote_target::~remote_target): ... this.
5999 (show_memory_packet_size): Adjust to use
6000 get_current_remote_target.
6001 (struct protocol_feature) <func>: Add remote_target parameter.
6002 All callers adjusted.
6003 (curr_quit_handler_target): New.
6004 (remote_serial_quit_handler): Reimplement.
6005 (remote_target::open_1): Adjust to use get_current_remote_target.
6006 Heap-allocate remote_target/extended_remote_target instances.
6007 (vcont_builder::vcont_builder): Add remote_target parameter, and
6008 save it in m_remote. All callers adjusted.
6009 (vcont_builder::m_remote): New field.
6010 (vcont_builder::restart, vcont_builder::flush)
6011 (vcont_builder::push_action): Use it.
6012 (remote_target::commit_resume): Use it.
6013 (struct queue_iter_param) <remote>: New field.
6014 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6015 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6016 (check_pending_event_prevents_wildcard_vcont_callback)
6017 (remote_target::check_pending_events_prevent_wildcard_vcont)
6018 (remote_target::discard_pending_stop_replies)
6019 (remote_target::discard_pending_stop_replies_in_queue)
6020 (remote_target::remote_notif_remove_queued_reply): Fill in
6021 'remote' field.
6022 (remote_notif_get_pending_events): New.
6023 (remote_target::readchar, remote_target::remote_serial_write):
6024 Save/restore curr_quit_handler_target.
6025 (putpkt): New.
6026 (kill_new_fork_children): Fill in 'remote' field.
6027 (packet_command): Use get_current_remote_target, defer to
6028 remote_target method of same name.
6029 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6030 parameter, and save it in m_remote. All callers adjusted.
6031 (scoped_remote_fd::release): Use m_remote.
6032 (scoped_remote_fd::m_remote): New field.
6033 (remote_file_put, remote_file_get, remote_file_delete): Use
6034 get_current_remote_target, defer to remote_target method of same
6035 name.
6036 (remote_btrace_reset): Add remote_state paremeter. Update all
6037 callers.
6038 (remote_async_inferior_event_handler). Pass down 'data'.
6039 (remote_new_objfile): Use get_current_remote_target.
6040 (remote_target::vcont_r_supported): New.
6041 (set_range_stepping): Use get_current_remote_target and
6042 remote_target::vcont_r_supported.
6043 (_initialize_remote): Don't allocate 'remote_state' and
6044 'stop_reply_queue' globals.
6045 * remote.h (struct remote_target): Forward declare.
6046 (getpkt, putpkt, remote_notif_get_pending_events): Add
6047 'remote_target' parameter.
6048
f5db4863
PA
60492018-05-22 Pedro Alves <palves@redhat.com>
6050
6051 * remote.c (vcont_builder): Now a class. Make all data members
6052 private.
6053 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6054 Declare methods.
6055 (vcont_builder_restart): Rename to ...
6056 (vcont_builder::restart): ... this.
6057 (vcont_builder_flush): Rename to ...
6058 (vcont_builder::flush): ... this.
6059 (vcont_builder_push_action): Rename to ...
6060 (vcont_builder::push_action): ... this.
6061 (remote_target::commit_resume): Adjust.
6062
cc0be08f
PA
60632018-05-22 Pedro Alves <palves@redhat.com>
6064
6065 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6066 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6067 (get_fixed_memory_packet_size): New.
6068 (get_memory_packet_size): Use it.
6069 (set_memory_packet_size): Don't override the config size with
6070 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6071 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6072 Don't refer to get_memory_packet_size if not connected to a remote
6073 target. Show "(default)" if configured size is 0.
6074
9607784a
PA
60752018-05-22 Pedro Alves <palves@redhat.com>
6076
6077 * remote.c (remote_target::mourn_inferior): Move
6078 discard_pending_stop_replies call here from ...
6079 (_initialize_remote): ... here.
6080
0e9a6b2f
PA
60812018-05-22 Pedro Alves <palves@redhat.com>
6082
6083 * remote.c (compare_section_command): Remove set_general_process
6084 call.
6085
43c3a0e4
PA
60862018-05-22 Pedro Alves <palves@redhat.com>
6087
6088 * remote.c (struct packet_reg, struct remote_arch_state):
6089 Move higher up in the file.
6090 (remote_state) <m_arch_states>: Store remote_arch_state values
6091 instead of remote_arch_state pointers.
6092 (remote_state::get_remote_arch_state): Adjust.
6093
9d6eea31
PA
60942018-05-22 Pedro Alves <palves@redhat.com>
6095
6096 * remote.c: Include <unordered_map>.
6097 (remote_state): Now a class.
6098 (remote_state) <get_remote_arch_state>: Declare method.
6099 <get_remote_arch_state>: New field.
6100 (remote_arch_state) <remote_arch_state>: Declare ctor.
6101 <regs>: Now a unique_ptr.
6102 (remote_gdbarch_data_handle): Delete.
6103 (get_remote_arch_state): Delete.
6104 (remote_state::get_remote_arch_state): New.
6105 (get_remote_state): Adjust to call remote_state's
6106 get_remote_arch_state method.
6107 (init_remote_state): Delete, bits factored out to ...
6108 (remote_arch_state::remote_arch_state): ... this new method.
6109 (get_remote_packet_size, get_memory_packet_size)
6110 (process_g_packet, remote_target::fetch_registers)
6111 (remote_target::prepare_to_store, store_registers_using_G)
6112 (remote_target::store_registers, remote_target::get_trace_status):
6113 Adjust to call remote_state's method.
6114 (_initialize_remote): Remove reference to
6115 remote_gdbarch_data_handle.
6116
dd194f6b
PA
61172018-05-22 Pedro Alves <palves@redhat.com>
6118
6119 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6120 pread>: New method declarations.
6121 (remote_target::open_1): Adjust.
6122 (readahead_cache_invalidate): Rename to ...
6123 (readahead_cache::invalidate): ... this, and adjust to be a class
6124 method.
6125 (readahead_cache_invalidate_fd): Rename to ...
6126 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6127 class method.
6128 (remote_hostio_pwrite): Adjust.
6129 (remote_hostio_pread_from_cache): Rename to ...
6130 (readahead_cache::pread): ... this, and adjust to be a class
6131 method.
6132 (remote_hostio_close): Adjust.
6133
440b7aec
PA
61342018-05-22 Pedro Alves <palves@redhat.com>
6135
6136 * remote.c (remote_hostio_close_cleanup): Delete.
6137 (class scoped_remote_fd): New.
6138 (remote_file_put, remote_file_get): Use it.
6139
de44f5a7
PA
61402018-05-22 Pedro Alves <palves@redhat.com>
6141
6142 (struct vCont_action_support): Use bool and initialize all fields.
6143 (struct readahead_cache): Initialize all fields.
6144 (remote_state): Use bool and initialize all fields.
6145 (remote_state::remote_state, remote_state::~remote_state): New.
6146 (new_remote_state): Delete.
6147 (_initialize_remote): Use new to allocate remote_state.
6148
b1b60145
PA
61492018-05-22 Pedro Alves <palves@redhat.com>
6150 張俊芝 <zjz@zjz.name>
6151
6152 PR gdb/22973
6153 * c-exp.y: Include "c-support.h".
6154 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6155 of tolower. Use c_ident_is_alpha to scan names.
6156 * c-lang.c: Include "c-support.h".
6157 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6158 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6159 * c-support.h: New file, with bits factored out from ...
6160 * cp-name-parser.y: ... this file.
6161 Include "c-support.h".
6162 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6163 c-support.h and renamed.
6164 (symbol_end, yylex): Adjust.
6165
0ec848ad
PFC
61662018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6167
6168 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6169 parameter type to CORE_ADDR.
6170 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6171 parameter type in declaration to CORE_ADDR.
6172 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6173 target_auxv_search to get AT_HWCAP and use the result to get the
6174 target description.
6175 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6176 to CORE_ADDR. Remove the cast of the return value to unsigned
6177 long. Fix error predicate of target_auxv_search.
6178 (ppc_linux_nat_target::read_description): Change the type of the
6179 hwcap variable to CORE_ADDR.
6180
0fb2aaa1
PFC
61812018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6182
6183 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6184 if the size of fpscr is larger than 32 bits.
6185
2c3305f6
PFC
61862018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6187
6188 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6189 (ppc32_linux_vsxregmap): New global.
6190 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6191 regcache_supply_regset, and regcache_collect_regset.
6192 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6193 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6194 (fetch_vsx_register, store_vsx_register): Remove.
6195 (fetch_vsx_registers): Add regno parameter. Get regset using
6196 ppc_linux_vsxregset. Use regset to supply registers.
6197 (store_vsx_registers): Add regno parameter. Get regset using
6198 ppc_linux_vsxregset. Use regset to collect registers.
6199 (fetch_register): Call fetch_vsx_registers instead of
6200 fetch_vsx_register.
6201 (store_register): Call store_vsx_registers instead of
6202 store_vsx_register.
6203 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6204 new regno parameter.
6205 (store_ppc_registers): Call store_vsx_registers with -1 for the
6206 new regno parameter.
6207 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6208 (ppc_collect_vsxregset): Remove.
6209
1d75a658
PFC
62102018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6211
6212 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6213 offset fields.
6214 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6215 for vector register offset fields.
6216 (ppc64_fbsd_reg_offsets): Likewise.
6217 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6218 to vector register offset fields.
6219 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6220 to vector register offset fields.
6221 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6222 vector register offset fields.
6223 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6224 initializers for vector register offset fields.
6225 (rs6000_aix64_reg_offsets): Likewise.
6226 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6227 (ppc_supply_vrregset): Remove.
6228 (ppc_collect_vrregset): Remove.
6229 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6230 (ppc_linux_vrregset) : New function.
6231 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6232 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6233 (ppc32_linux_vrregset): Remove.
6234 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6235 and use result instead of ppc32_linux_vrregset.
6236 (ppc32_linux_reg_offsets): Remove initializers for vector register
6237 offset fields.
6238 (ppc64_linux_reg_offsets): Likewise.
6239 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6240 * ppc-linux-nat.c: Include regset.h.
6241 (gdb_vrregset_t): Adjust comment to account for little-endian
6242 mode.
6243 (supply_vrregset, fill_vrregset): Remove.
6244 (fetch_altivec_register, store_altivec_register): Remove.
6245 (fetch_altivec_registers): Add regno parameter. Get regset using
6246 ppc_linux_vrregset. Use regset to supply registers.
6247 (store_altivec_registers): Add regno parameter. Get regset using
6248 ppc_linux_vrregset. Use regset to collect registers.
6249 (fetch_register): Call fetch_altivec_registers instead of
6250 fetch_altivec_register.
6251 (store_register): Call store_altivec_registers instead of
6252 store_altivec_register.
6253 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6254 the new regno parameter.
6255 (store_ppc_registers): Call store_altivec_registers with -1 for
6256 the new regno parameter.
6257
d078308a
PFC
62582018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6259
6260 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6261 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6262 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6263 (gdb_vrregset_t): Change array type size to
6264 PPC_LINUX_SIZEOF_VRREGSET.
6265 (gdb_vsxregset_t): Change array type size to
6266 PPC_LINUX_SIZEOF_VSXREGSET.
6267 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6268 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6269 PPC_LINUX_SIZEOF_VSXREGSET.
6270
2e077f5e
PFC
62712018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6272
6273 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6274 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6275 nat/ppc-linux.c.
6276 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6277 ppc_linux_target_wordsize with tid.
6278 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6279 wordsize with tid.
6280 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6281 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6282 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6283 tid parameter. Remove static specifier.
6284 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6285 (ppc_linux_target_wordsize): New declaration.
6286
bd64614e
PFC
62872018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6288
6289 * arch/ppc-linux-common.c: New file.
6290 * arch/ppc-linux-common.h: New file.
6291 * arch/ppc-linux-tdesc.h: New file.
6292 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6293 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6294 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6295 arch/ppc-linux-tdesc.h.
6296 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6297 arch/ppc-linux-tdesc.h.
6298 (ppc_linux_nat_target::read_description): Remove target
6299 description matching code. Fill a ppc_linux_features struct and
6300 call ppc_linux_match_description with it. Move comment about ISA
6301 2.05 to ppc-linux-common.c.
6302 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6303 arch/ppc-linux-tdesc.h.
6304 (ppc_linux_core_read_description): Remove target description
6305 matching code. Fill a ppc_linux_features struct and call
6306 ppc_linux_match_description with it.
6307 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6308 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6309 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6310 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6311 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6312 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6313 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6314 (tdesc_powerpc_e500l): Remove.
6315
241db429
JB
63162018-05-22 Joel Brobecker <brobecker@adacore.com>
6317
6318 * ada-lang.c (catch_assert_command): Pass empty string instead
6319 of NULL for excep_string argument.
6320
75d74cca
MR
63212018-05-22 Maciej W. Rozycki <macro@mips.com>
6322
6323 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6324 the width of the requested register exceeds the width of the
6325 `ptrace' data type.
6326
122b53ea
TT
63272018-05-21 Tom Tromey <tom@tromey.com>
6328
6329 * printcmd.c (output_command): Remove.
6330 (output_command_const): Rename to output_command.
6331 * valprint.h (output_command): Rename from output_command_const.
6332 * tracepoint.c (trace_dump_actions): Call output_command.
6333
bc18fbb5
TT
63342018-05-21 Tom Tromey <tom@tromey.com>
6335
6336 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6337 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6338 * ada-lang.h (create_ada_exception_catchpoint): Update.
6339 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6340 std::string.
6341 (create_excep_cond_exprs, ~ada_catchpoint)
6342 (should_stop_exception, print_one_exception)
6343 (print_mention_exception, print_recreate_exception): Update.
6344 (ada_get_next_arg): Remove.
6345 (catch_ada_exception_command_split): Use std::string. Change type
6346 of "excep_string", "cond_string".
6347 (catch_ada_exception_command): Update.
6348 (create_ada_exception_catchpoint): Change type of excep_string.
6349 (ada_exception_sal): Remove excep_string parameter.
6350 (~ada_catchpoint): Remove.
6351
790217f6
TT
63522018-05-21 Tom Tromey <tom@tromey.com>
6353
6354 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6355 cleanup.
6356
6f46ac85
TT
63572018-05-21 Tom Tromey <tom@tromey.com>
6358
6359 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6360 Return unique_xmalloc_ptr.
6361 (print_it_exception): Update.
6362
15b6611c
TT
63632018-05-21 Tom Tromey <tom@tromey.com>
6364
6365 * tracepoint.c (trace_dump_actions): Use std::string.
6366
c0c9f665
TT
63672018-05-21 Tom Tromey <tom@tromey.com>
6368
6369 * symfile.c (reread_symbols): Use std::string for original_name.
6370
22ca247e
TT
63712018-05-21 Tom Tromey <tom@tromey.com>
6372
6373 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6374 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6375 constructor.
6376
184cde75
SM
63772018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6378
6379 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6380 instance to...
6381 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6382 * objfiles.c (get_objfile_bfd_data): Allocate
6383 objfile_per_bfd_storage with obstack_new when allocating on
6384 obstack.
6385
e39db4db
SM
63862018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6387
6388 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6389 OBSTACK_ZALLOC.
6390 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6391 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6392 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6393 (add_pending): Likewise.
6394 (parse_symbol): Likewise.
6395 (parse_partial_symbols): Likewise.
6396 (psymtab_to_symtab_1): Likewise.
6397 (new_psymtab): Likewise.
6398 (elfmdebug_build_psymtabs): Likewise.
6399 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6400 * objfiles.c (get_objfile_bfd_data): Likewise.
6401 (objfile_register_static_link): Likewise.
6402 * psymtab.c (allocate_psymtab): Likewise.
6403 * stabsread.c (read_member_functions): Likewise.
6404 * xcoffread.c (xcoff_end_psymtab): Likewise.
6405
284a0e3c
SM
64062018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6407
6408 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6409 compiler supports std::is_trivially_constructible.
6410 * common/poison.h: Include obstack.h.
6411 (IsMallocable): Define to is_trivially_constructible if the
6412 compiler supports it, define to true_type otherwise.
6413 (xobnew): New.
6414 (XOBNEW): Redefine.
6415 (xobnewvec): New.
6416 (XOBNEWVEC): Redefine.
6417 * gdb_obstack.h (obstack_zalloc): New.
6418 (OBSTACK_ZALLOC): Redefine.
6419 (obstack_calloc): New.
6420 (OBSTACK_CALLOC): Redefine.
6421 (obstack_new): New.
6422 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6423 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6424 gdbarch.c.
6425 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6426 obstack_calloc/obstack_zalloc.
6427 (gdbarch_obstack_zalloc): Remove.
6428 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6429
59f66be3
PW
64302018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6431
6432 * stack.c (backtrace_command_1): Remove useless variable int i.
6433
50c65c2d
PW
64342018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6435
6436 * stack.c (print_frame_info): Fix comment.
6437
7ff8cb8c
TT
64382018-05-18 Tom Tromey <tom@tromey.com>
6439
6440 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6441 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6442 (~dwarf2_per_objfile): Update
6443 (dwarf2_get_dwz_file): Use new.
6444 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6445 unique_ptr.
6446
400174b1
TT
64472018-05-18 Tom Tromey <tom@tromey.com>
6448
6449 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6450 unique_ptr.
6451 * dwarf2read.c (struct dwp_file): Add constructor and
6452 initializers.
6453 (open_and_init_dwp_file): Return a unique_ptr.
6454 (dwarf2_per_objfile, create_dwp_hash_table)
6455 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6456 (lookup_dwo_unit_in_dwp): Update.
6457 (open_and_init_dwp_file, get_dwp_file): Update.
6458
3063847f
TT
64592018-05-18 Tom Tromey <tom@tromey.com>
6460
6461 * dwarf2read.c (dwarf2_per_objfile): Update.
6462 (struct mapped_index): Add initializers.
6463 (dwarf2_read_index): Use new.
6464 (dw2_symtab_iter_init): Update.
6465 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6466 unique_ptr.
6467
d3d02dee
SM
64682018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6469
6470 * dwarf2read.c (mapped_index) <total_size>: Remove.
6471
1d143c36
SM
64722018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6473
6474 * unittests/format_pieces-selftests.c (test_format_specifier):
6475 Add ARI comments.
6476
ce1e8424
TT
64772018-05-18 Tom Tromey <tom@tromey.com>
6478
6479 * c-typeprint.c (maybe_print_hole): New function.
6480 (c_print_type_struct_field_offset): Update.
6481 (c_type_print_base_struct_union): Call maybe_print_hole.
6482
ddfe970e
KS
64832018-05-17 Keith Seitz <keiths@redhat.com>
6484
6485 * breakpoint.c (build_bpstat_chain): New function, moved from
6486 bpstat_stop_status.
6487 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6488 If no stop chain is passed, call build_bpstat_chain to build it.
6489 * breakpoint.h (build_bpstat_chain): Declare.
6490 (bpstat_stop_status): Move documentation here from breakpoint.c.
6491 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6492 build the stop chain and pass it to skip_inline_frames.
6493 Pass this stop chain to bpstat_stop_status.
6494 * inline-frame.c: Include breakpoint.h.
6495 (stopped_by_user_bp_inline_frame): New function.
6496 (skip_inline_frames): Add parameter `stop_chain'.
6497 Move documention to inline-frame.h.
6498 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6499 whether the frame should be elided.
6500 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6501 Add moved documentation and update for new parameter.
6502
b17992c1
SM
65032018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6504
6505 PR cli/14975
6506 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6507 unittests/format_pieces-selftests.c.
6508 * common/format.h (format_piece) <operator==>: New.
6509 (format_pieces) <operator[]>: Remove.
6510 * common/format.c (format_pieces::format_pieces): Handle \e.
6511 * unittests/format_pieces-selftests.c: New.
6512
58f0c718
TT
65132018-05-17 Tom Tromey <tom@tromey.com>
6514
6515 PR symtab/23010:
6516 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6517 (dw2_instantiate_symtab): Add skip_partial parameter.
6518 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6519 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6520 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6521 (dw2_expand_symtabs_matching_one)
6522 (dw2_find_pc_sect_compunit_symtab)
6523 (dw2_debug_names_lookup_symbol)
6524 (dw2_debug_names_expand_symtabs_for_function): Update.
6525 (init_cutu_and_read_dies): Add skip_partial parameter.
6526 (process_psymtab_comp_unit, build_type_psymtabs_1)
6527 (process_skeletonless_type_unit, load_partial_comp_unit)
6528 (psymtab_to_symtab_1): Update.
6529 (load_full_comp_unit): Add skip_partial parameter.
6530 (process_imported_unit_die, dwarf2_read_addr_index)
6531 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6532 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6533 (read_signatured_type): Update.
6534
3e618834
SM
65352018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6536
6537 * value.c (release_value): Remove unused variable.
6538 (record_latest_value): Likewise.
6539 (access_value_history): Likewise.
6540 (preserve_values): Likewise.
6541
fe10fe31
TT
65422018-05-17 Tom Tromey <tom@tromey.com>
6543
6544 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6545 Initialize.
6546
1d761124
MR
65472018-05-16 Maciej W. Rozycki <macro@mips.com>
6548
6549 PR gdb/22286
6550 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6551 Also handle registers whose width is not a multiple of
6552 PTRACE_TYPE_RET.
6553 (linux_nat_trad_target::store_register): Likewise.
6554
06333fea
TT
65552018-05-16 Tom Tromey <tom@tromey.com>
6556
6557 * gdbcore.h (core_bfd): Redefine.
6558 * corelow.c (core_target::close): Update.
6559 (core_target_open): Update.
6560 * progspace.h (struct program_space) <cbfd>: Now a
6561 gdb_bfd_ref_ptr.
6562
921222e2
TT
65632018-05-16 Tom Tromey <tom@tromey.com>
6564
6565 PR cli/19551:
6566 * symfile-add-flags.h (enum symfile_add_flags)
6567 <SYMFILE_NOT_FILENAME>: New constant.
6568 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6569 objfile name from BFD.
6570 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6571 * minidebug.c (find_separate_debug_file_in_section): Put
6572 ".gnu_debugdata" into BFD's file name.
6573
3acb7083
SM
65742018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6575
6576 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6577 Remove.
6578
561a72d4
TC
65792018-05-15 Tamar Christina <tamar.christina@arm.com>
6580
6581 PR binutils/21446
6582 * aarch64-tdep.c (aarch64_analyze_prologue,
6583 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6584 Indicate not interested in errors.
6585
4e6ff0e1
MR
65862018-05-15 Maciej W. Rozycki <macro@mips.com>
6587
6588 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6589 Supply the MIPS_ZERO_REGNUM register.
6590
ea33cd92
MR
65912018-05-15 Maciej W. Rozycki <macro@mips.com>
6592
6593 * mips-tdep.c (mask_address_var): Make variable static.
6594
2d79090e
TT
65952018-05-14 Tom Tromey <tom@tromey.com>
6596
6597 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6598
cf4912ae
AB
65992018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6600
6601 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6602 FXSAVE_ADDR for the mxcsr register.
6603
67e6f569
MF
66042018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6605
6606 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6607
15244507
PA
66082018-05-11 Pedro Alves <palves@redhat.com>
6609
6610 * corelow.c (core_target) <core_target>: No longer inline.
6611 Initialize m_core_gdbarch, m_core_vec and build the section table
6612 here.
6613 <~core_target>: New.
6614 <core_gdbarch, get_core_register_section>: New methods.
6615 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6616 factored out from ...
6617 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6618 (core_ops): Delete.
6619 (sniff_core_bfd): Add gdbarch parameter.
6620 (core_close): Delete, merged into ...
6621 (core_target::close): ... here. Delete self.
6622 (core_close_cleanup): Delete.
6623 (core_target_open): Allocate a core_target on the heap. Use a
6624 unique_ptr instead of a cleanup. Bits moved into the core_target
6625 ctor. Adjust to use core_target methods instead of globals.
6626 (get_core_register_section): Rename to ...
6627 (core_target::get_core_register_section): ... this and adjust.
6628 (struct get_core_registers_cb_data): New.
6629 (get_core_registers_cb): Use it. Use bool.
6630 (core_target::fetch_registers, core_target::files_info)
6631 (core_target::xfer_partial, core_target::read_description)
6632 (core_target::pid_to, core_target::thread_name): Adjust to
6633 reference class fields instead of globals.
6634 * target.h (struct target_ops_deleter, target_ops_up): New.
6635
451953fa
PA
66362018-05-11 Pedro Alves <palves@redhat.com>
6637
6638 * corefile.c (core_file_command): Move to corelow.c.
6639 * corelow.c (the_core_target): Delete.
6640 (core_file_command): Moved from corefile.c. Check exec_bfd
6641 instead of the_core_target. Use target_detach instead of calling
6642 into the_core_target directly.
6643 (maybe_say_no_core_file_now): New.
6644 (core_target::detach): Use it.
6645 (_initialize_corelow): Remove references to the_core_target.
6646 * gdbcore.h (the_core_target): Delete.
6647
e540a5a2 66482018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 6649 Pedro Alves <palves@redhat.com>
e540a5a2
TT
6650
6651 * corefile.c (core_bfd): Remove.
6652 * gdbcore.h (core_bfd): Now a macro.
6653 * progspace.h (struct program_space) <cbfd>: New field.
6654
633cf254
TT
66552018-05-11 Tom Tromey <tom@tromey.com>
6656
6657 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6658 gdb::def_vector.
6659
1a34f210
TT
66602018-05-10 Tom Tromey <tom@tromey.com>
6661
6662 * configure: Rebuild.
6663 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6664
190852c8
JB
66652018-05-10 Joel Brobecker <brobecker@adacore.com>
6666
6667 PR server/23158:
6668 * regformats/regdat.sh: Adjust script, following the addition
6669 of the new expedite_regs parameter to init_target_desc.
6670
8727de56
OJ
66712018-05-10 Omair Javaid <omair.javaid@linaro.org>
6672
6673 PR gdb/23127
6674 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6675 set_gdbarch_significant_addr_bit.
6676 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6677 set_gdbarch_significant_addr_bit.
6678 * utils.c (address_significant): Update to sign extend addr.
6679
37d9e062
MF
66802018-05-09 Max Filippov <jcmvbkbc@gmail.com>
6681
6682 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6683 (xtensa_linux_init_abi): Limit tdep->num_regs by
6684 tdep->num_nopriv_regs.
6685 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6686 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6687 not initialized.
6688
7402fbca
SM
66892018-05-08 Simon Marchi <simon.marchi@ericsson.com>
6690
6691 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6692
8ee22052
AB
66932018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6694
6695 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6696 (I387_MXCSR_INIT_VAL): New constant.
6697 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6698 buffer if it was supplied by the inferior.
6699 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6700 (i387_xsave_get_clear_bv): New function.
6701 (i387_supply_xsave): Only read x87 control registers from the
6702 xsave buffer if the feature is enabled, and the state will have
6703 been written, otherwise, provide a suitable default.
6704 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6705 including x87 control registers. Update control registers if they
6706 have changed from the default value, and mark features as enabled
6707 as required.
6708 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6709
968ae51b
UW
67102018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6711
6712 * spu-tdep.c (info_spu_event_command): Fix output formatting.
6713
aff689d3
TT
67142018-05-07 Tom Tromey <tom@tromey.com>
6715
6716 * configure: Rebuild.
6717 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6718
ce887586
TT
67192018-05-07 Tom Tromey <tom@tromey.com>
6720
6721 PR tdep/20362:
6722 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6723 bit. Use correct value for VDIV.
6724
85e26832
TT
67252018-05-04 Tom Tromey <tom@tromey.com>
6726
6727 * configure: Rebuild.
6728 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6729
449b1ac7
TT
67302018-05-04 Tom Tromey <tom@tromey.com>
6731
6732 * linux-record.c (record_linux_system_call) <case
6733 RECORD_SYS_RECVFROM>: Add "break".
6734
15c9ffd6
TT
67352018-05-04 Tom Tromey <tom@tromey.com>
6736
6737 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6738 Add missing "break".
6739 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6740 Add missing "break".
6741
e3829d13
TT
67422018-05-04 Tom Tromey <tom@tromey.com>
6743
6744 * rs6000-tdep.c (ppc_process_record_op4)
6745 (ppc_process_record_op63): Add fall-through comment.
6746
da0e1563
TT
67472018-05-04 Tom Tromey <tom@tromey.com>
6748
6749 * i386-tdep.c (i386_process_record): Add fall-through comment.
6750
0019cd49
TT
67512018-05-04 Tom Tromey <tom@tromey.com>
6752
6753 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6754 comment.
6755
565e0eda
TT
67562018-05-04 Tom Tromey <tom@tromey.com>
6757
6758 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6759 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6760 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6761 comment.
6762 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6763 comment.
6764 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6765 comment.
6766
621846f4
TT
67672018-05-04 Tom Tromey <tom@tromey.com>
6768
6769 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6770
86a73007
TT
67712018-05-04 Tom Tromey <tom@tromey.com>
6772
6773 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6774 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6775 * symfile.c (section_is_mapped): Fix fall-through comment.
6776 * stabsread.c (define_symbol, read_member_functions): Fix
6777 fall-through comment.
6778 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6779 comment.
6780 * remote.c (remote_wait_as): Fix fall-through comment.
6781 * p-exp.y (yylex): Fix fall-through comment.
6782 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6783 comment.
6784 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6785 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6786 * jv-exp.y (yylex): Fix fall-through comment.
6787 * go-exp.y (lex_one_token): Fix fall-through comment.
6788 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6789 fall-through comment.
6790 * f-exp.y (yylex): Fix fall-through comment.
6791 * dwarf2read.c (process_die): Fix fall-through comments.
6792 * dbxread.c (process_one_symbol): Fix fall-through comment.
6793 * d-exp.y (lex_one_token): Fix fall-through comment.
6794 * cp-name-parser.y (yylex): Fix fall-through comment.
6795 * coffread.c (coff_symtab_read): Fix fall-through comment.
6796 * c-exp.y (lex_one_token): Fix fall-through comment.
6797 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6798 comment.
6799 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6800 comment.
6801
56bcdbea
TT
68022018-05-04 Tom Tromey <tom@tromey.com>
6803
6804 PR python/22730:
6805 * NEWS: Mention gdb.execute change.
6806 * gdbcmd.h (execute_control_command): Don't declare.
6807 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6808 execute_control_commands, execute_control_commands_to_string.
6809 * cli/cli-script.h (execute_control_commands)
6810 (execute_control_commands_to_string): Declare.
6811 (execute_control_command): Add from_tty parameter.
6812 * cli/cli-script.c (execute_control_commands)
6813 (execute_control_commands_to_string): New functions.
6814 (execute_user_command): Use execute_control_commands.
6815 (execute_control_command_1): Add "from_tty" parameter. Update.
6816 (execute_control_command): Likewise.
6817
a913fffb
TT
68182018-05-04 Tom Tromey <tom@tromey.com>
6819
6820 PR python/22731:
6821 * NEWS: Mention that breakpoint commands are writable.
6822 * python/py-breakpoint.c (bppy_set_commands): New function.
6823 (breakpoint_object_getset) <"commands">: Use it.
6824
60b3cef2
TT
68252018-05-04 Tom Tromey <tom@tromey.com>
6826
6827 * tracepoint.c (actions_command): Update.
6828 * mi/mi-cmd-break.c (mi_command_line_array)
6829 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6830 (mi_read_next_line): Remove.
6831 (mi_cmd_break_commands): Update.
6832 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6833 function_view.
6834 * cli/cli-script.c (get_command_line): Update.
6835 (process_next_line): Use function_view. Constify.
6836 (recurse_read_control_structure, read_command_lines)
6837 (read_command_lines_1): Change argument types to function_view.
6838 (do_define_command, document_command): Update.
6839 * breakpoint.h (check_tracepoint_command): Don't declare.
6840 * breakpoint.c (check_tracepoint_command): Remove.
6841 (commands_command_1, create_tracepoint_from_upload): Update.
6842
7a2c85f2
TT
68432018-05-04 Tom Tromey <tom@tromey.com>
6844
6845 PR gdb/11750:
6846 * cli/cli-script.h (enum command_control_type) <define_control>:
6847 New constant.
6848 * cli/cli-script.c (multi_line_command_p): Handle define_control.
6849 (build_command_line, execute_control_command_1)
6850 (process_next_line): Likewise.
6851 (do_define_command): New function, extracted from define_command.
6852 (define_command): Use it.
6853
295dc222
TT
68542018-05-04 Tom Tromey <tom@tromey.com>
6855
6856 * tracepoint.c (actions_command): Update.
6857 * cli/cli-script.h (read_command_lines): Update.
6858 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6859 (MAX_TMPBUF): Remove define.
6860 (define_command): Use string_printf.
6861 (document_command): Likewise.
6862 * breakpoint.c (commands_command_1): Update.
6863
1263a9d5
TT
68642018-05-04 Tom Tromey <tom@tromey.com>
6865
6866 * top.c (execute_command): Update.
6867 * cli/cli-script.h (print_command_lines): Now varargs.
6868 * cli/cli-script.c (print_command_lines): Now varargs.
6869 (execute_control_command_1) <case while_control, case if_control>:
6870 Update.
6871
12973681
TT
68722018-05-04 Tom Tromey <tom@tromey.com>
6873
6874 * tracepoint.c (all_tracepoint_actions): Rename from
6875 all_tracepoint_actions_and_cleanup. Change return type.
6876 (actions_command, encode_actions_1, encode_actions)
6877 (trace_dump_actions, tdump_command): Update.
6878 * remote.c (remote_download_command_source): Update.
6879 * python/python.c (gdbpy_eval_from_control_command)
6880 (python_command, python_interactive_command): Update.
6881 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6882 * guile/guile.c (guile_command)
6883 (gdbscm_eval_from_control_command, guile_command): Update.
6884 * compile/compile.c (compile_code_command)
6885 (compile_print_command, compile_to_object): Update.
6886 * cli/cli-script.h (struct command_lines_deleter): New.
6887 (counted_command_line): New typedef.
6888 (struct command_line): Add constructor, destructor.
6889 <body_list>: Remove.
6890 <body_list_0, body_list_1>: New members.
6891 (command_line_up): Remove typedef.
6892 (read_command_lines, read_command_lines_1, get_command_line):
6893 Update.
6894 (copy_command_lines): Don't declare.
6895 * cli/cli-script.c (build_command_line): Use "new".
6896 (get_command_line): Return counted_command_line.
6897 (print_command_lines, execute_user_command)
6898 (execute_control_command_1, while_command, if_command): Update.
6899 (realloc_body_list): Remove.
6900 (process_next_line, recurse_read_control_structure): Update.
6901 (read_command_lines, read_command_lines_1): Return counted_command_line.
6902 (free_command_lines): Use "delete".
6903 (copy_command_lines): Remove.
6904 (define_command, document_command, show_user_1): Update.
6905 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
6906 a counted_command_line.
6907 * breakpoint.h (counted_command_line): Remove typedef.
6908 (breakpoint_set_commands): Update.
6909 * breakpoint.c (check_no_tracepoint_commands)
6910 (validate_commands_for_breakpoint): Update.
6911 (breakpoint_set_commands): Change commands to be a
6912 counted_command_line.
6913 (commands_command_1, update_dprintf_command_list)
6914 (create_tracepoint_from_upload): Update.
6915
e2fc72e2
TT
69162018-05-04 Tom Tromey <tom@tromey.com>
6917
6918 * cli/cli-decode.h (cmd_list_element): New constructor.
6919 (~cmd_list_element): New destructor.
6920 (struct cmd_list_element): Add initializers.
6921 * cli/cli-decode.c (do_add_cmd): Use "new".
6922 (delete_cmd): Use "delete".
6923
a3b60e45
JK
69242018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6925 Pedro Alves <palves@redhat.com>
6926
6927 PR breakpoints/19806 and support for PR external/20207.
6928 * NEWS: Mention Aarch64 watchpoint improvements.
6929 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
6930 watchpoints and PR external/20207 watchpoints.
6931 * nat/aarch64-linux-hw-point.c
6932 (kernel_supports_any_contiguous_range): New.
6933 (aarch64_watchpoint_offset): New.
6934 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
6935 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
6936 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
6937 (aarch64_align_watchpoint): New parameters aligned_offset_p and
6938 next_addr_orig_p. Support PR external/20207 watchpoints.
6939 (aarch64_downgrade_regs): New.
6940 (aarch64_dr_state_insert_one_point): New parameters offset and
6941 addr_orig.
6942 (aarch64_dr_state_remove_one_point): Likewise.
6943 (aarch64_handle_breakpoint): Update caller.
6944 (aarch64_handle_aligned_watchpoint): Likewise.
6945 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
6946 aligned_offset.
6947 (aarch64_linux_set_debug_regs): Remove const from state. Call
6948 aarch64_downgrade_regs.
6949 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
6950 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
6951 (DR_CONTROL_MASK): ... this.
6952 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
6953 (unsigned int aarch64_watchpoint_offset): New prototype.
6954 (aarch64_linux_set_debug_regs): Remove const from state.
6955 * utils.c (align_up, align_down): Move to ...
6956 * common/common-utils.c (align_up, align_down): ... here.
6957 * utils.h (align_up, align_down): Move to ...
6958 * common/common-utils.h (align_up, align_down): ... here.
6959
05bc7456
JB
69602018-05-04 Joel Brobecker <brobecker@adacore.com>
6961
6962 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
6963 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
6964 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
6965 Re-implement to match the ABI as summarized in GCC's
6966 gcc/config/sparc/sparc.c. All callers updated.
6967 (sparc32_store_arguments): Remove assertion.
6968
2f433492
TT
69692018-05-04 Tom Tromey <tom@tromey.com>
6970
6971 * printcmd.c: Don't include tui.h.
6972 (decode_format): Use skip_spaces.
6973
9be2ae8f
TT
69742018-05-04 Tom Tromey <tom@tromey.com>
6975
6976 PR gdb/22619:
6977 * printcmd.c (last_count): New global.
6978 (x_command): Use saved count when repeating.
6979
f0b3976b
TT
69802018-05-04 Tom Tromey <tom@tromey.com>
6981
6982 * nto-procfs.c (do_closedir_cleanup): Remove.
6983 (procfs_pidlist): Use gdb_dir_up.
6984 * procfs.c (do_closedir_cleanup): Remove.
6985 (proc_update_threads): Use gdb_dir_up.
6986 * common/filestuff.h (struct gdb_dir_deleter): New.
6987 (gdb_dir_up): New typedef.
6988
862d101a
TT
69892018-05-04 Tom Tromey <tom@tromey.com>
6990
6991 * ada-lang.c (print_mention_exception): Use std::string.
6992
cb7de75e
TT
69932018-05-04 Tom Tromey <tom@tromey.com>
6994
6995 * ada-lang.c (create_excep_cond_exprs): Update.
6996 (ada_exception_catchpoint_cond_string): Use std::string.
6997
49d83361
TT
69982018-05-04 Tom Tromey <tom@tromey.com>
6999
7000 * ada-lang.c (xget_renaming_scope): Return std::string.
7001 (old_renaming_is_invisible): Update.
7002
ade72a34
TT
70032018-05-04 Tom Tromey <tom@tromey.com>
7004
7005 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7006 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7007
2be4d7f0
UW
70082018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7009
7010 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7011
69b6ecb0
TT
70122018-05-04 Tom Tromey <tom@tromey.com>
7013
7014 * remote.c (remote_query_supported_append): Change type.
7015 (remote_check_symbols): Update.
7016
bf27f0e2
PP
70172018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7018
7019 PR gdb/11420
7020 * configure.ac: Prepend libpython.
7021 * python/python-config.py: Likewise.
7022 * configure: Regenerate.
7023
4ea17de8
SM
70242018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7025
7026 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7027
bd732259
PA
70282018-05-03 Pedro Alves <palves@redhat.com>
7029
7030 * s390-linux-nat.c
7031 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7032 override. Write 'true' instead of '1'.
7033 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7034 declaration.
7035
d9f719f1
PA
70362018-05-02 Pedro Alves <palves@redhat.com>
7037
7038 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7039 add_inf_child_target.
7040 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7041 add_inf_child_target.
7042 * aix-thread.c (aix_thread_target_info): New.
7043 (aix_thread_target) <shortname, longname, doc>: Delete.
7044 <info>: New.
7045 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7046 add_inf_child_target.
7047 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7048 add_inf_child_target.
7049 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7050 add_inf_child_target.
7051 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7052 add_inf_child_target.
7053 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7054 add_inf_child_target.
7055 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7056 add_inf_child_target.
7057 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7058 add_inf_child_target.
7059 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7060 add_inf_child_target.
7061 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7062 add_inf_child_target.
7063 * bfd-target.c (target_bfd_target_info): New.
7064 (target_bfd) <shortname, longname, doc>: Delete.
7065 <info>: New.
7066 * bsd-kvm.c (bsd_kvm_target_info): New.
7067 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7068 <info>: New.
7069 (bsd_kvm_target::open): Rename to ...
7070 (bsd_kvm_target_open): ... this. Adjust.
7071 * bsd-uthread.c (bsd_uthread_target_info): New.
7072 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7073 <info>: New.
7074 * corefile.c (core_file_command): Adjust.
7075 * corelow.c (core_target_info): New.
7076 (core_target) <shortname, longname, doc>: Delete.
7077 <info>: New.
7078 (core_target::open): Rename to ...
7079 (core_target_open): ... this. Adjust.
7080 * ctf.c (ctf_target_info): New.
7081 (ctf_target) <shortname, longname, doc>: Delete.
7082 <info>: New.
7083 (ctf_target::open): Rename to ...
7084 (ctf_target_open): ... this.
7085 (_initialize_ctf): Adjust.
7086 * exec.c (exec_target_info): New.
7087 (exec_target) <shortname, longname, doc>: Delete.
7088 <info>: New.
7089 (exec_target::open): Rename to ...
7090 (exec_target_open): ... this.
7091 * gdbcore.h (core_target_open): Declare.
7092 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7093 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7094 add_inf_child_target.
7095 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7096 add_inf_child_target.
7097 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7098 add_inf_child_target.
7099 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7100 add_inf_child_target.
7101 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7102 add_inf_child_target.
7103 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7104 add_inf_child_target.
7105 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7106 add_inf_child_target.
7107 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7108 add_inf_child_target.
7109 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7110 add_inf_child_target.
7111 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7112 add_inf_child_target.
7113 * inf-child.c (inf_child_target_info): New.
7114 (inf_child_target::info): New.
7115 (inf_child_open_target): Remove 'target' parameter. Use
7116 get_native_target instead.
7117 (inf_child_target::open): Delete.
7118 (add_inf_child_target): New.
7119 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7120 Delete.
7121 <info>: New.
7122 (add_inf_child_target): Declare.
7123 (inf_child_open_target): Declare.
7124 * linux-thread-db.c (thread_db_target_info): New.
7125 (thread_db_target) <shortname, longname, doc>: Delete.
7126 <info>: New.
7127 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7128 add_inf_child_target.
7129 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7130 add_inf_child_target.
7131 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7132 add_inf_child_target.
7133 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7134 add_inf_child_target.
7135 * make-target-delegates (print_class): Adjust.
7136 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7137 add_inf_child_target.
7138 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7139 add_inf_child_target.
7140 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7141 add_inf_child_target.
7142 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7143 add_inf_child_target.
7144 * nto-procfs.c (nto_native_target_info): New.
7145 (nto_procfs_target_native) <shortname, longname, doc>:
7146 Delete.
7147 <info>: New.
7148 (nto_procfs_target_info): New.
7149 (nto_procfs_target_procfs) <shortname, longname, doc>:
7150 Delete.
7151 <info>: New.
7152 (init_procfs_targets): Adjust.
7153 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7154 add_inf_child_target.
7155 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7156 add_inf_child_target.
7157 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7158 add_inf_child_target.
7159 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7160 add_inf_child_target.
7161 * ravenscar-thread.c (ravenscar_target_info): New.
7162 (ravenscar_thread_target) <shortname, longname, doc>:
7163 Delete.
7164 <info>: New.
7165 * record-btrace.c (record_btrace_target_info):
7166 (record_btrace_target) <shortname, longname, doc>: Delete.
7167 <info>: New.
7168 (record_btrace_target::open): Rename to ...
7169 (record_btrace_target_open): ... this. Adjust.
7170 * record-full.c (record_longname, record_doc): New.
7171 (record_full_base_target) <shortname, longname, doc>: Delete.
7172 <info>: New.
7173 (record_full_target_info): New.
7174 (record_full_target): <shortname>: Delete.
7175 <info>: New.
7176 (record_full_core_open_1, record_full_open_1): Update comments.
7177 (record_full_base_target::open): Rename to ...
7178 (record_full_open): ... this.
7179 (cmd_record_full_restore): Update.
7180 (_initialize_record_full): Update.
7181 * remote-sim.c (remote_sim_target_info): New.
7182 (gdbsim_target) <shortname, longname, doc>: Delete.
7183 <info>: New.
7184 (gdbsim_target::open): Rename to ...
7185 (gdbsim_target_open): ... this.
7186 (_initialize_remote_sim): Adjust.
7187 * remote.c (remote_doc): New.
7188 (remote_target_info): New.
7189 (remote_target) <shortname, longname, doc>: Delete.
7190 <info>: New.
7191 (extended_remote_target_info): New.
7192 (extended_remote_target) <shortname, longname, doc>: Delete.
7193 <info>: New.
7194 (remote_target::open_1): Make static. Adjust.
7195 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7196 * s390-linux-nat.c (_initialize_s390_nat): Use
7197 add_inf_child_target.
7198 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7199 add_inf_child_target.
7200 * sol-thread.c (thread_db_target_info): New.
7201 (sol_thread_target) <shortname, longname, doc>: Delete.
7202 <info>: New.
7203 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7204 add_inf_child_target.
7205 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7206 add_inf_child_target.
7207 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7208 add_inf_child_target.
7209 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7210 add_inf_child_target.
7211 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7212 add_inf_child_target.
7213 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7214 add_inf_child_target.
7215 * spu-linux-nat.c (_initialize_spu_nat): Use
7216 add_inf_child_target.
7217 * spu-multiarch.c (spu_multiarch_target_info): New.
7218 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7219 <info>: New.
7220 * target-delegates.c: Regenerate.
7221 * target.c: Include <unordered_map>.
7222 (target_ops_p): Delete.
7223 (DEF_VEC_P(target_ops_p)): Delete.
7224 (target_factories): New.
7225 (test_target_info): New.
7226 (test_target_ops::info): New.
7227 (open_target): Adjust to use target_factories.
7228 (add_target_with_completer): Rename to ...
7229 (add_target): ... this. Change prototype. Register target_info
7230 and open callback in target_factories. Register target_info in
7231 command context instead of target_ops.
7232 (add_target): Delete old implementation.
7233 (add_deprecated_target_alias): Change prototype. Adjust.
7234 (the_native_target): New.
7235 (set_native_target, get_native_target): New.
7236 (find_default_run_target): Use the_native_target.
7237 (find_attach_target, find_run_target): Simplify.
7238 (target_ops::open): Delete.
7239 (dummy_target_info): New.
7240 (dummy_target::shortname, dummy_target::longname)
7241 (dummy_target::doc): Delete.
7242 (dummy_target::info): New.
7243 (debug_target::shortname, debug_target::longname)
7244 (debug_target::doc): Delete.
7245 (debug_target::info): New.
7246 * target.h (struct target_info): New.
7247 (target_ops::~target_ops): Add comment.
7248 (target_ops::info): New.
7249 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7250 longer virtual. Implement in terms of target_info.
7251 (set_native_target, get_native_target): Declare.
7252 (target_open_ftype): New.
7253 (add_target, add_target_with_completer)
7254 (add_deprecated_target_alias): Change prototype.
7255 (test_target) <shortname, longname, doc>: Delete.
7256 <info>: New.
7257 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7258 add_inf_child_target.
7259 * tracefile-tfile.c (tfile_target_info): New.
7260 (tfile_target) <shortname, longname, doc>: Delete.
7261 <info>: New.
7262 (tfile_target::open): Rename to ...
7263 (tfile_target_open): ... this.
7264 (_initialize_tracefile_tfile): Adjust.
7265 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7266 add_inf_child_target.
7267 * windows-nat.c (_initialize_windows_nat): Use
7268 add_inf_child_target.
7269 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7270 add_inf_child_target.
7271
135340af
PA
72722018-05-02 Pedro Alves <palves@redhat.com>
7273
7274 * linux-nat.h (linux_nat_target) <low_new_thread,
7275 low_delete_thread, low_new_fork, low_forget_process,
7276 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7277 New virtual methods.
7278 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7279 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7280 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7281 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7282 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7283 Delete.
7284 * linux-fork.c (delete_fork): Adjust to call low method.
7285 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7286 (linux_nat_new_fork, linux_nat_forget_process_hook)
7287 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7288 (linux_nat_status_is_event):
7289 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7290 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7291 to call low method.
7292 (sigtrap_is_event): Rename to ...
7293 (linux_nat_target::low_status_is_event): ... this.
7294 (linux_nat_set_status_is_event): Delete.
7295 (save_stop_reason, linux_nat_wait_1)
7296 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7297 low methods.
7298 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7299 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7300 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7301 (linux_nat_set_prepare_to_resume): Delete.
7302 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7303 low virtual methods.
7304 * amd64-linux-nat.c: Likewise.
7305 * arm-linux-nat.c: Likewise.
7306 * i386-linux-nat.c: Likewise.
7307 * ia64-linux-nat.c: Likewise.
7308 * mips-linux-nat.c: Likewise.
7309 * ppc-linux-nat.c: Likewise.
7310 * s390-linux-nat.c: Likewise.
7311 * sparc64-linux-nat.c: Likewise.
7312 * x86-linux-nat.c: Likewise.
7313 * x86-linux-nat.h: Include "nat/x86-linux.h".
7314 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7315 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7316 Override methods.
7317
57810aa7
PA
73182018-05-02 Pedro Alves <palves@redhat.com>
7319
7320 * target.h (target_ops)
7321 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7322 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7323 stopped_by_watchpoint, have_continuable_watchpoint,
7324 stopped_data_address, watchpoint_addr_within_range,
7325 can_accel_watchpoint_condition, can_run, thread_alive,
7326 has_all_memory, has_memory, has_stack, has_registers,
7327 has_execution, can_async_p, is_async_p, supports_non_stop,
7328 always_non_stop_p, can_execute_reverse, supports_multi_process,
7329 supports_enable_disable_tracepoint,
7330 supports_disable_randomization, supports_string_tracing,
7331 supports_evaluation_of_breakpoint_conditions,
7332 can_run_breakpoint_commands, filesystem_is_local,
7333 can_download_tracepoint, get_trace_state_variable_value,
7334 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7335 record_is_replaying, record_will_replay,
7336 augmented_libraries_svr4_read>: Adjust to return bool.
7337 * aarch64-linux-nat.c: All implementations adjusted.
7338 * aix-thread.c: All implementations adjusted.
7339 * arm-linux-nat.c: All implementations adjusted.
7340 * breakpoint.c: All implementations adjusted.
7341 * bsd-kvm.c: All implementations adjusted.
7342 * bsd-uthread.c: All implementations adjusted.
7343 * corelow.c: All implementations adjusted.
7344 * ctf.c: All implementations adjusted.
7345 * darwin-nat.c: All implementations adjusted.
7346 * darwin-nat.h: All implementations adjusted.
7347 * exec.c: All implementations adjusted.
7348 * fbsd-nat.c: All implementations adjusted.
7349 * fbsd-nat.h: All implementations adjusted.
7350 * gnu-nat.c: All implementations adjusted.
7351 * gnu-nat.h: All implementations adjusted.
7352 * go32-nat.c: All implementations adjusted.
7353 * ia64-linux-nat.c: All implementations adjusted.
7354 * inf-child.c: All implementations adjusted.
7355 * inf-child.h: All implementations adjusted.
7356 * inf-ptrace.c: All implementations adjusted.
7357 * inf-ptrace.h: All implementations adjusted.
7358 * linux-nat.c: All implementations adjusted.
7359 * linux-nat.h: All implementations adjusted.
7360 * mips-linux-nat.c: All implementations adjusted.
7361 * nto-procfs.c: All implementations adjusted.
7362 * ppc-linux-nat.c: All implementations adjusted.
7363 * procfs.c: All implementations adjusted.
7364 * ravenscar-thread.c: All implementations adjusted.
7365 * record-btrace.c: All implementations adjusted.
7366 * record-full.c: All implementations adjusted.
7367 * remote-sim.c: All implementations adjusted.
7368 * remote.c: All implementations adjusted.
7369 * s390-linux-nat.c: All implementations adjusted.
7370 * sol-thread.c: All implementations adjusted.
7371 * spu-multiarch.c: All implementations adjusted.
7372 * target-delegates.c: All implementations adjusted.
7373 * target.c: All implementations adjusted.
7374 * target.h: All implementations adjusted.
7375 * tracefile-tfile.c: All implementations adjusted.
7376 * tracefile.c: All implementations adjusted.
7377 * tracefile.h: All implementations adjusted.
7378 * windows-nat.c: All implementations adjusted.
7379 * x86-linux-nat.h: All implementations adjusted.
7380 * x86-nat.h: All implementations adjusted.
7381
ad6a4e2d
PA
73822018-05-02 Pedro Alves <palves@redhat.com>
7383
7384 * make-target-delegates (scan_target_h): Don't trim lines here.
7385 Replace sequences of tabs and/or whitespace with a single
7386 whitespace.
7387 (top level, parsing methods): Trim each line before processing it
7388 here.
7389
f6ac5f3d
PA
73902018-05-02 Pedro Alves <palves@redhat.com>
7391 John Baldwin <jhb@freebsd.org>
7392
7393 * target.h (enum strata) <debug_stratum>: New.
7394 (struct target_ops) <all delegation methods>: Replace by C++
7395 virtual methods, and drop "to_" prefix. All references updated
7396 throughout.
7397 <to_shortname, to_longname, to_doc, to_data,
7398 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7399 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7400 virtual methods. All references updated throughout.
7401 <can_attach, supports_terminal_ours, can_create_inferior,
7402 get_thread_control_capabilities, attach_no_wait>: New
7403 virtual methods.
7404 <insert_breakpoint, remove_breakpoint>: Now
7405 TARGET_DEFAULT_NORETURN methods.
7406 <info_proc>: Now returns bool.
7407 <to_magic>: Delete.
7408 (OPS_MAGIC): Delete.
7409 (current_target): Delete. All references replaced by references
7410 to ...
7411 (target_stack): ... this. New.
7412 (target_shortname, target_longname): Adjust.
7413 (target_can_run): Now a function declaration.
7414 (default_child_has_all_memory, default_child_has_memory)
7415 (default_child_has_stack, default_child_has_registers)
7416 (default_child_has_execution): Remove target_ops parameter.
7417 (complete_target_initialization): Delete.
7418 (memory_breakpoint_target): New template class.
7419 (test_target_ops): Refactor as a C++ class with virtual methods.
7420 * make-target-delegates (NAME_PART): Tighten.
7421 (POINTER_PART, CP_SYMBOL): New.
7422 (SIMPLE_RETURN_PART): Reimplement.
7423 (VEC_RETURN_PART): Expect less.
7424 (RETURN_PART, VIRTUAL_PART): New.
7425 (METHOD): Adjust to C++ virtual methods.
7426 (scan_target_h): Remove reference to C99.
7427 (dname): Output "target_ops::" prefix.
7428 (write_function_header): Adjust to output a C++ class method.
7429 (write_declaration): New.
7430 (write_delegator): Adjust to output a C++ class method.
7431 (tdname): Output "dummy_target::" prefix.
7432 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7433 method.
7434 (tdefault_names, debug_names): Delete.
7435 (return_types, tdefaults, styles, argtypes_array): New.
7436 (top level): All methods are delegators.
7437 (print_class): New.
7438 (top level): Print dummy_target and debug_target classes.
7439 * target-delegates.c: Regenerate.
7440 * target-debug.h (target_debug_print_enum_info_proc_what)
7441 (target_debug_print_thread_control_capabilities)
7442 (target_debug_print_thread_info_p): New.
7443 * target.c (dummy_target): Delete.
7444 (the_dummy_target, the_debug_target): New.
7445 (target_stack): Now extern.
7446 (set_targetdebug): Push/unpush debug target.
7447 (default_child_has_all_memory, default_child_has_memory)
7448 (default_child_has_stack, default_child_has_registers)
7449 (default_child_has_execution): Remove target_ops parameter.
7450 (complete_target_initialization): Delete.
7451 (add_target_with_completer): No longer call
7452 complete_target_initialization.
7453 (target_supports_terminal_ours): Use regular delegation.
7454 (update_current_target): Delete.
7455 (push_target): No longer check magic number. Don't call
7456 update_current_target.
7457 (unpush_target): Don't call update_current_target.
7458 (target_is_pushed): No longer check magic number.
7459 (target_require_runnable): Skip for all stratums over
7460 process_stratum.
7461 (target_ops::info_proc): New.
7462 (target_info_proc): Use find_target_at and
7463 find_default_run_target.
7464 (target_supports_disable_randomization): Use regular delegation.
7465 (target_get_osdata): Use find_target_at.
7466 (target_ops::open, target_ops::close, target_ops::can_attach)
7467 (target_ops::attach, target_ops::can_create_inferior)
7468 (target_ops::create_inferior, target_ops::can_run)
7469 (target_can_run): New.
7470 (default_fileio_target): Use regular delegation.
7471 (target_ops::fileio_open, target_ops::fileio_pwrite)
7472 (target_ops::fileio_pread, target_ops::fileio_fstat)
7473 (target_ops::fileio_close, target_ops::fileio_unlink)
7474 (target_ops::fileio_readlink): New.
7475 (target_fileio_open_1, target_fileio_unlink)
7476 (target_fileio_readlink): Always call the target method. Handle
7477 FILEIO_ENOSYS.
7478 (return_zero, return_zero_has_execution): Delete.
7479 (init_dummy_target): Delete.
7480 (dummy_target::dummy_target, dummy_target::shortname)
7481 (dummy_target::longname, dummy_target::doc)
7482 (debug_target::debug_target, debug_target::shortname)
7483 (debug_target::longname, debug_target::doc): New.
7484 (target_supports_delete_record): Use regular delegation.
7485 (setup_target_debug): Delete.
7486 (maintenance_print_target_stack): Skip debug_stratum.
7487 (initialize_targets): Instantiate the_dummy_target and
7488 the_debug_target.
7489 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7490 use target_stack.
7491 (target_auxv_search, fprint_target_auxv): Adjust.
7492 (info_auxv_command): Adjust to use target_stack.
7493 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7494 * exceptions.c (print_flush): Handle a NULL target_stack.
7495 * regcache.c (target_ops_no_register): Refactor as class with
7496 virtual methods.
7497
7498 * exec.c (exec_target): New class.
7499 (exec_ops): Now an exec_target.
7500 (exec_open, exec_close_1, exec_get_section_table)
7501 (exec_xfer_partial, exec_files_info, exec_has_memory)
7502 (exec_make_note_section): Refactor as exec_target methods.
7503 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7504 Delete.
7505 (exec_target::find_memory_regions): New.
7506 (_initialize_exec): Don't call init_exec_ops.
7507 * gdbcore.h (exec_file_clear): Delete.
7508
7509 * corefile.c (core_target): Delete.
7510 (core_file_command): Adjust.
7511 * corelow.c (core_target): New class.
7512 (the_core_target): New.
7513 (core_close): Remove target_ops parameter.
7514 (core_close_cleanup): Adjust.
7515 (core_target::close): New.
7516 (core_open, core_detach, get_core_registers, core_files_info)
7517 (core_xfer_partial, core_thread_alive, core_read_description)
7518 (core_pid_to_str, core_thread_name, core_has_memory)
7519 (core_has_stack, core_has_registers, core_info_proc): Rework as
7520 core_target methods.
7521 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7522 (_initialize_corelow): Initialize the_core_target.
7523 * gdbcore.h (core_target): Delete.
7524 (the_core_target): New.
7525
7526 * ctf.c: (ctf_target): New class.
7527 (ctf_ops): Now a ctf_target.
7528 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7529 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7530 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7531 methods.
7532 (init_ctf_ops): Delete.
7533 (_initialize_ctf): Don't call it.
7534 * tracefile-tfile.c (tfile_target): New class.
7535 (tfile_ops): Now a tfile_target.
7536 (tfile_open, tfile_close, tfile_files_info)
7537 (tfile_get_tracepoint_status, tfile_trace_find)
7538 (tfile_fetch_registers, tfile_xfer_partial)
7539 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7540 Refactor as tfile_target methods.
7541 (tfile_xfer_partial_features): Remove target_ops parameter.
7542 (init_tfile_ops): Delete.
7543 (_initialize_tracefile_tfile): Don't call it.
7544 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7545 (tracefile_has_stack, tracefile_has_registers)
7546 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7547 tracefile_target methods.
7548 (init_tracefile_ops): Delete.
7549 (tracefile_target::tracefile_target): New.
7550 * tracefile.h: Include "target.h".
7551 (tracefile_target): New class.
7552 (init_tracefile_ops): Delete.
7553
7554 * spu-multiarch.c (spu_multiarch_target): New class.
7555 (spu_ops): Now a spu_multiarch_target.
7556 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7557 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7558 (spu_search_memory, spu_mourn_inferior): Refactor as
7559 spu_multiarch_target methods.
7560 (init_spu_ops): Delete.
7561 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7562 complete_target_initialization.
7563
7564 * ravenscar-thread.c (ravenscar_thread_target): New class.
7565 (ravenscar_ops): Now a ravenscar_thread_target.
7566 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7567 (ravenscar_thread_alive, ravenscar_pid_to_str)
7568 (ravenscar_fetch_registers, ravenscar_store_registers)
7569 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7570 (ravenscar_stopped_by_hw_breakpoint)
7571 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7572 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7573 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7574 methods.
7575 (init_ravenscar_thread_ops): Delete.
7576 (_initialize_ravenscar): Remove references to
7577 init_ravenscar_thread_ops and complete_target_initialization.
7578
7579 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7580 (bsd_uthread_target): New class.
7581 (bsd_uthread_ops): Now a bsd_uthread_target.
7582 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7583 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7584 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7585 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7586 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7587 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7588 (bsd_uthread_target): Delete function.
7589 (_initialize_bsd_uthread): Remove reference to
7590 complete_target_initialization.
7591
7592 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7593 (target_bfd): ... this new class.
7594 (target_bfd_xfer_partial, target_bfd_get_section_table)
7595 (target_bfd_close): Refactor as target_bfd methods.
7596 (target_bfd::~target_bfd): New.
7597 (target_bfd_reopen): Adjust.
7598 (target_bfd::close): New.
7599
7600 * record-btrace.c (record_btrace_target): New class.
7601 (record_btrace_ops): Now a record_btrace_target.
7602 (record_btrace_open, record_btrace_stop_recording)
7603 (record_btrace_disconnect, record_btrace_close)
7604 (record_btrace_async, record_btrace_info)
7605 (record_btrace_insn_history, record_btrace_insn_history_range)
7606 (record_btrace_insn_history_from, record_btrace_call_history)
7607 (record_btrace_call_history_range)
7608 (record_btrace_call_history_from, record_btrace_record_method)
7609 (record_btrace_is_replaying, record_btrace_will_replay)
7610 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7611 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7612 (record_btrace_store_registers, record_btrace_prepare_to_store)
7613 (record_btrace_to_get_unwinder)
7614 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7615 (record_btrace_commit_resume, record_btrace_wait)
7616 (record_btrace_stop, record_btrace_can_execute_reverse)
7617 (record_btrace_stopped_by_sw_breakpoint)
7618 (record_btrace_supports_stopped_by_sw_breakpoint)
7619 (record_btrace_stopped_by_hw_breakpoint)
7620 (record_btrace_supports_stopped_by_hw_breakpoint)
7621 (record_btrace_update_thread_list, record_btrace_thread_alive)
7622 (record_btrace_goto_begin, record_btrace_goto_end)
7623 (record_btrace_goto, record_btrace_stop_replaying_all)
7624 (record_btrace_execution_direction)
7625 (record_btrace_prepare_to_generate_core)
7626 (record_btrace_done_generating_core): Refactor as
7627 record_btrace_target methods.
7628 (init_record_btrace_ops): Delete.
7629 (_initialize_record_btrace): Remove reference to
7630 init_record_btrace_ops.
7631 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7632 the execution_direction global.
7633 (record_full_base_target, record_full_target)
7634 (record_full_core_target): New classes.
7635 (record_full_ops): Now a record_full_target.
7636 (record_full_core_ops): Now a record_full_core_target.
7637 (record_full_target::detach, record_full_target::disconnect)
7638 (record_full_core_target::disconnect)
7639 (record_full_target::mourn_inferior, record_full_target::kill):
7640 New.
7641 (record_full_open, record_full_close, record_full_async): Refactor
7642 as methods of the record_full_base_target class.
7643 (record_full_resume, record_full_commit_resume): Refactor
7644 as methods of the record_full_target class.
7645 (record_full_wait, record_full_stopped_by_watchpoint)
7646 (record_full_stopped_data_address)
7647 (record_full_stopped_by_sw_breakpoint)
7648 (record_full_supports_stopped_by_sw_breakpoint)
7649 (record_full_stopped_by_hw_breakpoint)
7650 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7651 methods of the record_full_base_target class.
7652 (record_full_store_registers, record_full_xfer_partial)
7653 (record_full_insert_breakpoint, record_full_remove_breakpoint):
7654 Refactor as methods of the record_full_target class.
7655 (record_full_can_execute_reverse, record_full_get_bookmark)
7656 (record_full_goto_bookmark, record_full_execution_direction)
7657 (record_full_record_method, record_full_info, record_full_delete)
7658 (record_full_is_replaying, record_full_will_replay)
7659 (record_full_goto_begin, record_full_goto_end, record_full_goto)
7660 (record_full_stop_replaying): Refactor as methods of the
7661 record_full_base_target class.
7662 (record_full_core_resume, record_full_core_kill)
7663 (record_full_core_fetch_registers)
7664 (record_full_core_prepare_to_store)
7665 (record_full_core_store_registers, record_full_core_xfer_partial)
7666 (record_full_core_insert_breakpoint)
7667 (record_full_core_remove_breakpoint)
7668 (record_full_core_has_execution): Refactor
7669 as methods of the record_full_core_target class.
7670 (record_full_base_target::supports_delete_record): New.
7671 (init_record_full_ops): Delete.
7672 (init_record_full_core_ops): Delete.
7673 (record_full_save): Refactor as method of the
7674 record_full_base_target class.
7675 (_initialize_record_full): Remove references to
7676 init_record_full_ops and init_record_full_core_ops.
7677
7678 * remote.c (remote_target, extended_remote_target): New classes.
7679 (remote_ops): Now a remote_target.
7680 (extended_remote_ops): Now an extended_remote_target.
7681 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7682 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7683 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7684 (remote_pass_signals, remote_set_syscall_catchpoint)
7685 (remote_program_signals, )
7686 (remote_thread_always_alive): Remove target_ops parameter.
7687 (remote_thread_alive, remote_thread_name)
7688 (remote_update_thread_list, remote_threads_extra_info)
7689 (remote_static_tracepoint_marker_at)
7690 (remote_static_tracepoint_markers_by_strid)
7691 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7692 (remote_open): Refactor as methods of remote_target.
7693 (extended_remote_open, extended_remote_detach)
7694 (extended_remote_attach, extended_remote_post_attach):
7695 (extended_remote_supports_disable_randomization)
7696 (extended_remote_create_inferior): : Refactor as method of
7697 extended_remote_target.
7698 (remote_set_permissions, remote_open_1, remote_detach)
7699 (remote_follow_fork, remote_follow_exec, remote_disconnect)
7700 (remote_resume, remote_commit_resume, remote_stop)
7701 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7702 (remote_terminal_ours, remote_wait, remote_fetch_registers)
7703 (remote_prepare_to_store, remote_store_registers)
7704 (remote_flash_erase, remote_flash_done, remote_files_info)
7705 (remote_kill, remote_mourn, remote_insert_breakpoint)
7706 (remote_remove_breakpoint, remote_insert_watchpoint)
7707 (remote_watchpoint_addr_within_range)
7708 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7709 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7710 (remote_supports_stopped_by_sw_breakpoint)
7711 (remote_stopped_by_hw_breakpoint)
7712 (remote_supports_stopped_by_hw_breakpoint)
7713 (remote_stopped_by_watchpoint, remote_stopped_data_address)
7714 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7715 (remote_verify_memory): Refactor as methods of remote_target.
7716 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7717 parameter.
7718 (remote_xfer_partial, remote_get_memory_xfer_limit)
7719 (remote_search_memory, remote_rcmd, remote_memory_map)
7720 (remote_pid_to_str, remote_get_thread_local_address)
7721 (remote_get_tib_address, remote_read_description): Refactor as
7722 methods of remote_target.
7723 (remote_target::fileio_open, remote_target::fileio_pwrite)
7724 (remote_target::fileio_pread, remote_target::fileio_close): New.
7725 (remote_hostio_readlink, remote_hostio_fstat)
7726 (remote_filesystem_is_local, remote_can_execute_reverse)
7727 (remote_supports_non_stop, remote_supports_disable_randomization)
7728 (remote_supports_multi_process, remote_supports_cond_breakpoints)
7729 (remote_supports_enable_disable_tracepoint)
7730 (remote_supports_string_tracing)
7731 (remote_can_run_breakpoint_commands, remote_trace_init)
7732 (remote_download_tracepoint, remote_can_download_tracepoint)
7733 (remote_download_trace_state_variable, remote_enable_tracepoint)
7734 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7735 (remote_trace_start, remote_get_trace_status)
7736 (remote_get_tracepoint_status, remote_trace_stop)
7737 (remote_trace_find, remote_get_trace_state_variable_value)
7738 (remote_save_trace_data, remote_get_raw_trace_data)
7739 (remote_set_disconnected_tracing, remote_core_of_thread)
7740 (remote_set_circular_trace_buffer, remote_traceframe_info)
7741 (remote_get_min_fast_tracepoint_insn_len)
7742 (remote_set_trace_buffer_size, remote_set_trace_notes)
7743 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7744 (remote_disable_btrace, remote_teardown_btrace)
7745 (remote_read_btrace, remote_btrace_conf)
7746 (remote_augmented_libraries_svr4_read, remote_load)
7747 (remote_pid_to_exec_file, remote_can_do_single_step)
7748 (remote_execution_direction, remote_thread_handle_to_thread_info):
7749 Refactor as methods of remote_target.
7750 (init_remote_ops, init_extended_remote_ops): Delete.
7751 (remote_can_async_p, remote_is_async_p, remote_async)
7752 (remote_thread_events, remote_upload_tracepoints)
7753 (remote_upload_trace_state_variables): Refactor as methods of
7754 remote_target.
7755 (_initialize_remote): Remove references to init_remote_ops and
7756 init_extended_remote_ops.
7757
7758 * remote-sim.c (gdbsim_target): New class.
7759 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7760 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7761 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7762 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7763 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7764 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7765 Refactor as methods of gdbsim_target.
7766 (gdbsim_ops): Now a gdbsim_target.
7767 (init_gdbsim_ops): Delete.
7768 (gdbsim_cntrl_c): Adjust.
7769 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7770
7771 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7772 (the_amd64_linux_nat_target): New.
7773 (amd64_linux_fetch_inferior_registers)
7774 (amd64_linux_store_inferior_registers): Refactor as methods of
7775 amd64_linux_nat_target.
7776 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7777 * i386-linux-nat.c: Don't include "linux-nat.h".
7778 (i386_linux_nat_target): New class.
7779 (the_i386_linux_nat_target): New.
7780 (i386_linux_fetch_inferior_registers)
7781 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7782 as methods of i386_linux_nat_target.
7783 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7784 * inf-child.c (inf_child_ops): Delete.
7785 (inf_child_fetch_inferior_registers)
7786 (inf_child_store_inferior_registers): Delete.
7787 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7788 methods of inf_child_target.
7789 (inf_child_target::supports_terminal_ours)
7790 (inf_child_target::terminal_init)
7791 (inf_child_target::terminal_inferior)
7792 (inf_child_target::terminal_ours_for_output)
7793 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7794 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7795 New.
7796 (inf_child_open, inf_child_disconnect, inf_child_close)
7797 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7798 (inf_child_post_startup_inferior, inf_child_can_run)
7799 (inf_child_pid_to_exec_file): Refactor as methods of
7800 inf_child_target.
7801 (inf_child_follow_fork): Delete.
7802 (inf_child_target::can_create_inferior)
7803 (inf_child_target::can_attach): New.
7804 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7805 (inf_child_target::has_stack, inf_child_target::has_registers)
7806 (inf_child_target::has_execution): New.
7807 (inf_child_fileio_open, inf_child_fileio_pwrite)
7808 (inf_child_fileio_pread, inf_child_fileio_fstat)
7809 (inf_child_fileio_close, inf_child_fileio_unlink)
7810 (inf_child_fileio_readlink, inf_child_use_agent)
7811 (inf_child_can_use_agent): Refactor as methods of
7812 inf_child_target.
7813 (return_zero, inf_child_target): Delete.
7814 (inf_child_target::inf_child_target): New.
7815 * inf-child.h: Include "target.h".
7816 (inf_child_target): Delete function prototype.
7817 (inf_child_target): New class.
7818 (inf_child_open_target, inf_child_mourn_inferior)
7819 (inf_child_maybe_unpush_target): Delete.
7820 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7821 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7822 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7823 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7824 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7825 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7826 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7827 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7828 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7829 methods of inf_ptrace_target.
7830 (inf_ptrace_target): Delete function.
7831 * inf-ptrace.h: Include "inf-child.h".
7832 (inf_ptrace_target): Delete function declaration.
7833 (inf_ptrace_target): New class.
7834 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7835 * linux-nat.c (linux_target): New.
7836 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7837 (linux_nat_target::~linux_nat_target): New.
7838 (linux_child_post_attach, linux_child_post_startup_inferior)
7839 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7840 (linux_child_remove_fork_catchpoint)
7841 (linux_child_insert_vfork_catchpoint)
7842 (linux_child_remove_vfork_catchpoint)
7843 (linux_child_insert_exec_catchpoint)
7844 (linux_child_remove_exec_catchpoint)
7845 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7846 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7847 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7848 (linux_nat_stopped_data_address)
7849 (linux_nat_stopped_by_sw_breakpoint)
7850 (linux_nat_supports_stopped_by_sw_breakpoint)
7851 (linux_nat_stopped_by_hw_breakpoint)
7852 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7853 (linux_nat_kill, linux_nat_mourn_inferior)
7854 (linux_nat_xfer_partial, linux_nat_thread_alive)
7855 (linux_nat_update_thread_list, linux_nat_pid_to_str)
7856 (linux_nat_thread_name, linux_child_pid_to_exec_file)
7857 (linux_child_static_tracepoint_markers_by_strid)
7858 (linux_nat_is_async_p, linux_nat_can_async_p)
7859 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7860 (linux_nat_supports_multi_process)
7861 (linux_nat_supports_disable_randomization, linux_nat_async)
7862 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
7863 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
7864 (linux_nat_fileio_open, linux_nat_fileio_readlink)
7865 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
7866 methods of linux_nat_target.
7867 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
7868 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
7869 parameter.
7870 (check_stopped_by_watchpoint): Adjust.
7871 (linux_xfer_partial): Delete.
7872 (linux_target_install_ops, linux_target, linux_nat_add_target):
7873 Delete.
7874 (linux_nat_target::linux_nat_target): New.
7875 * linux-nat.h: Include "inf-ptrace.h".
7876 (linux_nat_target): New.
7877 (linux_target, linux_target_install_ops, linux_nat_add_target):
7878 Delete function declarations.
7879 (linux_target): Declare global.
7880 * linux-thread-db.c (thread_db_target): New.
7881 (thread_db_target::thread_db_target): New.
7882 (thread_db_ops): Delete.
7883 (the_thread_db_target): New.
7884 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
7885 (thread_db_update_thread_list, thread_db_pid_to_str)
7886 (thread_db_extra_thread_info)
7887 (thread_db_thread_handle_to_thread_info)
7888 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
7889 (thread_db_resume): Refactor as methods of thread_db_target.
7890 (init_thread_db_ops): Delete.
7891 (_initialize_thread_db): Remove reference to init_thread_db_ops.
7892 * x86-linux-nat.c: Don't include "linux-nat.h".
7893 (super_post_startup_inferior): Delete.
7894 (x86_linux_nat_target::~x86_linux_nat_target): New.
7895 (x86_linux_child_post_startup_inferior)
7896 (x86_linux_read_description, x86_linux_enable_btrace)
7897 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
7898 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
7899 methods of x86_linux_nat_target.
7900 (x86_linux_create_target): Delete. Bits folded ...
7901 (x86_linux_add_target): ... here. Now takes a linux_nat_target
7902 pointer.
7903 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
7904 (x86_linux_nat_target): New class.
7905 (x86_linux_create_target): Delete.
7906 (x86_linux_add_target): Now takes a linux_nat_target pointer.
7907 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
7908 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
7909 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
7910 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
7911 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
7912 make extern.
7913 (x86_use_watchpoints): Delete.
7914 * x86-nat.h: Include "breakpoint.h" and "target.h".
7915 (x86_use_watchpoints): Delete.
7916 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
7917 (x86_stopped_by_watchpoint, x86_stopped_data_address)
7918 (x86_insert_watchpoint, x86_remove_watchpoint)
7919 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
7920 (x86_stopped_by_hw_breakpoint): New declarations.
7921 (x86_nat_target): New template class.
7922
7923 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
7924 (the_ppc_linux_nat_target): New.
7925 (ppc_linux_fetch_inferior_registers)
7926 (ppc_linux_can_use_hw_breakpoint)
7927 (ppc_linux_region_ok_for_hw_watchpoint)
7928 (ppc_linux_ranged_break_num_registers)
7929 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
7930 (ppc_linux_insert_mask_watchpoint)
7931 (ppc_linux_remove_mask_watchpoint)
7932 (ppc_linux_can_accel_watchpoint_condition)
7933 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
7934 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
7935 (ppc_linux_watchpoint_addr_within_range)
7936 (ppc_linux_masked_watch_num_registers)
7937 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
7938 (ppc_linux_read_description): Refactor as methods of
7939 ppc_linux_nat_target.
7940 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
7941
7942 * procfs.c (procfs_xfer_partial): Delete forward declaration.
7943 (procfs_target): New class.
7944 (the_procfs_target): New.
7945 (procfs_target): Delete function.
7946 (procfs_auxv_parse, procfs_attach, procfs_detach)
7947 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
7948 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
7949 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
7950 (procfs_create_inferior, procfs_update_thread_list)
7951 (procfs_thread_alive, procfs_pid_to_str)
7952 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
7953 (procfs_stopped_data_address, procfs_insert_watchpoint)
7954 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
7955 (proc_find_memory_regions, procfs_info_proc)
7956 (procfs_make_note_section): Refactor as methods of procfs_target.
7957 (_initialize_procfs): Adjust.
7958 * sol-thread.c (sol_thread_target): New class.
7959 (sol_thread_ops): Now a sol_thread_target.
7960 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
7961 (sol_thread_fetch_registers, sol_thread_store_registers)
7962 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
7963 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
7964 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
7965 (init_sol_thread_ops): Delete.
7966 (_initialize_sol_thread): Adjust. Remove references to
7967 init_sol_thread_ops and complete_target_initialization.
7968
7969 * windows-nat.c (windows_nat_target): New class.
7970 (windows_fetch_inferior_registers)
7971 (windows_store_inferior_registers, windows_resume, windows_wait)
7972 (windows_attach, windows_detach, windows_pid_to_exec_file)
7973 (windows_files_info, windows_create_inferior)
7974 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
7975 (windows_close, windows_pid_to_str, windows_xfer_partial)
7976 (windows_get_tib_address, windows_get_ada_task_ptid)
7977 (windows_thread_name, windows_thread_alive): Refactor as
7978 windows_nat_target methods.
7979 (do_initial_windows_stuff): Adjust.
7980 (windows_target): Delete function.
7981 (_initialize_windows_nat): Adjust.
7982
7983 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
7984 (darwin_mourn_inferior, darwin_kill_inferior)
7985 (darwin_create_inferior, darwin_attach, darwin_detach)
7986 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
7987 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
7988 (darwin_supports_multi_process): Refactor as darwin_nat_target
7989 methods.
7990 (darwin_resume_to, darwin_files_info): Delete.
7991 (_initialize_darwin_inferior): Rename to ...
7992 (_initialize_darwin_nat): ... this. Adjust to C++ification.
7993 * darwin-nat.h: Include "inf-child.h".
7994 (darwin_nat_target): New class.
7995 (darwin_complete_target): Delete.
7996 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
7997 (darwin_target): New.
7998 (i386_darwin_fetch_inferior_registers)
7999 (i386_darwin_store_inferior_registers): Refactor as methods of
8000 darwin_nat_target.
8001 (darwin_complete_target): Delete, with ...
8002 (_initialize_i386_darwin_nat): ... bits factored out here.
8003
8004 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8005 (the_alpha_linux_nat_target): New.
8006 (alpha_linux_register_u_offset): Refactor as
8007 alpha_linux_nat_target method.
8008 (_initialize_alpha_linux_nat): Adjust.
8009 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8010 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8011 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8012 methods of linux_nat_trad_target.
8013 (linux_trad_target): Delete.
8014 * linux-nat-trad.h (linux_trad_target): Delete function.
8015 (linux_nat_trad_target): New class.
8016 * mips-linux-nat.c (mips_linux_nat_target): New class.
8017 (super_fetch_registers, super_store_registers, super_close):
8018 Delete.
8019 (the_mips_linux_nat_target): New.
8020 (mips64_linux_regsets_fetch_registers)
8021 (mips64_linux_regsets_store_registers)
8022 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8023 (mips_linux_register_u_offset, mips_linux_read_description)
8024 (mips_linux_can_use_hw_breakpoint)
8025 (mips_linux_stopped_by_watchpoint)
8026 (mips_linux_stopped_data_address)
8027 (mips_linux_region_ok_for_hw_watchpoint)
8028 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8029 (mips_linux_close): Refactor as methods of mips_linux_nat.
8030 (_initialize_mips_linux_nat): Adjust to C++ification.
8031
8032 * aix-thread.c (aix_thread_target): New class.
8033 (aix_thread_ops): Now an aix_thread_target.
8034 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8035 (aix_thread_fetch_registers, aix_thread_store_registers)
8036 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8037 (aix_thread_thread_alive, aix_thread_pid_to_str)
8038 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8039 Refactor as methods of aix_thread_target.
8040 (init_aix_thread_ops): Delete.
8041 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8042 and complete_target_initialization.
8043 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8044 (rs6000_nat_target): New class.
8045 (the_rs6000_nat_target): New.
8046 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8047 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8048 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8049 (super_create_inferior): Delete.
8050 (_initialize_rs6000_nat): Adjust to C++ification.
8051
8052 * arm-linux-nat.c (arm_linux_nat_target): New class.
8053 (the_arm_linux_nat_target): New.
8054 (arm_linux_fetch_inferior_registers)
8055 (arm_linux_store_inferior_registers, arm_linux_read_description)
8056 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8057 (arm_linux_remove_hw_breakpoint)
8058 (arm_linux_region_ok_for_hw_watchpoint)
8059 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8060 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8061 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8062 arm_linux_nat_target.
8063 (_initialize_arm_linux_nat): Adjust to C++ification.
8064
8065 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8066 (the_aarch64_linux_nat_target): New.
8067 (aarch64_linux_fetch_inferior_registers)
8068 (aarch64_linux_store_inferior_registers)
8069 (aarch64_linux_child_post_startup_inferior)
8070 (aarch64_linux_read_description)
8071 (aarch64_linux_can_use_hw_breakpoint)
8072 (aarch64_linux_insert_hw_breakpoint)
8073 (aarch64_linux_remove_hw_breakpoint)
8074 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8075 (aarch64_linux_region_ok_for_hw_watchpoint)
8076 (aarch64_linux_stopped_data_address)
8077 (aarch64_linux_stopped_by_watchpoint)
8078 (aarch64_linux_watchpoint_addr_within_range)
8079 (aarch64_linux_can_do_single_step): Refactor as methods of
8080 aarch64_linux_nat_target.
8081 (super_post_startup_inferior): Delete.
8082 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8083
8084 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8085 (the_hppa_linux_nat_target): New.
8086 (hppa_linux_fetch_inferior_registers)
8087 (hppa_linux_store_inferior_registers): Refactor as methods of
8088 hppa_linux_nat_target.
8089 (_initialize_hppa_linux_nat): Adjust to C++ification.
8090
8091 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8092 (the_ia64_linux_nat_target): New.
8093 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8094 (ia64_linux_stopped_data_address)
8095 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8096 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8097 ia64_linux_nat_target methods.
8098 (super_xfer_partial): Delete.
8099 (_initialize_ia64_linux_nat): Adjust to C++ification.
8100
8101 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8102 (the_m32r_linux_nat_target): New.
8103 (m32r_linux_fetch_inferior_registers)
8104 (m32r_linux_store_inferior_registers): Refactor as
8105 m32r_linux_nat_target methods.
8106 (_initialize_m32r_linux_nat): Adjust to C++ification.
8107
8108 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8109 (the_m68k_linux_nat_target): New.
8110 (m68k_linux_fetch_inferior_registers)
8111 (m68k_linux_store_inferior_registers): Refactor as
8112 m68k_linux_nat_target methods.
8113 (_initialize_m68k_linux_nat): Adjust to C++ification.
8114
8115 * s390-linux-nat.c (s390_linux_nat_target): New class.
8116 (the_s390_linux_nat_target): New.
8117 (s390_linux_fetch_inferior_registers)
8118 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8119 (s390_insert_watchpoint, s390_remove_watchpoint)
8120 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8121 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8122 (s390_auxv_parse, s390_read_description): Refactor as methods of
8123 s390_linux_nat_target.
8124 (_initialize_s390_nat): Adjust to C++ification.
8125
8126 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8127 (the_sparc_linux_nat_target): New.
8128 (_initialize_sparc_linux_nat): Adjust to C++ification.
8129 * sparc-nat.c (sparc_fetch_inferior_registers)
8130 (sparc_store_inferior_registers): Remove target_ops parameter.
8131 * sparc-nat.h (sparc_fetch_inferior_registers)
8132 (sparc_store_inferior_registers): Remove target_ops parameter.
8133 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8134 (the_sparc64_linux_nat_target): New.
8135 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8136
8137 * spu-linux-nat.c (spu_linux_nat_target): New class.
8138 (the_spu_linux_nat_target): New.
8139 (spu_child_post_startup_inferior, spu_child_post_attach)
8140 (spu_child_wait, spu_fetch_inferior_registers)
8141 (spu_store_inferior_registers, spu_xfer_partial)
8142 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8143 methods.
8144 (_initialize_spu_nat): Adjust to C++ification.
8145
8146 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8147 (the_tilegx_linux_nat_target): New.
8148 (fetch_inferior_registers, store_inferior_registers):
8149 Refactor as methods.
8150 (_initialize_tile_linux_nat): Adjust to C++ification.
8151
8152 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8153 (the_xtensa_linux_nat_target): New.
8154 (xtensa_linux_fetch_inferior_registers)
8155 (xtensa_linux_store_inferior_registers): Refactor as
8156 xtensa_linux_nat_target methods.
8157 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8158
8159 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8160 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8161 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8162 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8163 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8164 (fbsd_stopped_by_sw_breakpoint)
8165 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8166 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8167 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8168 (fbsd_post_startup_inferior, fbsd_post_attach)
8169 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8170 (fbsd_set_syscall_catchpoint)
8171 (super_xfer_partial, super_resume, super_wait)
8172 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8173 (fbsd_handle_debug_trap): Remove target_ops parameter.
8174 (fbsd_nat_add_target): Delete.
8175 * fbsd-nat.h: Include "inf-ptrace.h".
8176 (fbsd_nat_add_target): Delete.
8177 (USE_SIGTRAP_SIGINFO): Define.
8178 (fbsd_nat_target): New class.
8179
8180 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8181 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8182 (amd64bsd_target): Delete.
8183 * amd64-bsd-nat.h: New file.
8184 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8185 "x86-bsd-nat.h".
8186 (amd64_fbsd_nat_target): New class.
8187 (the_amd64_fbsd_nat_target): New.
8188 (amd64fbsd_read_description): Refactor as method of
8189 amd64_fbsd_nat_target.
8190 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8191 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8192 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8193 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8194 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8195 (i386bsd_target): Delete.
8196 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8197 (i386bsd_fetch_inferior_registers)
8198 (i386bsd_store_inferior_registers): Declare.
8199 (i386_bsd_nat_target): New class.
8200 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8201 (the_i386_fbsd_nat_target): New.
8202 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8203 i386_fbsd_nat_target methods.
8204 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8205 (_initialize_i386fbsd_nat): Adjust to C++ification.
8206 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8207 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8208 (_initialize_x86_bsd_nat): Adjust to C++ification.
8209 * x86-bsd-nat.h: Include "x86-nat.h".
8210 (x86bsd_target): Delete declaration.
8211 (x86bsd_nat_target): New class.
8212
8213 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8214 (the_aarch64_fbsd_nat_target): New.
8215 (aarch64_fbsd_fetch_inferior_registers)
8216 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8217 aarch64_fbsd_nat_target.
8218 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8219 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8220 (the_alpha_bsd_nat_target): New.
8221 (alphabsd_fetch_inferior_registers)
8222 (alphabsd_store_inferior_registers): Refactor as
8223 alpha_bsd_nat_target methods.
8224 (_initialize_alphabsd_nat): Refactor as methods of
8225 alpha_bsd_nat_target.
8226 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8227 (the_amd64_nbsd_nat_target): New.
8228 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8229 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8230 (the_amd64_obsd_nat_target): New.
8231 (_initialize_amd64obsd_nat): Adjust to C++ification.
8232 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8233 (the_arm_fbsd_nat_target): New.
8234 (arm_fbsd_fetch_inferior_registers)
8235 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8236 (_initialize_arm_fbsd_nat): Refactor as methods of
8237 arm_fbsd_nat_target.
8238 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8239 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8240 (the_arm_netbsd_nat_target): New.
8241 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8242 arm_netbsd_nat_target.
8243 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8244 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8245 (the_hppa_nbsd_nat_target): New.
8246 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8247 hppa_nbsd_nat_target methods.
8248 (_initialize_hppanbsd_nat): Adjust to C++ification.
8249 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8250 (the_hppa_obsd_nat_target): New.
8251 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8252 methods of hppa_obsd_nat_target.
8253 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8254 add_target.
8255 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8256 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8257 add_target.
8258 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8259 (_initialize_i386obsd_nat): Use add_target.
8260 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8261 (the_m68k_bsd_nat_target): New.
8262 (m68kbsd_fetch_inferior_registers)
8263 (m68kbsd_store_inferior_registers): Refactor as methods of
8264 m68k_bsd_nat_target.
8265 (_initialize_m68kbsd_nat): Adjust to C++ification.
8266 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8267 (the_mips_fbsd_nat_target): New.
8268 (mips_fbsd_fetch_inferior_registers)
8269 (mips_fbsd_store_inferior_registers): Refactor as methods of
8270 mips_fbsd_nat_target.
8271 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8272 add_target.
8273 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8274 (the_mips_nbsd_nat_target): New.
8275 (mipsnbsd_fetch_inferior_registers)
8276 (mipsnbsd_store_inferior_registers): Refactor as methods of
8277 mips_nbsd_nat_target.
8278 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8279 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8280 (the_mips64_obsd_nat_target): New.
8281 (mips64obsd_fetch_inferior_registers)
8282 (mips64obsd_store_inferior_registers): Refactor as methods of
8283 mips64_obsd_nat_target.
8284 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8285 add_target.
8286 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8287 nbsd_nat_target.
8288 * nbsd-nat.h: Include "inf-ptrace.h".
8289 (nbsd_nat_target): New class.
8290 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8291 (obsd_wait): Refactor as methods of obsd_nat_target.
8292 (obsd_add_target): Delete.
8293 * obsd-nat.h: Include "inf-ptrace.h".
8294 (obsd_nat_target): New class.
8295 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8296 (the_ppc_fbsd_nat_target): New.
8297 (ppcfbsd_fetch_inferior_registers)
8298 (ppcfbsd_store_inferior_registers): Refactor as methods of
8299 ppc_fbsd_nat_target.
8300 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8301 add_target.
8302 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8303 (the_ppc_nbsd_nat_target): New.
8304 (ppcnbsd_fetch_inferior_registers)
8305 (ppcnbsd_store_inferior_registers): Refactor as methods of
8306 ppc_nbsd_nat_target.
8307 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8308 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8309 (the_ppc_obsd_nat_target): New.
8310 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8311 methods of ppc_obsd_nat_target.
8312 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8313 add_target.
8314 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8315 (the_sh_nbsd_nat_target): New.
8316 (shnbsd_fetch_inferior_registers)
8317 (shnbsd_store_inferior_registers): Refactor as methods of
8318 sh_nbsd_nat_target.
8319 (_initialize_shnbsd_nat): Adjust to C++ification.
8320 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8321 (inf_ptrace_xfer_partial): Delete.
8322 (sparc_xfer_partial, sparc_target): Delete.
8323 * sparc-nat.h (sparc_fetch_inferior_registers)
8324 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8325 (sparc_target): Delete function declaration.
8326 (sparc_target): New template class.
8327 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8328 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8329 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8330 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8331 add_target.
8332 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8333 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8334 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8335 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8336 add_target.
8337 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8338 (the_vax_bsd_nat_target): New.
8339 (vaxbsd_fetch_inferior_registers)
8340 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8341 methods.
8342 (_initialize_vaxbsd_nat): Adjust to C++ification.
8343
8344 * bsd-kvm.c (bsd_kvm_target): New class.
8345 (bsd_kvm_ops): Now a bsd_kvm_target.
8346 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8347 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8348 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8349 bsd_kvm_target.
8350 (bsd_kvm_return_one): Delete.
8351 (bsd_kvm_add_target): Adjust to C++ification.
8352
8353 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8354 (nto_procfs_target_procfs): New classes.
8355 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8356 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8357 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8358 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8359 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8360 (procfs_remove_hw_breakpoint, procfs_resume)
8361 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8362 (procfs_kill_inferior, procfs_store_registers)
8363 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8364 as methods of nto_procfs_target.
8365 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8366 (nto_native_ops): Delete.
8367 (procfs_open, procfs_native_open): Delete.
8368 (nto_native_ops): Now an nto_procfs_target_native.
8369 (init_procfs_targets): Adjust to C++ification.
8370 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8371 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8372 Refactor as methods of nto_procfs_target.
8373
8374 * go32-nat.c (go32_nat_target): New class.
8375 (the_go32_nat_target): New.
8376 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8377 (go32_store_registers, go32_xfer_partial, go32_files_info)
8378 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8379 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8380 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8381 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8382 (go32_target): Delete.
8383 (_initialize_go32_nat): Adjust to C++ification.
8384
8385 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8386 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8387 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8388 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8389 gnu_nat_target.
8390 (gnu_target): Delete.
8391 * gnu-nat.h (gnu_target): Delete.
8392 (gnu_nat_target): New class.
8393 * i386-gnu-nat.c (gnu_base_target): New.
8394 (i386_gnu_nat_target): New class.
8395 (the_i386_gnu_nat_target): New.
8396 (_initialize_i386gnu_nat): Adjust to C++ification.
8397
3fffc070
PA
83982018-05-02 Pedro Alves <palves@redhat.com>
8399
8400 * bfd-target.c (target_bfd_xclose): Rename to ...
8401 (target_bfd_close): ... this.
8402 (target_bfd_reopen): Adjust.
8403 * target.c (target_close): Remove references to to_xclose.
8404 * target.h (target_ops::to_xclose): Delete.
8405 (target_ops::to_close): Update comments.
8406
6798487f
PA
84072018-05-02 Pedro Alves <palves@redhat.com>
8408
8409 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8410 "linux-nat.h".
8411 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8412 * inf-ptrace.c (inf_ptrace_register_u_offset)
8413 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8414 (inf_ptrace_store_register, inf_ptrace_store_registers)
8415 (inf_ptrace_trad_target): Move to ...
8416 * linux-nat-trad.c: ... this new file.
8417 * linux-nat-trad.h: New file.
8418 * linux-nat.c (linux_target_install_ops): Make extern.
8419 (linux_trad_target): Delete.
8420 * linux-nat.h (linux_trad_target): Delete declaration.
8421 (linux_target_install_ops): Declare.
8422 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8423 "linux-nat.h".
8424
c1955e17
PA
84252018-05-02 Pedro Alves <palves@redhat.com>
8426
8427 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8428 procfs_target/add_target here.
8429 * procfs.c (procfs_target): Make static.
8430 (_initialize_procfs): Call add_target here.
8431 * procfs.h (struct target_ops): Remove forward declaration.
8432 (procfs_target): Remove declaration.
8433 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8434
b5c8fcb1
PA
84352018-05-02 Pedro Alves <palves@redhat.com>
8436
8437 * procfs.c (procfs_stopped_by_watchpoint)
8438 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8439 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8440 Forward declare.
8441 (procfs_use_watchpoints): Delete, move contents...
8442 (procfs_target): ... here.
8443 * procfs.h (procfs_use_watchpoints): Delete declaration.
8444 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8445 procfs_use_watchpoints.
8446 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8447 procfs_use_watchpoints.
8448
0489430a
TT
84492018-05-02 Tom Tromey <tom@tromey.com>
8450
8451 PR python/20084:
8452 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8453 and var_zuinteger_unlimited.
8454 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8455 and PARAM_ZUINTEGER_UNLIMITED.
8456 (set_parameter_value): Handle var_zuinteger and
8457 var_zuinteger_unlimited.
8458 (add_setshow_generic): Likewise.
8459 (parmpy_init): Likewise.
8460
1632f8ba
DR
84612018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8462
8463 PR rust/23124
8464 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8465 pointer is not null before dereferencing it.
8466
76761936
TT
84672018-04-30 Tom Tromey <tom@tromey.com>
8468
8469 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8470 is_mi_like_p.
8471
2d33446d
TT
84722018-04-30 Tom Tromey <tom@tromey.com>
8473
8474 * breakpoint.c (mention): Remove use of is_mi_like_p.
8475 (print_mention_ranged_breakpoint): Likewise.
8476 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8477 of is_mi_like_p.
8478
f3c6abab
TT
84792018-04-30 Tom Tromey <tom@tromey.com>
8480
8481 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8482
40c03530
TT
84832018-04-30 Tom Tromey <tom@tromey.com>
8484
8485 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8486 (info_spu_event_command): Remove some uses of is_mi_like_p.
8487
2038b7fd
TT
84882018-04-30 Tom Tromey <tom@tromey.com>
8489
8490 * python/py-framefilter.c (py_print_single_arg)
8491 (enumerate_locals, py_print_args, py_print_frame): Remove some
8492 uses of is_mi_like_p.
8493
4904c3c6
TT
84942018-04-30 Tom Tromey <tom@tromey.com>
8495
8496 * ui-out.c: Update.
8497 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8498 * ui-out.h (ui_out::is_mi_like_p): Now const.
8499 (ui_out::do_is_mi_like_p): Now const.
8500 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8501
7c66fffc
TT
85022018-04-30 Tom Tromey <tom@tromey.com>
8503
8504 * varobj.c (varobj_set_visualizer): Use new_reference.
8505 * python/python.c (gdbpy_decode_line): Use new_reference.
8506 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8507 new_reference.
8508
bbfa6f00
TT
85092018-04-30 Tom Tromey <tom@tromey.com>
8510
8511 * varobj.c (install_new_value): Use new_reference.
8512 * value.h (value_incref): Return void. Swap intro comment with
8513 value_decref.
8514 * value.c (set_value_parent): Use new_reference.
8515 (value_incref): Return void. Update intro comment.
8516 (release_value): Use new_reference.
8517 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8518
1831a9f9
TT
85192018-04-30 Tom Tromey <tom@tromey.com>
8520
8521 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8522 * gdb_bfd.h (new_bfd_ref): Remove.
8523 (gdb_bfd_open): Update comment.
8524 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8525 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8526 (gdb_bfd_fdopenr): Use new_reference.
8527 * exec.c (exec_file_attach): Use new_reference.
8528
7c1b5f3d
TT
85292018-04-30 Tom Tromey <tom@tromey.com>
8530
8531 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8532 method.
8533
e11fb955
TT
85342018-04-30 Tom Tromey <tom@tromey.com>
8535
8536 * jit.c (jit_read_code_entry): Use type_align.
8537 * i386-tdep.c (i386_gdbarch_init): Don't call
8538 set_gdbarch_long_long_align_bit.
8539 * gdbarch.sh: Remove long_long_align_bit.
8540 * gdbarch.c, gdbarch.h: Rebuild.
8541 * arc-tdep.c (arc_type_align): New function.
8542 (arc_gdbarch_init): Use arc_type_align. Don't call
8543 set_gdbarch_long_long_align_bit.
8544
2fff16dd
TT
85452018-04-30 Tom Tromey <tom@tromey.com>
8546
8547 * rust-lang.c (rust_type_alignment): Remove.
8548 (rust_composite_type): Use type_align.
8549
6d7bb824
TT
85502018-04-30 Tom Tromey <tom@tromey.com>
8551
8552 * NEWS: Mention Type.align.
8553 * python/py-type.c (typy_get_alignof): New function.
8554 (type_object_getset): Add "alignof".
8555
007e1530
TT
85562018-04-30 Tom Tromey <tom@tromey.com>
8557
8558 PR exp/17095:
8559 * NEWS: Update.
8560 * std-operator.def (UNOP_ALIGNOF): New operator.
8561 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8562 New.
8563 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8564 * c-lang.c (c_op_print_tab): Add alignof.
8565 * c-exp.y (ALIGNOF): New token.
8566 (exp): Add "ALIGNOF" production.
8567 (ident_tokens): Add _Alignof and alignof.
8568
2b4424c3
TT
85692018-04-30 Tom Tromey <tom@tromey.com>
8570
8571 * i386-tdep.c (i386_type_align): New function.
8572 (i386_gdbarch_init): Update.
8573 * gdbarch.sh (type_align): New method.
8574 * gdbarch.c, gdbarch.h: Rebuild.
8575 * arch-utils.h (default_type_align): Declare.
8576 * arch-utils.c (default_type_align): New function.
8577 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8578 (struct type) <align_log2>: New field.
8579 <instance_flags>: Now a bitfield.
8580 (TYPE_RAW_ALIGN): New macro.
8581 (type_align, type_raw_align, set_type_align): Declare.
8582 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8583 functions.
8584 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8585 (get_alignment, maybe_set_alignment): New functions.
8586 (read_structure_type, read_enumeration_type, read_array_type)
8587 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8588 (read_subrange_type, read_base_type): Set type alignment.
8589
d33bc52e
SM
85902018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8591
8592 * dwarf2read.c (read_index_from_section): Use bool.
8593
e28b63a9
FG
85942018-04-29 Fabian Groffen <grobian@gentoo.org>
8595
8596 PR gdb/22950
8597 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8598 with #ifdef.
8599
cd8c76e4
JR
86002018-04-29 John Reiser <jreiser@BitWagon.com>
8601
8602 PR build/22873
8603 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8604 last step, and do it atomically.
8605
476d250e
AO
86062018-04-27 Alexandre Oliva <aoliva@redhat.com>
8607
8608 * compile/compile-c-types.c (convert_int, convert_float):
8609 Update for C FE v1.
8610
6873858b
TT
86112018-04-27 Tom Tromey <tom@tromey.com>
8612
8613 PR rust/22545:
8614 * rust-lang.c (rust_inclusive_range_type_p): New function.
8615 (rust_range): Handle inclusive ranges.
8616 (rust_compute_range): Likewise.
8617 * rust-exp.y (struct rust_op) <inclusive>: New field.
8618 (DOTDOTEQ): New constant.
8619 (range_expr): Add "..=" productions.
8620 (operator_tokens): Add "..=" token.
8621 (ast_range): Add "inclusive" parameter.
8622 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8623 ranges.
8624 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8625 bounds values.
8626 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8627 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8628 Update comments.
8629 * expprint.c (print_subexp_standard): Handle new bounds values.
8630 (dump_subexp_body_standard): Likewise.
8631
632e107b
TT
86322018-04-27 Tom Tromey <tom@tromey.com>
8633
8634 * configure: Rebuild.
8635 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8636 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8637 "OVERRIDE".
8638 (class symbol_needs_eval_context): Likewise.
8639 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8640 (mock_mapped_index::symbol_name_at): Use "override". Remove
8641 "virtual".
8642 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8643 "override".
8644 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8645 * aarch64-tdep.c (instruction_reader::read): Use "override".
8646 (instruction_reader_test::read): Likewise.
8647 * arm-tdep.c (instruction_reader::read): Use "override".
8648 (instruction_reader_thumb::read): Likewise.
8649
b75abf5b
AK
86502018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
8651
8652 PR remote/9665
8653 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8654 instead of remote_send.
8655 (remote_send): Remove.
8656
79188d8d
PA
86572018-04-26 Pedro Alves <palves@redhat.com>
8658
8659 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8660 find_function_start_sal instead of find_pc_line.
8661
f50776aa
PA
86622018-04-26 Pedro Alves <palves@redhat.com>
8663
8664 * breakpoint.c (set_breakpoint_location_function): Handle
8665 mst_data_gnu_ifunc.
8666 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8667 * elfread.c (elf_symtab_read): Give data symbols with
8668 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8669 (elf_rel_plt_read): Update comment.
8670 * linespec.c (convert_linespec_to_sals): Handle
8671 mst_data_gnu_ifunc.
8672 (minsym_found): Handle mst_data_gnu_ifunc.
8673 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8674 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8675 * parse.c (find_minsym_type_and_address): Handle
8676 mst_data_gnu_ifunc.
8677 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8678 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8679 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8680 comment.
8681 <mst_data_gnu_ifunc>: New enumerator.
8682
20944a6e
PA
86832018-04-26 Pedro Alves <palves@redhat.com>
8684
8685 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8686 (lookup_minimal_symbol_by_pc_section): ... this. Replace
8687 'want_trampoline' parameter by a lookup_msym_prefer parameter.
8688 Handle it.
8689 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8690 (lookup_minimal_symbol_by_pc): Adjust.
8691 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8692 (lookup_solib_trampoline_symbol_by_pc): Adjust.
8693 * minsyms.h (lookup_msym_prefer): New enum.
8694 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8695 parameter by a lookup_msym_prefer parameter.
8696
1adeb822
PA
86972018-04-26 Pedro Alves <palves@redhat.com>
8698
8699 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8700 ends in "@plt" instead of looking at the symbol's section.
8701
a0aca7b0
PA
87022018-04-26 Pedro Alves <palves@redhat.com>
8703
8704 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
8705 all references.
8706 (find_pc_partial_function_gnu_ifunc): Rename to ...
8707 (find_pc_partial_function): ... this, and remove references to
8708 'is_gnu_ifunc_p'.
8709 (find_pc_partial_function): Delete old implementation.
8710 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8711
76af0f26
PA
87122018-04-26 Pedro Alves <palves@redhat.com>
8713
8714 * linespec.c (struct bound_minimal_symbol_search_key): New.
8715 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
8716 skip first line if we found a GNU ifunc minimal symbol by name.
8717 (compare_msymbols): Change parameters to work with a destructured
8718 lhs minsym.
8719 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8720 functions.
8721
3467ec66
PA
87222018-04-26 Pedro Alves <palves@redhat.com>
8723
8724 * breakpoint.c (set_breakpoint_location_function): Don't resolve
8725 ifunc targets here. Instead, if we have an ifunc minsym, use its
8726 address/name.
8727 (add_location_to_breakpoint): Store the minsym and the objfile in
8728 the breakpoint location.
8729 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8730 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8731 Record the minsym in the sal.
8732 * symtab.h (symtab_and_line) <msymbol>: New field.
8733
28f4fa4d
PA
87342018-04-26 Pedro Alves <palves@redhat.com>
8735
8736 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8737 unless we actually resolved the ifunc.
8738
ca31ab1d
PA
87392018-04-26 Pedro Alves <palves@redhat.com>
8740
8741 * c-exp.y (variable production): Prefer ifunc minsyms over
8742 regular function symbols.
8743 * symtab.c (find_gnu_ifunc): New function.
8744 * minsyms.h (lookup_msym_prefer): New enum.
8745 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8746 parameter by a lookup_msym_prefer parameter.
8747 * symtab.h (find_gnu_ifunc): New declaration.
8748
8388016d
PA
87492018-04-26 Pedro Alves <palves@redhat.com>
8750
8751 * blockframe.c (find_gnu_ifunc_target_type): New function.
8752 (find_function_type): New.
8753 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8754 return a value with a memory address.
8755 (eval_call): For calls to GNU ifunc functions, try to find the
8756 type of the target function from the type that the resolver
8757 returns.
8758 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8759 symbols.
8760 * infcall.c (find_function_return_type): Delete.
8761 (find_function_addr): Add 'function_type' parameter. For calls to
8762 GNU ifunc functions, try to find the type of the target function
8763 from the type that the resolver returns, and return it via
8764 FUNCTION_TYPE.
8765 (call_function_by_hand_dummy): Adjust to use the function type
8766 returned by find_function_addr.
8767 (find_function_addr): Add 'function_type' parameter and move
8768 description here.
8769 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8770 declarations.
8771
a376e11d
PA
87722018-04-26 Pedro Alves <palves@redhat.com>
8773
8774 * c-exp.y (variable production): Skip finding an alias for ifunc
8775 symbols.
8776
02e169e2
PA
87772018-04-26 Pedro Alves <palves@redhat.com>
8778
8779 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8780
249b5733
PA
87812018-04-25 Pedro Alves <palves@redhat.com>
8782
8783 * infcmd.c (kill_command): Print the pid as string, not the whole
8784 thread's ptid. Add comment. s/has been killed/killed/ in output
8785 message.
8786 * remote.c (remote_detach_1): Print the pid as string, not the
8787 whole thread's ptid.
8788
f67c0c91
SDJ
87892018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8790 Sergio Durigan Junior <sergiodj@redhat.com>
8791 Pedro Alves <palves@redhat.com>
8792
8793 * infcmd.c (kill_command): Print message when inferior has
8794 been killed.
8795 * inferior.c (print_inferior_events): Remove 'static'. Set as
8796 '1'.
8797 (add_inferior): Improve message printed when
8798 'print_inferior_events' is on.
8799 (exit_inferior): Remove message printed when
8800 'print_inferior_events' is on.
8801 (detach_inferior): Improve message printed when
8802 'print_inferior_events' is on.
8803 (initialize_inferiors): Use 'add_inferior_silent' to set
8804 'current_inferior_'.
8805 * inferior.h (print_inferior_events): Declare here as
8806 'extern'.
8807 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8808 '[Detaching...]' messages when 'print_inferior_events' is on.
8809 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8810 as prefix/suffix for messages. Remove periods. Fix erroneous
8811 'Detaching after fork from child...', replace it by '... from
8812 parent...'.
8813 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8814 prefix/suffix when printing 'Detaching...' messages. Print
8815 them when 'print_inferior_events' is on.
8816 * remote.c (remote_detach_1): Print message when detaching
8817 from inferior and '!is_fork_parent'.
8818
e427af18
TT
88192018-04-24 Tom Tromey <tom@tromey.com>
8820
8821 * cli-out.h: Reindent.
8822
05b1d8d6
TT
88232018-04-24 Tom Tromey <tom@tromey.com>
8824
8825 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8826 (cli_ui_out::do_field_string): Use fputs_filtered.
8827 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8828
a95c7dab
TT
88292018-04-23 Tom Tromey <tom@tromey.com>
8830
8831 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8832 gdb::unique_xmalloc_ptr.
8833
458412c3
TT
88342018-04-23 Tom Tromey <tom@tromey.com>
8835
8836 * configure: Rebuild.
8837
db86b02b
RS
88382018-04-22 Rajendra SY <rajendra.sy@gmail.com>
8839
8840 PR gdb/23095
8841 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8842 prepare_for_testing. Set normal_bp to r_debug_state if target
8843 is bsd.
8844
00aecdcf
PA
88452018-04-21 Pedro Alves <palves@redhat.com>
8846 Rajendra SY <rajendra.sy@gmail.com>
8847
8848 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8849 * remote.c (extended_remote_attach): In all-stop mode, mark the
8850 thread as executing.
8851
224608c3
PW
88522018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8853
8854 * thread.c (thread_apply_all_command): Fix comment.
8855 (thread_command): Fix comment.
8856
3b74854b
AH
88572018-04-10 Alan Hayward <alan.hayward@arm.com>
8858
8859 * common/tdesc.h (tdesc_create_feature): Remove xml filename
8860 parameter.
8861 * features/aarch64-core.c (create_feature_aarch64_core):
8862 Regenerate.
8863 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
8864 Likewise.
8865 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
8866 Likewise.
8867 * features/i386/32bit-avx512.c
8868 (create_feature_i386_32bit_avx512): Likewise.
8869 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
8870 Likewise.
8871 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
8872 Likewise.
8873 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
8874 Likewise.
8875 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
8876 Likewise.
8877 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
8878 Likewise.
8879 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
8880 Likewise.
8881 * features/i386/64bit-avx512.c
8882 (create_feature_i386_64bit_avx512): Likewise.
8883 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
8884 Likewise.
8885 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
8886 Likewise.
8887 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
8888 Likewise.
8889 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
8890 Likewise.
8891 * features/i386/64bit-segments.c
8892 (create_feature_i386_64bit_segments): Likewise.
8893 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
8894 Likewise.
8895 * features/i386/x32-core.c
8896 (create_feature_i386_x32_core): Likewise.
8897 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
8898 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
8899 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
8900 * target-descriptions.c: In generated code, don't pass xml
8901 filename.
8902
e98577a9
AH
89032018-04-18 Alan Hayward <alan.hayward@arm.com>
8904
8905 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
8906 (print_xml_feature::visit_post): Likewise.
8907 (print_xml_feature::visit): Likewise.
8908 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
8909 (print_xml_feature): Add new class.
8910 * regformats/regdat.sh: Null xmltarget on feature targets.
8911 * target-descriptions.c (struct target_desc): Add xmltarget.
8912 (maintenance_check_tdesc_xml_convert): Add unittest function.
8913 (tdesc_get_features_xml): Add function to get xml.
8914 (maintenance_check_xml_descriptions): Test xml generation.
8915 * xml-tdesc.c (string_read_description_xml): Add function.
8916 * xml-tdesc.h (string_read_description_xml): Add declaration.
8917
ad7fc756
AH
89182018-04-18 Alan Hayward <alan.hayward@arm.com>
8919
8920 * features/Makefile: Add feature marker to targets with new style
8921 target descriptions.
8922 * regformats/aarch64.dat: Regenerate.
8923 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
8924 * regformats/i386/amd64-avx-linux.dat: Likewise.
8925 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
8926 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
8927 * regformats/i386/amd64-linux.dat: Likewise.
8928 * regformats/i386/amd64-mpx-linux.dat: Likewise.
8929 * regformats/i386/amd64.dat: Likewise.
8930 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
8931 * regformats/i386/i386-avx-linux.dat: Likewise.
8932 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
8933 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
8934 * regformats/i386/i386-linux.dat: Likewise.
8935 * regformats/i386/i386-mmx-linux.dat: Likewise.
8936 * regformats/i386/i386-mpx-linux.dat: Likewise.
8937 * regformats/i386/i386.dat: Likewise.
8938 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
8939 * regformats/i386/x32-avx-linux.dat: Likewise.
8940 * regformats/i386/x32-linux.dat: Likewise.
8941 * regformats/tic6x-c62x-linux.dat: Likewise.
8942 * regformats/tic6x-c64x-linux.dat: Likewise.
8943 * regformats/tic6x-c64xp-linux.dat: Likewise.
8944 * regformats/regdat.sh: Parse feature marker.
8945
d278f585
AH
89462018-04-18 Alan Hayward <alan.hayward@arm.com>
8947
8948 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
8949 (tdesc_osabi_name): Likewise.
8950 * target-descriptions.c (tdesc_architecture_name): Add new
8951 function.
8952 (tdesc_osabi_name): Likewise.
8953
eee8a18d
AH
89542018-04-18 Alan Hayward <alan.hayward@arm.com>
8955
8956 * common/tdesc.c (tdesc_predefined_type): Move to here.
8957 (tdesc_named_type): Likewise.
8958 (tdesc_create_vector): Likewise.
8959 (tdesc_create_struct): Likewise.
8960 (tdesc_set_struct_size): Likewise.
8961 (tdesc_create_union): Likewise.
8962 (tdesc_create_flags): Likewise.
8963 (tdesc_create_enum): Likewise.
8964 (tdesc_add_field): Likewise.
8965 (tdesc_add_typed_bitfield): Likewise.
8966 (tdesc_add_bitfield): Likewise.
8967 (tdesc_add_flag): Likewise.
8968 (tdesc_add_enum_value): Likewise.
8969 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
8970 (struct tdesc_type_vector): Likewise.
8971 (struct tdesc_type_field): Likewise.
8972 (struct tdesc_type_with_fields): Likewise.
8973 (tdesc_create_enum): Add declaration.
8974 (tdesc_add_typed_bitfield): Likewise.
8975 (tdesc_add_enum_value): Likewise.
8976 * target-descriptions.c (tdesc_type_field): Move from here.
8977 (tdesc_type_builtin): Likewise.
8978 (tdesc_type_vector): Likewise.
8979 (tdesc_type_with_fields): Likewise.
8980 (tdesc_predefined_types): Likewise.
8981 (tdesc_named_type): Likewise.
8982 (tdesc_create_vector): Likewise.
8983 (tdesc_create_struct): Likewise.
8984 (tdesc_set_struct_size): Likewise.
8985 (tdesc_create_union): Likewise.
8986 (tdesc_create_flags): Likewise.
8987 (tdesc_create_enum): Likewise.
8988 (tdesc_add_field): Likewise.
8989 (tdesc_add_typed_bitfield): Likewise.
8990 (tdesc_add_bitfield): Likewise.
8991 (tdesc_add_flag): Likewise.
8992 (tdesc_add_enum_value): Likewise.
8993 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
8994 (tdesc_add_typed_bitfield): Likewise.
8995 (tdesc_add_enum_value): Likewise.
8996
82ec9bc7
AH
89972018-04-18 Alan Hayward <alan.hayward@arm.com>
8998
8999 * common/tdesc.c (tdesc_feature::accept): Move to here.
9000 (tdesc_feature::operator==): Likewise.
9001 (tdesc_create_reg): Likewise.
9002 * common/tdesc.h (tdesc_type_kind): Likewise.
9003 (struct tdesc_type): Likewise.
9004 (struct tdesc_feature): Likewise.
9005 * regformats/regdat.sh: Create a feature.
9006 * target-descriptions.c (tdesc_type_kind): Move from here.
9007 (tdesc_type): Likewise.
9008 (tdesc_type_up): Likewise.
9009 (tdesc_feature): Likewise.
9010 (tdesc_create_reg): Likewise.
9011
ea3e7d71
AH
90122018-04-18 Alan Hayward <alan.hayward@arm.com>
9013
9014 * Makefile.in: Add arch/tdesc.c
9015 * common/tdesc.c: New file.
9016 * common/tdesc.h (tdesc_element_visitor): Move to here.
9017 (tdesc_element): Likewise.
9018 (tdesc_reg): Likewise.
9019 (tdesc_reg_up): Likewise.
9020 * regformats/regdef.h (reg): Add offset to constructors.
9021 * target-descriptions.c (tdesc_element_visitor): Move from here.
9022 (tdesc_element): Likewise.
9023 (tdesc_reg): Likewise.
9024 (tdesc_reg_up): Likewise.
9025
bedda9ac
TT
90262018-04-17 Tom Tromey <tom@tromey.com>
9027
9028 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9029 discriminant field.
9030
a037790e
TT
90312018-04-17 Tom Tromey <tom@tromey.com>
9032
9033 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9034
c7dcbf88
AA
90352018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9036
9037 * symtab.c (print_symbol_info): Skip printing filename and line
9038 number when `last' is NULL.
9039 (symtab_symbol_info): Use empty string instead of NULL for first
9040 invocation of print_symbol_info.
9041 (rbreak_command): Pass NULL to `last' parameter of
9042 print_symbol_info.
9043
07d28c77
SM
90442018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9045
9046 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9047 instead of nullptr.
9048
8a3de5e1
PA
90492018-04-16 Pedro Alves <palves@redhat.com>
9050
9051 * MAINTAINERS (sh): Remove.
9052 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9053 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9054 (ALLDEPFILES): Remove sh64-tdep.c.
9055 * NEWS: Mentions that support for SH-5/SH64 is removed.
9056 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9057 (sh*-*-openbsd*): Ditto.
9058 (sh64-*-elf*): Remove.
9059 (sh*): Remove.
9060 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9061 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9062 * sh-tdep.c: No longer include "sh64-tdep.h".
9063 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9064 * sh64-tdep.c, sh64-tdep.h: Remove files.
9065
a2a79012
PA
90662018-04-16 Pedro Alves <palves@redhat.com>
9067
9068 * MAINTAINERS: Remove m88k.
9069 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9070 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9071 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9072 * NEWS: Mention that support for m88k was removed.
9073 * configure.host (m88*-*-*): Remove support.
9074 * configure.nat (m88k-*-*): Remove support.
9075 * configure.tgt (m88*-*-openbsd*): Remove.
9076 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9077
eda4efb1
SM
90782018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9079
9080 * configure.tgt (x86_tobjs): New variable.
9081 (amd64_tobjs, i386_tobjs): Use it.
9082
b744723f
AA
90832018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9084
9085 * symtab.c (print_symbol_info): Precede the symbol definition by
9086 the line number when available.
9087 * NEWS: Advertise this enhancement.
9088
4a4495d6
MM
90892018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9090
9091 * NEWS (New options): announce set/show record btrace cpu.
9092 * btrace.c: Include record-btrace.h.
9093 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9094 the vendor is unknown.
9095 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9096 Maybe overwrite the btrace configuration's cpu.
9097 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9098 (btrace_fetch): Add cpu parameter. Update callers.
9099 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9100 Maybe overwrite the btrace configuration's cpu. Skip enabling
9101 errata workarounds if the vendor is unknown.
9102 * python/py-record-btrace.c: Include record-btrace.h.
9103 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9104 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9105 * record-btrace.c (record_btrace_cpu_state_kind): New.
9106 (record_btrace_cpu): New.
9107 (set_record_btrace_cpu_cmdlist): New.
9108 (record_btrace_get_cpu): New.
9109 (require_btrace_thread, record_btrace_info)
9110 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9111 (cmd_set_record_btrace_cpu_none): New.
9112 (cmd_set_record_btrace_cpu_auto): New.
9113 (cmd_set_record_btrace_cpu): New.
9114 (cmd_show_record_btrace_cpu): New.
9115 (_initialize_record_btrace): Initialize set/show record btrace cpu
9116 commands.
9117 * record-btrace.h (record_btrace_get_cpu): New.
9118
69f90c75
MM
91192018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9120
9121 * record.c (set_record_command): Fix typo in message.
9122
b85310e1
MM
91232018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9124
9125 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9126
1d509aa6
MM
91272018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9128
9129 * infrun.c (process_event_stop_test): Call
9130 gdbarch_in_indirect_branch_thunk.
9131 * gdbarch.sh (in_indirect_branch_thunk): New.
9132 * gdbarch.c: Regenerated.
9133 * gdbarch.h: Regenerated.
9134 * x86-tdep.h: New.
9135 * x86-tdep.c: New.
9136 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9137 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9138 (ALLDEPFILES): Add x86-tdep.c.
9139 * arch-utils.h (default_in_indirect_branch_thunk): New.
9140 * arch-utils.c (default_in_indirect_branch_thunk): New.
9141 * i386-tdep: Include x86-tdep.h.
9142 (i386_in_indirect_branch_thunk): New.
9143 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9144 function.
9145 * amd64-tdep: Include x86-tdep.h.
9146 (amd64_in_indirect_branch_thunk): New.
9147 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9148
b4be9bfd
JK
91492018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9150
9151 PR gdb/23053
9152 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9153 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9154 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9155 regression.
9156
53d7df28
TT
91572018-04-12 Tom Tromey <tom@tromey.com>
9158
9159 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9160 (rust_evaluate_subexp): Likewise.
9161
70b33f19
PA
91622018-04-12 Pedro Alves <palves@redhat.com>
9163
9164 * procfs.c (procfs_detach): Make forward declaration's prototype
9165 match definition's protototype.
9166 (proc_get_LDT_entry): Remove stale do_cleanups call.
9167
436411b1
PA
91682018-04-12 Pedro Alves <palves@redhat.com>
9169
9170 * target.h (target_ops::to_has_exited): Delete.
9171 (target_has_exited): Delete.
9172 * target-delegates.c: Regenerate.
9173
20db9c52
PA
91742018-04-11 Pedro Alves <palves@redhat.com>
9175
9176 * target.c (fileio_fh_t::t): Add comment.
9177 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9178 (target_fileio_close): Handle a NULL target.
9179 (invalidate_fileio_fh): New.
9180 (target_close): Call it.
9181 * remote.c (remote_hostio_send_command): No longer check whether
9182 remote_desc is open.
9183
5ff79300
PA
91842018-04-11 Pedro Alves <palves@redhat.com>
9185
9186 * target.c (fileio_fh_t): Make it a named struct instead of a
9187 typedef.
9188 (fileio_fh_t::is_closed): New method.
9189 (DEF_VEC_O (fileio_fh_t)): Remove.
9190 (fileio_fhandles): Now a std::vector.
9191 (is_closed_fileio_fh): Delete.
9192 (acquire_fileio_fd): Adjust. Rename parameters.
9193 (release_fileio_fd): Adjust.
9194 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9195 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9196 (target_fileio_close): Adjust.
9197
6e22e10d
SM
91982018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9199
9200 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9201 index.
9202
731f534f
PA
92032018-04-10 Pedro Alves <palves@redhat.com>
9204
9205 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9206 (scoped_finish_thread_state): New class.
9207 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9208 cleanup.
9209 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9210 (fetch_inferior_event, normal_stop): Likewise.
9211 * thread.c (finish_thread_state_cleanup): Delete.
9212
d5f4488f
SM
92132018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9214 Pedro Alves <palves@redhat.com>
9215
9216 * value.c: Include "selftest.h" and "common/array-view.h".
9217 (struct range) <operator ==>: New.
9218 (test_ranges_contain): New.
9219 (check_ranges_vector): New.
9220 (test_insert_into_bit_range_vector): New.
9221 (_initialize_values): Register selftests.
9222 * common/array-view.h (operator==, operator!=): New.
9223
b24531ed
SM
92242018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9225
9226 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9227 an iterator.
9228 * inline-frame.c: Include <algorithm>.
9229 (struct inline_state): Add constructor.
9230 (inline_state_s): Remove.
9231 (DEF_VEC_O(inline_state_s)): Remove.
9232 (inline_states): Change type to std::vector.
9233 (find_inline_frame_state): Adjust to std::vector.
9234 (allocate_inline_frame_state): Remove.
9235 (clear_inline_frame_state): Adjust to std::vector.
9236 (skip_inline_frames): Adjust to std::vector.
9237
c252925c
SM
92382018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9239
9240 * tracepoint.h (struct trace_state_variable): Add constructor.
9241 <name>: Change type to std::string.
9242 * tracepoint.c (tsv_s): Remove.
9243 (DEF_VEC_O(tsv_s)): Remove.
9244 (tvariables): Change to std::vector.
9245 (create_trace_state_variable): Adjust to std::vector.
9246 (find_trace_state_variable): Likewise.
9247 (find_trace_state_variable_by_number): Likewise.
9248 (delete_trace_state_variable): Likewise.
9249 (trace_variable_command): Adjust to std::string.
9250 (delete_trace_variable_command): Likewise.
9251 (tvariables_info_1): Adjust to std::vector.
9252 (save_trace_state_variables): Likewise.
9253 (start_tracing): Likewise.
9254 (merge_uploaded_trace_state_variables): Adjust to std::vector
9255 and std::string.
9256 * target.h (struct target_ops)
9257 <to_download_trace_state_variable>: Pass reference to
9258 trace_state_variable.
9259 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9260 * target-delegates.c: Re-generate.
9261 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9262 (mi_tsv_deleted): Likewise.
9263 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9264 * remote.c (remote_download_trace_state_variable): Change
9265 pointer to reference and adjust.
9266 * make-target-delegates (parse_argtypes): Handle references.
9267 (write_function_header): Likewise.
9268 (munge_type): Likewise.
9269
c9638d26
SM
92702018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9271
9272 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9273 string_view-selftests.c.
9274 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9275 testsuite.
9276 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9277 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9278 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9279 * unittests/basic_string_view/element_access/char/1.cc:
9280 Likewise.
9281 * unittests/basic_string_view/element_access/char/empty.cc:
9282 Likewise.
9283 * unittests/basic_string_view/element_access/char/front_back.cc:
9284 Likewise.
9285 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9286 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9287 Likewise.
9288 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9289 Likewise.
9290 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9291 Likewise.
9292 * unittests/basic_string_view/operations/compare/char/1.cc:
9293 Likewise.
9294 * unittests/basic_string_view/operations/compare/char/13650.cc:
9295 Likewise.
9296 * unittests/basic_string_view/operations/copy/char/1.cc:
9297 Likewise.
9298 * unittests/basic_string_view/operations/data/char/1.cc:
9299 Likewise.
9300 * unittests/basic_string_view/operations/find/char/1.cc:
9301 Likewise.
9302 * unittests/basic_string_view/operations/find/char/2.cc:
9303 Likewise.
9304 * unittests/basic_string_view/operations/find/char/3.cc:
9305 Likewise.
9306 * unittests/basic_string_view/operations/find/char/4.cc:
9307 Likewise.
9308 * unittests/basic_string_view/operations/rfind/char/1.cc:
9309 Likewise.
9310 * unittests/basic_string_view/operations/rfind/char/2.cc:
9311 Likewise.
9312 * unittests/basic_string_view/operations/rfind/char/3.cc:
9313 Likewise.
9314 * unittests/basic_string_view/operations/substr/char/1.cc:
9315 Likewise.
9316 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9317 * unittests/string_view-selftests.c: New file.
9318
fdc11678
SM
93192018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9320
9321 * unittests/basic_string_view/capacity/1.cc: New file.
9322 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9323 * unittests/basic_string_view/cons/char/1.cc: New file.
9324 * unittests/basic_string_view/cons/char/2.cc: New file.
9325 * unittests/basic_string_view/cons/char/3.cc: New file.
9326 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9327 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9328 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9329 * unittests/basic_string_view/element_access/char/1.cc: New file.
9330 * unittests/basic_string_view/element_access/char/2.cc: New file.
9331 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9332 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9333 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9334 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9335 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9336 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9337 * unittests/basic_string_view/include.cc: New file.
9338 * unittests/basic_string_view/inserters/char/1.cc: New file.
9339 * unittests/basic_string_view/inserters/char/2.cc: New file.
9340 * unittests/basic_string_view/inserters/char/3.cc: New file.
9341 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9342 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9343 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9344 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9345 * unittests/basic_string_view/literals/types.cc: New file.
9346 * unittests/basic_string_view/literals/values.cc: New file.
9347 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9348 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9349 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9350 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9351 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9352 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9353 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9354 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9355 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9356 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9357 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9358 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9359 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9360 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9361 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9362 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9363 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9364 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9365 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9366 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9367 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9368 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9369 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9370 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9371 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9372 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9373 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9374 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9375 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9376 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9377 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9378 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9379 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9380 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9381 * unittests/basic_string_view/operators/char/2.cc: New file.
9382 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9383 * unittests/basic_string_view/range_access/char/1.cc: New file.
9384 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9385 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9386 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9387 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9388 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9389 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9390 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9391 * unittests/basic_string_view/typedefs.cc: New file.
9392 * unittests/basic_string_view/types/1.cc: New file.
9393
8345c4a2
SM
93942018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9395
9396 * common/gdb_string_view.h: Remove libstdc++ implementation
9397 details, adjust to gdb reality.
9398 * common/gdb_string_view.tcc: Likewise.
9399 * cli/cli-script.c (struct string_view): Remove.
9400 (user_args) <m_args>: Change element type to gdb::string_view.
9401 (user_args::insert_args): Adjust.
9402
7adcdf08
SM
94032018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9404
9405 * common/gdb_string_view.h: New file.
9406 * common/gdb_string_view.tcc: New file.
9407
41260ac2
SM
94082018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9409
9410 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9411 * configure: Re-generate.
9412
0bee6dd4
PA
94132018-04-09 Pedro Alves <palves@redhat.com>
9414
9415 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9416 (set_target_gdbarch): Call
9417 gdb::observers::architecture_changed.notify instead of
9418 observer_notify_architecture_changed.
9419
6f14adc5
SM
94202018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9421
9422 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9423 (do_restore_current_traceframe_cleanup): Remove.
9424 (restore_current_traceframe_cleanup_dtor): Remove.
9425 (make_cleanup_restore_current_traceframe): Remove.
9426 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9427 New.
9428 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9429 * infrun.c (fetch_inferior_event): Use
9430 scoped_restore_current_traceframe.
9431
b2bdb8cf
SM
94322018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9433
9434 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9435 Remove.
9436 <n_allocated_type_units>: Remove.
9437 <all_type_units>: Change to std::vector.
9438 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9439 to std::vector change.
9440 (dwarf2_per_objfile::get_cutu): Likewise.
9441 (dwarf2_per_objfile::get_tu): Likewise.
9442 (create_signatured_type_table_from_index): Likewise.
9443 (create_signatured_type_table_from_debug_names): Likewise.
9444 (dw2_symtab_iter_next): Likewise.
9445 (dw2_print_stats): Likewise.
9446 (dw2_expand_all_symtabs): Likewise.
9447 (dw2_expand_marked_cus): Likewise.
9448 (dw2_debug_names_iterator::next): Likewise.
9449 (dwarf2_initialize_objfile): Likewise.
9450 (add_signatured_type_cu_to_table): Likewise.
9451 (create_all_type_units): Likewise.
9452 (add_type_unit): Likewise.
9453 (struct tu_abbrev_offset): Add constructor.
9454 (build_type_psymtabs_1): Adjust to std::vector change.
9455 (print_tu_stats): Likewise.
9456 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9457 (write_debug_names): Likewise.
9458
b76e467d
SM
94592018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9460
9461 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9462 Make an std::vector.
9463 <n_comp_units>: Remove.
9464 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9465 to std::vector change.
9466 (dwarf2_per_objfile::get_cutu): Likewise.
9467 (dwarf2_per_objfile::get_cu): Likewise.
9468 (create_cus_from_index): Likewise.
9469 (create_addrmap_from_index): Likewise.
9470 (create_addrmap_from_aranges): Likewise.
9471 (dwarf2_read_index): Likewise.
9472 (dw2_find_last_source_symtab): Likewise.
9473 (dw2_map_symtabs_matching_filename): Likewise.
9474 (dw2_symtab_iter_next): Likewise.
9475 (dw2_print_stats): Likewise.
9476 (dw2_expand_all_symtabs): Likewise.
9477 (dw2_expand_symtabs_with_fullname): Likewise.
9478 (dw2_expand_marked_cus): Likewise.
9479 (dw2_map_symbol_filenames): Likewise.
9480 (create_cus_from_debug_names): Likewise.
9481 (dwarf2_read_debug_names): Likewise.
9482 (dw2_debug_names_iterator::next): Likewise.
9483 (dwarf2_initialize_objfile): Likewise.
9484 (set_partial_user): Likewise.
9485 (dwarf2_build_psymtabs_hard): Likewise.
9486 (read_comp_units_from_section): Remove arguments, adjust to
9487 std::vector change.
9488 (create_all_comp_units): Adjust to std::vector and
9489 read_comp_units_from_section changes.
9490 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9491 change.
9492 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9493 (psyms_seen_size): Likewise.
9494 (write_gdbindex): Likewise.
9495 (write_debug_names): Likewise.
9496
12359b5e
SM
94972018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9498
9499 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9500 with dwarf2_per_objfile.
9501 (create_cus_from_index): Likewise.
9502 (create_signatured_type_table_from_index): Likewise.
9503 (dwarf2_read_index): Likewise.
9504 (dwarf2_initialize_objfile): Likewise.
9505 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9506 per_cu rather than get_dwarf2_per_objfile.
9507
ff4c9fec
SM
95082018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9509
9510 * dwarf2read.h (struct signatured_type): Forward declare.
9511 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9512 New methods.
9513 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9514 (dw2_get_cutu): ...this.
9515 (dwarf2_per_objfile::get_cu): Rename from...
9516 (dw2_get_cu): ...this.
9517 (dwarf2_per_objfile::get_tu): New.
9518 (create_addrmap_from_index): Adjust.
9519 (create_addrmap_from_aranges): Adjust.
9520 (dw2_find_last_source_symtab): Adjust.
9521 (dw2_map_symtabs_matching_filename): Adjust.
9522 (dw2_symtab_iter_next): Adjust.
9523 (dw2_print_stats): Adjust.
9524 (dw2_expand_all_symtabs): Adjust.
9525 (dw2_expand_symtabs_with_fullname): Adjust.
9526 (dw2_expand_marked_cus): Adjust.
9527 (dw_expand_symtabs_matching_file_matcher): Adjust.
9528 (dw2_map_symbol_filenames): Adjust.
9529 (dw2_debug_names_iterator::next): Adjust.
9530 (dwarf2_initialize_objfile): Adjust.
9531 (set_partial_user): Adjust.
9532 (dwarf2_build_psymtabs_hard): Adjust.
9533
5ca3fcb6
SM
95342018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9535
9536 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9537 Remove unused variables.
9538 (dw2_map_symtabs_matching_filename): Likewise.
9539 (dwarf2_record_block_ranges): Likewise.
9540 (dwarf2_read_addr_index): Likewise.
9541 (follow_die_offset): Likewise.
9542
b2e586e8
SM
95432018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9544
9545 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9546 to symbol_file_add_main.
9547
7c4e78cf
SM
95482018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9549
9550 PR mi/22299
9551 * mi/mi-console.c (do_fputc_async_safe): New.
9552 (mi_console_file::write_async_safe): New.
9553 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9554 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9555 New.
9556 * ui-file.c (ui_file::putstrn): Adjust call to
9557 fputstrn_unfiltered.
9558 * utils.c (printchar): Replace do_fputs and do_fprintf
9559 parameters by do_fputc.
9560 (fputstr_filtered): Adjust call to printchar.
9561 (fputstr_unfiltered): Likewise.
9562 (fputstrn_filtered): Likewise.
9563 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9564 printchar.
9565 * utils.h (do_fputc_ftype): New typedef.
9566 (fputstrn_unfiltered): Add do_fputc parameter.
9567
5dc026d3
SM
95682018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9569
9570 * regformats/i386/i386-avx.dat: Remove.
9571
c912f608
SM
95722018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9573
9574 PR gdb/22979
9575 * amd64-tdep.c (amd64_none_init_abi): New function.
9576 (amd64_x32_none_init_abi): New function.
9577 (_initialize_amd64_tdep): Register handlers for x86-64 and
9578 x64_32 with GDB_OSABI_NONE.
9579 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9580 GDB_OSABI_NONE osabi.
9581
26540402
SM
95822018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9583
9584 PR gdb/22980
9585 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9586 GDB_OSABI_NONE.
9587 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9588 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9589
9018be22
SM
95902018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9591
9592 * common/byte-vector.h (char_vector): New type.
9593 * target.h (target_read_alloc): Return
9594 gdb::optional<byte_vector>.
9595 (target_read_stralloc): Return gdb::optional<char_vector>.
9596 (target_get_osdata): Return gdb::optional<char_vector>.
9597 * target.c (target_read_alloc_1): Templatize. Replacement
9598 manual memory management with vector.
9599 (target_read_alloc): Change return type, adjust.
9600 (target_read_stralloc): Change return type, adjust.
9601 (target_get_osdata): Change return type, adjust.
9602 * auxv.c (struct auxv_info) <length>: Remove.
9603 <data>: Change type to gdb::optional<byte_vector>.
9604 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9605 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9606 (target_auxv_search): Adjust.
9607 (fprint_target_auxv): Adjust.
9608 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9609 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9610 (linux_make_corefile_notes): Adjust.
9611 * osdata.c (get_osdata): Adjust.
9612 * remote.c (remote_get_threads_with_qxfer): Adjust.
9613 (remote_memory_map): Adjust.
9614 (remote_traceframe_info): Adjust.
9615 (btrace_read_config): Adjust.
9616 (remote_read_btrace): Adjust.
9617 (remote_pid_to_exec_file): Adjust.
9618 * solib-aix.c (solib_aix_get_library_list): Adjust.
9619 * solib-dsbt.c (decode_loadmap): Don't free buf.
9620 (dsbt_get_initial_loadmaps): Adjust.
9621 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9622 * solib-target.c (solib_target_current_sos): Adjust.
9623 * tracepoint.c (sdata_make_value): Adjust.
9624 * xml-support.c (xinclude_start_include): Adjust.
9625 (xml_fetch_content_from_file): Adjust.
9626 * xml-support.h (xml_fetch_another): Change return type.
9627 (xml_fetch_content_from_file): Change return type.
9628 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9629 * xml-tdesc.c (file_read_description_xml): Adjust.
9630 (fetch_available_features_from_target): Change return type.
9631 (target_fetch_description_xml): Adjust.
9632 (target_read_description_xml): Adjust.
9633
14c88955
TT
96342018-04-06 Tom Tromey <tom@tromey.com>
9635
9636 * value.c (~value): Update.
9637 (struct value) <contents>: Now unique_xmalloc_ptr.
9638 (value_contents_bits_eq, allocate_value_contents)
9639 (value_contents_raw, value_contents_all_raw)
9640 (value_contents_for_printing, value_contents_for_printing_const)
9641 (set_value_enclosing_type): Update.
9642
0c7e6dd8
TT
96432018-04-06 Tom Tromey <tom@tromey.com>
9644
9645 * value.c (range_s): Remove typedef, VEC.
9646 (struct range): Add operator<.
9647 (range_lessthan): Remove.
9648 (ranges_contain): Change type.
9649 (~value): Update.
9650 (struct value) <unavailable, optimized_out>: Now std::vector.
9651 (value_entirely_available)
9652 (value_entirely_covered_by_range_vector)
9653 (value_entirely_unavailable, value_entirely_optimized_out):
9654 Update.
9655 (insert_into_bit_range_vector): Change argument type.
9656 (find_first_range_overlap): Likewise.
9657 (struct ranges_and_idx, value_contents_bits_eq)
9658 (require_not_optimized_out, require_available): Update.
9659 (ranges_copy_adjusted): Change argument types.
9660 (value_optimized_out, value_copy, value_fetch_lazy): Update.
9661
2c8331b9
TT
96622018-04-06 Tom Tromey <tom@tromey.com>
9663
9664 * value.c (~value): Update.
9665 (struct value) <parent>: Now a value_ref_ptr.
9666 (value_parent, set_value_parent, value_address, value_copy):
9667 Update.
9668
466ce3ae
TT
96692018-04-06 Tom Tromey <tom@tromey.com>
9670
9671 * value.c (struct value): Add constructor, destructor, and member
9672 initializers.
9673 (allocate_value_lazy, value_decref): Update.
9674
062d818d
TT
96752018-04-06 Tom Tromey <tom@tromey.com>
9676
9677 * value.c (struct value) <released, next>: Remove.
9678 (all_values): Now a std::vector.
9679 (allocate_value_lazy): Update.
9680 (value_next): Remove.
9681 (value_mark, value_free_to_mark, release_value)
9682 (value_release_to_mark): Update.
9683
a6535de1
TT
96842018-04-06 Tom Tromey <tom@tromey.com>
9685
9686 * value.h (fetch_subexp_value, value_release_to_mark): Update.
9687 (free_value_chain): Remove.
9688 * value.c (free_value_chain): Remove.
9689 (value_release_to_mark): Return a std::vector.
9690 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9691 std::vector.
9692 (check_condition): Update.
9693 * eval.c (fetch_subexp_value): Change "val_chain" to a
9694 std::vector.
9695 * breakpoint.c (update_watchpoint): Update.
9696 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9697
b5621201
TT
96982018-04-06 Tom Tromey <tom@tromey.com>
9699
9700 * value.h (free_all_values): Remove.
9701 * value.c (free_all_values): Remove.
9702
4d0266a0
TT
97032018-04-06 Tom Tromey <tom@tromey.com>
9704
9705 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9706 (value_history_chain, value_history_count): Remove.
9707 (value_history): New global.
9708 (record_latest_value, access_value_history, show_values)
9709 (preserve_values): Update.
9710
b4d61099
TT
97112018-04-06 Tom Tromey <tom@tromey.com>
9712
9713 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9714 * varobj.c (varobj_set_display_format, varobj_set_value)
9715 (install_default_visualizer, construct_visualizer)
9716 (install_new_value, ~varobj, varobj_get_value_type)
9717 (my_value_of_variable, varobj_editable_p): Update.
9718 * c-varobj.c (c_describe_child, c_value_of_variable)
9719 (cplus_number_of_children, cplus_describe_child): Update.
9720 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9721 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9722 (ada_value_of_variable, ada_value_is_changeable_p): Update.
9723
9b558729
TT
97242018-04-06 Tom Tromey <tom@tromey.com>
9725
9726 * printcmd.c (last_examine_address): Change type to
9727 value_ref_ptr.
9728 (do_examine, x_command): Update.
9729
850645cf
TT
97302018-04-06 Tom Tromey <tom@tromey.com>
9731
9732 * value.c (release_value): Update.
9733 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9734 (struct bpstats) <val>: Now a value_ref_ptr.
9735 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9736 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9737 (~watchpoint, print_it_watchpoint, watch_command_1)
9738 (invalidate_bp_value_on_memory_change): Update.
9739
22bc8444
TT
97402018-04-06 Tom Tromey <tom@tromey.com>
9741
9742 * varobj.c (varobj_clear_saved_item)
9743 (update_dynamic_varobj_children, install_new_value, ~varobj):
9744 Update.
9745 * value.h (value_incref): Move declaration earlier.
9746 (value_decref): Rename from value_free.
9747 (struct value_ref_policy): New.
9748 (value_ref_ptr): New typedef.
9749 (struct value_deleter): Remove.
9750 (gdb_value_up): Remove typedef.
9751 (release_value): Change return type.
9752 (release_value_or_incref): Remove.
9753 * value.c (set_value_parent): Update.
9754 (value_incref): Change return type.
9755 (value_decref): Rename from value_free.
9756 (value_free_to_mark, free_all_values, free_value_chain): Update.
9757 (release_value): Return value_ref_ptr.
9758 (release_value_or_incref): Remove.
9759 (record_latest_value, set_internalvar, clear_internalvar):
9760 Update.
9761 * stack.c (info_frame_command): Don't call value_free.
9762 * python/py-value.c (valpy_dealloc, valpy_new)
9763 (value_to_value_object): Update.
9764 * printcmd.c (do_examine): Update.
9765 * opencl-lang.c (lval_func_free_closure): Update.
9766 * mi/mi-main.c (register_changed_p): Don't call value_free.
9767 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9768 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9769 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9770 value_free.
9771 * guile/scm-value.c (vlscm_free_value_smob)
9772 (vlscm_scm_from_value): Update.
9773 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9774 (frame_unwind_register_unsigned, get_frame_register_bytes)
9775 (put_frame_register_bytes): Don't call value_free.
9776 * findvar.c (address_from_register): Don't call value_free.
9777 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9778 * dwarf2loc.c (entry_data_value_free_closure)
9779 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9780 (dwarf2_evaluate_loc_desc_full): Update.
9781 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9782 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9783 (~watchpoint, watch_command_1)
9784 (invalidate_bp_value_on_memory_change): Update.
9785 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9786
7f8a5d38
SM
97872018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9788
9789 PR gdb/23022
9790 * warning.m4: Add -Wno-error=deprecated-register.
9791 * configure: Re-generate.
9792
8a76bd3b
TT
97932018-04-05 Tom Tromey <tom@tromey.com>
9794
9795 * linespec.h: Remove include of "vec.h".
9796
8e8d776e
TT
97972018-04-05 Tom Tromey <tom@tromey.com>
9798
9799 * linespec.c (typep): Remove typedef.
9800 (find_methods, find_superclass_methods): Take a std::vector.
9801 (find_method): Use std::vector.
9802
9b2f8581
TT
98032018-04-05 Tom Tromey <tom@tromey.com>
9804
9805 * utils.c (compare_strings): Remove.
9806 * utils.h (compare_strings): Remove.
9807 * objc-lang.h (find_imps): Update.
9808 * objc-lang.c (find_methods): Take a std::vector.
9809 (uniquify_strings, find_imps): Likewise.
9810 * linespec.c (find_methods): Take a std::vector.
9811 (decode_objc): Use std::vector.
9812 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9813 a std::vector.
9814 (find_method, find_function_symbols): Use std::vector.
9815
459a2e4c
TT
98162018-04-05 Tom Tromey <tom@tromey.com>
9817
9818 * completer.c (completion_tracker::completion_tracker): Remove
9819 cast.
9820 (completion_tracker::discard_completions): Likewise.
9821 * breakpoint.c (ambiguous_names_p): Remove cast.
9822 * ada-lang.c (_initialize_ada_language): Remove cast.
9823 * utils.h (streq): Update.
9824 (streq_hash): Add new declaration.
9825 * utils.c (streq): Return bool.
9826 (streq_hash): New function.
9827
9be2c17a
TT
98282018-04-05 Tom Tromey <tom@tromey.com>
9829
9830 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9831 Remove a string copy.
9832
f73c6ece
TT
98332018-04-05 Tom Tromey <tom@tromey.com>
9834
9835 * linespec.c (filter_results): Use std::vector.
9836 (decode_line_2, decode_line_full): Update.
9837
53a0f8a2
TT
98382018-04-05 Tom Tromey <tom@tromey.com>
9839
9840 * linespec.c (canonical_to_fullform): Return std::string.
9841 (filter_results): Update.
9842 (struct decode_line_2_item): Add constructor.
9843 <fullform, displayform>: Now std::string.
9844 (decode_line_2_compare_items): Now a std::sort comparator.
9845 (decode_line_2): Update.
9846
a5b5adf5
TT
98472018-04-05 Tom Tromey <tom@tromey.com>
9848
9849 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9850 (unexpected_linespec_error): Update.
9851 (linespec_parse_basic, parse_linespec): Update.
9852
6a307fc5
TT
98532018-04-05 Tom Tromey <tom@tromey.com>
9854
9855 * linespec.c (linespec_parse_basic): Reindent.
9856
41c1efc6
TT
98572018-04-05 Tom Tromey <tom@tromey.com>
9858
9859 * minsyms.h (iterate_over_minimal_symbols): Update.
9860 * minsyms.c (iterate_over_minimal_symbols): Take a
9861 gdb::function_view.
9862 * linespec.c (struct collect_minsyms): Remove.
9863 (compare_msyms): Now a std::sort comparator.
9864 (add_minsym): Add parameters.
9865 (search_minsyms_for_name): Update. Use std::vector.
9866
c5edbf3d
TT
98672018-04-03 Tom Tromey <tom@tromey.com>
9868
9869 * mipsread.c (read_alphacoff_dynamic_symtab): Use
9870 gdb::byte_vector.
9871
b39efc48
WP
98722018-04-02 Weimin Pan <weimin.pan@oracle.com>
9873
9874 * MAINTAINERS (Write After Approval): Add Weimin Pan.
9875
121ad66c 98762018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
9877
9878 PR gdb/16959
9879 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
9880 printing static type.
9881
09473be8
TT
98822018-04-01 Tom Tromey <tom@tromey.com>
9883
9884 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
9885 (rs6000_xfer_shared_libraries): Update.
9886
ec1f2d91
SM
98872018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9888
9889 * common/gdb_vecs.h (char_ptr): Remove.
9890 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
9891
d8611974
SM
98922018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9893
9894 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
9895 with std::vector.
9896 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
9897
a18ba4e4
SM
98982018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9899
9900 * tracepoint.h (struct uploaded_tp): Initialize fields.
9901 <actions, step_actions, cmd_strings>: Change type to
9902 std::vector<char *>.
9903 * tracepoint.c (get_uploaded_tp): Allocate with new.
9904 (free_uploaded_tps): Free with delete.
9905 (parse_tracepoint_definition): Adjust to std::vector change.
9906 * breakpoint.c (read_uploaded_action): Likewise.
9907 (create_tracepoint_from_upload): Likewise.
9908 * ctf.c (ctf_write_uploaded_tp): Likewise.
9909 (SET_ARRAY_FIELD): Likewise.
9910 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
9911
a7961323
TT
99122018-03-30 Tom Tromey <tom@tromey.com>
9913
9914 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
9915 std::unique_ptr.
9916 (svr4_keep_data_in_core): Update.
9917 (svr4_read_so_list): Update.
9918
e83e4e24
TT
99192018-03-30 Tom Tromey <tom@tromey.com>
9920
9921 * windows-nat.c (handle_output_debug_string, handle_exception):
9922 Update.
9923 * target.h (target_read_string): Update.
9924 * target.c (target_read_string): Change "string" to
9925 unique_xmalloc_ptr.
9926 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9927 Update.
9928 * solib-frv.c (frv_current_sos): Update.
9929 * solib-dsbt.c (dsbt_current_sos): Update.
9930 * solib-darwin.c (darwin_current_sos): Update.
9931 * linux-thread-db.c (inferior_has_bug): Update.
9932 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
9933 Update. Remove alloca.
9934 * ada-lang.c (ada_main_name): Update.
9935
263db9a1
TT
99362018-03-30 Tom Tromey <tom@tromey.com>
9937
9938 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
9939 (struct dwo_file_deleter): New.
9940 (dwo_file_up): New typedef.
9941 (open_and_init_dwo_file): Use dwo_file_up.
9942 (free_dwo_file_cleanup): Remove.
9943
5dafb3d1
TT
99442018-03-30 Tom Tromey <tom@tromey.com>
9945
9946 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
9947 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
9948
11ed8cad
TT
99492018-03-30 Tom Tromey <tom@tromey.com>
9950
9951 * dwarf2read.c (class free_cached_comp_units): New class.
9952 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
9953 (free_cached_comp_units): Remove function.
9954
9ae79dac
TT
99552018-03-30 Tom Tromey <tom@tromey.com>
9956
9957 * utils.h (make_cleanup_unpush_target): Remove.
9958 * inf-ptrace.c (struct target_unpusher): New.
9959 (target_unpush_up) New typedef.
9960 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
9961 target_unpush_up.
9962 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
9963
5aa89276
TT
99642018-03-27 Tom Tromey <tom@tromey.com>
9965
9966 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
9967
1dbeed45
TT
99682018-03-27 Pedro Alves <palves@redhat.com>
9969 Tom Tromey <tom@tromey.com>
9970
9971 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
9972 destructor. Now a class.
9973 (gdb_readline_wrapper_cleanup): Remove function.
9974 (gdb_readline_wrapper): Remove cleanups.
9975
c819b2c0
TT
99762018-03-27 Tom Tromey <tom@tromey.com>
9977
9978 * typeprint.h (struct type_print_options) <local_typedefs,
9979 global_typedefs>: Remove "struct" keyword.
9980 (class typedef_hash_table): New class.
9981 (recursively_update_typedef_hash, add_template_parameters)
9982 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
9983 (find_typedef_in_hash): Don't declare.
9984 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
9985 (typedef_hash_table::recursively_update): Rename from
9986 recursively_update_typedef_hash. Now a member.
9987 (typedef_hash_table::add_template_parameters): Rename from
9988 add_template_parameters. Now a member.
9989 (typedef_hash_table::typedef_hash_table): Now a constructor;
9990 rename from create_typedef_hash.
9991 (typedef_hash_table::~typedef_hash_table): Now a destructor;
9992 rename from free_typedef_hash.
9993 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
9994 (do_free_global_table): Remove.
9995 (typedef_hash_table::typedef_hash_table): New constructor; renamed
9996 from copy_type_recursive.
9997 (create_global_typedef_table): Remove.
9998 (typedef_hash_table::find_global_typedef): Now a member of
9999 typedef_hash_table.
10000 (typedef_hash_table::find_typedef): Rename from
10001 find_typedef_in_hash; now a member.
10002 (whatis_exp): Update.
10003 * extension.h (struct ext_lang_type_printers): Add constructor and
10004 destructor.
10005 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10006 declare.
10007 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10008 Now a constructor; rename from start_ext_lang_type_printers.
10009 (ext_lang_type_printers): Now a destructor; rename from
10010 free_ext_lang_type_printers.
10011 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10012 Update.
10013 (c_type_print_base_struct_union): Update. Remove cleanups.
10014
608219fb
TT
100152018-03-27 Tom Tromey <tom@tromey.com>
10016
10017 * dwarf-index-write.c: Include <cmath>.
10018
3fcded8f
JB
100192018-03-27 Joel Brobecker <brobecker@adacore.com>
10020
10021 * NEWS: Add entry describing new "set|show varsize-limit" command.
10022 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10023 command.
10024 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10025 "set variable".
10026
cd4fb1b2
SM
100272018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10028
10029 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10030 dwarf-index-write.c
10031 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10032 * dwarf-index-common.c: New file.
10033 * dwarf-index-common.h: New file.
10034 * dwarf-index-write.c: New file.
10035 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10036 (struct dwarf2_section_info): Move from here.
10037 (dwarf2_section_info_def): Likewise.
10038 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10039 (offset_type): Likewise.
10040 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10041 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10042 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10043 (byte_swap): Likewise.
10044 (MAYBE_SWAP): Likewise.
10045 (dwarf2_per_cu_ptr): Likewise.
10046 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10047 (struct tu_stats): Likewise.
10048 (struct dwarf2_per_objfile): Likewise.
10049 (struct dwarf2_per_cu_data): Likewise.
10050 (struct signatured_type): Likewise.
10051 (sig_type_ptr): Likewise.
10052 (DEF_VEC_P (sig_type_ptr)): Likewise.
10053 (INDEX4_SUFFIX): Likewise.
10054 (INDEX5_SUFFIX): Likewise.
10055 (DEBUG_STR_SUFFIX): Likewise.
10056 (dwarf2_read_section): Make non-static.
10057 (mapped_index_string_hash): Move from here.
10058 (dwarf5_djb_hash): Likewise.
10059 (file_write): Likewise.
10060 (class data_buf): Likewise.
10061 (struct symtab_index_entry): Likewise.
10062 (struct mapped_symtab): Likewise.
10063 (find_slot): Likewise.
10064 (hash_expand): Likewise.
10065 (add_index_entry): Likewise.
10066 (uniquify_cu_indices): Likewise.
10067 (class c_str_view): Likewise.
10068 (class c_str_view_hasher): Likewise.
10069 (class vector_hasher): Likewise.
10070 (write_hash_table): Likewise.
10071 (psym_index_map): Likewise.
10072 (struct addrmap_index_data): Likewise.
10073 (add_address_entry): Likewise.
10074 (add_address_entry_worker): Likewise.
10075 (write_address_map): Likewise.
10076 (symbol_kind): Likewise.
10077 (write_psymbols): Likewise.
10078 (struct signatured_type_index_data): Likewise.
10079 (write_one_signatured_type): Likewise.
10080 (recursively_count_psymbols): Likewise.
10081 (recursively_write_psymbols): Likewise.
10082 (class debug_names): Likewise.
10083 (check_dwarf64_offsets): Likewise.
10084 (psyms_seen_size): Likewise.
10085 (write_gdbindex): Likewise.
10086 (write_debug_names): Likewise.
10087 (assert_file_size): Likewise.
10088 (write_psymtabs_to_index): Likewise.
10089 (save_gdb_index_command): Likewise.
10090 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10091 command.
10092 * dwarf2read.h: New file.
10093
59cc4834
JB
100942018-03-27 Joel Brobecker <brobecker@adacore.com>
10095
10096 PR gdb/22670
10097 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10098 symbol name if the CU's language stores symbol names in linkage
10099 format.
10100 * language.h (struct language_defn)
10101 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10102 all instances of this struct.
10103
67501539
TT
101042018-03-26 Tom Tromey <tom@tromey.com>
10105
10106 * stack.c (backtrace_command_1): Remove verbose code.
10107
76c939ac
TT
101082018-03-26 Tom Tromey <tom@tromey.com>
10109
10110 * python/py-framefilter.c (py_print_type): Don't catch
10111 exceptions. Return void.
10112 (py_print_value): Likewise.
10113 (py_print_single_arg): Likewise.
10114 (enumerate_args): Don't catch exceptions.
10115 (py_print_args): Likewise.
10116 (py_print_frame): Likewise.
10117 (gdbpy_apply_frame_filter): Catch exceptions here.
10118
9507b29c
TT
101192018-03-26 Tom Tromey <tom@tromey.com>
10120
10121 * stack.c (_initialize_stack): Remove trailing newlines from help
10122 text. Add "Usage" line to "backtrace" help.
10123
eb68e487
TT
101242018-03-26 Tom Tromey <tom@tromey.com>
10125
10126 PR python/16486:
10127 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10128
1f111921
TT
101292018-03-26 Tom Tromey <tom@tromey.com>
10130
10131 * python/py-framefilter.c (py_print_single_arg): Return
10132 EXT_LANG_BT_ERROR from catch.
10133
fb7eb8b5
TT
101342018-03-26 Tom Tromey <tom@tromey.com>
10135
10136 PR backtrace/15584:
10137 * stack.c (backtrace_command_1): Move some code into no-filters
10138 "if".
10139
4ca59a9f
TT
101402018-03-26 Tom Tromey <tom@tromey.com>
10141
10142 * python/py-framefilter.c (throw_quit_or_print_exception): New
10143 function.
10144 (gdbpy_apply_frame_filter): Use it.
10145
92256134
TT
101462018-03-26 Tom Tromey <tom@tromey.com>
10147
10148 PR cli/17716:
10149 * python/py-framefilter.c (py_print_type, py_print_value)
10150 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10151 RETURN_MASK_ERROR.
10152
7a630bc2
TT
101532018-03-26 Tom Tromey <tom@tromey.com>
10154
10155 * python/py-framefilter.c (enumerate_args): Use
10156 gdb::unique_xmalloc_ptr.
10157
63283d4a
TT
101582018-03-26 Tom Tromey <tom@tromey.com>
10159
10160 * python/py-framefilter.c (py_print_frame): Return
10161 EXT_LANG_BT_OK.
10162 (gdbpy_apply_frame_filter): Update comment.
10163 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10164 Remove.
10165 <EXT_LANG_BT_NO_FILTERS>: Change value.
10166
978d6c75
TT
101672018-03-26 Tom Tromey <tom@tromey.com>
10168
10169 PR backtrace/15582:
10170 * stack.c (backtrace_command): Parse "hide" argument.
10171 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10172 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10173 constant.
10174
1cf7e640
TT
101752018-03-26 Tom Tromey <tom@tromey.com>
10176
10177 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10178 add "flags".
10179 (backtrace_command): Remove "fulltrace", add "flags".
10180
ea3b0687
TT
101812018-03-26 Tom Tromey <tom@tromey.com>
10182
10183 * stack.c (backtrace_command): Rewrite command line parsing.
10184
9f034d75
SM
101852018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10186
10187 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10188
ce1459e5
SM
101892018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10190
10191 * filename-seen-cache.h: Add include guard.
10192
4f7ae6f5
KS
101932018-03-26 Keith Seitz <keiths@redhat.com>
10194
10195 * symfile.c (place_section): Remove "struct" from section_addr_info
10196 in comment.
10197 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10198 "struct" keyword from section_addr_info.
10199
5cd3e386
AH
102002018-03-26 Alan Hayward <alan.hayward@arm.com>
10201
10202 * regformats/regdef.h (reg): Add constructors.
10203
3e5ef9a4
PA
102042018-03-25 Pedro Alves <palves@redhat.com>
10205
10206 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10207 if then/else bodies in var_func_name extraction.
10208
c88d2fcc 102092018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
10210
10211 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10212 lookup_minimal_symbol() to find symbol entry.
10213 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10214
b7fee5a3
KS
102152018-03-23 Keith Seitz <keiths@redhat.com>
10216
10217 PR c++/22968
10218 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10219 nested type definitions for C++, too.
10220
2cc9b304
TT
102212018-03-23 Tom Tromey <tom@tromey.com>
10222
10223 * machoread.c (struct oso_el): Add a constructor. Don't define as
10224 a typedef.
10225 (macho_register_oso): Remove.
10226 (macho_symtab_read): Take a std::vector.
10227 (oso_el_compare_name): Now a std::sort comparator.
10228 (macho_symfile_read_all_oso): Take a std::vector.
10229 (macho_symfile_read): Use std::vector. Remove cleanups.
10230
a2b2bc12
TT
102312018-03-22 Tom Tromey <tom@tromey.com>
10232
10233 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10234 (record_full_goto_bookmark): Use std::string.
10235
7a8f494c
PFC
102362018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10237
10238 PR tdep/18295
10239 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10240 a single mask.
10241
dd6d677f
PFC
102422018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10243
10244 * rs6000-tdep.c (store_insn_p): New function.
10245 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10246 and cr_reg to their unshifted values. Use store_insn_p to
10247 match LR saves using either R1 or fdata->alloca_reg. Use
10248 store_insn_p to match CR saves. Set alloca_reg_offset
10249 when alloca_reg and framep are set. Remove lr_reg shift
10250 when assigning to fdata->lr_register.
10251
26d6cec4
AA
102522018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10253
10254 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10255 command line args instead of emitting a warning.
10256
5d9310c4
SM
102572018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10258
10259 * tracepoint.h (struct static_tracepoint_marker): Initialize
10260 fields, define default constructor, move constructor and move
10261 assignment, disable the rest.
10262 <str_id, extra>: Make std::string.
10263 (release_static_tracepoint_marker): Remove.
10264 (free_current_marker): Remove.
10265 * tracepoint.c (free_current_marker): Remove.
10266 (parse_static_tracepoint_marker_definition): Adjust to
10267 std::string, use new hex2str overload.
10268 (release_static_tracepoint_marker): Remove.
10269 (print_one_static_tracepoint_marker): Get marker by reference
10270 and adjust to std::string.
10271 (info_static_tracepoint_markers_command): Adjust to std::vector
10272 changes
10273 * target.h (static_tracepoint_marker_p): Remove typedef.
10274 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10275 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10276 bool.
10277 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10278 * target-debug.h
10279 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10280 (target_debug_print_std_vector_static_tracepoint_marker): New.
10281 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10282 to...
10283 (target_debug_print_static_tracepoint_marker_p): ... this.
10284 * target-delegates.c: Re-generate.
10285 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10286 Make std::string.
10287 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10288 (decode_static_tracepoint_spec): Adjust to std::vector.
10289 (tracepoint_print_one_detail): Adjust to std::string.
10290 (strace_marker_decode_location): Adjust to std::string.
10291 (update_static_tracepoint): Adjust to std::string, remove call
10292 to release_static_tracepoint_marker.
10293 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10294 Adjust to std::vector.
10295 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10296 (remote_static_tracepoint_markers_by_strid): Adjust to
10297 std::vector.
10298 * common/rsp-low.h (hex2str): New overload with explicit count
10299 of bytes.
10300 * common/rsp-low.c (hex2str): New overload with explicit count
10301 of bytes.
10302 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10303 (_initialize_rsp_low_selftests): Add test_hex2str test.
10304 * unittests/tracepoint-selftests.c
10305 (test_parse_static_tracepoint_marker_definition): Adjust to
10306 std::string.
10307
62c222b6
SM
103082018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10309
10310 * tracepoint.c (parse_static_tracepoint_marker_definition):
10311 Consider case where the definition is followed by more
10312 definitions.
10313 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10314 tracepoint-selftests.c.
10315 * unittests/tracepoint-selftests.c: New.
10316
7eb2418f
PFC
103172018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10318
10319 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10320 Carvalho.
10321
7cbe16e9
SR
103222018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10323
3d6b3b82 10324 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 10325
4ee89e90
SR
103262018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10327
3d6b3b82 10328 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 10329
92630041
TT
103302018-03-19 Tom Tromey <tom@tromey.com>
10331
10332 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10333 "IDENT" production.
10334
76727919
TT
103352018-03-19 Pedro Alves <palves@redhat.com>
10336 Tom Tromey <tom@tromey.com>
10337
10338 * unittests/observable-selftests.c: New file.
10339 * common/observable.h: New file.
10340 * observable.h: New file.
10341 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10342 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10343 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10344 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10345 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10346 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10347 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10348 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10349 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10350 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10351 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10352 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10353 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10354 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10355 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10356 tui/tui-interp.c, valops.c: Update all users.
10357 * tui/tui-hooks.c (tui_bp_created_observer)
10358 (tui_bp_deleted_observer, tui_bp_modified_observer)
10359 (tui_inferior_exit_observer, tui_before_prompt_observer)
10360 (tui_normal_stop_observer, tui_register_changed_observer):
10361 Remove.
10362 (tui_observers_token): New global.
10363 (attach_or_detach, tui_attach_detach_observers): New functions.
10364 (tui_install_hooks, tui_remove_hooks): Use
10365 tui_attach_detach_observers.
10366 * record-btrace.c (record_btrace_thread_observer): Remove.
10367 (record_btrace_thread_observer_token): New global.
10368 * observer.sh: Remove.
10369 * observer.c: Rename to observable.c.
10370 * observable.c (namespace gdb_observers): Define new objects.
10371 (observer_debug): Move into gdb_observers namespace.
10372 (struct observer, struct observer_list, xalloc_observer_list_node)
10373 (xfree_observer_list_node, generic_observer_attach)
10374 (generic_observer_detach, generic_observer_notify): Remove.
10375 (_initialize_observer): Update.
10376 Don't include observer.inc.
10377 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10378 (clean mostlyclean): Likewise.
10379 (observer.h, observer.inc): Remove targets.
10380 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10381 (COMMON_SFILES): Use observable.c, not observer.c.
10382 * .gitignore: Remove observer.h.
10383
1cb1f3da
TT
103842018-03-18 Tom Tromey <tom@tromey.com>
10385
10386 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10387 gdb::def_vector.
10388 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10389
a06ab151
TT
103902018-03-17 Tom Tromey <tom@tromey.com>
10391
10392 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10393
770623f7
TT
103942018-03-17 Tom Tromey <tom@tromey.com>
10395
10396 * target.c (class scoped_target_fd): New.
10397 (target_fileio_close_cleanup): Remove.
10398 (target_fileio_read_alloc_1): Use scoped_target_fd.
10399
39be3c7e
SM
104002018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10401
10402 * silent-rules.mk: New.
10403 * Makefile.in: Include silent-rules.mk
10404 (srcdir, VPATH, top_srcdir): Move up.
10405 (COMPILE): Add ECHO_CXX.
10406 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10407 (init.c): Add ECHO_INIT_C.
10408 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10409 (version.c): Add ECHO_GEN.
10410 (printcmd.o): Add ECHO_CXX.
10411 (target-float.o): Add ECHO_CXX.
10412 (ada-exp.o): Add ECHO_CXX.
10413 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10414 (insight$(EXEEXT)): Add ECHO_CXXLD.
10415 * gnulib/configure.ac: Add AM_SILENT_RULES.
10416 * gnulib/aclocal.m4: Re-generate.
10417 * gnulib/configure: Re-generate.
10418 * gnulib/import/Makefile.in: Re-generate.
10419
37e136b1
TT
104202018-03-16 Tom Tromey <tom@tromey.com>
10421
10422 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10423 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10424 * utils.c (do_free_section_addr_info)
10425 (make_cleanup_free_section_addr_info): Remove.
10426 * symfile.h (struct other_sections): Add constructor.
10427 (struct section_addr_info): Remove.
10428 (section_addr_info): New typedef.
10429 (struct sym_fns) <sym_offsets>: Change type of parameter.
10430 (build_section_addr_info_from_objfile)
10431 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10432 (default_symfile_offsets, symbol_file_add)
10433 (symbol_file_add_from_bfd)
10434 (build_section_addr_info_from_section_table): Update.
10435 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10436 * symfile.c (alloc_section_addr_info): Remove.
10437 (build_section_addr_info_from_section_table): Change return type.
10438 Update.
10439 (build_section_addr_info_from_bfd)
10440 (build_section_addr_info_from_objfile): Likewise.
10441 (free_section_addr_info): Remove.
10442 (relative_addr_info_to_section_offsets): Change type of "addrs".
10443 (addrs_section_compar): Now a std::sort comparator.
10444 (addrs_section_sort): Change return type.
10445 (addr_info_make_relative): Change type of "addrs". Update.
10446 (default_symfile_offsets, syms_from_objfile_1)
10447 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10448 (symbol_file_add_separate): Update.
10449 (symbol_file_add): Change type of "addrs". Update.
10450 (add_symbol_file_command): Update. Remove cleanups.
10451 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10452 cleanups.
10453 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10454 * solib.c (solib_read_symbols): Update.
10455 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10456 * machoread.c (macho_symfile_offsets): Update.
10457 * jit.c (jit_bfd_try_read_symtab): Update.
10458
03afa6ef
SM
104592018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10460
10461 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10462 unittests/utils-selftests.c.
10463 * unittests/utils-selftests.c: New file.
10464
3ae9ce5d
TT
104652018-03-14 Tom Tromey <tom@tromey.com>
10466
10467 PR cli/14977:
10468 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10469 for NULL.
10470
b8c2339b
TT
104712018-03-14 Tom Tromey <tom@tromey.com>
10472
10473 PR cli/19918:
10474 * printcmd.c (printf_pointer): Allow "-" in format.
10475
80ae639d
TT
104762018-03-14 Tom Tromey <tom@tromey.com>
10477
10478 * printcmd.c (_initialize_printcmd): Add usage to printf.
10479
0d671d99
YQ
104802018-03-14 Yao Qi <qiyao@sourceware.org>
10481
10482 * MAINTAINERS: Update my email address.
10483
b577b6af
TT
104842018-03-13 Tom Tromey <tom@tromey.com>
10485
10486 * machoread.c (macho_check_dsym): Change filenamep to a
10487 std::string*.
10488 (macho_symfile_read): Update.
10489 * symfile.c (load_command): Use std::string.
10490
89a3b63e
AB
104912018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10492
10493 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10494 to error message string.
10495 (riscv_register_name): Use xsnprintf instead of sprintf.
10496 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10497 internal_error.
10498 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10499 error.
10500 (riscv_push_dummy_call): Likewise.
10501
984c7238
TT
105022018-03-12 Tom Tromey <tom@tromey.com>
10503
10504 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10505 Use gdb::byte_vector.
10506 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10507
933522d1
YQ
105082018-03-12 Yao Qi <yao.qi@linaro.org>
10509
10510 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10511 parameter type to readable_regcache.
10512 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10513 the declaration.
10514
be2daae6
TT
105152018-03-11 Tom Tromey <tom@tromey.com>
10516
10517 * dwarf2read.c (struct nextfield): Add initializers.
10518 (struct nextfnfield): Remove.
10519 (struct fnfieldlist): Add initializers. Remove "length" and
10520 "head", use std::vector.
10521 (struct decl_field_list): Remove.
10522 (struct field_info): Add initializers.
10523 <fields, baseclasses>: Now std::vector.
10524 <nbaseclasses, nfnfields, typedef_field_list_count,
10525 nested_types_list_count>: Remove.
10526 (dwarf2_add_field, dwarf2_add_type_defn)
10527 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10528 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10529 (process_structure_scope): Update.
10530
484cf504
TT
105312018-03-11 Tom Tromey <tom@tromey.com>
10532
10533 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10534 for use by std::sort.
10535 (build_type_psymtabs_1): Use std::vector.
10536
9bd8e0b0
EZ
105372018-03-09 Eli Zaretskii <eliz@gnu.org>
10538
10539 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10540 and LIBMPFR in the printed configuration.
10541
5dc1a704
TT
105422018-03-08 Tom Tromey <tom@tromey.com>
10543
10544 * source.c (get_filename_and_charpos): Use scoped_fd.
10545 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10546 (procfs_pidlist): Likewise.
10547 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10548 (iterate_over_mappings): Likewise.
10549
fdf07f3a
TT
105502018-03-08 Tom Tromey <tom@tromey.com>
10551
10552 * infcall.c (struct call_return_meta_info)
10553 <stack_temporaries_enabled>: Remove.
10554 (get_call_return_value, call_function_by_hand_dummy): Update.
10555 * thread.c (disable_thread_stack_temporaries): Remove.
10556 (enable_thread_stack_temporaries): Remove.
10557 (thread_stack_temporaries_enabled_p): Return bool.
10558 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10559 (get_last_thread_stack_temporary): Update.
10560 * eval.c (evaluate_subexp): Update.
10561 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10562 class, not a function.
10563 (value_ptr, value_vec): Remove typedefs.
10564 (class thread_info) <stack_temporaries_enabled>: Now bool.
10565 <stack_temporaries>: Now a std::vector.
10566 (thread_stack_temporaries_enabled_p)
10567 (value_in_thread_stack_temporaries): Return bool.
10568
567a3e54
SM
105692018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10570
10571 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10572 (getpkt_or_notif_sane_1): Likewise.
10573
00b40057
SM
105742018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10575
10576 * build-id.c (build_id_to_debug_bfd): Use std::string.
10577
a8dbfd58
SM
105782018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10579
10580 * build-id.c (find_separate_debug_file_by_buildid): Return
10581 std::string.
10582 * build-id.h (find_separate_debug_file_by_buildid): Return
10583 std::string.
10584 * coffread.c (coff_symfile_read): Adjust to std::string.
10585 * elfread.c (elf_symfile_read): Adjust to std::string.
10586 * symfile.c (separate_debug_file_exists): Change parameter to
10587 std::string.
10588 (find_separate_debug_file): Return std::string.
10589 (find_separate_debug_file_by_debuglink): Return std::string.
10590 * symfile.h (find_separate_debug_file_by_debuglink): Return
10591 std::string.
10592
e6a58aa8
SM
105932018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10594
10595 * common/xml-utils.c (xml_escape_text): Move code to...
10596 (xml_escape_text_append): ... this new function.
10597 * common/xml-utils.h (xml_escape_text_append): New declaration.
10598 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10599 New function.
10600 (_initialize_xml_utils): register test_xml_escape_text_append as
10601 a selftest.
10602
4ef0bef6
AH
106032018-03-07 Alan Hayward <alan.hayward@arm.com>
10604
10605 * defs.h: Remove MAX_REGISTER_SIZE.
10606 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10607 asserts.
10608 * python/py-unwind.c (pyuw_sniffer): Likewise.
10609
e0d3522b
TT
106102018-03-07 Tom Tromey <tom@tromey.com>
10611
10612 * linux-tdep.c (linux_info_proc): Update.
10613 * target.h (struct target_ops) <to_fileio_readlink>: Return
10614 optional<string>.
10615 (target_fileio_readlink): Return optional<string>.
10616 * remote.c (remote_hostio_readlink): Return optional<string>.
10617 * inf-child.c (inf_child_fileio_readlink): Return
10618 optional<string>.
10619 * target.c (target_fileio_readlink): Return optional<string>.
10620
ea005f31
AB
106212018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10622
10623 * regcache.c (cooked_read_test): Add riscv to the list of
10624 architectures that have a save_reggroup.
10625
e95a97d4
AA
106262018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10627
10628 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10629 value is not a dynamic class object.
10630
d8344f3d
TT
106312018-03-06 Tom Tromey <tom@tromey.com>
10632
10633 * rust-exp.y: Formatting fixes.
10634
9add17f2
AB
106352018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10636
10637 * riscv-tdep.c (riscv_register_name): Remove target description
10638 support.
10639 (riscv_gdbarch_init): Remove target description check.
10640
c9486dfe
AB
106412018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10642
10643 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10644 comment.
10645 * riscv-tdep.h: Likewise.
10646
d74aff3d
AB
106472018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10648
10649 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10650 (riscv_pseudo_register_write): Delete.
10651 (riscv_gdbarch_init): Remove all use of pseudo registers.
10652
7ea78b59
SM
106532018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10654
10655 * record-btrace.c (btrace_print_lines): Replace cleanup
10656 parameter with RAII equivalents.
10657 (btrace_insn_history): Replace cleanup with RAII equivalents.
10658 * ui-out.h (make_cleanup_ui_out_list_begin_end,
10659 make_cleanup_ui_out_tuple_begin_end): Remove.
10660 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10661 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10662 make_cleanup_ui_out_list_begin_end): Remove.
10663
53127008
SM
106642018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10665
10666 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10667 parameter types to std::vector. Use bool.
10668 (record_btrace_wait): Replace VEC(tp_t) with
10669 std::vector<thread_info *>.
10670 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10671
228f1508
SM
106722018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10673
10674 * record-btrace.c (record_btrace_disable_callback): Remove.
10675 (struct scoped_btrace_disable): New.
10676 (record_btrace_open): Use scoped_btrace_disable.
10677
b2970c23
AB
106782018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10679
10680 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10681 reading values from registers.
10682
fb294655
AB
106832018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10684
10685 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10686 where appropriate.
10687
cab5bb9d
AB
106882018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10689
10690 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10691 change parameter type. Use GDB's print functions, and use
10692 core_addr_to_string where appropriate.
10693 (riscv_push_dummy_call): Use core_addr_to_string where
10694 appropriate, update call to riscv_print_arg_location, and reindent
10695 a few lines.
10696 (riscv_return_value): Update call to riscv_print_arg_location.
10697
dbbb1059
AB
106982018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10699 Tim Newsome <tim@sifive.com>
10700 Albert Ou <a0u@eecs.berkeley.edu>
10701 Darius Rad <darius@bluespec.com>
10702
10703 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10704 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10705 (ALLDEPFILES): Add riscv-tdep.c
10706 * configure.tgt: Add riscv support.
10707 * riscv-tdep.c: New file.
10708 * riscv-tdep.h: New file.
10709 * NEWS: Mention new target.
10710 * MAINTAINERS: Add entry for riscv.
10711
5dc43913
AB
107122018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10713
10714 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10715 fields within aggregates.
10716
3dea1ef7
SM
107172018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
10718
10719 * record-btrace.c (btrace_print_lines): Change type of flags to
10720 gdb_disassembly_flags.
10721
7efba073
JB
107222018-03-04 John Baldwin <jhb@FreeBSD.org>
10723
10724 * fbsd-nat.c: Include "inf-ptrace.h".
10725 (USE_SIGTRAP_SIGINFO): Conditionally define.
10726 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10727 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10728 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10729 function.
10730 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10731 Likewise.
10732 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10733 Likewise.
10734 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10735 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10736 "supports_stopped_by_hw_breakpoint" target methods.
10737
386a8676
JB
107382018-03-04 John Baldwin <jhb@FreeBSD.org>
10739
10740 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10741 * fbsd-nat.c (debug_fbsd_nat): New variable.
10742 (show_fbsd_nat_debug): New function.
10743 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10744 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10745
12279366
JB
107462018-03-04 John Baldwin <jhb@FreeBSD.org>
10747
10748 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10749 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10750 prototype.
10751 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10752 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10753 method.
10754
54693cf5
SM
107552018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10756
10757 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10758 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10759
ccb2231c
SM
107602018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10761
10762 * charset.c (struct charset_vector): New.
10763 (charsets): Change type to charset_vector.
10764 (find_charset_names): Adjust.
10765 (add_one): Adjust.
10766 (_initialize_charset): Adjust.
10767
6fb16ce6
SM
107682018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10769
10770 * progspace.h (struct program_space) <deleted_solibs>: Change
10771 type to std::vector<std::string>.
10772 * progspace.c (clear_program_space_solib_cache): Adjust.
10773 * breakpoint.c (print_solib_event): Adjust.
10774 (check_status_catch_solib): Adjust.
10775 * solib.c (update_solib_list): Adjust.
10776 * ui-out.h (class ui_out) <field_string>: New overload.
10777 * ui-out.c (ui_out::field_string): New overload.
10778
564b1e3f
SM
107792018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10780
10781 * progspace.h (struct program_space): Add constructor and
10782 destructor, initialize fields.
10783 (add_program_space): Remove.
10784 * progspace.c (add_program_space): Rename to...
10785 (program_space::program_space): ... this.
10786 (release_program_space): Rename to...
10787 (program_space::~program_space): ... this.
10788 (delete_program_space): Use delete to delete program_space.
10789 (initialize_progspace): Use new to allocate program_space.
10790 * inferior.c (add_inferior_with_spaces): Likewise.
10791 (clone_inferior_command): Likewise.
10792 * infrun.c (follow_fork_inferior): Likewise.
10793 (handle_vfork_child_exec_or_exit): Likewise.
10794
e80aaf61
SM
107952018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10796
10797 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10798 (delim_string_to_char_ptr_vec): Return std::vector of
10799 gdb::unique_xmalloc_ptr.
10800 (dirnames_to_char_ptr_vec_append): Take std::vector of
10801 gdb::unique_xmalloc_ptr.
10802 (dirnames_to_char_ptr_vec): Return std::vector of
10803 gdb::unique_xmalloc_ptr.
10804 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10805 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10806 (delim_string_to_char_ptr_vec): Return an std::vector of
10807 gdb::unique_xmalloc_ptr, adjust the code.
10808 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10809 gdb::unique_xmalloc_ptr, adjust the code.
10810 (dirnames_to_char_ptr_vec): Return an std::vector of
10811 gdb::unique_xmalloc_ptr, adjust the code.
10812 * auto-load.c (auto_load_safe_path_vec): Change type to
10813 std::vector of gdb::unique_xmalloc_ptr.
10814 (auto_load_expand_dir_vars): Return an std::vector of
10815 gdb::unique_xmalloc_ptr, adjust the code.
10816 (auto_load_safe_path_vec_update): Adjust.
10817 (filename_is_in_auto_load_safe_path_vec): Adjust.
10818 (auto_load_objfile_script_1): Adjust.
10819 * build-id.c (build_id_to_debug_bfd): Adjust.
10820 * linux-thread-db.c (thread_db_load_search): Adjust.
10821 * source.c (add_path): Adjust.
10822 (openp): Adjust.
10823 * symfile.c (find_separate_debug_file): Adjust.
10824 * utils.c (do_free_char_ptr_vec): Remove.
10825 (make_cleanup_free_char_ptr_vec): Remove.
10826
ab818ade
SDJ
108272018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10828
10829 PR gdb/22907
10830 * common/pathstuff.c: Conditionally include "<windows.h>".
10831
e1e6f073
GS
108322018-03-01 Georg Sauthoff <mail@georg.so>
10833
10834 PR gdb/22888
10835 * gcore.in: Quote variables and switch interpreter to bash.
10836
c7b15a66
TT
108372018-03-01 Tom Tromey <tom@tromey.com>
10838
10839 * dwarf2read.c (alloc_discriminant_info): Fix default_index
10840 assertion. Add assertion for discriminant_index.
10841 (quirk_rust_enum): Use correct base type name in univariant case.
10842
0cb7c7b0
SM
108432018-03-01 Simon Marchi <simon.marchi@ericsson.com>
10844
10845 * record.c (get_call_history_modifiers): Return a
10846 record_print_flags.
10847 (cmd_record_call_history): Adjust.
10848 * record-btrace.c (record_btrace_call_history): Adjust.
10849 (record_btrace_call_history_range): Adjust.
10850 (record_btrace_call_history_from): Adjust.
10851 * target-debug.h (target_debug_print_record_print_flags): New.
10852 * target-delegates.c: Re-generate.
10853 * target.c (target_call_history): Change flags type.
10854 (target_call_history_from): Likewise.
10855 (target_call_history_range): Likewise.
10856 * target.h (struct target_ops) <target_call_history>: Likewise.
10857 (target_call_history_from): Likewise.
10858 (target_call_history_range): Likewise.
10859
25e3c82c
SDJ
108602018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10861 Simon Marchi <simon.marchi@polymtl.ca>
10862
10863 * common/common-utils.c: Include "sys/stat.h".
10864 (is_regular_file): Move here from "source.c"; change return
10865 type to "bool".
10866 * common/common-utils.h (is_regular_file): New prototype.
10867 * common/pathstuff.c (contains_dir_separator): New function.
10868 * common/pathstuff.h (contains_dir_separator): New prototype.
10869 * source.c: Don't include "sys/stat.h".
10870 (is_regular_file): Move to "common/common-utils.c".
10871
b4987c95
SDJ
108722018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10873
10874 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
10875 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
10876 * auto-load.c: Include "common/pathstuff.h".
10877 * common/common-def.h (current_directory): Move here.
10878 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
10879 function.
10880 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
10881 prototype.
10882 * common/pathstuff.c: New file.
10883 * common/pathstuff.h: New file.
10884 * compile/compile.c: Include "common/pathstuff.h".
10885 * defs.h (current_directory): Move to "common/common-defs.h".
10886 * dwarf2read.c: Include "common/pathstuff.h".
10887 * exec.c: Likewise.
10888 * guile/scm-safe-call.c: Likewise.
10889 * linux-thread-db.c: Likewise.
10890 * main.c: Likewise.
10891 * nto-tdep.c: Likewise.
10892 * objfiles.c: Likewise.
10893 * source.c: Likewise.
10894 * symtab.c: Likewise.
10895 * utils.c: Include "common/pathstuff.h".
10896 (gdb_realpath): Move to "common/pathstuff.c".
10897 (gdb_realpath_keepfile): Likewise.
10898 (gdb_abspath): Likewise.
10899 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
10900 (gdb_realpath_keepfile): Likewise.
10901 (gdb_abspath): Likewise.
10902
f169cfdc
JB
109032018-02-28 John Baldwin <jhb@FreeBSD.org>
10904
10905 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
10906 wildcard process pid for super_resume for kernels with a
10907 specific bug.
10908
e05cac70
PM
109092018-02-27 Phil Muldoon <pmuldoon@redhat.com>
10910
10911 * compile/compile.c (get_args): Add additional comments
10912 explaining function.
10913
55089490
TT
109142018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
10915 Tom Tromey <tom@tromey.com>
10916
10917 * target.h (memory_write_request_s): Remove typedef. Don't define
10918 VEC.
10919 (target_write_memory_blocks): Change argument to std::vector.
10920 (struct memory_write_request): Add constructor.
10921 * target-memory.c (compare_block_starting_address): Return bool.
10922 Change argument types.
10923 (claim_memory): Change arguments to use std::vector.
10924 (split_regular_and_flash_blocks, blocks_to_erase)
10925 (compute_garbled_blocks): Likewise.
10926 (cleanup_request_data, cleanup_write_requests_vector): Remove.
10927 (target_write_memory_blocks): Change argument to std::vector.
10928 * symfile.c (struct load_section_data): Add constructor and
10929 destructor. Use std::vector for "requests".
10930 (struct load_progress_data): Add initializers.
10931 (load_section_callback): Update. Use "new".
10932 (clear_memory_write_data): Remove.
10933 (generic_load): Update.
10934
0c305b61
AH
109352018-02-27 Alan Hayward <alan.hayward@arm.com>
10936
10937 * arch/aarch64.h: Use common/tdesc.h.
10938
c5196c92
MR
109392018-02-26 Maciej W. Rozycki <macro@mips.com>
10940
10941 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
10942 architecture with a 64-bit ABI.
10943
37c33887
MR
109442018-02-26 Maciej W. Rozycki <macro@mips.com>
10945
10946 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
10947 ahead of target description loading.
10948
d4dd3282
TT
109492018-02-26 Tom Tromey <tom@tromey.com>
10950
10951 * stack.c (backtrace_command_1): Update.
10952 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
10953 of "flags".
10954 * python/py-framefilter.c (py_print_frame)
10955 (gdbpy_apply_frame_filter): Change type of "flags".
10956 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
10957 of "flags".
10958 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
10959 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
10960 * extension.h (enum frame_filter_flag): Rename from
10961 frame_filter_flags.
10962 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
10963 (apply_ext_lang_frame_filter): Change type of "flags".
10964 * extension.c (apply_ext_lang_frame_filter): Change type of
10965 "flags".
10966 * extension-priv.h (struct extension_language_ops)
10967 <apply_frame_filter>: Change type of "flags".
10968
6893c19a
TT
109692018-02-26 Tom Tromey <tom@tromey.com>
10970
10971 PR python/16497:
10972 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
10973 off-by-one in py_end computation.
10974 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
10975 PRINT_MORE_FRAMES.
10976 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
10977 constant.
10978
2ddeaf8a
TT
109792018-02-26 Tom Tromey <tom@tromey.com>
10980
10981 * dwarf2read.c (struct variant_field): New.
10982 (struct nextfield) <variant>: New field.
10983 (dwarf2_add_field): Handle DW_TAG_variant_part.
10984 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
10985 discriminated union.
10986 (read_structure_type): Handle DW_TAG_variant_part.
10987 (handle_struct_member_die): New function, extracted from
10988 process_structure_scope. Handle DW_TAG_variant.
10989 (process_structure_scope): Handle discriminated unions. Call
10990 handle_struct_member_die.
10991
c9317f21
TT
109922018-02-26 Tom Tromey <tom@tromey.com>
10993
10994 * rust-lang.h (rust_last_path_segment): Declare.
10995 * rust-lang.c (rust_last_path_segment): Now public. Change
10996 contract.
10997 (struct disr_info): Remove.
10998 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
10999 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11000 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11001 (rust_enum_p, rust_enum_variant): New function.
11002 (rust_underscore_fields): Remove "offset" parameter.
11003 (rust_print_enum): New function.
11004 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11005 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11006 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11007 enums.
11008 (rust_internal_print_type): New function, from rust_print_type.
11009 Remove enum code.
11010 (rust_print_type): Call rust_internal_print_type.
11011 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11012 Update enum handling.
11013 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11014 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11015 (rust_union_quirks): New functions.
11016 (process_full_comp_unit, process_full_type_unit): Call
11017 rust_union_quirks.
11018 (process_structure_scope): Update rust_unions if necessary.
11019
7c22600a
TT
110202018-02-26 Tom Tromey <tom@tromey.com>
11021
11022 * value.h (value_union_variant): Declare.
11023 * valops.c (value_union_variant): New function.
11024 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11025 (struct discriminant_info): New.
11026 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11027 enumerator.
11028 (struct main_type) <flag_discriminated_union>: New field.
11029
15ce8941
TT
110302018-02-26 Tom Tromey <tom@tromey.com>
11031
11032 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11033 unittests/unpack-selftests.c.
11034 * unittests/unpack-selftests.c: New file.
11035 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11036
48fbe735
YQ
110372018-02-26 Yao Qi <yao.qi@linaro.org>
11038
11039 * dwarf2read.c (struct partial_die_info) <read>: New method.
11040 (read_partial_die): Remove the declaration.
11041 (load_partial_dies): Update.
11042 (partial_die_info::partial_die_info):
11043 (read_partial_die): Change it to partial_die_info::read.
11044
52356b79
YQ
110452018-02-26 Yao Qi <yao.qi@linaro.org>
11046
11047 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11048 (fixup_partial_die): Remove declaration.
11049 (scan_partial_symbols): Update.
11050 (partial_die_parent_scope): Likewise.
11051 (partial_die_full_name): Likewise.
11052 (fixup_partial_die): Change it to partial_die_info::fixup.
11053
35cc7ed7
YQ
110542018-02-26 Yao Qi <yao.qi@linaro.org>
11055
11056 * dwarf2read.c (read_partial_die): Update the declaration.
11057 (load_partial_dies): Caller update.
11058 (read_partial_die): Remove one argument abbrev_len.
11059
6f06d47b
YQ
110602018-02-26 Yao Qi <yao.qi@linaro.org>
11061
11062 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11063 assignment operator.
11064 (load_partial_dies): Use ctor and copy ctor.
11065 (read_partial_die): Update.
11066 (dwarf2_cu::find_partial_die): Use ctor.
11067
d590ff25
YQ
110682018-02-26 Yao Qi <yao.qi@linaro.org>
11069
11070 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11071 (find_partial_die_in_comp_unit): Change it to
11072 dwarf2_cu::find_partial_die.
11073 (find_partial_die): Update.
11074
fd0a254f
YQ
110752018-02-26 Yao Qi <yao.qi@linaro.org>
11076
11077 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11078 is NULL.
11079
cd9983dd
YQ
110802018-02-26 Yao Qi <yao.qi@linaro.org>
11081
11082 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11083
f46cd62a
AH
110842018-02-26 Alan Hayward <alan.hayward@arm.com>
11085
11086 * arch/amd64.h: Use common/tdesc.h.
11087 * arch/i386.c: Likewise.
11088 * arch/i386.h: Likewise.
11089 * arch/tic6x.c: Likewise.
11090 * arch/tdesc.h: Move file from here...
11091 * common/tdesc.h: ...to here.
11092 * features/aarch64-core.c: Regenerate.
11093 * features/aarch64-fpu.c: Regenerate.
11094 * features/i386/32bit-avx.c: Regenerate.
11095 * features/i386/32bit-avx512.c: Regenerate.
11096 * features/i386/32bit-core.c: Regenerate.
11097 * features/i386/32bit-linux.c: Regenerate.
11098 * features/i386/32bit-mpx.c: Regenerate.
11099 * features/i386/32bit-pkeys.c: Regenerate.
11100 * features/i386/32bit-sse.c: Regenerate.
11101 * features/i386/64bit-avx.c: Regenerate.
11102 * features/i386/64bit-avx512.c: Regenerate.
11103 * features/i386/64bit-core.c: Regenerate.
11104 * features/i386/64bit-linux.c: Regenerate.
11105 * features/i386/64bit-mpx.c: Regenerate.
11106 * features/i386/64bit-pkeys.c: Regenerate.
11107 * features/i386/64bit-segments.c: Regenerate.
11108 * features/i386/64bit-sse.c: Regenerate.
11109 * features/i386/x32-core.c: Regenerate.
11110 * features/tic6x-c6xp.c: Regenerate.
11111 * features/tic6x-core.c: Regenerate.
11112 * features/tic6x-gp.c: Regenerate.
11113 * target-descriptions.c: Use common/tdesc.h.
11114 * target-descriptions.h: Likewise.
11115
9b292f68
TT
111162018-02-24 Tom Tromey <tom@tromey.com>
11117
11118 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11119 (try_thread_db_load_from_dir, thread_db_load_search): Use
11120 std::string.
11121 (info_auto_load_libthread_db_compare): Return bool. Change
11122 argument types.
11123 (info_auto_load_libthread_db): Use std::vector, std::string.
11124 Remove cleanups.
11125
281d762b
TT
111262018-02-24 Tom Tromey <tom@tromey.com>
11127
11128 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11129 std::string.
11130 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11131 std::string*.
11132 * gdbarch.c: Rebuild.
11133 * gdbarch.h: Rebuild.
11134 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11135 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11136 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11137 std::string*.
11138
9d8780f0
SM
111392018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11140
11141 * gdbtypes.h (sect_offset): Change type to uint64_t.
11142 (sect_offset_str): New function.
11143 * dwarf2read.c (create_addrmap_from_aranges): Use
11144 sect_offset_str.
11145 (error_check_comp_unit_head): Likewise.
11146 (create_debug_type_hash_table): Likewise.
11147 (read_cutu_die_from_dwo): Likewise.
11148 (init_cutu_and_read_dies): Likewise.
11149 (init_cutu_and_read_dies_no_follow): Likewise.
11150 (process_psymtab_comp_unit_reader): Likewise.
11151 (partial_die_parent_scope): Likewise.
11152 (peek_die_abbrev): Likewise.
11153 (process_queue): Likewise.
11154 (dwarf2_physname): Likewise.
11155 (read_namespace_alias): Likewise.
11156 (read_import_statement): Likewise.
11157 (create_dwo_cu_reader): Likewise.
11158 (create_cus_hash_table): Likewise.
11159 (lookup_dwo_cutu): Likewise.
11160 (inherit_abstract_dies): Likewise.
11161 (read_func_scope): Likewise.
11162 (read_call_site_scope): Likewise.
11163 (dwarf2_add_member_fn): Likewise.
11164 (read_common_block): Likewise.
11165 (read_module_type): Likewise.
11166 (read_typedef): Likewise.
11167 (read_subrange_type): Likewise.
11168 (load_partial_dies): Likewise.
11169 (read_partial_die): Likewise.
11170 (find_partial_die): Likewise.
11171 (read_str_index): Likewise.
11172 (dwarf2_string_attr): Likewise.
11173 (build_error_marker_type): Likewise.
11174 (lookup_die_type): Likewise.
11175 (dump_die_shallow): Likewise.
11176 (follow_die_ref): Likewise.
11177 (dwarf2_fetch_die_loc_sect_off): Likewise.
11178 (dwarf2_fetch_constant_bytes): Likewise.
11179 (follow_die_sig): Likewise.
11180 (get_signatured_type): Likewise.
11181 (get_DW_AT_signature_type): Likewise.
11182 (dwarf2_find_containing_comp_unit): Likewise.
11183 (set_die_type): Likewise.
11184
8ec57239
JB
111852018-02-21 John Baldwin <jhb@FreeBSD.org>
11186
11187 * arch/aarch64.c: Include "common-defs.h".
11188 * arch/amd64.c: Likewise.
11189 * arch/i386.c: Likewise.
11190
3eac2b65
TT
111912018-02-21 Tom Tromey <tom@tromey.com>
11192
11193 * value.h: (extract_field_op): Update.
11194 * eval.c (extract_field_op): Return a const char *.
11195 * expression.h (parse_expression_for_completion): Update.
11196 * completer.c (complete_expression): Update.
11197 (add_struct_fields): Make fieldname const.
11198 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11199 (mark_completion_tag, parse_exp_in_context_1): Update.
11200 (parse_expression_for_completion): Change "name" to
11201 unique_xmalloc_ptr*.
11202
6ccb583f
TT
112032018-02-21 Tom Tromey <tom@tromey.com>
11204
11205 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11206
c113ed0c
YQ
112072018-02-21 Yao Qi <yao.qi@linaro.org>
11208
11209 * avr-tdep.c (avr_read_pc): Change parameter type to
11210 readable_regcache.
11211 * gdbarch.sh (read_pc): Likewise.
11212 * gdbarch.c: Re-generated.
11213 * gdbarch.h: Re-generated.
11214 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11215 readable_regcache.
11216 * ia64-tdep.c (ia64_read_pc): Likewise.
11217 * mips-tdep.c (mips_read_pc): Likewise.
11218 * spu-tdep.c (spu_read_pc): Likewise.
11219
4c74fe6b
YQ
112202018-02-21 Yao Qi <yao.qi@linaro.org>
11221
11222 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11223 * regcache-dump.c: New file.
11224 * regcache.c: Move register_dump to regcache-dump.c.
11225 (maintenance_print_registers): Likewise.
11226 (maintenance_print_raw_registers): Likewise.
11227 (maintenance_print_cooked_registers): Likewise.
11228 (maintenance_print_register_groups): Likewise.
11229 (maintenance_print_remote_registers): Likewise.
11230 (_initialize_regcache): Likewise.
11231 * regcache.h (register_dump): Moved from regcache.c.
11232
796bb026
YQ
112332018-02-21 Yao Qi <yao.qi@linaro.org>
11234
11235 * regcache.c (regcache::regcache): Update.
11236 (regcache::invalidate): Move it to detached_regcache::invalidate.
11237 (get_thread_arch_aspace_regcache): Update.
11238 (regcache::raw_update): Update.
11239 (regcache::cooked_read): Remove some code.
11240 (regcache::cooked_read_value): Likewise.
11241 (regcache::raw_write): Remove assert on m_readonly_p.
11242 (regcache::raw_supply_integer): Move it to
11243 detached_regcache::raw_supply_integer.
11244 (regcache::raw_supply_zeroed): Likewise.
11245 * regcache.h (detached_regcache) <raw_supply_integer>: New
11246 declaration.
11247 <raw_supply_zeroed, invalidate>: Likewise.
11248 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11249 <invalidate>: Likewise.
11250 <m_readonly_p>: Removed.
11251
215c69dc
YQ
112522018-02-21 Yao Qi <yao.qi@linaro.org>
11253
11254 * infcmd.c (get_return_value): Let stop_regs point to
11255 get_current_regcache.
11256 * regcache.c (regcache::regcache): Remove.
11257 (register_dump_reg_buffer): New class.
11258 (regcache_print): Adjust.
11259 * regcache.h (regcache): Remove constructors.
11260
f3384e66
YQ
112612018-02-21 Yao Qi <yao.qi@linaro.org>
11262
11263 * regcache.c (class register_dump): New class.
11264 (register_dump_regcache, register_dump_none): New class.
11265 (register_dump_remote, register_dump_groups): New class.
11266 (regcache_print): Update.
11267 * regcache.h (regcache_dump_what): Move it to regcache.c.
11268 (regcache) <dump>: Remove.
11269
c8ec2f33
YQ
112702018-02-21 Yao Qi <yao.qi@linaro.org>
11271
11272 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11273 reg_buffer_rw *.
11274 (jit_unwind_reg_set_impl): Call raw_supply.
11275 (jit_frame_sniffer): Use reg_buffer_rw.
11276 * record-full.c (record_full_core_regbuf): Change its type.
11277 (record_full_core_open_1): Use reg_buffer_rw.
11278 (record_full_close): Likewise.
11279 (record_full_core_fetch_registers): Use regcache->raw_supply.
11280 (record_full_core_store_registers): Likewise.
11281 * regcache.c (regcache::get_register_status): Move it to
11282 reg_buffer.
11283 (regcache_raw_set_cached_value): Remove.
11284 (regcache::raw_set_cached_value): Remove.
11285 (regcache::raw_write): Call raw_supply.
11286 (regcache::raw_supply): Move it to reg_buffer_rw.
11287 * regcache.h (regcache_raw_set_cached_value): Remove.
11288 (reg_buffer_rw): New class.
11289
daf6667d
YQ
112902018-02-21 Yao Qi <yao.qi@linaro.org>
11291
11292 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11293 readonly_detached_regcache.
11294 (dummy_frame_prev_register): Use regcache->cooked_read.
11295 * frame.c (frame_save_as_regcache): Change return type.
11296 (frame_pop): Update.
11297 * frame.h (frame_save_as_regcache): Update declaration.
11298 * inferior.h (get_infcall_suspend_state_regcache): Update
11299 declaration.
11300 * infrun.c (infcall_suspend_state) <registers>: use
11301 readonly_detached_regcache.
11302 (save_infcall_suspend_state): Don't use regcache_dup.
11303 (get_infcall_suspend_state_regcache): Change return type.
11304 * linux-fork.c (struct fork_info) <savedregs>: Change to
11305 readonly_detached_regcache.
11306 <pc>: New field.
11307 (fork_save_infrun_state): Don't use regcache_dup.
11308 (info_checkpoints_command): Adjust.
11309 * mi/mi-main.c (register_changed_p): Update declaration.
11310 (mi_cmd_data_list_changed_registers): Use
11311 readonly_detached_regcache.
11312 (register_changed_p): Change parameter type to
11313 readonly_detached_regcache.
11314 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11315 readonly_detached_regcache.
11316 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11317 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11318 New.
11319 (regcache::save): Move it to reg_buffer.
11320 (regcache::restore): Change parameter type.
11321 (regcache_dup): Remove.
11322 * regcache.h (reg_buffer) <save>: New method.
11323 (readonly_detached_regcache): New class.
11324 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11325 readonly_detached_regcache.
11326 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11327
fc5b8736
YQ
113282018-02-21 Yao Qi <yao.qi@linaro.org>
11329
11330 * frame.c (frame_save_as_regcache): Use regcache method save.
11331 (frame_pop): Use regcache method restore.
11332 * infrun.c (restore_infcall_suspend_state): Likewise.
11333 * linux-fork.c (fork_load_infrun_state): Likewise.
11334 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11335 save.
11336 * regcache.c (regcache_save): Remove.
11337 (regcache::restore): More asserts.
11338 (regcache_cpy): Remove.
11339 * regcache.h (regcache_save): Remove the declaration.
11340 (regcache::restore): Move from private to public.
11341 Remove the friend declaration of regcache_cpy.
11342 (regcache_cpy): Remove declaration.
11343
849d0ba8
YQ
113442018-02-21 Yao Qi <yao.qi@linaro.org>
11345
11346 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11347 parameter type to 'readable_regcache *'.
11348 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11349 * arm-tdep.c (arm_neon_quad_read): Likewise.
11350 (arm_pseudo_read): Likewise.
11351 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11352 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11353 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11354 * gdbarch.c: Re-generated.
11355 * gdbarch.h: Re-generated.
11356 * gdbarch.sh (pseudo_register_read): Change parameter type to
11357 'readable_regcache *'.
11358 (pseudo_register_read_value): Likewise.
11359 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11360 (h8300_pseudo_register_read): Likewise.
11361 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11362 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11363 (i386_pseudo_register_read_into_value): Likewise.
11364 (i386_pseudo_register_read_value): Likewise.
11365 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11366 declaration.
11367 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11368 * m32c-tdep.c (m32c_raw_read): Likewise.
11369 (m32c_read_flg): Likewise.
11370 (m32c_banked_register): Likewise.
11371 (m32c_banked_read): Likewise.
11372 (m32c_sb_read): Likewise.
11373 (m32c_part_read): Likewise.
11374 (m32c_cat_read): Likewise.
11375 (m32c_r3r2r1r0_read): Likewise.
11376 (m32c_pseudo_register_read): Likewise.
11377 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11378 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11379 (mep_pseudo_cr64_read): Likewise.
11380 (mep_pseudo_register_read): Likewise.
11381 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11382 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11383 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11384 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11385 (regcache::cooked_read): Likewise.
11386 (regcache::cooked_read_value): Likewise.
11387 (regcache_cooked_read_signed):
11388 (regcache::cooked_read): Likewise.
11389 * regcache.h (readable_regcache): New class.
11390 (regcache): Inherit readable_regcache. Move some methods to
11391 readable_regcache.
11392 * rl78-tdep.c (rl78_pseudo_register_read): Change
11393 parameter type to 'readable_regcache *'.
11394 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11395 (e500_pseudo_register_read): Change parameter type to
11396 'readable_regcache *'.
11397 (dfp_pseudo_register_read): Likewise.
11398 (vsx_pseudo_register_read): Likewise.
11399 (efpr_pseudo_register_read): Likewise.
11400 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11401 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11402 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11403 (sh64_pseudo_register_read): Likewise.
11404 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11405 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11406 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11407 (spu_pseudo_register_read): Likewise.
11408 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11409 (xtensa_pseudo_register_read): Likewise.
11410
31716595
YQ
114112018-02-21 Yao Qi <yao.qi@linaro.org>
11412
11413 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11414 (regcache::arch): Move it to reg_buffer::arch.
11415 (regcache::register_buffer): Likewise.
11416 (regcache::assert_regnum): Likewise.
11417 (regcache::num_raw_registers): Likewise.
11418 * regcache.h (reg_buffer): New class.
11419 (regcache): Inherit reg_buffer.
11420
7104e59b
SM
114212018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11422
11423 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11424 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11425
2d8adcbd
MM
114262018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11427
11428 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11429
b5884fa7
AH
114302018-02-19 Alan Hayward <alan.hayward@arm.com>
11431
11432 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11433 (SFILES): Remove common/*.c files.
11434 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11435 * common/common.host: Add common reference.
11436 * configure.ac: Likewise.
11437 * configure: Regenerate.
11438
fd90ace4
YQ
114392018-02-16 Yao Qi <yao.qi@linaro.org>
11440
11441 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11442 (block_initialize_namespace): Use new.
11443 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11444 (dwarf2_free_objfile): Use delete.
11445 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11446 (copy_type_recursive): Use new.
11447 * gdb_obstack.h (allocate_on_obstack): New.
11448
85046ae2
YQ
114492018-02-15 Yao Qi <yao.qi@linaro.org>
11450
11451 PR gdb/22849
11452 * inferior.c (exit_inferior_1): Reset inf->control.
11453
355c559b
JB
114542018-02-15 Joel Brobecker <brobecker@adacore.com>
11455
11456 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11457 declaration.
11458
980548fd
PA
114592018-02-14 Pedro Alves <palves@redhat.com>
11460
11461 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11462 frame_cleanup_after_sniffer on exception.
11463
692d6f97
TT
114642018-02-14 Tom Tromey <tom@tromey.com>
11465
11466 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11467 const.
11468 (solib_bfd_open): Make pathname const.
11469 * solib.c (solib_bfd_open): Make pathname const.
11470 * solib-spu.c (spu_bfd_fopen): Make name const.
11471 (spu_bfd_open): Make pathname const.
11472 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11473 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11474
e0cc99a6
TT
114752018-02-14 Tom Tromey <tom@tromey.com>
11476
11477 * symfile.c (symfile_bfd_open): Update.
11478 * source.h (openp, source_full_path_of, find_and_open_source):
11479 Change argument type to unique_xmalloc_ptr.
11480 * source.c (openp): Take a unique_xmalloc_ptr.
11481 (source_full_path_of, find_and_open_source): Likewise.
11482 (open_source_file, symtab_to_fullname): Update.
11483 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11484 unique_xmalloc_ptr.
11485 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11486 (exec_file_find): Update.
11487 * psymtab.c (psymtab_to_fullname): Update.
11488 * nto-tdep.h (nto_find_and_open_solib): Update.
11489 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11490 unique_xmalloc_ptr.
11491 * exec.c (exec_file_attach): Update.
11492 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11493 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11494
b46a8d7c
TT
114952018-02-14 Tom Tromey <tom@tromey.com>
11496
11497 * solib.c: Include source.h.
11498 * nto-tdep.c: Include source.h.
11499 * mi/mi-cmd-env.c: Include source.h.
11500 * infcmd.c: Include source.h.
11501 * exec.c: Include source.h.
11502 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11503 (add_path, directory_switch, source_path, init_source_path): Move
11504 declarations...
11505 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11506 (add_path, directory_switch, source_path, init_source_path):
11507 ...here.
11508
797bc1cb
TT
115092018-02-14 Tom Tromey <tom@tromey.com>
11510
11511 * solist.h (exec_file_find, solib_find): Return
11512 unique_xmalloc_ptr.
11513 (solib_bfd_fopen): Take a const char *.
11514 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11515 (exec_file_find, solib_find): Likewise.
11516 (solib_bfd_fopen): Do not take ownership of "pathname".
11517 (solib_bfd_open): Use unique_xmalloc_ptr.
11518 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11519 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11520 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11521 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11522
f98b2e33
JB
115232018-02-14 Joel Brobecker <brobecker@adacore.com>
11524
11525 * ada-lang.c (name_match_type_from_name): Remove reference to
11526 ada_name_for_lookup in function's documentation.
11527 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11528
24b9144d
SM
115292018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11530
11531 * defs.h (enum openp_flags): New enum.
11532 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11533 Move to enum openp_flags.
11534 (openp_flags): New enum flags.
11535 (openp): Change parameter type to openp_flags.
11536 * source.c (openp): Change parameter type to openp_flags.
11537 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11538 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11539
387cd15b
SM
115402018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11541
11542 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11543 per-command.
11544
b303c6f6
AB
115452018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11546
11547 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11548 into...
11549 (class dwarf2_queue_guard): ...the destructor of this new class.
11550 (dw2_do_instantiate_symtab): Create instance of the new class
11551 dwarf2_queue_guard, remove cleanup.
11552
9c3630e9
TT
115532018-02-09 Tom Tromey <tom@tromey.com>
11554
11555 * source.c (find_source_lines): Don't reference past the end of
11556 the vector.
11557
c4e12631
MM
115582018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11559
11560 * remote.c (remote_btrace_maybe_reopen): Change error message.
11561 * btrace.c (btrace_enable): Likewise.
11562 (parse_xml_btrace): Likewise.
11563 (parse_xml_btrace_conf): Likewise.
11564
88711fbf
MM
115652018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11566
11567 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11568 (linux_enable_pt, linux_enable_bts): Call
11569 diagnose_perf_event_open_fail.
11570
17ad2a4f
MM
115712018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11572
11573 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11574 Remove parameter and change return type. Update callers. Move it.
11575 (linux_enable_bts, linux_enable_pt): Improve error message.
11576 (linux_enable_pt): Remove zero buffer size check.
11577 (linux_enable_btrace): Improve error messages. Remove NULL return
11578 check.
11579
de6242d3
MM
115802018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11581
11582 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11583 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11584 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11585 (linux_supports_pt, linux_supports_btrace): Remove.
11586 (linux_enable_bts): Call cpu_supports_bts.
11587 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11588 * remote.c (remote_supports_btrace): Remove.
11589 (init_remote_ops): Remove remote_supports_btrace.
11590 * target-delegates.c: Regenerated.
11591 * target.c (target_supports_btrace): Remove.
11592 * target.h (target_ops) <to_supports_btrace>: Remove
11593 (target_supports_btrace): Remove.
11594 * x86-linux-nat.c (x86_linux_create_target): Remove
11595 linux_supports_btrace.
11596
9ee23a85
MM
115972018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11598
11599 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11600 btrace failed.
11601 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11602 exception and use message in own exception.
11603
5c3284c1
MM
116042018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11605
11606 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11607 (perf_event_pt_event_type): Use gdb_file_up.
11608 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11609 scoped_fd, and scoped_mmap.
11610
84696f37
MM
116112018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11612
11613 * common/scoped_mmap.h: New.
11614 * unittests/scoped_mmap-selftest.c: New.
11615 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11616 unittests/scoped_mmap-selftest.c.
11617
ea4a0888
MM
116182018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11619
11620 * common/scoped_fd.h: New.
11621 * unittests/scoped_fd-selftest.c: New.
11622 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11623 unittests/scoped_fd-selftest.c.
11624
869e8290
TT
116252018-02-09 Tom Tromey <tom@tromey.com>
11626
11627 * auto-load.c (auto_load_section_scripts): Use
11628 gdb::unique_xmalloc_ptr.
11629
a37a2ae7
TT
116302018-02-09 Tom Tromey <tom@tromey.com>
11631
11632 * auto-load.c (execute_script_contents): Use std::string.
11633
4e725347
JB
116342018-02-09 Joel Brobecker <brobecker@adacore.com>
11635
11636 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11637 Python function, rather than a new command.
11638
9a897d43
TT
116392018-02-08 Tom Tromey <tom@tromey.com>
11640
11641 * solib.c (solib_find_1): Use std::string.
11642 (solib_bfd_fopen): Use unique_xmalloc_ptr.
11643
58ef3771
TT
116442018-02-08 Tom Tromey <tom@tromey.com>
11645
11646 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11647
a9abc434
TT
116482018-02-08 Tom Tromey <tom@tromey.com>
11649
11650 * source.c (find_source_lines): Use gdb::def_vector.
11651
84f27c6f
TT
116522018-02-08 Tom Tromey <tom@tromey.com>
11653
11654 * macrocmd.c (struct temporary_macro_definition): New.
11655 (macro_define_command): Use temporary_macro_definition. Remove
11656 cleanups.
11657 (free_macro_definition_ptr): Remove.
11658
0354904b
TT
116592018-02-08 Tom Tromey <tom@tromey.com>
11660
11661 * macroexp.c (maybe_expand): Use std::string.
11662
1739cf24
TT
116632018-02-08 Tom Tromey <tom@tromey.com>
11664
11665 * macroexp.c (struct macro_buffer): Add initializers for some
11666 members.
11667 (init_buffer, init_shared_buffer, free_buffer)
11668 (free_buffer_return_text): Remove.
11669 (macro_buffer): New constructors.
11670 (~macro_buffer): New destructor.
11671 (macro_buffer::set_shared): New method.
11672 (macro_buffer::resize_buffer, macro_buffer::appendc)
11673 (macro_buffer::appendmem): Now methods, not free functions.
11674 (set_token, append_tokens_without_splicing, stringify)
11675 (macro_stringify): Update.
11676 (gather_arguments): Change return type. Remove argc_p argument,
11677 add args_ptr argument. Use std::vector.
11678 (substitute_args): Remove argc argument. Accept std::vector.
11679 (expand): Update. Use std::vector.
11680 (scan, macro_expand, macro_expand_next): Update.
11681
f6c2623e
TT
116822018-02-08 Tom Tromey <tom@tromey.com>
11683
11684 * symtab.c (default_collect_symbol_completion_matches_break_on):
11685 Use unique_xmalloc_ptr.
11686 * macroscope.h: (sal_macro_scope, user_macro_scope)
11687 (default_macro_scope): Return unique_xmalloc_ptr.
11688 * macroscope.c (sal_macro_scope, user_macro_scope)
11689 (default_macro_scope): Return unique_xmalloc_ptr.
11690 * macroexp.h (macro_expand, macro_expand_once): Return
11691 unique_xmalloc_ptr.
11692 * macroexp.c (macro_expand, macro_expand_once): Return
11693 unique_xmalloc_ptr.
11694 * macrocmd.c (macro_expand_command, macro_expand_once_command)
11695 (info_macro_command, info_macros_command): Use
11696 unique_xmalloc_ptr.
11697 * compile/compile-c-support.c (write_macro_definitions): Use
11698 unique_xmalloc_ptr.
11699 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11700
c2e0e465
SM
117012018-02-07 Simon Marchi <simon.marchi@ericsson.com>
11702
11703 * value.c (value_static_field): Assign field type instead of
11704 containing type when returning an optimized out value.
11705
3f8c94b4
YQ
117062018-02-06 Yao Qi <yao.qi@linaro.org>
11707
11708 * ft32-tdep.c (ft32_read_pc): Remove.
11709 (ft32_write_pc): Remove.
11710 (ft32_gdbarch_init): Update.
11711 * m32r-tdep.c (m32r_read_pc): Remove.
11712 (m32r_gdbarch_init): Update.
11713 * mep-tdep.c (mep_read_pc): Remove.
11714 (mep_gdbarch_init): Update.
11715 * microblaze-tdep.c (microblaze_write_pc): Remove.
11716 (microblaze_gdbarch_init): Update.
11717 * mn10300-tdep.c (mn10300_read_pc): Remove.
11718 (mn10300_write_pc): Remove.
11719 (mn10300_gdbarch_init): Update.
11720 * moxie-tdep.c (moxie_read_pc): Remove.
11721 (moxie_write_pc): Remove.
11722 (moxie_gdbarch_init): Update.
11723
bca65a23
YQ
117242018-02-06 Yao Qi <yao.qi@linaro.org>
11725
11726 * expprint.c (print_subexp_standard): Handle
11727 OP_F77_UNDETERMINED_ARGLIST.
11728 (dump_subexp_body_standard): Likewise.
11729
583e3f90 117302018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 11731
583e3f90
YQ
11732 * target-descriptions.c (tdesc_element_visitor) Add empty
11733 implementations.
b8df6ca7
AH
11734 (tdesc_type): Move make_gdb_type from here.
11735 (tdesc_type_builtin): Likewise.
11736 (tdesc_type_vector): Likewise.
11737 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11738 (make_gdb_type_struct): Move from tdesc_type_with_fields.
11739 (make_gdb_type_union): Likewise.
11740 (make_gdb_type_flags): Likewise.
11741 (make_gdb_type_enum): Likewise.
11742 (make_gdb_type): New function.
11743 (tdesc_register_type): Use static make_gdb_type.
11744
e813d34a
RK
117452018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11746
11747 * infcmd.c (default_print_one_register_info): Align natural-format
11748 column values consistently one under another.
11749 (pad_to_column): New function.
11750
0eb876f5
JB
117512018-02-05 Joel Brobecker <brobecker@adacore.com>
11752
11753 * dwarf2read.c (dwarf2_physname): Move commment.
11754
0625771b
LS
117552018-02-01 Leszek Swirski <leszeks@google.com>
11756
11757 * varobj.c (varobj_formatted_print_options): Allow recursive
11758 pretty printing if pretty printing is enabled.
11759
59498c30
LS
117602018-02-01 Leszek Swirski <leszeks@google.com>
11761
11762 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11763 names after a structop as a filename.
11764
2d9e6acb
YQ
117652018-02-01 Yao Qi <yao.qi@linaro.org>
11766
11767 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11768 (arm_record_coproc_data_proc): Likewise.
11769
df95a9cf
YQ
117702018-02-01 Yao Qi <yao.qi@linaro.org>
11771
11772 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11773
07e5f5cf
NP
117742018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11775
11776 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11777 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11778
3045b475
PA
117792018-01-31 Pedro Alves <palves@redhat.com>
11780
11781 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11782 * inflow.c (child_terminal_save_inferior): Wrap reference to
11783 tcgetpgrp in HAVE_TERMIOS_H.
11784 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11785 _WIN32.
11786 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11787 always iterate over all inferiors.
11788 (gdbsim_cntrl_c): Adjust.
11789 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11790
929b5ad4
JB
117912018-01-31 Joel Brobecker <brobecker@adacore.com>
11792
11793 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11794 index type is objfile-owned if the element type is as well.
11795
29236ca2
JB
117962018-01-31 Joel Brobecker <brobecker@adacore.com>
11797
11798 GDB 8.1 released.
11799
c81e8879
PR
118002018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11801
11802 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11803 "features/s390x-linux64.c".
11804 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11805 s390_linux32 and s390x_linux64.
11806 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11807 default tdesc.
11808 * s390-tdep.c: Include "features/s390-linux32.c" and
11809 "features/s390x-linux64.c".
11810 (s390_tdesc_valid): Add check for tdesc_has_registers.
11811 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11812 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11813 tdesc_s390x_linux64.
11814 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11815 tdesc_s390x_linux64 to...
11816 * s390-tdep.h: ...here.
11817
e671cd59
PA
118182018-01-30 Pedro Alves <palves@redhat.com>
11819
11820 PR gdb/13211
11821 * config.in, configure: Regenerate.
11822 * configure.ac: Check for getpgid.
11823 * go32-nat.c (go32_pass_ctrlc): New.
11824 (go32_target): Install it.
11825 * inf-child.c (inf_child_target): Install
11826 child_terminal_save_inferior, child_pass_ctrlc and
11827 child_interrupt.
11828 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11829 (inf_ptrace_target): No longer install it.
11830 * infcmd.c (interrupt_target_1): Adjust.
11831 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11832 (child_interrupt): Declare.
11833 (inferior::terminal_state): New.
11834 * inflow.c (struct terminal_info): Update comments.
11835 (inferior_process_group): Delete.
11836 (terminal_is_ours): Delete.
11837 (gdb_tty_state): New.
11838 (child_terminal_init): Adjust.
11839 (is_gdb_terminal, sharing_input_terminal_1)
11840 (sharing_input_terminal): New functions.
11841 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
11842 Set the process's actual process group in the foreground if
11843 possible. Handle is_ours_for_output/is_ours distinction. Don't
11844 mark terminal as the inferior's if not sharing GDB's terminal.
11845 Don't check attach_flag.
11846 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11847 pass down a target_terminal_state.
11848 (child_terminal_save_inferior): New, factored out from ...
11849 (child_terminal_ours_1): ... this. Handle
11850 target_terminal_state::is_ours_for_output.
11851 (child_interrupt, child_pass_ctrlc): New.
11852 (inflow_inferior_exit): Clear the inferior's terminal_state.
11853 (copy_terminal_info): Copy the inferior's terminal state.
11854 (_initialize_inflow): Remove reference to terminal_is_ours.
11855 * inflow.h (inferior_process_group): Delete.
11856 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11857 * procfs.c (procfs_target): Don't install procfs_interrupt.
11858 (procfs_interrupt): Delete.
11859 * remote.c (remote_serial_quit_handler): Adjust.
11860 (remote_interrupt): Remove ptid parameter. Adjust.
11861 * target-delegates.c: Regenerate.
11862 * target.c: Include "terminal.h".
11863 (target_terminal::terminal_state): Rename to ...
11864 (target_terminal::m_terminal_state): ... this.
11865 (target_terminal::init): Adjust.
11866 (target_terminal::inferior): Adjust to per-inferior
11867 terminal_state.
11868 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
11869 (target_terminal::ours, target_terminal::ours_for_output): Use
11870 target_terminal_is_ours_kind.
11871 (target_interrupt): Remove ptid parameter. Adjust.
11872 (default_target_pass_ctrlc): Adjust.
11873 * target.h (target_ops::to_terminal_save_inferior): New field.
11874 (target_ops::to_interrupt): Remove ptid_t parameter.
11875 (target_interrupt): Remove ptid_t parameter. Update comment.
11876 (target_pass_ctrlc): Update comment.
11877 * target/target.h (target_terminal_state): New scoped enum,
11878 factored out of ...
11879 (target_terminal::terminal_state): ... here.
11880 (target_terminal::inferior): Update comments.
11881 (target_terminal::restore_inferior): New.
11882 (target_terminal::is_inferior, target_terminal::is_ours)
11883 (target_terminal::is_ours_for_output): Adjust.
11884 (target_terminal::scoped_restore_terminal_state): Adjust to
11885 rename, and call restore_inferior() instead of inferior().
11886 (target_terminal::scoped_restore_terminal_state::m_state): Change
11887 type.
11888 (target_terminal::terminal_state): Rename to ...
11889 (target_terminal::m_terminal_state): ... this and change type.
11890
9c3a5d93
PA
118912018-01-30 Pedro Alves <palves@redhat.com>
11892
11893 * linux-nat.c (wait_for_signal): New function.
11894 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
11895 directly.
11896 (async_terminal_is_ours)
11897 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
11898 (linux_nat_add_target): Don't override
11899 to_terminal_inferior/to_terminal_ours.
11900
69ab5edb
SDJ
119012018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
11902
11903 * remote.c (remote_follow_fork): Don't call "detach_inferior".
11904
fc8e7e75
SM
119052018-01-28 Simon Marchi <simon.marchi@ericsson.com>
11906
11907 * dwarf2read.c (free_dwo_files): Add forward-declaration.
11908 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
11909 dwarf2_per_objfile_free here.
11910 (dwarf2_per_objfile_free): Remove.
11911 (_initialize_dwarf2_read): Don't register
11912 dwarf2_per_objfile_free as a registry cleanup.
11913
b2a426e2
EZ
119142018-01-27 Eli Zaretskii <eliz@gnu.org>
11915
11916 Avoid compilation errors in MinGW native builds
11917
11918 The error is triggered by including python-internal.h, and the
11919 error message is:
11920
11921 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
11922 from build-gnulib/import/math.h:27,
11923 from d:/usr/Python26/include/pyport.h:235,
11924 from d:/usr/Python26/include/Python.h:58,
11925 from python/python-internal.h:94,
11926 from python/py-arch.c:24:
11927 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
11928 using ::hypot;
11929 ^~~~~
11930
11931 This happens because Python headers define 'hypot' to expand t
11932 '_hypot' in the Windows builds.
11933 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
11934 'hypoth'. This avoids a compilation error.
11935
0bdd8eac
AH
119362018-01-26 Alan Hayward <alan.hayward@arm.com>
11937
11938 * MAINTAINERS (Write After Approval): Fix ordering.
11939
56ae9dc3
AH
119402018-01-26 Alan Hayward <alan.hayward@arm.com>
11941
11942 * MAINTAINERS (Write After Approval): Add Alan Hayward.
11943
7433498b
AM
119442018-01-26 Alan Modra <amodra@gmail.com>
11945
11946 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
11947 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
11948 Remove nop. Make const. Comment.
11949 (powerpc32_plt_stub_so_2): New.
11950 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
11951 Correct count. Update uses.
11952 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
11953 Move common code reading PLT entry word. Correct
11954 powerpc32_plt_stub PLT address calculation.
11955 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
11956 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
11957 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
11958 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
11959 (ppc64_standard_linkage8): Likewise.
11960 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
11961 Correct insns description.
11962 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
11963
0f59d5fc
PA
119642018-01-24 Pedro Alves <palves@redhat.com>
11965
11966 GCC PR libstdc++/83906
11967 * gdbtypes.c (operator==(const dynamic_prop &,
11968 const dynamic_prop &)): New.
11969 (operator==(const range_bounds &, const range_bounds &)): New.
11970 (check_types_equal): Use them instead of memcmp.
11971 * gdbtypes.h (operator==(const dynamic_prop &,
11972 const dynamic_prop &)): Declare.
11973 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
11974 (operator==(const range_bounds &, const range_bounds &)): Declare.
11975 (operator!=(const range_bounds &, const range_bounds &)): Declare.
11976
ef8914a4
PR
119772018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11978
11979 * s390-linux-tdep.c (s390_record_address_mask)
11980 (s390_record_calc_disp_common, s390_record_calc_disp)
11981 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11982 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11983 (s390_process_record): Move to s390-tdep.c.
11984 (s390_linux_init_abi_any): Adjust.
11985 * s390-tdep.c (s390_record_address_mask)
11986 (s390_record_calc_disp_common, s390_record_calc_disp)
11987 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11988 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11989 (s390_process_record): Moved from s390-linux-tdep.c
11990 (s390_gdbarch_init): Adjust.
11991
d6e58945
PR
119922018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11993
11994 * s390-linux-nat.c (s390-tdep.h): New include.
11995 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
11996 (HFILES_NO_SRCDIR): Add s390-tdep.h.
11997 (ALLDEPFILES): Add s390-tdep.c.
11998 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
11999 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12000 * s390-tdep.h: ...this. New file.
12001 * s390-linux-tdep.c (s390-tdep.h): New include.
12002 (_initialize_s390_tdep): Rename to...
12003 (_initialize_s390_linux_tdep): ...this and adjust.
12004 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12005 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12006 s390-tdep.h.
12007 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12008 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12009 (s390_is_partial_instruction, s390_software_single_step)
12010 (is_non_branch_ril, s390_displaced_step_copy_insn)
12011 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12012 (s390_prologue_data, s390_addr, s390_store, s390_load)
12013 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12014 (s390_register_call_saved, s390_guess_tracepoint_registers)
12015 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12016 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12017 (s390_pseudo_register_name, s390_pseudo_register_type)
12018 (s390_pseudo_register_read, s390_pseudo_register_write)
12019 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12020 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12021 (s390_addr_bits_remove, s390_address_class_type_flags)
12022 (s390_address_class_type_flags_to_name)
12023 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12024 (s390_function_arg_float, s390_function_arg_vector)
12025 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12026 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12027 (s390_frame_align, s390_register_return_value, s390_return_value)
12028 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12029 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12030 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12031 (s390_trad_frame_prev_register, s390_unwind_cache)
12032 (s390_prologue_frame_unwind_cache)
12033 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12034 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12035 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12036 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12037 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12038 (s390_frame_base_address, s390_local_base_address)
12039 (s390_frame_base, s390_gcc_target_options)
12040 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12041 (s390_validate_reg_range, s390_tdesc_valid)
12042 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12043 * s390-tdep.c: ...this. New file.
12044
9c0b896e
PR
120452018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12046
12047 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12048 (s390_process_record, s390_gdbarch_tdep_alloc)
12049 (s390_linux_init_abi_any): Use/set new hook.
12050
7042632b
PR
120512018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12052
12053 * s390-linux-tdep.c (osabi.h): New include.
12054 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12055 (s390_linux_init_abi_any): New functions.
12056 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12057
650f5e13
PR
120582018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12059
12060 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12061 tdesc_has_registers check
12062
47c9317e
PR
120632018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12064
12065 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12066 (s390_validate_reg_range): New macro.
12067 (s390_gdbarch_init): Adjust.
12068
095085d8
PR
120692018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12070
12071 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12072 (s390_gdbarch_tdep_alloc): Adjust.
12073 (s390_gdbarch_init): Adjust.
12074
ab9bcc67
PR
120752018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12076
12077 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12078 <have_tdb>: Change type to bool.
12079 (s390_gdbarch_tdep_alloc): Adjust.
12080 (s390_gdbarch_init): Adjust.
12081
21f6f5ff
PR
120822018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12083
12084 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12085 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12086 (s390_gdbarch_tdep_alloc): New function.
12087 (s390_gdbarch_init): Allocate tdep at start and use its fields
12088 instead of separate variables.
12089
0eb97953
PR
120902018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12091
12092 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12093 when looking for cached gdbarch and add comment for remaining.
12094
5c319bb2
PA
120952018-01-22 Pedro Alves <palves@redhat.com>
12096 Sergio Durigan Junior <sergiodj@redhat.com>
12097
12098 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12099 case.
12100
d65ce302
MR
121012018-01-22 Maciej W. Rozycki <macro@mips.com>
12102
12103 * MAINTAINERS: Update my company e-mail address.
12104
ec7a5fcb
YQ
121052018-01-22 Yao Qi <yao.qi@linaro.org>
12106
12107 * regcache.c (cooked_write_test): New function.
12108 (_initialize_regcache): Register the test.
12109
11f57cb6
YQ
121102018-01-22 Yao Qi <yao.qi@linaro.org>
12111
12112 * ia64-tdep.c (ia64_pseudo_register_read): Call
12113 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12114 * m32c-tdep.c (m32c_cat_read): Likewise.
12115 (m32c_r3r2r1r0_read): Likewise.
12116 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12117 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12118
03f50fc8
YQ
121192018-01-22 Yao Qi <yao.qi@linaro.org>
12120
12121 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12122 method raw_read instead of regcache_raw_read.
12123 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12124 * arm-tdep.c (arm_neon_quad_read): Likewise.
12125 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12126 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12127 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12128 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12129 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12130 (i386_pseudo_register_read_into_value): Likewise.
12131 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12132 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12133 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12134 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12135 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12136 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12137 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12138 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12139 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12140
dc711524
YQ
121412018-01-22 Yao Qi <yao.qi@linaro.org>
12142
12143 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12144 * configure.tgt: Remove target mt.
12145 * mt-tdep.c: Remove.
12146 * regcache.c (cooked_read_test): Remove the check for mt.
12147
3f5a868b
YQ
121482018-01-22 Yao Qi <yao.qi@linaro.org>
12149
12150 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12151 instead of gdbarch_pseudo_register_read_value.
12152
de4cb04a
JB
121532018-01-22 Joel Brobecker <brobecker@adacore.com>
12154
12155 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12156 language is Ada.
12157
a9e40818
JB
121582018-01-22 Joel Brobecker <brobecker@adacore.com>
12159
12160 * linespec.c (create_sals_line_offset): Remove code that preserved
12161 the symtab_and_line's line number.
12162
e707fc44
AB
121632018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12164
12165 * varobj.c (varobj_create): Don't set valid_block when creating a
12166 floating varobj.
12167
03d0bf7b
AB
121682018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12169
12170 * varobj.c (varobj_create): Remove out of date comment.
12171
ae451627
AB
121722018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12173
12174 PR mi/20395
12175 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12176 updating innermost block.
12177 * parse.c (innermost_block_tracker::update): Take extra type
12178 parameter, and check types match before updating innermost block.
12179 (write_dollar_variable): Update innermost block for registers.
12180 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12181 (innermost_block_tracker::innermost_block_tracker): Initialise
12182 m_types member.
12183 (innermost_block_tracker::reset): Take type parameter.
12184 (innermost_block_tracker::update): Take type parameter, and pass
12185 type through as needed.
12186 (innermost_block_tracker::m_types): New member.
12187 * varobj.c (varobj_create): Pass type when reseting innermost
12188 block.
12189
aee1fcdf
AB
121902018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12191
12192 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12193 * ada-lang.c (resolve_subexp): Likewise.
12194 * breakpoint.c (set_breakpoint_condition) Likewise.
12195 (watch_command_1) Likewise.
12196 * c-exp.y (variable): Likewise.
12197 * d-exp.y (PrimaryExpression): Likewise.
12198 * f-exp.y (variable): Likewise.
12199 * go-exp.y (variable): Likewise.
12200 * m2-exp.y (variable): Likewise.
12201 * objfiles.c (objfile::~objfile): Likewise.
12202 * p-exp.y (variable): Likewise.
12203 * parse.c (innermost_block): Change type.
12204 * parser-defs.h (class innermost_block_tracker): New.
12205 (innermost_block): Change to innermost_block_tracker.
12206 * printcmd.c (display_command): Switch to innermost_block API.
12207 (do_one_display): Likewise.
12208 * rust-exp.y (do_one_display): Likewise.
12209 * symfile.c (clear_symtab_users): Likewise.
12210 * varobj.c (varobj_create): Switch to innermost_block API, replace
12211 use of innermost_block with block stored on varobj object.
12212
396af9a1
AB
122132018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12214
12215 * expression.h (innermost_block): Remove declaration.
12216 * varobj.c: Add 'parser-defs.h' include.
12217
fcfcc376
TT
122182018-01-19 Tom Tromey <tom@tromey.com>
12219
12220 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12221 symbols in the static and global blocks.
12222
5a6c3296
JC
122232018-01-19 James Clarke <jrtc27@jrtc27.com>
12224
12225 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12226 gdb_ptrace.h, and move including gdb_wait.h ...
12227 * nat/linux-ptrace.h: ... to here.
12228
bc09b0c1
SM
122292018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12230
12231 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12232 inf_ptrace_detach_success.
12233 (inf_ptrace_detach_success): Add inferior parameter, use it
12234 instead of inferior_ptid, pass it to detach_inferior.
12235 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12236 parameter.
12237 * inferior.c (detach_inferior): Add overload that takes an
12238 inferior object.
12239 * inferior.h (detach_inferior): Likewise.
12240 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12241 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12242 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12243
6e1e1966
SM
122442018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12245
12246 * target.h (struct target_ops) <to_detach>: Add inferior
12247 parameter.
12248 (target_detach): Likewise.
12249 * target.c (dispose_inferior): Pass inferior down.
12250 (target_detach): Pass inferior down. Assert that it is equal to
12251 the current inferior.
12252 * aix-thread.c (aix_thread_detach): Pass inferior down.
12253 * corefile.c (core_file_command): Pass current_inferior() down.
12254 * corelow.c (core_detach): Add inferior parameter.
12255 * darwin-nat.c (darwin_detach): Likewise.
12256 * gnu-nat.c (gnu_detach): Likewise.
12257 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12258 * infcmd.c (detach_command): Pass current_inferior() down to
12259 target_detach.
12260 * infrun.c (follow_fork_inferior): Pass parent_inf to
12261 target_detach.
12262 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12263 target_detach.
12264 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12265 * linux-thread-db.c (thread_db_detach): Likewise.
12266 * nto-procfs.c (procfs_detach): Likewise.
12267 * procfs.c (procfs_detach): Likewise.
12268 * record.c (record_detach): Likewise.
12269 * record.h (struct inferior): Forward-declare.
12270 (record_detach): Add inferior parameter.
12271 * remote-sim.c (gdbsim_detach): Likewise.
12272 * remote.c (remote_detach_1): Likewise.
12273 (remote_detach): Likewise.
12274 (extended_remote_detach): Likewise.
12275 * sol-thread.c (sol_thread_detach): Likewise.
12276 * target-debug.h (target_debug_print_inferior_p): New macro.
12277 * target-delegates.c: Re-generate.
12278 * top.c (kill_or_detach): Pass inferior down to target_detach.
12279 * windows-nat.c (windows_detach): Add inferior parameter.
12280
6bd6f3b6
SM
122812018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12282
12283 * target.h (struct target_ops) <to_detach>: Remove args
12284 parameter.
12285 (target_detach): Likewise.
12286 * target.c (dispose_inferior): Adjust.
12287 (target_detach): Remove args parameter, adjust.
12288 * aix-thread.c (aix_thread_detach): Adjust.
12289 * corefile.c (core_file_command): Adjust.
12290 * corelow.c (core_detach): Adjust.
12291 * darwin-nat.c (darwin_detach): Adjust.
12292 * gnu-nat.c (gnu_detach): Adjust.
12293 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12294 * infcmd.c (detach_command): Adjust
12295 * infrun.c (follow_fork_inferior): Adjust.
12296 (handle_vfork_child_exec_or_exit): Adjust.
12297 * linux-fork.c (linux_fork_detach): Remove args parameter.
12298 * linux-fork.h (linux_fork_detach): Likewise.
12299 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12300 * linux-thread-db.c (thread_db_detach): Likewise.
12301 * nto-procfs.c (procfs_detach): Likewise.
12302 * procfs.c (procfs_detach): Likewise.
12303 (do_detach): Remove signo parameter.
12304 * record.c (record_detach): Remove args parameter.
12305 * record.h (record_detach): Likewise.
12306 * remote-sim.c (gdbsim_detach): Likewise.
12307 * remote.c (remote_detach_1): Likewise.
12308 (remote_detach): Likewise.
12309 (extended_remote_detach): Likewise.
12310 * sol-thread.c (sol_thread_detach): Likewise.
12311 * target-delegates.c: Re-generate.
12312 * top.c (struct qt_args) <args>: Remove field.
12313 (kill_or_detach): Don't pass args.
12314 (quit_force): Don't set args.
12315 * windows-nat.c (windows_detach): Remove args parameter.
12316
88af8ea8
YQ
123172018-01-19 Yao Qi <yao.qi@linaro.org>
12318
12319 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12320 (arm_linux_init_abi): Install it.
12321
dea445b9
YQ
123222018-01-19 Yao Qi <yao.qi@linaro.org>
12323
12324 * osabi.c (gdb_osabi_names): Extend the regexp for
12325 arm-linux-gnueabihf.
12326
4a17f768
YQ
123272018-01-18 Yao Qi <yao.qi@linaro.org>
12328
12329 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12330 m_abbrevs.
12331 (abbrev_table::add_abbrev): Update.
12332 (abbrev_table::lookup_abbrev): Update.
12333
d679c21a
YQ
123342018-01-18 Yao Qi <yao.qi@linaro.org>
12335
12336 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12337
7d937cad
SDJ
123382018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12339
12340 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12341 to "std::string".
12342
9e14690d
TT
123432018-01-17 Tom Tromey <tom@tromey.com>
12344
12345 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12346
50a82047
TT
123472018-01-17 Tom Tromey <tom@tromey.com>
12348
12349 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12350 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12351 (create_array_type_with_stride): Update.
12352 * dwarf2read.c (set_die_type): Update.
12353
c89b44cd
TT
123542018-01-17 Tom Tromey <tom@tromey.com>
12355
12356 * dwarf2read.c (delayed_method_info): Remove typedef.
12357 (dwarf2_cu::method_info): Now a std::vector.
12358 (add_to_method_list): Update.
12359 (free_delayed_list): Remove.
12360 (compute_delayed_physnames): Update.
12361 (process_full_comp_unit, process_full_type_unit): Clear the method
12362 list. Remove cleanups.
12363 (psymtab_include_file_name): Add name_holder parameter. Use
12364 unique_xmalloc_ptr.
12365 (dwarf_decode_lines): Update.
12366
fcd3b13d
SM
123672018-01-17 Tom Tromey <tom@tromey.com>
12368 Simon Marchi <simon.marchi@ericsson.com>
12369
12370 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12371 (dwarf2_per_objfile::free_cached_comp_units)
12372 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12373 (init_cutu_and_read_dies_no_follow): Update.
12374 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12375 (dwarf2_cu::~dwarf2_cu): New.
12376 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12377 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12378
685af9cd
TT
123792018-01-17 Tom Tromey <tom@tromey.com>
12380 Simon Marchi <simon.marchi@ericsson.com>
12381
12382 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12383 (struct die_reader_specs) <abbrev_table>: New member.
12384 (struct abbrev_table): Add constructor.
12385 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12386 <abbrev_obstack>: Now an auto_obstack.
12387 (abbrev_table_up): New typedef.
12388 (init_cu_die_reader): Add abbrev_table parameter.
12389 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12390 Add result_dwo_abbrev_table.
12391 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12392 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12393 Update.
12394 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12395 parameter.
12396 (skip_children): Update.
12397 (abbrev_table::alloc_abbrev): Rename from
12398 abbrev_table_alloc_abbrev.
12399 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12400 (abbrev_table::lookup_abbrev): Rename from
12401 abbrev_table_lookup_abbrev.
12402 (abbrev_table_read_table): Return abbrev_table_up.
12403 (abbrev_table_free, abbrev_table_free_cleanup)
12404 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12405 (load_partial_dies): Update.
12406
5e2db402
TT
124072018-01-17 Tom Tromey <tom@tromey.com>
12408
12409 * dwarf2read.c (dwarf2_compute_name): Update comment.
12410 (read_func_scope, read_variable): Update.
12411 (new_symbol): Remove.
12412 (new_symbol_full): Rename to new_symbol.
12413
ee7f689e 124142018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
12415
12416 PR gdb/16577
12417 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12418 a warning instead of throwing an error, set section size to 0 and return
12419 NULL.
12420 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12421
4d9b86e1
SM
124222018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12423
12424 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12425 std::string.
12426 (linux_ptrace_attach_fail_reason_string): Likewise.
12427 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12428 Likewise.
12429 (linux_ptrace_attach_fail_reason_string): Likewise.
12430 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12431
a7b2d0fb
SM
124322018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12433
12434 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12435
f517c180
EA
124362018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12437
12438 PR gdb/21559
12439 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12440 checking for fs_base/gs_base fields in struct user_regs_struct.
12441 * configure: Regenerate.
12442
7045b1ca
YQ
124432018-01-17 Yao Qi <yao.qi@linaro.org>
12444
12445 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12446 function.
12447 (aarch64_linux_init_abi): Install it to gdbarch hook
12448 gcc_target_options.
12449
db422fb2
PA
124502018-01-15 Pedro Alves <palves@redhat.com>
12451
12452 * common/signals-state-save-restore.c
12453 (save_original_signals_state): Fix typos.
12454
ba643918
SDJ
124552017-01-12 Tom Tromey <tom@tromey.com>
12456 Sergio Durigan Junior <sergiodj@redhat.com>
12457
12458 * Makefile.in (install-only): Install gdb-add-index.
12459
906b4aac
JB
124602018-01-12 John Baldwin <jhb@FreeBSD.org>
12461
12462 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12463
bdf2a94a
AA
124642018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12465
12466 * infrun.c (keep_going_pass_signal): Clear step-over info when
12467 insert_breakpoints fails.
12468
71d378ae
PA
124692018-01-11 Pedro Alves <palves@redhat.com>
12470
12471 PR gdb/22583
12472 * infrun.c (resume): Rename to ...
12473 (resume_1): ... this.
12474 (resume): Reimplement as wrapper around resume_1.
12475
3cada740
PA
124762018-01-11 Pedro Alves <palves@redhat.com>
12477
12478 PR remote/22597
12479 * remote.c (remote_parse_stop_reply): Default to the last-set
12480 general thread instead of to 'magic_null_ptid'.
12481
618daa93
PA
124822018-01-10 Pedro Alves <palves@redhat.com>
12483
12484 * language.h (language_get_symbol_name_matcher): Rename ...
12485 (get_symbol_name_matcher): ... this.
12486 * language.c (language_get_symbol_name_matcher): Ditto.
12487 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12488 callers adjusted.
12489
c63d3e8d
PA
124902018-01-10 Pedro Alves <palves@redhat.com>
12491
12492 PR gdb/22670
12493 * dwarf2read.c
12494 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12495 Adjust to use language_get_symbol_name_matcher instead of
12496 language_defn::la_get_symbol_name_matcher.
12497 * language.c (language_get_symbol_name_matcher): If in Ada mode
12498 and the lookup name is a verbatim match, return Ada's matcher.
12499 * language.h (language_get_symbol_name_matcher): Adjust comment.
12500 (ada_lookup_name_info::verbatim_p):: New method.
12501
d4c2a405
PA
125022018-01-10 Pedro Alves <palves@redhat.com>
12503
12504 PR gdb/22670
12505 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12506 minsym's language is language_auto or language_cplus, pass down
12507 language_ada instead.
12508 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12509
8825213e
PA
125102018-01-10 Pedro Alves <palves@redhat.com>
12511
12512 PR gdb/22670
12513 * minsyms.c (linkage_name_str): New function.
12514 (iterate_over_minimal_symbols): Use it.
12515
2d97a5d9
JB
125162018-01-09 John Baldwin <jhb@FreeBSD.org>
12517
12518 * NEWS: Document that 'info proc' now works on FreeBSD.
12519
92fce24d
JB
125202018-01-09 John Baldwin <jhb@FreeBSD.org>
12521
12522 * configure.ac: Check for kinfo_getfile in libutil.
12523 * configure: Regenerate.
12524 * config.in: Regenerate.
12525 * fbsd-nat.c: Include "fbsd-tdep.h".
12526 (fbsd_fetch_cmdline): New.
12527 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12528 rather than calling error.
12529 (fbsd_info_proc): New.
12530 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12531 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12532 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12533
262f62f5
JB
125342018-01-09 John Baldwin <jhb@FreeBSD.org>
12535
12536 * fbsd-nat.c (struct free_deleter): Remove.
12537 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12538
b999e203
JB
125392018-01-09 John Baldwin <jhb@FreeBSD.org>
12540
12541 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12542 NULL for an empty pathname.
12543
d2176225
JB
125442018-01-09 John Baldwin <jhb@FreeBSD.org>
12545
12546 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12547 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12548 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12549 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12550 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12551 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12552 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12553 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12554 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12555 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12556 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12557 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12558 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12559 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12560 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12561
9c4ac400
ST
125622018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12563
12564 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12565 (gnu_xfer_auxv): New function.
12566 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12567 TARGET_OBJECT_AUXV.
12568
1e5ded6c
YQ
125692018-01-08 Yao Qi <yao.qi@linaro.org>
12570 Simon Marchi <simon.marchi@ericsson.com>
12571
12572 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12573 common/selftest.c.
12574 (COMMON_OBS): Remove selftest.o.
12575 * configure.ac: Append selftest-arch.c and common/selftest.c to
12576 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12577 * configure: Re-generated.
12578 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12579 GDB_SELF_TEST.
12580 (maintenance_info_selftests): Likewise.
12581
04bafb1e
XR
125822018-01-08 Xavier Roirand <roirand@adacore.com>
12583
12584 * ada-valprint.c (val_print_packed_array_elements): Use
12585 proper number of elements when printing an array indexed
12586 by an enumeration type.
12587
518817b3
SM
125882018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12589
12590 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12591 (dw2_get_file_names_reader): Adjust.
12592 (lookup_dwo_signatured_type): Adjust.
12593 (lookup_dwp_signatured_type): Adjust.
12594 (lookup_signatured_type): Adjust.
12595 (create_type_unit_group): Adjust.
12596 (get_type_unit_group): Adjust.
12597 (process_psymtab_comp_unit_reader): Adjust.
12598 (build_type_psymtabs_reader): Adjust.
12599 (scan_partial_symbols): Adjust.
12600 (add_partial_symbol): Adjust.
12601 (add_partial_subprogram): Adjust.
12602 (peek_die_abbrev): Adjust.
12603 (fixup_go_packaging): Adjust.
12604 (process_imported_unit_die): Adjust.
12605 (dwarf2_compute_name): Adjust.
12606 (dwarf2_physname): Adjust.
12607 (read_import_statement): Adjust.
12608 (handle_DW_AT_stmt_list): Adjust.
12609 (read_file_scope): Adjust.
12610 (read_func_scope): Adjust.
12611 (read_lexical_block_scope): Adjust.
12612 (read_call_site_scope): Adjust.
12613 (read_variable): Adjust.
12614 (dwarf2_rnglists_process): Adjust.
12615 (dwarf2_ranges_process): Adjust.
12616 (dwarf2_ranges_read): Adjust.
12617 (dwarf2_get_pc_bounds): Adjust.
12618 (dwarf2_record_block_ranges): Adjust.
12619 (dwarf2_add_field): Adjust.
12620 (dwarf2_add_member_fn): Adjust.
12621 (read_structure_type): Adjust.
12622 (process_structure_scope): Adjust.
12623 (read_enumeration_type): Adjust.
12624 (read_array_type): Adjust.
12625 (mark_common_block_symbol_computed): Adjust.
12626 (read_common_block): Adjust.
12627 (read_namespace_type): Adjust.
12628 (read_namespace): Adjust.
12629 (read_module_type): Adjust.
12630 (read_tag_pointer_type): Adjust.
12631 (read_tag_ptr_to_member_type): Adjust.
12632 (read_tag_string_type): Adjust.
12633 (read_subroutine_type): Adjust.
12634 (read_typedef): Adjust.
12635 (read_base_type): Adjust.
12636 (attr_to_dynamic_prop): Adjust.
12637 (read_subrange_type): Adjust.
12638 (read_unspecified_type): Adjust.
12639 (dwarf2_read_abbrevs): Adjust.
12640 (load_partial_dies): Adjust.
12641 (read_partial_die): Adjust.
12642 (find_partial_die): Adjust.
12643 (guess_partial_die_structure_name): Adjust.
12644 (fixup_partial_die): Adjust.
12645 (read_attribute_value): Adjust.
12646 (read_addr_index): Adjust.
12647 (read_addr_index_from_leb128): Adjust.
12648 (read_str_index): Adjust.
12649 (dwarf2_string_attr): Adjust.
12650 (get_debug_line_section): Adjust.
12651 (dwarf_decode_line_header): Adjust.
12652 (lnp_state_machine::check_line_address): Adjust.
12653 (dwarf_decode_lines_1): Adjust.
12654 (dwarf_decode_lines): Adjust.
12655 (dwarf2_start_symtab): Adjust.
12656 (var_decode_location): Adjust.
12657 (new_symbol_full): Adjust.
12658 (dwarf2_const_value_data): Adjust.
12659 (dwarf2_const_value_attr): Adjust.
12660 (dwarf2_const_value): Adjust.
12661 (die_type): Adjust.
12662 (die_containing_type): Adjust.
12663 (build_error_marker_type): Adjust.
12664 (lookup_die_type): Adjust.
12665 (guess_full_die_structure_name): Adjust.
12666 (anonymous_struct_prefix): Adjust.
12667 (determine_prefix): Adjust.
12668 (dwarf2_name): Adjust.
12669 (follow_die_ref_or_sig): Adjust.
12670 (follow_die_offset): Adjust.
12671 (follow_die_ref): Adjust.
12672 (follow_die_sig_1): Adjust.
12673 (follow_die_sig): Adjust.
12674 (get_signatured_type): Adjust.
12675 (get_DW_AT_signature_type): Adjust.
12676 (decode_locdesc): Adjust.
12677 (dwarf_decode_macros): Adjust.
12678 (cu_debug_loc_section): Adjust.
12679 (fill_in_loclist_baton): Adjust.
12680 (dwarf2_symbol_mark_computed): Adjust.
12681 (init_one_comp_unit): Don't assign
12682 dwarf2_cu::dwarf2_per_objfile.
12683 (set_die_type): Adjust.
12684
ed2dc618
SM
126852018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12686
12687 * dwarf2read.c (struct mapped_debug_names): Add constructor.
12688 <dwarf2_per_objfile>: New field.
12689 (dwarf2_per_objfile): Remove global.
12690 (get_dwarf2_per_objfile): New function.
12691 (set_dwarf2_per_objfile): New function.
12692 (dwarf2_build_psymtabs_hard): Change objfile parameter to
12693 dwarf2_per_objfile.
12694 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12695 (read_abbrev_offset): Likewise.
12696 (read_indirect_string): Likewise.
12697 (read_indirect_line_string): Likewise.
12698 (read_indirect_string_at_offset): Likewise.
12699 (read_indirect_string_from_dwz): Likewise.
12700 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12701 dwarf2_per_objfile.
12702 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12703 (create_all_comp_units): Change objfile parameter to
12704 dwarf2_per_objfile.
12705 (create_all_type_units): Likewise.
12706 (process_queue): Add dwarf2_per_objfile parameter.
12707 (read_and_check_comp_unit_head): Likewise.
12708 (lookup_dwo_unit_in_dwp): Likewise.
12709 (get_dwp_file): Likewise.
12710 (process_cu_includes): Likewise.
12711 (struct free_dwo_file_cleanup_data): New struct.
12712 (dwarf2_has_info): Use get_dwarf2_per_objfile and
12713 set_dwarf2_per_objfile.
12714 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12715 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12716 context, adjust calls.
12717 (dw2_instantiate_symtab): Likewise.
12718 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12719 (dw2_get_cu): Likewise.
12720 (create_cu_from_index_list): Change objfile parameter to
12721 dwarf2_per_objfile.
12722 (create_cus_from_index_list): Get dwarf2_per_objfile from
12723 context, adjust calls.
12724 (create_cus_from_index): Likewise.
12725 (create_signatured_type_table_from_index): Change objfile
12726 parameter to dwarf2_per_objfile.
12727 (create_signatured_type_table_from_debug_names): Change objfile
12728 parameter to dwarf2_per_objfile.
12729 (create_addrmap_from_index): Likewise.
12730 (create_addrmap_from_aranges): Likewise.
12731 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12732 (dw2_setup): Remove.
12733 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12734 context.
12735 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12736 get_dwarf2_per_objfile.
12737 (dw2_forget_cached_source_info): Likewise.
12738 (dw2_map_symtabs_matching_filename): Likewise.
12739 (struct dw2_symtab_iterator) <index>: Remove.
12740 <dwarf2_per_objfile>: New field.
12741 (dw2_symtab_iter_init): Replace index parameter with
12742 dwarf2_per_objfile.
12743 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12744 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12745 (dw2_print_stats): Likewise.
12746 (dw2_dump): Likewise.
12747 (dw2_expand_symtabs_for_function): Likewise.
12748 (dw2_expand_all_symtabs): Likewise.
12749 (dw2_expand_symtabs_with_fullname): Likewise.
12750 (dw2_expand_marked_cus): Replace index and objfile parameters
12751 with dwarf2_per_objfile.
12752 (dw_expand_symtabs_matching_file_matcher): Add
12753 dwarf2_per_objfile parameter and adjust calls.
12754 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12755 adjust calls.
12756 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12757 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12758 adjust calls.
12759 (create_cus_from_debug_names_list): Replace objfile parameter
12760 with dwarf2_per_objfile and adjust calls.
12761 (create_cus_from_debug_names): Likewise.
12762 (dwarf2_read_debug_names): Likewise.
12763 (mapped_debug_names::namei_to_name): Adjust call.
12764 (dw2_debug_names_iterator::next): Likewise.
12765 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12766 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12767 (dw2_debug_names_dump): Likewise.
12768 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12769 (dw2_debug_names_expand_symtabs_matching): Likewise.
12770 (dwarf2_initialize_objfile): Likewise.
12771 (dwarf2_build_psymtabs): Likewise.
12772 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12773 this_cu.
12774 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12775 (read_and_check_comp_unit_head): Likewise.
12776 (read_abbrev_offset): Likewise.
12777 (create_debug_type_hash_table): Likewise.
12778 (create_debug_types_hash_table): Likewise.
12779 (create_all_type_units): Replace objfile parameter with
12780 dwarf2_per_objfile.
12781 (add_type_unit): Add dwarf2_per_objfile parameter.
12782 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12783 with dwarf2_per_objfile.
12784 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12785 (lookup_dwp_signatured_type): Likewise.
12786 (lookup_signatured_type): Likewise.
12787 (read_cutu_die_from_dwo): Likewise.
12788 (init_tu_and_read_dwo_dies): Likewise.
12789 (init_cutu_and_read_dies): Likewise.
12790 (init_cutu_and_read_dies_no_follow): Likewise.
12791 (allocate_type_unit_groups_table): Add objfile parameter.
12792 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12793 (get_type_unit_group): Likewise.
12794 (process_psymtab_comp_unit): Update call.
12795 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12796 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12797 (print_tu_stats): Likewise.
12798 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12799 in void* parameter.
12800 (build_type_psymtabs): Change objfile parameter to
12801 dwarf2_per_objfile.
12802 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12803 passed in void* parameter.
12804 (process_skeletonless_type_units): Change objfile parameter to
12805 dwarf2_per_objfile.
12806 (set_partial_user): Likewise.
12807 (dwarf2_build_psymtabs_hard): Likewise.
12808 (read_comp_units_from_section): Likewise.
12809 (create_all_comp_units): Likewise.
12810 (scan_partial_symbols): Update calls.
12811 (add_partial_symbol): Likewise.
12812 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12813 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12814 (process_queue): Add dwarf2_per_objfile parameter.
12815 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12816 (compute_compunit_symtab_includes): Likewise.
12817 (process_cu_includes): Add dwarf2_per_objfile parameter.
12818 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12819 (process_full_type_unit): Likewise.
12820 (process_imported_unit_die): Update call.
12821 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12822 (read_file_scope): Likewise.
12823 (allocate_dwo_file_hash_table): Add objfile parameter.
12824 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12825 (create_cus_hash_table): Likewise.
12826 (create_dwp_hash_table): Likewise.
12827 (create_dwo_unit_in_dwp_v1): Likewise.
12828 (create_dwp_v2_section): Likewise.
12829 (create_dwo_unit_in_dwp_v2): Likewise.
12830 (lookup_dwo_unit_in_dwp): Likewise.
12831 (try_open_dwop_file): Likewise.
12832 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12833 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12834 cleanup to include a reference to dwarf2_per_objfile.
12835 (open_dwp_file): Add dwarf2_per_objfile parameter.
12836 (open_and_init_dwp_file): Likewise.
12837 (get_dwp_file): Likewise.
12838 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12839 (queue_and_load_all_dwo_tus): Update call.
12840 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12841 data.
12842 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12843 (dwarf2_ranges_process): Likewise.
12844 (dwarf2_get_pc_bounds): Likewise.
12845 (mark_common_block_symbol_computed): Likewise.
12846 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12847 (dwarf2_read_abbrevs): Update call.
12848 (read_partial_die): Use dwarf2_per_objfile from cu.
12849 (find_partial_die): Likewise.
12850 (fixup_partial_die): Likewise.
12851 (read_attribute_value): Likewise.
12852 (read_indirect_string_at_offset_from): Add objfile parameter.
12853 (read_indirect_string_at_offset): Add dwarf2_per_objfile
12854 parameter.
12855 (read_indirect_string_from_dwz): Add objfile parameter.
12856 (read_indirect_string): Add objfile parameter.
12857 (read_addr_index_1): Add dwarf2_per_objfile parameter.
12858 (read_addr_index): Use dwarf2_per_objfile from cu.
12859 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12860 call dw2_setup.
12861 (read_str_index): Use dwarf2_per_objfile from cu.
12862 (get_debug_line_section): Likewise.
12863 (read_formatted_entries): Add dwarf2_per_objfile parameter.
12864 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
12865 (new_symbol_full): Use dwarf2_per_objfile from cu.
12866 (build_error_marker_type): Likewise.
12867 (lookup_die_type): Likewise.
12868 (determine_prefix): Likewise.
12869 (follow_die_offset): Likewise.
12870 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
12871 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
12872 (dwarf2_fetch_die_type_sect_off): Likewise.
12873 (dwarf2_get_die_type): Likewise.
12874 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
12875 (get_signatured_type): Likewise.
12876 (get_DW_AT_signature_type): Likewise.
12877 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
12878 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
12879 (cu_debug_loc_section): Likewise.
12880 (fill_in_loclist_baton): Likewise.
12881 (dwarf2_symbol_mark_computed): Likewise.
12882 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12883 dwarf2_per_objfile.
12884 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
12885 parameter.
12886 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12887 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
12888 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
12889 (set_die_type): Use dwarf2_free_objfile from cu.
12890 (get_die_type_at_offset): Likewise.
12891 (dwarf2_per_objfile_free): Don't assign global variable.
12892 (debug_names) <constructor>: Add dwarf2_per_objfile
12893 parameter, update m_debugstrlookup construction.
12894 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
12895 parameter.
12896 <m_dwarf2_per_objfile>: New field.
12897 <lookup>: Use m_dwarf2_per_objfile.
12898 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
12899 (psyms_seen_size): Likewise.
12900 (write_gdbindex): Replace objfile parameter with
12901 dwarf2_per_objfile.
12902 (write_debug_names): Likewise.
12903 (write_psymtabs_to_index): Likewise.
12904 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
12905 calls.
12906
e3b94546
SM
129072018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12908
12909 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
12910 <dwarf2_per_objfile>: New field.
12911 (struct dwarf2_per_cu_data) <objfile>: Remove.
12912 <dwarf2_per_objfile>: New field.
12913 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
12914 of objfile.
12915 (create_signatured_type_table_from_index): Likewise.
12916 (create_debug_type_hash_table): Likewise.
12917 (fill_in_sig_entry_from_dwo_entry): Likewise.
12918 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
12919 (create_type_unit_group): Assign dwarf2_per_objfile instead of
12920 objfile.
12921 (create_partial_symtab): Access objfile through
12922 dwarf2_per_objfile.
12923 (process_psymtab_comp_unit_reader): Likewise.
12924 (read_comp_units_from_section): Likewise.
12925 (scan_partial_symbols): Likewise.
12926 (add_partial_symbol): Likewise.
12927 (add_partial_subprogram): Likewise.
12928 (peek_die_abbrev): Likewise.
12929 (fixup_go_packaging): Likewise.
12930 (process_full_comp_unit): Likewise.
12931 (process_full_type_unit): Likewise.
12932 (process_imported_unit_die): Likewise.
12933 (dwarf2_compute_name): Likewise.
12934 (dwarf2_physname): Likewise.
12935 (read_import_statement): Likewise.
12936 (create_cus_hash_table): Assign dwarf2_physname instead of
12937 objfile.
12938 (read_func_scope): Access objfile through dwarf2_per_objfile.
12939 (read_lexical_block_scope): Likewise.
12940 (read_call_site_scope): Likewise.
12941 (read_variable): Likewise.
12942 (dwarf2_rnglists_process): Likewise.
12943 (dwarf2_ranges_process): Likewise.
12944 (dwarf2_ranges_read): Likewise.
12945 (dwarf2_record_block_ranges): Likewise.
12946 (dwarf2_add_field): Likewise.
12947 (dwarf2_add_member_fn): Likewise.
12948 (read_structure_type): Likewise.
12949 (process_structure_scope): Likewise.
12950 (read_enumeration_type): Likewise.
12951 (read_array_type): Likewise.
12952 (read_common_block): Likewise.
12953 (read_namespace_type): Likewise.
12954 (read_namespace): Likewise.
12955 (read_module_type): Likewise.
12956 (read_tag_pointer_type): Likewise.
12957 (read_tag_ptr_to_member_type): Likewise.
12958 (read_tag_string_type): Likewise.
12959 (read_subroutine_type): Likewise.
12960 (read_typedef): Likewise.
12961 (read_base_type): Likewise.
12962 (attr_to_dynamic_prop): Likewise.
12963 (read_subrange_type): Likewise.
12964 (read_unspecified_type): Likewise.
12965 (load_partial_dies): Likewise.
12966 (read_partial_die): Likewise.
12967 (find_partial_die): Likewise.
12968 (guess_partial_die_structure_name): Likewise.
12969 (fixup_partial_die): Likewise.
12970 (read_attribute_value): Likewise.
12971 (read_addr_index_from_leb128): Likewise.
12972 (dwarf2_read_addr_index): Likewise.
12973 (dwarf2_string_attr): Likewise.
12974 (lnp_state_machine::check_line_address): Likewise.
12975 (dwarf_decode_lines_1): Likewise.
12976 (dwarf_decode_lines): Likewise.
12977 (dwarf2_start_symtab): Likewise.
12978 (var_decode_location): Likewise.
12979 (new_symbol_full): Likewise.
12980 (dwarf2_const_value_data): Likewise.
12981 (dwarf2_const_value_attr): Likewise.
12982 (dwarf2_const_value): Likewise.
12983 (die_type): Likewise.
12984 (die_containing_type): Likewise.
12985 (lookup_die_type): Likewise.
12986 (guess_full_die_structure_name): Likewise.
12987 (anonymous_struct_prefix): Likewise.
12988 (dwarf2_name): Likewise.
12989 (follow_die_ref_or_sig): Likewise.
12990 (follow_die_offset): Likewise.
12991 (follow_die_ref): Likewise.
12992 (dwarf2_fetch_die_loc_sect_off): Likewise.
12993 (dwarf2_fetch_constant_bytes): Likewise.
12994 (dwarf2_fetch_die_type_sect_off): Likewise.
12995 (dwarf2_get_die_type): Likewise.
12996 (follow_die_sig): Likewise.
12997 (decode_locdesc): Likewise.
12998 (dwarf2_per_cu_objfile): Likewise.
12999 (dwarf2_per_cu_text_offset): Likewise.
13000 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13001 objfile.
13002 (set_die_type): Access objfile through
13003 dwarf2_per_objfile.
13004
b01ba14d
SM
130052018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13006
13007 * valprint.c (converted_character_d): Remove typedef.
13008 (DEF_VEC_O (converted_character_d)): Remove.
13009 (count_next_character): Use std::vector.
13010 (print_converted_chars_to_obstack): Likewise.
13011 (generic_printstr): Likewise.
13012
4d0fdd9b
SM
130132018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13014
13015 * xml-support.h (struct gdb_xml_value): Add constructor.
13016 <value>: Change type to unique_xmalloc_ptr.
13017 (gdb_xml_value_s): Remove typedef.
13018 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13019 (gdb_xml_element_start_handler): Change parameter type to
13020 std::vector.
13021 (xml_find_attribute): Likewise.
13022 * xml-support.c (xml_find_attribute): Change parameter type to
13023 std::vector and adjust.
13024 (gdb_xml_values_cleanup): Remove.
13025 (gdb_xml_parser::start_element): Adjust to std::vector.
13026 (xinclude_start_include): Change paraeter type to std::vector
13027 and adjust.
13028 * btrace.c (check_xml_btrace_version): Likewise.
13029 (parse_xml_btrace_block): Likewise.
13030 (parse_xml_btrace_pt_config_cpu): Likewise.
13031 (parse_xml_btrace_pt): Likewise.
13032 (parse_xml_btrace_conf_bts): Likewise.
13033 (parse_xml_btrace_conf_pt): Likewise.
13034 * memory-map.c (memory_map_start_memory): Likewise.
13035 (memory_map_start_property): Likewise.
13036 * osdata.c (osdata_start_osdata): Likewise.
13037 (osdata_start_item): Likewise.
13038 (osdata_start_column): Likewise.
13039 * remote.c (start_thread): Likewise.
13040 * solib-aix.c (library_list_start_library): Likewise.
13041 (library_list_start_list): Likewise.
13042 * solib-svr4.c (library_list_start_library): Likewise.
13043 (svr4_library_list_start_list): Likewise.
13044 * solib-target.c (library_list_start_segment): Likewise.
13045 (library_list_start_section): Likewise.
13046 (library_list_start_library): Likewise.
13047 (library_list_start_list): Likewise.
13048 * tracepoint.c (traceframe_info_start_memory): Likewise.
13049 (traceframe_info_start_tvar): Likewise.
13050 * xml-syscall.c (syscall_start_syscall): Likewise.
13051 * xml-tdesc.c (tdesc_start_target): Likewise.
13052 (tdesc_start_feature): Likewise.
13053 (tdesc_start_reg): Likewise.
13054 (tdesc_start_union): Likewise.
13055 (tdesc_start_struct): Likewise.
13056 (tdesc_start_flags): Likewise.
13057 (tdesc_start_enum): Likewise.
13058 (tdesc_start_field): Likewise.
13059 (tdesc_start_enum_value): Likewise.
13060 (tdesc_start_vector): Likewise.
13061
f979c73f
SM
130622018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13063
13064 * extension.h (struct xmethod_worker) <clone>: Remove.
13065 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13066 Remove.
13067 (python_xmethod_worker::clone): Remove.
13068 * valops.c (find_overload_match): Use std::move instead of
13069 clone.
13070
ba18742c
SM
130712018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13072
13073 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13074 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13075 <free_xmethod_worker_data>: Remove.
13076 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13077 <get_xmethod_arg_types>: Remove.
13078 <get_xmethod_result_type>: Remove.
13079 <invoke_xmethod>: Remove.
13080 * extension.c (new_xmethod_worker): Remove.
13081 (clone_xmethod_worker): Remove.
13082 (get_matching_xmethod_workers): Return void, pass std::vector by
13083 pointer.
13084 (get_xmethod_arg_types): Rename to...
13085 (xmethod_worker::get_arg_types): ... this, and adjust.
13086 (get_xmethod_result_type): Rename to...
13087 (xmethod_worker::get_result_type): ... this, and adjust.
13088 (invoke_xmethod): Remove.
13089 (free_xmethod_worker): Remove.
13090 (free_xmethod_worker_vec): Remove.
13091 * extension.h (enum ext_lang_rc): Move here from
13092 extension-priv.h.
13093 (struct xmethod_worker): Add constructor and destructor.
13094 <data>: Remove.
13095 <value>: Remove.
13096 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13097 virtual pure methods.
13098 <get_arg_types, get_result_type>: New methods.
13099 (xmethod_worker_ptr): Remove typedef.
13100 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13101 (xmethod_worker_vec): Remove typedef.
13102 (xmethod_worker_up): New typedef.
13103 (invoke_xmethod): Remove.
13104 (clone_xmethod_worker): Remove.
13105 (free_xmethod_worker): Remove.
13106 (free_xmethod_worker_vec): Remove.
13107 (get_xmethod_arg_types): Remove.
13108 (get_xmethod_result_type): Remove.
13109 * valops.c (find_method_list): Use std::vector, don't use
13110 intermediate vector.
13111 (value_find_oload_method_list): Use std::vector.
13112 (find_overload_match): Use std::vector.
13113 (find_oload_champ): Use std::vector.
13114 * value.c (value_free): Use operator delete.
13115 (value_of_xmethod): Rename to...
13116 (value_from_xmethod): ... this. Don't assign
13117 xmethod_worker::value, take rvalue-reference.
13118 (result_type_of_xmethod): Adjust.
13119 (call_xmethod): Adjust.
13120 * value.h: Include extension.h.
13121 (struct xmethod_worker): Don't forward-declare.
13122 (value_of_xmethod): Rename to...
13123 (value_from_xmethod): ... this, take rvalue-reference.
13124 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13125 (struct python_xmethod_worker): ... this, add constructor and
13126 destructor.
13127 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13128 (gdbpy_free_xmethod_worker_data): Rename to...
13129 (python_xmethod_worker::~python_xmethod_worker): ... this and
13130 adjust.
13131 (gdbpy_clone_xmethod_worker_data): Rename to...
13132 (python_xmethod_worker::clone): ... this and adjust.
13133 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13134 temporary vector.
13135 (gdbpy_get_xmethod_arg_types): Rename to...
13136 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13137 (gdbpy_get_xmethod_result_type): Rename to...
13138 (python_xmethod_worker::do_get_result_type): ... this and
13139 adjust.
13140 (gdbpy_invoke_xmethod): Rename to...
13141 (python_xmethod_worker::invoke): ... this and adjust.
13142 (new_python_xmethod_worker): Rename to...
13143 (python_xmethod_worker::python_xmethod_worker): ... this and
13144 adjust.
13145 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13146 Remove.
13147 (gdbpy_free_xmethod_worker_data): Remove.
13148 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13149 (gdbpy_get_xmethod_arg_types): Remove.
13150 (gdbpy_get_xmethod_result_type): Remove.
13151 (gdbpy_invoke_xmethod): Remove.
13152 * python/python.c (python_extension_ops): Remove obsolete
13153 callbacks.
13154
e379cee6
PA
131552018-01-05 Pedro Alves <palves@redhat.com>
13156
13157 PR gdb/18653
13158 * common/signals-state-save-restore.c
13159 (save_original_signals_state): New parameter 'quiet'. Warn if we
13160 find a custom handler preinstalled, instead of internal erroring.
13161 But only warn if !quiet.
13162 * common/signals-state-save-restore.h
13163 (save_original_signals_state): New parameter 'quiet'.
13164 * main.c (captured_main_1): Move save_original_signals_state call
13165 after option handling, and pass QUIET.
13166
a655456c
PA
131672018-01-05 Pedro Alves <palves@redhat.com>
13168
13169 * spu-tdep.c (spu_catch_start): Pass
13170 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13171
de63c46b
PA
131722018-01-05 Pedro Alves <palves@redhat.com>
13173
13174 PR gdb/22670
13175 * ada-lang.c (literal_symbol_name_matcher): New function.
13176 (ada_get_symbol_name_matcher): Use it for
13177 symbol_name_match_type::SEARCH_NAME.
13178 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13179 it down instead of assuming symbol_name_match_type::FULL.
13180 * block.h (block_lookup_symbol): New parameter 'match_type'.
13181 * c-valprint.c (print_unpacked_pointer): Use
13182 lookup_symbol_search_name instead of lookup_symbol.
13183 * compile/compile-object-load.c (get_out_value_type): Pass down
13184 symbol_name_match_type::SEARCH_NAME.
13185 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13186 symbol_name_match_type::FULL.
13187 * cp-support.c (cp_get_symbol_name_matcher): Handle
13188 symbol_name_match_type::SEARCH_NAME.
13189 * infrun.c (insert_exception_resume_breakpoint): Use
13190 lookup_symbol_search_name.
13191 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13192 * psymtab.c (maintenance_check_psymtabs): Use
13193 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13194 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13195 SYMBOL_SEARCH_NAME.
13196 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13197 if symbol_name_match_type::SEARCH_NAME.
13198 (lookup_symbol_in_language): Pass down
13199 symbol_name_match_type::FULL.
13200 (lookup_symbol_search_name): New.
13201 (lookup_language_this): Pass down
13202 symbol_name_match_type::SEARCH_NAME.
13203 (lookup_symbol_aux, lookup_local_symbol): New parameter
13204 'match_type'. Pass it down.
13205 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13206 (lookup_symbol_search_name): New declaration.
13207 (lookup_symbol_in_block): New 'match_type' parameter.
13208
f98fc17b
PA
132092018-01-05 Pedro Alves <palves@redhat.com>
13210
13211 PR gdb/22670
13212 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13213 ada_lookup_symbol.
13214 (ada_lookup_symbol): Reimplement in terms of
13215 ada_lookup_symbol_list, bits factored out from
13216 ada_lookup_encoded_symbol.
13217
342f8240
JB
132182018-01-05 Joel Brobecker <brobecker@adacore.com>
13219
13220 * ada-exp.y (write_object_renaming): When subscripting an array
13221 using a symbol as the index, pass the block in call to
13222 ada_lookup_encoded_symbol when looking that symbol up.
13223
7150d33c
JG
132242018-01-05 Jerome Guitton <guitton@adacore.com>
13225
13226 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13227 TYPE_INDEX_TYPE.
13228
cc0e770c
JB
132292018-01-05 Joel Brobecker <brobecker@adacore.com>
13230
13231 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13232 the case where VALUE_LVAL (val0) is not lval_memory.
13233
f79da888 132342018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
13235
13236 * ada-valprint.c (print_optional_low_bound): Handle
13237 character-indexed array printing like boolean-indexed array
13238 printing.
13239
cd385f94
JB
132402018-01-05 Joel Brobecker <brobecker@adacore.com>
13241
13242 * NEWS: Create a new section for the next release branch.
13243 Rename the section of the current branch, now that it has
13244 been cut.
13245
09aca949
JB
132462018-01-05 Joel Brobecker <brobecker@adacore.com>
13247
13248 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13249 * version.in: Bump version to 8.1.50.DATE-git.
13250
9f757bf7
XR
132512018-01-03 Xavier Roirand <roirand@adacore.com>
13252
13253 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13254 Add field.
13255 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13256 Add field.
13257 (default_exception_support_info) <catch_handlers_sym>: Add field.
13258 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13259 (ada_exception_name_addr_1): Add "catch handlers" handling.
13260 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13261 Update all callers.
13262 (create_excep_cond_exprs) <ex>: Add parameter.
13263 (re_set_exception): Update create_excep_cond_exprs call.
13264 (print_it_exception, print_one_exception, print_mention_exception)
13265 (print_recreate_exception): Add "catch handler" handling.
13266 (allocate_location_catch_handlers, re_set_catch_handlers)
13267 (check_status_catch_handlers, print_it_catch_handlers)
13268 (print_one_catch_handlers, print_mention_catch_handlers)
13269 (print_recreate_catch_handlers): New function.
13270 (catch_handlers_breakpoint_ops): New variable.
13271 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13272 Add parameter. Add "catch handler" handling.
13273 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13274 Add "catch handler" handling.
13275 (ada_exception_catchpoint_cond_string): Add "catch handler"
13276 handling.
13277 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13278 call.
13279 (catch_ada_handlers_command): New function.
13280 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13281 operations structure.
13282 (_initialize_ada_language): Add "catch handlers" command entry.
13283 * NEWS: Document "catch handlers" feature.
13284
9fe561ab
JB
132852018-01-02 Joel Brobecker <brobecker@adacore.com>
13286
13287 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13288 account when creating the array type of the slice.
13289 (ada_value_slice): Likewise.
13290
a405673c
JB
132912018-01-02 Joel Brobecker <brobecker@adacore.com>
13292
13293 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13294 New enum value.
13295 (create_array_type_with_stride): Add byte_stride_prop parameter.
13296 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13297 New parameter. Update all callers in this file.
13298 (array_type_has_dynamic_stride): New function.
13299 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13300 of arrays with dynamic byte strides.
13301 * dwarf2read.c (read_array_type): Add support for dynamic
13302 DW_AT_byte_stride attributes.
13303
74a2f8ff
JB
133042018-01-02 Joel Brobecker <brobecker@adacore.com>
13305
13306 * dwarf2read.c (read_unspecified_type): Treat
13307 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13308
e2882c85
JB
133092018-01-01 Joel Brobecker <brobecker@adacore.com>
13310
13311 Update copyright year range in all GDB files.
13312
1690bb24
JB
133132018-01-01 Joel Brobecker <brobecker@adacore.com>
13314
13315 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13316 and gdb/testsuite/gdb.base/step-line.c.
13317
0f0c98a8
JB
133182018-01-01 Joel Brobecker <brobecker@adacore.com>
13319
13320 * copyright.py (main): Dump the contents of
13321 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13322 even if BY_HAND is empty.
13323
82e1e79a
JB
133242018-01-01 Joel Brobecker <brobecker@adacore.com>
13325
13326 * top.c (print_gdb_version): Update Copyright year in version
13327 message.
13328
053f54e5 133292018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 13330
053f54e5 13331 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 13332
053f54e5 13333For older changes see ChangeLog-2017.
c906108c
SS
13334\f
13335Local Variables:
13336mode: change-log
13337left-margin: 8
13338fill-column: 74
13339version-control: never
57da7796 13340coding: utf-8
c906108c 13341End:
This page took 2.670092 seconds and 4 git commands to generate.