Add "contrib" to the list of GDB support dirs (on src-release.sh)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1256af7d
SM
12018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2
3 * python/py-inferior.c (infpy_repr): New.
4 (inferior_object_type): Register infpy_repr.
5 * python/py-objfile.c (objfpy_repr): New.
6 (objfile_object_type): Register objfpy_repr.
7
f117a62c
JB
82018-09-12 John Baldwin <jhb@FreeBSD.org>
9
10 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
11
88f22c34
JB
122018-09-12 John Baldwin <jhb@FreeBSD.org>
13
14 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
15 typo.
16
3c025cfe
SDJ
172018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
18
19 * common/common-utils.c: Don't include '<sys/stat.h>'.
20 (is_regular_file): Move to...
21 * common/filestuff.c (is_regular_file): ... here.
22 * common/common-utils.h (is_regular_file): Move to...
23 * common/filestuff.h (is_regular_file): ... here.
24
3e68067f
SM
252018-09-12 Simon Marchi <simon.marchi@ericsson.com>
26
27 * skip.c (debug_skip): New variable.
28 (skiplist_entry::do_skip_file_p): Add debug output.
29 (skiplist_entry::do_skip_gfile_p): Likewise.
30 (skiplist_entry::skip_function_p): Likewise.
31 (_initialize_step_skip): Create debug command.
32 * NEWS: Mention set/show debug skip.
33
d6be54ef
XR
342018-09-11 Xavier Roirand <roirand@adacore.com>
35
36 * darwin-nat.c (should_disable_startup_with_shell):
37 New function.
38 (darwin_nat_target::create_inferior): Add call.
39
de1ec836
XR
402018-09-11 Xavier Roirand <roirand@adacore.com>
41
42 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
43 inf_port, msg_state>: Initialize.
44 (struct darwin_thread_info) <signaled, single_step>: Change
45 type and initialize.
46 (struct darwin_thread_info) <event>: Initialize.
47
e2fc52e7
SDJ
482018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
49
50 PR gdb/23555
51 PR gdb/23558
52 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
53 guesses.
54
5e8754f9
SDJ
552018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
56
57 Revert:
58 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
59
60 PR gdb/23555
61 PR gdb/23558
62 * gnulib/aclocal.m4: Regenerate.
63 * gnulib/config.in: Regenerate.
64 * gnulib/configure: Regenerate.
65 * gnulib/import/Makefile.am: Update.
66 * gnulib/import/Makefile.in: Update.
67 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
68 * gnulib/import/_Noreturn.h: ... this.
69 * gnulib/import/alloca.in.h: Update.
70 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
71 * gnulib/import/arg-nonnull.h: ... this.
72 * gnulib/import/assure.h: Update.
73 * gnulib/import/at-func.c: Update.
74 * gnulib/import/basename-lgpl.c: Update.
75 * gnulib/import/extra/snippet/c++defs.h: Rename to...
76 * gnulib/import/c++defs.h: ... this.
77 * gnulib/import/canonicalize-lgpl.c: Update.
78 * gnulib/import/cdefs.h: Update.
79 * gnulib/import/chdir-long.c: Update.
80 * gnulib/import/chdir-long.h: Update.
81 * gnulib/import/cloexec.c: Update.
82 * gnulib/import/cloexec.h: Update.
83 * gnulib/import/close.c: Update.
84 * gnulib/import/closedir.c: Update.
85 * gnulib/import/config.charset: Update.
86 * gnulib/import/dirent-private.h: Update.
87 * gnulib/import/dirent.in.h: Update.
88 * gnulib/import/dirfd.c: Update.
89 * gnulib/import/dirname-lgpl.c: Update.
90 * gnulib/import/dirname.h: Update.
91 * gnulib/import/dosname.h: Update.
92 * gnulib/import/dup-safer-flag.c: Update.
93 * gnulib/import/dup-safer.c: Update.
94 * gnulib/import/dup.c: Update.
95 * gnulib/import/dup2.c: Update.
96 * gnulib/import/errno.in.h: Update.
97 * gnulib/import/error.c: Update.
98 * gnulib/import/error.h: Update.
99 * gnulib/import/exitfail.c: Update.
100 * gnulib/import/exitfail.h: Update.
101 * gnulib/import/extra/update-copyright: Update.
102 * gnulib/import/fchdir.c: Update.
103 * gnulib/import/fcntl.c: Update.
104 * gnulib/import/fcntl.in.h: Update.
105 * gnulib/import/fd-hook.c: Update.
106 * gnulib/import/fd-hook.h: Update.
107 * gnulib/import/fd-safer-flag.c: Update.
108 * gnulib/import/fd-safer.c: Update.
109 * gnulib/import/fdopendir.c: Update.
110 * gnulib/import/filename.h: Update.
111 * gnulib/import/filenamecat-lgpl.c: Update.
112 * gnulib/import/filenamecat.h: Update.
113 * gnulib/import/flexmember.h: Update.
114 * gnulib/import/float+.h: Update.
115 * gnulib/import/float.c: Update.
116 * gnulib/import/float.in.h: Update.
117 * gnulib/import/fnmatch.c: Update.
118 * gnulib/import/fnmatch.in.h: Update.
119 * gnulib/import/fnmatch_loop.c: Update.
120 * gnulib/import/fpucw.h: Update.
121 * gnulib/import/frexp.c: Update.
122 * gnulib/import/frexpl.c: Update.
123 * gnulib/import/fstat.c: Update.
124 * gnulib/import/fstatat.c: Update.
125 * gnulib/import/getcwd-lgpl.c: Update.
126 * gnulib/import/getcwd.c: Update.
127 * gnulib/import/getdtablesize.c: Update.
128 * gnulib/import/getlogin_r.c: Update.
129 * gnulib/import/getprogname.c: Update.
130 * gnulib/import/getprogname.h: Update.
131 * gnulib/import/gettext.h: Update.
132 * gnulib/import/gettimeofday.c: Update.
133 * gnulib/import/glob-libc.h: Update.
134 * gnulib/import/glob.c: Update.
135 * gnulib/import/glob.in.h: Update.
136 * gnulib/import/glob_internal.h: Update.
137 * gnulib/import/glob_pattern_p.c: Update.
138 * gnulib/import/globfree.c: Update.
139 * gnulib/import/hard-locale.c: Update.
140 * gnulib/import/hard-locale.h: Update.
141 * gnulib/import/intprops.h: Update.
142 * gnulib/import/inttypes.in.h: Update.
143 * gnulib/import/isnan.c: Update.
144 * gnulib/import/isnand-nolibm.h: Update.
145 * gnulib/import/isnand.c: Update.
146 * gnulib/import/isnanl-nolibm.h: Update.
147 * gnulib/import/isnanl.c: Update.
148 * gnulib/import/itold.c: Update.
149 * gnulib/import/libc-config.h: Update.
150 * gnulib/import/limits.in.h: Update.
151 * gnulib/import/localcharset.c: Update.
152 * gnulib/import/localcharset.h: Update.
153 * gnulib/import/localtime-buffer.c: Update.
154 * gnulib/import/localtime-buffer.h: Update.
155 * gnulib/import/lstat.c: Update.
156 * gnulib/import/m4/00gnulib.m4: Update.
157 * gnulib/import/m4/__inline.m4: Update.
158 * gnulib/import/m4/absolute-header.m4: Update.
159 * gnulib/import/m4/alloca.m4: Update.
160 * gnulib/import/m4/builtin-expect.m4: Update.
161 * gnulib/import/m4/canonicalize.m4: Update.
162 * gnulib/import/m4/chdir-long.m4: Update.
163 * gnulib/import/m4/close.m4: Update.
164 * gnulib/import/m4/closedir.m4: Update.
165 * gnulib/import/m4/configmake.m4: Update.
166 * gnulib/import/m4/d-ino.m4: Update.
167 * gnulib/import/m4/d-type.m4: Update.
168 * gnulib/import/m4/dirent_h.m4: Update.
169 * gnulib/import/m4/dirfd.m4: Update.
170 * gnulib/import/m4/dirname.m4: Update.
171 * gnulib/import/m4/double-slash-root.m4: Update.
172 * gnulib/import/m4/dup.m4: Update.
173 * gnulib/import/m4/dup2.m4: Update.
174 * gnulib/import/m4/eealloc.m4: Update.
175 * gnulib/import/m4/environ.m4: Update.
176 * gnulib/import/m4/errno_h.m4: Update.
177 * gnulib/import/m4/error.m4: Update.
178 * gnulib/import/m4/exponentd.m4: Update.
179 * gnulib/import/m4/exponentl.m4: Update.
180 * gnulib/import/m4/extensions.m4: Update.
181 * gnulib/import/m4/extern-inline.m4: Update.
182 * gnulib/import/m4/fchdir.m4: Update.
183 * gnulib/import/m4/fcntl-o.m4: Update.
184 * gnulib/import/m4/fcntl.m4: Update.
185 * gnulib/import/m4/fcntl_h.m4: Update.
186 * gnulib/import/m4/fdopendir.m4: Update.
187 * gnulib/import/m4/filenamecat.m4: Update.
188 * gnulib/import/m4/flexmember.m4: Update.
189 * gnulib/import/m4/float_h.m4: Update.
190 * gnulib/import/m4/fnmatch.m4: Update.
191 * gnulib/import/m4/fnmatch_h.m4: Update.
192 * gnulib/import/m4/fpieee.m4: Update.
193 * gnulib/import/m4/frexp.m4: Update.
194 * gnulib/import/m4/frexpl.m4: Update.
195 * gnulib/import/m4/fstat.m4: Update.
196 * gnulib/import/m4/fstatat.m4: Update.
197 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
198 * gnulib/import/m4/getcwd-path-max.m4: Update.
199 * gnulib/import/m4/getcwd.m4: Update.
200 * gnulib/import/m4/getdtablesize.m4: Update.
201 * gnulib/import/m4/getlogin.m4: Update.
202 * gnulib/import/m4/getlogin_r.m4: Update.
203 * gnulib/import/m4/getpagesize.m4: Update.
204 * gnulib/import/m4/getprogname.m4: Update.
205 * gnulib/import/m4/gettimeofday.m4: Update.
206 * gnulib/import/m4/glibc21.m4: Update.
207 * gnulib/import/m4/glob.m4: Update.
208 * gnulib/import/m4/glob_h.m4: Update.
209 * gnulib/import/m4/gnulib-cache.m4: Update.
210 * gnulib/import/m4/gnulib-common.m4: Update.
211 * gnulib/import/m4/gnulib-comp.m4: Update.
212 * gnulib/import/m4/gnulib-tool.m4: Update.
213 * gnulib/import/m4/hard-locale.m4: Update.
214 * gnulib/import/m4/include_next.m4: Update.
215 * gnulib/import/m4/inttypes-pri.m4: Update.
216 * gnulib/import/m4/inttypes.m4: Update.
217 * gnulib/import/m4/isnand.m4: Update.
218 * gnulib/import/m4/isnanl.m4: Update.
219 * gnulib/import/m4/largefile.m4: Update.
220 * gnulib/import/m4/limits-h.m4: Update.
221 * gnulib/import/m4/localcharset.m4: Update.
222 * gnulib/import/m4/locale-fr.m4: Update.
223 * gnulib/import/m4/locale-ja.m4: Update.
224 * gnulib/import/m4/locale-zh.m4: Update.
225 * gnulib/import/m4/localtime-buffer.m4: Update.
226 * gnulib/import/m4/longlong.m4: Update.
227 * gnulib/import/m4/lstat.m4: Update.
228 * gnulib/import/m4/malloc.m4: Update.
229 * gnulib/import/m4/malloca.m4: Update.
230 * gnulib/import/m4/math_h.m4: Update.
231 * gnulib/import/m4/mbrtowc.m4: Update.
232 * gnulib/import/m4/mbsinit.m4: Update.
233 * gnulib/import/m4/mbsrtowcs.m4: Update.
234 * gnulib/import/m4/mbstate_t.m4: Update.
235 * gnulib/import/m4/memchr.m4: Update.
236 * gnulib/import/m4/memmem.m4: Update.
237 * gnulib/import/m4/mempcpy.m4: Update.
238 * gnulib/import/m4/memrchr.m4: Update.
239 * gnulib/import/m4/mkdir.m4: Update.
240 * gnulib/import/m4/mkstemp.m4: Update.
241 * gnulib/import/m4/mmap-anon.m4: Update.
242 * gnulib/import/m4/mode_t.m4: Update.
243 * gnulib/import/m4/msvc-inval.m4: Update.
244 * gnulib/import/m4/msvc-nothrow.m4: Update.
245 * gnulib/import/m4/multiarch.m4: Update.
246 * gnulib/import/m4/nocrash.m4: Update.
247 * gnulib/import/m4/off_t.m4: Update.
248 * gnulib/import/m4/onceonly.m4: Update.
249 * gnulib/import/m4/open-cloexec.m4: Update.
250 * gnulib/import/m4/open.m4: Update.
251 * gnulib/import/m4/openat.m4: Update.
252 * gnulib/import/m4/opendir.m4: Update.
253 * gnulib/import/m4/pathmax.m4: Update.
254 * gnulib/import/m4/rawmemchr.m4: Update.
255 * gnulib/import/m4/readdir.m4: Update.
256 * gnulib/import/m4/readlink.m4: Update.
257 * gnulib/import/m4/realloc.m4: Update.
258 * gnulib/import/m4/rename.m4: Update.
259 * gnulib/import/m4/rewinddir.m4: Update.
260 * gnulib/import/m4/rmdir.m4: Update.
261 * gnulib/import/m4/save-cwd.m4: Update.
262 * gnulib/import/m4/secure_getenv.m4: Update.
263 * gnulib/import/m4/setenv.m4: Update.
264 * gnulib/import/m4/signal_h.m4: Update.
265 * gnulib/import/m4/ssize_t.m4: Update.
266 * gnulib/import/m4/stat-time.m4: Update.
267 * gnulib/import/m4/stat.m4: Update.
268 * gnulib/import/m4/std-gnu11.m4: Update.
269 * gnulib/import/m4/stdbool.m4: Update.
270 * gnulib/import/m4/stddef_h.m4: Update.
271 * gnulib/import/m4/stdint.m4: Update.
272 * gnulib/import/m4/stdio_h.m4: Update.
273 * gnulib/import/m4/stdlib_h.m4: Update.
274 * gnulib/import/m4/strchrnul.m4: Update.
275 * gnulib/import/m4/strdup.m4: Update.
276 * gnulib/import/m4/strerror.m4: Update.
277 * gnulib/import/m4/string_h.m4: Update.
278 * gnulib/import/m4/strstr.m4: Update.
279 * gnulib/import/m4/strtok_r.m4: Update.
280 * gnulib/import/m4/sys_socket_h.m4: Update.
281 * gnulib/import/m4/sys_stat_h.m4: Update.
282 * gnulib/import/m4/sys_time_h.m4: Update.
283 * gnulib/import/m4/sys_types_h.m4: Update.
284 * gnulib/import/m4/tempname.m4: Update.
285 * gnulib/import/m4/time_h.m4: Update.
286 * gnulib/import/m4/unistd-safer.m4: Update.
287 * gnulib/import/m4/unistd_h.m4: Update.
288 * gnulib/import/m4/warn-on-use.m4: Update.
289 * gnulib/import/m4/wchar_h.m4: Update.
290 * gnulib/import/m4/wchar_t.m4: Update.
291 * gnulib/import/m4/wctype_h.m4: Update.
292 * gnulib/import/m4/wint_t.m4: Update.
293 * gnulib/import/malloc.c: Update.
294 * gnulib/import/malloc/scratch_buffer.h: Update.
295 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
296 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
297 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
298 * gnulib/import/malloca.c: Update.
299 * gnulib/import/malloca.h: Update.
300 * gnulib/import/malloca.valgrind: Update.
301 * gnulib/import/math.in.h: Update.
302 * gnulib/import/mbrtowc.c: Update.
303 * gnulib/import/mbsinit.c: Update.
304 * gnulib/import/mbsrtowcs-impl.h: Update.
305 * gnulib/import/mbsrtowcs-state.c: Update.
306 * gnulib/import/mbsrtowcs.c: Update.
307 * gnulib/import/memchr.c: Update.
308 * gnulib/import/memmem.c: Update.
309 * gnulib/import/mempcpy.c: Update.
310 * gnulib/import/memrchr.c: Update.
311 * gnulib/import/mkdir.c: Update.
312 * gnulib/import/mkstemp.c: Update.
313 * gnulib/import/msvc-inval.c: Update.
314 * gnulib/import/msvc-inval.h: Update.
315 * gnulib/import/msvc-nothrow.c: Update.
316 * gnulib/import/msvc-nothrow.h: Update.
317 * gnulib/import/open.c: Update.
318 * gnulib/import/openat-die.c: Update.
319 * gnulib/import/openat-priv.h: Update.
320 * gnulib/import/openat-proc.c: Update.
321 * gnulib/import/openat.c: Update.
322 * gnulib/import/openat.h: Update.
323 * gnulib/import/opendir.c: Update.
324 * gnulib/import/pathmax.h: Update.
325 * gnulib/import/pipe-safer.c: Update.
326 * gnulib/import/rawmemchr.c: Update.
327 * gnulib/import/readdir.c: Update.
328 * gnulib/import/readlink.c: Update.
329 * gnulib/import/realloc.c: Update.
330 * gnulib/import/ref-add.sin: Update.
331 * gnulib/import/ref-del.sin: Update.
332 * gnulib/import/rename.c: Update.
333 * gnulib/import/rewinddir.c: Update.
334 * gnulib/import/rmdir.c: Update.
335 * gnulib/import/same-inode.h: Update.
336 * gnulib/import/save-cwd.c: Update.
337 * gnulib/import/save-cwd.h: Update.
338 * gnulib/import/scratch_buffer.h: Update.
339 * gnulib/import/secure_getenv.c: Update.
340 * gnulib/import/setenv.c: Update.
341 * gnulib/import/signal.in.h: Update.
342 * gnulib/import/stat-time.c: Update.
343 * gnulib/import/stat-time.h: Update.
344 * gnulib/import/stat-w32.c: Update.
345 * gnulib/import/stat-w32.h: Update.
346 * gnulib/import/stat.c: Update.
347 * gnulib/import/stdbool.in.h: Update.
348 * gnulib/import/stddef.in.h: Update.
349 * gnulib/import/stdint.in.h: Update.
350 * gnulib/import/stdio.in.h: Update.
351 * gnulib/import/stdlib.in.h: Update.
352 * gnulib/import/str-two-way.h: Update.
353 * gnulib/import/strchrnul.c: Update.
354 * gnulib/import/strdup.c: Update.
355 * gnulib/import/streq.h: Update.
356 * gnulib/import/strerror-override.c: Update.
357 * gnulib/import/strerror-override.h: Update.
358 * gnulib/import/strerror.c: Update.
359 * gnulib/import/string.in.h: Update.
360 * gnulib/import/stripslash.c: Update.
361 * gnulib/import/strnlen1.c: Update.
362 * gnulib/import/strnlen1.h: Update.
363 * gnulib/import/strstr.c: Update.
364 * gnulib/import/strtok_r.c: Update.
365 * gnulib/import/sys_stat.in.h: Update.
366 * gnulib/import/sys_time.in.h: Update.
367 * gnulib/import/sys_types.in.h: Update.
368 * gnulib/import/tempname.c: Update.
369 * gnulib/import/tempname.h: Update.
370 * gnulib/import/time.in.h: Update.
371 * gnulib/import/unistd--.h: Update.
372 * gnulib/import/unistd-safer.h: Update.
373 * gnulib/import/unistd.in.h: Update.
374 * gnulib/import/unsetenv.c: Update.
375 * gnulib/import/verify.h: Update.
376 * gnulib/import/extra/snippet/warn-on-use.h: Update.
377 * gnulib/import/wchar.in.h: Update.
378 * gnulib/import/wctype.in.h: Update.
379 * gnulib/import/xalloc-oversized.h: Update.
380 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
381 "53e2c179f26a890fa6685af4b6c1397ee370433b".
382
8ec23583
SM
3832018-09-10 Simon Marchi <simon.marchi@ericsson.com>
384
385 * record-btrace.c (get_thread_current_frame): Remove
386 old_inferior_ptid.
387
1f5d1570
JG
3882018-09-10 Jerome Guitton <guitton@adacore.com>
389
390 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
391 with check_tag to 1 if and only if the type is tagged and the
392 component being searched cannot been found in the current
393 view. Otherwise, always call ada_to_fixed_type with
394 check_tag to 0.
395
d91e9ea8
XR
3962018-09-10 Xavier Roirand <roirand@adacore.com>
397
398 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
399 declaration.
400 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
401 * ada-varobj.c (ada_varobj_get_number_of_children,
402 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
403
cc330e39
XR
4042018-09-10 Xavier Roirand <roirand@adacore.com>
405
406 * ada-valprint.c (ada_value_print): Use type instead of
407 enclosing type.
408
b9c50e9a
XR
4092018-09-10 Xavier Roirand <roirand@adacore.com>
410
411 * ada-lang.c (ada_value_subscript): Handle case when parameter is
412 an array of access to unconstrained array.
413
736ade86
XR
4142018-09-10 Xavier Roirand <roirand@adacore.com>
415
416 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
417 (ada_check_typedef): Use it.
418
2963898f
XR
4192018-09-10 Xavier Roirand <roirand@adacore.com>
420
421 * ada-varobj.c (ada_varobj_describe_struct_child)
422 (ada_varobj_describe_child): Handle union case like struct one.
423
a154931e
TT
4242018-09-10 Tom Tromey <tom@tromey.com>
425
426 PR python/18380:
427 * python/python.c (_initialize_python): Make example in "python"
428 help work in Python 3.
429
23c4651c
EZ
4302018-09-10 Eli Zaretskii <eliz@gnu.org>
431
432 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
433 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
434 $(EXEEXT) to the script, as it is not a program.
435
a5c5eda7
SM
4362018-09-09 Simon Marchi <simon.marchi@ericsson.com>
437
438 * python/py-prettyprint.c (pretty_print_one_value): Return
439 gdbpy_ref<>.
440 (print_string_repr): Adjust.
441 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
442 * python/python-internal.h (apply_varobj_pretty_printer): Return
443 gdbpy_ref<>.
444 * varobj.c (varobj_value_get_print_value): Adjust.
445
332cf4c9
TT
4462018-09-08 Tom Tromey <tom@tromey.com>
447
448 PR python/16047:
449 * python/py-prettyprint.c (pretty_print_one_value): Check for
450 to_string method.
451
424da6cf
JB
4522018-09-08 Joel Brobecker <brobecker@adacore.com>
453
454 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
455 replace_operator_with_call.
456
95f39a5b
JB
4572018-09-08 Joel Brobecker <brobecker@adacore.com>
458
459 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
460
16b9eb7b
JB
4612018-09-08 Joel Brobecker <brobecker@adacore.com>
462
463 * ada-typeprint.c (print_range): Print the bounds using TYPE
464 rather than its TYPE_TARGET_TYPE.
465
d8ce9127
JB
4662018-09-08 Joel Brobecker <brobecker@adacore.com>
467
468 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
469 call to ada_to_fixed_value_create.
470
0d81f350
JG
4712018-09-08 Jerome Guitton <guitton@adacore.com>
472
473 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
474
57aff202
JB
4752018-09-08 Joel Brobecker <brobecker@adacore.com>
476
477 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
478 by calls to error.
479
fb44b1a7
JB
4802018-09-08 Joel Brobecker <brobecker@adacore.com>
481
482 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
483 Move update of loop variable "fi".
484
2a62dfa9
JB
4852018-09-08 Joel Brobecker <brobecker@adacore.com>
486
487 * ada-lang.c (value_assign_to_component): In the case of
488 big-endian targets, extract the bits of the given VAL
489 using an src_offset of zero if container is not a scalar.
490
739ab2e9
SS
4912018-09-06 Simon Ser <contact@emersion.fr>
492
493 PR gdb/23105
494 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
495 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
496 * fbsd-tdep.c (fbsd_make_note_desc): New.
497 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
498 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
499 * target.h (enum target_object) Add FreeBSD-specific
500 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
501
d82b3862
SM
5022018-09-06 Simon Marchi <simon.marchi@ericsson.com>
503
504 * compile/compile-c.h (generate_c_for_variable_locations):
505 Change reference to pointer.
506 * compile/compile-c-support.c (compile_program) <compute>:
507 Likewise.
508 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
509 (generate_c_for_for_one_variable): Likewise
510 (generate_c_for_variable_locations): Likewise
511 * compile/compile-c-types.c (compile_c_instance::convert_type):
512 Likewise
513 * compile/compile-cplus-symbols.c (convert_one_symbol):
514 std::move the scope passed to enter_scope.
515 * compile/compile-cplus-types.c
516 (compile_cplus_instance::enter_scope): Make parameter
517 rvalue-reference.
518 (compile_cplus_instance::new_scope): Change reference to
519 pointer.
520 (compile_cplus_instance::convert_type): Likewise
521 (compile_cplus_convert_typedef): std::move the scope passed to
522 enter_scope.
523 (compile_cplus_convert_struct_or_union): Likewise.
524 (compile_cplus_convert_enum): Likewise.
525 (compile_cplus_convert_namespace): Likewise.
526 * compile/compile-cplus.h (compile_cplus_instance)
527 <enter_scope>: Make parameter rvalue-reference.
528 * compile/compile-internal.h (compile_instance)
529 <get_cached_type>: Likewise
530 * compile/compile-loc2c.c (push): Likewise
531 (pushf): Likewise
532 (unary): Likewise
533 (binary): Likewise
534 (print_label): Likewise
535 (pushf_register_address): Likewise
536 (pushf_register): Likewise
537 (do_compile_dwarf_expr_to_c): Likewise
538 (compile_dwarf_expr_to_c): Likewise
539 (compile_dwarf_bounds_to_c): Likewise
540 * compile/compile.c (compile_instance::get_cached_type):
541 Likewise
542 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
543 (compile_dwarf_bounds_to_c): Likewise
544 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
545 (dwarf2_compile_property_to_c): Likewise
546 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
547 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
548 Likewise
549
cc5a5ae5
SM
5502018-09-06 Simon Marchi <simon.marchi@ericsson.com>
551
552 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
553 * tui/tui-data.c (init_content_element): Don't initialize it.
554
137be540
SM
5552018-09-06 Simon Marchi <simon.marchi@ericsson.com>
556
557 * tui/tui-data.h (struct tui_win_info)
558 <detail::opaque>: Remove.
559 * tui/tui-data.c (init_win_info): Remove assignment.
560
f1628857
TT
5612018-09-05 Tom Tromey <tom@tromey.com>
562
563 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
564 -Wformat-nonliteral.
565 * target-float.c (host_float_ops<T>::to_string)
566 (host_float_ops<T>::from_string): Use
567 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
568 * configure: Rebuild.
569
af39b1c2
SM
5702018-09-05 Simon Marchi <simon.marchi@ericsson.com>
571
572 * printcmd.c (printf_c_string): Use
573 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
574 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
575
081bca4d
TT
5762018-09-05 Tom Tromey <tom@tromey.com>
577
578 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
579
e4a62c65
TV
5802018-09-05 Tom de Vries <tdevries@suse.de>
581
582 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
583 with resolve_abstract_p == true.
584 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
585 defaulting to false. Propagate resolve_abstract_p to
586 dwarf2_fetch_die_loc_sect_off.
587 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
588 parameter, defaulting to false.
589 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
590 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
591 parameter.
592 * dwarf2read.h (struct die_info): Forward-declare.
593 (die_info_ptr): New typedef.
594 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
595
2b69821e
JB
5962018-09-05 Joel Brobecker <brobecker@adacore.com>
597
598 GDB 8.2 released.
599
fcc9b044
SDJ
6002018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
601 Pedro Alves <palves@redhat.com>
602
603 * gnulib/Makefile.in (aclocal_m4_deps): Move to
604 "aclocal-m4-deps.mk". Include file here.
605 $(srcdir)/aclocal.m4: Add "configure.ac".
606 * gnulib/aclocal-m4-deps.mk: New file.
607 * gnulib/update-gnulib.sh: Automatically update
608 "aclocal-m4-deps.mk".
609
d53d5436
TT
6102018-09-04 Tom Tromey <tom@tromey.com>
611
612 * configure: Rebuild.
613 * configure.ac: Remove multi-ice code.
614
8dc9fd87
TT
6152018-09-04 Tom Tromey <tom@tromey.com>
616
617 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
618 (ada-exp.o): Update.
619
3322c5d9
TT
6202018-09-04 Tom Tromey <tom@tromey.com>
621
622 * Makefile.in (printcmd.o, target-float.o): Remove.
623 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
624
ba2bf2aa
TT
6252018-09-04 Tom Tromey <tom@tromey.com>
626
627 * gnulib/Makefile.in: Remove obsolete comment.
628 * Makefile.in: Remove obsolete comment.
629
6c9d681b
AB
6302018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
631
632 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
633 line with '+'.
634
78a3b0fa
AB
6352018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
636
637 * riscv-tdep.c: Add 'prologue-value.h' include.
638 (struct riscv_unwind_cache): New struct.
639 (riscv_debug_unwinder): New global.
640 (riscv_scan_prologue): Update arguments, capture register details
641 from prologue scan.
642 (riscv_skip_prologue): Reformat arguments line, move end of
643 prologue calculation into riscv_scan_prologue.
644 (riscv_frame_cache): Update return type, create
645 riscv_unwind_cache, scan the prologue, and fill in remaining cache
646 details.
647 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
648 (riscv_frame_prev_register): Use the trad_frame within the
649 riscv_unwind_cache.
650 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
651 flag.
652
23e60e7a
AB
6532018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
654
655 * trad-frame.h (trad_frame_set_realreg): Declare.
656 (trad_frame_set_addr): Declare.
657 * trad-frame.c (trad_frame_set_realreg): Define new function.
658 (trad_frame_set_addr): Define new function.
659 (trad_frame_set_reg_realreg): Use new function.
660 (trad_frame_set_reg_addr): Use new function.
661
5c889512
KS
6622018-09-01 Keith Seitz <keiths@redhat.com>
663
664 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
665 pulongest instead of "%lld".
666 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
667 ATTRIBUTE_UNUSED.
668
c8c81635
TT
6692018-08-31 Tom Tromey <tom@tromey.com>
670
671 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
672 variant part type.
673
0c888588
PA
6742018-08-31 Pedro Alves <palves@redhat.com>
675
676 * gdbarch.h: Regenerate.
677
7ea65f08
PA
6782018-08-31 Pedro Alves <palves@redhat.com>
679
680 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
681 * target.h (Hardware watchpoint interfaces): Describe
682 continuable/steppable/non-steppable watchpoints.
683 * gdbarch.h, gdbarch.c: Regenerate.
684
7eb65faf
PA
6852018-08-31 Pedro Alves <palves@redhat.com>
686
687 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
688 Delete.
689 * s390-linux-nat.c
690 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
691 * target.h (target_ops::have_continuable_watchpoint): Delete.
692 (target_have_continuable_watchpoint): Delete.
693 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
694 * target-delegates.c: Regenerate.
695
dab999b1
SDJ
6962018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
697
698 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
699 the files present in "gnulib/import/m4/".
700
ff3a05b3
AB
7012018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
702
703 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
704 c.sw, c.swsp, and c.sdsp.
705
0b3f9efc
AB
7062018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 * riscv-tdep.c (struct riscv_inferior_data): Delete.
709 (riscv_read_misa_reg): Don't cache value read into inferior data.
710 (riscv_new_inferior_data): Delete.
711 (riscv_inferior_data_cleanup): Delete.
712 (riscv_inferior_data): Delete.
713 (riscv_invalidate_inferior_data): Delete.
714 (_initialize_riscv_tdep): Remove initialisation of inferior data.
715
a0dc02a6
SM
7162018-08-30 Simon Marchi <simon.marchi@ericsson.com>
717
718 * compile/compile-cplus-types.c
719 (compile_cplus_instance::leave_scope): Take the address of scope
720 object.
721 (compile_cplus_instance::convert_qualified_base): Compare quals
722 to 0.
723
fdad7678
KS
7242018-08-30 Keith Seitz <keiths@redhat.com>
725
726 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
727 Use "%s" and host_address_to_string instead of "%p" in printf.
728
078a0207
KS
7292018-08-29 Keith Seitz <keiths@redhat.com>
730
731 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
732 and compile-cplus-types.c.
733 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
734 * c-lang.c (cplus_language_defn): Set C++ compile functions.
735 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
736 Declare.
737 * compile/compile-c-support.c: Include compile-cplus.h.
738 (load_libcompile): Templatize.
739 (get_compile_context): "New" function.
740 (c_get_compile_context): Use get_compile_context.
741 (cplus_get_compile_context): New function.
742 (cplus_push_user_expression, cplus_pop_user_expression)
743 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
744 (cplus_compute_program): Define new structs/functions.
745 * compile/compile-cplus-symmbols.c: New file.
746 * compile/compile-cplus-types.c: New file.
747 * compile/compile-cplus.h: New file.
748 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
749 Declare.
750 * compile/compile-object-load.c (get_out_value_type): Use
751 strncmp_iw when comparing symbol names.
752 (compile_object_load): Add mst_bss and mst_data.
753 * compile/compile.c (_initialize_compile): Remove
754 -Wno-implicit-function-declaration from `compile_args'.
755 * compile/gcc-cp-plugin.h: New file.
756 * NEWS: Mention C++ compile support and new debug options.
757
fcaad03c
KS
7582018-08-29 Keith Seitz <keiths@redhat.com>
759
760 * linespec.c (collect_info::add_symbol): Make virtual.
761 (struct symbol_searcher_collect_info): New struct.
762 (symbol_searcher::find_all_symbols): New method.
763 * symtab.h (class symbol_searcher): New class.
764
7e41c8db
KS
7652018-08-29 Keith Seitz <keiths@redhat.com>
766
767 * linespec.c (struct linespec) <function_symbols, label_symbols>:
768 Change to vector of block_symbol. Update all users.
769 (struct collect_info) <symbols>: Likewise.
770 (collect_info::add_symbol): Take block_symbol as argument.
771 Update all callers.
772 (decode_compound_collector) <m_symbols>: Change type to vector
773 of block_symbol. Update all users.
774 (decode_compound_collector::operator ()): Change parameter type
775 to block_symbol.
776 (find_method, find_function_symbols, find_linespec_symbols)
777 (find_label_symbols_in_block, find_label_symbols): Change symbol
778 vectors to block_symbol vectors.
779 * symtab.h (symbol_found_callback_ftype): Change parameter type to
780 block_symbol.
781
63e8c3da
KS
7822018-08-29 Keith Seitz <keiths@redhat.com>
783
784 * linespec.c (symbolp): Remove typedef and VEC definitions.
785 (bound_minimal_symbol_d): Likewise.
786
4dedf84d
KS
7872018-08-29 Keith Seitz <keiths@redhat.com>
788
789 * linespec.c (decode_compound_collector::decode_compound_collector):
790 Remove initialization for `m_symtabs'.
791 (decode_compound_collector::release_symbols): Change return type
792 to std::vector. Update all callers.
793 (class decode_compound_collector) <m_symbols>: Change type to
794 std::vector.
795 (lookup_prefix_sym): Change return type to std::vector. Update all
796 callers.
797 (compare_symbols): Remove.
798 (std_compare_symbols): Rename to `compare_symbols'.
799 (find_method): Change `sym_classes' parameter to std::vector.
800 Update all callers. Use std::sort to sort sym_classes.
801 (find_linespec_symbols): Remove cleanup.
802
c2a031c5
KS
8032018-08-29 Keith Seitz <keiths@redhat.com>
804
805 * linespec.c (struct linespec) <minimal_symbols>: Change type to
806 std::vector. Update all users.
807 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
808 (struct collect_info) <minimal_symbols>: Likewise.
809 (compare_msymbols): Return bool. Change parameters to const
810 bound_minimal_symbol references.
811 (find_method, find_function_symbols, find_linespec_symbols): Change
812 `minsyms' parameter to std::vector. Update all callers.
813
3553eadc
KS
8142018-08-29 Keith Seitz <keiths@redhat.com>
815
816 * linespec.c (struct linespec) <label_symbols>: Change type to
817 std::vector. Update all users.
818 (find_label_symbols_in_block): Change `result' parameter to
819 std::vector. Update all callers.
820 (find_label_symbols): Return std::vector. Update all callers.
821
7243d011
KS
8222018-08-29 Keith Seitz <keiths@redhat.com>
823
824 * linespec.c (struct linespec) <function_symbols>: Change type to
825 std::vector. Update all users.
826 (struct collect_info) <function_symbols>: Likewise.
827 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
828 (std_compare_symbols): New function.
829 (find_method, find_function_symbols, find_linespec_symbols)
830 (find_label_symbols_in_block): Change `symbols' parameter to
831 std::vector. Update all callers.
832 (find_label_symbols): Likewise for `function_symbols' and
833 `label_funcs_ret'.
834
2a908241
KS
8352018-08-29 Keith Seitz <keiths@redhat.com>
836
837 * linespec.c (symtab_vector_up): Define.
838 (struct linespec) <file_symtabs>: Change type to std::vector *.
839 Update all uses.
840 (struct collect_info) <file_symtabs>: Likewise.
841 (collect_symtabs_from_filename): Return symtab_vector_up.
842 Update all callers.
843 (decode_objc): Remove cleanup.
844 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
845 (symtab_collector::release_symtabs): Return symtab_vector_up.
846 Update all callers.
847 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
848 Update all users.
849 (collect_symtabs_from_filename, symtabs_from_filename): Return
850 symtab_vector_up. Update all callers.
851
f6c4e3e8
TT
8522018-08-29 Tom Tromey <tom@tromey.com>
853
854 * csky-tdep.c (csky_analyze_prologue): Use
855 core_addr_to_string_nz.
856
73c13fe6
TT
8572018-08-29 Tom Tromey <tom@tromey.com>
858
859 * windows-nat.c (struct xlate_exception) <them>: Change type to
860 DWORD.
861 (xlate): Fix formatting. Remove last entry.
862 (struct xlate_exception, xlate): Comment out.
863 (windows_nat_target::resume): Use ranged for.
864
4d3928d7
JW
8652018-08-29 Jim Wilson <jimw@sifive.com>
866
867 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
868 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
869 of NT_PRFPREG.
870 (riscv_linux_nat_target::store_registers): Likewise.
871
7a6dbc2f
SDJ
8722018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
873
874 PR gdb/23555
875 PR gdb/23558
876 * gnulib/aclocal.m4: Regenerate.
877 * gnulib/config.in: Regenerate.
878 * gnulib/configure: Regenerate.
879 * gnulib/import/Makefile.am: Update.
880 * gnulib/import/Makefile.in: Update.
881 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
882 * gnulib/import/_Noreturn.h: ... this.
883 * gnulib/import/alloca.in.h: Update.
884 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
885 * gnulib/import/arg-nonnull.h: ... this.
886 * gnulib/import/assure.h: Update.
887 * gnulib/import/at-func.c: Update.
888 * gnulib/import/basename-lgpl.c: Update.
889 * gnulib/import/extra/snippet/c++defs.h: Rename to...
890 * gnulib/import/c++defs.h: ... this.
891 * gnulib/import/canonicalize-lgpl.c: Update.
892 * gnulib/import/cdefs.h: Update.
893 * gnulib/import/chdir-long.c: Update.
894 * gnulib/import/chdir-long.h: Update.
895 * gnulib/import/cloexec.c: Update.
896 * gnulib/import/cloexec.h: Update.
897 * gnulib/import/close.c: Update.
898 * gnulib/import/closedir.c: Update.
899 * gnulib/import/config.charset: Update.
900 * gnulib/import/dirent-private.h: Update.
901 * gnulib/import/dirent.in.h: Update.
902 * gnulib/import/dirfd.c: Update.
903 * gnulib/import/dirname-lgpl.c: Update.
904 * gnulib/import/dirname.h: Update.
905 * gnulib/import/dosname.h: Update.
906 * gnulib/import/dup-safer-flag.c: Update.
907 * gnulib/import/dup-safer.c: Update.
908 * gnulib/import/dup.c: Update.
909 * gnulib/import/dup2.c: Update.
910 * gnulib/import/errno.in.h: Update.
911 * gnulib/import/error.c: Update.
912 * gnulib/import/error.h: Update.
913 * gnulib/import/exitfail.c: Update.
914 * gnulib/import/exitfail.h: Update.
915 * gnulib/import/extra/update-copyright: Update.
916 * gnulib/import/fchdir.c: Update.
917 * gnulib/import/fcntl.c: Update.
918 * gnulib/import/fcntl.in.h: Update.
919 * gnulib/import/fd-hook.c: Update.
920 * gnulib/import/fd-hook.h: Update.
921 * gnulib/import/fd-safer-flag.c: Update.
922 * gnulib/import/fd-safer.c: Update.
923 * gnulib/import/fdopendir.c: Update.
924 * gnulib/import/filename.h: Update.
925 * gnulib/import/filenamecat-lgpl.c: Update.
926 * gnulib/import/filenamecat.h: Update.
927 * gnulib/import/flexmember.h: Update.
928 * gnulib/import/float+.h: Update.
929 * gnulib/import/float.c: Update.
930 * gnulib/import/float.in.h: Update.
931 * gnulib/import/fnmatch.c: Update.
932 * gnulib/import/fnmatch.in.h: Update.
933 * gnulib/import/fnmatch_loop.c: Update.
934 * gnulib/import/fpucw.h: Update.
935 * gnulib/import/frexp.c: Update.
936 * gnulib/import/frexpl.c: Update.
937 * gnulib/import/fstat.c: Update.
938 * gnulib/import/fstatat.c: Update.
939 * gnulib/import/getcwd-lgpl.c: Update.
940 * gnulib/import/getcwd.c: Update.
941 * gnulib/import/getdtablesize.c: Update.
942 * gnulib/import/getlogin_r.c: Update.
943 * gnulib/import/getprogname.c: Update.
944 * gnulib/import/getprogname.h: Update.
945 * gnulib/import/gettext.h: Update.
946 * gnulib/import/gettimeofday.c: Update.
947 * gnulib/import/glob-libc.h: Update.
948 * gnulib/import/glob.c: Update.
949 * gnulib/import/glob.in.h: Update.
950 * gnulib/import/glob_internal.h: Update.
951 * gnulib/import/glob_pattern_p.c: Update.
952 * gnulib/import/globfree.c: Update.
953 * gnulib/import/hard-locale.c: Update.
954 * gnulib/import/hard-locale.h: Update.
955 * gnulib/import/intprops.h: Update.
956 * gnulib/import/inttypes.in.h: Update.
957 * gnulib/import/isnan.c: Update.
958 * gnulib/import/isnand-nolibm.h: Update.
959 * gnulib/import/isnand.c: Update.
960 * gnulib/import/isnanl-nolibm.h: Update.
961 * gnulib/import/isnanl.c: Update.
962 * gnulib/import/itold.c: Update.
963 * gnulib/import/libc-config.h: Update.
964 * gnulib/import/limits.in.h: Update.
965 * gnulib/import/localcharset.c: Update.
966 * gnulib/import/localcharset.h: Update.
967 * gnulib/import/localtime-buffer.c: Update.
968 * gnulib/import/localtime-buffer.h: Update.
969 * gnulib/import/lstat.c: Update.
970 * gnulib/import/m4/00gnulib.m4: Update.
971 * gnulib/import/m4/__inline.m4: Update.
972 * gnulib/import/m4/absolute-header.m4: Update.
973 * gnulib/import/m4/alloca.m4: Update.
974 * gnulib/import/m4/builtin-expect.m4: Update.
975 * gnulib/import/m4/canonicalize.m4: Update.
976 * gnulib/import/m4/chdir-long.m4: Update.
977 * gnulib/import/m4/close.m4: Update.
978 * gnulib/import/m4/closedir.m4: Update.
979 * gnulib/import/m4/configmake.m4: Update.
980 * gnulib/import/m4/d-ino.m4: Update.
981 * gnulib/import/m4/d-type.m4: Update.
982 * gnulib/import/m4/dirent_h.m4: Update.
983 * gnulib/import/m4/dirfd.m4: Update.
984 * gnulib/import/m4/dirname.m4: Update.
985 * gnulib/import/m4/double-slash-root.m4: Update.
986 * gnulib/import/m4/dup.m4: Update.
987 * gnulib/import/m4/dup2.m4: Update.
988 * gnulib/import/m4/eealloc.m4: Update.
989 * gnulib/import/m4/environ.m4: Update.
990 * gnulib/import/m4/errno_h.m4: Update.
991 * gnulib/import/m4/error.m4: Update.
992 * gnulib/import/m4/exponentd.m4: Update.
993 * gnulib/import/m4/exponentl.m4: Update.
994 * gnulib/import/m4/extensions.m4: Update.
995 * gnulib/import/m4/extern-inline.m4: Update.
996 * gnulib/import/m4/fchdir.m4: Update.
997 * gnulib/import/m4/fcntl-o.m4: Update.
998 * gnulib/import/m4/fcntl.m4: Update.
999 * gnulib/import/m4/fcntl_h.m4: Update.
1000 * gnulib/import/m4/fdopendir.m4: Update.
1001 * gnulib/import/m4/filenamecat.m4: Update.
1002 * gnulib/import/m4/flexmember.m4: Update.
1003 * gnulib/import/m4/float_h.m4: Update.
1004 * gnulib/import/m4/fnmatch.m4: Update.
1005 * gnulib/import/m4/fnmatch_h.m4: Update.
1006 * gnulib/import/m4/fpieee.m4: Update.
1007 * gnulib/import/m4/frexp.m4: Update.
1008 * gnulib/import/m4/frexpl.m4: Update.
1009 * gnulib/import/m4/fstat.m4: Update.
1010 * gnulib/import/m4/fstatat.m4: Update.
1011 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1012 * gnulib/import/m4/getcwd-path-max.m4: Update.
1013 * gnulib/import/m4/getcwd.m4: Update.
1014 * gnulib/import/m4/getdtablesize.m4: Update.
1015 * gnulib/import/m4/getlogin.m4: Update.
1016 * gnulib/import/m4/getlogin_r.m4: Update.
1017 * gnulib/import/m4/getpagesize.m4: Update.
1018 * gnulib/import/m4/getprogname.m4: Update.
1019 * gnulib/import/m4/gettimeofday.m4: Update.
1020 * gnulib/import/m4/glibc21.m4: Update.
1021 * gnulib/import/m4/glob.m4: Update.
1022 * gnulib/import/m4/glob_h.m4: Update.
1023 * gnulib/import/m4/gnulib-cache.m4: Update.
1024 * gnulib/import/m4/gnulib-common.m4: Update.
1025 * gnulib/import/m4/gnulib-comp.m4: Update.
1026 * gnulib/import/m4/gnulib-tool.m4: Update.
1027 * gnulib/import/m4/hard-locale.m4: Update.
1028 * gnulib/import/m4/include_next.m4: Update.
1029 * gnulib/import/m4/inttypes-pri.m4: Update.
1030 * gnulib/import/m4/inttypes.m4: Update.
1031 * gnulib/import/m4/isnand.m4: Update.
1032 * gnulib/import/m4/isnanl.m4: Update.
1033 * gnulib/import/m4/largefile.m4: Update.
1034 * gnulib/import/m4/limits-h.m4: Update.
1035 * gnulib/import/m4/localcharset.m4: Update.
1036 * gnulib/import/m4/locale-fr.m4: Update.
1037 * gnulib/import/m4/locale-ja.m4: Update.
1038 * gnulib/import/m4/locale-zh.m4: Update.
1039 * gnulib/import/m4/localtime-buffer.m4: Update.
1040 * gnulib/import/m4/longlong.m4: Update.
1041 * gnulib/import/m4/lstat.m4: Update.
1042 * gnulib/import/m4/malloc.m4: Update.
1043 * gnulib/import/m4/malloca.m4: Update.
1044 * gnulib/import/m4/math_h.m4: Update.
1045 * gnulib/import/m4/mbrtowc.m4: Update.
1046 * gnulib/import/m4/mbsinit.m4: Update.
1047 * gnulib/import/m4/mbsrtowcs.m4: Update.
1048 * gnulib/import/m4/mbstate_t.m4: Update.
1049 * gnulib/import/m4/memchr.m4: Update.
1050 * gnulib/import/m4/memmem.m4: Update.
1051 * gnulib/import/m4/mempcpy.m4: Update.
1052 * gnulib/import/m4/memrchr.m4: Update.
1053 * gnulib/import/m4/mkdir.m4: Update.
1054 * gnulib/import/m4/mkstemp.m4: Update.
1055 * gnulib/import/m4/mmap-anon.m4: Update.
1056 * gnulib/import/m4/mode_t.m4: Update.
1057 * gnulib/import/m4/msvc-inval.m4: Update.
1058 * gnulib/import/m4/msvc-nothrow.m4: Update.
1059 * gnulib/import/m4/multiarch.m4: Update.
1060 * gnulib/import/m4/nocrash.m4: Update.
1061 * gnulib/import/m4/off_t.m4: Update.
1062 * gnulib/import/m4/onceonly.m4: Update.
1063 * gnulib/import/m4/open-cloexec.m4: Update.
1064 * gnulib/import/m4/open.m4: Update.
1065 * gnulib/import/m4/openat.m4: Update.
1066 * gnulib/import/m4/opendir.m4: Update.
1067 * gnulib/import/m4/pathmax.m4: Update.
1068 * gnulib/import/m4/rawmemchr.m4: Update.
1069 * gnulib/import/m4/readdir.m4: Update.
1070 * gnulib/import/m4/readlink.m4: Update.
1071 * gnulib/import/m4/realloc.m4: Update.
1072 * gnulib/import/m4/rename.m4: Update.
1073 * gnulib/import/m4/rewinddir.m4: Update.
1074 * gnulib/import/m4/rmdir.m4: Update.
1075 * gnulib/import/m4/save-cwd.m4: Update.
1076 * gnulib/import/m4/secure_getenv.m4: Update.
1077 * gnulib/import/m4/setenv.m4: Update.
1078 * gnulib/import/m4/signal_h.m4: Update.
1079 * gnulib/import/m4/ssize_t.m4: Update.
1080 * gnulib/import/m4/stat-time.m4: Update.
1081 * gnulib/import/m4/stat.m4: Update.
1082 * gnulib/import/m4/std-gnu11.m4: Update.
1083 * gnulib/import/m4/stdbool.m4: Update.
1084 * gnulib/import/m4/stddef_h.m4: Update.
1085 * gnulib/import/m4/stdint.m4: Update.
1086 * gnulib/import/m4/stdio_h.m4: Update.
1087 * gnulib/import/m4/stdlib_h.m4: Update.
1088 * gnulib/import/m4/strchrnul.m4: Update.
1089 * gnulib/import/m4/strdup.m4: Update.
1090 * gnulib/import/m4/strerror.m4: Update.
1091 * gnulib/import/m4/string_h.m4: Update.
1092 * gnulib/import/m4/strstr.m4: Update.
1093 * gnulib/import/m4/strtok_r.m4: Update.
1094 * gnulib/import/m4/sys_socket_h.m4: Update.
1095 * gnulib/import/m4/sys_stat_h.m4: Update.
1096 * gnulib/import/m4/sys_time_h.m4: Update.
1097 * gnulib/import/m4/sys_types_h.m4: Update.
1098 * gnulib/import/m4/tempname.m4: Update.
1099 * gnulib/import/m4/time_h.m4: Update.
1100 * gnulib/import/m4/unistd-safer.m4: Update.
1101 * gnulib/import/m4/unistd_h.m4: Update.
1102 * gnulib/import/m4/warn-on-use.m4: Update.
1103 * gnulib/import/m4/wchar_h.m4: Update.
1104 * gnulib/import/m4/wchar_t.m4: Update.
1105 * gnulib/import/m4/wctype_h.m4: Update.
1106 * gnulib/import/m4/wint_t.m4: Update.
1107 * gnulib/import/malloc.c: Update.
1108 * gnulib/import/malloc/scratch_buffer.h: Update.
1109 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1110 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1111 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1112 * gnulib/import/malloca.c: Update.
1113 * gnulib/import/malloca.h: Update.
1114 * gnulib/import/malloca.valgrind: Update.
1115 * gnulib/import/math.in.h: Update.
1116 * gnulib/import/mbrtowc.c: Update.
1117 * gnulib/import/mbsinit.c: Update.
1118 * gnulib/import/mbsrtowcs-impl.h: Update.
1119 * gnulib/import/mbsrtowcs-state.c: Update.
1120 * gnulib/import/mbsrtowcs.c: Update.
1121 * gnulib/import/memchr.c: Update.
1122 * gnulib/import/memmem.c: Update.
1123 * gnulib/import/mempcpy.c: Update.
1124 * gnulib/import/memrchr.c: Update.
1125 * gnulib/import/mkdir.c: Update.
1126 * gnulib/import/mkstemp.c: Update.
1127 * gnulib/import/msvc-inval.c: Update.
1128 * gnulib/import/msvc-inval.h: Update.
1129 * gnulib/import/msvc-nothrow.c: Update.
1130 * gnulib/import/msvc-nothrow.h: Update.
1131 * gnulib/import/open.c: Update.
1132 * gnulib/import/openat-die.c: Update.
1133 * gnulib/import/openat-priv.h: Update.
1134 * gnulib/import/openat-proc.c: Update.
1135 * gnulib/import/openat.c: Update.
1136 * gnulib/import/openat.h: Update.
1137 * gnulib/import/opendir.c: Update.
1138 * gnulib/import/pathmax.h: Update.
1139 * gnulib/import/pipe-safer.c: Update.
1140 * gnulib/import/rawmemchr.c: Update.
1141 * gnulib/import/readdir.c: Update.
1142 * gnulib/import/readlink.c: Update.
1143 * gnulib/import/realloc.c: Update.
1144 * gnulib/import/ref-add.sin: Update.
1145 * gnulib/import/ref-del.sin: Update.
1146 * gnulib/import/rename.c: Update.
1147 * gnulib/import/rewinddir.c: Update.
1148 * gnulib/import/rmdir.c: Update.
1149 * gnulib/import/same-inode.h: Update.
1150 * gnulib/import/save-cwd.c: Update.
1151 * gnulib/import/save-cwd.h: Update.
1152 * gnulib/import/scratch_buffer.h: Update.
1153 * gnulib/import/secure_getenv.c: Update.
1154 * gnulib/import/setenv.c: Update.
1155 * gnulib/import/signal.in.h: Update.
1156 * gnulib/import/stat-time.c: Update.
1157 * gnulib/import/stat-time.h: Update.
1158 * gnulib/import/stat-w32.c: Update.
1159 * gnulib/import/stat-w32.h: Update.
1160 * gnulib/import/stat.c: Update.
1161 * gnulib/import/stdbool.in.h: Update.
1162 * gnulib/import/stddef.in.h: Update.
1163 * gnulib/import/stdint.in.h: Update.
1164 * gnulib/import/stdio.in.h: Update.
1165 * gnulib/import/stdlib.in.h: Update.
1166 * gnulib/import/str-two-way.h: Update.
1167 * gnulib/import/strchrnul.c: Update.
1168 * gnulib/import/strdup.c: Update.
1169 * gnulib/import/streq.h: Update.
1170 * gnulib/import/strerror-override.c: Update.
1171 * gnulib/import/strerror-override.h: Update.
1172 * gnulib/import/strerror.c: Update.
1173 * gnulib/import/string.in.h: Update.
1174 * gnulib/import/stripslash.c: Update.
1175 * gnulib/import/strnlen1.c: Update.
1176 * gnulib/import/strnlen1.h: Update.
1177 * gnulib/import/strstr.c: Update.
1178 * gnulib/import/strtok_r.c: Update.
1179 * gnulib/import/sys_stat.in.h: Update.
1180 * gnulib/import/sys_time.in.h: Update.
1181 * gnulib/import/sys_types.in.h: Update.
1182 * gnulib/import/tempname.c: Update.
1183 * gnulib/import/tempname.h: Update.
1184 * gnulib/import/time.in.h: Update.
1185 * gnulib/import/unistd--.h: Update.
1186 * gnulib/import/unistd-safer.h: Update.
1187 * gnulib/import/unistd.in.h: Update.
1188 * gnulib/import/unsetenv.c: Update.
1189 * gnulib/import/verify.h: Update.
1190 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1191 * gnulib/import/wchar.in.h: Update.
1192 * gnulib/import/wctype.in.h: Update.
1193 * gnulib/import/xalloc-oversized.h: Update.
1194 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1195 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1196
b0f492b9
GB
11972018-08-16 Gary Benson <gbenson@redhat.com>
1198
1199 PR gdb/13000:
1200 * gdb/main.c (captured_main_1): Exit with nonzero status
1201 in batch mode if the last command to be executed failed.
1202 * NEWS: Mention the above.
1203
2362e7f7
SM
12042018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1205
1206 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1207 end of warning message.
1208
4f4aedeb
AH
12092018-08-29 Alan Hayward <alan.hayward@arm.com>
1210
1211 PR gdb/22943:
1212 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1213 (aarch64_extract_return_value): Use
1214 aapcs_is_vfp_call_or_return_candidate.
1215 (aarch64_return_in_memory): Likewise.
1216 (aarch64_store_return_value): Likewise.
1217
0e745c60
AH
12182018-08-29 Alan Hayward <alan.hayward@arm.com>
1219
1220 * aarch64-tdep.c
1221 (aapcs_is_vfp_call_or_return_candidate): Make static
1222 (pass_in_v_or_stack): Remove function.
1223 (pass_in_v_vfp_candidate): New function.
1224 (aarch64_push_dummy_call): Check for float register candidates.
1225
ea92689a
AH
12262018-08-29 Alan Hayward <alan.hayward@arm.com>
1227
1228 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1229 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1230 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1231
ad202fcc
SM
12322018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1233
1234 PR build/23399
1235 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1236 (struct ipa_sym_addresses): Rename to...
1237 (struct ipa_sym_addresses_common): ... this.
1238 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1239
5fe3f3e4
TT
12402018-08-28 Tom Tromey <tom@tromey.com>
1241
1242 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1243 (token_fifo): Now a std::vector.
1244 (yylex, c_parse): Update.
1245 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1246 (token_fifo): Now a std::vector.
1247 (yylex, d_parse): Update.
1248 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1249 (token_fifo): Now a std::vector.
1250 (yylex, go_parse): Update.
1251
858d8004
SM
12522018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1253
1254 * parser-defs.h (struct type_stack) <elements>: Change type to
1255 std::vector<union type_stack_elt>.
1256 <depth, size>: Remove.
1257 * parse.c (parse_exp_in_context_1): Adjust.
1258 (type_stack_reserve): Remove.
1259 (check_type_stack_depth): Remove.
1260 (insert_into_type_stack): Adjust to std::vector.
1261 (insert_type): Likewise.
1262 (push_type): Likewise.
1263 (push_type_int): Likewise.
1264 (insert_type_address_space): Likewise.
1265 (pop_type): Likewise.
1266 (pop_type_int): Likewise.
1267 (pop_typelist): Likewise.
1268 (pop_type_stack): Likewise.
1269 (append_type_stack): Likewise.
1270 (push_type_stack): Likewise.
1271 (get_type_stack): Likewise.
1272 (type_stack_cleanup): Likewise.
1273 (push_typelist): Likewise.
1274 (follow_types): Likewise.
1275 (_initialize_parse): Likewise.
1276
416a69af
HAQ
12772018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1278
1279 * NEWS: Mention csky target.
1280
9d24df82
HAQ
12812018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1282 Hafiz Abid Qadeer <abidh@codesourcery.com>
1283 Don Breazeal <donb@codesourcery.com>
1284
1285 * csky-linux-tdep.c: New file.
1286 * csky-tdep.c: Likewise.
1287 * csky-tdep.h: Likewise.
1288 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1289 csky-tdep.o.
1290 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1291 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1292 * configure.tgt: Add csky support.
1293
3bf9c013
JV
12942018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1295
1296 * python/py-framefilter.c (py_print_frame): Print frame architecture
1297 when printing on an MI output.
1298
d3d8724a
TT
12992018-08-27 Tom Tromey <tom@tromey.com>
1300
1301 PR build/23087:
1302 * configure: Rebuild.
1303 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1304
1885053b
TT
13052018-08-27 Tom Tromey <tom@tromey.com>
1306
1307 * aarch64-linux-tdep.c
1308 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1309 casts to int.
1310
8406672e
TT
13112018-08-27 Tom Tromey <tom@tromey.com>
1312
1313 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1314 unsigned.
1315 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1316 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1317 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1318 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1319 unsigned.
1320
ec40cf90
TT
13212018-08-27 Tom Tromey <tom@tromey.com>
1322
1323 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1324 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1325
7bc02706
TT
13262018-08-27 Tom Tromey <tom@tromey.com>
1327
1328 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1329 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1330 ULONGEST_MAX.
1331 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1332 ULONGEST_MAX.
1333 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1334 ULONGEST_MAX.
1335 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1336 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1337 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1338 ULONGEST_MAX.
1339 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1340 (ppc64_linux_sigaction_tramp_frame)
1341 (ppc32_linux_sighandler_tramp_frame)
1342 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1343 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1344 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1345 * mn10300-linux-tdep.c (am33_linux_sigframe)
1346 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1347 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1348 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1349 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1350 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1351 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1352 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1353 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1354 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1355 * microblaze-linux-tdep.c
1356 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1357 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1358 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1359 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1360 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1361 * common/common-types.h (ULONGEST_MAX): New define.
1362 (CORE_ADDR_MAX): Fix formatting.
1363 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1364 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1365 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1366 (arm_linux_rt_sigreturn_tramp_frame)
1367 (arm_eabi_linux_sigreturn_tramp_frame)
1368 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1369 (thumb2_eabi_linux_sigreturn_tramp_frame)
1370 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1371 (arm_linux_restart_syscall_tramp_frame)
1372 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1373 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1374 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1375 ULONGEST_MAX.
1376 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1377
70ab8ccd
TT
13782018-08-27 Tom Tromey <tom@tromey.com>
1379
1380 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1381 CORE_ADDR_MAX.
1382 * mips-tdep.c (mips_deal_with_atomic_sequence)
1383 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1384 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1385 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1386 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1387 CORE_ADDR_MAX.
1388 * aarch64-tdep.c (aarch64_software_single_step): Use
1389 CORE_ADDR_MAX.
1390
896a7aa6
TT
13912018-08-27 Tom Tromey <tom@tromey.com>
1392
1393 * linespec.c (complete_linespec_component): Add cast to "char".
1394 * completer.c (completion_tracker::build_completion_result): Add
1395 cast to "char".
1396
dd33d41d
SM
13972018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1398
1399 * solist.h (struct solist, struct target_so_ops): Fix
1400 indentation.
1401
c645cda4
SM
14022018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1403
1404 * ada-tasks.c (ada_task_info_s): Remove typedef.
1405 (DEF_VEC_O(ada_task_info_s)): Remove.
1406 (struct ada_tasks_inferior_data): Initialize fields.
1407 <task_list>: Make an std::vector.
1408 (get_ada_tasks_inferior_data): Allocate with new.
1409 (ada_get_task_number): Adjust.
1410 (get_task_number_from_id): Likewise.
1411 (valid_task_id): Likewise.
1412 (ada_get_task_info_from_ptid): Likewise.
1413 (iterate_over_live_ada_tasks): Likewise.
1414 (add_ada_task): Likewise.
1415 (read_known_tasks): Likewise.
1416 (ada_build_task_list): Likewise.
1417 (print_ada_task_info): Likewise.
1418 (info_task): Likewise.
1419 (task_command_1): Likewise.
1420
39e7af3e
SM
14212018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1422
1423 * ada-lang.c (add_angle_brackets): Return std::string.
1424
bbbbbcee
SM
14252018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1426
1427 * python/py-threadevent.c (py_get_event_thread): Initialize
1428 pythread.
1429
d98fc15b
PA
14302018-08-24 Pedro Alves <palves@redhat.com>
1431
1432 * python/py-bpevent.c (create_breakpoint_event_object): Use
1433 copy-initialization.
1434 * python/py-continueevent.c (emit_continue_event): Use
1435 copy-initialization.
1436 * python/py-exitedevent.c (create_exited_event_object): Return a
1437 gdbpy_ref<>.
1438 (emit_exited_event): Use copy-initialization.
1439 * python/py-inferior.c (python_new_inferior)
1440 (python_inferior_deleted, add_thread_object): Use
1441 copy-initialization.
1442 * python/py-infevents.c (create_inferior_call_event_object)
1443 (create_register_changed_event_object)
1444 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1445 (emit_inferior_call_event, emit_memory_changed_event)
1446 (emit_register_changed_event): Use copy-initialization.
1447 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1448 Return a gdbpy_ref<>.
1449 (emit_new_objfile_event): Use copy-initialization.
1450 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1451 (emit_clear_objfiles_event): Use copy-initialization.
1452 * python/py-signalevent.c (create_signal_event_object): Use
1453 copy-initialization.
1454 * python/py-threadevent.c (create_thread_event_object): Use
1455 copy-initialization.
1456
da3c8738
PA
14572018-08-24 Pedro Alves <palves@redhat.com>
1458 Simon Marchi <simon.marchi@ericsson.com>
1459
1460 PR gdb/23379
1461 * python/py-continueevent.c: Include "gdbthread.h".
1462 (create_continue_event_object): Add intro comment. Add 'ptid'
1463 parameter. Use it to find thread to pass to
1464 create_thread_event_object.
1465 (emit_continue_event): Pass PTID down to
1466 create_continue_event_object.
1467 * python/py-event.h (py_get_event_thread): Declare.
1468 (create_thread_event_object): Remove default from 'thread'
1469 parameter.
1470 * python/py-stopevent.c (create_stop_event_object): Use
1471 py_get_event_thread.
1472 * python/py-threadevent.c (get_event_thread): Rename to ...
1473 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1474 and use it to find the thread.
1475 (create_thread_event_object): Assert that THREAD isn't null.
1476 Don't find the event thread here.
1477
26457a9c
KB
14782018-08-23 Kevin Buettner <kevinb@redhat.com>
1479
1480 * block.h (blockrange, blockranges): New struct declarations.
1481 (struct block): Add new field named `ranges'.
1482 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1483 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1484 macros for accessing ranges in struct block.
1485 (make_blockranges): New declaration.
1486 block.c (make_blockranges): New function.
2d5f09ec
KB
1487 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1488 for block.
fc811edd
KB
1489 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1490 * blockframe.c (cache_pc_function_block): New static global.
1491 (clear_pc_function_cache): Clear cache_pc_function_block.
1492 (find_pc_partial_function): Move comment to symtab.h. Add
1493 support for non-contiguous blocks.
e9480230
KB
1494 * cli/cli-cmds.c (block.h): Include.
1495 (print_disassembly): Handle printing of non-contiguous blocks.
1496 (disassemble_current_function): Likewise.
1497 (disassemble_command): Likewise.
26457a9c 1498
2b1ffcfd
KB
1499 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1500 BLOCK_START.
1501 * blockframe.c (get_pc_function_start): Likewise.
1502 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1503 (gcc_symbol_address): Likewise.
1504 * compile/compile-object-run.c (compile_object_run): Likewise.
1505 * compile/compile.c (get_expr_block_and_pc): Likewise.
1506 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1507 (func_addr_to_tail_call_list): Likewise.
1508 * findvar.c (default_read_var_value): Likewise.
1509 * inline-frame.c (inline_frame_this_id): Likewise.
1510 (skip-inline_frames): Likewise.
1511 * infcmd.c (until_next_command): Likewise.
1512 * linespec.c (convert_linespec_to_sals): Likewise.
1513 * parse.c (parse_exp_in_context_1): Likewise.
1514 * printcmd.c (build_address_symbolic): likewise.
1515 (info_address_command): Likewise.
1516 symtab.c (find_function_start_sal): Likewise.
1517 (skip_prologue_sal): Likewise.
1518 (find_function_alias_target): Likewise.
1519 (find_gnu_ifunc): Likewise.
1520 * stack.c (find_frame_funname): Likewise.
1521 * symtab.c (fixup_symbol_section): Likewise.
1522 (find_function_start_sal): Likewise.
1523 (skip_prologue_sal): Likewsie.
1524 (find_function_alias_target): Likewise.
1525 (find_gnu_ifunc): Likewise.
1526 * tracepoint.c (info_scope_command): Likewise.
1527 * value.c (value_fn_field): Likewise.
1528
9644dc3a
KB
1529 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1530 in place of find_pc_partial_function.
1531 * blockframe.c (find_function_entry_range_from_pc): New function.
1532 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1533 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1534 for each range in a block.
1535
1536
12a0d0f6
XR
15372018-08-23 Xavier Roirand <roirand@adacore.com>
1538
1539 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1540 incrementation.
1541
d1012b8e
SM
15422018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1543
1544 * solib-svr4.c (read_program_headers_from_bfd): Return
1545 gdb::optional<gdb::byte_vector>.
1546 (svr4_exec_displacement): Adjust.
1547
17658d46
SM
15482018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1549
1550 * solib-svr4.c (read_program_header): Return
1551 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1552 (find_program_interpreter): Return
1553 gdb::optional<gdb::byte_vector>.
1554 (scan_dyntag_auxv): Adjust.
1555 (enable_break): Adjust.
1556 (svr4_exec_displacement): Adjust.
1557
ae739fe7
SM
15582018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1559
1560 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1561 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1562
467dc1e2
SM
15632018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1564
1565 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1566 string_vprintf.
1567 * guile/scm-utils.c (gdbscm_printf): Likewise.
1568 * serial.c (serial_printf): Likewise.
1569 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1570
6d52907e
JV
15712018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1572
1573 * stack.c (print_frame): Print frame architecture when printing on
1574 an MI output.
1575 * NEWS: Mention new "arch" attribute in frame output.
1576
9758a8f8
AH
15772018-08-21 Alan Hayward <alan.hayward@arm.com>
1578
1579 * arch/aarch64.h (aarch64_regnum): Update comment.
1580
1461bdac
AH
15812018-08-21 Alan Hayward <alan.hayward@arm.com>
1582
1583 * NEWS: Add SVE to 8.2 section.
1584
4895f384
PA
15852018-08-21 Pedro Alves <palves@redhat.com>
1586
1587 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1588 out from gdbscm_parse_function_args.
1589 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1590 gdbscm_parse_function_args_1.
1591
a4497d2f
SM
15922018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1593
1594 PR gdb/17816
1595 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1596 operator.
1597
c44deb73
SM
15982018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1599
1600 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1601
be2d111a
MS
16022018-08-19 Michael Spang <spang@google.com>
1603
1604 PR gdb/11786
1605 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1606 for PT_TLS segments.
1607
a6b786da
KB
16082018-08-18 Kevin Buettner <kevinb@redhat.com>
1609
1610 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1611 dwarf_variable_value.
1612 * dwarf2-frame.c (class dwarf_expr_executor):
1613 Add override for dwarf_variable_value.
1614 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1615 (class symbol_needs_eval_context): Likewise.
1616 (indirect_synthetic_pointer): Add forward declaration.
1617 (sect_variable_value): New function.
1618 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1619 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1620 for DW_OP_GNU_variable_value.
1621
89fbedf3
TT
16222018-08-16 Tom Tromey <tom@tromey.com>
1623
1624 * top.c (read_command_file): Update.
1625 (command_line_input): Remove "repeat" argument.
1626 * ada-lang.c (get_selections): Update.
1627 * linespec.c (decode_line_2): Update.
1628 * defs.h (command_line_input): Remove argument.
1629 * cli/cli-script.c (read_next_line): Update.
1630 * python/py-gdb-readline.c: Update.
1631
12582533
TT
16322018-08-17 Tom Tromey <tom@tromey.com>
1633
1634 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1635 command_line_input.
1636
49514353
TT
16372018-08-15 Tom Tromey <tom@tromey.com>
1638
1639 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1640
26fb3983
JV
16412018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1642
1643 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1644 If used, use find_pc_partial_function to find address range
1645 to disassemble.
1646 * mi/mi-main.c (mi_cmd_list_features): Report
1647 "data-disassemble-a-option" feature.
1648 * NEWS: Mention new -data-disassemble option -a.
1649
a97b53dd
TT
16502018-08-13 Tom Tromey <tom@tromey.com>
1651
1652 * common/common-defs.h (_FORTIFY_SOURCE): Define.
1653
0c76e06d
AH
16542018-08-13 Alan Hayward <alan.hayward@arm.com>
1655
1656 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1657 (aarch64_linux_collect_sve_regset): Likewise.
1658 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1659 * regcache.h (regcache_map_entry_size): New function.
1660
b7fd65b9
AH
16612018-08-13 Alan Hayward <alan.hayward@arm.com>
1662
1663 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1664 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1665 (SVE_HEADER_VL_LENGTH): Likewise.
1666 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1667 (SVE_HEADER_FLAGS_LENGTH): Likewise.
1668 (SVE_HEADER_RESERVED_LENGTH): Likewise.
1669 (SVE_HEADER_SIZE_OFFSET): Likewise.
1670 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1671 (SVE_HEADER_VL_OFFSET): Likewise.
1672 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1673 (SVE_HEADER_FLAGS_OFFSET): Likewise.
1674 (SVE_HEADER_RESERVED_OFFSET): Likewise.
1675 (SVE_HEADER_SIZE): Likewise.
1676 (aarch64_linux_core_read_vq): Add function.
1677 (aarch64_linux_core_read_description): Check for SVE section.
1678
a616bb94
AH
16792018-08-13 Alan Hayward <alan.hayward@arm.com>
1680
1681 * aarch64-fbsd-tdep.c
1682 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1683 collect_size.
1684 * aarch64-linux-tdep.c
1685 (aarch64_linux_iterate_over_regset_sections): Likewise.
1686 * alpha-linux-tdep.c
1687 (alpha_linux_iterate_over_regset_sections):
1688 * alpha-nbsd-tdep.c
1689 (alphanbsd_iterate_over_regset_sections): Likewise.
1690 * amd64-fbsd-tdep.c
1691 (amd64fbsd_iterate_over_regset_sections): Likewise.
1692 * amd64-linux-tdep.c
1693 (amd64_linux_iterate_over_regset_sections): Likewise.
1694 * arm-bsd-tdep.c
1695 (armbsd_iterate_over_regset_sections): Likewise.
1696 * arm-fbsd-tdep.c
1697 (arm_fbsd_iterate_over_regset_sections): Likewise.
1698 * arm-linux-tdep.c
1699 (arm_linux_iterate_over_regset_sections): Likewise.
1700 * corelow.c (get_core_registers_cb): Likewise.
1701 (core_target::fetch_registers): Likewise.
1702 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1703 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1704 * gdbarch.h (void): Regenerate.
1705 * gdbarch.sh: Add supply_size and collect_size.
1706 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1707 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1708 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1709 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1710 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1711 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1712 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1713 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1714 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1715 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1716 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1717 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1718 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1719 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1720 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1721 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1722 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1723 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1724 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1725 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1726 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1727 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1728 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1729 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1730 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1731 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1732 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1733 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1734 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1735 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1736
a9925d4f
SM
17372018-08-10 Simon Marchi <simon.marchi@ericsson.com>
1738
1739 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1740 with string_printf.
1741
ad3a68e9
KS
17422018-08-10 Keith Seitz <keiths@redhat.com>
1743
1744 * compile/compile-c-support.c (add_code_header, add_code_footer):
1745 Move into policy class.
1746 (c_push_user_expression, pop_user_expression_nop)
1747 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1748 (compile_program): New host class.
1749 (c_compile_program): New typedef.
1750 (c_compute_porgram): Use c_compile_program.
1751
0cfbf430
KS
17522018-08-10 Keith Seitz <keiths@redhat.com>
1753
1754 * compile/compile-internal.h (compile_instance::~compile_instance):
1755 Remove calls to htab_delete.
1756 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1757 * compile.c (compile_instance::compile_instance): Initialize
1758 htab unique pointers.
1759 (compile_instance::get_cached_type, compile_instance::insert_type)
1760 (compile_instance::error_symbol_once): Update for unique_ptr.
1761
946d3d10
KS
17622018-08-10 Keith Seitz <keiths@redhat.com>
1763
1764 * compile/compile-c-symbols.c (struct symbol_error)
1765 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1766 (compile_instance::insert_symbol_error)
1767 (compile_instance::error_symbol_once): Move to ...
1768 * compile/compile.c: ... here.
1769
9cdfd9a2
KS
17702018-08-10 Keith Seitz <keiths@redhat.com>
1771
1772 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1773 instead of `new_compile_instance'.
1774 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1775 Update description.
1776 If the symbol error map is not initialized, create it.
1777 (generate_c_for_for_one_symbol): Do not check/initialize
1778 the symbol error map.
1779 * compile/compile-c-types.c (compile_c_instance): Make a class.
1780 Update all callers.
1781 (compile_instance::compile_instance): Initialize the type cache.
1782 (get_cached_type): New function.
1783 (insert_type): Update description.
1784 (compile_c_instance::m_default_cflags): Define.
1785 (convert_type): Update description. Use get_cached_type.
1786 (delete_instance): Moved to destructor.
1787 (new_compile_instance): Moved to constructor.
1788 * compile/compile-c.h (compile_c_instance): Make class inheriting
1789 from compile_instance.
1790 <base>: Remove field.
1791 <type_map, symbol_err_map>: Move to base class.
1792 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1793 * compile/compile-internal.h (compile_instance): Make class.
1794 <type_map_t, symbol_err_map_t>: Define.
1795 <fe>: Rename to `m_gcc_fe'.
1796 <scope, block, gcc_target_options>: Add `m_' prefix.
1797 <m_type_map, m_symbol_err_map>: New fields, moved from
1798 compile_c_instance.
1799 <destroy>: Remove.
1800 (convert_type, new_compile_instance): Remove.
1801 * compile/compile.c (cleanup_compile_instance): Remove.
1802 (compile_to_object): Use unique_ptr to eliminate cleanups.
1803 (compile_instance::set_print_callback, compile_instance::version)
1804 (compile_instance::set_verbose)
1805 (compile_instance::set_driver_filename)
1806 (compile_instance::set_triplet_regexp)
1807 (compile_instance::set_arguments)
1808 (compile_instance::set_source_file)
1809 (compile_instance::compile): Define.
1810
18cdc6d8
KS
18112018-08-10 Keith Seitz <keiths@redhat.com>
1812
1813 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1814 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1815 gcc-c-fe.def to define C plugin.
1816 (delete_instance): Delete `c_plugin'.
1817 (new_compile_instance): Initialize `c_plugin'.
1818 * compile/compile-c.h: Include gcc_c_plugin.h.
1819 (struct compile_c_instance) <c_plugin>: New member.
1820 * gcc-c-plugin.h: New file.
1821 Update all callers with API change.
1822
b7dc48b4
KS
18232018-08-10 Keith Seitz <keiths@redhat.com>
1824
1825 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1826 (HFILES_NO_SRCDIR): ... to here.
1827 Add compile-internal.h and compile-c.h.
1828 * compile/compile-c-support.c: Include compile-c.h.
1829 * compile/compile-c-symbols.c: Include compile-c.h.
1830 (generate_c_for_variable_locations): Update comment.
1831 * compile/compile-c-types.c: Include compile-c.h.
1832 * compile/compile-c.h: New file -- moved C language declarations
1833 from other files here.
1834 * compile/compile-internal.h: Do not include hashtab.h or
1835 common/enum-flags.h.
1836 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1837 (gcc_convert_symbol, gcc_symbol_address)
1838 (generate_c_for_variable_locations, c_get_mode_for_size)
1839 (c_get_range_decl_name): Definitions moved to compile-c.h.
1840 * compile/compile-loc2c.c: Include compile-c.h.
1841
6f36b6d2
KS
18422018-08-10 Keith Seitz <keiths@redhat.com>
1843
1844 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1845 (c_symbol_substitution_name): ... this.
1846 Update all callers.
1847
bd923e51
KS
18482018-08-10 Keith Seitz <keiths@redhat.com>
1849
1850 * compile/compile-c-support.c (c_compute_program): Use
1851 unique_xmalloc_ptr to eliminate cleanup.
1852 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1853 Return a unique_xmalloc_ptr and eliminate cleanup.
1854 * compile/compile-internal.h (generate_c_for_variable_locations):
1855 Return unique_xmalloc_ptr and update description.
1856
dbd534fe
AH
18572018-08-10 Alan Hayward <alan.hayward@arm.com>
1858
1859 * corelow.c (core_target::get_core_register_section): Rename
1860 min_size to section_min_size.
1861
90ad3654
JW
18622018-08-09 Jim Wilson <jimw@sifive.com>
1863
52a187f8
JW
1864 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1865 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1866 * NEWS: Mention new GNU/Linux RISC-V target.
1867 * configure.host: Add riscv*-*-linux*.
1868 * configure.nat: Add riscv*.
1869 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 1870 * riscv-linux-nat.c: New file.
90ad3654
JW
1871 * riscv-linux-tdep.c: New file.
1872
aff4e175
AB
18732018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1874
1875 * infrun.c (resume): Make static, add forward declaration.
1876 (proceed): Update header comment.
1877 * infrun.h (resume): Delete declaration.
1878
06ab9219
TT
18792018-08-09 Tom Tromey <tom@tromey.com>
1880
1881 * riscv-tdep.h: Minor formatting fixes.
1882
83c8d318
SM
18832018-08-09 Simon Marchi <simon.marchi@ericsson.com>
1884
1885 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
1886 * dwarf-index-cache.c (create_dir_and_check): Likewise.
1887 (test_mkdir_recursive): Likewise.
1888 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
1889
5ff2bbae
AB
18902018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1891
1892 * valarith.c (value_subscripted_rvalue): If an array is not in
1893 memory, and we don't know the upper bound, then we can't know that
1894 the requested element exists or not.
1895
fdbac7d8
SM
18962018-08-08 Simon Marchi <simon.marchi@ericsson.com>
1897
1898 * target.c (str_comma_list_concat_elem): Fix typo in comment.
1899 (target_options_to_string): Add comment.
1900
83202f7a
TT
19012018-08-08 Tom Tromey <tom@tromey.com>
1902
1903 * unittests/scoped_mmap-selftests.c: Check result of "write".
1904
411baa47
JW
19052018-08-08 Jim Wilson <jimw@sifive.com>
1906
5c720ed8
JW
1907 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
1908 (decode_register_index_short): New.
1909 (decode_j_type_insn, decode_cj_type_insn): New.
1910 (decode_b_type_insn, decode_cb_type_insn): New.
1911 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
1912 local xlen. Check xlen when decoding ambiguous compressed insns. In
1913 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
1914 is_c_sw_insn instead of is_sw_insn.
1915 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
1916 (riscv_software_single_step): New.
1917 * riscv-tdep.h (riscv_software_single_step): Declare.
1918
411baa47
JW
1919 * riscv-tdep.c (riscv_isa_xlen): Drop static.
1920 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
1921
9d4a934c
AB
19222018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
1923
1924 PR gdb/18050:
1925 * target.c (dispose_inferior): Don't dispose of inferiors that are
1926 already killed.
1927
ff36536c
SN
19282018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1929
1930 * remote.c (remote_target::download_tracepoint): Change char* to
1931 const char*.
1932
09ce46f2
SM
19332018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1934
1935 * target.h (target_options_to_string): Return an std::string.
1936 * target.c (str_comma_list_concat_elem): Return void, use
1937 std::string.
1938 (do_option): Likewise.
1939 (target_options_to_string): Return an std::string.
1940 * linux-nat.c (linux_nat_target::wait): Adjust.
1941 * target-debug.h (target_debug_print_options): Adjust.
1942
9c612964
TT
19432018-08-07 Tom Tromey <tom@tromey.com>
1944
1945 * Makefile.in (CPPFLAGS): New variable.
1946 (INTERNAL_CPPFLAGS): Use it.
1947
7d11235d
SM
19482018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1949
1950 * NEWS: Mention the index cache.
1951
87d6a7aa
SM
19522018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1953
1954 * common/pathstuff.h (get_standard_cache_dir): New.
1955 * common/pathstuff.c (get_standard_cache_dir): New.
1956 * build-id.h (build_id_to_string): New.
1957 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
1958 DEBUG_STR_SUFFIX): Move to here.
1959 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
1960 DEBUG_STR_SUFFIX): Move from there.
1961 (write_psymtabs_to_index): Make non-static, add basename
1962 parameter. Write to temporary files, rename when done.
1963 (save_gdb_index_command): Adjust call to
1964 write_psymtabs_to_index.
1965 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
1966 field.
1967 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
1968 (get_gdb_index_contents_from_cache): New.
1969 (get_gdb_index_contents_from_cache_dwz): New.
1970 (dwarf2_initialize_objfile): Read index from cache.
1971 (dwarf2_build_psymtabs): Save to index.
1972 * dwarf-index-cache.h: New file.
1973 * dwarf-index-cache.c: New file.
1974 * dwarf-index-write.h: New file.
1975
8a99096f
SM
19762018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1977
1978 * gnulib/aclocal.m4: Re-generate.
1979 * gnulib/config.in: Re-generate.
1980 * gnulib/configure: Re-generate.
1981 * gnulib/import/Makefile.am: Re-generate.
1982 * gnulib/import/Makefile.in: Re-generate.
1983 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1984 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1985 * gnulib/import/m4/mkdir.m4: New file.
1986 * gnulib/import/mkdir.c: New file.
1987 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
1988 module.
1989
5c831bb1
SM
19902018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1991
1992 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
1993 * common/scoped_mmap.c: New file.
1994 * common/scoped_mmap.h (destroy): New method.
1995 (~scoped_mmap, reset): Use destroy.
1996 (scoped_mmap): New move constructor.
1997 (mmap_file): New declaration.
1998 * unittests/scoped_mmap-selftests.c (test_normal,
1999 test_invalid_filename, run_tests): New functions.
2000 (_initialize_scoped_mmap_selftests): Register selftest.
2001
4485a1c1
SM
20022018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2003
2004 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2005 (read_gdb_index_from_buffer): ... this. Remove section
2006 parameter, add buffer parameter.
2007 (get_gdb_index_contents_ftype,
2008 get_gdb_index_contents_dwz_ftype): New typedefs.
2009 (dwarf2_read_gdb_index): Add callback parameters to get the
2010 index contents.
2011 (get_gdb_index_contents_from_section): New.
2012 (dwarf2_initialize_objfile): Update call to
2013 dwarf2_read_gdb_index.
2014
528e1572
SM
20152018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2016
2017 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2018 (gdb_open_cloexec): Likewise.
2019 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2020 (commandline_from_pid): Likewise.
2021 (linux_xfer_osdata_threads): Likewise.
2022 (linux_xfer_osdata_fds): Likewise.
2023 * ada-lang.c (is_package_name): Likewise.
2024 * auxv.c (procfs_xfer_auxv): Likewise.
2025 * breakpoint.c (print_one_breakpoint_location): Use
2026 uiout::field_fmt.
2027 (print_one_catch_solib): Use string_printf.
2028 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2029 (add_pe_forwarded_sym): Likewise.
2030 * dwarf2read.c (create_type_unit_group): Likewise.
2031 (build_error_marker_type): Likewise.
2032 * infcall.c (get_function_name): Likewise.
2033 * valprint.c (print_converted_chars_to_obstack): Likewise.
2034 * xtensa-tdep.c (xtensa_register_type): Likewise.
2035
a7f25a84
SM
20362018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2037
2038 * remote.c (remote_target::download_tracepoint): Fix format
2039 string errors.
2040
296956be
PFC
20412018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2042
2043 * tracefile.c: Include common/byte-vector.h.
2044 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2045 with trace_regblock_size if needed. Update uses of buf.
2046
a04b9d62
PFC
20472018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2048
2049 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2050 std::vector<unsigned char>.
2051 * tracepoint.c (collection_list::collection_list): Remove
2052 m_regs_mask initializer from initializer list. Resize
2053 m_regs_mask using the largest remote register number.
2054 (collection_list::add_remote_register): Remove size check on
2055 m_regs_mask. Use at to access element.
2056 (collection_list::stringify): Change type of temp_buf to
2057 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2058 stringify the register mask. Use pack_hex_byte for the register
2059 mask.
2060
4277c4b8
PFC
20612018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2062
2063 * tracepoint.h (class collection_list) <add_register>: Remove.
2064 <add_remote_register, add_ax_registers, add_local_register>:
2065 Declare.
2066 <add_memrange>: Add scope parameter.
2067 * tracepoint.c (encode_actions_1): Likewise.
2068 (collection_list::add_register): Rename to ...
2069 (collection_list::add_remote_register): ... this. Update
2070 comment.
2071 (collection_list::add_ax_registers, add_local_register): New
2072 methods.
2073 (collection_list::add_memrange): Add scope parameter. Call
2074 add_local_register instead of add_register.
2075 (finalize_tracepoint_aexpr): New function.
2076 (collection_list::collect_symbol): Update calls to add_memrange.
2077 Call add_local_register instead of add_register. Call
2078 add_ax_registers. Call finalize_tracepoint_aexpr.
2079 (encode_actions_1): Get remote regnos for $reg action. Call
2080 add_remote_register, add_ax_registers, and add_local_register.
2081 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2082 (validate_actionline): Call finalize_tracepoint_aexpr.
2083
3df3a985
PFC
20842018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2085
2086 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2087 Replace array buf with gdb::char_vector buf, of size
2088 get_remote_packet_size (). Replace references to buf and
2089 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2090 and xsnprintf with snprintf. Raise errors if the buffer is too
2091 small.
2092
aa6f3694
PFC
20932018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2094
2095 * remote.c (remote_target::download_tracepoint): Fix the has_more
2096 predicate in the QTDP action list iteration.
2097
05abfc39
PFC
20982018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2099
2100 * remote.c (remote_target::download_tracepoint): Fix indentation
2101 in for block.
2102
821a2682
RO
21032018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2104
2105 * proc-api.c (_initialize_proc_api): Remove c, unused.
2106 * procfs.c (procfs_init_inferior): Remove signals, unused.
2107 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2108 unused.
2109
95347337
AB
21102018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2111 Andrew Burgess <andrew.burgess@embecosm.com>
2112
2113 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2114 'W_STOPCODE (0)' as this could be ambiguous.
2115
425699f5
SDJ
21162018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2117
2118 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2119 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2120 "ai_socktype").
2121
3e1d3d8c
TT
21222018-08-02 Tom Tromey <tom@tromey.com>
2123
2124 PR symtab/16842.
2125 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2126 symbols.
2127 (process_structure_scope): Likewise.
2128
15843549
XR
21292018-08-02 Xavier Roirand <roirand@adacore.com>
2130
2131 PR gdb/22629:
2132 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2133 kill inferior.
2134
b5bddbbb
TT
21352018-08-02 Tom Tromey <tom@tromey.com>
2136
2137 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2138 (darwin_suspend_inferior, darwin_resume_inferior)
2139 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2140 (darwin_check_new_threads): Check result of get_darwin_inferior.
2141
f61cfa07
JB
21422018-07-31 Joel Brobecker <brobecker@adacore.com>
2143
2144 GDB 8.1.1 released.
2145
5abe0f0c
JV
21462018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2147
2148 * varobj.c (varobj_get_path_expr_parent): Report an error if
2149 parent is a dynamic varobj.
2150
472fa5ee
SM
21512018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2152
2153 * gnulib/aclocal.m4: Re-generate.
2154 * gnulib/config.in: Re-generate.
2155 * gnulib/configure: Re-generate.
2156 * gnulib/import/Makefile.in: Re-generate.
2157 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2158 * gnulib/import/m4/onceonly.m4: Re-generate.
2159
1c28969e
SM
21602018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2161
2162 * target-descriptions.c (struct xml_test_tdesc): New.
2163 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2164 (record_xml_tdesc): Update.
2165 (maintenance_check_xml_descriptions): Update.
2166 * target-descriptions.h (record_xml_tdesc): Update comment.
2167
c8f2dc0d
AB
21682018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2169
2170 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2171 checking array bounds are defined.
2172
463c08d1
TT
21732018-07-30 Tom Tromey <tom@tromey.com>
2174
2175 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2176 irreflexivity violation.
2177
dba7455e
TT
21782018-07-30 Tom Tromey <tom@tromey.com>
2179
2180 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2181 * value.c (unpack_long): Remove lint code.
2182 * valops.c (value_ind): Remove lint code.
2183 * valarith.c (value_x_binop, value_x_unop, value_equal)
2184 (value_pos): Remove lint code.
2185
37cc0cae
TV
21862018-07-28 Tom de Vries <tdevries@suse.de>
2187
2188 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2189 with undefined upper bound as <optimized out>.
2190
129eb0f1
SDJ
21912018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2192
2193 * gcore.in: Rename variable "name" to "prefix". Expand
2194 "usage" text.
2195
6af79d7b
JT
21962018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2197
2198 * windows-nat.c (windows_nat_target::create_inferior): Update to
2199 call close() in global namespace.
2200
79748972
TT
22012018-07-26 Tom Tromey <tom@tromey.com>
2202
2203 * dwarf-index-write.c (add_address_entry): Don't add objfile
2204 offsets.
2205 * dbxread.c (find_stab_function): Rename from
2206 find_stab_function_addr. Return a bound_minimal_symbol.
2207 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2208 Don't add objfile offsets.
2209 (end_psymtab): Use raw_text_low, raw_text_high,
2210 MSYMBOL_VALUE_RAW_ADDRESS.
2211 (read_ofile_symtab): Update.
2212 (process_one_symbol): Update.
2213 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2214 offsets.
2215 (dw2_relocate): Remove.
2216 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2217 searching addrmap.
2218 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2219 Update.
2220 (process_psymtab_comp_unit_reader, add_partial_symbol)
2221 (add_partial_subprogram, dwarf2_ranges_read): Update.
2222 (load_partial_dies): Update.
2223 (add_address_entry): Don't add objfile offsets.
2224 (dwarf2_build_include_psymtabs): Update.
2225 (create_addrmap_from_aranges): Don't add objfile offsets.
2226 (dw2_find_pc_sect_compunit_symtab): Update.
2227 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2228 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2229 Update.
2230 (parse_partial_symbols): Don't add objfile offsets. Use
2231 raw_text_low, raw_text_high. Update.
2232 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2233 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2234 or call 'relocate' quick function. Clear psymbol_map.
2235 * psympriv.h (struct partial_symbol) <address>: Add section
2236 offset.
2237 <set_unrelocated_address>: Rename from set_address.
2238 <raw_text_low, raw_text_high>: New methods.
2239 <text_low, text_high>: Add objfile parameter.
2240 (add_psymbol_to_bcache): Add 'section' parameter. Call
2241 set_unrelocated_address.
2242 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2243 (find_pc_psymbol): Update.
2244 (fixup_psymbol_section, relocate_psymtabs): Remove.
2245 (dump_psymtab, psym_functions): Update.
2246 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2247 parameter.
2248 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2249 (start_psymtab_common): Update.
2250 * symfile-debug.c (debug_qf_relocate): Remove.
2251 (debug_sym_quick_functions): Update.
2252 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2253 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2254 Update.
2255
52948f01
TT
22562018-07-26 Tom Tromey <tromey@redhat.com>
2257
2258 * dbxread.c (end_psymtab): Use text_high_valid and
2259 text_low_valid.
2260 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2261 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2262 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2263 Update comment.
2264 <text_low_valid, text_high_valid>: New fields.
2265 <set_text_low, set_text_high>: Update.
2266 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2267
4ae976d1
TT
22682018-07-26 Tom Tromey <tom@tromey.com>
2269
2270 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2271 Update.
2272 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2273 textlow and texthigh fields.
2274 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2275 Update.
2276 * mdebugread.c (parse_lines, parse_partial_symbols)
2277 (psymtab_to_symtab_1): Update.
2278 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2279 Rename fields. Update comment. Now private.
2280 <text_low, text_high, set_text_low, set_text_high>: New methods.
2281 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2282 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2283 (start_psymtab_common, maintenance_info_psymtabs)
2284 (maintenance_check_psymtabs): Update.
2285 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2286 texthigh fields.
2287 (scan_xcoff_symtab): Update.
2288
02e9e7f7
TT
22892018-07-26 Tom Tromey <tromey@redhat.com>
2290
2291 * psympriv.h (struct partial_symbol) <unrelocated_address,
2292 address, set_address>: New methods.
2293 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2294 (fixup_psymbol_section, relocate_psymtabs): Update.
2295 (print_partial_symbols): Add 'objfile' parameter. Update.
2296 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2297 Update.
2298
8a6d4234
TT
22992018-07-26 Tom Tromey <tom@tromey.com>
2300
2301 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2302 (debug_names::write_psymbols): Update.
2303 * psympriv.h (struct partial_symbol): Derive from
2304 general_symbol_info.
2305 <obj_section>: New method.
2306 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2307 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2308 (find_pc_sect_psymbol, fixup_psymbol_section)
2309 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2310 (print_partial_symbols, recursively_search_psymtabs)
2311 (compare_psymbols, psymbol_hash, psymbol_compare)
2312 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2313 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2314
08994e1d
TT
23152018-07-26 Tom Tromey <tromey@redhat.com>
2316
2317 * dbxread.c (end_psymtab): Remove dead code.
2318
3c3bb058
AB
23192018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2322 DWARF unwinders are disabled.
2323 * dwarf2-frame.c: Add dwarf2read.h include.
2324 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2325 disabled.
2326 (dwarf2_frame_unwinders_enabled_p): Define.
2327 (show_dwarf_unwinders_enabled_p): New function.
2328 (_initialize_dwarf2_frame): Register switch to control DWARF
2329 unwinder use.
2330 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2331 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2332 (show_dwarf_cmdlist): Remove static keyword.
2333 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2334 (show_dwarf_cmdlist): Declare.
2335 * NEWS: Document new feature.
2336
9e7f3bbb
TV
23372018-07-26 Tom de Vries <tdevries@suse.de>
2338
2339 PR breakpoints/23366
2340 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2341
506f5c41
TV
23422018-07-26 Tom de Vries <tdevries@suse.de>
2343
2344 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2345 DW_AT_count can't be translated to a dynamic prop.
2346
16f808ec
TV
23472018-07-25 Tom de Vries <tdevries@suse.de>
2348
2349 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2350 try/catch.
2351
d7154a8d
JV
23522018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2353
2354 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2355
a45389f6
JB
23562018-07-25 Joel Brobecker <brobecker@adacore.com>
2357
2358 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2359
380618d6
KS
23602018-07-24 Keith Seitz <keiths@redhat.comt
2361
2362 PR symtab/23010
2363 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2364 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2365 instead of add_symbol_to_list.
2366 (read_file_scope): Call prepare_one_comp_unit before reading
2367 any other DIEs.
2368
4b17aefe
SM
23692018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2370
2371 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2372
29d17e47
TT
23732018-07-24 Tom Tromey <tom@tromey.com>
2374
2375 * utils.c (malloc, realloc, free): Don't declare.
2376 * configure, config.in: Rebuild.
2377 * configure.ac: Don't check for declarations of free, malloc, or
2378 realloc.
2379
cf4088a9
SM
23802018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2381
2382 * aarch64-linux-nat.c
2383 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2384 variable.
2385 * arm-linux-nat.c (fetch_regs): Likewise.
2386 (store_regs): Likewise.
2387 (fetch_vfp_regs): Likewise.
2388 (store_vfp_regs): Likewise.
2389 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2390 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2391 (arm_linux_nat_target::insert_watchpoint): Likewise.
2392 (arm_linux_nat_target::remove_watchpoint): Likewise.
2393 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2394 Likewise.
2395 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2396 Likewise.
2397 * ppc-linux-nat.c (fetch_register): Likewise.
2398 (fetch_all_gp_regs): Likewise.
2399 (fetch_ppc_registers): Likewise.
2400 (store_all_gp_regs): Likewise.
2401 (store_ppc_registers): Likewise.
2402 (hwdebug_insert_point): Likewise.
2403 (can_use_watchpoint_cond_accel): Likewise.
2404 * remote-sim.c (gdb_os_write_stdout): Likewise.
2405
a0de763e
TT
24062018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2407 Tom Tromey <tom@tromey.com>
2408
2409 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2410 test for it.
2411 * configure: Rebuild.
2412
3b20124b
TT
24132018-07-22 Tom Tromey <tom@tromey.com>
2414
2415 * regformats/regdat.sh: Define xmltarget_${name} inside
2416 #ifndef IN_PROCESS_AGENT.
2417
8c8807f4
TT
24182018-07-22 Tom Tromey <tom@tromey.com>
2419
2420 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2421
c486b610
TT
24222018-07-22 Tom Tromey <tom@tromey.com>
2423
2424 * symfile.c (reread_symbols): Notify iter, not objfile.
2425
494f80a9
TT
24262018-07-22 Tom Tromey <tom@tromey.com>
2427
2428 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2429 Use arch_ops.
2430 (ravenscar_thread_target::prepare_to_store): Likewise.
2431
c51f6a54
TT
24322018-07-22 Tom Tromey <tom@tromey.com>
2433
2434 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2435 unused variable. Call value_fetch_lazy when needed.
2436 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2437 Remove unused variable. Call value_fetch_lazy when needed.
2438
374fd1fd
TT
24392018-07-22 Tom Tromey <tom@tromey.com>
2440
2441 * m32c-tdep.c (mark_dma): Return void.
2442 (make_regs): Remove unused declarations.
2443
d5e9a511
TT
24442018-07-22 Tom Tromey <tom@tromey.com>
2445
2446 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2447 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2448 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2449 bkscm_get_valid_block_smob_arg_unsafe for effect.
2450
996d693a
TT
24512018-07-22 Tom Tromey <tom@tromey.com>
2452
2453 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2454 value_type.
2455
15766370
TT
24562018-07-22 Tom Tromey <tom@tromey.com>
2457
2458 * windows-nat.c (saved_context): Conditionally define.
2459 * remote.c (remote_target::remote_btrace_maybe_reopen):
2460 Conditionally declare "warned".
2461 * inflow.c (sigquit_ours): Conditionally define.
2462 (new_tty): Move "tty" declaration inside #if.
2463 * guile/guile.c (guile_datadir): Conditionally define.
2464 * charset.c (set_be_le_names): Move some declarations inside #if.
2465 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2466 #if.
2467 (parse_xml_btrace_conf): Likewise.
2468
f4e80e13
TT
24692018-07-22 Tom Tromey <tom@tromey.com>
2470
2471 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2472
8d49165d
TT
24732018-07-22 Tom Tromey <tom@tromey.com>
2474
2475 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2476 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2477 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2478 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2479 * stack.c (frame_apply_level_command): Remove unused variable.
2480 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2481 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2482 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2483 unused variable.
2484 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2485 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2486 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2487 variable.
2488 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2489 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2490 variable.
2491 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2492 Remove unused variable.
2493 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2494 variable.
2495 * common/tdesc.c (print_xml_feature::visit): Remove unused
2496 variable.
2497 * compile/compile-object-load.c (store_regs): Remove unused
2498 variables.
2499 * complaints.c (clear_complaints): Remove unused variable.
2500 * corelow.c (core_target_open): Remove unused variable.
2501 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2502 variable.
2503 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2504 variable.
2505 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2506 variable.
2507 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2508 variable.
2509 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2510 variable.
2511 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2512 variable.
2513 * ia64-tdep.c (examine_prologue): Remove unused variable.
2514 * infcall.c (run_inferior_call): Remove unused variable.
2515 * inferior.c (exit_inferior): Remove unused variable.
2516 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2517 * linespec.c (decode_line_2): Remove unused variable.
2518 * linux-nat.c (super_close): Remove.
2519 * linux-tdep.c (linux_info_proc): Remove unused variable.
2520 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2521 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2522 Remove unused variable.
2523 * parse.c (find_minsym_type_and_address): Remove unused variable.
2524 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2525 variable.
2526 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2527 variable.
2528 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2529 variables.
2530 * record-btrace.c (record_btrace_target::store_registers): Remove
2531 unused variable.
2532 (cmd_show_record_btrace_cpu): Remove unused variable.
2533 * riscv-tdep.c (riscv_register_reggroup_p)
2534 (riscv_push_dummy_call, riscv_return_value): Remove unused
2535 variable.
2536 * rust-exp.y (literal): Remove unused variable.
2537 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2538 unused variable.
2539 <STRUCTOP_ANONYMOUS>: Likewise.
2540 * s390-linux-tdep.c (s390_linux_init_abi_31)
2541 (s390_linux_init_abi_64): Remove unused variable.
2542 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2543 (file_select_thread, net_windows_open, _initialize_ser_windows):
2544 Remove unused variables.
2545 * symtab.c (find_pc_sect_line): Remove unused variable.
2546 * target-memory.c (compute_garbled_blocks): Remove unused
2547 variable.
2548 (target_write_memory_blocks): Remove unused variable.
2549 * target.c (target_stack::unpush): Remove unused variables.
2550 * tracepoint.c (start_tracing, all_tracepoint_actions)
2551 (merge_uploaded_trace_state_variables)
2552 (print_one_static_tracepoint_marker): Remove unused variable.
2553 * unittests/basic_string_view/element_access/char/1.cc (test01):
2554 Remove unused variable.
2555 * windows-nat.c (windows_continue, windows_add_all_dlls)
2556 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2557 Remove unused variables.
2558
17cbafdb
SM
25592018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2560
2561 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2562 attr_profile in HAVE_ELF.
2563 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2564 HAVE_ELF.
2565
0ee6c332
SM
25662018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2567
2568 * frame.c (frame_register_unwind): Change parameter name.
2569 (frame_unwind_register): Likewise.
2570 (frame_unwind_register_value): Likewise.
2571 (frame_unwind_register_signed): Likewise.
2572 (frame_unwind_register_unsigned): Likewise.
2573 * frame.h (frame_register_unwind): Likewise.
2574 (frame_unwind_register): Likewise.
2575 (frame_unwind_register_value): Likewise.
2576 (frame_unwind_register_signed): Likewise.
2577 (frame_unwind_register_unsigned): Likewise.
2578 (frame_unwind_arch): Likewise.
2579
e2e31f10
MR
25802018-07-20 Maciej W. Rozycki <macro@mips.com>
2581
2582 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2583 ISA maintenance.
2584
2d389915
MR
25852018-07-20 Maciej W. Rozycki <macro@mips.com>
2586
2587 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2588 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2589 hand.
2590
cbb09508
KS
25912018-07-20 Keith Seitz <keiths@redhat.com>
2592
2593 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2594 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2595 m_compunit_symtab, m_language>: Add "m_" prefix.
2596 Update all uses.
2597 * buildsym.c: Update all uses.
2598
bfe2e011
TT
25992018-07-20 Tom Tromey <tom@tromey.com>
2600
2601 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2602 * buildsym.h (record_line_ftype): Remove typedef.
2603
0e6f3061
TT
26042018-07-20 Tom Tromey <tom@tromey.com>
2605
2606 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2607 (end_expandable_symtab): Likewise.
2608 (end_symtab_get_static_block): Likewise.
2609 (end_symtab_from_static_block): Likewise.
2610 * buildsym-legacy.c (augment_type_symtab): Remove.
2611 (end_expandable_symtab): Remove.
2612 (end_symtab_get_static_block): Remove.
2613 (end_symtab_from_static_block): Remove.
2614
804d2729
TT
26152018-07-20 Tom Tromey <tom@tromey.com>
2616
2617 * dwarf2read.c: Include buildsym.h.
2618 (struct dwarf2_cu) <builder>: New method.
2619 (fixup_go_packaging): Update.
2620 (process_full_comp_unit, process_full_type_unit): Update. Don't
2621 use scoped_free_pendings.
2622 (using_directives): Add "cu" parameter, remove "language".
2623 (read_import_statement, setup_type_unit_groups, )
2624 (read_func_scope, read_lexical_block_scope)
2625 (dwarf2_record_block_ranges, read_namespace): Update.
2626 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2627 (lnp_state_machine::handle_end_sequence): Update.
2628 (class lnp_state_machine) <m_cu>: New member.
2629 <m_record_line_callback>: Remove.
2630 <m_currently_recording_lines>: New member.
2631 (lnp_state_machine::handle_set_file): Update.
2632 (noop_record_line): Remove.
2633 (dwarf_record_line_p): Add cu parameter.
2634 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2635 (lnp_state_machine::record_line)
2636 (lnp_state_machine::lnp_state_machine)
2637 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2638 (dwarf_decode_lines): Update.
2639 (dwarf2_start_subfile): Add cu parameter.
2640 (dwarf2_start_symtab, new_symbol): Update.
2641 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2642 Remove dwarf2_per_objfile parameter.
2643 (dwarf_decode_macros): Update.
2644
80e649fc
TT
26452018-07-20 Tom Tromey <tom@tromey.com>
2646
2647 * stabsread.c (define_symbol): Update.
2648 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2649 * dwarf2read.c (new_symbol): Update.
2650 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2651 * cp-namespace.c: Include buildsym.h.
2652 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2653 * buildsym-legacy.c (get_buildsym_compunit): New function.
2654
0baae8db
TT
26552018-07-20 Tom Tromey <tom@tromey.com>
2656
2657 * xcoffread.c: Include buildsym-legacy.h.
2658 * windows-nat.c: Include buildsym-legacy.h.
2659 * stabsread.c: Include buildsym-legacy.h.
2660 * mdebugread.c: Include buildsym-legacy.h.
2661 * buildsym-legacy.h: New file.
2662 * buildsym-legacy.c: New file, from buildsym.c.
2663 * go32-nat.c: Include buildsym-legacy.h.
2664 * dwarf2read.c: Include buildsym-legacy.h.
2665 * dbxread.c: Include buildsym-legacy.h.
2666 * cp-namespace.c: Include buildsym-legacy.h.
2667 * coffread.c: Include buildsym-legacy.h.
2668 * buildsym.h: Move some contents to buildsym-legacy.h.
2669 * buildsym.c: Include buildsym-legacy.h. Move many functions to
2670 buildsym-legacy.c.
2671 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2672
ab209f6f
TT
26732018-07-20 Tom Tromey <tom@tromey.com>
2674
2675 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2676 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2677 (buildsym_compunit::buildsym_compunit)
2678 (buildsym_compunit::~buildsym_compunit)
2679 (buildsym_compunit::get_macro_table): Define.
2680
74c72eac
TT
26812018-07-20 Tom Tromey <tom@tromey.com>
2682
2683 * buildsym.c (reset_symtab_globals): Remove.
2684 (buildsym_compunit::end_symtab_from_static_block): Update.
2685 (buildsym_compunit::augment_type_symtab): Update.
2686 (end_symtab_from_static_block): Call free_buildsym_compunit.
2687 (augment_type_symtab, end_symtab, end_expandable_symtab):
2688 Likewise.
2689
da6580e5
TT
26902018-07-20 Tom Tromey <tom@tromey.com>
2691
2692 * arch-utils.c: Do not include buildsym.h.
2693 * mipsread.c: Do not include buildsym.h.
2694 * machoread.c: Do not include buildsym.h.
2695 * elfread.c: Do not include buildsym.h.
2696
4a2125f5
TT
26972018-07-20 Tom Tromey <tom@tromey.com>
2698
2699 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2700 initialization.
2701 (buildsym_compunit): Add new constructor.
2702 (struct buildsym_compunit) <get_last_source_file, finish_block,
2703 record_block_range, start_subfile, patch_subfile_names,
2704 push_subfile, pop_subfile, record_line, get_compunit_symtab,
2705 set_last_source_start_addr, get_last_source_start_addr,
2706 get_local_using_directives, set_local_using_directives,
2707 get_global_using_directives, outermost_context_p,
2708 get_current_context_stack, get_context_stack_depth,
2709 get_current_subfile, get_local_symbols, get_file_symbols,
2710 get_global_symbols, record_debugformat, record_producer,
2711 push_context, pop_context, end_symtab_get_static_block,
2712 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2713 New public methods.
2714 <record_pending_block, finish_block_internal, make_blockvector,
2715 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2716 private methods.
2717 Update all users.
2718
27192018-05-22 Tom Tromey <tom@tromey.com>
2720
2721 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2722 parameter.
2723 (finish_block_internal): Update.
2724
6b213a47
TT
27252018-07-20 Tom Tromey <tom@tromey.com>
2726
2727 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2728 parameter.
2729 (finish_block_internal): Update.
2730
b80a981d
TT
27312018-07-20 Tom Tromey <tom@tromey.com>
2732
2733 * buildsym.h (EXTERN): Don't define or undef.
2734 * buildsym.c (EXTERN): Don't define.
2735
ddb70602
TT
27362018-07-20 Tom Tromey <tom@tromey.com>
2737
2738 * buildsym.c: Remove TODO comment.
2739
b37dd3bc
TT
27402018-07-20 Tom Tromey <tom@tromey.com>
2741
2742 * coffread.c (coff_symtab_read): Update.
2743 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2744 (xcoff_new_init): Update.
2745 * mipsread.c (mipscoff_new_init): Update.
2746 * mdebugread.c (mdebug_build_psymtabs): Update.
2747 * elfread.c (elf_new_init): Update.
2748 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2749 Update.
2750 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2751 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2752 (stabsect_build_psymtabs): Update.
2753 * buildsym.h (buildsym_init): Don't declare.
2754 * buildsym.c: Update comment.
2755 (prepare_for_building): Remove.
2756 (start_symtab, restart_symtab): Update.
2757 (reset_symtab_globals): Update comment.
2758 (buildsym_init): Remove.
2759
e148f09d
TT
27602018-07-20 Tom Tromey <tom@tromey.com>
2761
2762 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2763 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2764 (read_enum_type, common_block_start, common_block_end)
2765 (cleanup_undefined_types_1, finish_global_stabs): Update.
2766 * mdebugread.c (psymtab_to_symtab_1): Update.
2767 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2768 (read_lexical_block_scope, new_symbol): Update.
2769 * dbxread.c (process_one_symbol): Update.
2770 * coffread.c (coff_symtab_read, process_coff_symbol)
2771 (coff_read_enum_type): Update.
2772 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2773 declare.
2774 (get_local_symbols, get_file_symbols, get_global_symbols): New
2775 functions.
2776 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2777 m_global_symbols.
2778 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2779 (~scoped_free_pendings): Update.
2780 (finish_block, prepare_for_building, reset_symtab_globals)
2781 (end_symtab_get_static_block, end_symtab_with_blockvector)
2782 (augment_type_symtab, push_context): Update.
2783 (get_local_symbols, get_file_symbols, get_global_symbols): New
2784 functions.
2785 (buildsym_init): Update.
2786
93b8bea4
TT
27872018-07-20 Tom Tromey <tom@tromey.com>
2788
2789 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2790 (process_full_type_unit): Likewise.
2791 (dwarf2_start_symtab): Set list_in_scope.
2792
f62f6af5
TT
27932018-07-20 Tom Tromey <tom@tromey.com>
2794
2795 * dwarf2read.c (process_psymtab_comp_unit_reader)
2796 (build_type_psymtabs_reader): Do not set list_in_scope.
2797
1d376700
TT
27982018-07-20 Tom Tromey <tom@tromey.com>
2799
2800 * buildsym.c (free_pendings): Remove.
2801 (add_symbol_to_list, scoped_free_pendings)
2802 (finish_block_internal, buildsym_init): Update.
2803
c233e9c6
TT
28042018-07-20 Tom Tromey <tom@tromey.com>
2805
2806 * xcoffread.c (read_xcoff_symtab): Update.
2807 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2808 Update.
2809 * dbxread.c (process_one_symbol): Update.
2810 * coffread.c (coff_symtab_read): Update.
2811 * buildsym.h (finish_block): Update.
2812 * buildsym.c (finish_block): Remove "listhead" argument.
2813 (end_symtab_get_static_block): Update.
2814
5ac04550
TT
28152018-07-20 Tom Tromey <tom@tromey.com>
2816
2817 * buildsym.h (class scoped_free_pendings): Remove constructor.
2818 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2819 method.
2820 <m_pending_block_obstack, m_pending_blocks>: New members.
2821 (pending_block_obstack, pending_blocks): Remove.
2822 (scoped_free_pendings::scoped_free_pendings): Default.
2823 (~scoped_free_pendings): Update.
2824 (free_pending_blocks): Remove.
2825 (finish_block_internal, record_pending_block, make_blockvector)
2826 (end_symtab_get_static_block, augment_type_symtab, push_context)
2827 (buildsym_init): Update.
2828
7ea05a7b
TT
28292018-07-20 Tom Tromey <tom@tromey.com>
2830
2831 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2832 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2833 members.
2834 (pending_addrmap, pending_addrmap_obstack)
2835 (pending_addrmap_interesting): Remove.
2836 (scoped_free_pendings, record_block_range, make_blockvector)
2837 (prepare_for_building, reset_symtab_globals, buildsym_init):
2838 Update.
2839
3c65e5b3
TT
28402018-07-20 Tom Tromey <tom@tromey.com>
2841
2842 * xcoffread.c (process_linenos): Update.
2843 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2844 * mdebugread.c (psymtab_to_symtab_1): Update.
2845 * dwarf2read.c (setup_type_unit_groups)
2846 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2847 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2848 * dbxread.c (process_one_symbol): Update.
2849 * coffread.c (coff_symtab_read, enter_linenos)
2850 (process_coff_symbol): Update.
2851 * buildsym.h (current_subfile): Don't declare.
2852 (get_current_subfile): Declare.
2853 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2854 member.
2855 (start_subfile, free_buildsym_compunit, push_subfile)
2856 (prepare_for_building, start_symtab): Update.
2857 (get_current_subfile): New function.
2858
a60f3166
TT
28592018-07-20 Tom Tromey <tom@tromey.com>
2860
2861 * coffread.c (coff_symtab_read): Update.
2862 * xcoffread.c (read_xcoff_symtab): Update.
2863 * dwarf2read.c (new_symbol): Update.
2864 (read_func_scope, read_lexical_block_scope): Update.
2865 * dbxread.c (process_one_symbol): Update.
2866 * buildsym.h (context_stack, context_stack_depth): Don't declare.
2867 (outermost_context_p): Remove macro.
2868 (outermost_context_p, get_current_context_stack)
2869 (get_context_stack_depth): Declare.
2870 (pop_context): Return struct context_stack.
2871 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
2872 member.
2873 (context_stack_size): Remove.
2874 (INITIAL_CONTEXT_STACK_SIZE): Remove.
2875 (prepare_for_building, end_symtab_get_static_block)
2876 (augment_type_symtab, push_context): Update.
2877 (pop_context): Return struct context_stack.
2878 (outermost_context_p, get_current_context_stack)
2879 (get_context_stack_depth): New functions.
2880 (buildsym_init): Update.
2881
56ba65a0
TT
28822018-07-20 Tom Tromey <tom@tromey.com>
2883
2884 * rust-exp.y: Now a pure parser. Update all rules.
2885 (%union): Move earlier.
2886 (current_parser, work_obstack): Remove globals.
2887 (rust_parser, ~rust_parser): Update.
2888 (class rust_parser) <copy_name, concat3, crate_name, super_name,
2889 lex_character, lex_number, lex_string, lex_identifier,
2890 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
2891 convert_name, convert_params_to_expression,
2892 convert_ast_to_expression, ast_basic_type, ast_operation,
2893 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
2894 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
2895 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
2896 ast_array_type, ast_slice_type, ast_reference_type,
2897 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
2898 (rust_parse): Update.
2899 (rustyyerror, rustyylex): Add parser parameter.
2900 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
2901 (rust_lex_stringish_test, rust_lex_test_sequence)
2902 (rust_lex_test_trailing_dot, rust_lex_test_completion)
2903 (rust_lex_test_push_back, rust_lex_tests): Update.
2904
4c693332
PA
29052018-07-19 Pedro Alves <palves@redhat.com>
2906
2907 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
2908 gdb::unique_xmalloc_ptr.
2909 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
2910 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
2911 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
2912 copy-initialization.
2913 * guile/scm-pretty-print.c (ppscm_print_children): Use
2914 gdb::unique_xmalloc_ptr instead of cleanups.
2915 (gdbscm_apply_val_pretty_printer): Remove cleanups.
2916 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
2917 gdb::unique_xmalloc_ptr.
2918 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2919 Adjust to use gdb::unique_xmalloc_ptr.
2920 * guile/scm-utils.c (extract_arg): Adjust.
2921 * guile/scm-value.c (gdbscm_value_field): Adjust to use
2922 gdb::unique_xmalloc_ptr instead of a cleanup.
2923
4581dc82
TT
29242018-07-19 Tom Tromey <tom@tromey.com>
2925
2926 * utils.c (do_value_free_to_mark)
2927 (make_cleanup_value_free_to_mark): Remove.
2928 * utils.h (make_cleanup_value_free_to_mark): Remove.
2929
43cc6c3a
PA
29302018-07-19 Pedro Alves <palves@redhat.com>
2931
2932 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
2933 forwarding reference.
2934
3a5f2a48
PA
29352018-07-18 Pedro Alves <palves@redhat.com>
2936
2937 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
2938 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
2939 cleanup.
2940
557e56be
PA
29412018-07-18 Pedro Alves <palves@redhat.com>
2942
2943 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
2944 exceptions.
2945 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
2946 (gdbscm_wrap): New.
2947 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
2948 directly instead of a cleanup.
2949 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
2950 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
2951 (vlscm_binop_gdbthrow): New, factored out from ...
2952 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
2953 (vlscm_rich_compare): Use gdbscm_wrap.
2954 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
2955 instead of a cleanup.
2956 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
2957 cleanup.
2958 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2959 Use xfree directly instead of a cleanup.
2960 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
2961 Adjust to use gdbscm_wrap and scoped_value_mark.
2962 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
2963 (gdbscm_value_address, gdbscm_value_dereference)
2964 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
2965 scoped_value_mark.
2966 (gdbscm_value_dynamic_type): Use scoped_value_mark.
2967 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
2968 scoped_value_mark.
2969 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
2970 gdbscm_wrap and scoped_value_mark.
2971 (gdbscm_value_to_string): Use xfree directly instead of a
2972 cleanup. Move 'buffer' unique_ptr to TRY scope.
2973 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
2974 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
2975 scoped_value_mark.
2976 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
2977 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
2978 scoped_value_mark.
2979 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
2980 gdbscm_wrap.
2981
42dc7699
TV
29822018-07-18 Tom de Vries <tdevries@suse.de>
2983
2984 * findvar.c (default_read_var_value): Also resolve dynamic type for
2985 LOC_OPTIMIZED_OUT vars.
2986
6592ceed
MR
29872018-07-18 Maciej W. Rozycki <macro@mips.com>
2988
2989 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
2990 decoding.
2991
c6c6149a
TT
29922018-07-17 Tom Tromey <tom@tromey.com>
2993
2994 * guile/scm-param.c (pascm_set_func, pascm_show_func)
2995 (compute_enum_list, pascm_set_param_value_x)
2996 (gdbscm_parameter_value): Update.
2997 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
2998 (gdbscm_scm_to_host_string): Update.
2999 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3000 Update.
3001 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3002 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3003 * guile/scm-string.c (gdbscm_scm_to_string): Return
3004 unique_xmalloc_ptr.
3005 (gdbscm_scm_to_host_string): Likewise.
3006
a1a31cb8
TT
30072018-07-17 Tom Tromey <tom@tromey.com>
3008
3009 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3010 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3011 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3012 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3013 unique_xmalloc_ptr.
3014
15bf3002
TT
30152018-07-17 Tom Tromey <tom@tromey.com>
3016
3017 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3018 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3019 Update.
3020 * guile/scm-cmd.c (cmdscm_function): Update.
3021 * guile/scm-pretty-print.c
3022 (ppscm_print_exception_unless_memory_error): Update.
3023 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3024 Return unique_xmalloc_ptr.
3025
7eb1a66c
TT
30262018-07-17 Tom Tromey <tom@tromey.com>
3027
3028 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3029 Use string_printf.
3030
ce73f310
JW
30312018-07-17 Jim Wilson <jimw@sifive.com>
3032
27724bad
JW
3033 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3034 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3035 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3036 unecessary braces after EF_RISCV_RVC test. Delete call to
3037 set_gdbarch_decr_pc_after_break.
3038
ce73f310
JW
3039 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3040 RISCV_LAST_FP_REGNUM + 1.
3041 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3042
056dec39
TT
30432018-07-17 Tom Tromey <tom@tromey.com>
3044
3045 * configure.ac: Remove --disable-gdbcli.
3046 * configure: Rebuild.
3047 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3048 (SUBDIR_CLI_CFLAGS): Remove.
3049 (SFILES): Use SUBDIR_CLI_SRCS.
3050 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3051
4735f0ed
TT
30522018-07-17 Tom Tromey <tom@tromey.com>
3053
3054 PR gdb/18624:
3055 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3056
117a0e99
JW
30572018-07-16 Jim Wilson <jimw@sifive.com>
3058
3059 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3060
8a67aaa8
SM
30612018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3062
3063 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3064 variable.
3065 (libunwind_frame_sniffer): Likewise.
3066 (libunwind_frame_prev_register): Likewise.
3067 (libunwind_sigtramp_frame_sniffer): Likewise.
3068 * ia64-tdep.c (ia64_access_reg): Likewise.
3069 (ia64_access_rse_reg): Likewise.
3070 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3071 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3072
ec74dcd8
SM
30732018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3074
3075 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3076
a700e753
SM
30772018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3078
3079 * remote-sim.c (gdbsim_target::close,
3080 gdbsim_target::mourn_inferior): Remove unused variables.
3081
8b411ff8
SM
30822018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3083
3084 * ia64-tdep.c (ktab_buf): New global.
3085 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3086 (get_kernel_table): Adjust.
3087
edb0470b
TT
30882018-07-16 Tom Tromey <tom@tromey.com>
3089
3090 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3091 * dwarf2read.c (using_directives, new_symbol): Use
3092 outermost_context_p.
3093 * dbxread.c (process_one_symbol): Use outermost_context_p.
3094 * coffread.c (coff_symtab_read): Use outermost_context_p.
3095
6cccc9a8
TT
30962018-07-16 Tom Tromey <tom@tromey.com>
3097
3098 * dwarf2read.c (using_directives, read_func_scope)
3099 (read_lexical_block_scope): Update.
3100 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3101 * buildsym.h (local_using_directives, global_using_directives):
3102 Don't declare.
3103 (get_local_using_directives, set_local_using_directives)
3104 (get_global_using_directives): Declare.
3105 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3106 m_global_using_directives>: New members.
3107 (finish_block_internal, prepare_for_building)
3108 (reset_symtab_globals, end_symtab_get_static_block)
3109 (push_context): Update.
3110 (get_local_using_directives, set_local_using_directives)
3111 (get_global_using_directives): New functions.
3112 (buildsym_init): Update.
3113
652788a7
TT
31142018-07-16 Tom Tromey <tom@tromey.com>
3115
3116 * xcoffread.c (xcoff_initial_scan): Don't call
3117 free_pending_blocks.
3118 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3119 * buildsym.h (class scoped_free_pendings): Add constructor.
3120 (free_pending_blocks): Don't declare.
3121 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3122 (free_pending_blocks): Now static.
3123
8419ee53
TT
31242018-07-16 Tom Tromey <tom@tromey.com>
3125
3126 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3127 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3128 member.
3129 (struct subfile_stack): Remove.
3130 (subfile_stack): Remove.
3131 (push_subfile, pop_subfile, buildsym_init): Update.
3132
ccdac490
TT
31332018-07-16 Tom Tromey <tom@tromey.com>
3134
3135 * buildsym.c (push_subfile): Use gdb_assert.
3136 (pop_subfile): Use gdb_assert.
3137
43130d6f
TT
31382018-07-16 Tom Tromey <tom@tromey.com>
3139
3140 * buildsym.h (merge_symbol_lists): Remove.
3141 * buildsym.c (merge_symbol_lists): Remove.
3142
77d6f1aa
TT
31432018-07-16 Tom Tromey <tom@tromey.com>
3144
3145 * stabsread.c (scan_file_globals): Update comment.
3146 * stabsread.h (scan_file_globals): Move from buildsym.h.
3147 * buildsym.h (scan_file_globals): Move to stabsread.h.
3148
2c722d18
TT
31492018-07-16 Tom Tromey <tom@tromey.com>
3150
3151 * xcoffread.c (xcoff_new_init): Update.
3152 * mipsread.c (mipscoff_new_init): Update.
3153 * mdebugread.c (mdebug_build_psymtabs): Update.
3154 * elfread.c (elf_new_init): Update.
3155 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3156 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3157 * buildsym.h (buildsym_new_init): Don't declare.
3158 * buildsym.c (buildsym_new_init): Remove.
3159
5985ac61
TT
31602018-07-16 Tom Tromey <tom@tromey.com>
3161
3162 * stabsread.h (within_function): Move from buildsym.h.
3163 * stabsread.c (start_stabs): Clear within_function.
3164 * coffread.c (coff_start_symtab): Clear within_function.
3165 * buildsym.h (within_function): Move to stabsread.h.
3166 * buildsym.c (prepare_for_building): Update.
3167
6b84eeb2
TT
31682018-07-16 Tom Tromey <tom@tromey.com>
3169
3170 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3171 * dwarf2read.c (dwarf2_start_symtab): Don't set
3172 processing_gcc_compilation.
3173 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3174
2150c3ef
TT
31752018-07-16 Tom Tromey <tom@tromey.com>
3176
3177 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3178 (next_symbol_text_func): Move from buildsym.h.
3179 * stabsread.c (hashname): Move from buildsym.c.
3180 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3181 (next_symbol_text_func, hashname): Move to stabsread.h.
3182 * buildsym.c: Don't include bcache.h
3183 (hashname): Move to stasbread.c.
3184
0ec44fc0
TT
31852018-07-16 Tom Tromey <tom@tromey.com>
3186
3187 * buildsym.h (context_stack_size): Don't declare.
3188 * buildsym.c (context_stack_size): New global.
3189
81cc346d
TT
31902018-07-16 Tom Tromey <tom@tromey.com>
3191
3192 * dbxread.c (processing_acc_compilation): New global.
3193 * buildsym.h (processing_acc_compilation): Don't declare.
3194
2c99ee5c
TT
31952018-07-16 Tom Tromey <tom@tromey.com>
3196
3197 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3198 * dbxread.c (read_ofile_symtab): Update.
3199 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3200 * buildsym.h (last_source_start_addr): Remove.
3201 (set_last_source_start_addr, get_last_source_start_addr):
3202 Declare.
3203 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3204 parameter.
3205 (struct buildsym_compunit) <m_last_source_start_addr>: New
3206 member.
3207 (prepare_for_building): Remove start_addr parameter.
3208 (start_symtab, restart_symtab, end_symtab_get_static_block)
3209 (end_symtab_with_blockvector): Update.
3210 (set_last_source_start_addr, get_last_source_start_addr): New
3211 functions.
3212
530fedbc
TT
32132018-07-16 Tom Tromey <tom@tromey.com>
3214
3215 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3216 member.
3217 (have_line_numbers): Remove.
3218 (record_line, prepare_for_building, end_symtab_get_static_block)
3219 (augment_type_symtab): Update.
3220
6a976300
TT
32212018-07-16 Tom Tromey <tom@tromey.com>
3222
3223 * buildsym.c (~buildsym_compunit): Free the macro table.
3224 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3225 methods.
3226 <m_pending_macros>: New member.
3227 (pending_macros): Remove.
3228 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3229 (reset_symtab_globals, end_symtab_get_static_block)
3230 (end_symtab_with_blockvector, augment_type_symtab)
3231 (buildsym_init): Update.
3232
c0015d44
TT
32332018-07-16 Tom Tromey <tom@tromey.com>
3234
3235 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3236 parameter.
3237 (buildsym_compunit::set_last_source_file): New method.
3238 <m_last_source_file>: New member.
3239 (prepare_for_building): Remove "name" parameter.
3240 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3241 (last_source_file): Remove.
3242 (set_last_source_file, get_last_source_file): Update.
3243
e62cca7c
TT
32442018-07-16 Tom Tromey <tom@tromey.com>
3245
3246 * buildsym.c (prepare_for_building): Add assert.
3247
905eb0e2
TT
32482018-07-16 Tom Tromey <tom@tromey.com>
3249
3250 * buildsym.c (~buildsym_compunit): Update.
3251 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3252 (start_subfile, patch_subfile_names)
3253 (end_symtab_with_blockvector): Update.
3254
b248663f
TT
32552018-07-16 Tom Tromey <tom@tromey.com>
3256
3257 * buildsym.c (struct buildsym_compunit): Add constructor,
3258 destructor, initializers.
3259 (start_buildsym_compunit): Remove.
3260 (free_buildsym_compunit): Use "delete".
3261 (start_symtab, restart_symtab): Use "new".
3262
ff27d073
SM
32632018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3264
3265 * symfile.c (set_objfile_default_section_offset): Remove struct
3266 keyword.
3267
6a15ecf5
SH
32682018-07-14 Stafford Horne <shorne@gmail.com>
3269
3270 * (Responsible Maintainers): Add myself as or1k maintainer.
3271
027a4c30
TT
32722018-07-13 Tom Tromey <tom@tromey.com>
3273
3274 * symfile.c (set_objfile_default_section_offset): Use extra braces
3275 around initializer.
3276
5c1eda30
AA
32772018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3278
3279 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3280 non-branching basr.
3281
bc7b042b
PW
32822018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3283
3284 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3285 unittests/cli-utils-selftests.c
3286 * unittests/cli-utils-selftests.c: New file.
3287
a14c4daa
PW
32882018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3289
3290 * NEWS: Mention new commands. Mention change to 'thread apply'.
3291
1fe75df7
PW
32922018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3293
3294 * thread.c (thr_try_catch_cmd): New function.
3295 (thread_apply_all_command): Handle qcs flags.
3296 (thread_apply_command): Handle qcs flags.
3297 (taas_command): New function.
3298 (tfaas_command): New function.
3299 (_initialize_thread): Update to setup the new commands 'taas
3300 and 'tfaas'. Change doc string for 'thread apply'.
3301
6a70eb7d
PW
33022018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3303
3304 * stack.c: (trailing_outermost_frame): New function, mostly
3305 extracted from backtrace_command_1.
3306 (leading_innermost_frame): New function.
3307 (backtrace_command_1): Update to call trailing_outermost_frame.
3308 (frame_apply_command_count): New function.
3309 (frame_apply_level_command): New function.
3310 (frame_apply_all_command): New function.
3311 (frame_apply_command): New function.
3312 (faas_command): New function.
3313 (frame_cmd_list): New variable.
3314 (_initialize_stack): Update to setup the new commands 'frame apply'
3315 and 'faas'.
3316
529c08b2
PW
33172018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3318
3319 * cli-utils.c (number_or_range_parser::get_number): Only handle
3320 numbers or convenience var as numbers.
3321 (parse_flags): New function.
3322 (parse_flags_qcs): New function.
3323 (number_or_range_parser::finished): Ensure parsing end is detected
3324 before end of string.
3325 * cli-utils.h (parse_flags): New function.
3326 (parse_flags_qcs): New function.
3327 (number_or_range_parser): Remove m_finished bool.
3328 (number_or_range_parser::skip_range): Set m_in_range to false.
3329
64b58472
SDJ
33302018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3331
3332 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3333 on Windows.
3334
c7ab0aef
SDJ
33352018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3336 Jan Kratochvil <jan.kratochvil@redhat.com>
3337 Paul Fertser <fercerpav@gmail.com>
3338 Tsutomu Seki <sekiriki@gmail.com>
3339 Pedro Alves <palves@redhat.com>
3340
3341 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3342 'unittests/parse-connection-spec-selftests.c'.
3343 (COMMON_SFILES): Add 'common/netstuff.c'.
3344 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3345 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3346 * common/netstuff.c: New file.
3347 * common/netstuff.h: New file.
3348 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3349 (wait_for_connect): Update comment. New parameter
3350 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3351 Use 'sock' directly instead of 'scb->fd'.
3352 (try_connect): New function, with code from 'net_open'.
3353 (net_open): Rewrite main loop to deal with multiple
3354 sockets/addresses. Handle IPv6-style hostnames; implement
3355 support for IPv6 connections.
3356 * unittests/parse-connection-spec-selftests.c: New file.
3357
4c7333b3
PA
33582018-07-11 Pedro Alves <palves@redhat.com>
3359
3360 PR gdb/23377
3361 * remote.c (remote_target::remote_detach_pid): Call
3362 set_current_process.
3363
a6f88f6e
PA
33642018-07-11 Pedro Alves <palves@redhat.com>
3365
3366 * h8300-tdep.c (h8300_gdbarch_init): Remove
3367 set_gdbarch_ecoff_reg_to_regnum calls.
3368
16ff70dd
SDJ
33692018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3370
3371 PR c++/23373
3372 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3373 offsets/sizes for static members of a class/struct.
3374
12863263
AH
33752018-07-11 Alan Hayward <alan.hayward@arm.com>
3376
3377 * target-descriptions.c (tdesc_register_bitsize): Rename.
3378 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3379 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3380 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3381
1123588c
TT
33822018-07-10 Tom Tromey <tom@tromey.com>
3383
3384 * breakpoint.c (moribund_locations): Now static and a
3385 std::vector.
3386 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3387 (build_bpstat_chain, update_global_location_list)
3388 (breakpoint_retire_moribund): Update.
3389 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3390 VEC.
3391
8c49aa89
AB
33922018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3393
3394 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3395 (riscv_register_reggroup_p): Use new function, remove unneeded
3396 parenthesis.
3397 (riscv_push_dummy_call): Extend assert to compare against xlen or
3398 flen based on register type.
3399
42ecac17
AB
34002018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3401
3402 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3403
055303e2
AB
34042018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 * remote.c (show_hardware_watchpoint_limit): New function.
3407 (show_hardware_watchpoint_length_limit): New function.
3408 (show_hardware_breakpoint_limit): New function.
3409 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3410 where appropriate, update help text.
3411
8fd32c1c
TT
34122018-07-09 Tom Tromey <tom@tromey.com>
3413
3414 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3415 (CLIBS): Don't mention NAT_CLIBS.
3416
31278b51
TT
34172018-07-09 Tom Tromey <tom@tromey.com>
3418
3419 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3420 (LIBGDB_OBS, clean mostlyclean): Update.
3421 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3422
e5fd1493
TT
34232018-07-09 Tom Tromey <tom@tromey.com>
3424
3425 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3426 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3427 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3428
981e0c0c
TT
34292018-07-09 Tom Tromey <tom@tromey.com>
3430
3431 * Makefile.in (ALLDEPFILES): Remove exec.c.
3432 (COMMON_OBS): Remove exec.o.
3433 (COMMON_SFILES): Add exec.c.
3434
14ccceb2
TT
34352018-07-09 Tom Tromey <tom@tromey.com>
3436
3437 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3438
5d3c3a68
TT
34392018-07-09 Tom Tromey <tom@tromey.com>
3440
3441 * Makefile.in (clean mostlyclean): Remove stamp-version.
3442 (version.c): Depend on stamp-version.
3443 (stamp-version): New rule, from version.c rule.
3444
1998086d
TT
34452018-07-09 Tom Tromey <tom@tromey.com>
3446
3447 * Makefile.in (init.c): Depend on stamp-init.
3448 (stamp-init): New rule, from init.c rule.
3449 (clean mostlyclean): Remove stamp-init.
3450
4c754949
TT
34512018-07-09 Tom Tromey <tom@tromey.com>
3452
3453 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3454 SUBDIR_GCC_COMPILE_SRCS.
3455
6497f1dd
TT
34562018-07-09 Tom Tromey <tom@tromey.com>
3457
3458 * Makefile.in (init.c): Remove some unused sed rules.
3459
97a34db9
TT
34602018-07-09 Tom Tromey <tom@tromey.com>
3461
3462 * Makefile.in (TSOBS): Remove.
3463 (INIT_FILES): Update.
3464 (LIBGDB_OBS): Update.
3465 (COMMON_SFILES): Add inflow.c.
3466 (SFILES): Remove inflow.c.
3467
25289ac1
JK
34682018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3469
3470 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3471
e83f4d97
SM
34722018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3473
4869c585
SM
3474 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3475 get_saveloc_name, is_signal_frame_name, step_name,
3476 init_remote_name, create_addr_space_name,
3477 destroy_addr_space_name, search_unwind_table_name,
3478 find_dyn_list_name): Constify.
e83f4d97 3479
6821842f
SM
34802018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3481
3482 * darwin-nat.c (darwin_pthread_kill): New function.
3483 (darwin_resume_thread): Use darwin_pthread_kill.
3484
c530603c
TV
34852018-07-05 Tom de Vries <tdevries@suse.de>
3486
3487 * macroexp.c (macro_buffer) <operator=>: New member function.
3488
a7d0f0f0
TT
34892018-07-04 Tom Tromey <tom@tromey.com>
3490
3491 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3492
6242c6a6
SM
34932018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3494
3495 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3496 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3497 * maint.c: Likewise.
3498 * top.c: Likewise.
3499
4e5b2f89
JB
35002018-07-04 Joel Brobecker <brobecker@adacore.com>
3501
3502 * NEWS: Create a new section for the next release branch.
3503 Rename the section of the current branch, now that it has
3504 been cut.
3505
538ccc4a
JB
35062018-07-04 Joel Brobecker <brobecker@adacore.com>
3507
3508 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3509 * version.in: Bump version to 8.2.50.DATE-git.
3510
1b919490
VB
35112018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3512 Pedro Alves <palves@redhat.com>
3513
3514 * linux-nat.c (linux_init_ptrace): Rename to ...
3515 (linux_init_ptrace_procfs): ... this. Call
3516 linux_proc_init_warnings.
3517 (linux_nat_target::post_attach)
3518 (linux_nat_target::post_startup_inferior): Adjust.
3519 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3520 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3521
1ea5da02
TV
35222018-07-04 Tom de Vries <tdevries@suse.de>
3523
3524 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3525 check ...
3526 (read_comp_unit_head): ... here.
3527
f51e0e20
TT
35282018-07-03 Tom Tromey <tom@tromey.com>
3529
3530 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3531 (stop_tracing, tstatus_command)
3532 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3533 (print_one_static_tracepoint_marker): Update.
3534 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3535 std::vector.
3536 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3537 VEC.
3538 (all_tracepoints, static_tracepoints_here): Return std::vector.
3539
d7e15655
TT
35402018-07-03 Tom Tromey <tom@tromey.com>
3541
3542 * common/ptid.c (ptid_equal): Remove.
3543 * common/ptid.h (ptid_equal): Don't declare.
3544 * ada-tasks.c: Update.
3545 * breakpoint.c: Update.
3546 * common/agent.c: Update.
3547 * corelow.c: Update.
3548 * darwin-nat-info.c: Update.
3549 * darwin-nat.c: Update.
3550 * dcache.c: Update.
3551 * dtrace-probe.c: Update.
3552 * dummy-frame.c: Update.
3553 * fbsd-nat.c: Update.
3554 * frame.c: Update.
3555 * gdbthread.h: Update.
3556 * gnu-nat.c: Update.
3557 * go32-nat.c: Update.
3558 * inf-loop.c: Update.
3559 * inf-ptrace.c: Update.
3560 * infcall.c: Update.
3561 * infcmd.c: Update.
3562 * inflow.c: Update.
3563 * infrun.c: Update.
3564 * linux-fork.c: Update.
3565 * linux-nat.c: Update.
3566 * linux-thread-db.c: Update.
3567 * mi/mi-cmd-var.c: Update.
3568 * mi/mi-interp.c: Update.
3569 * mi/mi-main.c: Update.
3570 * nto-procfs.c: Update.
3571 * ppc-linux-tdep.c: Update.
3572 * procfs.c: Update.
3573 * python/py-inferior.c: Update.
3574 * python/py-record-btrace.c: Update.
3575 * python/py-record.c: Update.
3576 * ravenscar-thread.c: Update.
3577 * regcache.c: Update.
3578 * remote-sim.c: Update.
3579 * remote.c: Update.
3580 * sol-thread.c: Update.
3581 * solib.c: Update.
3582 * target.c: Update.
3583 * tui/tui-stack.c: Update.
3584 * varobj.c: Update.
3585 * windows-nat.c: Update.
3586 * windows-tdep.c: Update.
3587
26a57c92
TT
35882018-07-03 Tom Tromey <tom@tromey.com>
3589
3590 * common/ptid.c (ptid_match): Remove.
3591 * common/ptid.h (ptid_match): Don't declare.
3592 * fbsd-nat.c: Update.
3593 * infcmd.c: Update.
3594 * infrun.c: Update.
3595 * linux-nat.c: Update.
3596 * record-btrace.c: Update.
3597 * regcache.c: Update.
3598 * remote.c: Update.
3599
d2a107e3
TT
36002018-07-03 Tom Tromey <tom@tromey.com>
3601
3602 * common/ptid.c (ptid_tid_p): Remove.
3603 * common/ptid.h (ptid_tid_p): Don't declare.
3604 * sol-thread.c: Update.
3605
15a9e13e
TT
36062018-07-03 Tom Tromey <tom@tromey.com>
3607
3608 * common/ptid.c (ptid_lwp_p): Remove.
3609 * common/ptid.h (ptid_lwp_p): Don't declare.
3610 * fbsd-nat.c: Update.
3611 * linux-nat.c: Update.
3612 * nat/linux-procfs.c: Update.
3613 * nat/x86-linux-dregs.c: Update.
3614 * sol-thread.c: Update.
3615
0e998d96
TT
36162018-07-03 Tom Tromey <tom@tromey.com>
3617
3618 * common/ptid.c (ptid_is_pid): Remove.
3619 * common/ptid.h (ptid_is_pid): Don't declare.
3620 * infrun.c: Update.
3621 * linux-nat.c: Update.
3622 * mi/mi-interp.c: Update.
3623 * remote.c: Update.
3624 * thread.c: Update.
3625
cc6bcb54
TT
36262018-07-03 Tom Tromey <tom@tromey.com>
3627
3628 * common/ptid.c (ptid_get_tid): Remove.
3629 * common/ptid.h (ptid_get_tid): Don't declare.
3630 * ada-tasks.c: Update.
3631 * aix-thread.c: Update.
3632 * bsd-uthread.c: Update.
3633 * darwin-nat.c: Update.
3634 * fbsd-nat.c: Update.
3635 * i386-darwin-nat.c: Update.
3636 * infrun.c: Update.
3637 * linux-tdep.c: Update.
3638 * nto-procfs.c: Update.
3639 * ppc-ravenscar-thread.c: Update.
3640 * python/py-infthread.c: Update.
3641 * ravenscar-thread.c: Update.
3642 * sol-thread.c: Update.
3643 * sparc-ravenscar-thread.c: Update.
3644 * windows-nat.c: Update.
3645
e38504b3
TT
36462018-07-03 Tom Tromey <tom@tromey.com>
3647
3648 * common/ptid.c (ptid_get_lwp): Remove.
3649 * common/ptid.h (ptid_get_lwp): Don't declare.
3650 * aarch64-linux-nat.c: Update.
3651 * ada-tasks.c: Update.
3652 * aix-thread.c: Update.
3653 * amd64-linux-nat.c: Update.
3654 * arm-linux-nat.c: Update.
3655 * corelow.c: Update.
3656 * fbsd-nat.c: Update.
3657 * fbsd-tdep.c: Update.
3658 * gnu-nat.c: Update.
3659 * i386-cygwin-tdep.c: Update.
3660 * i386-gnu-nat.c: Update.
3661 * i386-linux-nat.c: Update.
3662 * ia64-linux-nat.c: Update.
3663 * inf-ptrace.c: Update.
3664 * infrun.c: Update.
3665 * linux-fork.c: Update.
3666 * linux-nat.c: Update.
3667 * linux-tdep.c: Update.
3668 * linux-thread-db.c: Update.
3669 * mips-linux-nat.c: Update.
3670 * nat/aarch64-linux-hw-point.c: Update.
3671 * nat/aarch64-linux.c: Update.
3672 * nat/linux-btrace.c: Update.
3673 * nat/linux-osdata.c: Update.
3674 * nat/linux-procfs.c: Update.
3675 * nat/x86-linux-dregs.c: Update.
3676 * obsd-nat.c: Update.
3677 * ppc-fbsd-nat.c: Update.
3678 * ppc-linux-nat.c: Update.
3679 * procfs.c: Update.
3680 * python/py-infthread.c: Update.
3681 * ravenscar-thread.c: Update.
3682 * remote.c: Update.
3683 * s390-linux-nat.c: Update.
3684 * sol-thread.c: Update.
3685 * sol2-tdep.c: Update.
3686 * spu-linux-nat.c: Update.
3687 * x86-linux-nat.c: Update.
3688 * xtensa-linux-nat.c: Update.
3689
e99b03dc
TT
36902018-07-03 Tom Tromey <tom@tromey.com>
3691
3692 * common/ptid.c (ptid_get_pid): Remove.
3693 * common/ptid.h (ptid_get_pid): Don't declare.
3694 * aarch64-linux-nat.c: Update.
3695 * ada-lang.c: Update.
3696 * aix-thread.c: Update.
3697 * alpha-bsd-nat.c: Update.
3698 * amd64-fbsd-nat.c: Update.
3699 * amd64-linux-nat.c: Update.
3700 * arm-linux-nat.c: Update.
3701 * arm-nbsd-nat.c: Update.
3702 * auxv.c: Update.
3703 * break-catch-syscall.c: Update.
3704 * breakpoint.c: Update.
3705 * bsd-uthread.c: Update.
3706 * corelow.c: Update.
3707 * ctf.c: Update.
3708 * darwin-nat.c: Update.
3709 * fbsd-nat.c: Update.
3710 * fbsd-tdep.c: Update.
3711 * gcore.c: Update.
3712 * gnu-nat.c: Update.
3713 * hppa-nbsd-nat.c: Update.
3714 * hppa-obsd-nat.c: Update.
3715 * i386-fbsd-nat.c: Update.
3716 * ia64-linux-nat.c: Update.
3717 * inf-ptrace.c: Update.
3718 * infcmd.c: Update.
3719 * inferior.c: Update.
3720 * inferior.h: Update.
3721 * inflow.c: Update.
3722 * infrun.c: Update.
3723 * linux-fork.c: Update.
3724 * linux-nat.c: Update.
3725 * linux-tdep.c: Update.
3726 * linux-thread-db.c: Update.
3727 * m68k-bsd-nat.c: Update.
3728 * mi/mi-interp.c: Update.
3729 * mi/mi-main.c: Update.
3730 * mips-linux-nat.c: Update.
3731 * mips-nbsd-nat.c: Update.
3732 * mips64-obsd-nat.c: Update.
3733 * nat/aarch64-linux-hw-point.c: Update.
3734 * nat/aarch64-linux.c: Update.
3735 * nat/linux-btrace.c: Update.
3736 * nat/linux-osdata.c: Update.
3737 * nat/linux-procfs.c: Update.
3738 * nat/x86-linux-dregs.c: Update.
3739 * nto-procfs.c: Update.
3740 * obsd-nat.c: Update.
3741 * ppc-linux-nat.c: Update.
3742 * ppc-nbsd-nat.c: Update.
3743 * ppc-obsd-nat.c: Update.
3744 * proc-service.c: Update.
3745 * procfs.c: Update.
3746 * python/py-inferior.c: Update.
3747 * python/py-infthread.c: Update.
3748 * ravenscar-thread.c: Update.
3749 * record.c: Update.
3750 * remote-sim.c: Update.
3751 * remote.c: Update.
3752 * rs6000-nat.c: Update.
3753 * s390-linux-nat.c: Update.
3754 * sh-nbsd-nat.c: Update.
3755 * sol-thread.c: Update.
3756 * sparc-nat.c: Update.
3757 * sparc64-tdep.c: Update.
3758 * spu-linux-nat.c: Update.
3759 * spu-tdep.c: Update.
3760 * target-debug.h: Update.
3761 * target.c: Update.
3762 * thread.c: Update.
3763 * tid-parse.c: Update.
3764 * tracefile-tfile.c: Update.
3765 * vax-bsd-nat.c: Update.
3766 * windows-nat.c: Update.
3767 * x86-linux-nat.c: Update.
3768 * x86-nat.c: Update.
3769
f2907e49
TT
37702018-07-03 Tom Tromey <tom@tromey.com>
3771
3772 * common/ptid.c (pid_to_ptid): Remove.
3773 * common/ptid.h (pid_to_ptid): Don't declare.
3774 * aix-thread.c: Update.
3775 * arm-linux-nat.c: Update.
3776 * common/ptid.c: Update.
3777 * common/ptid.h: Update.
3778 * corelow.c: Update.
3779 * ctf.c: Update.
3780 * darwin-nat.c: Update.
3781 * fbsd-nat.c: Update.
3782 * fork-child.c: Update.
3783 * gnu-nat.c: Update.
3784 * go32-nat.c: Update.
3785 * inf-ptrace.c: Update.
3786 * infcmd.c: Update.
3787 * inferior.c: Update.
3788 * infrun.c: Update.
3789 * linux-fork.c: Update.
3790 * linux-nat.c: Update.
3791 * nat/aarch64-linux-hw-point.c: Update.
3792 * nat/fork-inferior.c: Update.
3793 * nat/x86-linux-dregs.c: Update.
3794 * nto-procfs.c: Update.
3795 * obsd-nat.c: Update.
3796 * procfs.c: Update.
3797 * progspace.c: Update.
3798 * remote.c: Update.
3799 * rs6000-nat.c: Update.
3800 * s390-linux-nat.c: Update.
3801 * sol-thread.c: Update.
3802 * spu-linux-nat.c: Update.
3803 * target.c: Update.
3804 * top.c: Update.
3805 * tracefile-tfile.c: Update.
3806 * windows-nat.c: Update.
3807
fd79271b
TT
38082018-07-03 Tom Tromey <tom@tromey.com>
3809
3810 * common/ptid.h (ptid_build): Don't declare.
3811 * common/ptid.c (ptid_build): Remove.
3812 * aix-thread.c: Update.
3813 * bsd-kvm.c: Update.
3814 * bsd-uthread.c: Update.
3815 * common/agent.c: Update.
3816 * common/ptid.c: Update.
3817 * common/ptid.h: Update.
3818 * corelow.c: Update.
3819 * darwin-nat.c: Update.
3820 * fbsd-nat.c: Update.
3821 * gnu-nat.c: Update.
3822 * linux-fork.c: Update.
3823 * linux-nat.c: Update.
3824 * linux-thread-db.c: Update.
3825 * nat/linux-osdata.c: Update.
3826 * nat/linux-procfs.c: Update.
3827 * nto-procfs.c: Update.
3828 * obsd-nat.c: Update.
3829 * proc-service.c: Update.
3830 * procfs.c: Update.
3831 * ravenscar-thread.c: Update.
3832 * remote-sim.c: Update.
3833 * remote.c: Update.
3834 * sol-thread.c: Update.
3835 * target.c: Update.
3836 * windows-nat.c: Update.
3837
057302ce
TT
38382018-07-03 Tom Tromey <tom@tromey.com>
3839
3840 * infrun.c (follow_exec): Use exit_inferior_silent.
3841 * inferior.c (exit_inferior_num_silent): Remove.
3842 * inferior.h (exit_inferior_num_silent): Don't declare.
3843
a50c11c6
TT
38442018-07-03 Tom Tromey <tom@tromey.com>
3845
3846 PR cli/23340:
3847 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3848 inferior_ptid on error.
3849
471b9d15
MR
38502018-07-02 Maciej W. Rozycki <macro@mips.com>
3851 Simon Marchi <simon.marchi@polymtl.ca>
3852
3853 PR tdep/8282
3854 * disasm.h (gdb_disassembler): Add
3855 `m_disassembler_options_holder'. member
3856 * disasm.c (get_all_disassembler_options): New function.
3857 (gdb_disassembler::gdb_disassembler): Use it.
3858 (gdb_buffered_insn_length_init_dis): Likewise.
3859 (gdb_buffered_insn_length): Adjust accordingly.
3860 (set_disassembler_options): Handle options with arguments.
3861 (show_disassembler_options_sfunc): Likewise. Add a leading new
3862 line if showing options with descriptions.
3863 (disassembler_options_completer): Adapt to using the
3864 `disasm_options_and_args_t' structure.
3865 * mips-tdep.c (mips_disassembler_options): New variable.
3866 (mips_disassembler_options_o32): Likewise.
3867 (mips_disassembler_options_n32): Likewise.
3868 (mips_disassembler_options_n64): Likewise.
3869 (gdb_print_insn_mips): Don't set `disassembler_options'.
3870 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3871 functions.
3872 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
3873 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
3874 `gdbarch_disassembler_options_implicit' and
3875 `gdbarch_valid_disassembler_options'.
3876 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
3877 `disasm_options_and_args_t' structure.
3878 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
3879 method.
3880 (valid_disassembler_options): Switch from `disasm_options_t' to
3881 the `disasm_options_and_args_t' structure.
3882 * NEWS: Document `set disassembler-options' support for the MIPS
3883 target.
3884 * gdbarch.h: Regenerate.
3885 * gdbarch.c: Regenerate.
3886
41823f29
SH
38872018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3888
3889 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
3890
41206e32
JB
38912018-06-29 Joel Brobecker <brobecker@adacore.com>
3892
3893 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
3894 parameter in call to amd64_target_description.
3895 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3896 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
3897 (amd64fbsd_init_abi): Likewise.
3898 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3899 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3900 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3901 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
3902
de52b960
PA
39032018-06-29 Pedro Alves <palves@redhat.com>
3904
3905 * gdb/amd64-tdep.h (amd64_create_target_description): Add
3906 "segments" parameter.
3907 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
3908 (_initialize_amd64_tdep): Update call to
3909 amd64_create_target_description.
3910 (amd64_target_description): Add "segments" parameter. Adjust
3911 the implementation to use it.
3912 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
3913 call to amd64_create_target_description.
3914 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
3915 * gdb/arch/amd64.h (amd64_create_target_description): Add
3916 "segments" register.
3917 * gdb/arch/amd64.c (amd64_create_target_description): Add
3918 "segments" parameter. Call create_feature_i386_64bit_segments
3919 only if SEGMENTS is true.
3920 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
3921 call to amd64_create_target_description.
3922
75acb486
PA
39232018-06-29 Pedro Alves <palves@redhat.com>
3924
3925 * thread.c (thread_target_id_str): New, factored out from ...
3926 (print_thread_info_1): ... here. Use it to compute the max
3927 "Target Id" column width.
3928
c76a8ea3
PA
39292018-06-29 Pedro Alves <palves@redhat.com>
3930
3931 * remote.c (remote_target::extra_thread_info): Delete
3932 'display_buf' and 'n' locals. from the cache, regardless of
3933 packet mechanims is in use. Use cache for qThreadExtra and qP
3934 methods too.
3935
cd2bb709
PA
39362018-06-29 Pedro Alves <palves@redhat.com>
3937
3938 * blockframe.c (find_pc_sect_containing_function): New function.
3939 * breakpoint.c (print_breakpoint_location): Don't call
3940 find_pc_sect_function.
3941 * linespec.c (create_sals_line_offset): Record the location's
3942 symbol in the sal.
3943 * linespec.c (convert_address_location_to_sals): Fill in sal's
3944 symbol with find_pc_sect_containing_function.
3945 * symtab.c (find_function_start_sal): Rename to ...
3946 (find_function_start_sal_1): ... this.
3947 (find_function_start_sal): Reimplement as wrapper around
3948 find_function_start_sal_1, and use
3949 find_pc_sect_containing_function to fill in the sal's symbol.
3950 (find_function_start_sal(symbol*, bool)): Adjust.
3951 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
3952 comments.
3953 (find_pc_sect_containing_function): Declare.
3954
991ff292
PA
39552018-06-29 Pedro Alves <palves@redhat.com>
3956
3957 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
3958 true if the the location has no symbol.
3959
44cee4fd
TT
39602018-06-28 Tom Tromey <tom@tromey.com>
3961
3962 * NEWS: Mention --enable-codesign.
3963 * silent-rules.mk (ECHO_SIGN): New variable.
3964 * configure.ac: Add --enable-codesign.
3965 * configure: Rebuild.
3966 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
3967 (gdb$(EXEEXT)): Optionally invoke codesign.
3968
f2ffa92b
PA
39692018-06-28 Pedro Alves <palves@redhat.com>
3970
3971 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
3972 comments.
3973 (switch_to_thread_no_regs): Adjust comment.
3974 * infcmd.c (stop_pc): Delete.
3975 (post_create_inferior, info_program_command): Replace references
3976 to stop_pc with references to thread_info->suspend.stop_pc.
3977 * inferior.h (stop_pc): Delete declaration.
3978 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
3979 (handle_inferior_event_1, handle_signal_stop)
3980 (process_event_stop_test, keep_going_stepped_thread)
3981 (handle_step_into_function, handle_step_into_function_backward)
3982 (print_stop_location): Replace references to stop_pc with
3983 references to thread_info->suspend.stop_pc.
3984 (struct infcall_suspend_state) <stop_pc>: Delete field.
3985 (save_infcall_suspend_state, restore_infcall_suspend_state):
3986 Remove references to inf_stat->stop_pc.
3987 * linux-fork.c (fork_load_infrun_state): Likewise.
3988 * record-btrace.c (record_btrace_set_replay): Likewise.
3989 * record-full.c (record_full_goto_entry): Likewise.
3990 * remote.c (print_one_stopped_thread): Likewise.
3991 * target.c (target_resume): Extend comment.
3992 * thread.c (set_executing_thread): New.
3993 (set_executing): Use it.
3994 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
3995 Remove references to stop_pc.
3996
ecdc3a72
PA
39972018-06-28 Pedro Alves <palves@redhat.com>
3998
3999 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4000 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4001
d95d3aef
TT
40022018-06-28 Tom Tromey <tom@tromey.com>
4003
4004 * coffread.c (coff_symfile_finish): Update.
4005 * xcoffread.c (xcoff_symfile_finish): Update.
4006 * elfread.c (elf_symfile_finish): Update.
4007 * symfile.h (dwarf2_free_objfile): Don't declare.
4008 * dwarf2read.c (_initialize_dwarf2_read): Use
4009 register_objfile_data_with_cleanup.
4010 (dwarf2_free_objfile): Now static. Change signature.
4011
291f9a96
PT
40122018-06-28 Petr Tesarik <ptesarik@suse.cz>
4013
4014 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4015 option "-o" to add-symbol-file-load to add an offset to each
4016 section's load address.
4017 * symfile.c (set_objfile_default_section_offset): New function.
4018
d81a3eaf
PT
40192018-06-28 Petr Tesarik <ptesarik@suse.cz>
4020
4021 * symfile.c (add_symbol_file_command): Make sure that sections
4022 with the same name are sorted in the same order.
4023
ed6dfe51
PT
40242018-06-28 Petr Tesarik <ptesarik@suse.cz>
4025
4026 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4027 require the second argument. If omitted, load sections at the
4028 addresses specified in the file.
4029
d4d429d5
PT
40302018-06-28 Petr Tesarik <ptesarik@suse.cz>
4031
4032 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4033 (_initialize_symfile): Add option "-o" to symbol-file to add an
4034 offset to each section of the symbol file.
4035
39b27ab6
PT
40362018-06-28 Petr Tesarik <ptesarik@suse.cz>
4037
4038 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4039
41827fc3
TT
40402018-06-27 Tom Tromey <tom@tromey.com>
4041
4042 * stack.c (_initialize_stack): Update "func" help text.
4043
0c6aef22
TT
40442018-06-27 Tom Tromey <tom@tromey.com>
4045
4046 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4047 std::vector.
4048 (unwind_infopy_str, pyuw_create_unwind_info)
4049 (unwind_infopy_add_saved_register, pyuw_sniffer)
4050 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4051 Update.
4052 (struct saved_reg): Add constructor.
4053 <value>: Now a gdbpy_ref<>.
4054
63177289
TT
40552018-06-27 Tom Tromey <tom@tromey.com>
4056
4057 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4058
e76f78a0
SM
40592018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4060
4061 * gdb-gdb.py.in: Format using autopep8.
4062
9a14af7b
SM
40632018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4064
4065 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4066 (type_lookup_function): Recognize CORE_ADDR values.
4067
189366cd
SM
40682018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4069
4070 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4071 print tag_name.
4072
68ad5fb9
SM
40732018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4074
4075 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4076 <__lt__>: Add.
4077
141ec9f6
SM
40782018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4079
4080 * gdb-gdb.py: Move to...
4081 * gdb-gdb.py.in: ... here.
4082 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4083 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4084 dependencies.
4085 (distclean): Remove gdb-gdb.py when cleaning.
4086 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4087 * configure: Re-generate.
4088
4c4e7ad4
PA
40892018-06-27 Pedro Alves <palves@redhat.com>
4090
4091 * proc-service.c (get_ps_regcache): New.
4092 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4093 (ps_lsetfpregs): Use it.
4094
7ab6656f
OJ
40952018-06-27 Omair Javaid <omair.javaid@linaro.org>
4096
4097 PR gdb/21695
4098 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4099 (dwarf_decode_lines_1): Adjust.
4100
bd583225
SM
41012018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4102
4103 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4104 override.
4105 <info_proc>: Likewise.
4106
9a325b7b
JB
41072018-06-26 Joel Brobecker <brobecker@adacore.com>
4108
4109 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4110 to windows_fetch_one_register, and only handle the case of
4111 fetching one register. Move the code that reloads the context
4112 and iterates over all registers if R is negative to...
4113 (windows_nat_target::fetch_registers): ... here.
4114 (do_windows_store_inferior_registers): Rename to
4115 windows_store_one_register, and only handle the case of storing
4116 one register. Move the code that handles the case where r is
4117 negative to...
4118 (windows_nat_target::store_registers) ... here.
4119
a33ccfc7
TT
41202018-06-26 Tom Tromey <tom@tromey.com>
4121
4122 PR rust/22574:
4123 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4124 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4125 Update.
4126 (rust_internal_print_type): Add podata parameter.
4127 (rust_print_type): Update.
4128
e0c547d1
TT
41292018-06-26 Tom Tromey <tom@tromey.com>
4130
4131 * typeprint.h (struct print_offset_data) <update, finish,
4132 maybe_print_hole>: New methods.
4133 <indentation>: New constant.
4134 * typeprint.c (print_offset_data::indentation): Define.
4135 (print_offset_data::maybe_print_hole, print_offset_data::update)
4136 (print_offset_data::finish): Move from c-typeprint.c and rename.
4137 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4138 (print_spaces_filtered_with_print_options): Update.
4139 (c_print_type_union_field_offset, maybe_print_hole)
4140 (c_print_type_struct_field_offset): Move to typeprint.c and
4141 rename.
4142 (c_type_print_base_struct_union): Update.
4143
75cbc781
PA
41442018-06-25 Pedro Alves <palves@redhat.com>
4145
4146 * gdbthread.h (thread_info_ref, delete_thread)
4147 (delete_thread_silent, first_thread_of_inferior)
4148 (any_thread_of_inferior, switch_to_thread)
4149 (enable_thread_stack_temporaries)
4150 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4151 (get_last_thread_stack_temporary)
4152 (value_in_thread_stack_temporaries, can_access_registers_thread):
4153 Spell out "struct thread_info" instead of just "thread_info".
4154 * inferior.h (notice_new_inferior): Likewise.
4155
b7a08269
PA
41562018-06-25 Pedro Alves <palves@redhat.com>
4157
4158 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4159 pass thread_info pointer to delete_thread.
4160 (windows_nat_target::detach): Pass inferior pointer to
4161 detach_inferior.
4162 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4163 delete_thread.
4164 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4165 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4166 and pass a thread_info pointer to delete_thread.
4167 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4168 pass thread_info pointer to delete_thread.
4169 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4170 delete_thread_silent call.
4171 * procfs.c (procfs_target::detach): Pass inferior pointer to
4172 detach_inferior.
4173 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4174 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4175 delete_thread_silent call.
4176 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4177 pass thread_info pointer to delete_thread.
4178 (windows_nat_target::detach): Pass inferior pointer to
4179 delete_inferior.
4180
8e7767e3
AH
41812018-06-22 Alan Hayward <alan.hayward@arm.com>
4182
4183 * regcache.c (readable_regcache::read_part): Fix asserts.
4184 (reg_buffer::raw_collect_part): New function.
4185 (regcache::write_part): Fix asserts.
4186 (reg_buffer::raw_supply_part): New function.
4187 (regcache::transfer_regset_register): New helper function.
4188 (regcache::transfer_regset): Call new functions.
4189 (regcache_supply_regset): Use gdb_byte*.
4190 (regcache::supply_regset): Likewise.
4191 (regcache_collect_regset): Likewise.
4192 (regcache::collect_regset): Likewise.
4193 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4194 (reg_buffer::raw_supply_part): Likewise.
4195 (regcache::transfer_regset_register): Likewise.
4196 (regcache::transfer_regset): Use gdb_byte*.
4197
bfd60e34
AH
41982018-06-22 Alan Hayward <alan.hayward@arm.com>
4199
4200 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4201
00431a78
PA
42022018-06-21 Pedro Alves <palves@redhat.com>
4203
4204 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4205 instead of a ptid_t. All callers adjusted.
4206 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4207 adjusted.
4208 (print_ada_task_info, display_current_task_id, task_command_1):
4209 Adjust.
4210 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4211 inferior_thread.
4212 (breakpoint_kind): Adjust.
4213 (remove_breakpoints_pid): Rename to ...
4214 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4215 pointer. All callers adjusted.
4216 (bpstat_clear_actions): Use inferior_thread.
4217 (get_bpstat_thread): New.
4218 (bpstat_do_actions): Use it.
4219 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4220 to take a thread_info pointer. All callers adjusted.
4221 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4222 (breakpoint_re_set_thread): Use inferior_thread.
4223 * breakpoint.h (struct inferior): Forward declare.
4224 (bpstat_stop_status): Update.
4225 (remove_breakpoints_pid): Delete.
4226 (remove_breakpoints_inf): New.
4227 * bsd-uthread.c (bsd_uthread_target::wait)
4228 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4229 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4230 (maint_btrace_packet_history_cmd)
4231 (maint_btrace_clear_packet_history_cmd): Adjust.
4232 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4233 inferior_thread.
4234 * cli/cli-interp.c: Include "inferior.h".
4235 * common/refcounted-object.h (struct
4236 refcounted_object_ref_policy): New.
4237 * compile/compile-object-load.c: Include gdbthread.h.
4238 (store_regs): Use inferior_thread.
4239 * corelow.c (core_target::close): Use current_inferior.
4240 (core_target_open): Adjust to use first_thread_of_inferior and use
4241 the current inferior.
4242 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4243 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4244 <thread>: ... this new field. All references adjusted.
4245 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4246 Take a thread_info pointer instead of a ptid_t.
4247 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4248 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4249 thread_info pointer instead of a ptid_t.
4250 * elfread.c: Include "inferior.h".
4251 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4252 Use inferior_thread.
4253 * eval.c (evaluate_subexp): Likewise.
4254 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4255 inferior_thread.
4256 * gdb_proc_service.h (struct thread_info): Forward declare.
4257 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4258 <thread>: ... this new field. All references adjusted.
4259 * gdbarch.h, gdbarch.c: Regenerate.
4260 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4261 'thread' parameter. All implementations and callers adjusted.
4262 * gdbthread.h (thread_info) <set_running>: New method.
4263 (delete_thread, delete_thread_silent): Take a thread_info pointer
4264 instead of a ptid.
4265 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4266 (first_thread_of_process): Delete, replaced by ...
4267 (first_thread_of_inferior): ... this new function. All callers
4268 adjusted.
4269 (any_live_thread_of_process): Delete, replaced by ...
4270 (any_live_thread_of_inferior): ... this new function. All callers
4271 adjusted.
4272 (switch_to_thread, switch_to_no_thread): Declare.
4273 (is_executing): Delete.
4274 (enable_thread_stack_temporaries): Update comment.
4275 <enable_thread_stack_temporaries>: Take a thread_info pointer
4276 instead of a ptid_t. Incref the thread.
4277 <~enable_thread_stack_temporaries>: Decref the thread.
4278 <m_ptid>: Delete
4279 <m_thr>: New.
4280 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4281 (get_last_thread_stack_temporary)
4282 (value_in_thread_stack_temporaries, can_access_registers_thread):
4283 Take a thread_info pointer instead of a ptid_t. All callers
4284 adjusted.
4285 * infcall.c (get_call_return_value): Use inferior_thread.
4286 (run_inferior_call): Work with thread pointers instead of ptid_t.
4287 (call_function_by_hand_dummy): Work with thread pointers instead
4288 of ptid_t. Use thread_info_ref.
4289 * infcmd.c (proceed_thread_callback): Access thread's state
4290 directly.
4291 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4292 access thread's state directly.
4293 (continue_command): Use inferior_thread.
4294 (info_program_command): Use find_thread_ptid and access thread
4295 state directly.
4296 (proceed_after_attach_callback): Use thread state directly.
4297 (notice_new_inferior): Take a thread_info pointer instead of a
4298 ptid_t. All callers adjusted.
4299 (exit_inferior): Take an inferior pointer instead of a pid. All
4300 callers adjusted.
4301 (exit_inferior_silent): New.
4302 (detach_inferior): Delete.
4303 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4304 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4305 (detach_inferior_command, kill_inferior_command): Use
4306 find_inferior_id instead of valid_gdb_inferior_id and
4307 gdb_inferior_id_to_pid.
4308 (inferior_command): Use inferior and thread pointers.
4309 * inferior.h (struct thread_info): Forward declare.
4310 (notice_new_inferior): Take a thread_info pointer instead of a
4311 ptid_t. All callers adjusted.
4312 (detach_inferior): Delete declaration.
4313 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4314 instead of a pid. All callers adjusted.
4315 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4316 (valid_gdb_inferior_id): Delete.
4317 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4318 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4319 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4320 ...
4321 <inf>: ... this new field.
4322 <step_ptid>: Delete, replaced by ...
4323 <step_thread>: ... this new field.
4324 (get_displaced_stepping_state): Take an inferior pointer instead
4325 of a pid. All callers adjusted.
4326 (displaced_step_in_progress_any_inferior): Adjust.
4327 (displaced_step_in_progress_thread): Take a thread pointer instead
4328 of a ptid_t. All callers adjusted.
4329 (displaced_step_in_progress, add_displaced_stepping_state): Take
4330 an inferior pointer instead of a pid. All callers adjusted.
4331 (get_displaced_step_closure_by_addr): Adjust.
4332 (remove_displaced_stepping_state): Take an inferior pointer
4333 instead of a pid. All callers adjusted.
4334 (displaced_step_prepare_throw, displaced_step_prepare)
4335 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4336 All callers adjusted.
4337 (start_step_over): Adjust.
4338 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4339 displaced step queue.
4340 (do_target_resume): Adjust.
4341 (fetch_inferior_event): Use inferior_thread.
4342 (context_switch, get_inferior_stop_soon): Take an
4343 execution_control_state pointer instead of a ptid_t. All callers
4344 adjusted.
4345 (switch_to_thread_cleanup): Delete.
4346 (stop_all_threads): Use scoped_restore_current_thread.
4347 * inline-frame.c: Include "gdbthread.h".
4348 (inline_state) <inline_state>: Take a thread pointer instead of a
4349 ptid_t. All callers adjusted.
4350 <ptid>: Delete, replaced by ...
4351 <thread>: ... this new field.
4352 (find_inline_frame_state): Take a thread pointer instead of a
4353 ptid_t. All callers adjusted.
4354 (skip_inline_frames, step_into_inline_frame)
4355 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4356 pointer instead of a ptid_t. All callers adjusted.
4357 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4358 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4359 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4360 pointers directly.
4361 * linux-nat.c (get_detach_signal): Likewise.
4362 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4363 (thread_db_notice_clone): Adjust.
4364 (thread_db_find_new_threads_silently)
4365 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4366 a thread pointer instead of a ptid_t. All callers adjusted.
4367 * mi/mi-cmd-var.c: Include "inferior.h".
4368 (mi_cmd_var_update_iter): Update to use thread pointers.
4369 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4370 inferior directly.
4371 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4372 out to ...
4373 (mi_output_running): ... this new function.
4374 (mi_on_resume_1): Adjust to use it.
4375 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4376 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4377 directly.
4378 (interrupt_thread_callback): : Adjust to use thread and inferior
4379 pointers.
4380 * proc-service.c: Include "gdbthread.h".
4381 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4382 * progspace-and-thread.c: Include "inferior.h".
4383 * progspace.c: Include "inferior.h".
4384 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4385 hold a reference to an inferior_object.
4386 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4387 inferior_thread.
4388 * python/py-inferior.c (struct inferior_object): Give the type a
4389 tag name instead of a typedef.
4390 (python_on_normal_stop): No need to check if the current thread is
4391 listed.
4392 (inferior_to_inferior_object): Change return type to
4393 inferior_object. All callers adjusted.
4394 (find_thread_object): Delete, bits factored out to ...
4395 (thread_to_thread_object): ... this new function.
4396 * python/py-infthread.c (create_thread_object): Use
4397 inferior_to_inferior_object.
4398 (thpy_is_stopped): Use thread pointer directly.
4399 (gdbpy_selected_thread): Use inferior_thread.
4400 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4401 field, replaced with ...
4402 <thread>: ... this new field. All users adjusted.
4403 (btpy_insn_or_gap_new): Drop const.
4404 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4405 callers adjusted.
4406 * python/py-record.c: Include "gdbthread.h".
4407 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4408 a ptid_t. All callers adjusted.
4409 (gdbpy_current_recording): Use inferior_thread.
4410 * python/py-record.h (recpy_record_object) <ptid>: Delete
4411 field, replaced with ...
4412 <thread>: ... this new field. All users adjusted.
4413 (recpy_element_object) <ptid>: Delete
4414 field, replaced with ...
4415 <thread>: ... this new field. All users adjusted.
4416 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4417 a ptid_t. All callers adjusted.
4418 * python/py-threadevent.c: Include "gdbthread.h".
4419 (get_event_thread): Use thread_to_thread_object.
4420 * python/python-internal.h (struct inferior_object): Forward
4421 declare.
4422 (find_thread_object, find_inferior_object): Delete declarations.
4423 (thread_to_thread_object, inferior_to_inferior_object): New
4424 declarations.
4425 * record-btrace.c: Include "inferior.h".
4426 (require_btrace_thread): Use inferior_thread.
4427 (record_btrace_frame_sniffer)
4428 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4429 (get_thread_current_frame): Use scoped_restore_current_thread and
4430 switch_to_thread.
4431 (get_thread_current_frame): Use thread pointer directly.
4432 (record_btrace_replay_at_breakpoint): Use thread's inferior
4433 pointer directly.
4434 * record-full.c: Include "inferior.h".
4435 * regcache.c: Include "gdbthread.h".
4436 (get_thread_arch_regcache): Use the inferior's address space
4437 directly.
4438 (get_thread_regcache, registers_changed_thread): New.
4439 * regcache.h (get_thread_regcache(thread_info *thread)): New
4440 overload.
4441 (registers_changed_thread): New.
4442 (remote_target) <remote_detach_1>: Swap order of parameters.
4443 (remote_add_thread): <remote_add_thread>: Return the new thread.
4444 (get_remote_thread_info(ptid_t)): New overload.
4445 (remote_target::remote_notice_new_inferior): Use thread pointers
4446 directly.
4447 (remote_target::process_initial_stop_replies): Use
4448 thread_info::set_running.
4449 (remote_target::remote_detach_1, remote_target::detach)
4450 (extended_remote_target::detach): Adjust.
4451 * stack.c (frame_show_address): Use inferior_thread.
4452 * target-debug.h (target_debug_print_thread_info_pp): New.
4453 * target-delegates.c: Regenerate.
4454 * target.c (default_thread_address_space): Delete.
4455 (memory_xfer_partial_1): Use current_inferior.
4456 (target_detach): Use current_inferior.
4457 (target_thread_address_space): Delete.
4458 (generic_mourn_inferior): Use current_inferior.
4459 * target.h (struct target_ops) <thread_address_space>: Delete.
4460 (target_thread_address_space): Delete.
4461 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4462 pointers directly.
4463 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4464 thread pointer instead of a ptid_t. Adjust all callers.
4465 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4466 (first_thread_of_process): Delete, replaced by ...
4467 (first_thread_of_inferior): ... this new function. All callers
4468 adjusted.
4469 (any_thread_of_process): Rename to ...
4470 (any_thread_of_inferior): ... this, and take an inferior pointer.
4471 (any_live_thread_of_process): Rename to ...
4472 (any_live_thread_of_inferior): ... this, and take an inferior
4473 pointer.
4474 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4475 (value_in_thread_stack_temporaries)
4476 (get_last_thread_stack_temporary): Take a thread pointer instead
4477 of a ptid_t. Adjust all callers.
4478 (thread_info::set_running): New.
4479 (validate_registers_access): Use inferior_thread.
4480 (can_access_registers_ptid): Rename to ...
4481 (can_access_registers_thread): ... this, and take a thread
4482 pointer.
4483 (print_thread_info_1): Adjust to compare thread pointers instead
4484 of ptids.
4485 (switch_to_no_thread, switch_to_thread): Make extern.
4486 (scoped_restore_current_thread::~scoped_restore_current_thread):
4487 Use m_thread pointer directly.
4488 (scoped_restore_current_thread::scoped_restore_current_thread):
4489 Use inferior_thread.
4490 (thread_command): Use thread pointer directly.
4491 (thread_num_make_value_helper): Use inferior_thread.
4492 * top.c (execute_command): Use inferior_thread.
4493 * tui/tui-interp.c: Include "inferior.h".
4494 * varobj.c (varobj_create): Use inferior_thread.
4495 (value_of_root_1): Use find_thread_global_id instead of
4496 global_thread_id_to_ptid.
4497
33bab475
AH
44982018-06-21 Alan Hayward <alan.hayward@arm.com>
4499
4500 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4501 possible.
4502 (regcache::write_part): Likewise.
4503 (readable_regcache::cooked_read_part): Update comment.
4504 (readable_regcache::cooked_write_part): Likewise.
4505 * regcache.h: (readable_regcache::read_part): Likewise.
4506 (regcache::write_part): Likewise.
4507
8363f9d5
RB
45082018-06-21 Richard Bunt <richard.bunt@arm.com>
4509 Dirk Schubert <dirk.schubert@arm.com>
4510
4511 * aarch64-linux-nat.c (post_attach): New.
4512 (aarch64_linux_nat_target::post_attach): Override post_attach to
4513 record the number of hardware debug registers.
4514
0d0b0ea2
TT
45152018-06-20 Tom Tromey <tom@tromey.com>
4516
4517 * python/py-param.c (add_setshow_generic): Make parameters const.
4518 (parmpy_init): Update.
4519
302abd6e
SM
45202018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4521
4522 * regcache.h (regcache_cooked_read_ftype): Rename to...
4523 (register_read_ftype): ...this, change type to function_view.
4524 (class reg_buffer) <save>: Remove src parameter.
4525 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4526 parameter non-const in first overload. Remove src parameter in
4527 second overload.
4528 * regcache.c (do_cooked_read): Remove.
4529 (readonly_detached_regcache::readonly_detached_regcache): Make
4530 parameter non-const, adjust call to other constructor.
4531 (reg_buffer::save): Remove src parameter.
4532 * frame.c (do_frame_register_read): Remove.
4533 (frame_save_as_regcache): Use lambda function.
4534 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4535 parameter to ppu2spu_data *.
4536 (ppu2spu_sniffer): Use lambda function.
4537
19f3f25f
SM
45382018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4539
4540 * record-full.c (record_full_target::insert_breakpoint): Remove
4541 "struct" keyword, add const.
4542
d0ac1c44
SM
45432018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4544
4545 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4546 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4547 * configure.ac: Remove AC_PREREQ, add missing quoting.
4548 * gnulib/configure.ac: Modernize usage of
4549 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4550 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4551 (AUTOMAKE_VERSION): Bump to 1.15.1.
4552 * configure: Re-generate.
4553 * config.in: Re-generate.
4554 * aclocal.m4: Re-generate.
4555 * gnulib/aclocal.m4: Re-generate.
4556 * gnulib/config.in: Re-generate.
4557 * gnulib/configure: Re-generate.
4558 * gnulib/import/Makefile.in: Re-generate.
4559
6ae50267
PA
45602018-06-19 Pedro Alves <palves@redhat.com>
4561
4562 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4563 (lookup_minimal_symbol_by_pc_section): ... here with
4564 gdb_assert_not_reached added.
4565
61b04dd0
PA
45662018-06-19 Pedro Alves <palves@redhat.com>
4567
4568 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4569 parameter with a block parameter. Compare location's block symbol
4570 with the frame's block instead of addresses.
4571 (skip_inline_frames): Pass the current block instead of the
4572 frame's address. Break out as soon as we determine the frame
4573 should not be skipped.
4574
f709fabb
TT
45752018-06-18 Tom Tromey <tom@tromey.com>
4576
4577 * solib-aix.c (solib_aix_get_section_offsets): Return
4578 unique_xmalloc_ptr.
4579 (solib_aix_solib_create_inferior_hook): Update.
4580
668eb2f0
TT
45812018-06-18 Tom Tromey <tom@tromey.com>
4582
4583 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4584
309822ca
TT
45852018-06-18 Tom Tromey <tom@tromey.com>
4586
4587 * solib-frv.c (frv_relocate_main_executable): Use
4588 unique_xmalloc_ptr.
4589 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4590 unique_xmalloc_ptr.
4591
06424eac
TT
45922018-06-18 Tom Tromey <tom@tromey.com>
4593
4594 * objfiles.h (inhibit_section_map_updates): Update.
4595 (resume_section_map_updates, resume_section_map_updates_cleanup):
4596 Remove.
4597 * solib-svr4.c (svr4_handle_solib_event): Update.
4598 * objfiles.c (inhibit_section_map_updates): Return
4599 scoped_restore_tmpl<int>.
4600 (resume_section_map_updates, resume_section_map_updates_cleanup):
4601 Remove.
4602
b4be9fad
TT
46032018-06-18 Tom Tromey <tom@tromey.com>
4604
4605 * valprint.h (read_string): Update.
4606 * valprint.c (read_string): Change type of "buffer".
4607 (val_print_string): Update.
4608 * python/py-value.c (valpy_string): Update.
4609 * language.h (struct language_defn) <la_get_string>: Change
4610 type of "buffer".
4611 (default_get_string, c_get_string): Update.
4612 * language.c (default_get_string): Change type of "buffer".
4613 * guile/scm-value.c (gdbscm_value_to_string): Update.
4614 * c-lang.c (c_get_string): Change type of "buffer".
4615
3f0dbd67
TT
46162018-06-18 Tom Tromey <tom@tromey.com>
4617
4618 * ser-mingw.c (struct pipe_state_destroyer): New.
4619 (pipe_state_up): New typedef.
4620 (cleanup_pipe_state): Remove.
4621 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4622
69d340c6
TT
46232018-06-18 Tom Tromey <tom@tromey.com>
4624
4625 * rust-lang.h (rust_yyerror): Don't declare.
4626 * rust-lang.c (rust_language_defn): Update.
4627 * rust-exp.y (yyerror): Now static.
4628 * parse.c (parse_exp_in_context_1): Update.
4629 * p-lang.h (p_yyerror): Don't declare.
4630 * p-lang.c (p_language_defn): Update.
4631 * p-exp.y (yyerror): Now static.
4632 * opencl-lang.c (opencl_language_defn): Update.
4633 * objc-lang.c (objc_language_defn): Update.
4634 * m2-lang.h (m2_yyerror): Don't declare.
4635 * m2-lang.c (m2_language_defn): Update.
4636 * m2-exp.y (yyerror): Now static.
4637 * language.h (struct language_defn) <la_error>: Remove.
4638 * language.c (unk_lang_error): Remove.
4639 (unknown_language_defn, auto_language_defn): Remove.
4640 * go-lang.h (go_yyerror): Don't declare.
4641 * go-lang.c (go_language_defn): Update.
4642 * go-exp.y (yyerror): Now static.
4643 * f-lang.h (f_yyerror): Don't declare.
4644 * f-lang.c (f_language_defn): Update.
4645 * f-exp.y (yyerror): Now static.
4646 * d-lang.h (d_yyerror): Don't declare.
4647 * d-lang.c (d_language_defn): Update.
4648 * d-exp.y (yyerror): Now static.
4649 * c-lang.h (c_yyerror): Don't declare.
4650 * c-lang.c (c_language_defn, cplus_language_defn)
4651 (asm_language_defn, minimal_language_defn): Update.
4652 * c-exp.y (yyerror): Now static.
4653 * ada-lang.h (ada_yyerror): Don't declare.
4654 * ada-lang.c (ada_language_defn): Update.
4655 * ada-exp.y (yyerror): Now static.
4656
e9902bfc
AH
46572018-06-18 Alan Hayward <alan.hayward@arm.com>
4658
4659 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4660 (store_sveregs_to_thread): Likewise.
4661 (aarch64_linux_fetch_inferior_registers): Check for SVE.
4662 (aarch64_linux_store_inferior_registers): Likewise.
4663 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4664 function.
4665 (aarch64_sve_regs_copy_to_regcache): Likewise.
4666 (aarch64_sve_regs_copy_from_regcache): Likewise.
4667 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4668 declaration.
4669 (aarch64_sve_regs_copy_to_regcache): Likewise.
4670 (aarch64_sve_regs_copy_from_regcache): Likewise.
4671 (sve_context): Structure from Linux headers.
4672 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4673 (SVE_SIG_ZREG_SIZE): Likewise.
4674 (SVE_SIG_PREG_SIZE): Likewise.
4675 (SVE_SIG_FFR_SIZE): Likewise.
4676 (SVE_SIG_REGS_OFFSET): Likewise.
4677 (SVE_SIG_ZREGS_OFFSET): Likewise.
4678 (SVE_SIG_ZREG_OFFSET): Likewise.
4679 (SVE_SIG_ZREGS_SIZE): Likewise.
4680 (SVE_SIG_PREGS_OFFSET): Likewise.
4681 (SVE_SIG_PREG_OFFSET): Likewise.
4682 (SVE_SIG_PREGS_SIZE): Likewise.
4683 (SVE_SIG_FFR_OFFSET): Likewise.
4684 (SVE_SIG_REGS_SIZE): Likewise.
4685 (SVE_SIG_CONTEXT_SIZE): Likewise.
4686 (SVE_PT_REGS_MASK): Likewise.
4687 (SVE_PT_REGS_FPSIMD): Likewise.
4688 (SVE_PT_REGS_SVE): Likewise.
4689 (SVE_PT_VL_INHERIT): Likewise.
4690 (SVE_PT_VL_ONEXEC): Likewise.
4691 (SVE_PT_REGS_OFFSET): Likewise.
4692 (SVE_PT_FPSIMD_OFFSET): Likewise.
4693 (SVE_PT_FPSIMD_SIZE): Likewise.
4694 (SVE_PT_SVE_ZREG_SIZE): Likewise.
4695 (SVE_PT_SVE_PREG_SIZE): Likewise.
4696 (SVE_PT_SVE_FFR_SIZE): Likewise.
4697 (SVE_PT_SVE_FPSR_SIZE): Likewise.
4698 (SVE_PT_SVE_FPCR_SIZE): Likewise.
4699 (__SVE_SIG_TO_PT): Likewise.
4700 (SVE_PT_SVE_OFFSET): Likewise.
4701 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4702 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4703 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4704 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4705 (SVE_PT_SVE_PREG_OFFSET): Likewise.
4706 (SVE_PT_SVE_PREGS_SIZE): Likewise.
4707 (SVE_PT_SVE_FFR_OFFSET): Likewise.
4708 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4709 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4710 (SVE_PT_SVE_SIZE): Likewise.
4711 (SVE_PT_SIZE): Likewise.
4712 (HAS_SVE_STATE): New define.
4713
17a1cc89
AH
47142018-06-18 Alan Hayward <alan.hayward@arm.com>
4715
4716 * nat/aarch64-sve-linux-sigcontext.h: New file.
4717 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4718 new files.
4719 (SVE_VQ_MIN): Likewise.
4720 (SVE_VQ_MAX): Likewise.
4721 (SVE_VL_MIN): Likewise.
4722 (SVE_VL_MAX): Likewise.
4723 (SVE_NUM_ZREGS): Likewise.
4724 (SVE_NUM_PREGS): Likewise.
4725 (sve_vl_valid): Likewise.
4726 (struct user_sve_header): Likewise.
4727
7010835a
AB
47282018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4729 Richard Bunt <Richard.Bunt@arm.com>
4730
4731 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4732 was requested by GDB.
4733
479b3ef4
TV
47342018-06-15 Tom de Vries <tdevries@suse.de>
4735
4736 * MAINTAINERS (Write After Approval): Add Tom de Vries.
4737
8199b8f4
SM
47382018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
4739
4740 * gnulib/update-gnulib.sh: Print expected versions of
4741 autoconf/aclocal.
4742
55c748a1
SM
47432018-06-14 Simon Marchi <simon.marchi@ericsson.com>
4744
4745 * arch-utils.c (default_type_align): Use type_length_units.
4746 * gdbtypes.c (type_align): Use type_length_units.
4747
87a8eca7
PW
47482018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4749
4750 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4751 of 'define' command.
4752
5d9a0608
TV
47532018-06-14 Tom de Vries <tdevries@suse.de>
4754
4755 PR cli/22573
4756 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4757 get_no_prettyformat_print_options.
4758
ab89b5a5
SM
47592018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4760
4761 * sparc-nat.h: Include target.h.
4762 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4763 <fetch_registers>: Remove this argument in function call.
4764 <store_registers>: Remove this argument in function call, remove
4765 extra semicolon.
4766 <low_forget_process>: Call sparc64_forget_process instead of
4767 sparc_forget_process.
4768
62c808ae
RO
47692018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4770
4771 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4772 (procfs_target::make_corefile_notes): Adjust to new
4773 target_read_alloc return type.
4774
1840d81a
AB
47752018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4776 Stephen Roberts <stephen.roberts@arm.com>
4777
4778 PR gdb/22882
4779 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4780 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4781 Move should_notify_stop local into more inner scope.
4782
9516f85a
AB
47832018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4784 Stephen Roberts <stephen.roberts@arm.com>
4785
4786 PR gdb/22882
4787 * infrun.c (resume_1): Add call to mark_async_event_handler.
4788
defd2172
AB
47892018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4790
4791 * infrun.c (do_target_wait): Change old version of $pc printed.
4792
7b23e087
SM
47932018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4794
4795 * dwarf2read.c (read_index_from_section): Rename to...
4796 (read_gdb_index_from_section): ... this, update all callers.
4797 (dwarf2_read_index): Rename to...
4798 (dwarf2_read_gdb_index): ... this, update all callers.
4799
69c67a0b
JDA
48002018-06-11 John David Anglin <danglin@gcc.gnu.org>
4801
4802 * gdb/hppa-linux-nat.c
4803 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4804 hppa_linux_nat_target::fetch_registers.
4805
65d4cada
AH
48062018-06-11 Alan Hayward <alan.hayward@arm.com>
4807
4808 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4809 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4810 (AARCH64_DWARF_SVE_FFR): Likewise.
4811 (AARCH64_DWARF_SVE_P0): Likewise.
4812 (AARCH64_DWARF_SVE_Z0): Likewise.
4813
f868386e
AH
48142018-06-11 Alan Hayward <alan.hayward@arm.com>
4815
4816 * common/common-regcache.h (raw_compare): New function.
4817 * regcache.c (regcache::raw_compare): Likewise.
4818 * regcache.h (regcache::raw_compare): New declaration.
4819
9c861883
AH
48202018-06-11 Alan Hayward <alan.hayward@arm.com>
4821
4822 * common/common-regcache.h (reg_buffer_common): New structure.
4823 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4824 (reg_buffer::raw_supply): Likewise.
4825 (reg_buffer::raw_supply_integer): Likewise.
4826 (reg_buffer::raw_supply_zeroed): Likewise.
4827 (reg_buffer::raw_collect): Likewise.
4828 (reg_buffer::raw_collect_integer): Likewise.
4829 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4830 (reg_buffer::raw_supply): Likewise.
4831 (reg_buffer::raw_supply_integer): Likewise.
4832 (reg_buffer::raw_supply_zeroed): Likewise.
4833 (reg_buffer::raw_collect): Likewise.
4834 (reg_buffer::raw_collect_integer): Likewise.
4835
953edf2b
TT
48362018-06-10 Tom Tromey <tom@tromey.com>
4837
4838 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4839 (class remote_state) <stop_reply_queue>: Now std::vector.
4840 (remote_state::~remote_state)
4841 (remote_target::stop_reply_queue_length): Update.
4842 (struct queue_iter_param, remove_child_of_pending_fork)
4843 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4844 (check_pending_event_prevents_wildcard_vcont_callback)
4845 (remove_stop_reply_for_inferior)
4846 (remove_stop_reply_of_remote_state)
4847 (remote_notif_remove_once_on_match)
4848 (stop_reply_match_ptid_and_ws)
4849 (remote_kill_child_of_pending_fork): Remove.
4850 (remote_target::remove_new_fork_children)
4851 (remote_target::check_pending_events_prevent_wildcard_vcont)
4852 (remote_target::discard_pending_stop_replies)
4853 (remote_target::discard_pending_stop_replies_in_queue)
4854 (remote_target::remote_notif_remove_queued_reply)
4855 (remote_target::queued_stop_reply)
4856 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4857 (remote_target::wait, remote_target::kill_new_fork_children)
4858 (remote_target::async): Update.
4859
1ddbba9d
TT
48602018-06-10 Tom Tromey <tom@tromey.com>
4861
4862 * record-full.c (record_full_arch_list_cleanups): Remove.
4863 (record_full_message): Use try/catch.
4864 (record_full_wait_cleanups): Remove.
4865 (record_full_wait_1): Use try/catch.
4866 (record_full_restore): Likewise.
4867
219605fd
TT
48682018-06-10 Tom Tromey <tom@tromey.com>
4869
4870 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
4871 declare VEC. Add constructor.
4872 <in_target_beneath>: Now bool.
4873 (record_full_breakpoints): Now a std::vector, static.
4874 (record_full_sync_record_breakpoints)
4875 (record_full_init_record_breakpoints)
4876 (record_full_target::insert_breakpoint)
4877 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
4878
71b73764
SM
48792018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4880
4881 * dwarf2read.c (process_cu_includes): Remove struct keyword.
4882 * serial.c (serial_interface_lookup): Remove struct keyword.
4883
4360561f
TT
48842018-06-10 Tom Tromey <tom@tromey.com>
4885
4886 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
4887 method.
4888 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
4889 a method.
4890 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
4891 method.
4892 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
4893 "beneath" as a method.
4894 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
4895 Use "beneath" as a method.
4896
d14b92bf
TT
48972018-06-10 Tom Tromey <tom@tromey.com>
4898
4899 * tracefile.c (struct trace_file_writer_deleter): New.
4900 <operator()>: Rename from trace_file_writer_xfree.
4901 (trace_file_writer_up): New typedef.
4902 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
4903
835dcf92
SM
49042018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4905
4906 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
4907 <m_registers, m_register_status>: Change type to
4908 std::unique_ptr.
4909 * regcache.c (reg_buffer::reg_buffer): Use new instead of
4910 XCNEWVEC.
4911
aac0d564
SM
49122018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4913
4914 * common/common-regcache.h (enum register_status): Add
4915 underlying type "signed char".
4916 * regcache.h (reg_buffer) <m_register_status>: Change type to
4917 register_status *.
4918 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
4919 register_status instead of signed char.
4920 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
4921 (reg_buffer::get_register_status): Remove cast.
4922 (readable_regcache::raw_read): Remove cast.
4923 (readable_regcache::cooked_read): Remove cast.
4924
77ad7394
TT
49252018-06-09 Tom Tromey <tom@tromey.com>
4926
4927 * source.c (reverse_search_command, forward_search_command): Use
4928 scoped_fd.
4929
191cca63
TT
49302018-06-09 Tom Tromey <tom@tromey.com>
4931
4932 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
4933 (serial_ops_list): Now static, std::vector.
4934 (serial_interface_lookup, serial_add_interface): Update.
4935
c5d0225d
TT
49362018-06-09 Tom Tromey <tom@tromey.com>
4937
4938 * dwarf2read.c (process_cu_includes): Update.
4939 (process_full_comp_unit): Update.
4940 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
4941 std::vector.
4942
aeab5128
PK
49432018-06-08 Paul Koning <paul_koning@dell.com>
4944
4945 PR gdb/23252
4946
4947 * python/python.c (do_start_initialization):
4948 Avoid call to internal Python API.
4949 (init__gdb_module): New function.
4950
5045b3d7
GB
49512018-06-08 Gary Benson <gbenson@redhat.com>
4952
4953 * linux-thread-db.c (valprint.h): New include.
4954 (struct check_thread_db_info): New structure.
4955 (check_thread_db_on_load, tdb_testinfo): New static globals.
4956 (check_thread_db, check_thread_db_callback): New functions.
4957 (try_thread_db_load_1): Run integrity checks if requested.
4958 (maintenance_check_libthread_db): New function.
4959 (_initialize_thread_db): Register "maint check libthread-db"
4960 and "maint set/show check-libthread-db".
4961 * NEWS: Mention the above new commands.
4962
2f4f025f
TT
49632018-06-08 Tom Tromey <tom@tromey.com>
4964
4965 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
4966 now a method.
4967
343b0027
TT
49682018-06-08 Tom Tromey <tom@tromey.com>
4969
4970 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
4971
8dcc53b3
TT
49722018-06-08 Tom Tromey <tom@tromey.com>
4973
4974 * common/btrace-common.h (struct btrace_data): Add constructor,
4975 destructor, move assignment operator.
4976 <empty, clear, fini>: New methods.
4977 <format>: Initialize.
4978 (btrace_data_init, btrace_data_fini, btrace_data_clear)
4979 (btrace_data_empty): Don't declare.
4980 * common/btrace-common.c (btrace_data_init): Remove.
4981 (btrace_data::fini): Rename from btrace_data_fini.
4982 (btrace_data::empty): Rename from btrace_data_empty.
4983 (btrace_data::clear): Rename from btrace_data_clear. Return
4984 bool.
4985 * btrace.h (make_cleanup_btrace_data): Don't declare.
4986 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
4987 (parse_xml_btrace): Update.
4988 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
4989 (maint_btrace_clear_packet_history_cmd): Update.
4990
a1740ee1
PA
49912018-06-07 Pedro Alves <palves@redhat.com>
4992
4993 * target.h (target_ops) <beneath>: Now a method. All references
4994 updated.
4995 (class target_stack): New.
4996 * target.c (g_target_stack): New.
4997 (g_current_top_target): Delete.
4998 (current_top_target): Get the top target out of g_target_stack.
4999 (target_stack::push, target_stack::unpush): New.
5000 (push_target, unpush_target): Reimplement.
5001 (target_is_pushed): Reimplement in terms of g_target_stack.
5002 (target_ops::beneath, target_stack::find_beneath): New.
5003
d6ca69cd
PA
50042018-06-07 Pedro Alves <palves@redhat.com>
5005
5006 * target.h (find_target_beneath): Delete declaration.
5007 * target.c (find_target_beneath): Delete definition.
5008 * aix-thread.c: All callers of find_target_beneath adjusted to
5009 call target_ops::beneath instead.
5010 * bsd-uthread.c: Likewise.
5011 * linux-thread-db.c: Likewise.
5012 * ravenscar-thread.c: Likewise.
5013 * sol-thread.c: Likewise.
5014 * spu-multiarch.c: Likewise.
5015
b6a8c27b
PA
50162018-06-07 Pedro Alves <palves@redhat.com>
5017
5018 * target.h (target_ops) <beneath>: Now a method. All references
5019 updated.
5020 (target_ops) <m_beneath>: New.
5021 * target.c (target_ops::beneath): New.
5022 * corelow.c: Adjust all references to target_ops::beneath.
5023 * linux-thread-db.c: Likewise.
5024 * make-target-delegates: Likewise.
5025 * record-btrace.c: Likewise.
5026 * record-full.c: Likewise.
5027 * remote.c: Likewise.
5028 * target.c: Likewise.
5029 * target-delegates.c: Regenerate.
5030
8b88a78e
PA
50312018-06-07 Pedro Alves <palves@redhat.com>
5032
5033 * target.h (target_stack): Delete.
5034 (current_top_target): Declare function.
5035 * target.c (target_stack): Delete.
5036 (g_current_top_target): New.
5037 (current_top_target): New function.
5038 * auxv.c: Use current_top_target instead of target_stack
5039 throughout.
5040 * avr-tdep.c: Likewise.
5041 * breakpoint.c: Likewise.
5042 * corefile.c: Likewise.
5043 * elfread.c: Likewise.
5044 * eval.c: Likewise.
5045 * exceptions.c: Likewise.
5046 * frame.c: Likewise.
5047 * gdbarch-selftests.c: Likewise.
5048 * gnu-v3-abi.c: Likewise.
5049 * ia64-tdep.c: Likewise.
5050 * ia64-vms-tdep.c: Likewise.
5051 * infcall.c: Likewise.
5052 * infcmd.c: Likewise.
5053 * infrun.c: Likewise.
5054 * linespec.c: Likewise.
5055 * linux-tdep.c: Likewise.
5056 * minsyms.c: Likewise.
5057 * ppc-linux-nat.c: Likewise.
5058 * ppc-linux-tdep.c: Likewise.
5059 * procfs.c: Likewise.
5060 * regcache.c: Likewise.
5061 * remote.c: Likewise.
5062 * rs6000-tdep.c: Likewise.
5063 * s390-linux-nat.c: Likewise.
5064 * s390-tdep.c: Likewise.
5065 * solib-aix.c: Likewise.
5066 * solib-darwin.c: Likewise.
5067 * solib-dsbt.c: Likewise.
5068 * solib-spu.c: Likewise.
5069 * solib-svr4.c: Likewise.
5070 * solib-target.c: Likewise.
5071 * sparc-tdep.c: Likewise.
5072 * sparc64-tdep.c: Likewise.
5073 * spu-tdep.c: Likewise.
5074 * symfile.c: Likewise.
5075 * symtab.c: Likewise.
5076 * target-descriptions.c: Likewise.
5077 * target-memory.c: Likewise.
5078 * target.c: Likewise.
5079 * target.h: Likewise.
5080 * tracefile-tfile.c: Likewise.
5081 * tracepoint.c: Likewise.
5082 * valops.c: Likewise.
5083 * valprint.c: Likewise.
5084 * value.c: Likewise.
5085 * windows-tdep.c: Likewise.
5086 * mi/mi-main.c: Likewise.
5087
c7110220
TT
50882018-06-07 Tom Tromey <tom@tromey.com>
5089
5090 * valprint.h (build_address_symbolic): Declare.
5091 * printcmd.c (print_address_symbolic): Update.
5092 (build_address_symbolic): Change "name" and "filename" to
5093 std::string.
5094 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5095 Update.
5096 * defs.h (build_address_symbolic): Remove declaration.
5097
63bad7b6
AH
50982018-06-07 Alan Hayward <alan.hayward@arm.com>
5099
5100 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5101 (aarch64_vnv_type): Add function.
5102 (aarch64_pseudo_register_name): Add V regs for SVE.
5103 (aarch64_pseudo_register_type): Likewise.
5104 (aarch64_pseudo_register_reggroup_p): Likewise.
5105 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5106 (aarch64_pseudo_read_value): Add V regs for SVE.
5107 (aarch64_pseudo_write_2): Use V0 offset for SVE
5108 (aarch64_pseudo_write): Add V regs for SVE.
5109 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5110
13e3c608
SDJ
51112018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5112
5113 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5114 (sve_vl_from_vq): Likewise.
5115
c61b06a1
TT
51162018-06-05 Tom Tromey <tom@tromey.com>
5117
5118 * cli/cli-cmds.c (show_version): Update.
5119 * top.c (print_gdb_version): Add "interactive" parameter.
5120 Update.
5121 * main.c (captured_main_1): Update.
5122 * top.h (print_gdb_version): Add "interactive" parameter and a
5123 comment.
5124
115f7325
DM
51252018-06-05 David Malcolm <dmalcolm@redhat.com>
5126
5127 * common/enum-flags.h: Add trailing semicolon to example in
5128 comment.
5129
eb6af809
TT
51302018-06-05 Tom Tromey <tom@tromey.com>
5131
5132 PR cli/12326:
5133 * NEWS: Add entry about pager.
5134 * utils.c (pagination_disabled_for_command): New global.
5135 (prompt_for_continue): Allow "c" response to prompt.
5136 (reinitialize_more_filter): Clear
5137 pagination_disabled_for_command.
5138 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5139
54d343a2
TT
51402018-06-04 Tom Tromey <tom@tromey.com>
5141
5142 * ada-lang.h (ada_lookup_symbol_list): Update.
5143 * ada-lang.c (resolve_subexp): Update.
5144 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5145 parameter.
5146 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5147 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5148 results parameter to std::vector.
5149 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5150 Update.
5151 * ada-exp.y (block_lookup): Update.
5152 (select_possible_type_sym): Change type of syms. Remove nsyms
5153 parameter.
5154 (write_var_or_type, write_name_assoc): Update.
5155
178d6a63
JB
51562018-06-04 Joel Brobecker <brobecker@adacore.com>
5157
5158 * windows-nat.c (windows_nat_target::xfer_partial): Return
5159 TARGET_XFER_E_IO if we need to delegate to the target beneath
5160 but BENEATH is NULL.
5161
baf00c2d
SM
51622018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5163
5164 * Makefile.in (config.status): Add configure.nat as a
5165 dependency.
5166
214b073c
TT
51672018-06-04 Tom Tromey <tom@tromey.com>
5168
5169 * cp-name-parser.y (cpname_state): Add method declarations.
5170 (HANDLE_QUAL): Update.
5171 (cpname_state::d_grab, cpname_state::fill_comp)
5172 (cpname_state::make_operator, cpname_state::make_dtor)
5173 (cpname_state::make_builtin_type, cpname_state::make_name)
5174 (cpname_state::d_qualify, cpname_state::d_int_type)
5175 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5176 (%union): Move earlier.
5177
62b74cb8
AH
51782018-06-04 Alan Hayward <alan.hayward@arm.com>
5179
5180 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5181
3c5cd5c3
AH
51822018-06-04 Alan Hayward <alan.hayward@arm.com>
5183
5184 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5185 (aarch64_pseudo_write_1): Likewise.
5186 (aarch64_pseudo_read_value): Use helper.
5187 (aarch64_pseudo_write): Likewise.
5188
59f413d5
PA
51892018-06-04 Pedro Alves <palves@redhat.com>
5190
5191 * darwin-nat.c (darwin_ops): Delete.
5192 (darwin_attach_pid): Use get_native_target.
5193
1332a140
AH
51942018-06-04 Alan Hayward <alan.hayward@arm.com>
5195
5196 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5197 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5198
ba2d2bb2
AH
51992018-06-04 Alan Hayward <alan.hayward@arm.com>
5200
5201 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5202 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5203 (aarch64_gdbarch_init): Check for SVE.
5204 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5205
52062018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
5207
5208 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5209 * aarch64-tdep.h (aarch64_read_description): Likewise.
5210 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5211 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5212 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5213 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5214 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5215
41c60b4b
SM
52162018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5217
5218 * value.c (value_fetch_lazy_bitfield): New.
5219 (value_fetch_lazy_memory): New.
5220 (value_fetch_lazy_register): New.
5221 (value_fetch_lazy): Factor out to smaller functions.
5222
7b640f72
TT
52232018-06-01 Tom Tromey <tom@tromey.com>
5224
5225 * cp-name-parser.y (backslashable, represented): Now const.
5226
98e69eb3
TT
52272018-06-01 Tom Tromey <tom@tromey.com>
5228
5229 * cp-name-parser.y: Include parser-defs.h.
5230 (parser_fprintf): Remove declaration.
5231
49265499
TT
52322018-06-01 Tom Tromey <tom@tromey.com>
5233
5234 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5235 %parse-param.
5236 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5237 (global_result): Remove globals.
5238 (struct cpname_state): New.
5239 (yyparse): Don't declare.
5240 (yylex, yyerror): Move declarations after %union.
5241 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5242 (make_name): Add state parameter.
5243 Update all callers.
5244 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5245 parameter.
5246 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5247 Update.
5248 (yylex): Add lvalp, state parameters.
5249 (yyerror): Add state parameter.
5250 (cp_demangled_name_to_comp): Update.
5251
55b6c984
TT
52522018-06-01 Tom Tromey <tom@tromey.com>
5253
5254 * cp-name-parser.y (parser_fprintf): Declare.
5255 (GDB_YY_REMAP_PREFIX): Define.
5256 Include yy-remap.h. Don't redefine yy* identifiers.
5257
3513a6bb
TT
52582018-06-01 Tom Tromey <tom@tromey.com>
5259
5260 * python/py-type.c (typy_legacy_template_argument): Update.
5261 * cp-support.h (cp_demangled_name_to_comp): Update.
5262 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5263 parameter to be a "std::string *".
5264 (main): Update.
5265
e9cb46ab
L
52662018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5267
5268 * ada-lex.l: Include "diagnostics.h" instead of
5269 "common/diagnostics.h".
5270 * unittests/environ-selftests.c: Likewise.
5271 * common/diagnostics.h: Moved to ../include.
5272
8e817061
JB
52732018-06-01 Joel Brobecker <brobecker@adacore.com>
5274
5275 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5276 to language_mode_manual while calling breakpoint_re_set_one.
5277
a737d952
TT
52782018-06-01 Tom Tromey <tom@tromey.com>
5279
5280 * valops.c (value_cast_structs, destructor_name_p): Update.
5281 * symtab.c (gdb_mangle_name): Update.
5282 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5283 Update.
5284 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5285 (pascal_object_print_value_fields, pascal_object_print_value):
5286 Update.
5287 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5288 * linespec.c (find_methods): Update.
5289 * gdbtypes.h (type_name_no_tag): Remove.
5290 (type_name_or_error): Rename from type_name_no_tag_or_error.
5291 * gdbtypes.c (type_name_no_tag): Remove.
5292 (type_name_or_error): Rename from type_name_no_tag_or_error.
5293 (lookup_struct_elt_type, check_typedef): Update.
5294 * expprint.c (print_subexp_standard): Update.
5295 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5296 * d-namespace.c (d_lookup_nested_symbol): Update.
5297 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5298 (cp_print_class_member): Update.
5299 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5300 * completer.c (add_struct_fields): Update.
5301 * c-typeprint.c (cp_type_print_derivation_info)
5302 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5303 Update.
5304 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5305 (ada_prefer_type, ada_is_exception_sym): Update.
5306
e86ca25f
TT
53072018-06-01 Tom Tromey <tom@tromey.com>
5308
5309 * valops.c (enum_constant_from_type, value_namespace_elt)
5310 (value_maybe_namespace_elt): Update.
5311 * valarith.c (find_size_for_pointer_math): Update.
5312 * target-descriptions.c (make_gdb_type): Update.
5313 * symmisc.c (print_symbol): Update.
5314 * stabsread.c (define_symbol, read_type)
5315 (complain_about_struct_wipeout, add_undefined_type)
5316 (cleanup_undefined_types_1): Update.
5317 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5318 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5319 (rust_internal_print_type, rust_composite_type)
5320 (rust_evaluate_funcall, rust_evaluate_subexp)
5321 (rust_inclusive_range_type_p): Update.
5322 * python/py-type.c (typy_get_tag): Update.
5323 * p-typeprint.c (pascal_type_print_base): Update.
5324 * mdebugread.c (parse_symbol, parse_type): Update.
5325 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5326 Update.
5327 * guile/scm-type.c (gdbscm_type_tag): Update.
5328 * go-lang.c (sixg_string_p): Update.
5329 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5330 Update.
5331 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5332 (TYPE_TAG_NAME): Remove.
5333 * gdbtypes.c (type_name_no_tag): Simplify.
5334 (check_typedef, check_types_equal, recursive_dump_type)
5335 (copy_type_recursive, arch_composite_type): Update.
5336 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5337 in summary mode when needed.
5338 * eval.c (evaluate_funcall): Update.
5339 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5340 (process_structure_scope, read_enumeration_type)
5341 (read_namespace_type, read_module_type, determine_prefix): Update.
5342 * cp-support.c (inspect_type): Update.
5343 * coffread.c (process_coff_symbol, decode_base_type): Update.
5344 * c-varobj.c (c_is_path_expr_parent): Update.
5345 * c-typeprint.c (c_type_print_base_struct_union): Update.
5346 (c_type_print_base_1): Update. Print struct/class/union/enum in
5347 summary when using C language.
5348 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5349 (gen_maybe_namespace_elt): Update.
5350 * ada-lang.c (ada_type_name): Simplify.
5351 (empty_record, ada_template_to_fixed_record_type_1)
5352 (template_to_static_fixed_type)
5353 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5354
c1ec8cea
TT
53552018-06-01 Tom Tromey <tom@tromey.com>
5356
5357 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5358 c_print_type.
5359 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5360 (c_print_type): Update.
5361 (c_print_type): New overload.
5362 (c_type_print_varspec_prefix, c_type_print_args)
5363 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5364 (c_type_print_base_struct_union, c_type_print_base_1)
5365 (cp_type_print_method_args): Add "language" parameter.
5366 (c_type_print_base): Update.
5367 * c-lang.h (c_print_type): Add new overload.
5368
bc8453a7
TT
53692018-06-01 Tom Tromey <tom@tromey.com>
5370
5371 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5372 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5373
739e8682
AH
53742018-06-01 Alan Hayward <alan.hayward@arm.com>
5375
5376 * aarch64-tdep.c (aarch64_sve_register_names): New const
5377 var.
5378 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5379 (AARCH64_SVE_Z_REGS_NUM): New define.
5380 (AARCH64_SVE_P_REGS_NUM): Likewise.
5381 (AARCH64_SVE_NUM_REGS): Likewise.
5382
8a60efe7
UB
53832018-05-31 Uros Bizjak <ubizjak@gmail.com>
5384
5385 * nat/linux-ptrace.h [__alpha__]
5386 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5387 definitions.
5388
4b2dfa9d
MR
53892018-05-31 Maciej W. Rozycki <macro@mips.com>
5390
5391 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5392 the endianness selected.
5393 * NEWS: Document `set endian auto' mode operation update.
5394
122394f1
AH
53952018-05-31 Alan Hayward <alan.hayward@arm.com>
5396
5397 * Makefile.in: Add new header.
5398 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5399 (sve_vl_from_vg): Likewise.
5400 (sve_vq_from_vl): Likewise.
5401 (sve_vl_from_vq): Likewise.
5402 (sve_vq_from_vg): Likewise.
5403 (sve_vg_from_vq): Likewise.
5404 * configure.nat: Add new c file.
5405 * nat/aarch64-sve-linux-ptrace.c: New file.
5406 * nat/aarch64-sve-linux-ptrace.h: New file.
5407
95228a0d
AH
54082018-05-31 Alan Hayward <alan.hayward@arm.com>
5409
5410 * aarch64-linux-nat.c (aarch64_linux_read_description):
5411 Add parmeter zero.
5412 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5413 Likewise.
5414 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5415 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5416 (aarch64_gdbarch_init): Add parmeter zero.
5417 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5418 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5419 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5420 parmeter.
5421 * doc/gdb.texinfo: Describe SVE feature
5422 * features/aarch64-sve.c: New file.
5423
5969f0db
OJ
54242018-05-31 Omair Javaid <omair.javaid@linaro.org>
5425
5426 PR gdb/23210
5427 * gdbarch.sh (significant_addr_bit): Default to zero when
5428 not set by target architecture.
5429 * gdbarch.c: Re-generated.
5430 * utils.c (address_significant): Update.
5431
61367c61
JB
54322018-05-30 Joel Brobecker <brobecker@adacore.com>
5433
5434 * stack.c (func_command): Remove trailing newline in call to error.
5435
34a79281
SM
54362018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5437
5438 * regcache.h (regcache_raw_collect): Remove, update callers to
5439 use regcache::raw_collect.
5440 * regcache.c (regcache_raw_collect): Remove.
5441
73e1c03f
SM
54422018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5443
5444 * regcache.h (regcache_raw_supply): Remove, update callers to
5445 use detached_regcache::raw_supply.
5446 * regcache.c (regcache_raw_supply): Remove.
5447
e4c4a59b
SM
54482018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5449
5450 * regcache.h (regcache_cooked_write_part): Remove, update
5451 callers to use regcache::cooked_write_part.
5452 * regcache.c (regcache_cooked_write_part): Remove.
5453
73bb0000
SM
54542018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5455
5456 * regcache.h (regcache_cooked_read_part): Remove, update callers
5457 to use readable_regcache::cooked_read_part.
5458 * regcache.c (regcache_cooked_read_part): Remove.
5459
46a45e9d
SM
54602018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5461
5462 * regcache.h (regcache_cooked_read_value): Remove, update
5463 callers to use readable_regcache::cooked_read_value.
5464 * regcache.c (regcache_cooked_read_value): Remove.
5465
b66f5587
SM
54662018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5467
5468 * regcache.h (regcache_cooked_write): Remove, update callers to
5469 use regcache::cooked_write.
5470 * regcache.c (regcache_cooked_write): Remove.
5471
6aa7d724
SM
54722018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5473
5474 * regcache.h (regcache_invalidate): Remove, update callers to
5475 use detached_regcache::invalidate instead.
5476 * regcache.c (regcache_invalidate): Remove.
5477
4f0420fd
SM
54782018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5479
5480 * regcache.h (regcache_raw_write_part): Remove, update callers
5481 to use regcache::raw_write_part instead.
5482 * regcache.c (regcache_raw_write_part): Remove.
5483
502fe83e
SM
54842018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5485
5486 * regcache.h (regcache_raw_read_part): Remove, update callers to
5487 use readable_regcache::raw_read_part instead.
5488 * regcache.c (regcache_raw_read_part): Remove.
5489
dca08e1f
SM
54902018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5491
5492 * regcache.h (regcache_cooked_read): Remove, update callers to
5493 use readable_regcache::cooked_read instead.
5494 * regcache.c (regcache_cooked_read): Remove.
5495
10eaee5f
SM
54962018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5497
5498 * regcache.h (regcache_raw_write): Remove, update callers to use
5499 regcache::raw_write instead.
5500 * regcache.c (regcache_raw_write): Remove.
5501
0b883586
SM
55022018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5503
5504 * regcache.h (regcache_raw_read): Remove, update callers to use
5505 readable_regcache::raw_read instead.
5506 * regcache.c (regcache_raw_read): Remove.
5507
0b47d985
SM
55082018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5509
5510 * regcache.h (regcache_raw_update): Remove, update callers to
5511 use readable_regcache::raw_update instead.
5512 * regcache.c (regcache_raw_update): Remove.
5513
0ec9f114
SM
55142018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5515
5516 * regcache.h (regcache_register_status): Remove, update callers
5517 to use reg_buffer::get_register_status directly instead.
5518 * regcache.c (regcache_register_status): Remove.
5519
222312d3
SM
55202018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5521
5522 * regcache.h (regcache_get_ptid): Remove, update all callers to
5523 call regcache::ptid instead.
5524 * regcache.c (regcache_get_ptid): Remove.
5525
fdbe37e3
SM
55262018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5527
5528 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5529
f7c6f423
PA
55302018-05-30 Pedro Alves <palves@redhat.com>
5531
5532 * common/common-exceptions.h (exception_rethrow): Use
5533 ATTRIBUTE_NORETURN.
5534
52941706
SM
55352018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5536
5537 * breakpoint.c (print_solib_event, check_status_catch_solib):
5538 Remove struct keyword in range-based for loops.
5539 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5540 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5541 Likewise.
5542 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5543 Likewise.
5544 * symfile.c (addr_info_make_relative): Likewise.
5545 * thread.c (value_in_thread_stack_temporaries): Likewise.
5546
bf2977b5
WP
55472018-06-12 Weimin Pan <weimin.pan@oracle.com>
5548
5549 PR gdb/16841
5550 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5551 aggregate type to get its real type before accessing it.
5552
64cc34d8
WP
55532018-05-29 Weimin Pan <weimin.pan@oracle.com>
5554
5555 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5556 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5557 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5558 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5559 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5560 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5561 * printcmd.c (info_address_command): Likewise.
5562
e7ec8713
TT
55632018-05-29 Tom Tromey <tom@tromey.com>
5564
5565 * windows-nat.c (handle_exception): Update fall-through comment.
5566
bcb430e4
TT
55672018-05-29 Tom Tromey <tom@tromey.com>
5568
5569 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5570 (struct program_space) <added_solibs>: Now a std::vector.
5571 * breakpoint.c (print_solib_event): Update.
5572 (check_status_catch_solib): Update.
5573 * progspace.c (clear_program_space_solib_cache): Update.
5574 * solib.c (update_solib_list): Update.
5575
894882e3
TT
55762018-05-29 Tom Tromey <tom@tromey.com>
5577
5578 * python/py-type.c (typy_richcompare): Update.
5579 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5580 * gdbtypes.h (types_deeply_equal): Return bool.
5581 (types_equal): Likewise.
5582 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5583 declare VEC.
5584 (check_types_equal): Change worklist to std::vector. Return
5585 bool.
5586 (struct type_equality_entry): Add constructor.
5587 (compare_maybe_null_strings): Return bool.
5588 (check_types_worklist): Return bool. Change worklist to
5589 std::vector.
5590 (types_deeply_equal): Use std::vector.
5591 (types_equal): Return bool.
5592 (compare_maybe_null_strings): Simplify.
5593
10b2ded4
TT
55942018-05-29 Tom Tromey <tom@tromey.com>
5595
5596 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5597
4f7deebe
TT
55982018-05-29 Tom Tromey <tom@tromey.com>
5599
5600 * objc-lang.h: Don't include cp-support.h.
5601 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5602 declare VEC.
5603
b8283aea
TT
56042018-05-27 Tom Tromey <tom@tromey.com>
5605
5606 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5607
41a883c8
TT
56082018-05-25 Tom Tromey <tom@tromey.com>
5609
5610 * value.c (value::location): Initialize.
5611
bf259e25
TT
56122018-05-25 Tom Tromey <tom@tromey.com>
5613
5614 * dbxread.c (init_bincl_list): Remove.
5615 (bincl_list): Now a std::vector.
5616 (bincls_allocated, next_bincl): Remove.
5617 (free_bincl_list, do_free_bincl_list_cleanup)
5618 (make_cleanup_free_bincl_list): Remove.
5619 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5620 unique_xmalloc_ptr.
5621 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5622 (struct header_file_location): Add constructor.
5623 (add_bincl_to_list): Remove.
5624
d525a99b
TT
56252018-05-25 Tom Tromey <tom@tromey.com>
5626
5627 * tui/tui.c (tui_enable): Update.
5628 * mi/mi-interp.c (mi_interp::init): Update.
5629 * interps.h (class interp) <name>: New method.
5630 <m_name>: Rename from name.
5631 (~scoped_restore_interp): Update.
5632 * interps.c (interp::interp): Update.
5633 (interp_add, interp_set, interp_lookup_existing)
5634 (current_interp_named_p): Update.
5635
da505cff
TT
56362018-05-25 Tom Tromey <tom@tromey.com>
5637
5638 * interps.c (interp_name): Remove.
5639 * mi/mi-interp.c (mi_interp::init): Update.
5640 * interps.h (interp_name): Remove.
5641 (~scoped_restore_interp): Update.
5642 * tui/tui.c (tui_enable): Update.
5643
29f94340
TT
56442018-05-25 Tom Tromey <tom@tromey.com>
5645
5646 * utils.c (fputs_maybe_filtered): Update.
5647 * linespec.c (decode_line_full): Update.
5648 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5649 (mi_print_breakpoint_for_event, mi_solib_loaded)
5650 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5651 (mi_user_selected_context_changed): Update.
5652 * mi/mi-main.c (mi_execute_command): Update.
5653 * cli/cli-script.c (execute_control_command): Update.
5654 * python/python.c (execute_gdb_command): Update.
5655 * solib.c (info_sharedlibrary_command): Update.
5656 * interps.c (interp_ui_out): Remove.
5657 * interps.h (interp_ui_out): Remove.
5658
716b8bc5
TT
56592018-05-25 Tom Tromey <tom@tromey.com>
5660
5661 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5662 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5663 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5664
753ff9bd
TT
56652018-05-25 Tom Tromey <tom@tromey.com>
5666
5667 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5668 * interps.c (interp_exec): Use scoped_restore.
5669
5ca3b260
TT
56702018-05-25 Tom Tromey <tom@tromey.com>
5671
5672 * remote.c (remote_target::remote_file_get): Use
5673 gdb::byte_vector.
5674 (remote_target::remote_file_put): Likewise.
5675
3173aa2f
TT
56762018-05-25 Tom Tromey <tom@tromey.com>
5677
5678 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5679 a std::string.
5680 (get_pe_section_index, add_pe_exported_sym): Update.
5681 (read_pe_exported_syms): Use gdb::def_vector.
5682
09a5e1b5
TT
56832018-05-25 Tom Tromey <tom@tromey.com>
5684
5685 * frame.c (remove_prev_frame): Remove.
5686 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5687
d8dab6c3
MR
56882018-05-25 Maciej W. Rozycki <macro@mips.com>
5689
5690 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5691 Remove prototypes.
5692 * mips-linux-nat.c (supply_fpregset): Always call
5693 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5694 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5695 `mips_fill_fpregset'.
5696 * mips-linux-tdep.c (mips_supply_fpregset)
5697 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5698 (mips_fill_fpregset_wrapper): Remove functions.
5699 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5700 (mips_linux_fpregset): Remove variable.
5701 (mips_linux_iterate_over_regset_sections): Use
5702 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5703 (mips_linux_o32_sigframe_init): Remove comment.
5704
3c69da40
PA
57052018-05-25 Pedro Alves <palves@redhat.com>
5706
5707 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5708 (struct readahead_cache, struct packet_reg, struct
5709 remote_arch_state, class remote_state): Move higher up in the
5710 file.
5711 (remote_target::m_remote_state): Now an object instead of a pointer.
5712 (remote_target::get_remote_state): Adjust.
5713
39f0c204
AB
57142018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5715
5716 * stack.c (select_and_print_frame): Delete.
5717 (struct function_bounds): Move struct within function.
5718 (func_command): Most content moved into new function
5719 find_frame_for_function, use new function, print result, add
5720 function comment.
5721 (find_frame_for_function): New function, now returns a result.
5722
d392224a
PW
57232018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5724
5725 * stack.c (iterate_over_block_arg_vars): Fix comment.
5726 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5727
45f25d6c
AB
57282018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5729
5730 PR gdb/23203
5731 * frame.c
5732 (scoped_restore_selected_frame::scoped_restore_selected_frame):
5733 Define.
5734 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5735 Define.
5736 * frame.h (class scoped_restore_selected_frame): New class.
5737 * stack.c (print_frame_local_vars): Remove catching and rethrowing
5738 of any exception, use scoped_restore_selected_frame to restore the
5739 frame instead.
5740
da05d921
PA
57412018-05-24 Pedro Alves <palves@redhat.com>
5742
5743 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5744 override.
5745
a8be540e
TT
57462018-05-23 Tom Tromey <tom@tromey.com>
5747
5748 * complaints.c (struct complaints): Remove.
5749 (symfile_complaint_book): Remove.
5750 (series): New global.
5751 (complaint_internal): Update.
5752 (clear_complaints): Update.
5753
ff1cf532
TT
57542018-05-23 Tom Tromey <tom@tromey.com>
5755
5756 * complaints.c (counters): New global.
5757 (struct complain): Remove.
5758 (struct complaints) <root>: Remove.
5759 (complaint_sentinel): Remove.
5760 (symfile_complaint_book): Update.
5761 (find_complaint) Remove.
5762 (complaint_internal, clear_complaints): Update.
5763
7ff88174
TT
57642018-05-23 Tom Tromey <tom@tromey.com>
5765
5766 * complaints.c (struct complain) <file, line>: Remove.
5767 (find_complaint): Remove file, line parameters.
5768 (complaint_internal): Update.
5769
de54e1a5
TT
57702018-05-23 Tom Tromey <tom@tromey.com>
5771
5772 * complaints.c (vcomplaint): Remove.
5773 (complaint_internal) Merge in contents of vcomplaint.
5774
2ac237e5
TT
57752018-05-23 Tom Tromey <tom@tromey.com>
5776
5777 * complaints.c (struct complaints) <explanation>: Remove.
5778 (symfile_explanations): Remove.
5779 (symfile_complaint_book): Update.
5780 (vcomplaint): Update.
5781 (struct explanation): Remove.
5782
b98664d3
TT
57832018-05-23 Tom Tromey <tom@tromey.com>
5784
5785 * complaints.c (symfile_complaints): Remove.
5786 (complaint_internal): Remove "complaints" parameter.
5787 (clear_complaints, vcomplaint): Remove "c" parameter.
5788 (get_complaints): Remove.
5789 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5790 (dwarf2_debug_line_missing_file_complaint)
5791 (dwarf2_debug_line_missing_end_sequence_complaint)
5792 (dwarf2_complex_location_expr_complaint)
5793 (dwarf2_const_value_length_mismatch_complaint)
5794 (dwarf2_section_buffer_overflow_complaint)
5795 (dwarf2_macro_malformed_definition_complaint)
5796 (dwarf2_invalid_attrib_class_complaint)
5797 (create_addrmap_from_index, dw2_symtab_iter_next)
5798 (dw2_expand_marked_cus)
5799 (dw2_debug_names_iterator::find_vec_in_debug_names)
5800 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5801 (create_debug_type_hash_table, init_cutu_and_read_dies)
5802 (partial_die_parent_scope, add_partial_enumeration)
5803 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5804 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5805 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5806 (create_cus_hash_table, create_dwp_hash_table)
5807 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5808 (dwarf2_rnglists_process, dwarf2_ranges_process)
5809 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5810 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5811 (handle_struct_member_die, process_structure_scope)
5812 (read_array_type, read_common_block, read_module_type)
5813 (read_tag_pointer_type, read_typedef, read_base_type)
5814 (read_subrange_type, load_partial_dies, partial_die_info::read)
5815 (partial_die_info::read, partial_die_info::read)
5816 (partial_die_info::read, read_checked_initial_length_and_offset)
5817 (dwarf2_string_attr, read_formatted_entries)
5818 (dwarf_decode_line_header)
5819 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5820 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5821 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5822 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5823 (get_signatured_type, get_DW_AT_signature_type)
5824 (decode_locdesc, file_file_name, consume_improper_spaces)
5825 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5826 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5827 (dwarf2_symbol_mark_computed, set_die_type)
5828 (read_attribute_value): Update.
5829 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5830 Update.
5831 * dbxread.c (unknown_symtype_complaint)
5832 (lbrac_mismatch_complaint, repeated_header_complaint)
5833 (set_namestring, function_outside_compilation_unit_complaint)
5834 (read_dbx_symtab, process_one_symbol): Update.
5835 * gdbtypes.c (stub_noname_complaint): Update.
5836 * windows-nat.c (handle_unload_dll): Update.
5837 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5838 (decode_base_type): Update.
5839 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5840 (eb_complaint, record_include_begin, record_include_end)
5841 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5842 (process_xcoff_symbol, read_symbol)
5843 (function_outside_compilation_unit_complaint)
5844 (scan_xcoff_symtab): Update.
5845 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5846 * buildsym.c (finish_block_internal, make_blockvector)
5847 (end_symtab_get_static_block, augment_type_symtab): Update.
5848 * dtrace-probe.c (dtrace_process_dof)
5849 (dtrace_static_probe_ops::get_probes): Update.
5850 * complaints.h (struct complaint): Don't declare.
5851 (symfile_complaints): Remove.
5852 (complaint_internal): Remove "complaints" parameter.
5853 (complaint): Likewise.
5854 (clear_complaints): Likewise.
5855 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5856 (reread_symbols): Update.
5857 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5858 (dwarf2_frame_cache, decode_frame_entry): Update.
5859 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5860 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5861 (info_selectors_command): Update.
5862 * macrotab.c (macro_include, check_for_redefinition)
5863 (macro_undef): Update.
5864 * objfiles.c (filter_overlapping_sections): Update.
5865 * stabsread.c (invalid_cpp_abbrev_complaint)
5866 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5867 (define_symbol, error_type, read_type, rs6000_builtin_type)
5868 (stabs_method_name_from_physname, read_member_functions)
5869 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5870 (attach_fields_to_type, complain_about_struct_wipeout)
5871 (read_range_type, read_args, common_block_start)
5872 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
5873 Update.
5874 * mdebugread.c (index_complaint, unknown_ext_complaint)
5875 (basic_type_complaint, bad_tag_guess_complaint)
5876 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
5877 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
5878 (parse_procedure, parse_lines)
5879 (function_outside_compilation_unit_complaint)
5880 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
5881 (bad_tag_guess_complaint, reg_value_complaint): Update.
5882 * cp-support.c (demangled_name_complaint): Update.
5883 * macroscope.c (sal_macro_scope): Update.
5884 * dwarf-index-write.c (class debug_names): Update.
5885
4e9668d0
TT
58862018-05-23 Tom Tromey <tom@tromey.com>
5887
5888 * complaints.c (clear_complaints): Remove "noisy" parameter.
5889 * complaints.h (clear_complaints): Update.
5890 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5891 (reread_symbols): Update.
5892
43ba33c7
TT
58932018-05-23 Tom Tromey <tom@tromey.com>
5894
5895 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
5896 SUBSEQUENT_MESSAGE.
5897 (vcomplaint, clear_complaints): Update.
5898 (symfile_explanations): Remove some messages.
5899
2b9496b2
TT
59002018-05-23 Tom Tromey <tom@tromey.com>
5901
5902 * complaints.c (internal_complaint): Remove.
5903 * complaints.h (internal_complaint): Remove.
5904
35f1fea3
MR
59052018-05-22 Maciej W. Rozycki <macro@mips.com>
5906
5907 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
5908
6b8edb51
PA
59092018-05-22 Pedro Alves <palves@redhat.com>
5910
5911 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
5912 (remote_fileio_badfd, remote_fileio_return_errno)
5913 (remote_fileio_return_success, remote_fileio_func_open)
5914 (remote_fileio_func_open, remote_fileio_func_close)
5915 (remote_fileio_func_read, remote_fileio_func_write)
5916 (remote_fileio_func_lseek, remote_fileio_func_rename)
5917 (remote_fileio_func_unlink, remote_fileio_func_stat)
5918 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5919 (remote_fileio_func_isatty, remote_fileio_func_system): Add
5920 remote_target parameter.
5921 (remote_fio_func_map) <func>: Add remote_target parameter.
5922 (do_remote_fileio_request, remote_fileio_request):
5923 * remote-fileio.h (remote_fileio_request):
5924 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
5925 remote_target parameter.
5926 (remote_notif_process, handle_notification): Adjust to pass down
5927 the remote.
5928 (remote_notif_state_allocate): Add remote_target parameter. Save
5929 it.
5930 * remote-notif.h (struct remote_target): Forward declare.
5931 (struct notif_client) <parse, ack, can_get_pending_events>: Add
5932 remote_target parameter.
5933 (struct remote_notif_state) <remote>: New field.
5934 (remote_notif_ack, remote_notif_parse): Add remote_target
5935 parameter.
5936 (remote_notif_state_allocate, remote_notif_state_allocate): Add
5937 remote_target parameter.
5938 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
5939 (threads_listing_context, rmt_thread_action, protocol_feature)
5940 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
5941 (packet_result, struct threads_listing_context, remote_state):
5942 Move definitions and declarations higher up.
5943 (remote_target) <~remote_target>: Declare.
5944 (remote_download_command_source, remote_file_put, remote_file_get)
5945 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
5946 (remote_hostio_pread_vFile, remote_hostio_send_command)
5947 (remote_hostio_set_filesystem, remote_hostio_open)
5948 (remote_hostio_close, remote_hostio_unlink, remote_state)
5949 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
5950 (get_memory_write_packet_size, get_memory_read_packet_size)
5951 (append_pending_thread_resumptions, remote_detach_1)
5952 (append_resumption, remote_resume_with_vcont)
5953 (add_current_inferior_and_thread, wait_ns, wait_as)
5954 (process_stop_reply, remote_notice_new_inferior)
5955 (process_initial_stop_replies, remote_add_thread)
5956 (btrace_sync_conf, remote_btrace_maybe_reopen)
5957 (remove_new_fork_children, kill_new_fork_children)
5958 (discard_pending_stop_replies, stop_reply_queue_length)
5959 (check_pending_events_prevent_wildcard_vcont)
5960 (discard_pending_stop_replies_in_queue, stop_reply)
5961 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
5962 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
5963 (remote_interrupt_as, remote_interrupt_ns)
5964 (remote_get_noisy_reply, remote_query_attached)
5965 (remote_add_inferior, remote_current_thread, get_current_thread)
5966 (set_thread, set_general_thread, set_continue_thread)
5967 (set_general_process, write_ptid)
5968 (remote_unpack_thread_info_response, remote_get_threadinfo)
5969 (parse_threadlist_response, remote_get_threadlist)
5970 (remote_threadlist_iterator, remote_get_threads_with_ql)
5971 (remote_get_threads_with_qxfer)
5972 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
5973 (get_offsets, remote_check_symbols, remote_supported_packet)
5974 (remote_query_supported, remote_packet_size)
5975 (remote_serial_quit_handler, remote_detach_pid)
5976 (remote_vcont_probe, remote_resume_with_hc)
5977 (send_interrupt_sequence, interrupt_query)
5978 (remote_notif_get_pending_events, fetch_register_using_p)
5979 (send_g_packet, process_g_packet, fetch_registers_using_g)
5980 (store_register_using_P, store_registers_using_G)
5981 (set_remote_traceframe, check_binary_download)
5982 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
5983 (remote_xfer_live_readonly_partial, remote_read_bytes)
5984 (remote_send_printf, remote_flash_write, readchar)
5985 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
5986 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
5987 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
5988 (extended_remote_disable_randomization, extended_remote_run)
5989 (send_environment_packet, extended_remote_environment_support)
5990 (extended_remote_set_inferior_cwd, remote_write_qxfer)
5991 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
5992 (packet_command): Now methods of ...
5993 (remote_target): ... this class.
5994 (m_remote_state) <remote_target>: New field.
5995 (struct remote_state) <stop_reply_queue,
5996 remote_async_inferior_event_token, wait_forever_enabled_p>: New
5997 fields.
5998 (remote_state::remote_state): Allocate stop_reply_queue.
5999 (remote_state): Delete global.
6000 (get_remote_state_raw): Delete.
6001 (remote_target::get_remote_state): Allocate m_remote_state on
6002 demand.
6003 (get_current_remote_target): New.
6004 (remote_ops, extended_remote_ops): Delete.
6005 (wait_forever_enabled_p, remote_async_inferior_event_token):
6006 Delete, moved to struct remote_state.
6007 (remote_target::close): Delete self. Destruction bits split to
6008 ...
6009 (remote_target::~remote_target): ... this.
6010 (show_memory_packet_size): Adjust to use
6011 get_current_remote_target.
6012 (struct protocol_feature) <func>: Add remote_target parameter.
6013 All callers adjusted.
6014 (curr_quit_handler_target): New.
6015 (remote_serial_quit_handler): Reimplement.
6016 (remote_target::open_1): Adjust to use get_current_remote_target.
6017 Heap-allocate remote_target/extended_remote_target instances.
6018 (vcont_builder::vcont_builder): Add remote_target parameter, and
6019 save it in m_remote. All callers adjusted.
6020 (vcont_builder::m_remote): New field.
6021 (vcont_builder::restart, vcont_builder::flush)
6022 (vcont_builder::push_action): Use it.
6023 (remote_target::commit_resume): Use it.
6024 (struct queue_iter_param) <remote>: New field.
6025 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6026 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6027 (check_pending_event_prevents_wildcard_vcont_callback)
6028 (remote_target::check_pending_events_prevent_wildcard_vcont)
6029 (remote_target::discard_pending_stop_replies)
6030 (remote_target::discard_pending_stop_replies_in_queue)
6031 (remote_target::remote_notif_remove_queued_reply): Fill in
6032 'remote' field.
6033 (remote_notif_get_pending_events): New.
6034 (remote_target::readchar, remote_target::remote_serial_write):
6035 Save/restore curr_quit_handler_target.
6036 (putpkt): New.
6037 (kill_new_fork_children): Fill in 'remote' field.
6038 (packet_command): Use get_current_remote_target, defer to
6039 remote_target method of same name.
6040 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6041 parameter, and save it in m_remote. All callers adjusted.
6042 (scoped_remote_fd::release): Use m_remote.
6043 (scoped_remote_fd::m_remote): New field.
6044 (remote_file_put, remote_file_get, remote_file_delete): Use
6045 get_current_remote_target, defer to remote_target method of same
6046 name.
6047 (remote_btrace_reset): Add remote_state paremeter. Update all
6048 callers.
6049 (remote_async_inferior_event_handler). Pass down 'data'.
6050 (remote_new_objfile): Use get_current_remote_target.
6051 (remote_target::vcont_r_supported): New.
6052 (set_range_stepping): Use get_current_remote_target and
6053 remote_target::vcont_r_supported.
6054 (_initialize_remote): Don't allocate 'remote_state' and
6055 'stop_reply_queue' globals.
6056 * remote.h (struct remote_target): Forward declare.
6057 (getpkt, putpkt, remote_notif_get_pending_events): Add
6058 'remote_target' parameter.
6059
f5db4863
PA
60602018-05-22 Pedro Alves <palves@redhat.com>
6061
6062 * remote.c (vcont_builder): Now a class. Make all data members
6063 private.
6064 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6065 Declare methods.
6066 (vcont_builder_restart): Rename to ...
6067 (vcont_builder::restart): ... this.
6068 (vcont_builder_flush): Rename to ...
6069 (vcont_builder::flush): ... this.
6070 (vcont_builder_push_action): Rename to ...
6071 (vcont_builder::push_action): ... this.
6072 (remote_target::commit_resume): Adjust.
6073
cc0be08f
PA
60742018-05-22 Pedro Alves <palves@redhat.com>
6075
6076 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6077 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6078 (get_fixed_memory_packet_size): New.
6079 (get_memory_packet_size): Use it.
6080 (set_memory_packet_size): Don't override the config size with
6081 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6082 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6083 Don't refer to get_memory_packet_size if not connected to a remote
6084 target. Show "(default)" if configured size is 0.
6085
9607784a
PA
60862018-05-22 Pedro Alves <palves@redhat.com>
6087
6088 * remote.c (remote_target::mourn_inferior): Move
6089 discard_pending_stop_replies call here from ...
6090 (_initialize_remote): ... here.
6091
0e9a6b2f
PA
60922018-05-22 Pedro Alves <palves@redhat.com>
6093
6094 * remote.c (compare_section_command): Remove set_general_process
6095 call.
6096
43c3a0e4
PA
60972018-05-22 Pedro Alves <palves@redhat.com>
6098
6099 * remote.c (struct packet_reg, struct remote_arch_state):
6100 Move higher up in the file.
6101 (remote_state) <m_arch_states>: Store remote_arch_state values
6102 instead of remote_arch_state pointers.
6103 (remote_state::get_remote_arch_state): Adjust.
6104
9d6eea31
PA
61052018-05-22 Pedro Alves <palves@redhat.com>
6106
6107 * remote.c: Include <unordered_map>.
6108 (remote_state): Now a class.
6109 (remote_state) <get_remote_arch_state>: Declare method.
6110 <get_remote_arch_state>: New field.
6111 (remote_arch_state) <remote_arch_state>: Declare ctor.
6112 <regs>: Now a unique_ptr.
6113 (remote_gdbarch_data_handle): Delete.
6114 (get_remote_arch_state): Delete.
6115 (remote_state::get_remote_arch_state): New.
6116 (get_remote_state): Adjust to call remote_state's
6117 get_remote_arch_state method.
6118 (init_remote_state): Delete, bits factored out to ...
6119 (remote_arch_state::remote_arch_state): ... this new method.
6120 (get_remote_packet_size, get_memory_packet_size)
6121 (process_g_packet, remote_target::fetch_registers)
6122 (remote_target::prepare_to_store, store_registers_using_G)
6123 (remote_target::store_registers, remote_target::get_trace_status):
6124 Adjust to call remote_state's method.
6125 (_initialize_remote): Remove reference to
6126 remote_gdbarch_data_handle.
6127
dd194f6b
PA
61282018-05-22 Pedro Alves <palves@redhat.com>
6129
6130 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6131 pread>: New method declarations.
6132 (remote_target::open_1): Adjust.
6133 (readahead_cache_invalidate): Rename to ...
6134 (readahead_cache::invalidate): ... this, and adjust to be a class
6135 method.
6136 (readahead_cache_invalidate_fd): Rename to ...
6137 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6138 class method.
6139 (remote_hostio_pwrite): Adjust.
6140 (remote_hostio_pread_from_cache): Rename to ...
6141 (readahead_cache::pread): ... this, and adjust to be a class
6142 method.
6143 (remote_hostio_close): Adjust.
6144
440b7aec
PA
61452018-05-22 Pedro Alves <palves@redhat.com>
6146
6147 * remote.c (remote_hostio_close_cleanup): Delete.
6148 (class scoped_remote_fd): New.
6149 (remote_file_put, remote_file_get): Use it.
6150
de44f5a7
PA
61512018-05-22 Pedro Alves <palves@redhat.com>
6152
6153 (struct vCont_action_support): Use bool and initialize all fields.
6154 (struct readahead_cache): Initialize all fields.
6155 (remote_state): Use bool and initialize all fields.
6156 (remote_state::remote_state, remote_state::~remote_state): New.
6157 (new_remote_state): Delete.
6158 (_initialize_remote): Use new to allocate remote_state.
6159
b1b60145
PA
61602018-05-22 Pedro Alves <palves@redhat.com>
6161 張俊芝 <zjz@zjz.name>
6162
6163 PR gdb/22973
6164 * c-exp.y: Include "c-support.h".
6165 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6166 of tolower. Use c_ident_is_alpha to scan names.
6167 * c-lang.c: Include "c-support.h".
6168 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6169 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6170 * c-support.h: New file, with bits factored out from ...
6171 * cp-name-parser.y: ... this file.
6172 Include "c-support.h".
6173 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6174 c-support.h and renamed.
6175 (symbol_end, yylex): Adjust.
6176
0ec848ad
PFC
61772018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6178
6179 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6180 parameter type to CORE_ADDR.
6181 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6182 parameter type in declaration to CORE_ADDR.
6183 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6184 target_auxv_search to get AT_HWCAP and use the result to get the
6185 target description.
6186 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6187 to CORE_ADDR. Remove the cast of the return value to unsigned
6188 long. Fix error predicate of target_auxv_search.
6189 (ppc_linux_nat_target::read_description): Change the type of the
6190 hwcap variable to CORE_ADDR.
6191
0fb2aaa1
PFC
61922018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6193
6194 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6195 if the size of fpscr is larger than 32 bits.
6196
2c3305f6
PFC
61972018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6198
6199 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6200 (ppc32_linux_vsxregmap): New global.
6201 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6202 regcache_supply_regset, and regcache_collect_regset.
6203 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6204 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6205 (fetch_vsx_register, store_vsx_register): Remove.
6206 (fetch_vsx_registers): Add regno parameter. Get regset using
6207 ppc_linux_vsxregset. Use regset to supply registers.
6208 (store_vsx_registers): Add regno parameter. Get regset using
6209 ppc_linux_vsxregset. Use regset to collect registers.
6210 (fetch_register): Call fetch_vsx_registers instead of
6211 fetch_vsx_register.
6212 (store_register): Call store_vsx_registers instead of
6213 store_vsx_register.
6214 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6215 new regno parameter.
6216 (store_ppc_registers): Call store_vsx_registers with -1 for the
6217 new regno parameter.
6218 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6219 (ppc_collect_vsxregset): Remove.
6220
1d75a658
PFC
62212018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6222
6223 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6224 offset fields.
6225 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6226 for vector register offset fields.
6227 (ppc64_fbsd_reg_offsets): Likewise.
6228 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6229 to vector register offset fields.
6230 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6231 to vector register offset fields.
6232 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6233 vector register offset fields.
6234 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6235 initializers for vector register offset fields.
6236 (rs6000_aix64_reg_offsets): Likewise.
6237 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6238 (ppc_supply_vrregset): Remove.
6239 (ppc_collect_vrregset): Remove.
6240 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6241 (ppc_linux_vrregset) : New function.
6242 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6243 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6244 (ppc32_linux_vrregset): Remove.
6245 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6246 and use result instead of ppc32_linux_vrregset.
6247 (ppc32_linux_reg_offsets): Remove initializers for vector register
6248 offset fields.
6249 (ppc64_linux_reg_offsets): Likewise.
6250 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6251 * ppc-linux-nat.c: Include regset.h.
6252 (gdb_vrregset_t): Adjust comment to account for little-endian
6253 mode.
6254 (supply_vrregset, fill_vrregset): Remove.
6255 (fetch_altivec_register, store_altivec_register): Remove.
6256 (fetch_altivec_registers): Add regno parameter. Get regset using
6257 ppc_linux_vrregset. Use regset to supply registers.
6258 (store_altivec_registers): Add regno parameter. Get regset using
6259 ppc_linux_vrregset. Use regset to collect registers.
6260 (fetch_register): Call fetch_altivec_registers instead of
6261 fetch_altivec_register.
6262 (store_register): Call store_altivec_registers instead of
6263 store_altivec_register.
6264 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6265 the new regno parameter.
6266 (store_ppc_registers): Call store_altivec_registers with -1 for
6267 the new regno parameter.
6268
d078308a
PFC
62692018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6270
6271 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6272 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6273 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6274 (gdb_vrregset_t): Change array type size to
6275 PPC_LINUX_SIZEOF_VRREGSET.
6276 (gdb_vsxregset_t): Change array type size to
6277 PPC_LINUX_SIZEOF_VSXREGSET.
6278 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6279 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6280 PPC_LINUX_SIZEOF_VSXREGSET.
6281
2e077f5e
PFC
62822018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6283
6284 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6285 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6286 nat/ppc-linux.c.
6287 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6288 ppc_linux_target_wordsize with tid.
6289 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6290 wordsize with tid.
6291 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6292 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6293 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6294 tid parameter. Remove static specifier.
6295 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6296 (ppc_linux_target_wordsize): New declaration.
6297
bd64614e
PFC
62982018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6299
6300 * arch/ppc-linux-common.c: New file.
6301 * arch/ppc-linux-common.h: New file.
6302 * arch/ppc-linux-tdesc.h: New file.
6303 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6304 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6305 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6306 arch/ppc-linux-tdesc.h.
6307 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6308 arch/ppc-linux-tdesc.h.
6309 (ppc_linux_nat_target::read_description): Remove target
6310 description matching code. Fill a ppc_linux_features struct and
6311 call ppc_linux_match_description with it. Move comment about ISA
6312 2.05 to ppc-linux-common.c.
6313 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6314 arch/ppc-linux-tdesc.h.
6315 (ppc_linux_core_read_description): Remove target description
6316 matching code. Fill a ppc_linux_features struct and call
6317 ppc_linux_match_description with it.
6318 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6319 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6320 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6321 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6322 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6323 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6324 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6325 (tdesc_powerpc_e500l): Remove.
6326
241db429
JB
63272018-05-22 Joel Brobecker <brobecker@adacore.com>
6328
6329 * ada-lang.c (catch_assert_command): Pass empty string instead
6330 of NULL for excep_string argument.
6331
75d74cca
MR
63322018-05-22 Maciej W. Rozycki <macro@mips.com>
6333
6334 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6335 the width of the requested register exceeds the width of the
6336 `ptrace' data type.
6337
122b53ea
TT
63382018-05-21 Tom Tromey <tom@tromey.com>
6339
6340 * printcmd.c (output_command): Remove.
6341 (output_command_const): Rename to output_command.
6342 * valprint.h (output_command): Rename from output_command_const.
6343 * tracepoint.c (trace_dump_actions): Call output_command.
6344
bc18fbb5
TT
63452018-05-21 Tom Tromey <tom@tromey.com>
6346
6347 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6348 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6349 * ada-lang.h (create_ada_exception_catchpoint): Update.
6350 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6351 std::string.
6352 (create_excep_cond_exprs, ~ada_catchpoint)
6353 (should_stop_exception, print_one_exception)
6354 (print_mention_exception, print_recreate_exception): Update.
6355 (ada_get_next_arg): Remove.
6356 (catch_ada_exception_command_split): Use std::string. Change type
6357 of "excep_string", "cond_string".
6358 (catch_ada_exception_command): Update.
6359 (create_ada_exception_catchpoint): Change type of excep_string.
6360 (ada_exception_sal): Remove excep_string parameter.
6361 (~ada_catchpoint): Remove.
6362
790217f6
TT
63632018-05-21 Tom Tromey <tom@tromey.com>
6364
6365 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6366 cleanup.
6367
6f46ac85
TT
63682018-05-21 Tom Tromey <tom@tromey.com>
6369
6370 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6371 Return unique_xmalloc_ptr.
6372 (print_it_exception): Update.
6373
15b6611c
TT
63742018-05-21 Tom Tromey <tom@tromey.com>
6375
6376 * tracepoint.c (trace_dump_actions): Use std::string.
6377
c0c9f665
TT
63782018-05-21 Tom Tromey <tom@tromey.com>
6379
6380 * symfile.c (reread_symbols): Use std::string for original_name.
6381
22ca247e
TT
63822018-05-21 Tom Tromey <tom@tromey.com>
6383
6384 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6385 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6386 constructor.
6387
184cde75
SM
63882018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6389
6390 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6391 instance to...
6392 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6393 * objfiles.c (get_objfile_bfd_data): Allocate
6394 objfile_per_bfd_storage with obstack_new when allocating on
6395 obstack.
6396
e39db4db
SM
63972018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6398
6399 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6400 OBSTACK_ZALLOC.
6401 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6402 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6403 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6404 (add_pending): Likewise.
6405 (parse_symbol): Likewise.
6406 (parse_partial_symbols): Likewise.
6407 (psymtab_to_symtab_1): Likewise.
6408 (new_psymtab): Likewise.
6409 (elfmdebug_build_psymtabs): Likewise.
6410 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6411 * objfiles.c (get_objfile_bfd_data): Likewise.
6412 (objfile_register_static_link): Likewise.
6413 * psymtab.c (allocate_psymtab): Likewise.
6414 * stabsread.c (read_member_functions): Likewise.
6415 * xcoffread.c (xcoff_end_psymtab): Likewise.
6416
284a0e3c
SM
64172018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6418
6419 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6420 compiler supports std::is_trivially_constructible.
6421 * common/poison.h: Include obstack.h.
6422 (IsMallocable): Define to is_trivially_constructible if the
6423 compiler supports it, define to true_type otherwise.
6424 (xobnew): New.
6425 (XOBNEW): Redefine.
6426 (xobnewvec): New.
6427 (XOBNEWVEC): Redefine.
6428 * gdb_obstack.h (obstack_zalloc): New.
6429 (OBSTACK_ZALLOC): Redefine.
6430 (obstack_calloc): New.
6431 (OBSTACK_CALLOC): Redefine.
6432 (obstack_new): New.
6433 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6434 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6435 gdbarch.c.
6436 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6437 obstack_calloc/obstack_zalloc.
6438 (gdbarch_obstack_zalloc): Remove.
6439 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6440
59f66be3
PW
64412018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6442
6443 * stack.c (backtrace_command_1): Remove useless variable int i.
6444
50c65c2d
PW
64452018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6446
6447 * stack.c (print_frame_info): Fix comment.
6448
7ff8cb8c
TT
64492018-05-18 Tom Tromey <tom@tromey.com>
6450
6451 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6452 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6453 (~dwarf2_per_objfile): Update
6454 (dwarf2_get_dwz_file): Use new.
6455 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6456 unique_ptr.
6457
400174b1
TT
64582018-05-18 Tom Tromey <tom@tromey.com>
6459
6460 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6461 unique_ptr.
6462 * dwarf2read.c (struct dwp_file): Add constructor and
6463 initializers.
6464 (open_and_init_dwp_file): Return a unique_ptr.
6465 (dwarf2_per_objfile, create_dwp_hash_table)
6466 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6467 (lookup_dwo_unit_in_dwp): Update.
6468 (open_and_init_dwp_file, get_dwp_file): Update.
6469
3063847f
TT
64702018-05-18 Tom Tromey <tom@tromey.com>
6471
6472 * dwarf2read.c (dwarf2_per_objfile): Update.
6473 (struct mapped_index): Add initializers.
6474 (dwarf2_read_index): Use new.
6475 (dw2_symtab_iter_init): Update.
6476 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6477 unique_ptr.
6478
d3d02dee
SM
64792018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6480
6481 * dwarf2read.c (mapped_index) <total_size>: Remove.
6482
1d143c36
SM
64832018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6484
6485 * unittests/format_pieces-selftests.c (test_format_specifier):
6486 Add ARI comments.
6487
ce1e8424
TT
64882018-05-18 Tom Tromey <tom@tromey.com>
6489
6490 * c-typeprint.c (maybe_print_hole): New function.
6491 (c_print_type_struct_field_offset): Update.
6492 (c_type_print_base_struct_union): Call maybe_print_hole.
6493
ddfe970e
KS
64942018-05-17 Keith Seitz <keiths@redhat.com>
6495
6496 * breakpoint.c (build_bpstat_chain): New function, moved from
6497 bpstat_stop_status.
6498 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6499 If no stop chain is passed, call build_bpstat_chain to build it.
6500 * breakpoint.h (build_bpstat_chain): Declare.
6501 (bpstat_stop_status): Move documentation here from breakpoint.c.
6502 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6503 build the stop chain and pass it to skip_inline_frames.
6504 Pass this stop chain to bpstat_stop_status.
6505 * inline-frame.c: Include breakpoint.h.
6506 (stopped_by_user_bp_inline_frame): New function.
6507 (skip_inline_frames): Add parameter `stop_chain'.
6508 Move documention to inline-frame.h.
6509 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6510 whether the frame should be elided.
6511 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6512 Add moved documentation and update for new parameter.
6513
b17992c1
SM
65142018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6515
6516 PR cli/14975
6517 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6518 unittests/format_pieces-selftests.c.
6519 * common/format.h (format_piece) <operator==>: New.
6520 (format_pieces) <operator[]>: Remove.
6521 * common/format.c (format_pieces::format_pieces): Handle \e.
6522 * unittests/format_pieces-selftests.c: New.
6523
58f0c718
TT
65242018-05-17 Tom Tromey <tom@tromey.com>
6525
6526 PR symtab/23010:
6527 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6528 (dw2_instantiate_symtab): Add skip_partial parameter.
6529 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6530 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6531 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6532 (dw2_expand_symtabs_matching_one)
6533 (dw2_find_pc_sect_compunit_symtab)
6534 (dw2_debug_names_lookup_symbol)
6535 (dw2_debug_names_expand_symtabs_for_function): Update.
6536 (init_cutu_and_read_dies): Add skip_partial parameter.
6537 (process_psymtab_comp_unit, build_type_psymtabs_1)
6538 (process_skeletonless_type_unit, load_partial_comp_unit)
6539 (psymtab_to_symtab_1): Update.
6540 (load_full_comp_unit): Add skip_partial parameter.
6541 (process_imported_unit_die, dwarf2_read_addr_index)
6542 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6543 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6544 (read_signatured_type): Update.
6545
3e618834
SM
65462018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6547
6548 * value.c (release_value): Remove unused variable.
6549 (record_latest_value): Likewise.
6550 (access_value_history): Likewise.
6551 (preserve_values): Likewise.
6552
fe10fe31
TT
65532018-05-17 Tom Tromey <tom@tromey.com>
6554
6555 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6556 Initialize.
6557
1d761124
MR
65582018-05-16 Maciej W. Rozycki <macro@mips.com>
6559
6560 PR gdb/22286
6561 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6562 Also handle registers whose width is not a multiple of
6563 PTRACE_TYPE_RET.
6564 (linux_nat_trad_target::store_register): Likewise.
6565
06333fea
TT
65662018-05-16 Tom Tromey <tom@tromey.com>
6567
6568 * gdbcore.h (core_bfd): Redefine.
6569 * corelow.c (core_target::close): Update.
6570 (core_target_open): Update.
6571 * progspace.h (struct program_space) <cbfd>: Now a
6572 gdb_bfd_ref_ptr.
6573
921222e2
TT
65742018-05-16 Tom Tromey <tom@tromey.com>
6575
6576 PR cli/19551:
6577 * symfile-add-flags.h (enum symfile_add_flags)
6578 <SYMFILE_NOT_FILENAME>: New constant.
6579 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6580 objfile name from BFD.
6581 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6582 * minidebug.c (find_separate_debug_file_in_section): Put
6583 ".gnu_debugdata" into BFD's file name.
6584
3acb7083
SM
65852018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6586
6587 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6588 Remove.
6589
561a72d4
TC
65902018-05-15 Tamar Christina <tamar.christina@arm.com>
6591
6592 PR binutils/21446
6593 * aarch64-tdep.c (aarch64_analyze_prologue,
6594 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6595 Indicate not interested in errors.
6596
4e6ff0e1
MR
65972018-05-15 Maciej W. Rozycki <macro@mips.com>
6598
6599 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6600 Supply the MIPS_ZERO_REGNUM register.
6601
ea33cd92
MR
66022018-05-15 Maciej W. Rozycki <macro@mips.com>
6603
6604 * mips-tdep.c (mask_address_var): Make variable static.
6605
2d79090e
TT
66062018-05-14 Tom Tromey <tom@tromey.com>
6607
6608 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6609
cf4912ae
AB
66102018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6611
6612 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6613 FXSAVE_ADDR for the mxcsr register.
6614
67e6f569
MF
66152018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6616
6617 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6618
15244507
PA
66192018-05-11 Pedro Alves <palves@redhat.com>
6620
6621 * corelow.c (core_target) <core_target>: No longer inline.
6622 Initialize m_core_gdbarch, m_core_vec and build the section table
6623 here.
6624 <~core_target>: New.
6625 <core_gdbarch, get_core_register_section>: New methods.
6626 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6627 factored out from ...
6628 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6629 (core_ops): Delete.
6630 (sniff_core_bfd): Add gdbarch parameter.
6631 (core_close): Delete, merged into ...
6632 (core_target::close): ... here. Delete self.
6633 (core_close_cleanup): Delete.
6634 (core_target_open): Allocate a core_target on the heap. Use a
6635 unique_ptr instead of a cleanup. Bits moved into the core_target
6636 ctor. Adjust to use core_target methods instead of globals.
6637 (get_core_register_section): Rename to ...
6638 (core_target::get_core_register_section): ... this and adjust.
6639 (struct get_core_registers_cb_data): New.
6640 (get_core_registers_cb): Use it. Use bool.
6641 (core_target::fetch_registers, core_target::files_info)
6642 (core_target::xfer_partial, core_target::read_description)
6643 (core_target::pid_to, core_target::thread_name): Adjust to
6644 reference class fields instead of globals.
6645 * target.h (struct target_ops_deleter, target_ops_up): New.
6646
451953fa
PA
66472018-05-11 Pedro Alves <palves@redhat.com>
6648
6649 * corefile.c (core_file_command): Move to corelow.c.
6650 * corelow.c (the_core_target): Delete.
6651 (core_file_command): Moved from corefile.c. Check exec_bfd
6652 instead of the_core_target. Use target_detach instead of calling
6653 into the_core_target directly.
6654 (maybe_say_no_core_file_now): New.
6655 (core_target::detach): Use it.
6656 (_initialize_corelow): Remove references to the_core_target.
6657 * gdbcore.h (the_core_target): Delete.
6658
e540a5a2 66592018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 6660 Pedro Alves <palves@redhat.com>
e540a5a2
TT
6661
6662 * corefile.c (core_bfd): Remove.
6663 * gdbcore.h (core_bfd): Now a macro.
6664 * progspace.h (struct program_space) <cbfd>: New field.
6665
633cf254
TT
66662018-05-11 Tom Tromey <tom@tromey.com>
6667
6668 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6669 gdb::def_vector.
6670
1a34f210
TT
66712018-05-10 Tom Tromey <tom@tromey.com>
6672
6673 * configure: Rebuild.
6674 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6675
190852c8
JB
66762018-05-10 Joel Brobecker <brobecker@adacore.com>
6677
6678 PR server/23158:
6679 * regformats/regdat.sh: Adjust script, following the addition
6680 of the new expedite_regs parameter to init_target_desc.
6681
8727de56
OJ
66822018-05-10 Omair Javaid <omair.javaid@linaro.org>
6683
6684 PR gdb/23127
6685 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6686 set_gdbarch_significant_addr_bit.
6687 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6688 set_gdbarch_significant_addr_bit.
6689 * utils.c (address_significant): Update to sign extend addr.
6690
37d9e062
MF
66912018-05-09 Max Filippov <jcmvbkbc@gmail.com>
6692
6693 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6694 (xtensa_linux_init_abi): Limit tdep->num_regs by
6695 tdep->num_nopriv_regs.
6696 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6697 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6698 not initialized.
6699
7402fbca
SM
67002018-05-08 Simon Marchi <simon.marchi@ericsson.com>
6701
6702 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6703
8ee22052
AB
67042018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6705
6706 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6707 (I387_MXCSR_INIT_VAL): New constant.
6708 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6709 buffer if it was supplied by the inferior.
6710 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6711 (i387_xsave_get_clear_bv): New function.
6712 (i387_supply_xsave): Only read x87 control registers from the
6713 xsave buffer if the feature is enabled, and the state will have
6714 been written, otherwise, provide a suitable default.
6715 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6716 including x87 control registers. Update control registers if they
6717 have changed from the default value, and mark features as enabled
6718 as required.
6719 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6720
968ae51b
UW
67212018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6722
6723 * spu-tdep.c (info_spu_event_command): Fix output formatting.
6724
aff689d3
TT
67252018-05-07 Tom Tromey <tom@tromey.com>
6726
6727 * configure: Rebuild.
6728 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6729
ce887586
TT
67302018-05-07 Tom Tromey <tom@tromey.com>
6731
6732 PR tdep/20362:
6733 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6734 bit. Use correct value for VDIV.
6735
85e26832
TT
67362018-05-04 Tom Tromey <tom@tromey.com>
6737
6738 * configure: Rebuild.
6739 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6740
449b1ac7
TT
67412018-05-04 Tom Tromey <tom@tromey.com>
6742
6743 * linux-record.c (record_linux_system_call) <case
6744 RECORD_SYS_RECVFROM>: Add "break".
6745
15c9ffd6
TT
67462018-05-04 Tom Tromey <tom@tromey.com>
6747
6748 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6749 Add missing "break".
6750 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6751 Add missing "break".
6752
e3829d13
TT
67532018-05-04 Tom Tromey <tom@tromey.com>
6754
6755 * rs6000-tdep.c (ppc_process_record_op4)
6756 (ppc_process_record_op63): Add fall-through comment.
6757
da0e1563
TT
67582018-05-04 Tom Tromey <tom@tromey.com>
6759
6760 * i386-tdep.c (i386_process_record): Add fall-through comment.
6761
0019cd49
TT
67622018-05-04 Tom Tromey <tom@tromey.com>
6763
6764 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6765 comment.
6766
565e0eda
TT
67672018-05-04 Tom Tromey <tom@tromey.com>
6768
6769 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6770 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6771 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6772 comment.
6773 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6774 comment.
6775 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6776 comment.
6777
621846f4
TT
67782018-05-04 Tom Tromey <tom@tromey.com>
6779
6780 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6781
86a73007
TT
67822018-05-04 Tom Tromey <tom@tromey.com>
6783
6784 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6785 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6786 * symfile.c (section_is_mapped): Fix fall-through comment.
6787 * stabsread.c (define_symbol, read_member_functions): Fix
6788 fall-through comment.
6789 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6790 comment.
6791 * remote.c (remote_wait_as): Fix fall-through comment.
6792 * p-exp.y (yylex): Fix fall-through comment.
6793 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6794 comment.
6795 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6796 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6797 * jv-exp.y (yylex): Fix fall-through comment.
6798 * go-exp.y (lex_one_token): Fix fall-through comment.
6799 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6800 fall-through comment.
6801 * f-exp.y (yylex): Fix fall-through comment.
6802 * dwarf2read.c (process_die): Fix fall-through comments.
6803 * dbxread.c (process_one_symbol): Fix fall-through comment.
6804 * d-exp.y (lex_one_token): Fix fall-through comment.
6805 * cp-name-parser.y (yylex): Fix fall-through comment.
6806 * coffread.c (coff_symtab_read): Fix fall-through comment.
6807 * c-exp.y (lex_one_token): Fix fall-through comment.
6808 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6809 comment.
6810 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6811 comment.
6812
56bcdbea
TT
68132018-05-04 Tom Tromey <tom@tromey.com>
6814
6815 PR python/22730:
6816 * NEWS: Mention gdb.execute change.
6817 * gdbcmd.h (execute_control_command): Don't declare.
6818 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6819 execute_control_commands, execute_control_commands_to_string.
6820 * cli/cli-script.h (execute_control_commands)
6821 (execute_control_commands_to_string): Declare.
6822 (execute_control_command): Add from_tty parameter.
6823 * cli/cli-script.c (execute_control_commands)
6824 (execute_control_commands_to_string): New functions.
6825 (execute_user_command): Use execute_control_commands.
6826 (execute_control_command_1): Add "from_tty" parameter. Update.
6827 (execute_control_command): Likewise.
6828
a913fffb
TT
68292018-05-04 Tom Tromey <tom@tromey.com>
6830
6831 PR python/22731:
6832 * NEWS: Mention that breakpoint commands are writable.
6833 * python/py-breakpoint.c (bppy_set_commands): New function.
6834 (breakpoint_object_getset) <"commands">: Use it.
6835
60b3cef2
TT
68362018-05-04 Tom Tromey <tom@tromey.com>
6837
6838 * tracepoint.c (actions_command): Update.
6839 * mi/mi-cmd-break.c (mi_command_line_array)
6840 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6841 (mi_read_next_line): Remove.
6842 (mi_cmd_break_commands): Update.
6843 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6844 function_view.
6845 * cli/cli-script.c (get_command_line): Update.
6846 (process_next_line): Use function_view. Constify.
6847 (recurse_read_control_structure, read_command_lines)
6848 (read_command_lines_1): Change argument types to function_view.
6849 (do_define_command, document_command): Update.
6850 * breakpoint.h (check_tracepoint_command): Don't declare.
6851 * breakpoint.c (check_tracepoint_command): Remove.
6852 (commands_command_1, create_tracepoint_from_upload): Update.
6853
7a2c85f2
TT
68542018-05-04 Tom Tromey <tom@tromey.com>
6855
6856 PR gdb/11750:
6857 * cli/cli-script.h (enum command_control_type) <define_control>:
6858 New constant.
6859 * cli/cli-script.c (multi_line_command_p): Handle define_control.
6860 (build_command_line, execute_control_command_1)
6861 (process_next_line): Likewise.
6862 (do_define_command): New function, extracted from define_command.
6863 (define_command): Use it.
6864
295dc222
TT
68652018-05-04 Tom Tromey <tom@tromey.com>
6866
6867 * tracepoint.c (actions_command): Update.
6868 * cli/cli-script.h (read_command_lines): Update.
6869 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6870 (MAX_TMPBUF): Remove define.
6871 (define_command): Use string_printf.
6872 (document_command): Likewise.
6873 * breakpoint.c (commands_command_1): Update.
6874
1263a9d5
TT
68752018-05-04 Tom Tromey <tom@tromey.com>
6876
6877 * top.c (execute_command): Update.
6878 * cli/cli-script.h (print_command_lines): Now varargs.
6879 * cli/cli-script.c (print_command_lines): Now varargs.
6880 (execute_control_command_1) <case while_control, case if_control>:
6881 Update.
6882
12973681
TT
68832018-05-04 Tom Tromey <tom@tromey.com>
6884
6885 * tracepoint.c (all_tracepoint_actions): Rename from
6886 all_tracepoint_actions_and_cleanup. Change return type.
6887 (actions_command, encode_actions_1, encode_actions)
6888 (trace_dump_actions, tdump_command): Update.
6889 * remote.c (remote_download_command_source): Update.
6890 * python/python.c (gdbpy_eval_from_control_command)
6891 (python_command, python_interactive_command): Update.
6892 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6893 * guile/guile.c (guile_command)
6894 (gdbscm_eval_from_control_command, guile_command): Update.
6895 * compile/compile.c (compile_code_command)
6896 (compile_print_command, compile_to_object): Update.
6897 * cli/cli-script.h (struct command_lines_deleter): New.
6898 (counted_command_line): New typedef.
6899 (struct command_line): Add constructor, destructor.
6900 <body_list>: Remove.
6901 <body_list_0, body_list_1>: New members.
6902 (command_line_up): Remove typedef.
6903 (read_command_lines, read_command_lines_1, get_command_line):
6904 Update.
6905 (copy_command_lines): Don't declare.
6906 * cli/cli-script.c (build_command_line): Use "new".
6907 (get_command_line): Return counted_command_line.
6908 (print_command_lines, execute_user_command)
6909 (execute_control_command_1, while_command, if_command): Update.
6910 (realloc_body_list): Remove.
6911 (process_next_line, recurse_read_control_structure): Update.
6912 (read_command_lines, read_command_lines_1): Return counted_command_line.
6913 (free_command_lines): Use "delete".
6914 (copy_command_lines): Remove.
6915 (define_command, document_command, show_user_1): Update.
6916 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
6917 a counted_command_line.
6918 * breakpoint.h (counted_command_line): Remove typedef.
6919 (breakpoint_set_commands): Update.
6920 * breakpoint.c (check_no_tracepoint_commands)
6921 (validate_commands_for_breakpoint): Update.
6922 (breakpoint_set_commands): Change commands to be a
6923 counted_command_line.
6924 (commands_command_1, update_dprintf_command_list)
6925 (create_tracepoint_from_upload): Update.
6926
e2fc72e2
TT
69272018-05-04 Tom Tromey <tom@tromey.com>
6928
6929 * cli/cli-decode.h (cmd_list_element): New constructor.
6930 (~cmd_list_element): New destructor.
6931 (struct cmd_list_element): Add initializers.
6932 * cli/cli-decode.c (do_add_cmd): Use "new".
6933 (delete_cmd): Use "delete".
6934
a3b60e45
JK
69352018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6936 Pedro Alves <palves@redhat.com>
6937
6938 PR breakpoints/19806 and support for PR external/20207.
6939 * NEWS: Mention Aarch64 watchpoint improvements.
6940 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
6941 watchpoints and PR external/20207 watchpoints.
6942 * nat/aarch64-linux-hw-point.c
6943 (kernel_supports_any_contiguous_range): New.
6944 (aarch64_watchpoint_offset): New.
6945 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
6946 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
6947 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
6948 (aarch64_align_watchpoint): New parameters aligned_offset_p and
6949 next_addr_orig_p. Support PR external/20207 watchpoints.
6950 (aarch64_downgrade_regs): New.
6951 (aarch64_dr_state_insert_one_point): New parameters offset and
6952 addr_orig.
6953 (aarch64_dr_state_remove_one_point): Likewise.
6954 (aarch64_handle_breakpoint): Update caller.
6955 (aarch64_handle_aligned_watchpoint): Likewise.
6956 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
6957 aligned_offset.
6958 (aarch64_linux_set_debug_regs): Remove const from state. Call
6959 aarch64_downgrade_regs.
6960 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
6961 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
6962 (DR_CONTROL_MASK): ... this.
6963 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
6964 (unsigned int aarch64_watchpoint_offset): New prototype.
6965 (aarch64_linux_set_debug_regs): Remove const from state.
6966 * utils.c (align_up, align_down): Move to ...
6967 * common/common-utils.c (align_up, align_down): ... here.
6968 * utils.h (align_up, align_down): Move to ...
6969 * common/common-utils.h (align_up, align_down): ... here.
6970
05bc7456
JB
69712018-05-04 Joel Brobecker <brobecker@adacore.com>
6972
6973 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
6974 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
6975 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
6976 Re-implement to match the ABI as summarized in GCC's
6977 gcc/config/sparc/sparc.c. All callers updated.
6978 (sparc32_store_arguments): Remove assertion.
6979
2f433492
TT
69802018-05-04 Tom Tromey <tom@tromey.com>
6981
6982 * printcmd.c: Don't include tui.h.
6983 (decode_format): Use skip_spaces.
6984
9be2ae8f
TT
69852018-05-04 Tom Tromey <tom@tromey.com>
6986
6987 PR gdb/22619:
6988 * printcmd.c (last_count): New global.
6989 (x_command): Use saved count when repeating.
6990
f0b3976b
TT
69912018-05-04 Tom Tromey <tom@tromey.com>
6992
6993 * nto-procfs.c (do_closedir_cleanup): Remove.
6994 (procfs_pidlist): Use gdb_dir_up.
6995 * procfs.c (do_closedir_cleanup): Remove.
6996 (proc_update_threads): Use gdb_dir_up.
6997 * common/filestuff.h (struct gdb_dir_deleter): New.
6998 (gdb_dir_up): New typedef.
6999
862d101a
TT
70002018-05-04 Tom Tromey <tom@tromey.com>
7001
7002 * ada-lang.c (print_mention_exception): Use std::string.
7003
cb7de75e
TT
70042018-05-04 Tom Tromey <tom@tromey.com>
7005
7006 * ada-lang.c (create_excep_cond_exprs): Update.
7007 (ada_exception_catchpoint_cond_string): Use std::string.
7008
49d83361
TT
70092018-05-04 Tom Tromey <tom@tromey.com>
7010
7011 * ada-lang.c (xget_renaming_scope): Return std::string.
7012 (old_renaming_is_invisible): Update.
7013
ade72a34
TT
70142018-05-04 Tom Tromey <tom@tromey.com>
7015
7016 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7017 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7018
2be4d7f0
UW
70192018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7020
7021 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7022
69b6ecb0
TT
70232018-05-04 Tom Tromey <tom@tromey.com>
7024
7025 * remote.c (remote_query_supported_append): Change type.
7026 (remote_check_symbols): Update.
7027
bf27f0e2
PP
70282018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7029
7030 PR gdb/11420
7031 * configure.ac: Prepend libpython.
7032 * python/python-config.py: Likewise.
7033 * configure: Regenerate.
7034
4ea17de8
SM
70352018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7036
7037 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7038
bd732259
PA
70392018-05-03 Pedro Alves <palves@redhat.com>
7040
7041 * s390-linux-nat.c
7042 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7043 override. Write 'true' instead of '1'.
7044 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7045 declaration.
7046
d9f719f1
PA
70472018-05-02 Pedro Alves <palves@redhat.com>
7048
7049 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7050 add_inf_child_target.
7051 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7052 add_inf_child_target.
7053 * aix-thread.c (aix_thread_target_info): New.
7054 (aix_thread_target) <shortname, longname, doc>: Delete.
7055 <info>: New.
7056 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7057 add_inf_child_target.
7058 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7059 add_inf_child_target.
7060 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7061 add_inf_child_target.
7062 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7063 add_inf_child_target.
7064 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7065 add_inf_child_target.
7066 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7067 add_inf_child_target.
7068 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7069 add_inf_child_target.
7070 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7071 add_inf_child_target.
7072 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7073 add_inf_child_target.
7074 * bfd-target.c (target_bfd_target_info): New.
7075 (target_bfd) <shortname, longname, doc>: Delete.
7076 <info>: New.
7077 * bsd-kvm.c (bsd_kvm_target_info): New.
7078 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7079 <info>: New.
7080 (bsd_kvm_target::open): Rename to ...
7081 (bsd_kvm_target_open): ... this. Adjust.
7082 * bsd-uthread.c (bsd_uthread_target_info): New.
7083 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7084 <info>: New.
7085 * corefile.c (core_file_command): Adjust.
7086 * corelow.c (core_target_info): New.
7087 (core_target) <shortname, longname, doc>: Delete.
7088 <info>: New.
7089 (core_target::open): Rename to ...
7090 (core_target_open): ... this. Adjust.
7091 * ctf.c (ctf_target_info): New.
7092 (ctf_target) <shortname, longname, doc>: Delete.
7093 <info>: New.
7094 (ctf_target::open): Rename to ...
7095 (ctf_target_open): ... this.
7096 (_initialize_ctf): Adjust.
7097 * exec.c (exec_target_info): New.
7098 (exec_target) <shortname, longname, doc>: Delete.
7099 <info>: New.
7100 (exec_target::open): Rename to ...
7101 (exec_target_open): ... this.
7102 * gdbcore.h (core_target_open): Declare.
7103 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7104 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7105 add_inf_child_target.
7106 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7107 add_inf_child_target.
7108 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7109 add_inf_child_target.
7110 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7111 add_inf_child_target.
7112 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7113 add_inf_child_target.
7114 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7115 add_inf_child_target.
7116 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7117 add_inf_child_target.
7118 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7119 add_inf_child_target.
7120 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7121 add_inf_child_target.
7122 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7123 add_inf_child_target.
7124 * inf-child.c (inf_child_target_info): New.
7125 (inf_child_target::info): New.
7126 (inf_child_open_target): Remove 'target' parameter. Use
7127 get_native_target instead.
7128 (inf_child_target::open): Delete.
7129 (add_inf_child_target): New.
7130 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7131 Delete.
7132 <info>: New.
7133 (add_inf_child_target): Declare.
7134 (inf_child_open_target): Declare.
7135 * linux-thread-db.c (thread_db_target_info): New.
7136 (thread_db_target) <shortname, longname, doc>: Delete.
7137 <info>: New.
7138 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7139 add_inf_child_target.
7140 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7141 add_inf_child_target.
7142 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7143 add_inf_child_target.
7144 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7145 add_inf_child_target.
7146 * make-target-delegates (print_class): Adjust.
7147 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7148 add_inf_child_target.
7149 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7150 add_inf_child_target.
7151 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7152 add_inf_child_target.
7153 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7154 add_inf_child_target.
7155 * nto-procfs.c (nto_native_target_info): New.
7156 (nto_procfs_target_native) <shortname, longname, doc>:
7157 Delete.
7158 <info>: New.
7159 (nto_procfs_target_info): New.
7160 (nto_procfs_target_procfs) <shortname, longname, doc>:
7161 Delete.
7162 <info>: New.
7163 (init_procfs_targets): Adjust.
7164 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7165 add_inf_child_target.
7166 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7167 add_inf_child_target.
7168 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7169 add_inf_child_target.
7170 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7171 add_inf_child_target.
7172 * ravenscar-thread.c (ravenscar_target_info): New.
7173 (ravenscar_thread_target) <shortname, longname, doc>:
7174 Delete.
7175 <info>: New.
7176 * record-btrace.c (record_btrace_target_info):
7177 (record_btrace_target) <shortname, longname, doc>: Delete.
7178 <info>: New.
7179 (record_btrace_target::open): Rename to ...
7180 (record_btrace_target_open): ... this. Adjust.
7181 * record-full.c (record_longname, record_doc): New.
7182 (record_full_base_target) <shortname, longname, doc>: Delete.
7183 <info>: New.
7184 (record_full_target_info): New.
7185 (record_full_target): <shortname>: Delete.
7186 <info>: New.
7187 (record_full_core_open_1, record_full_open_1): Update comments.
7188 (record_full_base_target::open): Rename to ...
7189 (record_full_open): ... this.
7190 (cmd_record_full_restore): Update.
7191 (_initialize_record_full): Update.
7192 * remote-sim.c (remote_sim_target_info): New.
7193 (gdbsim_target) <shortname, longname, doc>: Delete.
7194 <info>: New.
7195 (gdbsim_target::open): Rename to ...
7196 (gdbsim_target_open): ... this.
7197 (_initialize_remote_sim): Adjust.
7198 * remote.c (remote_doc): New.
7199 (remote_target_info): New.
7200 (remote_target) <shortname, longname, doc>: Delete.
7201 <info>: New.
7202 (extended_remote_target_info): New.
7203 (extended_remote_target) <shortname, longname, doc>: Delete.
7204 <info>: New.
7205 (remote_target::open_1): Make static. Adjust.
7206 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7207 * s390-linux-nat.c (_initialize_s390_nat): Use
7208 add_inf_child_target.
7209 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7210 add_inf_child_target.
7211 * sol-thread.c (thread_db_target_info): New.
7212 (sol_thread_target) <shortname, longname, doc>: Delete.
7213 <info>: New.
7214 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7215 add_inf_child_target.
7216 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7217 add_inf_child_target.
7218 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7219 add_inf_child_target.
7220 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7221 add_inf_child_target.
7222 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7223 add_inf_child_target.
7224 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7225 add_inf_child_target.
7226 * spu-linux-nat.c (_initialize_spu_nat): Use
7227 add_inf_child_target.
7228 * spu-multiarch.c (spu_multiarch_target_info): New.
7229 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7230 <info>: New.
7231 * target-delegates.c: Regenerate.
7232 * target.c: Include <unordered_map>.
7233 (target_ops_p): Delete.
7234 (DEF_VEC_P(target_ops_p)): Delete.
7235 (target_factories): New.
7236 (test_target_info): New.
7237 (test_target_ops::info): New.
7238 (open_target): Adjust to use target_factories.
7239 (add_target_with_completer): Rename to ...
7240 (add_target): ... this. Change prototype. Register target_info
7241 and open callback in target_factories. Register target_info in
7242 command context instead of target_ops.
7243 (add_target): Delete old implementation.
7244 (add_deprecated_target_alias): Change prototype. Adjust.
7245 (the_native_target): New.
7246 (set_native_target, get_native_target): New.
7247 (find_default_run_target): Use the_native_target.
7248 (find_attach_target, find_run_target): Simplify.
7249 (target_ops::open): Delete.
7250 (dummy_target_info): New.
7251 (dummy_target::shortname, dummy_target::longname)
7252 (dummy_target::doc): Delete.
7253 (dummy_target::info): New.
7254 (debug_target::shortname, debug_target::longname)
7255 (debug_target::doc): Delete.
7256 (debug_target::info): New.
7257 * target.h (struct target_info): New.
7258 (target_ops::~target_ops): Add comment.
7259 (target_ops::info): New.
7260 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7261 longer virtual. Implement in terms of target_info.
7262 (set_native_target, get_native_target): Declare.
7263 (target_open_ftype): New.
7264 (add_target, add_target_with_completer)
7265 (add_deprecated_target_alias): Change prototype.
7266 (test_target) <shortname, longname, doc>: Delete.
7267 <info>: New.
7268 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7269 add_inf_child_target.
7270 * tracefile-tfile.c (tfile_target_info): New.
7271 (tfile_target) <shortname, longname, doc>: Delete.
7272 <info>: New.
7273 (tfile_target::open): Rename to ...
7274 (tfile_target_open): ... this.
7275 (_initialize_tracefile_tfile): Adjust.
7276 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7277 add_inf_child_target.
7278 * windows-nat.c (_initialize_windows_nat): Use
7279 add_inf_child_target.
7280 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7281 add_inf_child_target.
7282
135340af
PA
72832018-05-02 Pedro Alves <palves@redhat.com>
7284
7285 * linux-nat.h (linux_nat_target) <low_new_thread,
7286 low_delete_thread, low_new_fork, low_forget_process,
7287 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7288 New virtual methods.
7289 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7290 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7291 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7292 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7293 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7294 Delete.
7295 * linux-fork.c (delete_fork): Adjust to call low method.
7296 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7297 (linux_nat_new_fork, linux_nat_forget_process_hook)
7298 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7299 (linux_nat_status_is_event):
7300 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7301 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7302 to call low method.
7303 (sigtrap_is_event): Rename to ...
7304 (linux_nat_target::low_status_is_event): ... this.
7305 (linux_nat_set_status_is_event): Delete.
7306 (save_stop_reason, linux_nat_wait_1)
7307 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7308 low methods.
7309 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7310 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7311 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7312 (linux_nat_set_prepare_to_resume): Delete.
7313 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7314 low virtual methods.
7315 * amd64-linux-nat.c: Likewise.
7316 * arm-linux-nat.c: Likewise.
7317 * i386-linux-nat.c: Likewise.
7318 * ia64-linux-nat.c: Likewise.
7319 * mips-linux-nat.c: Likewise.
7320 * ppc-linux-nat.c: Likewise.
7321 * s390-linux-nat.c: Likewise.
7322 * sparc64-linux-nat.c: Likewise.
7323 * x86-linux-nat.c: Likewise.
7324 * x86-linux-nat.h: Include "nat/x86-linux.h".
7325 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7326 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7327 Override methods.
7328
57810aa7
PA
73292018-05-02 Pedro Alves <palves@redhat.com>
7330
7331 * target.h (target_ops)
7332 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7333 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7334 stopped_by_watchpoint, have_continuable_watchpoint,
7335 stopped_data_address, watchpoint_addr_within_range,
7336 can_accel_watchpoint_condition, can_run, thread_alive,
7337 has_all_memory, has_memory, has_stack, has_registers,
7338 has_execution, can_async_p, is_async_p, supports_non_stop,
7339 always_non_stop_p, can_execute_reverse, supports_multi_process,
7340 supports_enable_disable_tracepoint,
7341 supports_disable_randomization, supports_string_tracing,
7342 supports_evaluation_of_breakpoint_conditions,
7343 can_run_breakpoint_commands, filesystem_is_local,
7344 can_download_tracepoint, get_trace_state_variable_value,
7345 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7346 record_is_replaying, record_will_replay,
7347 augmented_libraries_svr4_read>: Adjust to return bool.
7348 * aarch64-linux-nat.c: All implementations adjusted.
7349 * aix-thread.c: All implementations adjusted.
7350 * arm-linux-nat.c: All implementations adjusted.
7351 * breakpoint.c: All implementations adjusted.
7352 * bsd-kvm.c: All implementations adjusted.
7353 * bsd-uthread.c: All implementations adjusted.
7354 * corelow.c: All implementations adjusted.
7355 * ctf.c: All implementations adjusted.
7356 * darwin-nat.c: All implementations adjusted.
7357 * darwin-nat.h: All implementations adjusted.
7358 * exec.c: All implementations adjusted.
7359 * fbsd-nat.c: All implementations adjusted.
7360 * fbsd-nat.h: All implementations adjusted.
7361 * gnu-nat.c: All implementations adjusted.
7362 * gnu-nat.h: All implementations adjusted.
7363 * go32-nat.c: All implementations adjusted.
7364 * ia64-linux-nat.c: All implementations adjusted.
7365 * inf-child.c: All implementations adjusted.
7366 * inf-child.h: All implementations adjusted.
7367 * inf-ptrace.c: All implementations adjusted.
7368 * inf-ptrace.h: All implementations adjusted.
7369 * linux-nat.c: All implementations adjusted.
7370 * linux-nat.h: All implementations adjusted.
7371 * mips-linux-nat.c: All implementations adjusted.
7372 * nto-procfs.c: All implementations adjusted.
7373 * ppc-linux-nat.c: All implementations adjusted.
7374 * procfs.c: All implementations adjusted.
7375 * ravenscar-thread.c: All implementations adjusted.
7376 * record-btrace.c: All implementations adjusted.
7377 * record-full.c: All implementations adjusted.
7378 * remote-sim.c: All implementations adjusted.
7379 * remote.c: All implementations adjusted.
7380 * s390-linux-nat.c: All implementations adjusted.
7381 * sol-thread.c: All implementations adjusted.
7382 * spu-multiarch.c: All implementations adjusted.
7383 * target-delegates.c: All implementations adjusted.
7384 * target.c: All implementations adjusted.
7385 * target.h: All implementations adjusted.
7386 * tracefile-tfile.c: All implementations adjusted.
7387 * tracefile.c: All implementations adjusted.
7388 * tracefile.h: All implementations adjusted.
7389 * windows-nat.c: All implementations adjusted.
7390 * x86-linux-nat.h: All implementations adjusted.
7391 * x86-nat.h: All implementations adjusted.
7392
ad6a4e2d
PA
73932018-05-02 Pedro Alves <palves@redhat.com>
7394
7395 * make-target-delegates (scan_target_h): Don't trim lines here.
7396 Replace sequences of tabs and/or whitespace with a single
7397 whitespace.
7398 (top level, parsing methods): Trim each line before processing it
7399 here.
7400
f6ac5f3d
PA
74012018-05-02 Pedro Alves <palves@redhat.com>
7402 John Baldwin <jhb@freebsd.org>
7403
7404 * target.h (enum strata) <debug_stratum>: New.
7405 (struct target_ops) <all delegation methods>: Replace by C++
7406 virtual methods, and drop "to_" prefix. All references updated
7407 throughout.
7408 <to_shortname, to_longname, to_doc, to_data,
7409 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7410 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7411 virtual methods. All references updated throughout.
7412 <can_attach, supports_terminal_ours, can_create_inferior,
7413 get_thread_control_capabilities, attach_no_wait>: New
7414 virtual methods.
7415 <insert_breakpoint, remove_breakpoint>: Now
7416 TARGET_DEFAULT_NORETURN methods.
7417 <info_proc>: Now returns bool.
7418 <to_magic>: Delete.
7419 (OPS_MAGIC): Delete.
7420 (current_target): Delete. All references replaced by references
7421 to ...
7422 (target_stack): ... this. New.
7423 (target_shortname, target_longname): Adjust.
7424 (target_can_run): Now a function declaration.
7425 (default_child_has_all_memory, default_child_has_memory)
7426 (default_child_has_stack, default_child_has_registers)
7427 (default_child_has_execution): Remove target_ops parameter.
7428 (complete_target_initialization): Delete.
7429 (memory_breakpoint_target): New template class.
7430 (test_target_ops): Refactor as a C++ class with virtual methods.
7431 * make-target-delegates (NAME_PART): Tighten.
7432 (POINTER_PART, CP_SYMBOL): New.
7433 (SIMPLE_RETURN_PART): Reimplement.
7434 (VEC_RETURN_PART): Expect less.
7435 (RETURN_PART, VIRTUAL_PART): New.
7436 (METHOD): Adjust to C++ virtual methods.
7437 (scan_target_h): Remove reference to C99.
7438 (dname): Output "target_ops::" prefix.
7439 (write_function_header): Adjust to output a C++ class method.
7440 (write_declaration): New.
7441 (write_delegator): Adjust to output a C++ class method.
7442 (tdname): Output "dummy_target::" prefix.
7443 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7444 method.
7445 (tdefault_names, debug_names): Delete.
7446 (return_types, tdefaults, styles, argtypes_array): New.
7447 (top level): All methods are delegators.
7448 (print_class): New.
7449 (top level): Print dummy_target and debug_target classes.
7450 * target-delegates.c: Regenerate.
7451 * target-debug.h (target_debug_print_enum_info_proc_what)
7452 (target_debug_print_thread_control_capabilities)
7453 (target_debug_print_thread_info_p): New.
7454 * target.c (dummy_target): Delete.
7455 (the_dummy_target, the_debug_target): New.
7456 (target_stack): Now extern.
7457 (set_targetdebug): Push/unpush debug target.
7458 (default_child_has_all_memory, default_child_has_memory)
7459 (default_child_has_stack, default_child_has_registers)
7460 (default_child_has_execution): Remove target_ops parameter.
7461 (complete_target_initialization): Delete.
7462 (add_target_with_completer): No longer call
7463 complete_target_initialization.
7464 (target_supports_terminal_ours): Use regular delegation.
7465 (update_current_target): Delete.
7466 (push_target): No longer check magic number. Don't call
7467 update_current_target.
7468 (unpush_target): Don't call update_current_target.
7469 (target_is_pushed): No longer check magic number.
7470 (target_require_runnable): Skip for all stratums over
7471 process_stratum.
7472 (target_ops::info_proc): New.
7473 (target_info_proc): Use find_target_at and
7474 find_default_run_target.
7475 (target_supports_disable_randomization): Use regular delegation.
7476 (target_get_osdata): Use find_target_at.
7477 (target_ops::open, target_ops::close, target_ops::can_attach)
7478 (target_ops::attach, target_ops::can_create_inferior)
7479 (target_ops::create_inferior, target_ops::can_run)
7480 (target_can_run): New.
7481 (default_fileio_target): Use regular delegation.
7482 (target_ops::fileio_open, target_ops::fileio_pwrite)
7483 (target_ops::fileio_pread, target_ops::fileio_fstat)
7484 (target_ops::fileio_close, target_ops::fileio_unlink)
7485 (target_ops::fileio_readlink): New.
7486 (target_fileio_open_1, target_fileio_unlink)
7487 (target_fileio_readlink): Always call the target method. Handle
7488 FILEIO_ENOSYS.
7489 (return_zero, return_zero_has_execution): Delete.
7490 (init_dummy_target): Delete.
7491 (dummy_target::dummy_target, dummy_target::shortname)
7492 (dummy_target::longname, dummy_target::doc)
7493 (debug_target::debug_target, debug_target::shortname)
7494 (debug_target::longname, debug_target::doc): New.
7495 (target_supports_delete_record): Use regular delegation.
7496 (setup_target_debug): Delete.
7497 (maintenance_print_target_stack): Skip debug_stratum.
7498 (initialize_targets): Instantiate the_dummy_target and
7499 the_debug_target.
7500 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7501 use target_stack.
7502 (target_auxv_search, fprint_target_auxv): Adjust.
7503 (info_auxv_command): Adjust to use target_stack.
7504 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7505 * exceptions.c (print_flush): Handle a NULL target_stack.
7506 * regcache.c (target_ops_no_register): Refactor as class with
7507 virtual methods.
7508
7509 * exec.c (exec_target): New class.
7510 (exec_ops): Now an exec_target.
7511 (exec_open, exec_close_1, exec_get_section_table)
7512 (exec_xfer_partial, exec_files_info, exec_has_memory)
7513 (exec_make_note_section): Refactor as exec_target methods.
7514 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7515 Delete.
7516 (exec_target::find_memory_regions): New.
7517 (_initialize_exec): Don't call init_exec_ops.
7518 * gdbcore.h (exec_file_clear): Delete.
7519
7520 * corefile.c (core_target): Delete.
7521 (core_file_command): Adjust.
7522 * corelow.c (core_target): New class.
7523 (the_core_target): New.
7524 (core_close): Remove target_ops parameter.
7525 (core_close_cleanup): Adjust.
7526 (core_target::close): New.
7527 (core_open, core_detach, get_core_registers, core_files_info)
7528 (core_xfer_partial, core_thread_alive, core_read_description)
7529 (core_pid_to_str, core_thread_name, core_has_memory)
7530 (core_has_stack, core_has_registers, core_info_proc): Rework as
7531 core_target methods.
7532 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7533 (_initialize_corelow): Initialize the_core_target.
7534 * gdbcore.h (core_target): Delete.
7535 (the_core_target): New.
7536
7537 * ctf.c: (ctf_target): New class.
7538 (ctf_ops): Now a ctf_target.
7539 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7540 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7541 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7542 methods.
7543 (init_ctf_ops): Delete.
7544 (_initialize_ctf): Don't call it.
7545 * tracefile-tfile.c (tfile_target): New class.
7546 (tfile_ops): Now a tfile_target.
7547 (tfile_open, tfile_close, tfile_files_info)
7548 (tfile_get_tracepoint_status, tfile_trace_find)
7549 (tfile_fetch_registers, tfile_xfer_partial)
7550 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7551 Refactor as tfile_target methods.
7552 (tfile_xfer_partial_features): Remove target_ops parameter.
7553 (init_tfile_ops): Delete.
7554 (_initialize_tracefile_tfile): Don't call it.
7555 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7556 (tracefile_has_stack, tracefile_has_registers)
7557 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7558 tracefile_target methods.
7559 (init_tracefile_ops): Delete.
7560 (tracefile_target::tracefile_target): New.
7561 * tracefile.h: Include "target.h".
7562 (tracefile_target): New class.
7563 (init_tracefile_ops): Delete.
7564
7565 * spu-multiarch.c (spu_multiarch_target): New class.
7566 (spu_ops): Now a spu_multiarch_target.
7567 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7568 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7569 (spu_search_memory, spu_mourn_inferior): Refactor as
7570 spu_multiarch_target methods.
7571 (init_spu_ops): Delete.
7572 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7573 complete_target_initialization.
7574
7575 * ravenscar-thread.c (ravenscar_thread_target): New class.
7576 (ravenscar_ops): Now a ravenscar_thread_target.
7577 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7578 (ravenscar_thread_alive, ravenscar_pid_to_str)
7579 (ravenscar_fetch_registers, ravenscar_store_registers)
7580 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7581 (ravenscar_stopped_by_hw_breakpoint)
7582 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7583 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7584 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7585 methods.
7586 (init_ravenscar_thread_ops): Delete.
7587 (_initialize_ravenscar): Remove references to
7588 init_ravenscar_thread_ops and complete_target_initialization.
7589
7590 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7591 (bsd_uthread_target): New class.
7592 (bsd_uthread_ops): Now a bsd_uthread_target.
7593 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7594 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7595 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7596 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7597 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7598 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7599 (bsd_uthread_target): Delete function.
7600 (_initialize_bsd_uthread): Remove reference to
7601 complete_target_initialization.
7602
7603 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7604 (target_bfd): ... this new class.
7605 (target_bfd_xfer_partial, target_bfd_get_section_table)
7606 (target_bfd_close): Refactor as target_bfd methods.
7607 (target_bfd::~target_bfd): New.
7608 (target_bfd_reopen): Adjust.
7609 (target_bfd::close): New.
7610
7611 * record-btrace.c (record_btrace_target): New class.
7612 (record_btrace_ops): Now a record_btrace_target.
7613 (record_btrace_open, record_btrace_stop_recording)
7614 (record_btrace_disconnect, record_btrace_close)
7615 (record_btrace_async, record_btrace_info)
7616 (record_btrace_insn_history, record_btrace_insn_history_range)
7617 (record_btrace_insn_history_from, record_btrace_call_history)
7618 (record_btrace_call_history_range)
7619 (record_btrace_call_history_from, record_btrace_record_method)
7620 (record_btrace_is_replaying, record_btrace_will_replay)
7621 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7622 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7623 (record_btrace_store_registers, record_btrace_prepare_to_store)
7624 (record_btrace_to_get_unwinder)
7625 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7626 (record_btrace_commit_resume, record_btrace_wait)
7627 (record_btrace_stop, record_btrace_can_execute_reverse)
7628 (record_btrace_stopped_by_sw_breakpoint)
7629 (record_btrace_supports_stopped_by_sw_breakpoint)
7630 (record_btrace_stopped_by_hw_breakpoint)
7631 (record_btrace_supports_stopped_by_hw_breakpoint)
7632 (record_btrace_update_thread_list, record_btrace_thread_alive)
7633 (record_btrace_goto_begin, record_btrace_goto_end)
7634 (record_btrace_goto, record_btrace_stop_replaying_all)
7635 (record_btrace_execution_direction)
7636 (record_btrace_prepare_to_generate_core)
7637 (record_btrace_done_generating_core): Refactor as
7638 record_btrace_target methods.
7639 (init_record_btrace_ops): Delete.
7640 (_initialize_record_btrace): Remove reference to
7641 init_record_btrace_ops.
7642 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7643 the execution_direction global.
7644 (record_full_base_target, record_full_target)
7645 (record_full_core_target): New classes.
7646 (record_full_ops): Now a record_full_target.
7647 (record_full_core_ops): Now a record_full_core_target.
7648 (record_full_target::detach, record_full_target::disconnect)
7649 (record_full_core_target::disconnect)
7650 (record_full_target::mourn_inferior, record_full_target::kill):
7651 New.
7652 (record_full_open, record_full_close, record_full_async): Refactor
7653 as methods of the record_full_base_target class.
7654 (record_full_resume, record_full_commit_resume): Refactor
7655 as methods of the record_full_target class.
7656 (record_full_wait, record_full_stopped_by_watchpoint)
7657 (record_full_stopped_data_address)
7658 (record_full_stopped_by_sw_breakpoint)
7659 (record_full_supports_stopped_by_sw_breakpoint)
7660 (record_full_stopped_by_hw_breakpoint)
7661 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7662 methods of the record_full_base_target class.
7663 (record_full_store_registers, record_full_xfer_partial)
7664 (record_full_insert_breakpoint, record_full_remove_breakpoint):
7665 Refactor as methods of the record_full_target class.
7666 (record_full_can_execute_reverse, record_full_get_bookmark)
7667 (record_full_goto_bookmark, record_full_execution_direction)
7668 (record_full_record_method, record_full_info, record_full_delete)
7669 (record_full_is_replaying, record_full_will_replay)
7670 (record_full_goto_begin, record_full_goto_end, record_full_goto)
7671 (record_full_stop_replaying): Refactor as methods of the
7672 record_full_base_target class.
7673 (record_full_core_resume, record_full_core_kill)
7674 (record_full_core_fetch_registers)
7675 (record_full_core_prepare_to_store)
7676 (record_full_core_store_registers, record_full_core_xfer_partial)
7677 (record_full_core_insert_breakpoint)
7678 (record_full_core_remove_breakpoint)
7679 (record_full_core_has_execution): Refactor
7680 as methods of the record_full_core_target class.
7681 (record_full_base_target::supports_delete_record): New.
7682 (init_record_full_ops): Delete.
7683 (init_record_full_core_ops): Delete.
7684 (record_full_save): Refactor as method of the
7685 record_full_base_target class.
7686 (_initialize_record_full): Remove references to
7687 init_record_full_ops and init_record_full_core_ops.
7688
7689 * remote.c (remote_target, extended_remote_target): New classes.
7690 (remote_ops): Now a remote_target.
7691 (extended_remote_ops): Now an extended_remote_target.
7692 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7693 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7694 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7695 (remote_pass_signals, remote_set_syscall_catchpoint)
7696 (remote_program_signals, )
7697 (remote_thread_always_alive): Remove target_ops parameter.
7698 (remote_thread_alive, remote_thread_name)
7699 (remote_update_thread_list, remote_threads_extra_info)
7700 (remote_static_tracepoint_marker_at)
7701 (remote_static_tracepoint_markers_by_strid)
7702 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7703 (remote_open): Refactor as methods of remote_target.
7704 (extended_remote_open, extended_remote_detach)
7705 (extended_remote_attach, extended_remote_post_attach):
7706 (extended_remote_supports_disable_randomization)
7707 (extended_remote_create_inferior): : Refactor as method of
7708 extended_remote_target.
7709 (remote_set_permissions, remote_open_1, remote_detach)
7710 (remote_follow_fork, remote_follow_exec, remote_disconnect)
7711 (remote_resume, remote_commit_resume, remote_stop)
7712 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7713 (remote_terminal_ours, remote_wait, remote_fetch_registers)
7714 (remote_prepare_to_store, remote_store_registers)
7715 (remote_flash_erase, remote_flash_done, remote_files_info)
7716 (remote_kill, remote_mourn, remote_insert_breakpoint)
7717 (remote_remove_breakpoint, remote_insert_watchpoint)
7718 (remote_watchpoint_addr_within_range)
7719 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7720 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7721 (remote_supports_stopped_by_sw_breakpoint)
7722 (remote_stopped_by_hw_breakpoint)
7723 (remote_supports_stopped_by_hw_breakpoint)
7724 (remote_stopped_by_watchpoint, remote_stopped_data_address)
7725 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7726 (remote_verify_memory): Refactor as methods of remote_target.
7727 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7728 parameter.
7729 (remote_xfer_partial, remote_get_memory_xfer_limit)
7730 (remote_search_memory, remote_rcmd, remote_memory_map)
7731 (remote_pid_to_str, remote_get_thread_local_address)
7732 (remote_get_tib_address, remote_read_description): Refactor as
7733 methods of remote_target.
7734 (remote_target::fileio_open, remote_target::fileio_pwrite)
7735 (remote_target::fileio_pread, remote_target::fileio_close): New.
7736 (remote_hostio_readlink, remote_hostio_fstat)
7737 (remote_filesystem_is_local, remote_can_execute_reverse)
7738 (remote_supports_non_stop, remote_supports_disable_randomization)
7739 (remote_supports_multi_process, remote_supports_cond_breakpoints)
7740 (remote_supports_enable_disable_tracepoint)
7741 (remote_supports_string_tracing)
7742 (remote_can_run_breakpoint_commands, remote_trace_init)
7743 (remote_download_tracepoint, remote_can_download_tracepoint)
7744 (remote_download_trace_state_variable, remote_enable_tracepoint)
7745 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7746 (remote_trace_start, remote_get_trace_status)
7747 (remote_get_tracepoint_status, remote_trace_stop)
7748 (remote_trace_find, remote_get_trace_state_variable_value)
7749 (remote_save_trace_data, remote_get_raw_trace_data)
7750 (remote_set_disconnected_tracing, remote_core_of_thread)
7751 (remote_set_circular_trace_buffer, remote_traceframe_info)
7752 (remote_get_min_fast_tracepoint_insn_len)
7753 (remote_set_trace_buffer_size, remote_set_trace_notes)
7754 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7755 (remote_disable_btrace, remote_teardown_btrace)
7756 (remote_read_btrace, remote_btrace_conf)
7757 (remote_augmented_libraries_svr4_read, remote_load)
7758 (remote_pid_to_exec_file, remote_can_do_single_step)
7759 (remote_execution_direction, remote_thread_handle_to_thread_info):
7760 Refactor as methods of remote_target.
7761 (init_remote_ops, init_extended_remote_ops): Delete.
7762 (remote_can_async_p, remote_is_async_p, remote_async)
7763 (remote_thread_events, remote_upload_tracepoints)
7764 (remote_upload_trace_state_variables): Refactor as methods of
7765 remote_target.
7766 (_initialize_remote): Remove references to init_remote_ops and
7767 init_extended_remote_ops.
7768
7769 * remote-sim.c (gdbsim_target): New class.
7770 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7771 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7772 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7773 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7774 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7775 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7776 Refactor as methods of gdbsim_target.
7777 (gdbsim_ops): Now a gdbsim_target.
7778 (init_gdbsim_ops): Delete.
7779 (gdbsim_cntrl_c): Adjust.
7780 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7781
7782 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7783 (the_amd64_linux_nat_target): New.
7784 (amd64_linux_fetch_inferior_registers)
7785 (amd64_linux_store_inferior_registers): Refactor as methods of
7786 amd64_linux_nat_target.
7787 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7788 * i386-linux-nat.c: Don't include "linux-nat.h".
7789 (i386_linux_nat_target): New class.
7790 (the_i386_linux_nat_target): New.
7791 (i386_linux_fetch_inferior_registers)
7792 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7793 as methods of i386_linux_nat_target.
7794 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7795 * inf-child.c (inf_child_ops): Delete.
7796 (inf_child_fetch_inferior_registers)
7797 (inf_child_store_inferior_registers): Delete.
7798 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7799 methods of inf_child_target.
7800 (inf_child_target::supports_terminal_ours)
7801 (inf_child_target::terminal_init)
7802 (inf_child_target::terminal_inferior)
7803 (inf_child_target::terminal_ours_for_output)
7804 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7805 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7806 New.
7807 (inf_child_open, inf_child_disconnect, inf_child_close)
7808 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7809 (inf_child_post_startup_inferior, inf_child_can_run)
7810 (inf_child_pid_to_exec_file): Refactor as methods of
7811 inf_child_target.
7812 (inf_child_follow_fork): Delete.
7813 (inf_child_target::can_create_inferior)
7814 (inf_child_target::can_attach): New.
7815 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7816 (inf_child_target::has_stack, inf_child_target::has_registers)
7817 (inf_child_target::has_execution): New.
7818 (inf_child_fileio_open, inf_child_fileio_pwrite)
7819 (inf_child_fileio_pread, inf_child_fileio_fstat)
7820 (inf_child_fileio_close, inf_child_fileio_unlink)
7821 (inf_child_fileio_readlink, inf_child_use_agent)
7822 (inf_child_can_use_agent): Refactor as methods of
7823 inf_child_target.
7824 (return_zero, inf_child_target): Delete.
7825 (inf_child_target::inf_child_target): New.
7826 * inf-child.h: Include "target.h".
7827 (inf_child_target): Delete function prototype.
7828 (inf_child_target): New class.
7829 (inf_child_open_target, inf_child_mourn_inferior)
7830 (inf_child_maybe_unpush_target): Delete.
7831 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7832 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7833 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7834 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7835 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7836 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7837 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7838 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7839 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7840 methods of inf_ptrace_target.
7841 (inf_ptrace_target): Delete function.
7842 * inf-ptrace.h: Include "inf-child.h".
7843 (inf_ptrace_target): Delete function declaration.
7844 (inf_ptrace_target): New class.
7845 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7846 * linux-nat.c (linux_target): New.
7847 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7848 (linux_nat_target::~linux_nat_target): New.
7849 (linux_child_post_attach, linux_child_post_startup_inferior)
7850 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7851 (linux_child_remove_fork_catchpoint)
7852 (linux_child_insert_vfork_catchpoint)
7853 (linux_child_remove_vfork_catchpoint)
7854 (linux_child_insert_exec_catchpoint)
7855 (linux_child_remove_exec_catchpoint)
7856 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7857 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7858 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7859 (linux_nat_stopped_data_address)
7860 (linux_nat_stopped_by_sw_breakpoint)
7861 (linux_nat_supports_stopped_by_sw_breakpoint)
7862 (linux_nat_stopped_by_hw_breakpoint)
7863 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7864 (linux_nat_kill, linux_nat_mourn_inferior)
7865 (linux_nat_xfer_partial, linux_nat_thread_alive)
7866 (linux_nat_update_thread_list, linux_nat_pid_to_str)
7867 (linux_nat_thread_name, linux_child_pid_to_exec_file)
7868 (linux_child_static_tracepoint_markers_by_strid)
7869 (linux_nat_is_async_p, linux_nat_can_async_p)
7870 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7871 (linux_nat_supports_multi_process)
7872 (linux_nat_supports_disable_randomization, linux_nat_async)
7873 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
7874 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
7875 (linux_nat_fileio_open, linux_nat_fileio_readlink)
7876 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
7877 methods of linux_nat_target.
7878 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
7879 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
7880 parameter.
7881 (check_stopped_by_watchpoint): Adjust.
7882 (linux_xfer_partial): Delete.
7883 (linux_target_install_ops, linux_target, linux_nat_add_target):
7884 Delete.
7885 (linux_nat_target::linux_nat_target): New.
7886 * linux-nat.h: Include "inf-ptrace.h".
7887 (linux_nat_target): New.
7888 (linux_target, linux_target_install_ops, linux_nat_add_target):
7889 Delete function declarations.
7890 (linux_target): Declare global.
7891 * linux-thread-db.c (thread_db_target): New.
7892 (thread_db_target::thread_db_target): New.
7893 (thread_db_ops): Delete.
7894 (the_thread_db_target): New.
7895 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
7896 (thread_db_update_thread_list, thread_db_pid_to_str)
7897 (thread_db_extra_thread_info)
7898 (thread_db_thread_handle_to_thread_info)
7899 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
7900 (thread_db_resume): Refactor as methods of thread_db_target.
7901 (init_thread_db_ops): Delete.
7902 (_initialize_thread_db): Remove reference to init_thread_db_ops.
7903 * x86-linux-nat.c: Don't include "linux-nat.h".
7904 (super_post_startup_inferior): Delete.
7905 (x86_linux_nat_target::~x86_linux_nat_target): New.
7906 (x86_linux_child_post_startup_inferior)
7907 (x86_linux_read_description, x86_linux_enable_btrace)
7908 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
7909 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
7910 methods of x86_linux_nat_target.
7911 (x86_linux_create_target): Delete. Bits folded ...
7912 (x86_linux_add_target): ... here. Now takes a linux_nat_target
7913 pointer.
7914 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
7915 (x86_linux_nat_target): New class.
7916 (x86_linux_create_target): Delete.
7917 (x86_linux_add_target): Now takes a linux_nat_target pointer.
7918 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
7919 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
7920 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
7921 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
7922 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
7923 make extern.
7924 (x86_use_watchpoints): Delete.
7925 * x86-nat.h: Include "breakpoint.h" and "target.h".
7926 (x86_use_watchpoints): Delete.
7927 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
7928 (x86_stopped_by_watchpoint, x86_stopped_data_address)
7929 (x86_insert_watchpoint, x86_remove_watchpoint)
7930 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
7931 (x86_stopped_by_hw_breakpoint): New declarations.
7932 (x86_nat_target): New template class.
7933
7934 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
7935 (the_ppc_linux_nat_target): New.
7936 (ppc_linux_fetch_inferior_registers)
7937 (ppc_linux_can_use_hw_breakpoint)
7938 (ppc_linux_region_ok_for_hw_watchpoint)
7939 (ppc_linux_ranged_break_num_registers)
7940 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
7941 (ppc_linux_insert_mask_watchpoint)
7942 (ppc_linux_remove_mask_watchpoint)
7943 (ppc_linux_can_accel_watchpoint_condition)
7944 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
7945 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
7946 (ppc_linux_watchpoint_addr_within_range)
7947 (ppc_linux_masked_watch_num_registers)
7948 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
7949 (ppc_linux_read_description): Refactor as methods of
7950 ppc_linux_nat_target.
7951 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
7952
7953 * procfs.c (procfs_xfer_partial): Delete forward declaration.
7954 (procfs_target): New class.
7955 (the_procfs_target): New.
7956 (procfs_target): Delete function.
7957 (procfs_auxv_parse, procfs_attach, procfs_detach)
7958 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
7959 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
7960 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
7961 (procfs_create_inferior, procfs_update_thread_list)
7962 (procfs_thread_alive, procfs_pid_to_str)
7963 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
7964 (procfs_stopped_data_address, procfs_insert_watchpoint)
7965 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
7966 (proc_find_memory_regions, procfs_info_proc)
7967 (procfs_make_note_section): Refactor as methods of procfs_target.
7968 (_initialize_procfs): Adjust.
7969 * sol-thread.c (sol_thread_target): New class.
7970 (sol_thread_ops): Now a sol_thread_target.
7971 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
7972 (sol_thread_fetch_registers, sol_thread_store_registers)
7973 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
7974 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
7975 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
7976 (init_sol_thread_ops): Delete.
7977 (_initialize_sol_thread): Adjust. Remove references to
7978 init_sol_thread_ops and complete_target_initialization.
7979
7980 * windows-nat.c (windows_nat_target): New class.
7981 (windows_fetch_inferior_registers)
7982 (windows_store_inferior_registers, windows_resume, windows_wait)
7983 (windows_attach, windows_detach, windows_pid_to_exec_file)
7984 (windows_files_info, windows_create_inferior)
7985 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
7986 (windows_close, windows_pid_to_str, windows_xfer_partial)
7987 (windows_get_tib_address, windows_get_ada_task_ptid)
7988 (windows_thread_name, windows_thread_alive): Refactor as
7989 windows_nat_target methods.
7990 (do_initial_windows_stuff): Adjust.
7991 (windows_target): Delete function.
7992 (_initialize_windows_nat): Adjust.
7993
7994 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
7995 (darwin_mourn_inferior, darwin_kill_inferior)
7996 (darwin_create_inferior, darwin_attach, darwin_detach)
7997 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
7998 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
7999 (darwin_supports_multi_process): Refactor as darwin_nat_target
8000 methods.
8001 (darwin_resume_to, darwin_files_info): Delete.
8002 (_initialize_darwin_inferior): Rename to ...
8003 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8004 * darwin-nat.h: Include "inf-child.h".
8005 (darwin_nat_target): New class.
8006 (darwin_complete_target): Delete.
8007 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8008 (darwin_target): New.
8009 (i386_darwin_fetch_inferior_registers)
8010 (i386_darwin_store_inferior_registers): Refactor as methods of
8011 darwin_nat_target.
8012 (darwin_complete_target): Delete, with ...
8013 (_initialize_i386_darwin_nat): ... bits factored out here.
8014
8015 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8016 (the_alpha_linux_nat_target): New.
8017 (alpha_linux_register_u_offset): Refactor as
8018 alpha_linux_nat_target method.
8019 (_initialize_alpha_linux_nat): Adjust.
8020 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8021 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8022 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8023 methods of linux_nat_trad_target.
8024 (linux_trad_target): Delete.
8025 * linux-nat-trad.h (linux_trad_target): Delete function.
8026 (linux_nat_trad_target): New class.
8027 * mips-linux-nat.c (mips_linux_nat_target): New class.
8028 (super_fetch_registers, super_store_registers, super_close):
8029 Delete.
8030 (the_mips_linux_nat_target): New.
8031 (mips64_linux_regsets_fetch_registers)
8032 (mips64_linux_regsets_store_registers)
8033 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8034 (mips_linux_register_u_offset, mips_linux_read_description)
8035 (mips_linux_can_use_hw_breakpoint)
8036 (mips_linux_stopped_by_watchpoint)
8037 (mips_linux_stopped_data_address)
8038 (mips_linux_region_ok_for_hw_watchpoint)
8039 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8040 (mips_linux_close): Refactor as methods of mips_linux_nat.
8041 (_initialize_mips_linux_nat): Adjust to C++ification.
8042
8043 * aix-thread.c (aix_thread_target): New class.
8044 (aix_thread_ops): Now an aix_thread_target.
8045 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8046 (aix_thread_fetch_registers, aix_thread_store_registers)
8047 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8048 (aix_thread_thread_alive, aix_thread_pid_to_str)
8049 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8050 Refactor as methods of aix_thread_target.
8051 (init_aix_thread_ops): Delete.
8052 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8053 and complete_target_initialization.
8054 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8055 (rs6000_nat_target): New class.
8056 (the_rs6000_nat_target): New.
8057 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8058 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8059 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8060 (super_create_inferior): Delete.
8061 (_initialize_rs6000_nat): Adjust to C++ification.
8062
8063 * arm-linux-nat.c (arm_linux_nat_target): New class.
8064 (the_arm_linux_nat_target): New.
8065 (arm_linux_fetch_inferior_registers)
8066 (arm_linux_store_inferior_registers, arm_linux_read_description)
8067 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8068 (arm_linux_remove_hw_breakpoint)
8069 (arm_linux_region_ok_for_hw_watchpoint)
8070 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8071 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8072 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8073 arm_linux_nat_target.
8074 (_initialize_arm_linux_nat): Adjust to C++ification.
8075
8076 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8077 (the_aarch64_linux_nat_target): New.
8078 (aarch64_linux_fetch_inferior_registers)
8079 (aarch64_linux_store_inferior_registers)
8080 (aarch64_linux_child_post_startup_inferior)
8081 (aarch64_linux_read_description)
8082 (aarch64_linux_can_use_hw_breakpoint)
8083 (aarch64_linux_insert_hw_breakpoint)
8084 (aarch64_linux_remove_hw_breakpoint)
8085 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8086 (aarch64_linux_region_ok_for_hw_watchpoint)
8087 (aarch64_linux_stopped_data_address)
8088 (aarch64_linux_stopped_by_watchpoint)
8089 (aarch64_linux_watchpoint_addr_within_range)
8090 (aarch64_linux_can_do_single_step): Refactor as methods of
8091 aarch64_linux_nat_target.
8092 (super_post_startup_inferior): Delete.
8093 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8094
8095 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8096 (the_hppa_linux_nat_target): New.
8097 (hppa_linux_fetch_inferior_registers)
8098 (hppa_linux_store_inferior_registers): Refactor as methods of
8099 hppa_linux_nat_target.
8100 (_initialize_hppa_linux_nat): Adjust to C++ification.
8101
8102 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8103 (the_ia64_linux_nat_target): New.
8104 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8105 (ia64_linux_stopped_data_address)
8106 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8107 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8108 ia64_linux_nat_target methods.
8109 (super_xfer_partial): Delete.
8110 (_initialize_ia64_linux_nat): Adjust to C++ification.
8111
8112 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8113 (the_m32r_linux_nat_target): New.
8114 (m32r_linux_fetch_inferior_registers)
8115 (m32r_linux_store_inferior_registers): Refactor as
8116 m32r_linux_nat_target methods.
8117 (_initialize_m32r_linux_nat): Adjust to C++ification.
8118
8119 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8120 (the_m68k_linux_nat_target): New.
8121 (m68k_linux_fetch_inferior_registers)
8122 (m68k_linux_store_inferior_registers): Refactor as
8123 m68k_linux_nat_target methods.
8124 (_initialize_m68k_linux_nat): Adjust to C++ification.
8125
8126 * s390-linux-nat.c (s390_linux_nat_target): New class.
8127 (the_s390_linux_nat_target): New.
8128 (s390_linux_fetch_inferior_registers)
8129 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8130 (s390_insert_watchpoint, s390_remove_watchpoint)
8131 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8132 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8133 (s390_auxv_parse, s390_read_description): Refactor as methods of
8134 s390_linux_nat_target.
8135 (_initialize_s390_nat): Adjust to C++ification.
8136
8137 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8138 (the_sparc_linux_nat_target): New.
8139 (_initialize_sparc_linux_nat): Adjust to C++ification.
8140 * sparc-nat.c (sparc_fetch_inferior_registers)
8141 (sparc_store_inferior_registers): Remove target_ops parameter.
8142 * sparc-nat.h (sparc_fetch_inferior_registers)
8143 (sparc_store_inferior_registers): Remove target_ops parameter.
8144 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8145 (the_sparc64_linux_nat_target): New.
8146 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8147
8148 * spu-linux-nat.c (spu_linux_nat_target): New class.
8149 (the_spu_linux_nat_target): New.
8150 (spu_child_post_startup_inferior, spu_child_post_attach)
8151 (spu_child_wait, spu_fetch_inferior_registers)
8152 (spu_store_inferior_registers, spu_xfer_partial)
8153 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8154 methods.
8155 (_initialize_spu_nat): Adjust to C++ification.
8156
8157 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8158 (the_tilegx_linux_nat_target): New.
8159 (fetch_inferior_registers, store_inferior_registers):
8160 Refactor as methods.
8161 (_initialize_tile_linux_nat): Adjust to C++ification.
8162
8163 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8164 (the_xtensa_linux_nat_target): New.
8165 (xtensa_linux_fetch_inferior_registers)
8166 (xtensa_linux_store_inferior_registers): Refactor as
8167 xtensa_linux_nat_target methods.
8168 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8169
8170 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8171 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8172 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8173 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8174 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8175 (fbsd_stopped_by_sw_breakpoint)
8176 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8177 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8178 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8179 (fbsd_post_startup_inferior, fbsd_post_attach)
8180 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8181 (fbsd_set_syscall_catchpoint)
8182 (super_xfer_partial, super_resume, super_wait)
8183 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8184 (fbsd_handle_debug_trap): Remove target_ops parameter.
8185 (fbsd_nat_add_target): Delete.
8186 * fbsd-nat.h: Include "inf-ptrace.h".
8187 (fbsd_nat_add_target): Delete.
8188 (USE_SIGTRAP_SIGINFO): Define.
8189 (fbsd_nat_target): New class.
8190
8191 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8192 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8193 (amd64bsd_target): Delete.
8194 * amd64-bsd-nat.h: New file.
8195 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8196 "x86-bsd-nat.h".
8197 (amd64_fbsd_nat_target): New class.
8198 (the_amd64_fbsd_nat_target): New.
8199 (amd64fbsd_read_description): Refactor as method of
8200 amd64_fbsd_nat_target.
8201 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8202 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8203 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8204 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8205 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8206 (i386bsd_target): Delete.
8207 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8208 (i386bsd_fetch_inferior_registers)
8209 (i386bsd_store_inferior_registers): Declare.
8210 (i386_bsd_nat_target): New class.
8211 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8212 (the_i386_fbsd_nat_target): New.
8213 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8214 i386_fbsd_nat_target methods.
8215 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8216 (_initialize_i386fbsd_nat): Adjust to C++ification.
8217 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8218 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8219 (_initialize_x86_bsd_nat): Adjust to C++ification.
8220 * x86-bsd-nat.h: Include "x86-nat.h".
8221 (x86bsd_target): Delete declaration.
8222 (x86bsd_nat_target): New class.
8223
8224 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8225 (the_aarch64_fbsd_nat_target): New.
8226 (aarch64_fbsd_fetch_inferior_registers)
8227 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8228 aarch64_fbsd_nat_target.
8229 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8230 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8231 (the_alpha_bsd_nat_target): New.
8232 (alphabsd_fetch_inferior_registers)
8233 (alphabsd_store_inferior_registers): Refactor as
8234 alpha_bsd_nat_target methods.
8235 (_initialize_alphabsd_nat): Refactor as methods of
8236 alpha_bsd_nat_target.
8237 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8238 (the_amd64_nbsd_nat_target): New.
8239 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8240 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8241 (the_amd64_obsd_nat_target): New.
8242 (_initialize_amd64obsd_nat): Adjust to C++ification.
8243 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8244 (the_arm_fbsd_nat_target): New.
8245 (arm_fbsd_fetch_inferior_registers)
8246 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8247 (_initialize_arm_fbsd_nat): Refactor as methods of
8248 arm_fbsd_nat_target.
8249 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8250 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8251 (the_arm_netbsd_nat_target): New.
8252 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8253 arm_netbsd_nat_target.
8254 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8255 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8256 (the_hppa_nbsd_nat_target): New.
8257 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8258 hppa_nbsd_nat_target methods.
8259 (_initialize_hppanbsd_nat): Adjust to C++ification.
8260 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8261 (the_hppa_obsd_nat_target): New.
8262 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8263 methods of hppa_obsd_nat_target.
8264 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8265 add_target.
8266 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8267 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8268 add_target.
8269 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8270 (_initialize_i386obsd_nat): Use add_target.
8271 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8272 (the_m68k_bsd_nat_target): New.
8273 (m68kbsd_fetch_inferior_registers)
8274 (m68kbsd_store_inferior_registers): Refactor as methods of
8275 m68k_bsd_nat_target.
8276 (_initialize_m68kbsd_nat): Adjust to C++ification.
8277 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8278 (the_mips_fbsd_nat_target): New.
8279 (mips_fbsd_fetch_inferior_registers)
8280 (mips_fbsd_store_inferior_registers): Refactor as methods of
8281 mips_fbsd_nat_target.
8282 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8283 add_target.
8284 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8285 (the_mips_nbsd_nat_target): New.
8286 (mipsnbsd_fetch_inferior_registers)
8287 (mipsnbsd_store_inferior_registers): Refactor as methods of
8288 mips_nbsd_nat_target.
8289 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8290 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8291 (the_mips64_obsd_nat_target): New.
8292 (mips64obsd_fetch_inferior_registers)
8293 (mips64obsd_store_inferior_registers): Refactor as methods of
8294 mips64_obsd_nat_target.
8295 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8296 add_target.
8297 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8298 nbsd_nat_target.
8299 * nbsd-nat.h: Include "inf-ptrace.h".
8300 (nbsd_nat_target): New class.
8301 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8302 (obsd_wait): Refactor as methods of obsd_nat_target.
8303 (obsd_add_target): Delete.
8304 * obsd-nat.h: Include "inf-ptrace.h".
8305 (obsd_nat_target): New class.
8306 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8307 (the_ppc_fbsd_nat_target): New.
8308 (ppcfbsd_fetch_inferior_registers)
8309 (ppcfbsd_store_inferior_registers): Refactor as methods of
8310 ppc_fbsd_nat_target.
8311 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8312 add_target.
8313 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8314 (the_ppc_nbsd_nat_target): New.
8315 (ppcnbsd_fetch_inferior_registers)
8316 (ppcnbsd_store_inferior_registers): Refactor as methods of
8317 ppc_nbsd_nat_target.
8318 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8319 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8320 (the_ppc_obsd_nat_target): New.
8321 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8322 methods of ppc_obsd_nat_target.
8323 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8324 add_target.
8325 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8326 (the_sh_nbsd_nat_target): New.
8327 (shnbsd_fetch_inferior_registers)
8328 (shnbsd_store_inferior_registers): Refactor as methods of
8329 sh_nbsd_nat_target.
8330 (_initialize_shnbsd_nat): Adjust to C++ification.
8331 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8332 (inf_ptrace_xfer_partial): Delete.
8333 (sparc_xfer_partial, sparc_target): Delete.
8334 * sparc-nat.h (sparc_fetch_inferior_registers)
8335 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8336 (sparc_target): Delete function declaration.
8337 (sparc_target): New template class.
8338 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8339 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8340 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8341 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8342 add_target.
8343 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8344 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8345 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8346 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8347 add_target.
8348 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8349 (the_vax_bsd_nat_target): New.
8350 (vaxbsd_fetch_inferior_registers)
8351 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8352 methods.
8353 (_initialize_vaxbsd_nat): Adjust to C++ification.
8354
8355 * bsd-kvm.c (bsd_kvm_target): New class.
8356 (bsd_kvm_ops): Now a bsd_kvm_target.
8357 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8358 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8359 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8360 bsd_kvm_target.
8361 (bsd_kvm_return_one): Delete.
8362 (bsd_kvm_add_target): Adjust to C++ification.
8363
8364 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8365 (nto_procfs_target_procfs): New classes.
8366 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8367 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8368 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8369 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8370 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8371 (procfs_remove_hw_breakpoint, procfs_resume)
8372 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8373 (procfs_kill_inferior, procfs_store_registers)
8374 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8375 as methods of nto_procfs_target.
8376 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8377 (nto_native_ops): Delete.
8378 (procfs_open, procfs_native_open): Delete.
8379 (nto_native_ops): Now an nto_procfs_target_native.
8380 (init_procfs_targets): Adjust to C++ification.
8381 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8382 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8383 Refactor as methods of nto_procfs_target.
8384
8385 * go32-nat.c (go32_nat_target): New class.
8386 (the_go32_nat_target): New.
8387 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8388 (go32_store_registers, go32_xfer_partial, go32_files_info)
8389 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8390 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8391 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8392 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8393 (go32_target): Delete.
8394 (_initialize_go32_nat): Adjust to C++ification.
8395
8396 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8397 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8398 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8399 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8400 gnu_nat_target.
8401 (gnu_target): Delete.
8402 * gnu-nat.h (gnu_target): Delete.
8403 (gnu_nat_target): New class.
8404 * i386-gnu-nat.c (gnu_base_target): New.
8405 (i386_gnu_nat_target): New class.
8406 (the_i386_gnu_nat_target): New.
8407 (_initialize_i386gnu_nat): Adjust to C++ification.
8408
3fffc070
PA
84092018-05-02 Pedro Alves <palves@redhat.com>
8410
8411 * bfd-target.c (target_bfd_xclose): Rename to ...
8412 (target_bfd_close): ... this.
8413 (target_bfd_reopen): Adjust.
8414 * target.c (target_close): Remove references to to_xclose.
8415 * target.h (target_ops::to_xclose): Delete.
8416 (target_ops::to_close): Update comments.
8417
6798487f
PA
84182018-05-02 Pedro Alves <palves@redhat.com>
8419
8420 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8421 "linux-nat.h".
8422 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8423 * inf-ptrace.c (inf_ptrace_register_u_offset)
8424 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8425 (inf_ptrace_store_register, inf_ptrace_store_registers)
8426 (inf_ptrace_trad_target): Move to ...
8427 * linux-nat-trad.c: ... this new file.
8428 * linux-nat-trad.h: New file.
8429 * linux-nat.c (linux_target_install_ops): Make extern.
8430 (linux_trad_target): Delete.
8431 * linux-nat.h (linux_trad_target): Delete declaration.
8432 (linux_target_install_ops): Declare.
8433 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8434 "linux-nat.h".
8435
c1955e17
PA
84362018-05-02 Pedro Alves <palves@redhat.com>
8437
8438 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8439 procfs_target/add_target here.
8440 * procfs.c (procfs_target): Make static.
8441 (_initialize_procfs): Call add_target here.
8442 * procfs.h (struct target_ops): Remove forward declaration.
8443 (procfs_target): Remove declaration.
8444 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8445
b5c8fcb1
PA
84462018-05-02 Pedro Alves <palves@redhat.com>
8447
8448 * procfs.c (procfs_stopped_by_watchpoint)
8449 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8450 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8451 Forward declare.
8452 (procfs_use_watchpoints): Delete, move contents...
8453 (procfs_target): ... here.
8454 * procfs.h (procfs_use_watchpoints): Delete declaration.
8455 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8456 procfs_use_watchpoints.
8457 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8458 procfs_use_watchpoints.
8459
0489430a
TT
84602018-05-02 Tom Tromey <tom@tromey.com>
8461
8462 PR python/20084:
8463 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8464 and var_zuinteger_unlimited.
8465 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8466 and PARAM_ZUINTEGER_UNLIMITED.
8467 (set_parameter_value): Handle var_zuinteger and
8468 var_zuinteger_unlimited.
8469 (add_setshow_generic): Likewise.
8470 (parmpy_init): Likewise.
8471
1632f8ba
DR
84722018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8473
8474 PR rust/23124
8475 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8476 pointer is not null before dereferencing it.
8477
76761936
TT
84782018-04-30 Tom Tromey <tom@tromey.com>
8479
8480 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8481 is_mi_like_p.
8482
2d33446d
TT
84832018-04-30 Tom Tromey <tom@tromey.com>
8484
8485 * breakpoint.c (mention): Remove use of is_mi_like_p.
8486 (print_mention_ranged_breakpoint): Likewise.
8487 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8488 of is_mi_like_p.
8489
f3c6abab
TT
84902018-04-30 Tom Tromey <tom@tromey.com>
8491
8492 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8493
40c03530
TT
84942018-04-30 Tom Tromey <tom@tromey.com>
8495
8496 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8497 (info_spu_event_command): Remove some uses of is_mi_like_p.
8498
2038b7fd
TT
84992018-04-30 Tom Tromey <tom@tromey.com>
8500
8501 * python/py-framefilter.c (py_print_single_arg)
8502 (enumerate_locals, py_print_args, py_print_frame): Remove some
8503 uses of is_mi_like_p.
8504
4904c3c6
TT
85052018-04-30 Tom Tromey <tom@tromey.com>
8506
8507 * ui-out.c: Update.
8508 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8509 * ui-out.h (ui_out::is_mi_like_p): Now const.
8510 (ui_out::do_is_mi_like_p): Now const.
8511 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8512
7c66fffc
TT
85132018-04-30 Tom Tromey <tom@tromey.com>
8514
8515 * varobj.c (varobj_set_visualizer): Use new_reference.
8516 * python/python.c (gdbpy_decode_line): Use new_reference.
8517 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8518 new_reference.
8519
bbfa6f00
TT
85202018-04-30 Tom Tromey <tom@tromey.com>
8521
8522 * varobj.c (install_new_value): Use new_reference.
8523 * value.h (value_incref): Return void. Swap intro comment with
8524 value_decref.
8525 * value.c (set_value_parent): Use new_reference.
8526 (value_incref): Return void. Update intro comment.
8527 (release_value): Use new_reference.
8528 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8529
1831a9f9
TT
85302018-04-30 Tom Tromey <tom@tromey.com>
8531
8532 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8533 * gdb_bfd.h (new_bfd_ref): Remove.
8534 (gdb_bfd_open): Update comment.
8535 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8536 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8537 (gdb_bfd_fdopenr): Use new_reference.
8538 * exec.c (exec_file_attach): Use new_reference.
8539
7c1b5f3d
TT
85402018-04-30 Tom Tromey <tom@tromey.com>
8541
8542 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8543 method.
8544
e11fb955
TT
85452018-04-30 Tom Tromey <tom@tromey.com>
8546
8547 * jit.c (jit_read_code_entry): Use type_align.
8548 * i386-tdep.c (i386_gdbarch_init): Don't call
8549 set_gdbarch_long_long_align_bit.
8550 * gdbarch.sh: Remove long_long_align_bit.
8551 * gdbarch.c, gdbarch.h: Rebuild.
8552 * arc-tdep.c (arc_type_align): New function.
8553 (arc_gdbarch_init): Use arc_type_align. Don't call
8554 set_gdbarch_long_long_align_bit.
8555
2fff16dd
TT
85562018-04-30 Tom Tromey <tom@tromey.com>
8557
8558 * rust-lang.c (rust_type_alignment): Remove.
8559 (rust_composite_type): Use type_align.
8560
6d7bb824
TT
85612018-04-30 Tom Tromey <tom@tromey.com>
8562
8563 * NEWS: Mention Type.align.
8564 * python/py-type.c (typy_get_alignof): New function.
8565 (type_object_getset): Add "alignof".
8566
007e1530
TT
85672018-04-30 Tom Tromey <tom@tromey.com>
8568
8569 PR exp/17095:
8570 * NEWS: Update.
8571 * std-operator.def (UNOP_ALIGNOF): New operator.
8572 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8573 New.
8574 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8575 * c-lang.c (c_op_print_tab): Add alignof.
8576 * c-exp.y (ALIGNOF): New token.
8577 (exp): Add "ALIGNOF" production.
8578 (ident_tokens): Add _Alignof and alignof.
8579
2b4424c3
TT
85802018-04-30 Tom Tromey <tom@tromey.com>
8581
8582 * i386-tdep.c (i386_type_align): New function.
8583 (i386_gdbarch_init): Update.
8584 * gdbarch.sh (type_align): New method.
8585 * gdbarch.c, gdbarch.h: Rebuild.
8586 * arch-utils.h (default_type_align): Declare.
8587 * arch-utils.c (default_type_align): New function.
8588 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8589 (struct type) <align_log2>: New field.
8590 <instance_flags>: Now a bitfield.
8591 (TYPE_RAW_ALIGN): New macro.
8592 (type_align, type_raw_align, set_type_align): Declare.
8593 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8594 functions.
8595 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8596 (get_alignment, maybe_set_alignment): New functions.
8597 (read_structure_type, read_enumeration_type, read_array_type)
8598 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8599 (read_subrange_type, read_base_type): Set type alignment.
8600
d33bc52e
SM
86012018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8602
8603 * dwarf2read.c (read_index_from_section): Use bool.
8604
e28b63a9
FG
86052018-04-29 Fabian Groffen <grobian@gentoo.org>
8606
8607 PR gdb/22950
8608 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8609 with #ifdef.
8610
cd8c76e4
JR
86112018-04-29 John Reiser <jreiser@BitWagon.com>
8612
8613 PR build/22873
8614 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8615 last step, and do it atomically.
8616
476d250e
AO
86172018-04-27 Alexandre Oliva <aoliva@redhat.com>
8618
8619 * compile/compile-c-types.c (convert_int, convert_float):
8620 Update for C FE v1.
8621
6873858b
TT
86222018-04-27 Tom Tromey <tom@tromey.com>
8623
8624 PR rust/22545:
8625 * rust-lang.c (rust_inclusive_range_type_p): New function.
8626 (rust_range): Handle inclusive ranges.
8627 (rust_compute_range): Likewise.
8628 * rust-exp.y (struct rust_op) <inclusive>: New field.
8629 (DOTDOTEQ): New constant.
8630 (range_expr): Add "..=" productions.
8631 (operator_tokens): Add "..=" token.
8632 (ast_range): Add "inclusive" parameter.
8633 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8634 ranges.
8635 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8636 bounds values.
8637 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8638 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8639 Update comments.
8640 * expprint.c (print_subexp_standard): Handle new bounds values.
8641 (dump_subexp_body_standard): Likewise.
8642
632e107b
TT
86432018-04-27 Tom Tromey <tom@tromey.com>
8644
8645 * configure: Rebuild.
8646 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8647 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8648 "OVERRIDE".
8649 (class symbol_needs_eval_context): Likewise.
8650 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8651 (mock_mapped_index::symbol_name_at): Use "override". Remove
8652 "virtual".
8653 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8654 "override".
8655 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8656 * aarch64-tdep.c (instruction_reader::read): Use "override".
8657 (instruction_reader_test::read): Likewise.
8658 * arm-tdep.c (instruction_reader::read): Use "override".
8659 (instruction_reader_thumb::read): Likewise.
8660
b75abf5b
AK
86612018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
8662
8663 PR remote/9665
8664 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8665 instead of remote_send.
8666 (remote_send): Remove.
8667
79188d8d
PA
86682018-04-26 Pedro Alves <palves@redhat.com>
8669
8670 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8671 find_function_start_sal instead of find_pc_line.
8672
f50776aa
PA
86732018-04-26 Pedro Alves <palves@redhat.com>
8674
8675 * breakpoint.c (set_breakpoint_location_function): Handle
8676 mst_data_gnu_ifunc.
8677 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8678 * elfread.c (elf_symtab_read): Give data symbols with
8679 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8680 (elf_rel_plt_read): Update comment.
8681 * linespec.c (convert_linespec_to_sals): Handle
8682 mst_data_gnu_ifunc.
8683 (minsym_found): Handle mst_data_gnu_ifunc.
8684 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8685 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8686 * parse.c (find_minsym_type_and_address): Handle
8687 mst_data_gnu_ifunc.
8688 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8689 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8690 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8691 comment.
8692 <mst_data_gnu_ifunc>: New enumerator.
8693
20944a6e
PA
86942018-04-26 Pedro Alves <palves@redhat.com>
8695
8696 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8697 (lookup_minimal_symbol_by_pc_section): ... this. Replace
8698 'want_trampoline' parameter by a lookup_msym_prefer parameter.
8699 Handle it.
8700 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8701 (lookup_minimal_symbol_by_pc): Adjust.
8702 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8703 (lookup_solib_trampoline_symbol_by_pc): Adjust.
8704 * minsyms.h (lookup_msym_prefer): New enum.
8705 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8706 parameter by a lookup_msym_prefer parameter.
8707
1adeb822
PA
87082018-04-26 Pedro Alves <palves@redhat.com>
8709
8710 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8711 ends in "@plt" instead of looking at the symbol's section.
8712
a0aca7b0
PA
87132018-04-26 Pedro Alves <palves@redhat.com>
8714
8715 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
8716 all references.
8717 (find_pc_partial_function_gnu_ifunc): Rename to ...
8718 (find_pc_partial_function): ... this, and remove references to
8719 'is_gnu_ifunc_p'.
8720 (find_pc_partial_function): Delete old implementation.
8721 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8722
76af0f26
PA
87232018-04-26 Pedro Alves <palves@redhat.com>
8724
8725 * linespec.c (struct bound_minimal_symbol_search_key): New.
8726 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
8727 skip first line if we found a GNU ifunc minimal symbol by name.
8728 (compare_msymbols): Change parameters to work with a destructured
8729 lhs minsym.
8730 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8731 functions.
8732
3467ec66
PA
87332018-04-26 Pedro Alves <palves@redhat.com>
8734
8735 * breakpoint.c (set_breakpoint_location_function): Don't resolve
8736 ifunc targets here. Instead, if we have an ifunc minsym, use its
8737 address/name.
8738 (add_location_to_breakpoint): Store the minsym and the objfile in
8739 the breakpoint location.
8740 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8741 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8742 Record the minsym in the sal.
8743 * symtab.h (symtab_and_line) <msymbol>: New field.
8744
28f4fa4d
PA
87452018-04-26 Pedro Alves <palves@redhat.com>
8746
8747 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8748 unless we actually resolved the ifunc.
8749
ca31ab1d
PA
87502018-04-26 Pedro Alves <palves@redhat.com>
8751
8752 * c-exp.y (variable production): Prefer ifunc minsyms over
8753 regular function symbols.
8754 * symtab.c (find_gnu_ifunc): New function.
8755 * minsyms.h (lookup_msym_prefer): New enum.
8756 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8757 parameter by a lookup_msym_prefer parameter.
8758 * symtab.h (find_gnu_ifunc): New declaration.
8759
8388016d
PA
87602018-04-26 Pedro Alves <palves@redhat.com>
8761
8762 * blockframe.c (find_gnu_ifunc_target_type): New function.
8763 (find_function_type): New.
8764 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8765 return a value with a memory address.
8766 (eval_call): For calls to GNU ifunc functions, try to find the
8767 type of the target function from the type that the resolver
8768 returns.
8769 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8770 symbols.
8771 * infcall.c (find_function_return_type): Delete.
8772 (find_function_addr): Add 'function_type' parameter. For calls to
8773 GNU ifunc functions, try to find the type of the target function
8774 from the type that the resolver returns, and return it via
8775 FUNCTION_TYPE.
8776 (call_function_by_hand_dummy): Adjust to use the function type
8777 returned by find_function_addr.
8778 (find_function_addr): Add 'function_type' parameter and move
8779 description here.
8780 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8781 declarations.
8782
a376e11d
PA
87832018-04-26 Pedro Alves <palves@redhat.com>
8784
8785 * c-exp.y (variable production): Skip finding an alias for ifunc
8786 symbols.
8787
02e169e2
PA
87882018-04-26 Pedro Alves <palves@redhat.com>
8789
8790 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8791
249b5733
PA
87922018-04-25 Pedro Alves <palves@redhat.com>
8793
8794 * infcmd.c (kill_command): Print the pid as string, not the whole
8795 thread's ptid. Add comment. s/has been killed/killed/ in output
8796 message.
8797 * remote.c (remote_detach_1): Print the pid as string, not the
8798 whole thread's ptid.
8799
f67c0c91
SDJ
88002018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8801 Sergio Durigan Junior <sergiodj@redhat.com>
8802 Pedro Alves <palves@redhat.com>
8803
8804 * infcmd.c (kill_command): Print message when inferior has
8805 been killed.
8806 * inferior.c (print_inferior_events): Remove 'static'. Set as
8807 '1'.
8808 (add_inferior): Improve message printed when
8809 'print_inferior_events' is on.
8810 (exit_inferior): Remove message printed when
8811 'print_inferior_events' is on.
8812 (detach_inferior): Improve message printed when
8813 'print_inferior_events' is on.
8814 (initialize_inferiors): Use 'add_inferior_silent' to set
8815 'current_inferior_'.
8816 * inferior.h (print_inferior_events): Declare here as
8817 'extern'.
8818 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8819 '[Detaching...]' messages when 'print_inferior_events' is on.
8820 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8821 as prefix/suffix for messages. Remove periods. Fix erroneous
8822 'Detaching after fork from child...', replace it by '... from
8823 parent...'.
8824 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8825 prefix/suffix when printing 'Detaching...' messages. Print
8826 them when 'print_inferior_events' is on.
8827 * remote.c (remote_detach_1): Print message when detaching
8828 from inferior and '!is_fork_parent'.
8829
e427af18
TT
88302018-04-24 Tom Tromey <tom@tromey.com>
8831
8832 * cli-out.h: Reindent.
8833
05b1d8d6
TT
88342018-04-24 Tom Tromey <tom@tromey.com>
8835
8836 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8837 (cli_ui_out::do_field_string): Use fputs_filtered.
8838 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8839
a95c7dab
TT
88402018-04-23 Tom Tromey <tom@tromey.com>
8841
8842 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8843 gdb::unique_xmalloc_ptr.
8844
458412c3
TT
88452018-04-23 Tom Tromey <tom@tromey.com>
8846
8847 * configure: Rebuild.
8848
db86b02b
RS
88492018-04-22 Rajendra SY <rajendra.sy@gmail.com>
8850
8851 PR gdb/23095
8852 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8853 prepare_for_testing. Set normal_bp to r_debug_state if target
8854 is bsd.
8855
00aecdcf
PA
88562018-04-21 Pedro Alves <palves@redhat.com>
8857 Rajendra SY <rajendra.sy@gmail.com>
8858
8859 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8860 * remote.c (extended_remote_attach): In all-stop mode, mark the
8861 thread as executing.
8862
224608c3
PW
88632018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8864
8865 * thread.c (thread_apply_all_command): Fix comment.
8866 (thread_command): Fix comment.
8867
3b74854b
AH
88682018-04-10 Alan Hayward <alan.hayward@arm.com>
8869
8870 * common/tdesc.h (tdesc_create_feature): Remove xml filename
8871 parameter.
8872 * features/aarch64-core.c (create_feature_aarch64_core):
8873 Regenerate.
8874 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
8875 Likewise.
8876 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
8877 Likewise.
8878 * features/i386/32bit-avx512.c
8879 (create_feature_i386_32bit_avx512): Likewise.
8880 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
8881 Likewise.
8882 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
8883 Likewise.
8884 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
8885 Likewise.
8886 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
8887 Likewise.
8888 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
8889 Likewise.
8890 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
8891 Likewise.
8892 * features/i386/64bit-avx512.c
8893 (create_feature_i386_64bit_avx512): Likewise.
8894 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
8895 Likewise.
8896 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
8897 Likewise.
8898 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
8899 Likewise.
8900 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
8901 Likewise.
8902 * features/i386/64bit-segments.c
8903 (create_feature_i386_64bit_segments): Likewise.
8904 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
8905 Likewise.
8906 * features/i386/x32-core.c
8907 (create_feature_i386_x32_core): Likewise.
8908 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
8909 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
8910 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
8911 * target-descriptions.c: In generated code, don't pass xml
8912 filename.
8913
e98577a9
AH
89142018-04-18 Alan Hayward <alan.hayward@arm.com>
8915
8916 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
8917 (print_xml_feature::visit_post): Likewise.
8918 (print_xml_feature::visit): Likewise.
8919 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
8920 (print_xml_feature): Add new class.
8921 * regformats/regdat.sh: Null xmltarget on feature targets.
8922 * target-descriptions.c (struct target_desc): Add xmltarget.
8923 (maintenance_check_tdesc_xml_convert): Add unittest function.
8924 (tdesc_get_features_xml): Add function to get xml.
8925 (maintenance_check_xml_descriptions): Test xml generation.
8926 * xml-tdesc.c (string_read_description_xml): Add function.
8927 * xml-tdesc.h (string_read_description_xml): Add declaration.
8928
ad7fc756
AH
89292018-04-18 Alan Hayward <alan.hayward@arm.com>
8930
8931 * features/Makefile: Add feature marker to targets with new style
8932 target descriptions.
8933 * regformats/aarch64.dat: Regenerate.
8934 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
8935 * regformats/i386/amd64-avx-linux.dat: Likewise.
8936 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
8937 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
8938 * regformats/i386/amd64-linux.dat: Likewise.
8939 * regformats/i386/amd64-mpx-linux.dat: Likewise.
8940 * regformats/i386/amd64.dat: Likewise.
8941 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
8942 * regformats/i386/i386-avx-linux.dat: Likewise.
8943 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
8944 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
8945 * regformats/i386/i386-linux.dat: Likewise.
8946 * regformats/i386/i386-mmx-linux.dat: Likewise.
8947 * regformats/i386/i386-mpx-linux.dat: Likewise.
8948 * regformats/i386/i386.dat: Likewise.
8949 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
8950 * regformats/i386/x32-avx-linux.dat: Likewise.
8951 * regformats/i386/x32-linux.dat: Likewise.
8952 * regformats/tic6x-c62x-linux.dat: Likewise.
8953 * regformats/tic6x-c64x-linux.dat: Likewise.
8954 * regformats/tic6x-c64xp-linux.dat: Likewise.
8955 * regformats/regdat.sh: Parse feature marker.
8956
d278f585
AH
89572018-04-18 Alan Hayward <alan.hayward@arm.com>
8958
8959 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
8960 (tdesc_osabi_name): Likewise.
8961 * target-descriptions.c (tdesc_architecture_name): Add new
8962 function.
8963 (tdesc_osabi_name): Likewise.
8964
eee8a18d
AH
89652018-04-18 Alan Hayward <alan.hayward@arm.com>
8966
8967 * common/tdesc.c (tdesc_predefined_type): Move to here.
8968 (tdesc_named_type): Likewise.
8969 (tdesc_create_vector): Likewise.
8970 (tdesc_create_struct): Likewise.
8971 (tdesc_set_struct_size): Likewise.
8972 (tdesc_create_union): Likewise.
8973 (tdesc_create_flags): Likewise.
8974 (tdesc_create_enum): Likewise.
8975 (tdesc_add_field): Likewise.
8976 (tdesc_add_typed_bitfield): Likewise.
8977 (tdesc_add_bitfield): Likewise.
8978 (tdesc_add_flag): Likewise.
8979 (tdesc_add_enum_value): Likewise.
8980 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
8981 (struct tdesc_type_vector): Likewise.
8982 (struct tdesc_type_field): Likewise.
8983 (struct tdesc_type_with_fields): Likewise.
8984 (tdesc_create_enum): Add declaration.
8985 (tdesc_add_typed_bitfield): Likewise.
8986 (tdesc_add_enum_value): Likewise.
8987 * target-descriptions.c (tdesc_type_field): Move from here.
8988 (tdesc_type_builtin): Likewise.
8989 (tdesc_type_vector): Likewise.
8990 (tdesc_type_with_fields): Likewise.
8991 (tdesc_predefined_types): Likewise.
8992 (tdesc_named_type): Likewise.
8993 (tdesc_create_vector): Likewise.
8994 (tdesc_create_struct): Likewise.
8995 (tdesc_set_struct_size): Likewise.
8996 (tdesc_create_union): Likewise.
8997 (tdesc_create_flags): Likewise.
8998 (tdesc_create_enum): Likewise.
8999 (tdesc_add_field): Likewise.
9000 (tdesc_add_typed_bitfield): Likewise.
9001 (tdesc_add_bitfield): Likewise.
9002 (tdesc_add_flag): Likewise.
9003 (tdesc_add_enum_value): Likewise.
9004 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9005 (tdesc_add_typed_bitfield): Likewise.
9006 (tdesc_add_enum_value): Likewise.
9007
82ec9bc7
AH
90082018-04-18 Alan Hayward <alan.hayward@arm.com>
9009
9010 * common/tdesc.c (tdesc_feature::accept): Move to here.
9011 (tdesc_feature::operator==): Likewise.
9012 (tdesc_create_reg): Likewise.
9013 * common/tdesc.h (tdesc_type_kind): Likewise.
9014 (struct tdesc_type): Likewise.
9015 (struct tdesc_feature): Likewise.
9016 * regformats/regdat.sh: Create a feature.
9017 * target-descriptions.c (tdesc_type_kind): Move from here.
9018 (tdesc_type): Likewise.
9019 (tdesc_type_up): Likewise.
9020 (tdesc_feature): Likewise.
9021 (tdesc_create_reg): Likewise.
9022
ea3e7d71
AH
90232018-04-18 Alan Hayward <alan.hayward@arm.com>
9024
9025 * Makefile.in: Add arch/tdesc.c
9026 * common/tdesc.c: New file.
9027 * common/tdesc.h (tdesc_element_visitor): Move to here.
9028 (tdesc_element): Likewise.
9029 (tdesc_reg): Likewise.
9030 (tdesc_reg_up): Likewise.
9031 * regformats/regdef.h (reg): Add offset to constructors.
9032 * target-descriptions.c (tdesc_element_visitor): Move from here.
9033 (tdesc_element): Likewise.
9034 (tdesc_reg): Likewise.
9035 (tdesc_reg_up): Likewise.
9036
bedda9ac
TT
90372018-04-17 Tom Tromey <tom@tromey.com>
9038
9039 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9040 discriminant field.
9041
a037790e
TT
90422018-04-17 Tom Tromey <tom@tromey.com>
9043
9044 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9045
c7dcbf88
AA
90462018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9047
9048 * symtab.c (print_symbol_info): Skip printing filename and line
9049 number when `last' is NULL.
9050 (symtab_symbol_info): Use empty string instead of NULL for first
9051 invocation of print_symbol_info.
9052 (rbreak_command): Pass NULL to `last' parameter of
9053 print_symbol_info.
9054
07d28c77
SM
90552018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9056
9057 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9058 instead of nullptr.
9059
8a3de5e1
PA
90602018-04-16 Pedro Alves <palves@redhat.com>
9061
9062 * MAINTAINERS (sh): Remove.
9063 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9064 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9065 (ALLDEPFILES): Remove sh64-tdep.c.
9066 * NEWS: Mentions that support for SH-5/SH64 is removed.
9067 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9068 (sh*-*-openbsd*): Ditto.
9069 (sh64-*-elf*): Remove.
9070 (sh*): Remove.
9071 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9072 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9073 * sh-tdep.c: No longer include "sh64-tdep.h".
9074 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9075 * sh64-tdep.c, sh64-tdep.h: Remove files.
9076
a2a79012
PA
90772018-04-16 Pedro Alves <palves@redhat.com>
9078
9079 * MAINTAINERS: Remove m88k.
9080 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9081 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9082 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9083 * NEWS: Mention that support for m88k was removed.
9084 * configure.host (m88*-*-*): Remove support.
9085 * configure.nat (m88k-*-*): Remove support.
9086 * configure.tgt (m88*-*-openbsd*): Remove.
9087 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9088
eda4efb1
SM
90892018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9090
9091 * configure.tgt (x86_tobjs): New variable.
9092 (amd64_tobjs, i386_tobjs): Use it.
9093
b744723f
AA
90942018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9095
9096 * symtab.c (print_symbol_info): Precede the symbol definition by
9097 the line number when available.
9098 * NEWS: Advertise this enhancement.
9099
4a4495d6
MM
91002018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9101
9102 * NEWS (New options): announce set/show record btrace cpu.
9103 * btrace.c: Include record-btrace.h.
9104 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9105 the vendor is unknown.
9106 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9107 Maybe overwrite the btrace configuration's cpu.
9108 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9109 (btrace_fetch): Add cpu parameter. Update callers.
9110 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9111 Maybe overwrite the btrace configuration's cpu. Skip enabling
9112 errata workarounds if the vendor is unknown.
9113 * python/py-record-btrace.c: Include record-btrace.h.
9114 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9115 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9116 * record-btrace.c (record_btrace_cpu_state_kind): New.
9117 (record_btrace_cpu): New.
9118 (set_record_btrace_cpu_cmdlist): New.
9119 (record_btrace_get_cpu): New.
9120 (require_btrace_thread, record_btrace_info)
9121 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9122 (cmd_set_record_btrace_cpu_none): New.
9123 (cmd_set_record_btrace_cpu_auto): New.
9124 (cmd_set_record_btrace_cpu): New.
9125 (cmd_show_record_btrace_cpu): New.
9126 (_initialize_record_btrace): Initialize set/show record btrace cpu
9127 commands.
9128 * record-btrace.h (record_btrace_get_cpu): New.
9129
69f90c75
MM
91302018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9131
9132 * record.c (set_record_command): Fix typo in message.
9133
b85310e1
MM
91342018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9135
9136 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9137
1d509aa6
MM
91382018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9139
9140 * infrun.c (process_event_stop_test): Call
9141 gdbarch_in_indirect_branch_thunk.
9142 * gdbarch.sh (in_indirect_branch_thunk): New.
9143 * gdbarch.c: Regenerated.
9144 * gdbarch.h: Regenerated.
9145 * x86-tdep.h: New.
9146 * x86-tdep.c: New.
9147 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9148 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9149 (ALLDEPFILES): Add x86-tdep.c.
9150 * arch-utils.h (default_in_indirect_branch_thunk): New.
9151 * arch-utils.c (default_in_indirect_branch_thunk): New.
9152 * i386-tdep: Include x86-tdep.h.
9153 (i386_in_indirect_branch_thunk): New.
9154 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9155 function.
9156 * amd64-tdep: Include x86-tdep.h.
9157 (amd64_in_indirect_branch_thunk): New.
9158 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9159
b4be9bfd
JK
91602018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9161
9162 PR gdb/23053
9163 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9164 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9165 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9166 regression.
9167
53d7df28
TT
91682018-04-12 Tom Tromey <tom@tromey.com>
9169
9170 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9171 (rust_evaluate_subexp): Likewise.
9172
70b33f19
PA
91732018-04-12 Pedro Alves <palves@redhat.com>
9174
9175 * procfs.c (procfs_detach): Make forward declaration's prototype
9176 match definition's protototype.
9177 (proc_get_LDT_entry): Remove stale do_cleanups call.
9178
436411b1
PA
91792018-04-12 Pedro Alves <palves@redhat.com>
9180
9181 * target.h (target_ops::to_has_exited): Delete.
9182 (target_has_exited): Delete.
9183 * target-delegates.c: Regenerate.
9184
20db9c52
PA
91852018-04-11 Pedro Alves <palves@redhat.com>
9186
9187 * target.c (fileio_fh_t::t): Add comment.
9188 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9189 (target_fileio_close): Handle a NULL target.
9190 (invalidate_fileio_fh): New.
9191 (target_close): Call it.
9192 * remote.c (remote_hostio_send_command): No longer check whether
9193 remote_desc is open.
9194
5ff79300
PA
91952018-04-11 Pedro Alves <palves@redhat.com>
9196
9197 * target.c (fileio_fh_t): Make it a named struct instead of a
9198 typedef.
9199 (fileio_fh_t::is_closed): New method.
9200 (DEF_VEC_O (fileio_fh_t)): Remove.
9201 (fileio_fhandles): Now a std::vector.
9202 (is_closed_fileio_fh): Delete.
9203 (acquire_fileio_fd): Adjust. Rename parameters.
9204 (release_fileio_fd): Adjust.
9205 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9206 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9207 (target_fileio_close): Adjust.
9208
6e22e10d
SM
92092018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9210
9211 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9212 index.
9213
731f534f
PA
92142018-04-10 Pedro Alves <palves@redhat.com>
9215
9216 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9217 (scoped_finish_thread_state): New class.
9218 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9219 cleanup.
9220 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9221 (fetch_inferior_event, normal_stop): Likewise.
9222 * thread.c (finish_thread_state_cleanup): Delete.
9223
d5f4488f
SM
92242018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9225 Pedro Alves <palves@redhat.com>
9226
9227 * value.c: Include "selftest.h" and "common/array-view.h".
9228 (struct range) <operator ==>: New.
9229 (test_ranges_contain): New.
9230 (check_ranges_vector): New.
9231 (test_insert_into_bit_range_vector): New.
9232 (_initialize_values): Register selftests.
9233 * common/array-view.h (operator==, operator!=): New.
9234
b24531ed
SM
92352018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9236
9237 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9238 an iterator.
9239 * inline-frame.c: Include <algorithm>.
9240 (struct inline_state): Add constructor.
9241 (inline_state_s): Remove.
9242 (DEF_VEC_O(inline_state_s)): Remove.
9243 (inline_states): Change type to std::vector.
9244 (find_inline_frame_state): Adjust to std::vector.
9245 (allocate_inline_frame_state): Remove.
9246 (clear_inline_frame_state): Adjust to std::vector.
9247 (skip_inline_frames): Adjust to std::vector.
9248
c252925c
SM
92492018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9250
9251 * tracepoint.h (struct trace_state_variable): Add constructor.
9252 <name>: Change type to std::string.
9253 * tracepoint.c (tsv_s): Remove.
9254 (DEF_VEC_O(tsv_s)): Remove.
9255 (tvariables): Change to std::vector.
9256 (create_trace_state_variable): Adjust to std::vector.
9257 (find_trace_state_variable): Likewise.
9258 (find_trace_state_variable_by_number): Likewise.
9259 (delete_trace_state_variable): Likewise.
9260 (trace_variable_command): Adjust to std::string.
9261 (delete_trace_variable_command): Likewise.
9262 (tvariables_info_1): Adjust to std::vector.
9263 (save_trace_state_variables): Likewise.
9264 (start_tracing): Likewise.
9265 (merge_uploaded_trace_state_variables): Adjust to std::vector
9266 and std::string.
9267 * target.h (struct target_ops)
9268 <to_download_trace_state_variable>: Pass reference to
9269 trace_state_variable.
9270 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9271 * target-delegates.c: Re-generate.
9272 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9273 (mi_tsv_deleted): Likewise.
9274 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9275 * remote.c (remote_download_trace_state_variable): Change
9276 pointer to reference and adjust.
9277 * make-target-delegates (parse_argtypes): Handle references.
9278 (write_function_header): Likewise.
9279 (munge_type): Likewise.
9280
c9638d26
SM
92812018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9282
9283 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9284 string_view-selftests.c.
9285 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9286 testsuite.
9287 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9288 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9289 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9290 * unittests/basic_string_view/element_access/char/1.cc:
9291 Likewise.
9292 * unittests/basic_string_view/element_access/char/empty.cc:
9293 Likewise.
9294 * unittests/basic_string_view/element_access/char/front_back.cc:
9295 Likewise.
9296 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9297 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9298 Likewise.
9299 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9300 Likewise.
9301 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9302 Likewise.
9303 * unittests/basic_string_view/operations/compare/char/1.cc:
9304 Likewise.
9305 * unittests/basic_string_view/operations/compare/char/13650.cc:
9306 Likewise.
9307 * unittests/basic_string_view/operations/copy/char/1.cc:
9308 Likewise.
9309 * unittests/basic_string_view/operations/data/char/1.cc:
9310 Likewise.
9311 * unittests/basic_string_view/operations/find/char/1.cc:
9312 Likewise.
9313 * unittests/basic_string_view/operations/find/char/2.cc:
9314 Likewise.
9315 * unittests/basic_string_view/operations/find/char/3.cc:
9316 Likewise.
9317 * unittests/basic_string_view/operations/find/char/4.cc:
9318 Likewise.
9319 * unittests/basic_string_view/operations/rfind/char/1.cc:
9320 Likewise.
9321 * unittests/basic_string_view/operations/rfind/char/2.cc:
9322 Likewise.
9323 * unittests/basic_string_view/operations/rfind/char/3.cc:
9324 Likewise.
9325 * unittests/basic_string_view/operations/substr/char/1.cc:
9326 Likewise.
9327 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9328 * unittests/string_view-selftests.c: New file.
9329
fdc11678
SM
93302018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9331
9332 * unittests/basic_string_view/capacity/1.cc: New file.
9333 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9334 * unittests/basic_string_view/cons/char/1.cc: New file.
9335 * unittests/basic_string_view/cons/char/2.cc: New file.
9336 * unittests/basic_string_view/cons/char/3.cc: New file.
9337 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9338 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9339 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9340 * unittests/basic_string_view/element_access/char/1.cc: New file.
9341 * unittests/basic_string_view/element_access/char/2.cc: New file.
9342 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9343 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9344 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9345 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9346 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9347 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9348 * unittests/basic_string_view/include.cc: New file.
9349 * unittests/basic_string_view/inserters/char/1.cc: New file.
9350 * unittests/basic_string_view/inserters/char/2.cc: New file.
9351 * unittests/basic_string_view/inserters/char/3.cc: New file.
9352 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9353 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9354 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9355 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9356 * unittests/basic_string_view/literals/types.cc: New file.
9357 * unittests/basic_string_view/literals/values.cc: New file.
9358 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9359 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9360 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9361 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9362 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9363 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9364 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9365 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9366 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9367 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9368 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9369 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9370 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9371 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9372 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9373 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9374 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9375 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9376 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9377 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9378 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9379 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9380 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9381 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9382 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9383 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9384 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9385 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9386 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9387 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9388 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9389 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9390 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9391 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9392 * unittests/basic_string_view/operators/char/2.cc: New file.
9393 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9394 * unittests/basic_string_view/range_access/char/1.cc: New file.
9395 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9396 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9397 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9398 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9399 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9400 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9401 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9402 * unittests/basic_string_view/typedefs.cc: New file.
9403 * unittests/basic_string_view/types/1.cc: New file.
9404
8345c4a2
SM
94052018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9406
9407 * common/gdb_string_view.h: Remove libstdc++ implementation
9408 details, adjust to gdb reality.
9409 * common/gdb_string_view.tcc: Likewise.
9410 * cli/cli-script.c (struct string_view): Remove.
9411 (user_args) <m_args>: Change element type to gdb::string_view.
9412 (user_args::insert_args): Adjust.
9413
7adcdf08
SM
94142018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9415
9416 * common/gdb_string_view.h: New file.
9417 * common/gdb_string_view.tcc: New file.
9418
41260ac2
SM
94192018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9420
9421 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9422 * configure: Re-generate.
9423
0bee6dd4
PA
94242018-04-09 Pedro Alves <palves@redhat.com>
9425
9426 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9427 (set_target_gdbarch): Call
9428 gdb::observers::architecture_changed.notify instead of
9429 observer_notify_architecture_changed.
9430
6f14adc5
SM
94312018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9432
9433 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9434 (do_restore_current_traceframe_cleanup): Remove.
9435 (restore_current_traceframe_cleanup_dtor): Remove.
9436 (make_cleanup_restore_current_traceframe): Remove.
9437 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9438 New.
9439 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9440 * infrun.c (fetch_inferior_event): Use
9441 scoped_restore_current_traceframe.
9442
b2bdb8cf
SM
94432018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9444
9445 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9446 Remove.
9447 <n_allocated_type_units>: Remove.
9448 <all_type_units>: Change to std::vector.
9449 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9450 to std::vector change.
9451 (dwarf2_per_objfile::get_cutu): Likewise.
9452 (dwarf2_per_objfile::get_tu): Likewise.
9453 (create_signatured_type_table_from_index): Likewise.
9454 (create_signatured_type_table_from_debug_names): Likewise.
9455 (dw2_symtab_iter_next): Likewise.
9456 (dw2_print_stats): Likewise.
9457 (dw2_expand_all_symtabs): Likewise.
9458 (dw2_expand_marked_cus): Likewise.
9459 (dw2_debug_names_iterator::next): Likewise.
9460 (dwarf2_initialize_objfile): Likewise.
9461 (add_signatured_type_cu_to_table): Likewise.
9462 (create_all_type_units): Likewise.
9463 (add_type_unit): Likewise.
9464 (struct tu_abbrev_offset): Add constructor.
9465 (build_type_psymtabs_1): Adjust to std::vector change.
9466 (print_tu_stats): Likewise.
9467 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9468 (write_debug_names): Likewise.
9469
b76e467d
SM
94702018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9471
9472 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9473 Make an std::vector.
9474 <n_comp_units>: Remove.
9475 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9476 to std::vector change.
9477 (dwarf2_per_objfile::get_cutu): Likewise.
9478 (dwarf2_per_objfile::get_cu): Likewise.
9479 (create_cus_from_index): Likewise.
9480 (create_addrmap_from_index): Likewise.
9481 (create_addrmap_from_aranges): Likewise.
9482 (dwarf2_read_index): Likewise.
9483 (dw2_find_last_source_symtab): Likewise.
9484 (dw2_map_symtabs_matching_filename): Likewise.
9485 (dw2_symtab_iter_next): Likewise.
9486 (dw2_print_stats): Likewise.
9487 (dw2_expand_all_symtabs): Likewise.
9488 (dw2_expand_symtabs_with_fullname): Likewise.
9489 (dw2_expand_marked_cus): Likewise.
9490 (dw2_map_symbol_filenames): Likewise.
9491 (create_cus_from_debug_names): Likewise.
9492 (dwarf2_read_debug_names): Likewise.
9493 (dw2_debug_names_iterator::next): Likewise.
9494 (dwarf2_initialize_objfile): Likewise.
9495 (set_partial_user): Likewise.
9496 (dwarf2_build_psymtabs_hard): Likewise.
9497 (read_comp_units_from_section): Remove arguments, adjust to
9498 std::vector change.
9499 (create_all_comp_units): Adjust to std::vector and
9500 read_comp_units_from_section changes.
9501 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9502 change.
9503 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9504 (psyms_seen_size): Likewise.
9505 (write_gdbindex): Likewise.
9506 (write_debug_names): Likewise.
9507
12359b5e
SM
95082018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9509
9510 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9511 with dwarf2_per_objfile.
9512 (create_cus_from_index): Likewise.
9513 (create_signatured_type_table_from_index): Likewise.
9514 (dwarf2_read_index): Likewise.
9515 (dwarf2_initialize_objfile): Likewise.
9516 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9517 per_cu rather than get_dwarf2_per_objfile.
9518
ff4c9fec
SM
95192018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9520
9521 * dwarf2read.h (struct signatured_type): Forward declare.
9522 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9523 New methods.
9524 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9525 (dw2_get_cutu): ...this.
9526 (dwarf2_per_objfile::get_cu): Rename from...
9527 (dw2_get_cu): ...this.
9528 (dwarf2_per_objfile::get_tu): New.
9529 (create_addrmap_from_index): Adjust.
9530 (create_addrmap_from_aranges): Adjust.
9531 (dw2_find_last_source_symtab): Adjust.
9532 (dw2_map_symtabs_matching_filename): Adjust.
9533 (dw2_symtab_iter_next): Adjust.
9534 (dw2_print_stats): Adjust.
9535 (dw2_expand_all_symtabs): Adjust.
9536 (dw2_expand_symtabs_with_fullname): Adjust.
9537 (dw2_expand_marked_cus): Adjust.
9538 (dw_expand_symtabs_matching_file_matcher): Adjust.
9539 (dw2_map_symbol_filenames): Adjust.
9540 (dw2_debug_names_iterator::next): Adjust.
9541 (dwarf2_initialize_objfile): Adjust.
9542 (set_partial_user): Adjust.
9543 (dwarf2_build_psymtabs_hard): Adjust.
9544
5ca3fcb6
SM
95452018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9546
9547 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9548 Remove unused variables.
9549 (dw2_map_symtabs_matching_filename): Likewise.
9550 (dwarf2_record_block_ranges): Likewise.
9551 (dwarf2_read_addr_index): Likewise.
9552 (follow_die_offset): Likewise.
9553
b2e586e8
SM
95542018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9555
9556 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9557 to symbol_file_add_main.
9558
7c4e78cf
SM
95592018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9560
9561 PR mi/22299
9562 * mi/mi-console.c (do_fputc_async_safe): New.
9563 (mi_console_file::write_async_safe): New.
9564 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9565 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9566 New.
9567 * ui-file.c (ui_file::putstrn): Adjust call to
9568 fputstrn_unfiltered.
9569 * utils.c (printchar): Replace do_fputs and do_fprintf
9570 parameters by do_fputc.
9571 (fputstr_filtered): Adjust call to printchar.
9572 (fputstr_unfiltered): Likewise.
9573 (fputstrn_filtered): Likewise.
9574 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9575 printchar.
9576 * utils.h (do_fputc_ftype): New typedef.
9577 (fputstrn_unfiltered): Add do_fputc parameter.
9578
5dc026d3
SM
95792018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9580
9581 * regformats/i386/i386-avx.dat: Remove.
9582
c912f608
SM
95832018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9584
9585 PR gdb/22979
9586 * amd64-tdep.c (amd64_none_init_abi): New function.
9587 (amd64_x32_none_init_abi): New function.
9588 (_initialize_amd64_tdep): Register handlers for x86-64 and
9589 x64_32 with GDB_OSABI_NONE.
9590 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9591 GDB_OSABI_NONE osabi.
9592
26540402
SM
95932018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9594
9595 PR gdb/22980
9596 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9597 GDB_OSABI_NONE.
9598 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9599 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9600
9018be22
SM
96012018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9602
9603 * common/byte-vector.h (char_vector): New type.
9604 * target.h (target_read_alloc): Return
9605 gdb::optional<byte_vector>.
9606 (target_read_stralloc): Return gdb::optional<char_vector>.
9607 (target_get_osdata): Return gdb::optional<char_vector>.
9608 * target.c (target_read_alloc_1): Templatize. Replacement
9609 manual memory management with vector.
9610 (target_read_alloc): Change return type, adjust.
9611 (target_read_stralloc): Change return type, adjust.
9612 (target_get_osdata): Change return type, adjust.
9613 * auxv.c (struct auxv_info) <length>: Remove.
9614 <data>: Change type to gdb::optional<byte_vector>.
9615 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9616 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9617 (target_auxv_search): Adjust.
9618 (fprint_target_auxv): Adjust.
9619 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9620 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9621 (linux_make_corefile_notes): Adjust.
9622 * osdata.c (get_osdata): Adjust.
9623 * remote.c (remote_get_threads_with_qxfer): Adjust.
9624 (remote_memory_map): Adjust.
9625 (remote_traceframe_info): Adjust.
9626 (btrace_read_config): Adjust.
9627 (remote_read_btrace): Adjust.
9628 (remote_pid_to_exec_file): Adjust.
9629 * solib-aix.c (solib_aix_get_library_list): Adjust.
9630 * solib-dsbt.c (decode_loadmap): Don't free buf.
9631 (dsbt_get_initial_loadmaps): Adjust.
9632 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9633 * solib-target.c (solib_target_current_sos): Adjust.
9634 * tracepoint.c (sdata_make_value): Adjust.
9635 * xml-support.c (xinclude_start_include): Adjust.
9636 (xml_fetch_content_from_file): Adjust.
9637 * xml-support.h (xml_fetch_another): Change return type.
9638 (xml_fetch_content_from_file): Change return type.
9639 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9640 * xml-tdesc.c (file_read_description_xml): Adjust.
9641 (fetch_available_features_from_target): Change return type.
9642 (target_fetch_description_xml): Adjust.
9643 (target_read_description_xml): Adjust.
9644
14c88955
TT
96452018-04-06 Tom Tromey <tom@tromey.com>
9646
9647 * value.c (~value): Update.
9648 (struct value) <contents>: Now unique_xmalloc_ptr.
9649 (value_contents_bits_eq, allocate_value_contents)
9650 (value_contents_raw, value_contents_all_raw)
9651 (value_contents_for_printing, value_contents_for_printing_const)
9652 (set_value_enclosing_type): Update.
9653
0c7e6dd8
TT
96542018-04-06 Tom Tromey <tom@tromey.com>
9655
9656 * value.c (range_s): Remove typedef, VEC.
9657 (struct range): Add operator<.
9658 (range_lessthan): Remove.
9659 (ranges_contain): Change type.
9660 (~value): Update.
9661 (struct value) <unavailable, optimized_out>: Now std::vector.
9662 (value_entirely_available)
9663 (value_entirely_covered_by_range_vector)
9664 (value_entirely_unavailable, value_entirely_optimized_out):
9665 Update.
9666 (insert_into_bit_range_vector): Change argument type.
9667 (find_first_range_overlap): Likewise.
9668 (struct ranges_and_idx, value_contents_bits_eq)
9669 (require_not_optimized_out, require_available): Update.
9670 (ranges_copy_adjusted): Change argument types.
9671 (value_optimized_out, value_copy, value_fetch_lazy): Update.
9672
2c8331b9
TT
96732018-04-06 Tom Tromey <tom@tromey.com>
9674
9675 * value.c (~value): Update.
9676 (struct value) <parent>: Now a value_ref_ptr.
9677 (value_parent, set_value_parent, value_address, value_copy):
9678 Update.
9679
466ce3ae
TT
96802018-04-06 Tom Tromey <tom@tromey.com>
9681
9682 * value.c (struct value): Add constructor, destructor, and member
9683 initializers.
9684 (allocate_value_lazy, value_decref): Update.
9685
062d818d
TT
96862018-04-06 Tom Tromey <tom@tromey.com>
9687
9688 * value.c (struct value) <released, next>: Remove.
9689 (all_values): Now a std::vector.
9690 (allocate_value_lazy): Update.
9691 (value_next): Remove.
9692 (value_mark, value_free_to_mark, release_value)
9693 (value_release_to_mark): Update.
9694
a6535de1
TT
96952018-04-06 Tom Tromey <tom@tromey.com>
9696
9697 * value.h (fetch_subexp_value, value_release_to_mark): Update.
9698 (free_value_chain): Remove.
9699 * value.c (free_value_chain): Remove.
9700 (value_release_to_mark): Return a std::vector.
9701 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9702 std::vector.
9703 (check_condition): Update.
9704 * eval.c (fetch_subexp_value): Change "val_chain" to a
9705 std::vector.
9706 * breakpoint.c (update_watchpoint): Update.
9707 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9708
b5621201
TT
97092018-04-06 Tom Tromey <tom@tromey.com>
9710
9711 * value.h (free_all_values): Remove.
9712 * value.c (free_all_values): Remove.
9713
4d0266a0
TT
97142018-04-06 Tom Tromey <tom@tromey.com>
9715
9716 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9717 (value_history_chain, value_history_count): Remove.
9718 (value_history): New global.
9719 (record_latest_value, access_value_history, show_values)
9720 (preserve_values): Update.
9721
b4d61099
TT
97222018-04-06 Tom Tromey <tom@tromey.com>
9723
9724 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9725 * varobj.c (varobj_set_display_format, varobj_set_value)
9726 (install_default_visualizer, construct_visualizer)
9727 (install_new_value, ~varobj, varobj_get_value_type)
9728 (my_value_of_variable, varobj_editable_p): Update.
9729 * c-varobj.c (c_describe_child, c_value_of_variable)
9730 (cplus_number_of_children, cplus_describe_child): Update.
9731 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9732 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9733 (ada_value_of_variable, ada_value_is_changeable_p): Update.
9734
9b558729
TT
97352018-04-06 Tom Tromey <tom@tromey.com>
9736
9737 * printcmd.c (last_examine_address): Change type to
9738 value_ref_ptr.
9739 (do_examine, x_command): Update.
9740
850645cf
TT
97412018-04-06 Tom Tromey <tom@tromey.com>
9742
9743 * value.c (release_value): Update.
9744 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9745 (struct bpstats) <val>: Now a value_ref_ptr.
9746 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9747 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9748 (~watchpoint, print_it_watchpoint, watch_command_1)
9749 (invalidate_bp_value_on_memory_change): Update.
9750
22bc8444
TT
97512018-04-06 Tom Tromey <tom@tromey.com>
9752
9753 * varobj.c (varobj_clear_saved_item)
9754 (update_dynamic_varobj_children, install_new_value, ~varobj):
9755 Update.
9756 * value.h (value_incref): Move declaration earlier.
9757 (value_decref): Rename from value_free.
9758 (struct value_ref_policy): New.
9759 (value_ref_ptr): New typedef.
9760 (struct value_deleter): Remove.
9761 (gdb_value_up): Remove typedef.
9762 (release_value): Change return type.
9763 (release_value_or_incref): Remove.
9764 * value.c (set_value_parent): Update.
9765 (value_incref): Change return type.
9766 (value_decref): Rename from value_free.
9767 (value_free_to_mark, free_all_values, free_value_chain): Update.
9768 (release_value): Return value_ref_ptr.
9769 (release_value_or_incref): Remove.
9770 (record_latest_value, set_internalvar, clear_internalvar):
9771 Update.
9772 * stack.c (info_frame_command): Don't call value_free.
9773 * python/py-value.c (valpy_dealloc, valpy_new)
9774 (value_to_value_object): Update.
9775 * printcmd.c (do_examine): Update.
9776 * opencl-lang.c (lval_func_free_closure): Update.
9777 * mi/mi-main.c (register_changed_p): Don't call value_free.
9778 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9779 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9780 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9781 value_free.
9782 * guile/scm-value.c (vlscm_free_value_smob)
9783 (vlscm_scm_from_value): Update.
9784 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9785 (frame_unwind_register_unsigned, get_frame_register_bytes)
9786 (put_frame_register_bytes): Don't call value_free.
9787 * findvar.c (address_from_register): Don't call value_free.
9788 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9789 * dwarf2loc.c (entry_data_value_free_closure)
9790 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9791 (dwarf2_evaluate_loc_desc_full): Update.
9792 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9793 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9794 (~watchpoint, watch_command_1)
9795 (invalidate_bp_value_on_memory_change): Update.
9796 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9797
7f8a5d38
SM
97982018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9799
9800 PR gdb/23022
9801 * warning.m4: Add -Wno-error=deprecated-register.
9802 * configure: Re-generate.
9803
8a76bd3b
TT
98042018-04-05 Tom Tromey <tom@tromey.com>
9805
9806 * linespec.h: Remove include of "vec.h".
9807
8e8d776e
TT
98082018-04-05 Tom Tromey <tom@tromey.com>
9809
9810 * linespec.c (typep): Remove typedef.
9811 (find_methods, find_superclass_methods): Take a std::vector.
9812 (find_method): Use std::vector.
9813
9b2f8581
TT
98142018-04-05 Tom Tromey <tom@tromey.com>
9815
9816 * utils.c (compare_strings): Remove.
9817 * utils.h (compare_strings): Remove.
9818 * objc-lang.h (find_imps): Update.
9819 * objc-lang.c (find_methods): Take a std::vector.
9820 (uniquify_strings, find_imps): Likewise.
9821 * linespec.c (find_methods): Take a std::vector.
9822 (decode_objc): Use std::vector.
9823 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9824 a std::vector.
9825 (find_method, find_function_symbols): Use std::vector.
9826
459a2e4c
TT
98272018-04-05 Tom Tromey <tom@tromey.com>
9828
9829 * completer.c (completion_tracker::completion_tracker): Remove
9830 cast.
9831 (completion_tracker::discard_completions): Likewise.
9832 * breakpoint.c (ambiguous_names_p): Remove cast.
9833 * ada-lang.c (_initialize_ada_language): Remove cast.
9834 * utils.h (streq): Update.
9835 (streq_hash): Add new declaration.
9836 * utils.c (streq): Return bool.
9837 (streq_hash): New function.
9838
9be2c17a
TT
98392018-04-05 Tom Tromey <tom@tromey.com>
9840
9841 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9842 Remove a string copy.
9843
f73c6ece
TT
98442018-04-05 Tom Tromey <tom@tromey.com>
9845
9846 * linespec.c (filter_results): Use std::vector.
9847 (decode_line_2, decode_line_full): Update.
9848
53a0f8a2
TT
98492018-04-05 Tom Tromey <tom@tromey.com>
9850
9851 * linespec.c (canonical_to_fullform): Return std::string.
9852 (filter_results): Update.
9853 (struct decode_line_2_item): Add constructor.
9854 <fullform, displayform>: Now std::string.
9855 (decode_line_2_compare_items): Now a std::sort comparator.
9856 (decode_line_2): Update.
9857
a5b5adf5
TT
98582018-04-05 Tom Tromey <tom@tromey.com>
9859
9860 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9861 (unexpected_linespec_error): Update.
9862 (linespec_parse_basic, parse_linespec): Update.
9863
6a307fc5
TT
98642018-04-05 Tom Tromey <tom@tromey.com>
9865
9866 * linespec.c (linespec_parse_basic): Reindent.
9867
41c1efc6
TT
98682018-04-05 Tom Tromey <tom@tromey.com>
9869
9870 * minsyms.h (iterate_over_minimal_symbols): Update.
9871 * minsyms.c (iterate_over_minimal_symbols): Take a
9872 gdb::function_view.
9873 * linespec.c (struct collect_minsyms): Remove.
9874 (compare_msyms): Now a std::sort comparator.
9875 (add_minsym): Add parameters.
9876 (search_minsyms_for_name): Update. Use std::vector.
9877
c5edbf3d
TT
98782018-04-03 Tom Tromey <tom@tromey.com>
9879
9880 * mipsread.c (read_alphacoff_dynamic_symtab): Use
9881 gdb::byte_vector.
9882
b39efc48
WP
98832018-04-02 Weimin Pan <weimin.pan@oracle.com>
9884
9885 * MAINTAINERS (Write After Approval): Add Weimin Pan.
9886
121ad66c 98872018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
9888
9889 PR gdb/16959
9890 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
9891 printing static type.
9892
09473be8
TT
98932018-04-01 Tom Tromey <tom@tromey.com>
9894
9895 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
9896 (rs6000_xfer_shared_libraries): Update.
9897
ec1f2d91
SM
98982018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9899
9900 * common/gdb_vecs.h (char_ptr): Remove.
9901 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
9902
d8611974
SM
99032018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9904
9905 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
9906 with std::vector.
9907 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
9908
a18ba4e4
SM
99092018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9910
9911 * tracepoint.h (struct uploaded_tp): Initialize fields.
9912 <actions, step_actions, cmd_strings>: Change type to
9913 std::vector<char *>.
9914 * tracepoint.c (get_uploaded_tp): Allocate with new.
9915 (free_uploaded_tps): Free with delete.
9916 (parse_tracepoint_definition): Adjust to std::vector change.
9917 * breakpoint.c (read_uploaded_action): Likewise.
9918 (create_tracepoint_from_upload): Likewise.
9919 * ctf.c (ctf_write_uploaded_tp): Likewise.
9920 (SET_ARRAY_FIELD): Likewise.
9921 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
9922
a7961323
TT
99232018-03-30 Tom Tromey <tom@tromey.com>
9924
9925 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
9926 std::unique_ptr.
9927 (svr4_keep_data_in_core): Update.
9928 (svr4_read_so_list): Update.
9929
e83e4e24
TT
99302018-03-30 Tom Tromey <tom@tromey.com>
9931
9932 * windows-nat.c (handle_output_debug_string, handle_exception):
9933 Update.
9934 * target.h (target_read_string): Update.
9935 * target.c (target_read_string): Change "string" to
9936 unique_xmalloc_ptr.
9937 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9938 Update.
9939 * solib-frv.c (frv_current_sos): Update.
9940 * solib-dsbt.c (dsbt_current_sos): Update.
9941 * solib-darwin.c (darwin_current_sos): Update.
9942 * linux-thread-db.c (inferior_has_bug): Update.
9943 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
9944 Update. Remove alloca.
9945 * ada-lang.c (ada_main_name): Update.
9946
263db9a1
TT
99472018-03-30 Tom Tromey <tom@tromey.com>
9948
9949 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
9950 (struct dwo_file_deleter): New.
9951 (dwo_file_up): New typedef.
9952 (open_and_init_dwo_file): Use dwo_file_up.
9953 (free_dwo_file_cleanup): Remove.
9954
5dafb3d1
TT
99552018-03-30 Tom Tromey <tom@tromey.com>
9956
9957 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
9958 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
9959
11ed8cad
TT
99602018-03-30 Tom Tromey <tom@tromey.com>
9961
9962 * dwarf2read.c (class free_cached_comp_units): New class.
9963 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
9964 (free_cached_comp_units): Remove function.
9965
9ae79dac
TT
99662018-03-30 Tom Tromey <tom@tromey.com>
9967
9968 * utils.h (make_cleanup_unpush_target): Remove.
9969 * inf-ptrace.c (struct target_unpusher): New.
9970 (target_unpush_up) New typedef.
9971 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
9972 target_unpush_up.
9973 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
9974
5aa89276
TT
99752018-03-27 Tom Tromey <tom@tromey.com>
9976
9977 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
9978
1dbeed45
TT
99792018-03-27 Pedro Alves <palves@redhat.com>
9980 Tom Tromey <tom@tromey.com>
9981
9982 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
9983 destructor. Now a class.
9984 (gdb_readline_wrapper_cleanup): Remove function.
9985 (gdb_readline_wrapper): Remove cleanups.
9986
c819b2c0
TT
99872018-03-27 Tom Tromey <tom@tromey.com>
9988
9989 * typeprint.h (struct type_print_options) <local_typedefs,
9990 global_typedefs>: Remove "struct" keyword.
9991 (class typedef_hash_table): New class.
9992 (recursively_update_typedef_hash, add_template_parameters)
9993 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
9994 (find_typedef_in_hash): Don't declare.
9995 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
9996 (typedef_hash_table::recursively_update): Rename from
9997 recursively_update_typedef_hash. Now a member.
9998 (typedef_hash_table::add_template_parameters): Rename from
9999 add_template_parameters. Now a member.
10000 (typedef_hash_table::typedef_hash_table): Now a constructor;
10001 rename from create_typedef_hash.
10002 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10003 rename from free_typedef_hash.
10004 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10005 (do_free_global_table): Remove.
10006 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10007 from copy_type_recursive.
10008 (create_global_typedef_table): Remove.
10009 (typedef_hash_table::find_global_typedef): Now a member of
10010 typedef_hash_table.
10011 (typedef_hash_table::find_typedef): Rename from
10012 find_typedef_in_hash; now a member.
10013 (whatis_exp): Update.
10014 * extension.h (struct ext_lang_type_printers): Add constructor and
10015 destructor.
10016 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10017 declare.
10018 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10019 Now a constructor; rename from start_ext_lang_type_printers.
10020 (ext_lang_type_printers): Now a destructor; rename from
10021 free_ext_lang_type_printers.
10022 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10023 Update.
10024 (c_type_print_base_struct_union): Update. Remove cleanups.
10025
608219fb
TT
100262018-03-27 Tom Tromey <tom@tromey.com>
10027
10028 * dwarf-index-write.c: Include <cmath>.
10029
3fcded8f
JB
100302018-03-27 Joel Brobecker <brobecker@adacore.com>
10031
10032 * NEWS: Add entry describing new "set|show varsize-limit" command.
10033 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10034 command.
10035 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10036 "set variable".
10037
cd4fb1b2
SM
100382018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10039
10040 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10041 dwarf-index-write.c
10042 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10043 * dwarf-index-common.c: New file.
10044 * dwarf-index-common.h: New file.
10045 * dwarf-index-write.c: New file.
10046 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10047 (struct dwarf2_section_info): Move from here.
10048 (dwarf2_section_info_def): Likewise.
10049 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10050 (offset_type): Likewise.
10051 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10052 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10053 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10054 (byte_swap): Likewise.
10055 (MAYBE_SWAP): Likewise.
10056 (dwarf2_per_cu_ptr): Likewise.
10057 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10058 (struct tu_stats): Likewise.
10059 (struct dwarf2_per_objfile): Likewise.
10060 (struct dwarf2_per_cu_data): Likewise.
10061 (struct signatured_type): Likewise.
10062 (sig_type_ptr): Likewise.
10063 (DEF_VEC_P (sig_type_ptr)): Likewise.
10064 (INDEX4_SUFFIX): Likewise.
10065 (INDEX5_SUFFIX): Likewise.
10066 (DEBUG_STR_SUFFIX): Likewise.
10067 (dwarf2_read_section): Make non-static.
10068 (mapped_index_string_hash): Move from here.
10069 (dwarf5_djb_hash): Likewise.
10070 (file_write): Likewise.
10071 (class data_buf): Likewise.
10072 (struct symtab_index_entry): Likewise.
10073 (struct mapped_symtab): Likewise.
10074 (find_slot): Likewise.
10075 (hash_expand): Likewise.
10076 (add_index_entry): Likewise.
10077 (uniquify_cu_indices): Likewise.
10078 (class c_str_view): Likewise.
10079 (class c_str_view_hasher): Likewise.
10080 (class vector_hasher): Likewise.
10081 (write_hash_table): Likewise.
10082 (psym_index_map): Likewise.
10083 (struct addrmap_index_data): Likewise.
10084 (add_address_entry): Likewise.
10085 (add_address_entry_worker): Likewise.
10086 (write_address_map): Likewise.
10087 (symbol_kind): Likewise.
10088 (write_psymbols): Likewise.
10089 (struct signatured_type_index_data): Likewise.
10090 (write_one_signatured_type): Likewise.
10091 (recursively_count_psymbols): Likewise.
10092 (recursively_write_psymbols): Likewise.
10093 (class debug_names): Likewise.
10094 (check_dwarf64_offsets): Likewise.
10095 (psyms_seen_size): Likewise.
10096 (write_gdbindex): Likewise.
10097 (write_debug_names): Likewise.
10098 (assert_file_size): Likewise.
10099 (write_psymtabs_to_index): Likewise.
10100 (save_gdb_index_command): Likewise.
10101 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10102 command.
10103 * dwarf2read.h: New file.
10104
59cc4834
JB
101052018-03-27 Joel Brobecker <brobecker@adacore.com>
10106
10107 PR gdb/22670
10108 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10109 symbol name if the CU's language stores symbol names in linkage
10110 format.
10111 * language.h (struct language_defn)
10112 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10113 all instances of this struct.
10114
67501539
TT
101152018-03-26 Tom Tromey <tom@tromey.com>
10116
10117 * stack.c (backtrace_command_1): Remove verbose code.
10118
76c939ac
TT
101192018-03-26 Tom Tromey <tom@tromey.com>
10120
10121 * python/py-framefilter.c (py_print_type): Don't catch
10122 exceptions. Return void.
10123 (py_print_value): Likewise.
10124 (py_print_single_arg): Likewise.
10125 (enumerate_args): Don't catch exceptions.
10126 (py_print_args): Likewise.
10127 (py_print_frame): Likewise.
10128 (gdbpy_apply_frame_filter): Catch exceptions here.
10129
9507b29c
TT
101302018-03-26 Tom Tromey <tom@tromey.com>
10131
10132 * stack.c (_initialize_stack): Remove trailing newlines from help
10133 text. Add "Usage" line to "backtrace" help.
10134
eb68e487
TT
101352018-03-26 Tom Tromey <tom@tromey.com>
10136
10137 PR python/16486:
10138 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10139
1f111921
TT
101402018-03-26 Tom Tromey <tom@tromey.com>
10141
10142 * python/py-framefilter.c (py_print_single_arg): Return
10143 EXT_LANG_BT_ERROR from catch.
10144
fb7eb8b5
TT
101452018-03-26 Tom Tromey <tom@tromey.com>
10146
10147 PR backtrace/15584:
10148 * stack.c (backtrace_command_1): Move some code into no-filters
10149 "if".
10150
4ca59a9f
TT
101512018-03-26 Tom Tromey <tom@tromey.com>
10152
10153 * python/py-framefilter.c (throw_quit_or_print_exception): New
10154 function.
10155 (gdbpy_apply_frame_filter): Use it.
10156
92256134
TT
101572018-03-26 Tom Tromey <tom@tromey.com>
10158
10159 PR cli/17716:
10160 * python/py-framefilter.c (py_print_type, py_print_value)
10161 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10162 RETURN_MASK_ERROR.
10163
7a630bc2
TT
101642018-03-26 Tom Tromey <tom@tromey.com>
10165
10166 * python/py-framefilter.c (enumerate_args): Use
10167 gdb::unique_xmalloc_ptr.
10168
63283d4a
TT
101692018-03-26 Tom Tromey <tom@tromey.com>
10170
10171 * python/py-framefilter.c (py_print_frame): Return
10172 EXT_LANG_BT_OK.
10173 (gdbpy_apply_frame_filter): Update comment.
10174 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10175 Remove.
10176 <EXT_LANG_BT_NO_FILTERS>: Change value.
10177
978d6c75
TT
101782018-03-26 Tom Tromey <tom@tromey.com>
10179
10180 PR backtrace/15582:
10181 * stack.c (backtrace_command): Parse "hide" argument.
10182 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10183 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10184 constant.
10185
1cf7e640
TT
101862018-03-26 Tom Tromey <tom@tromey.com>
10187
10188 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10189 add "flags".
10190 (backtrace_command): Remove "fulltrace", add "flags".
10191
ea3b0687
TT
101922018-03-26 Tom Tromey <tom@tromey.com>
10193
10194 * stack.c (backtrace_command): Rewrite command line parsing.
10195
9f034d75
SM
101962018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10197
10198 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10199
ce1459e5
SM
102002018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10201
10202 * filename-seen-cache.h: Add include guard.
10203
4f7ae6f5
KS
102042018-03-26 Keith Seitz <keiths@redhat.com>
10205
10206 * symfile.c (place_section): Remove "struct" from section_addr_info
10207 in comment.
10208 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10209 "struct" keyword from section_addr_info.
10210
5cd3e386
AH
102112018-03-26 Alan Hayward <alan.hayward@arm.com>
10212
10213 * regformats/regdef.h (reg): Add constructors.
10214
3e5ef9a4
PA
102152018-03-25 Pedro Alves <palves@redhat.com>
10216
10217 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10218 if then/else bodies in var_func_name extraction.
10219
c88d2fcc 102202018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
10221
10222 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10223 lookup_minimal_symbol() to find symbol entry.
10224 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10225
b7fee5a3
KS
102262018-03-23 Keith Seitz <keiths@redhat.com>
10227
10228 PR c++/22968
10229 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10230 nested type definitions for C++, too.
10231
2cc9b304
TT
102322018-03-23 Tom Tromey <tom@tromey.com>
10233
10234 * machoread.c (struct oso_el): Add a constructor. Don't define as
10235 a typedef.
10236 (macho_register_oso): Remove.
10237 (macho_symtab_read): Take a std::vector.
10238 (oso_el_compare_name): Now a std::sort comparator.
10239 (macho_symfile_read_all_oso): Take a std::vector.
10240 (macho_symfile_read): Use std::vector. Remove cleanups.
10241
a2b2bc12
TT
102422018-03-22 Tom Tromey <tom@tromey.com>
10243
10244 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10245 (record_full_goto_bookmark): Use std::string.
10246
7a8f494c
PFC
102472018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10248
10249 PR tdep/18295
10250 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10251 a single mask.
10252
dd6d677f
PFC
102532018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10254
10255 * rs6000-tdep.c (store_insn_p): New function.
10256 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10257 and cr_reg to their unshifted values. Use store_insn_p to
10258 match LR saves using either R1 or fdata->alloca_reg. Use
10259 store_insn_p to match CR saves. Set alloca_reg_offset
10260 when alloca_reg and framep are set. Remove lr_reg shift
10261 when assigning to fdata->lr_register.
10262
26d6cec4
AA
102632018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10264
10265 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10266 command line args instead of emitting a warning.
10267
5d9310c4
SM
102682018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10269
10270 * tracepoint.h (struct static_tracepoint_marker): Initialize
10271 fields, define default constructor, move constructor and move
10272 assignment, disable the rest.
10273 <str_id, extra>: Make std::string.
10274 (release_static_tracepoint_marker): Remove.
10275 (free_current_marker): Remove.
10276 * tracepoint.c (free_current_marker): Remove.
10277 (parse_static_tracepoint_marker_definition): Adjust to
10278 std::string, use new hex2str overload.
10279 (release_static_tracepoint_marker): Remove.
10280 (print_one_static_tracepoint_marker): Get marker by reference
10281 and adjust to std::string.
10282 (info_static_tracepoint_markers_command): Adjust to std::vector
10283 changes
10284 * target.h (static_tracepoint_marker_p): Remove typedef.
10285 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10286 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10287 bool.
10288 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10289 * target-debug.h
10290 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10291 (target_debug_print_std_vector_static_tracepoint_marker): New.
10292 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10293 to...
10294 (target_debug_print_static_tracepoint_marker_p): ... this.
10295 * target-delegates.c: Re-generate.
10296 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10297 Make std::string.
10298 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10299 (decode_static_tracepoint_spec): Adjust to std::vector.
10300 (tracepoint_print_one_detail): Adjust to std::string.
10301 (strace_marker_decode_location): Adjust to std::string.
10302 (update_static_tracepoint): Adjust to std::string, remove call
10303 to release_static_tracepoint_marker.
10304 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10305 Adjust to std::vector.
10306 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10307 (remote_static_tracepoint_markers_by_strid): Adjust to
10308 std::vector.
10309 * common/rsp-low.h (hex2str): New overload with explicit count
10310 of bytes.
10311 * common/rsp-low.c (hex2str): New overload with explicit count
10312 of bytes.
10313 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10314 (_initialize_rsp_low_selftests): Add test_hex2str test.
10315 * unittests/tracepoint-selftests.c
10316 (test_parse_static_tracepoint_marker_definition): Adjust to
10317 std::string.
10318
62c222b6
SM
103192018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10320
10321 * tracepoint.c (parse_static_tracepoint_marker_definition):
10322 Consider case where the definition is followed by more
10323 definitions.
10324 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10325 tracepoint-selftests.c.
10326 * unittests/tracepoint-selftests.c: New.
10327
7eb2418f
PFC
103282018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10329
10330 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10331 Carvalho.
10332
7cbe16e9
SR
103332018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10334
3d6b3b82 10335 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 10336
4ee89e90
SR
103372018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10338
3d6b3b82 10339 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 10340
92630041
TT
103412018-03-19 Tom Tromey <tom@tromey.com>
10342
10343 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10344 "IDENT" production.
10345
76727919
TT
103462018-03-19 Pedro Alves <palves@redhat.com>
10347 Tom Tromey <tom@tromey.com>
10348
10349 * unittests/observable-selftests.c: New file.
10350 * common/observable.h: New file.
10351 * observable.h: New file.
10352 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10353 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10354 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10355 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10356 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10357 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10358 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10359 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10360 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10361 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10362 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10363 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10364 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10365 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10366 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10367 tui/tui-interp.c, valops.c: Update all users.
10368 * tui/tui-hooks.c (tui_bp_created_observer)
10369 (tui_bp_deleted_observer, tui_bp_modified_observer)
10370 (tui_inferior_exit_observer, tui_before_prompt_observer)
10371 (tui_normal_stop_observer, tui_register_changed_observer):
10372 Remove.
10373 (tui_observers_token): New global.
10374 (attach_or_detach, tui_attach_detach_observers): New functions.
10375 (tui_install_hooks, tui_remove_hooks): Use
10376 tui_attach_detach_observers.
10377 * record-btrace.c (record_btrace_thread_observer): Remove.
10378 (record_btrace_thread_observer_token): New global.
10379 * observer.sh: Remove.
10380 * observer.c: Rename to observable.c.
10381 * observable.c (namespace gdb_observers): Define new objects.
10382 (observer_debug): Move into gdb_observers namespace.
10383 (struct observer, struct observer_list, xalloc_observer_list_node)
10384 (xfree_observer_list_node, generic_observer_attach)
10385 (generic_observer_detach, generic_observer_notify): Remove.
10386 (_initialize_observer): Update.
10387 Don't include observer.inc.
10388 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10389 (clean mostlyclean): Likewise.
10390 (observer.h, observer.inc): Remove targets.
10391 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10392 (COMMON_SFILES): Use observable.c, not observer.c.
10393 * .gitignore: Remove observer.h.
10394
1cb1f3da
TT
103952018-03-18 Tom Tromey <tom@tromey.com>
10396
10397 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10398 gdb::def_vector.
10399 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10400
a06ab151
TT
104012018-03-17 Tom Tromey <tom@tromey.com>
10402
10403 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10404
770623f7
TT
104052018-03-17 Tom Tromey <tom@tromey.com>
10406
10407 * target.c (class scoped_target_fd): New.
10408 (target_fileio_close_cleanup): Remove.
10409 (target_fileio_read_alloc_1): Use scoped_target_fd.
10410
39be3c7e
SM
104112018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10412
10413 * silent-rules.mk: New.
10414 * Makefile.in: Include silent-rules.mk
10415 (srcdir, VPATH, top_srcdir): Move up.
10416 (COMPILE): Add ECHO_CXX.
10417 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10418 (init.c): Add ECHO_INIT_C.
10419 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10420 (version.c): Add ECHO_GEN.
10421 (printcmd.o): Add ECHO_CXX.
10422 (target-float.o): Add ECHO_CXX.
10423 (ada-exp.o): Add ECHO_CXX.
10424 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10425 (insight$(EXEEXT)): Add ECHO_CXXLD.
10426 * gnulib/configure.ac: Add AM_SILENT_RULES.
10427 * gnulib/aclocal.m4: Re-generate.
10428 * gnulib/configure: Re-generate.
10429 * gnulib/import/Makefile.in: Re-generate.
10430
37e136b1
TT
104312018-03-16 Tom Tromey <tom@tromey.com>
10432
10433 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10434 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10435 * utils.c (do_free_section_addr_info)
10436 (make_cleanup_free_section_addr_info): Remove.
10437 * symfile.h (struct other_sections): Add constructor.
10438 (struct section_addr_info): Remove.
10439 (section_addr_info): New typedef.
10440 (struct sym_fns) <sym_offsets>: Change type of parameter.
10441 (build_section_addr_info_from_objfile)
10442 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10443 (default_symfile_offsets, symbol_file_add)
10444 (symbol_file_add_from_bfd)
10445 (build_section_addr_info_from_section_table): Update.
10446 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10447 * symfile.c (alloc_section_addr_info): Remove.
10448 (build_section_addr_info_from_section_table): Change return type.
10449 Update.
10450 (build_section_addr_info_from_bfd)
10451 (build_section_addr_info_from_objfile): Likewise.
10452 (free_section_addr_info): Remove.
10453 (relative_addr_info_to_section_offsets): Change type of "addrs".
10454 (addrs_section_compar): Now a std::sort comparator.
10455 (addrs_section_sort): Change return type.
10456 (addr_info_make_relative): Change type of "addrs". Update.
10457 (default_symfile_offsets, syms_from_objfile_1)
10458 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10459 (symbol_file_add_separate): Update.
10460 (symbol_file_add): Change type of "addrs". Update.
10461 (add_symbol_file_command): Update. Remove cleanups.
10462 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10463 cleanups.
10464 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10465 * solib.c (solib_read_symbols): Update.
10466 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10467 * machoread.c (macho_symfile_offsets): Update.
10468 * jit.c (jit_bfd_try_read_symtab): Update.
10469
03afa6ef
SM
104702018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10471
10472 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10473 unittests/utils-selftests.c.
10474 * unittests/utils-selftests.c: New file.
10475
3ae9ce5d
TT
104762018-03-14 Tom Tromey <tom@tromey.com>
10477
10478 PR cli/14977:
10479 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10480 for NULL.
10481
b8c2339b
TT
104822018-03-14 Tom Tromey <tom@tromey.com>
10483
10484 PR cli/19918:
10485 * printcmd.c (printf_pointer): Allow "-" in format.
10486
80ae639d
TT
104872018-03-14 Tom Tromey <tom@tromey.com>
10488
10489 * printcmd.c (_initialize_printcmd): Add usage to printf.
10490
0d671d99
YQ
104912018-03-14 Yao Qi <qiyao@sourceware.org>
10492
10493 * MAINTAINERS: Update my email address.
10494
b577b6af
TT
104952018-03-13 Tom Tromey <tom@tromey.com>
10496
10497 * machoread.c (macho_check_dsym): Change filenamep to a
10498 std::string*.
10499 (macho_symfile_read): Update.
10500 * symfile.c (load_command): Use std::string.
10501
89a3b63e
AB
105022018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10503
10504 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10505 to error message string.
10506 (riscv_register_name): Use xsnprintf instead of sprintf.
10507 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10508 internal_error.
10509 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10510 error.
10511 (riscv_push_dummy_call): Likewise.
10512
984c7238
TT
105132018-03-12 Tom Tromey <tom@tromey.com>
10514
10515 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10516 Use gdb::byte_vector.
10517 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10518
933522d1
YQ
105192018-03-12 Yao Qi <yao.qi@linaro.org>
10520
10521 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10522 parameter type to readable_regcache.
10523 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10524 the declaration.
10525
be2daae6
TT
105262018-03-11 Tom Tromey <tom@tromey.com>
10527
10528 * dwarf2read.c (struct nextfield): Add initializers.
10529 (struct nextfnfield): Remove.
10530 (struct fnfieldlist): Add initializers. Remove "length" and
10531 "head", use std::vector.
10532 (struct decl_field_list): Remove.
10533 (struct field_info): Add initializers.
10534 <fields, baseclasses>: Now std::vector.
10535 <nbaseclasses, nfnfields, typedef_field_list_count,
10536 nested_types_list_count>: Remove.
10537 (dwarf2_add_field, dwarf2_add_type_defn)
10538 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10539 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10540 (process_structure_scope): Update.
10541
484cf504
TT
105422018-03-11 Tom Tromey <tom@tromey.com>
10543
10544 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10545 for use by std::sort.
10546 (build_type_psymtabs_1): Use std::vector.
10547
9bd8e0b0
EZ
105482018-03-09 Eli Zaretskii <eliz@gnu.org>
10549
10550 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10551 and LIBMPFR in the printed configuration.
10552
5dc1a704
TT
105532018-03-08 Tom Tromey <tom@tromey.com>
10554
10555 * source.c (get_filename_and_charpos): Use scoped_fd.
10556 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10557 (procfs_pidlist): Likewise.
10558 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10559 (iterate_over_mappings): Likewise.
10560
fdf07f3a
TT
105612018-03-08 Tom Tromey <tom@tromey.com>
10562
10563 * infcall.c (struct call_return_meta_info)
10564 <stack_temporaries_enabled>: Remove.
10565 (get_call_return_value, call_function_by_hand_dummy): Update.
10566 * thread.c (disable_thread_stack_temporaries): Remove.
10567 (enable_thread_stack_temporaries): Remove.
10568 (thread_stack_temporaries_enabled_p): Return bool.
10569 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10570 (get_last_thread_stack_temporary): Update.
10571 * eval.c (evaluate_subexp): Update.
10572 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10573 class, not a function.
10574 (value_ptr, value_vec): Remove typedefs.
10575 (class thread_info) <stack_temporaries_enabled>: Now bool.
10576 <stack_temporaries>: Now a std::vector.
10577 (thread_stack_temporaries_enabled_p)
10578 (value_in_thread_stack_temporaries): Return bool.
10579
567a3e54
SM
105802018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10581
10582 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10583 (getpkt_or_notif_sane_1): Likewise.
10584
00b40057
SM
105852018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10586
10587 * build-id.c (build_id_to_debug_bfd): Use std::string.
10588
a8dbfd58
SM
105892018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10590
10591 * build-id.c (find_separate_debug_file_by_buildid): Return
10592 std::string.
10593 * build-id.h (find_separate_debug_file_by_buildid): Return
10594 std::string.
10595 * coffread.c (coff_symfile_read): Adjust to std::string.
10596 * elfread.c (elf_symfile_read): Adjust to std::string.
10597 * symfile.c (separate_debug_file_exists): Change parameter to
10598 std::string.
10599 (find_separate_debug_file): Return std::string.
10600 (find_separate_debug_file_by_debuglink): Return std::string.
10601 * symfile.h (find_separate_debug_file_by_debuglink): Return
10602 std::string.
10603
e6a58aa8
SM
106042018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10605
10606 * common/xml-utils.c (xml_escape_text): Move code to...
10607 (xml_escape_text_append): ... this new function.
10608 * common/xml-utils.h (xml_escape_text_append): New declaration.
10609 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10610 New function.
10611 (_initialize_xml_utils): register test_xml_escape_text_append as
10612 a selftest.
10613
4ef0bef6
AH
106142018-03-07 Alan Hayward <alan.hayward@arm.com>
10615
10616 * defs.h: Remove MAX_REGISTER_SIZE.
10617 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10618 asserts.
10619 * python/py-unwind.c (pyuw_sniffer): Likewise.
10620
e0d3522b
TT
106212018-03-07 Tom Tromey <tom@tromey.com>
10622
10623 * linux-tdep.c (linux_info_proc): Update.
10624 * target.h (struct target_ops) <to_fileio_readlink>: Return
10625 optional<string>.
10626 (target_fileio_readlink): Return optional<string>.
10627 * remote.c (remote_hostio_readlink): Return optional<string>.
10628 * inf-child.c (inf_child_fileio_readlink): Return
10629 optional<string>.
10630 * target.c (target_fileio_readlink): Return optional<string>.
10631
ea005f31
AB
106322018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10633
10634 * regcache.c (cooked_read_test): Add riscv to the list of
10635 architectures that have a save_reggroup.
10636
e95a97d4
AA
106372018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10638
10639 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10640 value is not a dynamic class object.
10641
d8344f3d
TT
106422018-03-06 Tom Tromey <tom@tromey.com>
10643
10644 * rust-exp.y: Formatting fixes.
10645
9add17f2
AB
106462018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10647
10648 * riscv-tdep.c (riscv_register_name): Remove target description
10649 support.
10650 (riscv_gdbarch_init): Remove target description check.
10651
c9486dfe
AB
106522018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10653
10654 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10655 comment.
10656 * riscv-tdep.h: Likewise.
10657
d74aff3d
AB
106582018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10659
10660 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10661 (riscv_pseudo_register_write): Delete.
10662 (riscv_gdbarch_init): Remove all use of pseudo registers.
10663
7ea78b59
SM
106642018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10665
10666 * record-btrace.c (btrace_print_lines): Replace cleanup
10667 parameter with RAII equivalents.
10668 (btrace_insn_history): Replace cleanup with RAII equivalents.
10669 * ui-out.h (make_cleanup_ui_out_list_begin_end,
10670 make_cleanup_ui_out_tuple_begin_end): Remove.
10671 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10672 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10673 make_cleanup_ui_out_list_begin_end): Remove.
10674
53127008
SM
106752018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10676
10677 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10678 parameter types to std::vector. Use bool.
10679 (record_btrace_wait): Replace VEC(tp_t) with
10680 std::vector<thread_info *>.
10681 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10682
228f1508
SM
106832018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10684
10685 * record-btrace.c (record_btrace_disable_callback): Remove.
10686 (struct scoped_btrace_disable): New.
10687 (record_btrace_open): Use scoped_btrace_disable.
10688
b2970c23
AB
106892018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10690
10691 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10692 reading values from registers.
10693
fb294655
AB
106942018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10695
10696 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10697 where appropriate.
10698
cab5bb9d
AB
106992018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10700
10701 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10702 change parameter type. Use GDB's print functions, and use
10703 core_addr_to_string where appropriate.
10704 (riscv_push_dummy_call): Use core_addr_to_string where
10705 appropriate, update call to riscv_print_arg_location, and reindent
10706 a few lines.
10707 (riscv_return_value): Update call to riscv_print_arg_location.
10708
dbbb1059
AB
107092018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10710 Tim Newsome <tim@sifive.com>
10711 Albert Ou <a0u@eecs.berkeley.edu>
10712 Darius Rad <darius@bluespec.com>
10713
10714 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10715 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10716 (ALLDEPFILES): Add riscv-tdep.c
10717 * configure.tgt: Add riscv support.
10718 * riscv-tdep.c: New file.
10719 * riscv-tdep.h: New file.
10720 * NEWS: Mention new target.
10721 * MAINTAINERS: Add entry for riscv.
10722
5dc43913
AB
107232018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10724
10725 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10726 fields within aggregates.
10727
3dea1ef7
SM
107282018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
10729
10730 * record-btrace.c (btrace_print_lines): Change type of flags to
10731 gdb_disassembly_flags.
10732
7efba073
JB
107332018-03-04 John Baldwin <jhb@FreeBSD.org>
10734
10735 * fbsd-nat.c: Include "inf-ptrace.h".
10736 (USE_SIGTRAP_SIGINFO): Conditionally define.
10737 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10738 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10739 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10740 function.
10741 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10742 Likewise.
10743 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10744 Likewise.
10745 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10746 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10747 "supports_stopped_by_hw_breakpoint" target methods.
10748
386a8676
JB
107492018-03-04 John Baldwin <jhb@FreeBSD.org>
10750
10751 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10752 * fbsd-nat.c (debug_fbsd_nat): New variable.
10753 (show_fbsd_nat_debug): New function.
10754 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10755 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10756
12279366
JB
107572018-03-04 John Baldwin <jhb@FreeBSD.org>
10758
10759 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10760 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10761 prototype.
10762 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10763 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10764 method.
10765
54693cf5
SM
107662018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10767
10768 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10769 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10770
ccb2231c
SM
107712018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10772
10773 * charset.c (struct charset_vector): New.
10774 (charsets): Change type to charset_vector.
10775 (find_charset_names): Adjust.
10776 (add_one): Adjust.
10777 (_initialize_charset): Adjust.
10778
6fb16ce6
SM
107792018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10780
10781 * progspace.h (struct program_space) <deleted_solibs>: Change
10782 type to std::vector<std::string>.
10783 * progspace.c (clear_program_space_solib_cache): Adjust.
10784 * breakpoint.c (print_solib_event): Adjust.
10785 (check_status_catch_solib): Adjust.
10786 * solib.c (update_solib_list): Adjust.
10787 * ui-out.h (class ui_out) <field_string>: New overload.
10788 * ui-out.c (ui_out::field_string): New overload.
10789
564b1e3f
SM
107902018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10791
10792 * progspace.h (struct program_space): Add constructor and
10793 destructor, initialize fields.
10794 (add_program_space): Remove.
10795 * progspace.c (add_program_space): Rename to...
10796 (program_space::program_space): ... this.
10797 (release_program_space): Rename to...
10798 (program_space::~program_space): ... this.
10799 (delete_program_space): Use delete to delete program_space.
10800 (initialize_progspace): Use new to allocate program_space.
10801 * inferior.c (add_inferior_with_spaces): Likewise.
10802 (clone_inferior_command): Likewise.
10803 * infrun.c (follow_fork_inferior): Likewise.
10804 (handle_vfork_child_exec_or_exit): Likewise.
10805
e80aaf61
SM
108062018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10807
10808 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10809 (delim_string_to_char_ptr_vec): Return std::vector of
10810 gdb::unique_xmalloc_ptr.
10811 (dirnames_to_char_ptr_vec_append): Take std::vector of
10812 gdb::unique_xmalloc_ptr.
10813 (dirnames_to_char_ptr_vec): Return std::vector of
10814 gdb::unique_xmalloc_ptr.
10815 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10816 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10817 (delim_string_to_char_ptr_vec): Return an std::vector of
10818 gdb::unique_xmalloc_ptr, adjust the code.
10819 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10820 gdb::unique_xmalloc_ptr, adjust the code.
10821 (dirnames_to_char_ptr_vec): Return an std::vector of
10822 gdb::unique_xmalloc_ptr, adjust the code.
10823 * auto-load.c (auto_load_safe_path_vec): Change type to
10824 std::vector of gdb::unique_xmalloc_ptr.
10825 (auto_load_expand_dir_vars): Return an std::vector of
10826 gdb::unique_xmalloc_ptr, adjust the code.
10827 (auto_load_safe_path_vec_update): Adjust.
10828 (filename_is_in_auto_load_safe_path_vec): Adjust.
10829 (auto_load_objfile_script_1): Adjust.
10830 * build-id.c (build_id_to_debug_bfd): Adjust.
10831 * linux-thread-db.c (thread_db_load_search): Adjust.
10832 * source.c (add_path): Adjust.
10833 (openp): Adjust.
10834 * symfile.c (find_separate_debug_file): Adjust.
10835 * utils.c (do_free_char_ptr_vec): Remove.
10836 (make_cleanup_free_char_ptr_vec): Remove.
10837
ab818ade
SDJ
108382018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10839
10840 PR gdb/22907
10841 * common/pathstuff.c: Conditionally include "<windows.h>".
10842
e1e6f073
GS
108432018-03-01 Georg Sauthoff <mail@georg.so>
10844
10845 PR gdb/22888
10846 * gcore.in: Quote variables and switch interpreter to bash.
10847
c7b15a66
TT
108482018-03-01 Tom Tromey <tom@tromey.com>
10849
10850 * dwarf2read.c (alloc_discriminant_info): Fix default_index
10851 assertion. Add assertion for discriminant_index.
10852 (quirk_rust_enum): Use correct base type name in univariant case.
10853
0cb7c7b0
SM
108542018-03-01 Simon Marchi <simon.marchi@ericsson.com>
10855
10856 * record.c (get_call_history_modifiers): Return a
10857 record_print_flags.
10858 (cmd_record_call_history): Adjust.
10859 * record-btrace.c (record_btrace_call_history): Adjust.
10860 (record_btrace_call_history_range): Adjust.
10861 (record_btrace_call_history_from): Adjust.
10862 * target-debug.h (target_debug_print_record_print_flags): New.
10863 * target-delegates.c: Re-generate.
10864 * target.c (target_call_history): Change flags type.
10865 (target_call_history_from): Likewise.
10866 (target_call_history_range): Likewise.
10867 * target.h (struct target_ops) <target_call_history>: Likewise.
10868 (target_call_history_from): Likewise.
10869 (target_call_history_range): Likewise.
10870
25e3c82c
SDJ
108712018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10872 Simon Marchi <simon.marchi@polymtl.ca>
10873
10874 * common/common-utils.c: Include "sys/stat.h".
10875 (is_regular_file): Move here from "source.c"; change return
10876 type to "bool".
10877 * common/common-utils.h (is_regular_file): New prototype.
10878 * common/pathstuff.c (contains_dir_separator): New function.
10879 * common/pathstuff.h (contains_dir_separator): New prototype.
10880 * source.c: Don't include "sys/stat.h".
10881 (is_regular_file): Move to "common/common-utils.c".
10882
b4987c95
SDJ
108832018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10884
10885 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
10886 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
10887 * auto-load.c: Include "common/pathstuff.h".
10888 * common/common-def.h (current_directory): Move here.
10889 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
10890 function.
10891 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
10892 prototype.
10893 * common/pathstuff.c: New file.
10894 * common/pathstuff.h: New file.
10895 * compile/compile.c: Include "common/pathstuff.h".
10896 * defs.h (current_directory): Move to "common/common-defs.h".
10897 * dwarf2read.c: Include "common/pathstuff.h".
10898 * exec.c: Likewise.
10899 * guile/scm-safe-call.c: Likewise.
10900 * linux-thread-db.c: Likewise.
10901 * main.c: Likewise.
10902 * nto-tdep.c: Likewise.
10903 * objfiles.c: Likewise.
10904 * source.c: Likewise.
10905 * symtab.c: Likewise.
10906 * utils.c: Include "common/pathstuff.h".
10907 (gdb_realpath): Move to "common/pathstuff.c".
10908 (gdb_realpath_keepfile): Likewise.
10909 (gdb_abspath): Likewise.
10910 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
10911 (gdb_realpath_keepfile): Likewise.
10912 (gdb_abspath): Likewise.
10913
f169cfdc
JB
109142018-02-28 John Baldwin <jhb@FreeBSD.org>
10915
10916 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
10917 wildcard process pid for super_resume for kernels with a
10918 specific bug.
10919
e05cac70
PM
109202018-02-27 Phil Muldoon <pmuldoon@redhat.com>
10921
10922 * compile/compile.c (get_args): Add additional comments
10923 explaining function.
10924
55089490
TT
109252018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
10926 Tom Tromey <tom@tromey.com>
10927
10928 * target.h (memory_write_request_s): Remove typedef. Don't define
10929 VEC.
10930 (target_write_memory_blocks): Change argument to std::vector.
10931 (struct memory_write_request): Add constructor.
10932 * target-memory.c (compare_block_starting_address): Return bool.
10933 Change argument types.
10934 (claim_memory): Change arguments to use std::vector.
10935 (split_regular_and_flash_blocks, blocks_to_erase)
10936 (compute_garbled_blocks): Likewise.
10937 (cleanup_request_data, cleanup_write_requests_vector): Remove.
10938 (target_write_memory_blocks): Change argument to std::vector.
10939 * symfile.c (struct load_section_data): Add constructor and
10940 destructor. Use std::vector for "requests".
10941 (struct load_progress_data): Add initializers.
10942 (load_section_callback): Update. Use "new".
10943 (clear_memory_write_data): Remove.
10944 (generic_load): Update.
10945
0c305b61
AH
109462018-02-27 Alan Hayward <alan.hayward@arm.com>
10947
10948 * arch/aarch64.h: Use common/tdesc.h.
10949
c5196c92
MR
109502018-02-26 Maciej W. Rozycki <macro@mips.com>
10951
10952 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
10953 architecture with a 64-bit ABI.
10954
37c33887
MR
109552018-02-26 Maciej W. Rozycki <macro@mips.com>
10956
10957 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
10958 ahead of target description loading.
10959
d4dd3282
TT
109602018-02-26 Tom Tromey <tom@tromey.com>
10961
10962 * stack.c (backtrace_command_1): Update.
10963 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
10964 of "flags".
10965 * python/py-framefilter.c (py_print_frame)
10966 (gdbpy_apply_frame_filter): Change type of "flags".
10967 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
10968 of "flags".
10969 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
10970 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
10971 * extension.h (enum frame_filter_flag): Rename from
10972 frame_filter_flags.
10973 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
10974 (apply_ext_lang_frame_filter): Change type of "flags".
10975 * extension.c (apply_ext_lang_frame_filter): Change type of
10976 "flags".
10977 * extension-priv.h (struct extension_language_ops)
10978 <apply_frame_filter>: Change type of "flags".
10979
6893c19a
TT
109802018-02-26 Tom Tromey <tom@tromey.com>
10981
10982 PR python/16497:
10983 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
10984 off-by-one in py_end computation.
10985 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
10986 PRINT_MORE_FRAMES.
10987 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
10988 constant.
10989
2ddeaf8a
TT
109902018-02-26 Tom Tromey <tom@tromey.com>
10991
10992 * dwarf2read.c (struct variant_field): New.
10993 (struct nextfield) <variant>: New field.
10994 (dwarf2_add_field): Handle DW_TAG_variant_part.
10995 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
10996 discriminated union.
10997 (read_structure_type): Handle DW_TAG_variant_part.
10998 (handle_struct_member_die): New function, extracted from
10999 process_structure_scope. Handle DW_TAG_variant.
11000 (process_structure_scope): Handle discriminated unions. Call
11001 handle_struct_member_die.
11002
c9317f21
TT
110032018-02-26 Tom Tromey <tom@tromey.com>
11004
11005 * rust-lang.h (rust_last_path_segment): Declare.
11006 * rust-lang.c (rust_last_path_segment): Now public. Change
11007 contract.
11008 (struct disr_info): Remove.
11009 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11010 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11011 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11012 (rust_enum_p, rust_enum_variant): New function.
11013 (rust_underscore_fields): Remove "offset" parameter.
11014 (rust_print_enum): New function.
11015 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11016 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11017 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11018 enums.
11019 (rust_internal_print_type): New function, from rust_print_type.
11020 Remove enum code.
11021 (rust_print_type): Call rust_internal_print_type.
11022 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11023 Update enum handling.
11024 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11025 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11026 (rust_union_quirks): New functions.
11027 (process_full_comp_unit, process_full_type_unit): Call
11028 rust_union_quirks.
11029 (process_structure_scope): Update rust_unions if necessary.
11030
7c22600a
TT
110312018-02-26 Tom Tromey <tom@tromey.com>
11032
11033 * value.h (value_union_variant): Declare.
11034 * valops.c (value_union_variant): New function.
11035 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11036 (struct discriminant_info): New.
11037 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11038 enumerator.
11039 (struct main_type) <flag_discriminated_union>: New field.
11040
15ce8941
TT
110412018-02-26 Tom Tromey <tom@tromey.com>
11042
11043 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11044 unittests/unpack-selftests.c.
11045 * unittests/unpack-selftests.c: New file.
11046 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11047
48fbe735
YQ
110482018-02-26 Yao Qi <yao.qi@linaro.org>
11049
11050 * dwarf2read.c (struct partial_die_info) <read>: New method.
11051 (read_partial_die): Remove the declaration.
11052 (load_partial_dies): Update.
11053 (partial_die_info::partial_die_info):
11054 (read_partial_die): Change it to partial_die_info::read.
11055
52356b79
YQ
110562018-02-26 Yao Qi <yao.qi@linaro.org>
11057
11058 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11059 (fixup_partial_die): Remove declaration.
11060 (scan_partial_symbols): Update.
11061 (partial_die_parent_scope): Likewise.
11062 (partial_die_full_name): Likewise.
11063 (fixup_partial_die): Change it to partial_die_info::fixup.
11064
35cc7ed7
YQ
110652018-02-26 Yao Qi <yao.qi@linaro.org>
11066
11067 * dwarf2read.c (read_partial_die): Update the declaration.
11068 (load_partial_dies): Caller update.
11069 (read_partial_die): Remove one argument abbrev_len.
11070
6f06d47b
YQ
110712018-02-26 Yao Qi <yao.qi@linaro.org>
11072
11073 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11074 assignment operator.
11075 (load_partial_dies): Use ctor and copy ctor.
11076 (read_partial_die): Update.
11077 (dwarf2_cu::find_partial_die): Use ctor.
11078
d590ff25
YQ
110792018-02-26 Yao Qi <yao.qi@linaro.org>
11080
11081 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11082 (find_partial_die_in_comp_unit): Change it to
11083 dwarf2_cu::find_partial_die.
11084 (find_partial_die): Update.
11085
fd0a254f
YQ
110862018-02-26 Yao Qi <yao.qi@linaro.org>
11087
11088 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11089 is NULL.
11090
cd9983dd
YQ
110912018-02-26 Yao Qi <yao.qi@linaro.org>
11092
11093 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11094
f46cd62a
AH
110952018-02-26 Alan Hayward <alan.hayward@arm.com>
11096
11097 * arch/amd64.h: Use common/tdesc.h.
11098 * arch/i386.c: Likewise.
11099 * arch/i386.h: Likewise.
11100 * arch/tic6x.c: Likewise.
11101 * arch/tdesc.h: Move file from here...
11102 * common/tdesc.h: ...to here.
11103 * features/aarch64-core.c: Regenerate.
11104 * features/aarch64-fpu.c: Regenerate.
11105 * features/i386/32bit-avx.c: Regenerate.
11106 * features/i386/32bit-avx512.c: Regenerate.
11107 * features/i386/32bit-core.c: Regenerate.
11108 * features/i386/32bit-linux.c: Regenerate.
11109 * features/i386/32bit-mpx.c: Regenerate.
11110 * features/i386/32bit-pkeys.c: Regenerate.
11111 * features/i386/32bit-sse.c: Regenerate.
11112 * features/i386/64bit-avx.c: Regenerate.
11113 * features/i386/64bit-avx512.c: Regenerate.
11114 * features/i386/64bit-core.c: Regenerate.
11115 * features/i386/64bit-linux.c: Regenerate.
11116 * features/i386/64bit-mpx.c: Regenerate.
11117 * features/i386/64bit-pkeys.c: Regenerate.
11118 * features/i386/64bit-segments.c: Regenerate.
11119 * features/i386/64bit-sse.c: Regenerate.
11120 * features/i386/x32-core.c: Regenerate.
11121 * features/tic6x-c6xp.c: Regenerate.
11122 * features/tic6x-core.c: Regenerate.
11123 * features/tic6x-gp.c: Regenerate.
11124 * target-descriptions.c: Use common/tdesc.h.
11125 * target-descriptions.h: Likewise.
11126
9b292f68
TT
111272018-02-24 Tom Tromey <tom@tromey.com>
11128
11129 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11130 (try_thread_db_load_from_dir, thread_db_load_search): Use
11131 std::string.
11132 (info_auto_load_libthread_db_compare): Return bool. Change
11133 argument types.
11134 (info_auto_load_libthread_db): Use std::vector, std::string.
11135 Remove cleanups.
11136
281d762b
TT
111372018-02-24 Tom Tromey <tom@tromey.com>
11138
11139 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11140 std::string.
11141 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11142 std::string*.
11143 * gdbarch.c: Rebuild.
11144 * gdbarch.h: Rebuild.
11145 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11146 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11147 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11148 std::string*.
11149
9d8780f0
SM
111502018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11151
11152 * gdbtypes.h (sect_offset): Change type to uint64_t.
11153 (sect_offset_str): New function.
11154 * dwarf2read.c (create_addrmap_from_aranges): Use
11155 sect_offset_str.
11156 (error_check_comp_unit_head): Likewise.
11157 (create_debug_type_hash_table): Likewise.
11158 (read_cutu_die_from_dwo): Likewise.
11159 (init_cutu_and_read_dies): Likewise.
11160 (init_cutu_and_read_dies_no_follow): Likewise.
11161 (process_psymtab_comp_unit_reader): Likewise.
11162 (partial_die_parent_scope): Likewise.
11163 (peek_die_abbrev): Likewise.
11164 (process_queue): Likewise.
11165 (dwarf2_physname): Likewise.
11166 (read_namespace_alias): Likewise.
11167 (read_import_statement): Likewise.
11168 (create_dwo_cu_reader): Likewise.
11169 (create_cus_hash_table): Likewise.
11170 (lookup_dwo_cutu): Likewise.
11171 (inherit_abstract_dies): Likewise.
11172 (read_func_scope): Likewise.
11173 (read_call_site_scope): Likewise.
11174 (dwarf2_add_member_fn): Likewise.
11175 (read_common_block): Likewise.
11176 (read_module_type): Likewise.
11177 (read_typedef): Likewise.
11178 (read_subrange_type): Likewise.
11179 (load_partial_dies): Likewise.
11180 (read_partial_die): Likewise.
11181 (find_partial_die): Likewise.
11182 (read_str_index): Likewise.
11183 (dwarf2_string_attr): Likewise.
11184 (build_error_marker_type): Likewise.
11185 (lookup_die_type): Likewise.
11186 (dump_die_shallow): Likewise.
11187 (follow_die_ref): Likewise.
11188 (dwarf2_fetch_die_loc_sect_off): Likewise.
11189 (dwarf2_fetch_constant_bytes): Likewise.
11190 (follow_die_sig): Likewise.
11191 (get_signatured_type): Likewise.
11192 (get_DW_AT_signature_type): Likewise.
11193 (dwarf2_find_containing_comp_unit): Likewise.
11194 (set_die_type): Likewise.
11195
8ec57239
JB
111962018-02-21 John Baldwin <jhb@FreeBSD.org>
11197
11198 * arch/aarch64.c: Include "common-defs.h".
11199 * arch/amd64.c: Likewise.
11200 * arch/i386.c: Likewise.
11201
3eac2b65
TT
112022018-02-21 Tom Tromey <tom@tromey.com>
11203
11204 * value.h: (extract_field_op): Update.
11205 * eval.c (extract_field_op): Return a const char *.
11206 * expression.h (parse_expression_for_completion): Update.
11207 * completer.c (complete_expression): Update.
11208 (add_struct_fields): Make fieldname const.
11209 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11210 (mark_completion_tag, parse_exp_in_context_1): Update.
11211 (parse_expression_for_completion): Change "name" to
11212 unique_xmalloc_ptr*.
11213
6ccb583f
TT
112142018-02-21 Tom Tromey <tom@tromey.com>
11215
11216 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11217
c113ed0c
YQ
112182018-02-21 Yao Qi <yao.qi@linaro.org>
11219
11220 * avr-tdep.c (avr_read_pc): Change parameter type to
11221 readable_regcache.
11222 * gdbarch.sh (read_pc): Likewise.
11223 * gdbarch.c: Re-generated.
11224 * gdbarch.h: Re-generated.
11225 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11226 readable_regcache.
11227 * ia64-tdep.c (ia64_read_pc): Likewise.
11228 * mips-tdep.c (mips_read_pc): Likewise.
11229 * spu-tdep.c (spu_read_pc): Likewise.
11230
4c74fe6b
YQ
112312018-02-21 Yao Qi <yao.qi@linaro.org>
11232
11233 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11234 * regcache-dump.c: New file.
11235 * regcache.c: Move register_dump to regcache-dump.c.
11236 (maintenance_print_registers): Likewise.
11237 (maintenance_print_raw_registers): Likewise.
11238 (maintenance_print_cooked_registers): Likewise.
11239 (maintenance_print_register_groups): Likewise.
11240 (maintenance_print_remote_registers): Likewise.
11241 (_initialize_regcache): Likewise.
11242 * regcache.h (register_dump): Moved from regcache.c.
11243
796bb026
YQ
112442018-02-21 Yao Qi <yao.qi@linaro.org>
11245
11246 * regcache.c (regcache::regcache): Update.
11247 (regcache::invalidate): Move it to detached_regcache::invalidate.
11248 (get_thread_arch_aspace_regcache): Update.
11249 (regcache::raw_update): Update.
11250 (regcache::cooked_read): Remove some code.
11251 (regcache::cooked_read_value): Likewise.
11252 (regcache::raw_write): Remove assert on m_readonly_p.
11253 (regcache::raw_supply_integer): Move it to
11254 detached_regcache::raw_supply_integer.
11255 (regcache::raw_supply_zeroed): Likewise.
11256 * regcache.h (detached_regcache) <raw_supply_integer>: New
11257 declaration.
11258 <raw_supply_zeroed, invalidate>: Likewise.
11259 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11260 <invalidate>: Likewise.
11261 <m_readonly_p>: Removed.
11262
215c69dc
YQ
112632018-02-21 Yao Qi <yao.qi@linaro.org>
11264
11265 * infcmd.c (get_return_value): Let stop_regs point to
11266 get_current_regcache.
11267 * regcache.c (regcache::regcache): Remove.
11268 (register_dump_reg_buffer): New class.
11269 (regcache_print): Adjust.
11270 * regcache.h (regcache): Remove constructors.
11271
f3384e66
YQ
112722018-02-21 Yao Qi <yao.qi@linaro.org>
11273
11274 * regcache.c (class register_dump): New class.
11275 (register_dump_regcache, register_dump_none): New class.
11276 (register_dump_remote, register_dump_groups): New class.
11277 (regcache_print): Update.
11278 * regcache.h (regcache_dump_what): Move it to regcache.c.
11279 (regcache) <dump>: Remove.
11280
c8ec2f33
YQ
112812018-02-21 Yao Qi <yao.qi@linaro.org>
11282
11283 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11284 reg_buffer_rw *.
11285 (jit_unwind_reg_set_impl): Call raw_supply.
11286 (jit_frame_sniffer): Use reg_buffer_rw.
11287 * record-full.c (record_full_core_regbuf): Change its type.
11288 (record_full_core_open_1): Use reg_buffer_rw.
11289 (record_full_close): Likewise.
11290 (record_full_core_fetch_registers): Use regcache->raw_supply.
11291 (record_full_core_store_registers): Likewise.
11292 * regcache.c (regcache::get_register_status): Move it to
11293 reg_buffer.
11294 (regcache_raw_set_cached_value): Remove.
11295 (regcache::raw_set_cached_value): Remove.
11296 (regcache::raw_write): Call raw_supply.
11297 (regcache::raw_supply): Move it to reg_buffer_rw.
11298 * regcache.h (regcache_raw_set_cached_value): Remove.
11299 (reg_buffer_rw): New class.
11300
daf6667d
YQ
113012018-02-21 Yao Qi <yao.qi@linaro.org>
11302
11303 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11304 readonly_detached_regcache.
11305 (dummy_frame_prev_register): Use regcache->cooked_read.
11306 * frame.c (frame_save_as_regcache): Change return type.
11307 (frame_pop): Update.
11308 * frame.h (frame_save_as_regcache): Update declaration.
11309 * inferior.h (get_infcall_suspend_state_regcache): Update
11310 declaration.
11311 * infrun.c (infcall_suspend_state) <registers>: use
11312 readonly_detached_regcache.
11313 (save_infcall_suspend_state): Don't use regcache_dup.
11314 (get_infcall_suspend_state_regcache): Change return type.
11315 * linux-fork.c (struct fork_info) <savedregs>: Change to
11316 readonly_detached_regcache.
11317 <pc>: New field.
11318 (fork_save_infrun_state): Don't use regcache_dup.
11319 (info_checkpoints_command): Adjust.
11320 * mi/mi-main.c (register_changed_p): Update declaration.
11321 (mi_cmd_data_list_changed_registers): Use
11322 readonly_detached_regcache.
11323 (register_changed_p): Change parameter type to
11324 readonly_detached_regcache.
11325 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11326 readonly_detached_regcache.
11327 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11328 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11329 New.
11330 (regcache::save): Move it to reg_buffer.
11331 (regcache::restore): Change parameter type.
11332 (regcache_dup): Remove.
11333 * regcache.h (reg_buffer) <save>: New method.
11334 (readonly_detached_regcache): New class.
11335 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11336 readonly_detached_regcache.
11337 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11338
fc5b8736
YQ
113392018-02-21 Yao Qi <yao.qi@linaro.org>
11340
11341 * frame.c (frame_save_as_regcache): Use regcache method save.
11342 (frame_pop): Use regcache method restore.
11343 * infrun.c (restore_infcall_suspend_state): Likewise.
11344 * linux-fork.c (fork_load_infrun_state): Likewise.
11345 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11346 save.
11347 * regcache.c (regcache_save): Remove.
11348 (regcache::restore): More asserts.
11349 (regcache_cpy): Remove.
11350 * regcache.h (regcache_save): Remove the declaration.
11351 (regcache::restore): Move from private to public.
11352 Remove the friend declaration of regcache_cpy.
11353 (regcache_cpy): Remove declaration.
11354
849d0ba8
YQ
113552018-02-21 Yao Qi <yao.qi@linaro.org>
11356
11357 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11358 parameter type to 'readable_regcache *'.
11359 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11360 * arm-tdep.c (arm_neon_quad_read): Likewise.
11361 (arm_pseudo_read): Likewise.
11362 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11363 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11364 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11365 * gdbarch.c: Re-generated.
11366 * gdbarch.h: Re-generated.
11367 * gdbarch.sh (pseudo_register_read): Change parameter type to
11368 'readable_regcache *'.
11369 (pseudo_register_read_value): Likewise.
11370 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11371 (h8300_pseudo_register_read): Likewise.
11372 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11373 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11374 (i386_pseudo_register_read_into_value): Likewise.
11375 (i386_pseudo_register_read_value): Likewise.
11376 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11377 declaration.
11378 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11379 * m32c-tdep.c (m32c_raw_read): Likewise.
11380 (m32c_read_flg): Likewise.
11381 (m32c_banked_register): Likewise.
11382 (m32c_banked_read): Likewise.
11383 (m32c_sb_read): Likewise.
11384 (m32c_part_read): Likewise.
11385 (m32c_cat_read): Likewise.
11386 (m32c_r3r2r1r0_read): Likewise.
11387 (m32c_pseudo_register_read): Likewise.
11388 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11389 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11390 (mep_pseudo_cr64_read): Likewise.
11391 (mep_pseudo_register_read): Likewise.
11392 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11393 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11394 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11395 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11396 (regcache::cooked_read): Likewise.
11397 (regcache::cooked_read_value): Likewise.
11398 (regcache_cooked_read_signed):
11399 (regcache::cooked_read): Likewise.
11400 * regcache.h (readable_regcache): New class.
11401 (regcache): Inherit readable_regcache. Move some methods to
11402 readable_regcache.
11403 * rl78-tdep.c (rl78_pseudo_register_read): Change
11404 parameter type to 'readable_regcache *'.
11405 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11406 (e500_pseudo_register_read): Change parameter type to
11407 'readable_regcache *'.
11408 (dfp_pseudo_register_read): Likewise.
11409 (vsx_pseudo_register_read): Likewise.
11410 (efpr_pseudo_register_read): Likewise.
11411 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11412 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11413 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11414 (sh64_pseudo_register_read): Likewise.
11415 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11416 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11417 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11418 (spu_pseudo_register_read): Likewise.
11419 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11420 (xtensa_pseudo_register_read): Likewise.
11421
31716595
YQ
114222018-02-21 Yao Qi <yao.qi@linaro.org>
11423
11424 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11425 (regcache::arch): Move it to reg_buffer::arch.
11426 (regcache::register_buffer): Likewise.
11427 (regcache::assert_regnum): Likewise.
11428 (regcache::num_raw_registers): Likewise.
11429 * regcache.h (reg_buffer): New class.
11430 (regcache): Inherit reg_buffer.
11431
7104e59b
SM
114322018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11433
11434 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11435 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11436
2d8adcbd
MM
114372018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11438
11439 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11440
b5884fa7
AH
114412018-02-19 Alan Hayward <alan.hayward@arm.com>
11442
11443 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11444 (SFILES): Remove common/*.c files.
11445 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11446 * common/common.host: Add common reference.
11447 * configure.ac: Likewise.
11448 * configure: Regenerate.
11449
fd90ace4
YQ
114502018-02-16 Yao Qi <yao.qi@linaro.org>
11451
11452 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11453 (block_initialize_namespace): Use new.
11454 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11455 (dwarf2_free_objfile): Use delete.
11456 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11457 (copy_type_recursive): Use new.
11458 * gdb_obstack.h (allocate_on_obstack): New.
11459
85046ae2
YQ
114602018-02-15 Yao Qi <yao.qi@linaro.org>
11461
11462 PR gdb/22849
11463 * inferior.c (exit_inferior_1): Reset inf->control.
11464
355c559b
JB
114652018-02-15 Joel Brobecker <brobecker@adacore.com>
11466
11467 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11468 declaration.
11469
980548fd
PA
114702018-02-14 Pedro Alves <palves@redhat.com>
11471
11472 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11473 frame_cleanup_after_sniffer on exception.
11474
692d6f97
TT
114752018-02-14 Tom Tromey <tom@tromey.com>
11476
11477 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11478 const.
11479 (solib_bfd_open): Make pathname const.
11480 * solib.c (solib_bfd_open): Make pathname const.
11481 * solib-spu.c (spu_bfd_fopen): Make name const.
11482 (spu_bfd_open): Make pathname const.
11483 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11484 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11485
e0cc99a6
TT
114862018-02-14 Tom Tromey <tom@tromey.com>
11487
11488 * symfile.c (symfile_bfd_open): Update.
11489 * source.h (openp, source_full_path_of, find_and_open_source):
11490 Change argument type to unique_xmalloc_ptr.
11491 * source.c (openp): Take a unique_xmalloc_ptr.
11492 (source_full_path_of, find_and_open_source): Likewise.
11493 (open_source_file, symtab_to_fullname): Update.
11494 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11495 unique_xmalloc_ptr.
11496 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11497 (exec_file_find): Update.
11498 * psymtab.c (psymtab_to_fullname): Update.
11499 * nto-tdep.h (nto_find_and_open_solib): Update.
11500 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11501 unique_xmalloc_ptr.
11502 * exec.c (exec_file_attach): Update.
11503 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11504 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11505
b46a8d7c
TT
115062018-02-14 Tom Tromey <tom@tromey.com>
11507
11508 * solib.c: Include source.h.
11509 * nto-tdep.c: Include source.h.
11510 * mi/mi-cmd-env.c: Include source.h.
11511 * infcmd.c: Include source.h.
11512 * exec.c: Include source.h.
11513 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11514 (add_path, directory_switch, source_path, init_source_path): Move
11515 declarations...
11516 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11517 (add_path, directory_switch, source_path, init_source_path):
11518 ...here.
11519
797bc1cb
TT
115202018-02-14 Tom Tromey <tom@tromey.com>
11521
11522 * solist.h (exec_file_find, solib_find): Return
11523 unique_xmalloc_ptr.
11524 (solib_bfd_fopen): Take a const char *.
11525 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11526 (exec_file_find, solib_find): Likewise.
11527 (solib_bfd_fopen): Do not take ownership of "pathname".
11528 (solib_bfd_open): Use unique_xmalloc_ptr.
11529 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11530 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11531 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11532 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11533
f98b2e33
JB
115342018-02-14 Joel Brobecker <brobecker@adacore.com>
11535
11536 * ada-lang.c (name_match_type_from_name): Remove reference to
11537 ada_name_for_lookup in function's documentation.
11538 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11539
24b9144d
SM
115402018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11541
11542 * defs.h (enum openp_flags): New enum.
11543 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11544 Move to enum openp_flags.
11545 (openp_flags): New enum flags.
11546 (openp): Change parameter type to openp_flags.
11547 * source.c (openp): Change parameter type to openp_flags.
11548 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11549 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11550
387cd15b
SM
115512018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11552
11553 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11554 per-command.
11555
b303c6f6
AB
115562018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11557
11558 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11559 into...
11560 (class dwarf2_queue_guard): ...the destructor of this new class.
11561 (dw2_do_instantiate_symtab): Create instance of the new class
11562 dwarf2_queue_guard, remove cleanup.
11563
9c3630e9
TT
115642018-02-09 Tom Tromey <tom@tromey.com>
11565
11566 * source.c (find_source_lines): Don't reference past the end of
11567 the vector.
11568
c4e12631
MM
115692018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11570
11571 * remote.c (remote_btrace_maybe_reopen): Change error message.
11572 * btrace.c (btrace_enable): Likewise.
11573 (parse_xml_btrace): Likewise.
11574 (parse_xml_btrace_conf): Likewise.
11575
88711fbf
MM
115762018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11577
11578 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11579 (linux_enable_pt, linux_enable_bts): Call
11580 diagnose_perf_event_open_fail.
11581
17ad2a4f
MM
115822018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11583
11584 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11585 Remove parameter and change return type. Update callers. Move it.
11586 (linux_enable_bts, linux_enable_pt): Improve error message.
11587 (linux_enable_pt): Remove zero buffer size check.
11588 (linux_enable_btrace): Improve error messages. Remove NULL return
11589 check.
11590
de6242d3
MM
115912018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11592
11593 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11594 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11595 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11596 (linux_supports_pt, linux_supports_btrace): Remove.
11597 (linux_enable_bts): Call cpu_supports_bts.
11598 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11599 * remote.c (remote_supports_btrace): Remove.
11600 (init_remote_ops): Remove remote_supports_btrace.
11601 * target-delegates.c: Regenerated.
11602 * target.c (target_supports_btrace): Remove.
11603 * target.h (target_ops) <to_supports_btrace>: Remove
11604 (target_supports_btrace): Remove.
11605 * x86-linux-nat.c (x86_linux_create_target): Remove
11606 linux_supports_btrace.
11607
9ee23a85
MM
116082018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11609
11610 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11611 btrace failed.
11612 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11613 exception and use message in own exception.
11614
5c3284c1
MM
116152018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11616
11617 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11618 (perf_event_pt_event_type): Use gdb_file_up.
11619 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11620 scoped_fd, and scoped_mmap.
11621
84696f37
MM
116222018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11623
11624 * common/scoped_mmap.h: New.
11625 * unittests/scoped_mmap-selftest.c: New.
11626 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11627 unittests/scoped_mmap-selftest.c.
11628
ea4a0888
MM
116292018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11630
11631 * common/scoped_fd.h: New.
11632 * unittests/scoped_fd-selftest.c: New.
11633 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11634 unittests/scoped_fd-selftest.c.
11635
869e8290
TT
116362018-02-09 Tom Tromey <tom@tromey.com>
11637
11638 * auto-load.c (auto_load_section_scripts): Use
11639 gdb::unique_xmalloc_ptr.
11640
a37a2ae7
TT
116412018-02-09 Tom Tromey <tom@tromey.com>
11642
11643 * auto-load.c (execute_script_contents): Use std::string.
11644
4e725347
JB
116452018-02-09 Joel Brobecker <brobecker@adacore.com>
11646
11647 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11648 Python function, rather than a new command.
11649
9a897d43
TT
116502018-02-08 Tom Tromey <tom@tromey.com>
11651
11652 * solib.c (solib_find_1): Use std::string.
11653 (solib_bfd_fopen): Use unique_xmalloc_ptr.
11654
58ef3771
TT
116552018-02-08 Tom Tromey <tom@tromey.com>
11656
11657 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11658
a9abc434
TT
116592018-02-08 Tom Tromey <tom@tromey.com>
11660
11661 * source.c (find_source_lines): Use gdb::def_vector.
11662
84f27c6f
TT
116632018-02-08 Tom Tromey <tom@tromey.com>
11664
11665 * macrocmd.c (struct temporary_macro_definition): New.
11666 (macro_define_command): Use temporary_macro_definition. Remove
11667 cleanups.
11668 (free_macro_definition_ptr): Remove.
11669
0354904b
TT
116702018-02-08 Tom Tromey <tom@tromey.com>
11671
11672 * macroexp.c (maybe_expand): Use std::string.
11673
1739cf24
TT
116742018-02-08 Tom Tromey <tom@tromey.com>
11675
11676 * macroexp.c (struct macro_buffer): Add initializers for some
11677 members.
11678 (init_buffer, init_shared_buffer, free_buffer)
11679 (free_buffer_return_text): Remove.
11680 (macro_buffer): New constructors.
11681 (~macro_buffer): New destructor.
11682 (macro_buffer::set_shared): New method.
11683 (macro_buffer::resize_buffer, macro_buffer::appendc)
11684 (macro_buffer::appendmem): Now methods, not free functions.
11685 (set_token, append_tokens_without_splicing, stringify)
11686 (macro_stringify): Update.
11687 (gather_arguments): Change return type. Remove argc_p argument,
11688 add args_ptr argument. Use std::vector.
11689 (substitute_args): Remove argc argument. Accept std::vector.
11690 (expand): Update. Use std::vector.
11691 (scan, macro_expand, macro_expand_next): Update.
11692
f6c2623e
TT
116932018-02-08 Tom Tromey <tom@tromey.com>
11694
11695 * symtab.c (default_collect_symbol_completion_matches_break_on):
11696 Use unique_xmalloc_ptr.
11697 * macroscope.h: (sal_macro_scope, user_macro_scope)
11698 (default_macro_scope): Return unique_xmalloc_ptr.
11699 * macroscope.c (sal_macro_scope, user_macro_scope)
11700 (default_macro_scope): Return unique_xmalloc_ptr.
11701 * macroexp.h (macro_expand, macro_expand_once): Return
11702 unique_xmalloc_ptr.
11703 * macroexp.c (macro_expand, macro_expand_once): Return
11704 unique_xmalloc_ptr.
11705 * macrocmd.c (macro_expand_command, macro_expand_once_command)
11706 (info_macro_command, info_macros_command): Use
11707 unique_xmalloc_ptr.
11708 * compile/compile-c-support.c (write_macro_definitions): Use
11709 unique_xmalloc_ptr.
11710 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11711
c2e0e465
SM
117122018-02-07 Simon Marchi <simon.marchi@ericsson.com>
11713
11714 * value.c (value_static_field): Assign field type instead of
11715 containing type when returning an optimized out value.
11716
3f8c94b4
YQ
117172018-02-06 Yao Qi <yao.qi@linaro.org>
11718
11719 * ft32-tdep.c (ft32_read_pc): Remove.
11720 (ft32_write_pc): Remove.
11721 (ft32_gdbarch_init): Update.
11722 * m32r-tdep.c (m32r_read_pc): Remove.
11723 (m32r_gdbarch_init): Update.
11724 * mep-tdep.c (mep_read_pc): Remove.
11725 (mep_gdbarch_init): Update.
11726 * microblaze-tdep.c (microblaze_write_pc): Remove.
11727 (microblaze_gdbarch_init): Update.
11728 * mn10300-tdep.c (mn10300_read_pc): Remove.
11729 (mn10300_write_pc): Remove.
11730 (mn10300_gdbarch_init): Update.
11731 * moxie-tdep.c (moxie_read_pc): Remove.
11732 (moxie_write_pc): Remove.
11733 (moxie_gdbarch_init): Update.
11734
bca65a23
YQ
117352018-02-06 Yao Qi <yao.qi@linaro.org>
11736
11737 * expprint.c (print_subexp_standard): Handle
11738 OP_F77_UNDETERMINED_ARGLIST.
11739 (dump_subexp_body_standard): Likewise.
11740
583e3f90 117412018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 11742
583e3f90
YQ
11743 * target-descriptions.c (tdesc_element_visitor) Add empty
11744 implementations.
b8df6ca7
AH
11745 (tdesc_type): Move make_gdb_type from here.
11746 (tdesc_type_builtin): Likewise.
11747 (tdesc_type_vector): Likewise.
11748 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11749 (make_gdb_type_struct): Move from tdesc_type_with_fields.
11750 (make_gdb_type_union): Likewise.
11751 (make_gdb_type_flags): Likewise.
11752 (make_gdb_type_enum): Likewise.
11753 (make_gdb_type): New function.
11754 (tdesc_register_type): Use static make_gdb_type.
11755
e813d34a
RK
117562018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11757
11758 * infcmd.c (default_print_one_register_info): Align natural-format
11759 column values consistently one under another.
11760 (pad_to_column): New function.
11761
0eb876f5
JB
117622018-02-05 Joel Brobecker <brobecker@adacore.com>
11763
11764 * dwarf2read.c (dwarf2_physname): Move commment.
11765
0625771b
LS
117662018-02-01 Leszek Swirski <leszeks@google.com>
11767
11768 * varobj.c (varobj_formatted_print_options): Allow recursive
11769 pretty printing if pretty printing is enabled.
11770
59498c30
LS
117712018-02-01 Leszek Swirski <leszeks@google.com>
11772
11773 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11774 names after a structop as a filename.
11775
2d9e6acb
YQ
117762018-02-01 Yao Qi <yao.qi@linaro.org>
11777
11778 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11779 (arm_record_coproc_data_proc): Likewise.
11780
df95a9cf
YQ
117812018-02-01 Yao Qi <yao.qi@linaro.org>
11782
11783 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11784
07e5f5cf
NP
117852018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11786
11787 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11788 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11789
3045b475
PA
117902018-01-31 Pedro Alves <palves@redhat.com>
11791
11792 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11793 * inflow.c (child_terminal_save_inferior): Wrap reference to
11794 tcgetpgrp in HAVE_TERMIOS_H.
11795 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11796 _WIN32.
11797 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11798 always iterate over all inferiors.
11799 (gdbsim_cntrl_c): Adjust.
11800 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11801
929b5ad4
JB
118022018-01-31 Joel Brobecker <brobecker@adacore.com>
11803
11804 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11805 index type is objfile-owned if the element type is as well.
11806
29236ca2
JB
118072018-01-31 Joel Brobecker <brobecker@adacore.com>
11808
11809 GDB 8.1 released.
11810
c81e8879
PR
118112018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11812
11813 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11814 "features/s390x-linux64.c".
11815 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11816 s390_linux32 and s390x_linux64.
11817 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11818 default tdesc.
11819 * s390-tdep.c: Include "features/s390-linux32.c" and
11820 "features/s390x-linux64.c".
11821 (s390_tdesc_valid): Add check for tdesc_has_registers.
11822 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11823 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11824 tdesc_s390x_linux64.
11825 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11826 tdesc_s390x_linux64 to...
11827 * s390-tdep.h: ...here.
11828
e671cd59
PA
118292018-01-30 Pedro Alves <palves@redhat.com>
11830
11831 PR gdb/13211
11832 * config.in, configure: Regenerate.
11833 * configure.ac: Check for getpgid.
11834 * go32-nat.c (go32_pass_ctrlc): New.
11835 (go32_target): Install it.
11836 * inf-child.c (inf_child_target): Install
11837 child_terminal_save_inferior, child_pass_ctrlc and
11838 child_interrupt.
11839 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11840 (inf_ptrace_target): No longer install it.
11841 * infcmd.c (interrupt_target_1): Adjust.
11842 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11843 (child_interrupt): Declare.
11844 (inferior::terminal_state): New.
11845 * inflow.c (struct terminal_info): Update comments.
11846 (inferior_process_group): Delete.
11847 (terminal_is_ours): Delete.
11848 (gdb_tty_state): New.
11849 (child_terminal_init): Adjust.
11850 (is_gdb_terminal, sharing_input_terminal_1)
11851 (sharing_input_terminal): New functions.
11852 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
11853 Set the process's actual process group in the foreground if
11854 possible. Handle is_ours_for_output/is_ours distinction. Don't
11855 mark terminal as the inferior's if not sharing GDB's terminal.
11856 Don't check attach_flag.
11857 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11858 pass down a target_terminal_state.
11859 (child_terminal_save_inferior): New, factored out from ...
11860 (child_terminal_ours_1): ... this. Handle
11861 target_terminal_state::is_ours_for_output.
11862 (child_interrupt, child_pass_ctrlc): New.
11863 (inflow_inferior_exit): Clear the inferior's terminal_state.
11864 (copy_terminal_info): Copy the inferior's terminal state.
11865 (_initialize_inflow): Remove reference to terminal_is_ours.
11866 * inflow.h (inferior_process_group): Delete.
11867 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11868 * procfs.c (procfs_target): Don't install procfs_interrupt.
11869 (procfs_interrupt): Delete.
11870 * remote.c (remote_serial_quit_handler): Adjust.
11871 (remote_interrupt): Remove ptid parameter. Adjust.
11872 * target-delegates.c: Regenerate.
11873 * target.c: Include "terminal.h".
11874 (target_terminal::terminal_state): Rename to ...
11875 (target_terminal::m_terminal_state): ... this.
11876 (target_terminal::init): Adjust.
11877 (target_terminal::inferior): Adjust to per-inferior
11878 terminal_state.
11879 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
11880 (target_terminal::ours, target_terminal::ours_for_output): Use
11881 target_terminal_is_ours_kind.
11882 (target_interrupt): Remove ptid parameter. Adjust.
11883 (default_target_pass_ctrlc): Adjust.
11884 * target.h (target_ops::to_terminal_save_inferior): New field.
11885 (target_ops::to_interrupt): Remove ptid_t parameter.
11886 (target_interrupt): Remove ptid_t parameter. Update comment.
11887 (target_pass_ctrlc): Update comment.
11888 * target/target.h (target_terminal_state): New scoped enum,
11889 factored out of ...
11890 (target_terminal::terminal_state): ... here.
11891 (target_terminal::inferior): Update comments.
11892 (target_terminal::restore_inferior): New.
11893 (target_terminal::is_inferior, target_terminal::is_ours)
11894 (target_terminal::is_ours_for_output): Adjust.
11895 (target_terminal::scoped_restore_terminal_state): Adjust to
11896 rename, and call restore_inferior() instead of inferior().
11897 (target_terminal::scoped_restore_terminal_state::m_state): Change
11898 type.
11899 (target_terminal::terminal_state): Rename to ...
11900 (target_terminal::m_terminal_state): ... this and change type.
11901
9c3a5d93
PA
119022018-01-30 Pedro Alves <palves@redhat.com>
11903
11904 * linux-nat.c (wait_for_signal): New function.
11905 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
11906 directly.
11907 (async_terminal_is_ours)
11908 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
11909 (linux_nat_add_target): Don't override
11910 to_terminal_inferior/to_terminal_ours.
11911
69ab5edb
SDJ
119122018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
11913
11914 * remote.c (remote_follow_fork): Don't call "detach_inferior".
11915
fc8e7e75
SM
119162018-01-28 Simon Marchi <simon.marchi@ericsson.com>
11917
11918 * dwarf2read.c (free_dwo_files): Add forward-declaration.
11919 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
11920 dwarf2_per_objfile_free here.
11921 (dwarf2_per_objfile_free): Remove.
11922 (_initialize_dwarf2_read): Don't register
11923 dwarf2_per_objfile_free as a registry cleanup.
11924
b2a426e2
EZ
119252018-01-27 Eli Zaretskii <eliz@gnu.org>
11926
11927 Avoid compilation errors in MinGW native builds
11928
11929 The error is triggered by including python-internal.h, and the
11930 error message is:
11931
11932 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
11933 from build-gnulib/import/math.h:27,
11934 from d:/usr/Python26/include/pyport.h:235,
11935 from d:/usr/Python26/include/Python.h:58,
11936 from python/python-internal.h:94,
11937 from python/py-arch.c:24:
11938 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
11939 using ::hypot;
11940 ^~~~~
11941
11942 This happens because Python headers define 'hypot' to expand t
11943 '_hypot' in the Windows builds.
11944 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
11945 'hypoth'. This avoids a compilation error.
11946
0bdd8eac
AH
119472018-01-26 Alan Hayward <alan.hayward@arm.com>
11948
11949 * MAINTAINERS (Write After Approval): Fix ordering.
11950
56ae9dc3
AH
119512018-01-26 Alan Hayward <alan.hayward@arm.com>
11952
11953 * MAINTAINERS (Write After Approval): Add Alan Hayward.
11954
7433498b
AM
119552018-01-26 Alan Modra <amodra@gmail.com>
11956
11957 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
11958 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
11959 Remove nop. Make const. Comment.
11960 (powerpc32_plt_stub_so_2): New.
11961 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
11962 Correct count. Update uses.
11963 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
11964 Move common code reading PLT entry word. Correct
11965 powerpc32_plt_stub PLT address calculation.
11966 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
11967 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
11968 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
11969 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
11970 (ppc64_standard_linkage8): Likewise.
11971 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
11972 Correct insns description.
11973 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
11974
0f59d5fc
PA
119752018-01-24 Pedro Alves <palves@redhat.com>
11976
11977 GCC PR libstdc++/83906
11978 * gdbtypes.c (operator==(const dynamic_prop &,
11979 const dynamic_prop &)): New.
11980 (operator==(const range_bounds &, const range_bounds &)): New.
11981 (check_types_equal): Use them instead of memcmp.
11982 * gdbtypes.h (operator==(const dynamic_prop &,
11983 const dynamic_prop &)): Declare.
11984 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
11985 (operator==(const range_bounds &, const range_bounds &)): Declare.
11986 (operator!=(const range_bounds &, const range_bounds &)): Declare.
11987
ef8914a4
PR
119882018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11989
11990 * s390-linux-tdep.c (s390_record_address_mask)
11991 (s390_record_calc_disp_common, s390_record_calc_disp)
11992 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11993 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11994 (s390_process_record): Move to s390-tdep.c.
11995 (s390_linux_init_abi_any): Adjust.
11996 * s390-tdep.c (s390_record_address_mask)
11997 (s390_record_calc_disp_common, s390_record_calc_disp)
11998 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11999 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12000 (s390_process_record): Moved from s390-linux-tdep.c
12001 (s390_gdbarch_init): Adjust.
12002
d6e58945
PR
120032018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12004
12005 * s390-linux-nat.c (s390-tdep.h): New include.
12006 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12007 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12008 (ALLDEPFILES): Add s390-tdep.c.
12009 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12010 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12011 * s390-tdep.h: ...this. New file.
12012 * s390-linux-tdep.c (s390-tdep.h): New include.
12013 (_initialize_s390_tdep): Rename to...
12014 (_initialize_s390_linux_tdep): ...this and adjust.
12015 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12016 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12017 s390-tdep.h.
12018 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12019 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12020 (s390_is_partial_instruction, s390_software_single_step)
12021 (is_non_branch_ril, s390_displaced_step_copy_insn)
12022 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12023 (s390_prologue_data, s390_addr, s390_store, s390_load)
12024 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12025 (s390_register_call_saved, s390_guess_tracepoint_registers)
12026 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12027 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12028 (s390_pseudo_register_name, s390_pseudo_register_type)
12029 (s390_pseudo_register_read, s390_pseudo_register_write)
12030 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12031 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12032 (s390_addr_bits_remove, s390_address_class_type_flags)
12033 (s390_address_class_type_flags_to_name)
12034 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12035 (s390_function_arg_float, s390_function_arg_vector)
12036 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12037 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12038 (s390_frame_align, s390_register_return_value, s390_return_value)
12039 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12040 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12041 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12042 (s390_trad_frame_prev_register, s390_unwind_cache)
12043 (s390_prologue_frame_unwind_cache)
12044 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12045 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12046 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12047 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12048 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12049 (s390_frame_base_address, s390_local_base_address)
12050 (s390_frame_base, s390_gcc_target_options)
12051 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12052 (s390_validate_reg_range, s390_tdesc_valid)
12053 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12054 * s390-tdep.c: ...this. New file.
12055
9c0b896e
PR
120562018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12057
12058 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12059 (s390_process_record, s390_gdbarch_tdep_alloc)
12060 (s390_linux_init_abi_any): Use/set new hook.
12061
7042632b
PR
120622018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12063
12064 * s390-linux-tdep.c (osabi.h): New include.
12065 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12066 (s390_linux_init_abi_any): New functions.
12067 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12068
650f5e13
PR
120692018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12070
12071 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12072 tdesc_has_registers check
12073
47c9317e
PR
120742018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12075
12076 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12077 (s390_validate_reg_range): New macro.
12078 (s390_gdbarch_init): Adjust.
12079
095085d8
PR
120802018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12081
12082 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12083 (s390_gdbarch_tdep_alloc): Adjust.
12084 (s390_gdbarch_init): Adjust.
12085
ab9bcc67
PR
120862018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12087
12088 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12089 <have_tdb>: Change type to bool.
12090 (s390_gdbarch_tdep_alloc): Adjust.
12091 (s390_gdbarch_init): Adjust.
12092
21f6f5ff
PR
120932018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12094
12095 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12096 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12097 (s390_gdbarch_tdep_alloc): New function.
12098 (s390_gdbarch_init): Allocate tdep at start and use its fields
12099 instead of separate variables.
12100
0eb97953
PR
121012018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12102
12103 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12104 when looking for cached gdbarch and add comment for remaining.
12105
5c319bb2
PA
121062018-01-22 Pedro Alves <palves@redhat.com>
12107 Sergio Durigan Junior <sergiodj@redhat.com>
12108
12109 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12110 case.
12111
d65ce302
MR
121122018-01-22 Maciej W. Rozycki <macro@mips.com>
12113
12114 * MAINTAINERS: Update my company e-mail address.
12115
ec7a5fcb
YQ
121162018-01-22 Yao Qi <yao.qi@linaro.org>
12117
12118 * regcache.c (cooked_write_test): New function.
12119 (_initialize_regcache): Register the test.
12120
11f57cb6
YQ
121212018-01-22 Yao Qi <yao.qi@linaro.org>
12122
12123 * ia64-tdep.c (ia64_pseudo_register_read): Call
12124 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12125 * m32c-tdep.c (m32c_cat_read): Likewise.
12126 (m32c_r3r2r1r0_read): Likewise.
12127 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12128 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12129
03f50fc8
YQ
121302018-01-22 Yao Qi <yao.qi@linaro.org>
12131
12132 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12133 method raw_read instead of regcache_raw_read.
12134 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12135 * arm-tdep.c (arm_neon_quad_read): Likewise.
12136 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12137 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12138 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12139 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12140 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12141 (i386_pseudo_register_read_into_value): Likewise.
12142 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12143 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12144 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12145 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12146 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12147 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12148 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12149 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12150 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12151
dc711524
YQ
121522018-01-22 Yao Qi <yao.qi@linaro.org>
12153
12154 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12155 * configure.tgt: Remove target mt.
12156 * mt-tdep.c: Remove.
12157 * regcache.c (cooked_read_test): Remove the check for mt.
12158
3f5a868b
YQ
121592018-01-22 Yao Qi <yao.qi@linaro.org>
12160
12161 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12162 instead of gdbarch_pseudo_register_read_value.
12163
de4cb04a
JB
121642018-01-22 Joel Brobecker <brobecker@adacore.com>
12165
12166 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12167 language is Ada.
12168
a9e40818
JB
121692018-01-22 Joel Brobecker <brobecker@adacore.com>
12170
12171 * linespec.c (create_sals_line_offset): Remove code that preserved
12172 the symtab_and_line's line number.
12173
e707fc44
AB
121742018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12175
12176 * varobj.c (varobj_create): Don't set valid_block when creating a
12177 floating varobj.
12178
03d0bf7b
AB
121792018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12180
12181 * varobj.c (varobj_create): Remove out of date comment.
12182
ae451627
AB
121832018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12184
12185 PR mi/20395
12186 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12187 updating innermost block.
12188 * parse.c (innermost_block_tracker::update): Take extra type
12189 parameter, and check types match before updating innermost block.
12190 (write_dollar_variable): Update innermost block for registers.
12191 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12192 (innermost_block_tracker::innermost_block_tracker): Initialise
12193 m_types member.
12194 (innermost_block_tracker::reset): Take type parameter.
12195 (innermost_block_tracker::update): Take type parameter, and pass
12196 type through as needed.
12197 (innermost_block_tracker::m_types): New member.
12198 * varobj.c (varobj_create): Pass type when reseting innermost
12199 block.
12200
aee1fcdf
AB
122012018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12202
12203 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12204 * ada-lang.c (resolve_subexp): Likewise.
12205 * breakpoint.c (set_breakpoint_condition) Likewise.
12206 (watch_command_1) Likewise.
12207 * c-exp.y (variable): Likewise.
12208 * d-exp.y (PrimaryExpression): Likewise.
12209 * f-exp.y (variable): Likewise.
12210 * go-exp.y (variable): Likewise.
12211 * m2-exp.y (variable): Likewise.
12212 * objfiles.c (objfile::~objfile): Likewise.
12213 * p-exp.y (variable): Likewise.
12214 * parse.c (innermost_block): Change type.
12215 * parser-defs.h (class innermost_block_tracker): New.
12216 (innermost_block): Change to innermost_block_tracker.
12217 * printcmd.c (display_command): Switch to innermost_block API.
12218 (do_one_display): Likewise.
12219 * rust-exp.y (do_one_display): Likewise.
12220 * symfile.c (clear_symtab_users): Likewise.
12221 * varobj.c (varobj_create): Switch to innermost_block API, replace
12222 use of innermost_block with block stored on varobj object.
12223
396af9a1
AB
122242018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12225
12226 * expression.h (innermost_block): Remove declaration.
12227 * varobj.c: Add 'parser-defs.h' include.
12228
fcfcc376
TT
122292018-01-19 Tom Tromey <tom@tromey.com>
12230
12231 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12232 symbols in the static and global blocks.
12233
5a6c3296
JC
122342018-01-19 James Clarke <jrtc27@jrtc27.com>
12235
12236 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12237 gdb_ptrace.h, and move including gdb_wait.h ...
12238 * nat/linux-ptrace.h: ... to here.
12239
bc09b0c1
SM
122402018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12241
12242 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12243 inf_ptrace_detach_success.
12244 (inf_ptrace_detach_success): Add inferior parameter, use it
12245 instead of inferior_ptid, pass it to detach_inferior.
12246 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12247 parameter.
12248 * inferior.c (detach_inferior): Add overload that takes an
12249 inferior object.
12250 * inferior.h (detach_inferior): Likewise.
12251 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12252 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12253 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12254
6e1e1966
SM
122552018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12256
12257 * target.h (struct target_ops) <to_detach>: Add inferior
12258 parameter.
12259 (target_detach): Likewise.
12260 * target.c (dispose_inferior): Pass inferior down.
12261 (target_detach): Pass inferior down. Assert that it is equal to
12262 the current inferior.
12263 * aix-thread.c (aix_thread_detach): Pass inferior down.
12264 * corefile.c (core_file_command): Pass current_inferior() down.
12265 * corelow.c (core_detach): Add inferior parameter.
12266 * darwin-nat.c (darwin_detach): Likewise.
12267 * gnu-nat.c (gnu_detach): Likewise.
12268 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12269 * infcmd.c (detach_command): Pass current_inferior() down to
12270 target_detach.
12271 * infrun.c (follow_fork_inferior): Pass parent_inf to
12272 target_detach.
12273 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12274 target_detach.
12275 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12276 * linux-thread-db.c (thread_db_detach): Likewise.
12277 * nto-procfs.c (procfs_detach): Likewise.
12278 * procfs.c (procfs_detach): Likewise.
12279 * record.c (record_detach): Likewise.
12280 * record.h (struct inferior): Forward-declare.
12281 (record_detach): Add inferior parameter.
12282 * remote-sim.c (gdbsim_detach): Likewise.
12283 * remote.c (remote_detach_1): Likewise.
12284 (remote_detach): Likewise.
12285 (extended_remote_detach): Likewise.
12286 * sol-thread.c (sol_thread_detach): Likewise.
12287 * target-debug.h (target_debug_print_inferior_p): New macro.
12288 * target-delegates.c: Re-generate.
12289 * top.c (kill_or_detach): Pass inferior down to target_detach.
12290 * windows-nat.c (windows_detach): Add inferior parameter.
12291
6bd6f3b6
SM
122922018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12293
12294 * target.h (struct target_ops) <to_detach>: Remove args
12295 parameter.
12296 (target_detach): Likewise.
12297 * target.c (dispose_inferior): Adjust.
12298 (target_detach): Remove args parameter, adjust.
12299 * aix-thread.c (aix_thread_detach): Adjust.
12300 * corefile.c (core_file_command): Adjust.
12301 * corelow.c (core_detach): Adjust.
12302 * darwin-nat.c (darwin_detach): Adjust.
12303 * gnu-nat.c (gnu_detach): Adjust.
12304 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12305 * infcmd.c (detach_command): Adjust
12306 * infrun.c (follow_fork_inferior): Adjust.
12307 (handle_vfork_child_exec_or_exit): Adjust.
12308 * linux-fork.c (linux_fork_detach): Remove args parameter.
12309 * linux-fork.h (linux_fork_detach): Likewise.
12310 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12311 * linux-thread-db.c (thread_db_detach): Likewise.
12312 * nto-procfs.c (procfs_detach): Likewise.
12313 * procfs.c (procfs_detach): Likewise.
12314 (do_detach): Remove signo parameter.
12315 * record.c (record_detach): Remove args parameter.
12316 * record.h (record_detach): Likewise.
12317 * remote-sim.c (gdbsim_detach): Likewise.
12318 * remote.c (remote_detach_1): Likewise.
12319 (remote_detach): Likewise.
12320 (extended_remote_detach): Likewise.
12321 * sol-thread.c (sol_thread_detach): Likewise.
12322 * target-delegates.c: Re-generate.
12323 * top.c (struct qt_args) <args>: Remove field.
12324 (kill_or_detach): Don't pass args.
12325 (quit_force): Don't set args.
12326 * windows-nat.c (windows_detach): Remove args parameter.
12327
88af8ea8
YQ
123282018-01-19 Yao Qi <yao.qi@linaro.org>
12329
12330 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12331 (arm_linux_init_abi): Install it.
12332
dea445b9
YQ
123332018-01-19 Yao Qi <yao.qi@linaro.org>
12334
12335 * osabi.c (gdb_osabi_names): Extend the regexp for
12336 arm-linux-gnueabihf.
12337
4a17f768
YQ
123382018-01-18 Yao Qi <yao.qi@linaro.org>
12339
12340 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12341 m_abbrevs.
12342 (abbrev_table::add_abbrev): Update.
12343 (abbrev_table::lookup_abbrev): Update.
12344
d679c21a
YQ
123452018-01-18 Yao Qi <yao.qi@linaro.org>
12346
12347 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12348
7d937cad
SDJ
123492018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12350
12351 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12352 to "std::string".
12353
9e14690d
TT
123542018-01-17 Tom Tromey <tom@tromey.com>
12355
12356 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12357
50a82047
TT
123582018-01-17 Tom Tromey <tom@tromey.com>
12359
12360 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12361 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12362 (create_array_type_with_stride): Update.
12363 * dwarf2read.c (set_die_type): Update.
12364
c89b44cd
TT
123652018-01-17 Tom Tromey <tom@tromey.com>
12366
12367 * dwarf2read.c (delayed_method_info): Remove typedef.
12368 (dwarf2_cu::method_info): Now a std::vector.
12369 (add_to_method_list): Update.
12370 (free_delayed_list): Remove.
12371 (compute_delayed_physnames): Update.
12372 (process_full_comp_unit, process_full_type_unit): Clear the method
12373 list. Remove cleanups.
12374 (psymtab_include_file_name): Add name_holder parameter. Use
12375 unique_xmalloc_ptr.
12376 (dwarf_decode_lines): Update.
12377
fcd3b13d
SM
123782018-01-17 Tom Tromey <tom@tromey.com>
12379 Simon Marchi <simon.marchi@ericsson.com>
12380
12381 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12382 (dwarf2_per_objfile::free_cached_comp_units)
12383 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12384 (init_cutu_and_read_dies_no_follow): Update.
12385 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12386 (dwarf2_cu::~dwarf2_cu): New.
12387 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12388 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12389
685af9cd
TT
123902018-01-17 Tom Tromey <tom@tromey.com>
12391 Simon Marchi <simon.marchi@ericsson.com>
12392
12393 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12394 (struct die_reader_specs) <abbrev_table>: New member.
12395 (struct abbrev_table): Add constructor.
12396 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12397 <abbrev_obstack>: Now an auto_obstack.
12398 (abbrev_table_up): New typedef.
12399 (init_cu_die_reader): Add abbrev_table parameter.
12400 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12401 Add result_dwo_abbrev_table.
12402 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12403 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12404 Update.
12405 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12406 parameter.
12407 (skip_children): Update.
12408 (abbrev_table::alloc_abbrev): Rename from
12409 abbrev_table_alloc_abbrev.
12410 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12411 (abbrev_table::lookup_abbrev): Rename from
12412 abbrev_table_lookup_abbrev.
12413 (abbrev_table_read_table): Return abbrev_table_up.
12414 (abbrev_table_free, abbrev_table_free_cleanup)
12415 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12416 (load_partial_dies): Update.
12417
5e2db402
TT
124182018-01-17 Tom Tromey <tom@tromey.com>
12419
12420 * dwarf2read.c (dwarf2_compute_name): Update comment.
12421 (read_func_scope, read_variable): Update.
12422 (new_symbol): Remove.
12423 (new_symbol_full): Rename to new_symbol.
12424
ee7f689e 124252018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
12426
12427 PR gdb/16577
12428 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12429 a warning instead of throwing an error, set section size to 0 and return
12430 NULL.
12431 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12432
4d9b86e1
SM
124332018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12434
12435 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12436 std::string.
12437 (linux_ptrace_attach_fail_reason_string): Likewise.
12438 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12439 Likewise.
12440 (linux_ptrace_attach_fail_reason_string): Likewise.
12441 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12442
a7b2d0fb
SM
124432018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12444
12445 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12446
f517c180
EA
124472018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12448
12449 PR gdb/21559
12450 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12451 checking for fs_base/gs_base fields in struct user_regs_struct.
12452 * configure: Regenerate.
12453
7045b1ca
YQ
124542018-01-17 Yao Qi <yao.qi@linaro.org>
12455
12456 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12457 function.
12458 (aarch64_linux_init_abi): Install it to gdbarch hook
12459 gcc_target_options.
12460
db422fb2
PA
124612018-01-15 Pedro Alves <palves@redhat.com>
12462
12463 * common/signals-state-save-restore.c
12464 (save_original_signals_state): Fix typos.
12465
ba643918
SDJ
124662017-01-12 Tom Tromey <tom@tromey.com>
12467 Sergio Durigan Junior <sergiodj@redhat.com>
12468
12469 * Makefile.in (install-only): Install gdb-add-index.
12470
906b4aac
JB
124712018-01-12 John Baldwin <jhb@FreeBSD.org>
12472
12473 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12474
bdf2a94a
AA
124752018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12476
12477 * infrun.c (keep_going_pass_signal): Clear step-over info when
12478 insert_breakpoints fails.
12479
71d378ae
PA
124802018-01-11 Pedro Alves <palves@redhat.com>
12481
12482 PR gdb/22583
12483 * infrun.c (resume): Rename to ...
12484 (resume_1): ... this.
12485 (resume): Reimplement as wrapper around resume_1.
12486
3cada740
PA
124872018-01-11 Pedro Alves <palves@redhat.com>
12488
12489 PR remote/22597
12490 * remote.c (remote_parse_stop_reply): Default to the last-set
12491 general thread instead of to 'magic_null_ptid'.
12492
618daa93
PA
124932018-01-10 Pedro Alves <palves@redhat.com>
12494
12495 * language.h (language_get_symbol_name_matcher): Rename ...
12496 (get_symbol_name_matcher): ... this.
12497 * language.c (language_get_symbol_name_matcher): Ditto.
12498 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12499 callers adjusted.
12500
c63d3e8d
PA
125012018-01-10 Pedro Alves <palves@redhat.com>
12502
12503 PR gdb/22670
12504 * dwarf2read.c
12505 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12506 Adjust to use language_get_symbol_name_matcher instead of
12507 language_defn::la_get_symbol_name_matcher.
12508 * language.c (language_get_symbol_name_matcher): If in Ada mode
12509 and the lookup name is a verbatim match, return Ada's matcher.
12510 * language.h (language_get_symbol_name_matcher): Adjust comment.
12511 (ada_lookup_name_info::verbatim_p):: New method.
12512
d4c2a405
PA
125132018-01-10 Pedro Alves <palves@redhat.com>
12514
12515 PR gdb/22670
12516 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12517 minsym's language is language_auto or language_cplus, pass down
12518 language_ada instead.
12519 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12520
8825213e
PA
125212018-01-10 Pedro Alves <palves@redhat.com>
12522
12523 PR gdb/22670
12524 * minsyms.c (linkage_name_str): New function.
12525 (iterate_over_minimal_symbols): Use it.
12526
2d97a5d9
JB
125272018-01-09 John Baldwin <jhb@FreeBSD.org>
12528
12529 * NEWS: Document that 'info proc' now works on FreeBSD.
12530
92fce24d
JB
125312018-01-09 John Baldwin <jhb@FreeBSD.org>
12532
12533 * configure.ac: Check for kinfo_getfile in libutil.
12534 * configure: Regenerate.
12535 * config.in: Regenerate.
12536 * fbsd-nat.c: Include "fbsd-tdep.h".
12537 (fbsd_fetch_cmdline): New.
12538 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12539 rather than calling error.
12540 (fbsd_info_proc): New.
12541 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12542 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12543 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12544
262f62f5
JB
125452018-01-09 John Baldwin <jhb@FreeBSD.org>
12546
12547 * fbsd-nat.c (struct free_deleter): Remove.
12548 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12549
b999e203
JB
125502018-01-09 John Baldwin <jhb@FreeBSD.org>
12551
12552 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12553 NULL for an empty pathname.
12554
d2176225
JB
125552018-01-09 John Baldwin <jhb@FreeBSD.org>
12556
12557 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12558 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12559 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12560 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12561 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12562 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12563 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12564 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12565 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12566 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12567 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12568 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12569 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12570 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12571 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12572
9c4ac400
ST
125732018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12574
12575 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12576 (gnu_xfer_auxv): New function.
12577 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12578 TARGET_OBJECT_AUXV.
12579
1e5ded6c
YQ
125802018-01-08 Yao Qi <yao.qi@linaro.org>
12581 Simon Marchi <simon.marchi@ericsson.com>
12582
12583 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12584 common/selftest.c.
12585 (COMMON_OBS): Remove selftest.o.
12586 * configure.ac: Append selftest-arch.c and common/selftest.c to
12587 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12588 * configure: Re-generated.
12589 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12590 GDB_SELF_TEST.
12591 (maintenance_info_selftests): Likewise.
12592
04bafb1e
XR
125932018-01-08 Xavier Roirand <roirand@adacore.com>
12594
12595 * ada-valprint.c (val_print_packed_array_elements): Use
12596 proper number of elements when printing an array indexed
12597 by an enumeration type.
12598
518817b3
SM
125992018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12600
12601 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12602 (dw2_get_file_names_reader): Adjust.
12603 (lookup_dwo_signatured_type): Adjust.
12604 (lookup_dwp_signatured_type): Adjust.
12605 (lookup_signatured_type): Adjust.
12606 (create_type_unit_group): Adjust.
12607 (get_type_unit_group): Adjust.
12608 (process_psymtab_comp_unit_reader): Adjust.
12609 (build_type_psymtabs_reader): Adjust.
12610 (scan_partial_symbols): Adjust.
12611 (add_partial_symbol): Adjust.
12612 (add_partial_subprogram): Adjust.
12613 (peek_die_abbrev): Adjust.
12614 (fixup_go_packaging): Adjust.
12615 (process_imported_unit_die): Adjust.
12616 (dwarf2_compute_name): Adjust.
12617 (dwarf2_physname): Adjust.
12618 (read_import_statement): Adjust.
12619 (handle_DW_AT_stmt_list): Adjust.
12620 (read_file_scope): Adjust.
12621 (read_func_scope): Adjust.
12622 (read_lexical_block_scope): Adjust.
12623 (read_call_site_scope): Adjust.
12624 (read_variable): Adjust.
12625 (dwarf2_rnglists_process): Adjust.
12626 (dwarf2_ranges_process): Adjust.
12627 (dwarf2_ranges_read): Adjust.
12628 (dwarf2_get_pc_bounds): Adjust.
12629 (dwarf2_record_block_ranges): Adjust.
12630 (dwarf2_add_field): Adjust.
12631 (dwarf2_add_member_fn): Adjust.
12632 (read_structure_type): Adjust.
12633 (process_structure_scope): Adjust.
12634 (read_enumeration_type): Adjust.
12635 (read_array_type): Adjust.
12636 (mark_common_block_symbol_computed): Adjust.
12637 (read_common_block): Adjust.
12638 (read_namespace_type): Adjust.
12639 (read_namespace): Adjust.
12640 (read_module_type): Adjust.
12641 (read_tag_pointer_type): Adjust.
12642 (read_tag_ptr_to_member_type): Adjust.
12643 (read_tag_string_type): Adjust.
12644 (read_subroutine_type): Adjust.
12645 (read_typedef): Adjust.
12646 (read_base_type): Adjust.
12647 (attr_to_dynamic_prop): Adjust.
12648 (read_subrange_type): Adjust.
12649 (read_unspecified_type): Adjust.
12650 (dwarf2_read_abbrevs): Adjust.
12651 (load_partial_dies): Adjust.
12652 (read_partial_die): Adjust.
12653 (find_partial_die): Adjust.
12654 (guess_partial_die_structure_name): Adjust.
12655 (fixup_partial_die): Adjust.
12656 (read_attribute_value): Adjust.
12657 (read_addr_index): Adjust.
12658 (read_addr_index_from_leb128): Adjust.
12659 (read_str_index): Adjust.
12660 (dwarf2_string_attr): Adjust.
12661 (get_debug_line_section): Adjust.
12662 (dwarf_decode_line_header): Adjust.
12663 (lnp_state_machine::check_line_address): Adjust.
12664 (dwarf_decode_lines_1): Adjust.
12665 (dwarf_decode_lines): Adjust.
12666 (dwarf2_start_symtab): Adjust.
12667 (var_decode_location): Adjust.
12668 (new_symbol_full): Adjust.
12669 (dwarf2_const_value_data): Adjust.
12670 (dwarf2_const_value_attr): Adjust.
12671 (dwarf2_const_value): Adjust.
12672 (die_type): Adjust.
12673 (die_containing_type): Adjust.
12674 (build_error_marker_type): Adjust.
12675 (lookup_die_type): Adjust.
12676 (guess_full_die_structure_name): Adjust.
12677 (anonymous_struct_prefix): Adjust.
12678 (determine_prefix): Adjust.
12679 (dwarf2_name): Adjust.
12680 (follow_die_ref_or_sig): Adjust.
12681 (follow_die_offset): Adjust.
12682 (follow_die_ref): Adjust.
12683 (follow_die_sig_1): Adjust.
12684 (follow_die_sig): Adjust.
12685 (get_signatured_type): Adjust.
12686 (get_DW_AT_signature_type): Adjust.
12687 (decode_locdesc): Adjust.
12688 (dwarf_decode_macros): Adjust.
12689 (cu_debug_loc_section): Adjust.
12690 (fill_in_loclist_baton): Adjust.
12691 (dwarf2_symbol_mark_computed): Adjust.
12692 (init_one_comp_unit): Don't assign
12693 dwarf2_cu::dwarf2_per_objfile.
12694 (set_die_type): Adjust.
12695
ed2dc618
SM
126962018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12697
12698 * dwarf2read.c (struct mapped_debug_names): Add constructor.
12699 <dwarf2_per_objfile>: New field.
12700 (dwarf2_per_objfile): Remove global.
12701 (get_dwarf2_per_objfile): New function.
12702 (set_dwarf2_per_objfile): New function.
12703 (dwarf2_build_psymtabs_hard): Change objfile parameter to
12704 dwarf2_per_objfile.
12705 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12706 (read_abbrev_offset): Likewise.
12707 (read_indirect_string): Likewise.
12708 (read_indirect_line_string): Likewise.
12709 (read_indirect_string_at_offset): Likewise.
12710 (read_indirect_string_from_dwz): Likewise.
12711 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12712 dwarf2_per_objfile.
12713 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12714 (create_all_comp_units): Change objfile parameter to
12715 dwarf2_per_objfile.
12716 (create_all_type_units): Likewise.
12717 (process_queue): Add dwarf2_per_objfile parameter.
12718 (read_and_check_comp_unit_head): Likewise.
12719 (lookup_dwo_unit_in_dwp): Likewise.
12720 (get_dwp_file): Likewise.
12721 (process_cu_includes): Likewise.
12722 (struct free_dwo_file_cleanup_data): New struct.
12723 (dwarf2_has_info): Use get_dwarf2_per_objfile and
12724 set_dwarf2_per_objfile.
12725 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12726 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12727 context, adjust calls.
12728 (dw2_instantiate_symtab): Likewise.
12729 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12730 (dw2_get_cu): Likewise.
12731 (create_cu_from_index_list): Change objfile parameter to
12732 dwarf2_per_objfile.
12733 (create_cus_from_index_list): Get dwarf2_per_objfile from
12734 context, adjust calls.
12735 (create_cus_from_index): Likewise.
12736 (create_signatured_type_table_from_index): Change objfile
12737 parameter to dwarf2_per_objfile.
12738 (create_signatured_type_table_from_debug_names): Change objfile
12739 parameter to dwarf2_per_objfile.
12740 (create_addrmap_from_index): Likewise.
12741 (create_addrmap_from_aranges): Likewise.
12742 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12743 (dw2_setup): Remove.
12744 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12745 context.
12746 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12747 get_dwarf2_per_objfile.
12748 (dw2_forget_cached_source_info): Likewise.
12749 (dw2_map_symtabs_matching_filename): Likewise.
12750 (struct dw2_symtab_iterator) <index>: Remove.
12751 <dwarf2_per_objfile>: New field.
12752 (dw2_symtab_iter_init): Replace index parameter with
12753 dwarf2_per_objfile.
12754 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12755 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12756 (dw2_print_stats): Likewise.
12757 (dw2_dump): Likewise.
12758 (dw2_expand_symtabs_for_function): Likewise.
12759 (dw2_expand_all_symtabs): Likewise.
12760 (dw2_expand_symtabs_with_fullname): Likewise.
12761 (dw2_expand_marked_cus): Replace index and objfile parameters
12762 with dwarf2_per_objfile.
12763 (dw_expand_symtabs_matching_file_matcher): Add
12764 dwarf2_per_objfile parameter and adjust calls.
12765 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12766 adjust calls.
12767 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12768 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12769 adjust calls.
12770 (create_cus_from_debug_names_list): Replace objfile parameter
12771 with dwarf2_per_objfile and adjust calls.
12772 (create_cus_from_debug_names): Likewise.
12773 (dwarf2_read_debug_names): Likewise.
12774 (mapped_debug_names::namei_to_name): Adjust call.
12775 (dw2_debug_names_iterator::next): Likewise.
12776 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12777 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12778 (dw2_debug_names_dump): Likewise.
12779 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12780 (dw2_debug_names_expand_symtabs_matching): Likewise.
12781 (dwarf2_initialize_objfile): Likewise.
12782 (dwarf2_build_psymtabs): Likewise.
12783 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12784 this_cu.
12785 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12786 (read_and_check_comp_unit_head): Likewise.
12787 (read_abbrev_offset): Likewise.
12788 (create_debug_type_hash_table): Likewise.
12789 (create_debug_types_hash_table): Likewise.
12790 (create_all_type_units): Replace objfile parameter with
12791 dwarf2_per_objfile.
12792 (add_type_unit): Add dwarf2_per_objfile parameter.
12793 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12794 with dwarf2_per_objfile.
12795 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12796 (lookup_dwp_signatured_type): Likewise.
12797 (lookup_signatured_type): Likewise.
12798 (read_cutu_die_from_dwo): Likewise.
12799 (init_tu_and_read_dwo_dies): Likewise.
12800 (init_cutu_and_read_dies): Likewise.
12801 (init_cutu_and_read_dies_no_follow): Likewise.
12802 (allocate_type_unit_groups_table): Add objfile parameter.
12803 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12804 (get_type_unit_group): Likewise.
12805 (process_psymtab_comp_unit): Update call.
12806 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12807 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12808 (print_tu_stats): Likewise.
12809 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12810 in void* parameter.
12811 (build_type_psymtabs): Change objfile parameter to
12812 dwarf2_per_objfile.
12813 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12814 passed in void* parameter.
12815 (process_skeletonless_type_units): Change objfile parameter to
12816 dwarf2_per_objfile.
12817 (set_partial_user): Likewise.
12818 (dwarf2_build_psymtabs_hard): Likewise.
12819 (read_comp_units_from_section): Likewise.
12820 (create_all_comp_units): Likewise.
12821 (scan_partial_symbols): Update calls.
12822 (add_partial_symbol): Likewise.
12823 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12824 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12825 (process_queue): Add dwarf2_per_objfile parameter.
12826 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12827 (compute_compunit_symtab_includes): Likewise.
12828 (process_cu_includes): Add dwarf2_per_objfile parameter.
12829 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12830 (process_full_type_unit): Likewise.
12831 (process_imported_unit_die): Update call.
12832 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12833 (read_file_scope): Likewise.
12834 (allocate_dwo_file_hash_table): Add objfile parameter.
12835 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12836 (create_cus_hash_table): Likewise.
12837 (create_dwp_hash_table): Likewise.
12838 (create_dwo_unit_in_dwp_v1): Likewise.
12839 (create_dwp_v2_section): Likewise.
12840 (create_dwo_unit_in_dwp_v2): Likewise.
12841 (lookup_dwo_unit_in_dwp): Likewise.
12842 (try_open_dwop_file): Likewise.
12843 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12844 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12845 cleanup to include a reference to dwarf2_per_objfile.
12846 (open_dwp_file): Add dwarf2_per_objfile parameter.
12847 (open_and_init_dwp_file): Likewise.
12848 (get_dwp_file): Likewise.
12849 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12850 (queue_and_load_all_dwo_tus): Update call.
12851 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12852 data.
12853 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12854 (dwarf2_ranges_process): Likewise.
12855 (dwarf2_get_pc_bounds): Likewise.
12856 (mark_common_block_symbol_computed): Likewise.
12857 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12858 (dwarf2_read_abbrevs): Update call.
12859 (read_partial_die): Use dwarf2_per_objfile from cu.
12860 (find_partial_die): Likewise.
12861 (fixup_partial_die): Likewise.
12862 (read_attribute_value): Likewise.
12863 (read_indirect_string_at_offset_from): Add objfile parameter.
12864 (read_indirect_string_at_offset): Add dwarf2_per_objfile
12865 parameter.
12866 (read_indirect_string_from_dwz): Add objfile parameter.
12867 (read_indirect_string): Add objfile parameter.
12868 (read_addr_index_1): Add dwarf2_per_objfile parameter.
12869 (read_addr_index): Use dwarf2_per_objfile from cu.
12870 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12871 call dw2_setup.
12872 (read_str_index): Use dwarf2_per_objfile from cu.
12873 (get_debug_line_section): Likewise.
12874 (read_formatted_entries): Add dwarf2_per_objfile parameter.
12875 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
12876 (new_symbol_full): Use dwarf2_per_objfile from cu.
12877 (build_error_marker_type): Likewise.
12878 (lookup_die_type): Likewise.
12879 (determine_prefix): Likewise.
12880 (follow_die_offset): Likewise.
12881 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
12882 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
12883 (dwarf2_fetch_die_type_sect_off): Likewise.
12884 (dwarf2_get_die_type): Likewise.
12885 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
12886 (get_signatured_type): Likewise.
12887 (get_DW_AT_signature_type): Likewise.
12888 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
12889 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
12890 (cu_debug_loc_section): Likewise.
12891 (fill_in_loclist_baton): Likewise.
12892 (dwarf2_symbol_mark_computed): Likewise.
12893 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12894 dwarf2_per_objfile.
12895 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
12896 parameter.
12897 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12898 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
12899 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
12900 (set_die_type): Use dwarf2_free_objfile from cu.
12901 (get_die_type_at_offset): Likewise.
12902 (dwarf2_per_objfile_free): Don't assign global variable.
12903 (debug_names) <constructor>: Add dwarf2_per_objfile
12904 parameter, update m_debugstrlookup construction.
12905 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
12906 parameter.
12907 <m_dwarf2_per_objfile>: New field.
12908 <lookup>: Use m_dwarf2_per_objfile.
12909 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
12910 (psyms_seen_size): Likewise.
12911 (write_gdbindex): Replace objfile parameter with
12912 dwarf2_per_objfile.
12913 (write_debug_names): Likewise.
12914 (write_psymtabs_to_index): Likewise.
12915 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
12916 calls.
12917
e3b94546
SM
129182018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12919
12920 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
12921 <dwarf2_per_objfile>: New field.
12922 (struct dwarf2_per_cu_data) <objfile>: Remove.
12923 <dwarf2_per_objfile>: New field.
12924 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
12925 of objfile.
12926 (create_signatured_type_table_from_index): Likewise.
12927 (create_debug_type_hash_table): Likewise.
12928 (fill_in_sig_entry_from_dwo_entry): Likewise.
12929 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
12930 (create_type_unit_group): Assign dwarf2_per_objfile instead of
12931 objfile.
12932 (create_partial_symtab): Access objfile through
12933 dwarf2_per_objfile.
12934 (process_psymtab_comp_unit_reader): Likewise.
12935 (read_comp_units_from_section): Likewise.
12936 (scan_partial_symbols): Likewise.
12937 (add_partial_symbol): Likewise.
12938 (add_partial_subprogram): Likewise.
12939 (peek_die_abbrev): Likewise.
12940 (fixup_go_packaging): Likewise.
12941 (process_full_comp_unit): Likewise.
12942 (process_full_type_unit): Likewise.
12943 (process_imported_unit_die): Likewise.
12944 (dwarf2_compute_name): Likewise.
12945 (dwarf2_physname): Likewise.
12946 (read_import_statement): Likewise.
12947 (create_cus_hash_table): Assign dwarf2_physname instead of
12948 objfile.
12949 (read_func_scope): Access objfile through dwarf2_per_objfile.
12950 (read_lexical_block_scope): Likewise.
12951 (read_call_site_scope): Likewise.
12952 (read_variable): Likewise.
12953 (dwarf2_rnglists_process): Likewise.
12954 (dwarf2_ranges_process): Likewise.
12955 (dwarf2_ranges_read): Likewise.
12956 (dwarf2_record_block_ranges): Likewise.
12957 (dwarf2_add_field): Likewise.
12958 (dwarf2_add_member_fn): Likewise.
12959 (read_structure_type): Likewise.
12960 (process_structure_scope): Likewise.
12961 (read_enumeration_type): Likewise.
12962 (read_array_type): Likewise.
12963 (read_common_block): Likewise.
12964 (read_namespace_type): Likewise.
12965 (read_namespace): Likewise.
12966 (read_module_type): Likewise.
12967 (read_tag_pointer_type): Likewise.
12968 (read_tag_ptr_to_member_type): Likewise.
12969 (read_tag_string_type): Likewise.
12970 (read_subroutine_type): Likewise.
12971 (read_typedef): Likewise.
12972 (read_base_type): Likewise.
12973 (attr_to_dynamic_prop): Likewise.
12974 (read_subrange_type): Likewise.
12975 (read_unspecified_type): Likewise.
12976 (load_partial_dies): Likewise.
12977 (read_partial_die): Likewise.
12978 (find_partial_die): Likewise.
12979 (guess_partial_die_structure_name): Likewise.
12980 (fixup_partial_die): Likewise.
12981 (read_attribute_value): Likewise.
12982 (read_addr_index_from_leb128): Likewise.
12983 (dwarf2_read_addr_index): Likewise.
12984 (dwarf2_string_attr): Likewise.
12985 (lnp_state_machine::check_line_address): Likewise.
12986 (dwarf_decode_lines_1): Likewise.
12987 (dwarf_decode_lines): Likewise.
12988 (dwarf2_start_symtab): Likewise.
12989 (var_decode_location): Likewise.
12990 (new_symbol_full): Likewise.
12991 (dwarf2_const_value_data): Likewise.
12992 (dwarf2_const_value_attr): Likewise.
12993 (dwarf2_const_value): Likewise.
12994 (die_type): Likewise.
12995 (die_containing_type): Likewise.
12996 (lookup_die_type): Likewise.
12997 (guess_full_die_structure_name): Likewise.
12998 (anonymous_struct_prefix): Likewise.
12999 (dwarf2_name): Likewise.
13000 (follow_die_ref_or_sig): Likewise.
13001 (follow_die_offset): Likewise.
13002 (follow_die_ref): Likewise.
13003 (dwarf2_fetch_die_loc_sect_off): Likewise.
13004 (dwarf2_fetch_constant_bytes): Likewise.
13005 (dwarf2_fetch_die_type_sect_off): Likewise.
13006 (dwarf2_get_die_type): Likewise.
13007 (follow_die_sig): Likewise.
13008 (decode_locdesc): Likewise.
13009 (dwarf2_per_cu_objfile): Likewise.
13010 (dwarf2_per_cu_text_offset): Likewise.
13011 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13012 objfile.
13013 (set_die_type): Access objfile through
13014 dwarf2_per_objfile.
13015
b01ba14d
SM
130162018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13017
13018 * valprint.c (converted_character_d): Remove typedef.
13019 (DEF_VEC_O (converted_character_d)): Remove.
13020 (count_next_character): Use std::vector.
13021 (print_converted_chars_to_obstack): Likewise.
13022 (generic_printstr): Likewise.
13023
4d0fdd9b
SM
130242018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13025
13026 * xml-support.h (struct gdb_xml_value): Add constructor.
13027 <value>: Change type to unique_xmalloc_ptr.
13028 (gdb_xml_value_s): Remove typedef.
13029 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13030 (gdb_xml_element_start_handler): Change parameter type to
13031 std::vector.
13032 (xml_find_attribute): Likewise.
13033 * xml-support.c (xml_find_attribute): Change parameter type to
13034 std::vector and adjust.
13035 (gdb_xml_values_cleanup): Remove.
13036 (gdb_xml_parser::start_element): Adjust to std::vector.
13037 (xinclude_start_include): Change paraeter type to std::vector
13038 and adjust.
13039 * btrace.c (check_xml_btrace_version): Likewise.
13040 (parse_xml_btrace_block): Likewise.
13041 (parse_xml_btrace_pt_config_cpu): Likewise.
13042 (parse_xml_btrace_pt): Likewise.
13043 (parse_xml_btrace_conf_bts): Likewise.
13044 (parse_xml_btrace_conf_pt): Likewise.
13045 * memory-map.c (memory_map_start_memory): Likewise.
13046 (memory_map_start_property): Likewise.
13047 * osdata.c (osdata_start_osdata): Likewise.
13048 (osdata_start_item): Likewise.
13049 (osdata_start_column): Likewise.
13050 * remote.c (start_thread): Likewise.
13051 * solib-aix.c (library_list_start_library): Likewise.
13052 (library_list_start_list): Likewise.
13053 * solib-svr4.c (library_list_start_library): Likewise.
13054 (svr4_library_list_start_list): Likewise.
13055 * solib-target.c (library_list_start_segment): Likewise.
13056 (library_list_start_section): Likewise.
13057 (library_list_start_library): Likewise.
13058 (library_list_start_list): Likewise.
13059 * tracepoint.c (traceframe_info_start_memory): Likewise.
13060 (traceframe_info_start_tvar): Likewise.
13061 * xml-syscall.c (syscall_start_syscall): Likewise.
13062 * xml-tdesc.c (tdesc_start_target): Likewise.
13063 (tdesc_start_feature): Likewise.
13064 (tdesc_start_reg): Likewise.
13065 (tdesc_start_union): Likewise.
13066 (tdesc_start_struct): Likewise.
13067 (tdesc_start_flags): Likewise.
13068 (tdesc_start_enum): Likewise.
13069 (tdesc_start_field): Likewise.
13070 (tdesc_start_enum_value): Likewise.
13071 (tdesc_start_vector): Likewise.
13072
f979c73f
SM
130732018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13074
13075 * extension.h (struct xmethod_worker) <clone>: Remove.
13076 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13077 Remove.
13078 (python_xmethod_worker::clone): Remove.
13079 * valops.c (find_overload_match): Use std::move instead of
13080 clone.
13081
ba18742c
SM
130822018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13083
13084 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13085 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13086 <free_xmethod_worker_data>: Remove.
13087 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13088 <get_xmethod_arg_types>: Remove.
13089 <get_xmethod_result_type>: Remove.
13090 <invoke_xmethod>: Remove.
13091 * extension.c (new_xmethod_worker): Remove.
13092 (clone_xmethod_worker): Remove.
13093 (get_matching_xmethod_workers): Return void, pass std::vector by
13094 pointer.
13095 (get_xmethod_arg_types): Rename to...
13096 (xmethod_worker::get_arg_types): ... this, and adjust.
13097 (get_xmethod_result_type): Rename to...
13098 (xmethod_worker::get_result_type): ... this, and adjust.
13099 (invoke_xmethod): Remove.
13100 (free_xmethod_worker): Remove.
13101 (free_xmethod_worker_vec): Remove.
13102 * extension.h (enum ext_lang_rc): Move here from
13103 extension-priv.h.
13104 (struct xmethod_worker): Add constructor and destructor.
13105 <data>: Remove.
13106 <value>: Remove.
13107 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13108 virtual pure methods.
13109 <get_arg_types, get_result_type>: New methods.
13110 (xmethod_worker_ptr): Remove typedef.
13111 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13112 (xmethod_worker_vec): Remove typedef.
13113 (xmethod_worker_up): New typedef.
13114 (invoke_xmethod): Remove.
13115 (clone_xmethod_worker): Remove.
13116 (free_xmethod_worker): Remove.
13117 (free_xmethod_worker_vec): Remove.
13118 (get_xmethod_arg_types): Remove.
13119 (get_xmethod_result_type): Remove.
13120 * valops.c (find_method_list): Use std::vector, don't use
13121 intermediate vector.
13122 (value_find_oload_method_list): Use std::vector.
13123 (find_overload_match): Use std::vector.
13124 (find_oload_champ): Use std::vector.
13125 * value.c (value_free): Use operator delete.
13126 (value_of_xmethod): Rename to...
13127 (value_from_xmethod): ... this. Don't assign
13128 xmethod_worker::value, take rvalue-reference.
13129 (result_type_of_xmethod): Adjust.
13130 (call_xmethod): Adjust.
13131 * value.h: Include extension.h.
13132 (struct xmethod_worker): Don't forward-declare.
13133 (value_of_xmethod): Rename to...
13134 (value_from_xmethod): ... this, take rvalue-reference.
13135 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13136 (struct python_xmethod_worker): ... this, add constructor and
13137 destructor.
13138 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13139 (gdbpy_free_xmethod_worker_data): Rename to...
13140 (python_xmethod_worker::~python_xmethod_worker): ... this and
13141 adjust.
13142 (gdbpy_clone_xmethod_worker_data): Rename to...
13143 (python_xmethod_worker::clone): ... this and adjust.
13144 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13145 temporary vector.
13146 (gdbpy_get_xmethod_arg_types): Rename to...
13147 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13148 (gdbpy_get_xmethod_result_type): Rename to...
13149 (python_xmethod_worker::do_get_result_type): ... this and
13150 adjust.
13151 (gdbpy_invoke_xmethod): Rename to...
13152 (python_xmethod_worker::invoke): ... this and adjust.
13153 (new_python_xmethod_worker): Rename to...
13154 (python_xmethod_worker::python_xmethod_worker): ... this and
13155 adjust.
13156 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13157 Remove.
13158 (gdbpy_free_xmethod_worker_data): Remove.
13159 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13160 (gdbpy_get_xmethod_arg_types): Remove.
13161 (gdbpy_get_xmethod_result_type): Remove.
13162 (gdbpy_invoke_xmethod): Remove.
13163 * python/python.c (python_extension_ops): Remove obsolete
13164 callbacks.
13165
e379cee6
PA
131662018-01-05 Pedro Alves <palves@redhat.com>
13167
13168 PR gdb/18653
13169 * common/signals-state-save-restore.c
13170 (save_original_signals_state): New parameter 'quiet'. Warn if we
13171 find a custom handler preinstalled, instead of internal erroring.
13172 But only warn if !quiet.
13173 * common/signals-state-save-restore.h
13174 (save_original_signals_state): New parameter 'quiet'.
13175 * main.c (captured_main_1): Move save_original_signals_state call
13176 after option handling, and pass QUIET.
13177
a655456c
PA
131782018-01-05 Pedro Alves <palves@redhat.com>
13179
13180 * spu-tdep.c (spu_catch_start): Pass
13181 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13182
de63c46b
PA
131832018-01-05 Pedro Alves <palves@redhat.com>
13184
13185 PR gdb/22670
13186 * ada-lang.c (literal_symbol_name_matcher): New function.
13187 (ada_get_symbol_name_matcher): Use it for
13188 symbol_name_match_type::SEARCH_NAME.
13189 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13190 it down instead of assuming symbol_name_match_type::FULL.
13191 * block.h (block_lookup_symbol): New parameter 'match_type'.
13192 * c-valprint.c (print_unpacked_pointer): Use
13193 lookup_symbol_search_name instead of lookup_symbol.
13194 * compile/compile-object-load.c (get_out_value_type): Pass down
13195 symbol_name_match_type::SEARCH_NAME.
13196 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13197 symbol_name_match_type::FULL.
13198 * cp-support.c (cp_get_symbol_name_matcher): Handle
13199 symbol_name_match_type::SEARCH_NAME.
13200 * infrun.c (insert_exception_resume_breakpoint): Use
13201 lookup_symbol_search_name.
13202 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13203 * psymtab.c (maintenance_check_psymtabs): Use
13204 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13205 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13206 SYMBOL_SEARCH_NAME.
13207 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13208 if symbol_name_match_type::SEARCH_NAME.
13209 (lookup_symbol_in_language): Pass down
13210 symbol_name_match_type::FULL.
13211 (lookup_symbol_search_name): New.
13212 (lookup_language_this): Pass down
13213 symbol_name_match_type::SEARCH_NAME.
13214 (lookup_symbol_aux, lookup_local_symbol): New parameter
13215 'match_type'. Pass it down.
13216 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13217 (lookup_symbol_search_name): New declaration.
13218 (lookup_symbol_in_block): New 'match_type' parameter.
13219
f98fc17b
PA
132202018-01-05 Pedro Alves <palves@redhat.com>
13221
13222 PR gdb/22670
13223 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13224 ada_lookup_symbol.
13225 (ada_lookup_symbol): Reimplement in terms of
13226 ada_lookup_symbol_list, bits factored out from
13227 ada_lookup_encoded_symbol.
13228
342f8240
JB
132292018-01-05 Joel Brobecker <brobecker@adacore.com>
13230
13231 * ada-exp.y (write_object_renaming): When subscripting an array
13232 using a symbol as the index, pass the block in call to
13233 ada_lookup_encoded_symbol when looking that symbol up.
13234
7150d33c
JG
132352018-01-05 Jerome Guitton <guitton@adacore.com>
13236
13237 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13238 TYPE_INDEX_TYPE.
13239
cc0e770c
JB
132402018-01-05 Joel Brobecker <brobecker@adacore.com>
13241
13242 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13243 the case where VALUE_LVAL (val0) is not lval_memory.
13244
f79da888 132452018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
13246
13247 * ada-valprint.c (print_optional_low_bound): Handle
13248 character-indexed array printing like boolean-indexed array
13249 printing.
13250
cd385f94
JB
132512018-01-05 Joel Brobecker <brobecker@adacore.com>
13252
13253 * NEWS: Create a new section for the next release branch.
13254 Rename the section of the current branch, now that it has
13255 been cut.
13256
09aca949
JB
132572018-01-05 Joel Brobecker <brobecker@adacore.com>
13258
13259 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13260 * version.in: Bump version to 8.1.50.DATE-git.
13261
9f757bf7
XR
132622018-01-03 Xavier Roirand <roirand@adacore.com>
13263
13264 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13265 Add field.
13266 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13267 Add field.
13268 (default_exception_support_info) <catch_handlers_sym>: Add field.
13269 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13270 (ada_exception_name_addr_1): Add "catch handlers" handling.
13271 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13272 Update all callers.
13273 (create_excep_cond_exprs) <ex>: Add parameter.
13274 (re_set_exception): Update create_excep_cond_exprs call.
13275 (print_it_exception, print_one_exception, print_mention_exception)
13276 (print_recreate_exception): Add "catch handler" handling.
13277 (allocate_location_catch_handlers, re_set_catch_handlers)
13278 (check_status_catch_handlers, print_it_catch_handlers)
13279 (print_one_catch_handlers, print_mention_catch_handlers)
13280 (print_recreate_catch_handlers): New function.
13281 (catch_handlers_breakpoint_ops): New variable.
13282 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13283 Add parameter. Add "catch handler" handling.
13284 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13285 Add "catch handler" handling.
13286 (ada_exception_catchpoint_cond_string): Add "catch handler"
13287 handling.
13288 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13289 call.
13290 (catch_ada_handlers_command): New function.
13291 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13292 operations structure.
13293 (_initialize_ada_language): Add "catch handlers" command entry.
13294 * NEWS: Document "catch handlers" feature.
13295
9fe561ab
JB
132962018-01-02 Joel Brobecker <brobecker@adacore.com>
13297
13298 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13299 account when creating the array type of the slice.
13300 (ada_value_slice): Likewise.
13301
a405673c
JB
133022018-01-02 Joel Brobecker <brobecker@adacore.com>
13303
13304 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13305 New enum value.
13306 (create_array_type_with_stride): Add byte_stride_prop parameter.
13307 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13308 New parameter. Update all callers in this file.
13309 (array_type_has_dynamic_stride): New function.
13310 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13311 of arrays with dynamic byte strides.
13312 * dwarf2read.c (read_array_type): Add support for dynamic
13313 DW_AT_byte_stride attributes.
13314
74a2f8ff
JB
133152018-01-02 Joel Brobecker <brobecker@adacore.com>
13316
13317 * dwarf2read.c (read_unspecified_type): Treat
13318 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13319
e2882c85
JB
133202018-01-01 Joel Brobecker <brobecker@adacore.com>
13321
13322 Update copyright year range in all GDB files.
13323
1690bb24
JB
133242018-01-01 Joel Brobecker <brobecker@adacore.com>
13325
13326 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13327 and gdb/testsuite/gdb.base/step-line.c.
13328
0f0c98a8
JB
133292018-01-01 Joel Brobecker <brobecker@adacore.com>
13330
13331 * copyright.py (main): Dump the contents of
13332 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13333 even if BY_HAND is empty.
13334
82e1e79a
JB
133352018-01-01 Joel Brobecker <brobecker@adacore.com>
13336
13337 * top.c (print_gdb_version): Update Copyright year in version
13338 message.
13339
053f54e5 133402018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 13341
053f54e5 13342 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 13343
053f54e5 13344For older changes see ChangeLog-2017.
c906108c
SS
13345\f
13346Local Variables:
13347mode: change-log
13348left-margin: 8
13349fill-column: 74
13350version-control: never
57da7796 13351coding: utf-8
c906108c 13352End:
This page took 3.647739 seconds and 4 git commands to generate.