python: Add Inferior.progspace property
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a40bf0c2
SM
12018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2
3 * python/py-inferior.c (infpy_get_progspace): New function.
4 (inferior_object_getset): Add progspace property.
5 * NEWS: Mention the new property.
6
4a3fe98f
TT
72018-09-13 Tom Tromey <tom@tromey.com>
8
9 PR rust/23650:
10 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
11
098b2108
TT
122018-09-13 Tom Tromey <tom@tromey.com>
13
14 PR rust/23626:
15 * rust-lang.c (rust_enum_variant): Now static.
16 (rust_empty_enum_p): New function.
17 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
18 Handle empty enum.
19
1256af7d
SM
202018-09-13 Simon Marchi <simon.marchi@ericsson.com>
21
22 * python/py-inferior.c (infpy_repr): New.
23 (inferior_object_type): Register infpy_repr.
24 * python/py-objfile.c (objfpy_repr): New.
25 (objfile_object_type): Register objfpy_repr.
26
f117a62c
JB
272018-09-12 John Baldwin <jhb@FreeBSD.org>
28
29 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
30
88f22c34
JB
312018-09-12 John Baldwin <jhb@FreeBSD.org>
32
33 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
34 typo.
35
3c025cfe
SDJ
362018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
37
38 * common/common-utils.c: Don't include '<sys/stat.h>'.
39 (is_regular_file): Move to...
40 * common/filestuff.c (is_regular_file): ... here.
41 * common/common-utils.h (is_regular_file): Move to...
42 * common/filestuff.h (is_regular_file): ... here.
43
3e68067f
SM
442018-09-12 Simon Marchi <simon.marchi@ericsson.com>
45
46 * skip.c (debug_skip): New variable.
47 (skiplist_entry::do_skip_file_p): Add debug output.
48 (skiplist_entry::do_skip_gfile_p): Likewise.
49 (skiplist_entry::skip_function_p): Likewise.
50 (_initialize_step_skip): Create debug command.
51 * NEWS: Mention set/show debug skip.
52
d6be54ef
XR
532018-09-11 Xavier Roirand <roirand@adacore.com>
54
55 * darwin-nat.c (should_disable_startup_with_shell):
56 New function.
57 (darwin_nat_target::create_inferior): Add call.
58
de1ec836
XR
592018-09-11 Xavier Roirand <roirand@adacore.com>
60
61 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
62 inf_port, msg_state>: Initialize.
63 (struct darwin_thread_info) <signaled, single_step>: Change
64 type and initialize.
65 (struct darwin_thread_info) <event>: Initialize.
66
e2fc52e7
SDJ
672018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
68
69 PR gdb/23555
70 PR gdb/23558
71 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
72 guesses.
73
5e8754f9
SDJ
742018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
75
76 Revert:
77 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
78
79 PR gdb/23555
80 PR gdb/23558
81 * gnulib/aclocal.m4: Regenerate.
82 * gnulib/config.in: Regenerate.
83 * gnulib/configure: Regenerate.
84 * gnulib/import/Makefile.am: Update.
85 * gnulib/import/Makefile.in: Update.
86 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
87 * gnulib/import/_Noreturn.h: ... this.
88 * gnulib/import/alloca.in.h: Update.
89 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
90 * gnulib/import/arg-nonnull.h: ... this.
91 * gnulib/import/assure.h: Update.
92 * gnulib/import/at-func.c: Update.
93 * gnulib/import/basename-lgpl.c: Update.
94 * gnulib/import/extra/snippet/c++defs.h: Rename to...
95 * gnulib/import/c++defs.h: ... this.
96 * gnulib/import/canonicalize-lgpl.c: Update.
97 * gnulib/import/cdefs.h: Update.
98 * gnulib/import/chdir-long.c: Update.
99 * gnulib/import/chdir-long.h: Update.
100 * gnulib/import/cloexec.c: Update.
101 * gnulib/import/cloexec.h: Update.
102 * gnulib/import/close.c: Update.
103 * gnulib/import/closedir.c: Update.
104 * gnulib/import/config.charset: Update.
105 * gnulib/import/dirent-private.h: Update.
106 * gnulib/import/dirent.in.h: Update.
107 * gnulib/import/dirfd.c: Update.
108 * gnulib/import/dirname-lgpl.c: Update.
109 * gnulib/import/dirname.h: Update.
110 * gnulib/import/dosname.h: Update.
111 * gnulib/import/dup-safer-flag.c: Update.
112 * gnulib/import/dup-safer.c: Update.
113 * gnulib/import/dup.c: Update.
114 * gnulib/import/dup2.c: Update.
115 * gnulib/import/errno.in.h: Update.
116 * gnulib/import/error.c: Update.
117 * gnulib/import/error.h: Update.
118 * gnulib/import/exitfail.c: Update.
119 * gnulib/import/exitfail.h: Update.
120 * gnulib/import/extra/update-copyright: Update.
121 * gnulib/import/fchdir.c: Update.
122 * gnulib/import/fcntl.c: Update.
123 * gnulib/import/fcntl.in.h: Update.
124 * gnulib/import/fd-hook.c: Update.
125 * gnulib/import/fd-hook.h: Update.
126 * gnulib/import/fd-safer-flag.c: Update.
127 * gnulib/import/fd-safer.c: Update.
128 * gnulib/import/fdopendir.c: Update.
129 * gnulib/import/filename.h: Update.
130 * gnulib/import/filenamecat-lgpl.c: Update.
131 * gnulib/import/filenamecat.h: Update.
132 * gnulib/import/flexmember.h: Update.
133 * gnulib/import/float+.h: Update.
134 * gnulib/import/float.c: Update.
135 * gnulib/import/float.in.h: Update.
136 * gnulib/import/fnmatch.c: Update.
137 * gnulib/import/fnmatch.in.h: Update.
138 * gnulib/import/fnmatch_loop.c: Update.
139 * gnulib/import/fpucw.h: Update.
140 * gnulib/import/frexp.c: Update.
141 * gnulib/import/frexpl.c: Update.
142 * gnulib/import/fstat.c: Update.
143 * gnulib/import/fstatat.c: Update.
144 * gnulib/import/getcwd-lgpl.c: Update.
145 * gnulib/import/getcwd.c: Update.
146 * gnulib/import/getdtablesize.c: Update.
147 * gnulib/import/getlogin_r.c: Update.
148 * gnulib/import/getprogname.c: Update.
149 * gnulib/import/getprogname.h: Update.
150 * gnulib/import/gettext.h: Update.
151 * gnulib/import/gettimeofday.c: Update.
152 * gnulib/import/glob-libc.h: Update.
153 * gnulib/import/glob.c: Update.
154 * gnulib/import/glob.in.h: Update.
155 * gnulib/import/glob_internal.h: Update.
156 * gnulib/import/glob_pattern_p.c: Update.
157 * gnulib/import/globfree.c: Update.
158 * gnulib/import/hard-locale.c: Update.
159 * gnulib/import/hard-locale.h: Update.
160 * gnulib/import/intprops.h: Update.
161 * gnulib/import/inttypes.in.h: Update.
162 * gnulib/import/isnan.c: Update.
163 * gnulib/import/isnand-nolibm.h: Update.
164 * gnulib/import/isnand.c: Update.
165 * gnulib/import/isnanl-nolibm.h: Update.
166 * gnulib/import/isnanl.c: Update.
167 * gnulib/import/itold.c: Update.
168 * gnulib/import/libc-config.h: Update.
169 * gnulib/import/limits.in.h: Update.
170 * gnulib/import/localcharset.c: Update.
171 * gnulib/import/localcharset.h: Update.
172 * gnulib/import/localtime-buffer.c: Update.
173 * gnulib/import/localtime-buffer.h: Update.
174 * gnulib/import/lstat.c: Update.
175 * gnulib/import/m4/00gnulib.m4: Update.
176 * gnulib/import/m4/__inline.m4: Update.
177 * gnulib/import/m4/absolute-header.m4: Update.
178 * gnulib/import/m4/alloca.m4: Update.
179 * gnulib/import/m4/builtin-expect.m4: Update.
180 * gnulib/import/m4/canonicalize.m4: Update.
181 * gnulib/import/m4/chdir-long.m4: Update.
182 * gnulib/import/m4/close.m4: Update.
183 * gnulib/import/m4/closedir.m4: Update.
184 * gnulib/import/m4/configmake.m4: Update.
185 * gnulib/import/m4/d-ino.m4: Update.
186 * gnulib/import/m4/d-type.m4: Update.
187 * gnulib/import/m4/dirent_h.m4: Update.
188 * gnulib/import/m4/dirfd.m4: Update.
189 * gnulib/import/m4/dirname.m4: Update.
190 * gnulib/import/m4/double-slash-root.m4: Update.
191 * gnulib/import/m4/dup.m4: Update.
192 * gnulib/import/m4/dup2.m4: Update.
193 * gnulib/import/m4/eealloc.m4: Update.
194 * gnulib/import/m4/environ.m4: Update.
195 * gnulib/import/m4/errno_h.m4: Update.
196 * gnulib/import/m4/error.m4: Update.
197 * gnulib/import/m4/exponentd.m4: Update.
198 * gnulib/import/m4/exponentl.m4: Update.
199 * gnulib/import/m4/extensions.m4: Update.
200 * gnulib/import/m4/extern-inline.m4: Update.
201 * gnulib/import/m4/fchdir.m4: Update.
202 * gnulib/import/m4/fcntl-o.m4: Update.
203 * gnulib/import/m4/fcntl.m4: Update.
204 * gnulib/import/m4/fcntl_h.m4: Update.
205 * gnulib/import/m4/fdopendir.m4: Update.
206 * gnulib/import/m4/filenamecat.m4: Update.
207 * gnulib/import/m4/flexmember.m4: Update.
208 * gnulib/import/m4/float_h.m4: Update.
209 * gnulib/import/m4/fnmatch.m4: Update.
210 * gnulib/import/m4/fnmatch_h.m4: Update.
211 * gnulib/import/m4/fpieee.m4: Update.
212 * gnulib/import/m4/frexp.m4: Update.
213 * gnulib/import/m4/frexpl.m4: Update.
214 * gnulib/import/m4/fstat.m4: Update.
215 * gnulib/import/m4/fstatat.m4: Update.
216 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
217 * gnulib/import/m4/getcwd-path-max.m4: Update.
218 * gnulib/import/m4/getcwd.m4: Update.
219 * gnulib/import/m4/getdtablesize.m4: Update.
220 * gnulib/import/m4/getlogin.m4: Update.
221 * gnulib/import/m4/getlogin_r.m4: Update.
222 * gnulib/import/m4/getpagesize.m4: Update.
223 * gnulib/import/m4/getprogname.m4: Update.
224 * gnulib/import/m4/gettimeofday.m4: Update.
225 * gnulib/import/m4/glibc21.m4: Update.
226 * gnulib/import/m4/glob.m4: Update.
227 * gnulib/import/m4/glob_h.m4: Update.
228 * gnulib/import/m4/gnulib-cache.m4: Update.
229 * gnulib/import/m4/gnulib-common.m4: Update.
230 * gnulib/import/m4/gnulib-comp.m4: Update.
231 * gnulib/import/m4/gnulib-tool.m4: Update.
232 * gnulib/import/m4/hard-locale.m4: Update.
233 * gnulib/import/m4/include_next.m4: Update.
234 * gnulib/import/m4/inttypes-pri.m4: Update.
235 * gnulib/import/m4/inttypes.m4: Update.
236 * gnulib/import/m4/isnand.m4: Update.
237 * gnulib/import/m4/isnanl.m4: Update.
238 * gnulib/import/m4/largefile.m4: Update.
239 * gnulib/import/m4/limits-h.m4: Update.
240 * gnulib/import/m4/localcharset.m4: Update.
241 * gnulib/import/m4/locale-fr.m4: Update.
242 * gnulib/import/m4/locale-ja.m4: Update.
243 * gnulib/import/m4/locale-zh.m4: Update.
244 * gnulib/import/m4/localtime-buffer.m4: Update.
245 * gnulib/import/m4/longlong.m4: Update.
246 * gnulib/import/m4/lstat.m4: Update.
247 * gnulib/import/m4/malloc.m4: Update.
248 * gnulib/import/m4/malloca.m4: Update.
249 * gnulib/import/m4/math_h.m4: Update.
250 * gnulib/import/m4/mbrtowc.m4: Update.
251 * gnulib/import/m4/mbsinit.m4: Update.
252 * gnulib/import/m4/mbsrtowcs.m4: Update.
253 * gnulib/import/m4/mbstate_t.m4: Update.
254 * gnulib/import/m4/memchr.m4: Update.
255 * gnulib/import/m4/memmem.m4: Update.
256 * gnulib/import/m4/mempcpy.m4: Update.
257 * gnulib/import/m4/memrchr.m4: Update.
258 * gnulib/import/m4/mkdir.m4: Update.
259 * gnulib/import/m4/mkstemp.m4: Update.
260 * gnulib/import/m4/mmap-anon.m4: Update.
261 * gnulib/import/m4/mode_t.m4: Update.
262 * gnulib/import/m4/msvc-inval.m4: Update.
263 * gnulib/import/m4/msvc-nothrow.m4: Update.
264 * gnulib/import/m4/multiarch.m4: Update.
265 * gnulib/import/m4/nocrash.m4: Update.
266 * gnulib/import/m4/off_t.m4: Update.
267 * gnulib/import/m4/onceonly.m4: Update.
268 * gnulib/import/m4/open-cloexec.m4: Update.
269 * gnulib/import/m4/open.m4: Update.
270 * gnulib/import/m4/openat.m4: Update.
271 * gnulib/import/m4/opendir.m4: Update.
272 * gnulib/import/m4/pathmax.m4: Update.
273 * gnulib/import/m4/rawmemchr.m4: Update.
274 * gnulib/import/m4/readdir.m4: Update.
275 * gnulib/import/m4/readlink.m4: Update.
276 * gnulib/import/m4/realloc.m4: Update.
277 * gnulib/import/m4/rename.m4: Update.
278 * gnulib/import/m4/rewinddir.m4: Update.
279 * gnulib/import/m4/rmdir.m4: Update.
280 * gnulib/import/m4/save-cwd.m4: Update.
281 * gnulib/import/m4/secure_getenv.m4: Update.
282 * gnulib/import/m4/setenv.m4: Update.
283 * gnulib/import/m4/signal_h.m4: Update.
284 * gnulib/import/m4/ssize_t.m4: Update.
285 * gnulib/import/m4/stat-time.m4: Update.
286 * gnulib/import/m4/stat.m4: Update.
287 * gnulib/import/m4/std-gnu11.m4: Update.
288 * gnulib/import/m4/stdbool.m4: Update.
289 * gnulib/import/m4/stddef_h.m4: Update.
290 * gnulib/import/m4/stdint.m4: Update.
291 * gnulib/import/m4/stdio_h.m4: Update.
292 * gnulib/import/m4/stdlib_h.m4: Update.
293 * gnulib/import/m4/strchrnul.m4: Update.
294 * gnulib/import/m4/strdup.m4: Update.
295 * gnulib/import/m4/strerror.m4: Update.
296 * gnulib/import/m4/string_h.m4: Update.
297 * gnulib/import/m4/strstr.m4: Update.
298 * gnulib/import/m4/strtok_r.m4: Update.
299 * gnulib/import/m4/sys_socket_h.m4: Update.
300 * gnulib/import/m4/sys_stat_h.m4: Update.
301 * gnulib/import/m4/sys_time_h.m4: Update.
302 * gnulib/import/m4/sys_types_h.m4: Update.
303 * gnulib/import/m4/tempname.m4: Update.
304 * gnulib/import/m4/time_h.m4: Update.
305 * gnulib/import/m4/unistd-safer.m4: Update.
306 * gnulib/import/m4/unistd_h.m4: Update.
307 * gnulib/import/m4/warn-on-use.m4: Update.
308 * gnulib/import/m4/wchar_h.m4: Update.
309 * gnulib/import/m4/wchar_t.m4: Update.
310 * gnulib/import/m4/wctype_h.m4: Update.
311 * gnulib/import/m4/wint_t.m4: Update.
312 * gnulib/import/malloc.c: Update.
313 * gnulib/import/malloc/scratch_buffer.h: Update.
314 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
315 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
316 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
317 * gnulib/import/malloca.c: Update.
318 * gnulib/import/malloca.h: Update.
319 * gnulib/import/malloca.valgrind: Update.
320 * gnulib/import/math.in.h: Update.
321 * gnulib/import/mbrtowc.c: Update.
322 * gnulib/import/mbsinit.c: Update.
323 * gnulib/import/mbsrtowcs-impl.h: Update.
324 * gnulib/import/mbsrtowcs-state.c: Update.
325 * gnulib/import/mbsrtowcs.c: Update.
326 * gnulib/import/memchr.c: Update.
327 * gnulib/import/memmem.c: Update.
328 * gnulib/import/mempcpy.c: Update.
329 * gnulib/import/memrchr.c: Update.
330 * gnulib/import/mkdir.c: Update.
331 * gnulib/import/mkstemp.c: Update.
332 * gnulib/import/msvc-inval.c: Update.
333 * gnulib/import/msvc-inval.h: Update.
334 * gnulib/import/msvc-nothrow.c: Update.
335 * gnulib/import/msvc-nothrow.h: Update.
336 * gnulib/import/open.c: Update.
337 * gnulib/import/openat-die.c: Update.
338 * gnulib/import/openat-priv.h: Update.
339 * gnulib/import/openat-proc.c: Update.
340 * gnulib/import/openat.c: Update.
341 * gnulib/import/openat.h: Update.
342 * gnulib/import/opendir.c: Update.
343 * gnulib/import/pathmax.h: Update.
344 * gnulib/import/pipe-safer.c: Update.
345 * gnulib/import/rawmemchr.c: Update.
346 * gnulib/import/readdir.c: Update.
347 * gnulib/import/readlink.c: Update.
348 * gnulib/import/realloc.c: Update.
349 * gnulib/import/ref-add.sin: Update.
350 * gnulib/import/ref-del.sin: Update.
351 * gnulib/import/rename.c: Update.
352 * gnulib/import/rewinddir.c: Update.
353 * gnulib/import/rmdir.c: Update.
354 * gnulib/import/same-inode.h: Update.
355 * gnulib/import/save-cwd.c: Update.
356 * gnulib/import/save-cwd.h: Update.
357 * gnulib/import/scratch_buffer.h: Update.
358 * gnulib/import/secure_getenv.c: Update.
359 * gnulib/import/setenv.c: Update.
360 * gnulib/import/signal.in.h: Update.
361 * gnulib/import/stat-time.c: Update.
362 * gnulib/import/stat-time.h: Update.
363 * gnulib/import/stat-w32.c: Update.
364 * gnulib/import/stat-w32.h: Update.
365 * gnulib/import/stat.c: Update.
366 * gnulib/import/stdbool.in.h: Update.
367 * gnulib/import/stddef.in.h: Update.
368 * gnulib/import/stdint.in.h: Update.
369 * gnulib/import/stdio.in.h: Update.
370 * gnulib/import/stdlib.in.h: Update.
371 * gnulib/import/str-two-way.h: Update.
372 * gnulib/import/strchrnul.c: Update.
373 * gnulib/import/strdup.c: Update.
374 * gnulib/import/streq.h: Update.
375 * gnulib/import/strerror-override.c: Update.
376 * gnulib/import/strerror-override.h: Update.
377 * gnulib/import/strerror.c: Update.
378 * gnulib/import/string.in.h: Update.
379 * gnulib/import/stripslash.c: Update.
380 * gnulib/import/strnlen1.c: Update.
381 * gnulib/import/strnlen1.h: Update.
382 * gnulib/import/strstr.c: Update.
383 * gnulib/import/strtok_r.c: Update.
384 * gnulib/import/sys_stat.in.h: Update.
385 * gnulib/import/sys_time.in.h: Update.
386 * gnulib/import/sys_types.in.h: Update.
387 * gnulib/import/tempname.c: Update.
388 * gnulib/import/tempname.h: Update.
389 * gnulib/import/time.in.h: Update.
390 * gnulib/import/unistd--.h: Update.
391 * gnulib/import/unistd-safer.h: Update.
392 * gnulib/import/unistd.in.h: Update.
393 * gnulib/import/unsetenv.c: Update.
394 * gnulib/import/verify.h: Update.
395 * gnulib/import/extra/snippet/warn-on-use.h: Update.
396 * gnulib/import/wchar.in.h: Update.
397 * gnulib/import/wctype.in.h: Update.
398 * gnulib/import/xalloc-oversized.h: Update.
399 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
400 "53e2c179f26a890fa6685af4b6c1397ee370433b".
401
8ec23583
SM
4022018-09-10 Simon Marchi <simon.marchi@ericsson.com>
403
404 * record-btrace.c (get_thread_current_frame): Remove
405 old_inferior_ptid.
406
1f5d1570
JG
4072018-09-10 Jerome Guitton <guitton@adacore.com>
408
409 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
410 with check_tag to 1 if and only if the type is tagged and the
411 component being searched cannot been found in the current
412 view. Otherwise, always call ada_to_fixed_type with
413 check_tag to 0.
414
d91e9ea8
XR
4152018-09-10 Xavier Roirand <roirand@adacore.com>
416
417 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
418 declaration.
419 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
420 * ada-varobj.c (ada_varobj_get_number_of_children,
421 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
422
cc330e39
XR
4232018-09-10 Xavier Roirand <roirand@adacore.com>
424
425 * ada-valprint.c (ada_value_print): Use type instead of
426 enclosing type.
427
b9c50e9a
XR
4282018-09-10 Xavier Roirand <roirand@adacore.com>
429
430 * ada-lang.c (ada_value_subscript): Handle case when parameter is
431 an array of access to unconstrained array.
432
736ade86
XR
4332018-09-10 Xavier Roirand <roirand@adacore.com>
434
435 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
436 (ada_check_typedef): Use it.
437
2963898f
XR
4382018-09-10 Xavier Roirand <roirand@adacore.com>
439
440 * ada-varobj.c (ada_varobj_describe_struct_child)
441 (ada_varobj_describe_child): Handle union case like struct one.
442
a154931e
TT
4432018-09-10 Tom Tromey <tom@tromey.com>
444
445 PR python/18380:
446 * python/python.c (_initialize_python): Make example in "python"
447 help work in Python 3.
448
23c4651c
EZ
4492018-09-10 Eli Zaretskii <eliz@gnu.org>
450
451 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
452 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
453 $(EXEEXT) to the script, as it is not a program.
454
a5c5eda7
SM
4552018-09-09 Simon Marchi <simon.marchi@ericsson.com>
456
457 * python/py-prettyprint.c (pretty_print_one_value): Return
458 gdbpy_ref<>.
459 (print_string_repr): Adjust.
460 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
461 * python/python-internal.h (apply_varobj_pretty_printer): Return
462 gdbpy_ref<>.
463 * varobj.c (varobj_value_get_print_value): Adjust.
464
332cf4c9
TT
4652018-09-08 Tom Tromey <tom@tromey.com>
466
467 PR python/16047:
468 * python/py-prettyprint.c (pretty_print_one_value): Check for
469 to_string method.
470
424da6cf
JB
4712018-09-08 Joel Brobecker <brobecker@adacore.com>
472
473 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
474 replace_operator_with_call.
475
95f39a5b
JB
4762018-09-08 Joel Brobecker <brobecker@adacore.com>
477
478 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
479
16b9eb7b
JB
4802018-09-08 Joel Brobecker <brobecker@adacore.com>
481
482 * ada-typeprint.c (print_range): Print the bounds using TYPE
483 rather than its TYPE_TARGET_TYPE.
484
d8ce9127
JB
4852018-09-08 Joel Brobecker <brobecker@adacore.com>
486
487 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
488 call to ada_to_fixed_value_create.
489
0d81f350
JG
4902018-09-08 Jerome Guitton <guitton@adacore.com>
491
492 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
493
57aff202
JB
4942018-09-08 Joel Brobecker <brobecker@adacore.com>
495
496 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
497 by calls to error.
498
fb44b1a7
JB
4992018-09-08 Joel Brobecker <brobecker@adacore.com>
500
501 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
502 Move update of loop variable "fi".
503
2a62dfa9
JB
5042018-09-08 Joel Brobecker <brobecker@adacore.com>
505
506 * ada-lang.c (value_assign_to_component): In the case of
507 big-endian targets, extract the bits of the given VAL
508 using an src_offset of zero if container is not a scalar.
509
739ab2e9
SS
5102018-09-06 Simon Ser <contact@emersion.fr>
511
512 PR gdb/23105
513 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
514 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
515 * fbsd-tdep.c (fbsd_make_note_desc): New.
516 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
517 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
518 * target.h (enum target_object) Add FreeBSD-specific
519 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
520
d82b3862
SM
5212018-09-06 Simon Marchi <simon.marchi@ericsson.com>
522
523 * compile/compile-c.h (generate_c_for_variable_locations):
524 Change reference to pointer.
525 * compile/compile-c-support.c (compile_program) <compute>:
526 Likewise.
527 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
528 (generate_c_for_for_one_variable): Likewise
529 (generate_c_for_variable_locations): Likewise
530 * compile/compile-c-types.c (compile_c_instance::convert_type):
531 Likewise
532 * compile/compile-cplus-symbols.c (convert_one_symbol):
533 std::move the scope passed to enter_scope.
534 * compile/compile-cplus-types.c
535 (compile_cplus_instance::enter_scope): Make parameter
536 rvalue-reference.
537 (compile_cplus_instance::new_scope): Change reference to
538 pointer.
539 (compile_cplus_instance::convert_type): Likewise
540 (compile_cplus_convert_typedef): std::move the scope passed to
541 enter_scope.
542 (compile_cplus_convert_struct_or_union): Likewise.
543 (compile_cplus_convert_enum): Likewise.
544 (compile_cplus_convert_namespace): Likewise.
545 * compile/compile-cplus.h (compile_cplus_instance)
546 <enter_scope>: Make parameter rvalue-reference.
547 * compile/compile-internal.h (compile_instance)
548 <get_cached_type>: Likewise
549 * compile/compile-loc2c.c (push): Likewise
550 (pushf): Likewise
551 (unary): Likewise
552 (binary): Likewise
553 (print_label): Likewise
554 (pushf_register_address): Likewise
555 (pushf_register): Likewise
556 (do_compile_dwarf_expr_to_c): Likewise
557 (compile_dwarf_expr_to_c): Likewise
558 (compile_dwarf_bounds_to_c): Likewise
559 * compile/compile.c (compile_instance::get_cached_type):
560 Likewise
561 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
562 (compile_dwarf_bounds_to_c): Likewise
563 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
564 (dwarf2_compile_property_to_c): Likewise
565 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
566 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
567 Likewise
568
cc5a5ae5
SM
5692018-09-06 Simon Marchi <simon.marchi@ericsson.com>
570
571 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
572 * tui/tui-data.c (init_content_element): Don't initialize it.
573
137be540
SM
5742018-09-06 Simon Marchi <simon.marchi@ericsson.com>
575
576 * tui/tui-data.h (struct tui_win_info)
577 <detail::opaque>: Remove.
578 * tui/tui-data.c (init_win_info): Remove assignment.
579
f1628857
TT
5802018-09-05 Tom Tromey <tom@tromey.com>
581
582 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
583 -Wformat-nonliteral.
584 * target-float.c (host_float_ops<T>::to_string)
585 (host_float_ops<T>::from_string): Use
586 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
587 * configure: Rebuild.
588
af39b1c2
SM
5892018-09-05 Simon Marchi <simon.marchi@ericsson.com>
590
591 * printcmd.c (printf_c_string): Use
592 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
593 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
594
081bca4d
TT
5952018-09-05 Tom Tromey <tom@tromey.com>
596
597 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
598
e4a62c65
TV
5992018-09-05 Tom de Vries <tdevries@suse.de>
600
601 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
602 with resolve_abstract_p == true.
603 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
604 defaulting to false. Propagate resolve_abstract_p to
605 dwarf2_fetch_die_loc_sect_off.
606 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
607 parameter, defaulting to false.
608 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
609 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
610 parameter.
611 * dwarf2read.h (struct die_info): Forward-declare.
612 (die_info_ptr): New typedef.
613 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
614
2b69821e
JB
6152018-09-05 Joel Brobecker <brobecker@adacore.com>
616
617 GDB 8.2 released.
618
fcc9b044
SDJ
6192018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
620 Pedro Alves <palves@redhat.com>
621
622 * gnulib/Makefile.in (aclocal_m4_deps): Move to
623 "aclocal-m4-deps.mk". Include file here.
624 $(srcdir)/aclocal.m4: Add "configure.ac".
625 * gnulib/aclocal-m4-deps.mk: New file.
626 * gnulib/update-gnulib.sh: Automatically update
627 "aclocal-m4-deps.mk".
628
d53d5436
TT
6292018-09-04 Tom Tromey <tom@tromey.com>
630
631 * configure: Rebuild.
632 * configure.ac: Remove multi-ice code.
633
8dc9fd87
TT
6342018-09-04 Tom Tromey <tom@tromey.com>
635
636 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
637 (ada-exp.o): Update.
638
3322c5d9
TT
6392018-09-04 Tom Tromey <tom@tromey.com>
640
641 * Makefile.in (printcmd.o, target-float.o): Remove.
642 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
643
ba2bf2aa
TT
6442018-09-04 Tom Tromey <tom@tromey.com>
645
646 * gnulib/Makefile.in: Remove obsolete comment.
647 * Makefile.in: Remove obsolete comment.
648
6c9d681b
AB
6492018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
650
651 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
652 line with '+'.
653
78a3b0fa
AB
6542018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
655
656 * riscv-tdep.c: Add 'prologue-value.h' include.
657 (struct riscv_unwind_cache): New struct.
658 (riscv_debug_unwinder): New global.
659 (riscv_scan_prologue): Update arguments, capture register details
660 from prologue scan.
661 (riscv_skip_prologue): Reformat arguments line, move end of
662 prologue calculation into riscv_scan_prologue.
663 (riscv_frame_cache): Update return type, create
664 riscv_unwind_cache, scan the prologue, and fill in remaining cache
665 details.
666 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
667 (riscv_frame_prev_register): Use the trad_frame within the
668 riscv_unwind_cache.
669 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
670 flag.
671
23e60e7a
AB
6722018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
673
674 * trad-frame.h (trad_frame_set_realreg): Declare.
675 (trad_frame_set_addr): Declare.
676 * trad-frame.c (trad_frame_set_realreg): Define new function.
677 (trad_frame_set_addr): Define new function.
678 (trad_frame_set_reg_realreg): Use new function.
679 (trad_frame_set_reg_addr): Use new function.
680
5c889512
KS
6812018-09-01 Keith Seitz <keiths@redhat.com>
682
683 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
684 pulongest instead of "%lld".
685 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
686 ATTRIBUTE_UNUSED.
687
c8c81635
TT
6882018-08-31 Tom Tromey <tom@tromey.com>
689
690 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
691 variant part type.
692
0c888588
PA
6932018-08-31 Pedro Alves <palves@redhat.com>
694
695 * gdbarch.h: Regenerate.
696
7ea65f08
PA
6972018-08-31 Pedro Alves <palves@redhat.com>
698
699 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
700 * target.h (Hardware watchpoint interfaces): Describe
701 continuable/steppable/non-steppable watchpoints.
702 * gdbarch.h, gdbarch.c: Regenerate.
703
7eb65faf
PA
7042018-08-31 Pedro Alves <palves@redhat.com>
705
706 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
707 Delete.
708 * s390-linux-nat.c
709 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
710 * target.h (target_ops::have_continuable_watchpoint): Delete.
711 (target_have_continuable_watchpoint): Delete.
712 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
713 * target-delegates.c: Regenerate.
714
dab999b1
SDJ
7152018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
716
717 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
718 the files present in "gnulib/import/m4/".
719
ff3a05b3
AB
7202018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
721
722 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
723 c.sw, c.swsp, and c.sdsp.
724
0b3f9efc
AB
7252018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
726
727 * riscv-tdep.c (struct riscv_inferior_data): Delete.
728 (riscv_read_misa_reg): Don't cache value read into inferior data.
729 (riscv_new_inferior_data): Delete.
730 (riscv_inferior_data_cleanup): Delete.
731 (riscv_inferior_data): Delete.
732 (riscv_invalidate_inferior_data): Delete.
733 (_initialize_riscv_tdep): Remove initialisation of inferior data.
734
a0dc02a6
SM
7352018-08-30 Simon Marchi <simon.marchi@ericsson.com>
736
737 * compile/compile-cplus-types.c
738 (compile_cplus_instance::leave_scope): Take the address of scope
739 object.
740 (compile_cplus_instance::convert_qualified_base): Compare quals
741 to 0.
742
fdad7678
KS
7432018-08-30 Keith Seitz <keiths@redhat.com>
744
745 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
746 Use "%s" and host_address_to_string instead of "%p" in printf.
747
078a0207
KS
7482018-08-29 Keith Seitz <keiths@redhat.com>
749
750 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
751 and compile-cplus-types.c.
752 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
753 * c-lang.c (cplus_language_defn): Set C++ compile functions.
754 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
755 Declare.
756 * compile/compile-c-support.c: Include compile-cplus.h.
757 (load_libcompile): Templatize.
758 (get_compile_context): "New" function.
759 (c_get_compile_context): Use get_compile_context.
760 (cplus_get_compile_context): New function.
761 (cplus_push_user_expression, cplus_pop_user_expression)
762 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
763 (cplus_compute_program): Define new structs/functions.
764 * compile/compile-cplus-symmbols.c: New file.
765 * compile/compile-cplus-types.c: New file.
766 * compile/compile-cplus.h: New file.
767 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
768 Declare.
769 * compile/compile-object-load.c (get_out_value_type): Use
770 strncmp_iw when comparing symbol names.
771 (compile_object_load): Add mst_bss and mst_data.
772 * compile/compile.c (_initialize_compile): Remove
773 -Wno-implicit-function-declaration from `compile_args'.
774 * compile/gcc-cp-plugin.h: New file.
775 * NEWS: Mention C++ compile support and new debug options.
776
fcaad03c
KS
7772018-08-29 Keith Seitz <keiths@redhat.com>
778
779 * linespec.c (collect_info::add_symbol): Make virtual.
780 (struct symbol_searcher_collect_info): New struct.
781 (symbol_searcher::find_all_symbols): New method.
782 * symtab.h (class symbol_searcher): New class.
783
7e41c8db
KS
7842018-08-29 Keith Seitz <keiths@redhat.com>
785
786 * linespec.c (struct linespec) <function_symbols, label_symbols>:
787 Change to vector of block_symbol. Update all users.
788 (struct collect_info) <symbols>: Likewise.
789 (collect_info::add_symbol): Take block_symbol as argument.
790 Update all callers.
791 (decode_compound_collector) <m_symbols>: Change type to vector
792 of block_symbol. Update all users.
793 (decode_compound_collector::operator ()): Change parameter type
794 to block_symbol.
795 (find_method, find_function_symbols, find_linespec_symbols)
796 (find_label_symbols_in_block, find_label_symbols): Change symbol
797 vectors to block_symbol vectors.
798 * symtab.h (symbol_found_callback_ftype): Change parameter type to
799 block_symbol.
800
63e8c3da
KS
8012018-08-29 Keith Seitz <keiths@redhat.com>
802
803 * linespec.c (symbolp): Remove typedef and VEC definitions.
804 (bound_minimal_symbol_d): Likewise.
805
4dedf84d
KS
8062018-08-29 Keith Seitz <keiths@redhat.com>
807
808 * linespec.c (decode_compound_collector::decode_compound_collector):
809 Remove initialization for `m_symtabs'.
810 (decode_compound_collector::release_symbols): Change return type
811 to std::vector. Update all callers.
812 (class decode_compound_collector) <m_symbols>: Change type to
813 std::vector.
814 (lookup_prefix_sym): Change return type to std::vector. Update all
815 callers.
816 (compare_symbols): Remove.
817 (std_compare_symbols): Rename to `compare_symbols'.
818 (find_method): Change `sym_classes' parameter to std::vector.
819 Update all callers. Use std::sort to sort sym_classes.
820 (find_linespec_symbols): Remove cleanup.
821
c2a031c5
KS
8222018-08-29 Keith Seitz <keiths@redhat.com>
823
824 * linespec.c (struct linespec) <minimal_symbols>: Change type to
825 std::vector. Update all users.
826 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
827 (struct collect_info) <minimal_symbols>: Likewise.
828 (compare_msymbols): Return bool. Change parameters to const
829 bound_minimal_symbol references.
830 (find_method, find_function_symbols, find_linespec_symbols): Change
831 `minsyms' parameter to std::vector. Update all callers.
832
3553eadc
KS
8332018-08-29 Keith Seitz <keiths@redhat.com>
834
835 * linespec.c (struct linespec) <label_symbols>: Change type to
836 std::vector. Update all users.
837 (find_label_symbols_in_block): Change `result' parameter to
838 std::vector. Update all callers.
839 (find_label_symbols): Return std::vector. Update all callers.
840
7243d011
KS
8412018-08-29 Keith Seitz <keiths@redhat.com>
842
843 * linespec.c (struct linespec) <function_symbols>: Change type to
844 std::vector. Update all users.
845 (struct collect_info) <function_symbols>: Likewise.
846 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
847 (std_compare_symbols): New function.
848 (find_method, find_function_symbols, find_linespec_symbols)
849 (find_label_symbols_in_block): Change `symbols' parameter to
850 std::vector. Update all callers.
851 (find_label_symbols): Likewise for `function_symbols' and
852 `label_funcs_ret'.
853
2a908241
KS
8542018-08-29 Keith Seitz <keiths@redhat.com>
855
856 * linespec.c (symtab_vector_up): Define.
857 (struct linespec) <file_symtabs>: Change type to std::vector *.
858 Update all uses.
859 (struct collect_info) <file_symtabs>: Likewise.
860 (collect_symtabs_from_filename): Return symtab_vector_up.
861 Update all callers.
862 (decode_objc): Remove cleanup.
863 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
864 (symtab_collector::release_symtabs): Return symtab_vector_up.
865 Update all callers.
866 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
867 Update all users.
868 (collect_symtabs_from_filename, symtabs_from_filename): Return
869 symtab_vector_up. Update all callers.
870
f6c4e3e8
TT
8712018-08-29 Tom Tromey <tom@tromey.com>
872
873 * csky-tdep.c (csky_analyze_prologue): Use
874 core_addr_to_string_nz.
875
73c13fe6
TT
8762018-08-29 Tom Tromey <tom@tromey.com>
877
878 * windows-nat.c (struct xlate_exception) <them>: Change type to
879 DWORD.
880 (xlate): Fix formatting. Remove last entry.
881 (struct xlate_exception, xlate): Comment out.
882 (windows_nat_target::resume): Use ranged for.
883
4d3928d7
JW
8842018-08-29 Jim Wilson <jimw@sifive.com>
885
886 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
887 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
888 of NT_PRFPREG.
889 (riscv_linux_nat_target::store_registers): Likewise.
890
7a6dbc2f
SDJ
8912018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
892
893 PR gdb/23555
894 PR gdb/23558
895 * gnulib/aclocal.m4: Regenerate.
896 * gnulib/config.in: Regenerate.
897 * gnulib/configure: Regenerate.
898 * gnulib/import/Makefile.am: Update.
899 * gnulib/import/Makefile.in: Update.
900 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
901 * gnulib/import/_Noreturn.h: ... this.
902 * gnulib/import/alloca.in.h: Update.
903 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
904 * gnulib/import/arg-nonnull.h: ... this.
905 * gnulib/import/assure.h: Update.
906 * gnulib/import/at-func.c: Update.
907 * gnulib/import/basename-lgpl.c: Update.
908 * gnulib/import/extra/snippet/c++defs.h: Rename to...
909 * gnulib/import/c++defs.h: ... this.
910 * gnulib/import/canonicalize-lgpl.c: Update.
911 * gnulib/import/cdefs.h: Update.
912 * gnulib/import/chdir-long.c: Update.
913 * gnulib/import/chdir-long.h: Update.
914 * gnulib/import/cloexec.c: Update.
915 * gnulib/import/cloexec.h: Update.
916 * gnulib/import/close.c: Update.
917 * gnulib/import/closedir.c: Update.
918 * gnulib/import/config.charset: Update.
919 * gnulib/import/dirent-private.h: Update.
920 * gnulib/import/dirent.in.h: Update.
921 * gnulib/import/dirfd.c: Update.
922 * gnulib/import/dirname-lgpl.c: Update.
923 * gnulib/import/dirname.h: Update.
924 * gnulib/import/dosname.h: Update.
925 * gnulib/import/dup-safer-flag.c: Update.
926 * gnulib/import/dup-safer.c: Update.
927 * gnulib/import/dup.c: Update.
928 * gnulib/import/dup2.c: Update.
929 * gnulib/import/errno.in.h: Update.
930 * gnulib/import/error.c: Update.
931 * gnulib/import/error.h: Update.
932 * gnulib/import/exitfail.c: Update.
933 * gnulib/import/exitfail.h: Update.
934 * gnulib/import/extra/update-copyright: Update.
935 * gnulib/import/fchdir.c: Update.
936 * gnulib/import/fcntl.c: Update.
937 * gnulib/import/fcntl.in.h: Update.
938 * gnulib/import/fd-hook.c: Update.
939 * gnulib/import/fd-hook.h: Update.
940 * gnulib/import/fd-safer-flag.c: Update.
941 * gnulib/import/fd-safer.c: Update.
942 * gnulib/import/fdopendir.c: Update.
943 * gnulib/import/filename.h: Update.
944 * gnulib/import/filenamecat-lgpl.c: Update.
945 * gnulib/import/filenamecat.h: Update.
946 * gnulib/import/flexmember.h: Update.
947 * gnulib/import/float+.h: Update.
948 * gnulib/import/float.c: Update.
949 * gnulib/import/float.in.h: Update.
950 * gnulib/import/fnmatch.c: Update.
951 * gnulib/import/fnmatch.in.h: Update.
952 * gnulib/import/fnmatch_loop.c: Update.
953 * gnulib/import/fpucw.h: Update.
954 * gnulib/import/frexp.c: Update.
955 * gnulib/import/frexpl.c: Update.
956 * gnulib/import/fstat.c: Update.
957 * gnulib/import/fstatat.c: Update.
958 * gnulib/import/getcwd-lgpl.c: Update.
959 * gnulib/import/getcwd.c: Update.
960 * gnulib/import/getdtablesize.c: Update.
961 * gnulib/import/getlogin_r.c: Update.
962 * gnulib/import/getprogname.c: Update.
963 * gnulib/import/getprogname.h: Update.
964 * gnulib/import/gettext.h: Update.
965 * gnulib/import/gettimeofday.c: Update.
966 * gnulib/import/glob-libc.h: Update.
967 * gnulib/import/glob.c: Update.
968 * gnulib/import/glob.in.h: Update.
969 * gnulib/import/glob_internal.h: Update.
970 * gnulib/import/glob_pattern_p.c: Update.
971 * gnulib/import/globfree.c: Update.
972 * gnulib/import/hard-locale.c: Update.
973 * gnulib/import/hard-locale.h: Update.
974 * gnulib/import/intprops.h: Update.
975 * gnulib/import/inttypes.in.h: Update.
976 * gnulib/import/isnan.c: Update.
977 * gnulib/import/isnand-nolibm.h: Update.
978 * gnulib/import/isnand.c: Update.
979 * gnulib/import/isnanl-nolibm.h: Update.
980 * gnulib/import/isnanl.c: Update.
981 * gnulib/import/itold.c: Update.
982 * gnulib/import/libc-config.h: Update.
983 * gnulib/import/limits.in.h: Update.
984 * gnulib/import/localcharset.c: Update.
985 * gnulib/import/localcharset.h: Update.
986 * gnulib/import/localtime-buffer.c: Update.
987 * gnulib/import/localtime-buffer.h: Update.
988 * gnulib/import/lstat.c: Update.
989 * gnulib/import/m4/00gnulib.m4: Update.
990 * gnulib/import/m4/__inline.m4: Update.
991 * gnulib/import/m4/absolute-header.m4: Update.
992 * gnulib/import/m4/alloca.m4: Update.
993 * gnulib/import/m4/builtin-expect.m4: Update.
994 * gnulib/import/m4/canonicalize.m4: Update.
995 * gnulib/import/m4/chdir-long.m4: Update.
996 * gnulib/import/m4/close.m4: Update.
997 * gnulib/import/m4/closedir.m4: Update.
998 * gnulib/import/m4/configmake.m4: Update.
999 * gnulib/import/m4/d-ino.m4: Update.
1000 * gnulib/import/m4/d-type.m4: Update.
1001 * gnulib/import/m4/dirent_h.m4: Update.
1002 * gnulib/import/m4/dirfd.m4: Update.
1003 * gnulib/import/m4/dirname.m4: Update.
1004 * gnulib/import/m4/double-slash-root.m4: Update.
1005 * gnulib/import/m4/dup.m4: Update.
1006 * gnulib/import/m4/dup2.m4: Update.
1007 * gnulib/import/m4/eealloc.m4: Update.
1008 * gnulib/import/m4/environ.m4: Update.
1009 * gnulib/import/m4/errno_h.m4: Update.
1010 * gnulib/import/m4/error.m4: Update.
1011 * gnulib/import/m4/exponentd.m4: Update.
1012 * gnulib/import/m4/exponentl.m4: Update.
1013 * gnulib/import/m4/extensions.m4: Update.
1014 * gnulib/import/m4/extern-inline.m4: Update.
1015 * gnulib/import/m4/fchdir.m4: Update.
1016 * gnulib/import/m4/fcntl-o.m4: Update.
1017 * gnulib/import/m4/fcntl.m4: Update.
1018 * gnulib/import/m4/fcntl_h.m4: Update.
1019 * gnulib/import/m4/fdopendir.m4: Update.
1020 * gnulib/import/m4/filenamecat.m4: Update.
1021 * gnulib/import/m4/flexmember.m4: Update.
1022 * gnulib/import/m4/float_h.m4: Update.
1023 * gnulib/import/m4/fnmatch.m4: Update.
1024 * gnulib/import/m4/fnmatch_h.m4: Update.
1025 * gnulib/import/m4/fpieee.m4: Update.
1026 * gnulib/import/m4/frexp.m4: Update.
1027 * gnulib/import/m4/frexpl.m4: Update.
1028 * gnulib/import/m4/fstat.m4: Update.
1029 * gnulib/import/m4/fstatat.m4: Update.
1030 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1031 * gnulib/import/m4/getcwd-path-max.m4: Update.
1032 * gnulib/import/m4/getcwd.m4: Update.
1033 * gnulib/import/m4/getdtablesize.m4: Update.
1034 * gnulib/import/m4/getlogin.m4: Update.
1035 * gnulib/import/m4/getlogin_r.m4: Update.
1036 * gnulib/import/m4/getpagesize.m4: Update.
1037 * gnulib/import/m4/getprogname.m4: Update.
1038 * gnulib/import/m4/gettimeofday.m4: Update.
1039 * gnulib/import/m4/glibc21.m4: Update.
1040 * gnulib/import/m4/glob.m4: Update.
1041 * gnulib/import/m4/glob_h.m4: Update.
1042 * gnulib/import/m4/gnulib-cache.m4: Update.
1043 * gnulib/import/m4/gnulib-common.m4: Update.
1044 * gnulib/import/m4/gnulib-comp.m4: Update.
1045 * gnulib/import/m4/gnulib-tool.m4: Update.
1046 * gnulib/import/m4/hard-locale.m4: Update.
1047 * gnulib/import/m4/include_next.m4: Update.
1048 * gnulib/import/m4/inttypes-pri.m4: Update.
1049 * gnulib/import/m4/inttypes.m4: Update.
1050 * gnulib/import/m4/isnand.m4: Update.
1051 * gnulib/import/m4/isnanl.m4: Update.
1052 * gnulib/import/m4/largefile.m4: Update.
1053 * gnulib/import/m4/limits-h.m4: Update.
1054 * gnulib/import/m4/localcharset.m4: Update.
1055 * gnulib/import/m4/locale-fr.m4: Update.
1056 * gnulib/import/m4/locale-ja.m4: Update.
1057 * gnulib/import/m4/locale-zh.m4: Update.
1058 * gnulib/import/m4/localtime-buffer.m4: Update.
1059 * gnulib/import/m4/longlong.m4: Update.
1060 * gnulib/import/m4/lstat.m4: Update.
1061 * gnulib/import/m4/malloc.m4: Update.
1062 * gnulib/import/m4/malloca.m4: Update.
1063 * gnulib/import/m4/math_h.m4: Update.
1064 * gnulib/import/m4/mbrtowc.m4: Update.
1065 * gnulib/import/m4/mbsinit.m4: Update.
1066 * gnulib/import/m4/mbsrtowcs.m4: Update.
1067 * gnulib/import/m4/mbstate_t.m4: Update.
1068 * gnulib/import/m4/memchr.m4: Update.
1069 * gnulib/import/m4/memmem.m4: Update.
1070 * gnulib/import/m4/mempcpy.m4: Update.
1071 * gnulib/import/m4/memrchr.m4: Update.
1072 * gnulib/import/m4/mkdir.m4: Update.
1073 * gnulib/import/m4/mkstemp.m4: Update.
1074 * gnulib/import/m4/mmap-anon.m4: Update.
1075 * gnulib/import/m4/mode_t.m4: Update.
1076 * gnulib/import/m4/msvc-inval.m4: Update.
1077 * gnulib/import/m4/msvc-nothrow.m4: Update.
1078 * gnulib/import/m4/multiarch.m4: Update.
1079 * gnulib/import/m4/nocrash.m4: Update.
1080 * gnulib/import/m4/off_t.m4: Update.
1081 * gnulib/import/m4/onceonly.m4: Update.
1082 * gnulib/import/m4/open-cloexec.m4: Update.
1083 * gnulib/import/m4/open.m4: Update.
1084 * gnulib/import/m4/openat.m4: Update.
1085 * gnulib/import/m4/opendir.m4: Update.
1086 * gnulib/import/m4/pathmax.m4: Update.
1087 * gnulib/import/m4/rawmemchr.m4: Update.
1088 * gnulib/import/m4/readdir.m4: Update.
1089 * gnulib/import/m4/readlink.m4: Update.
1090 * gnulib/import/m4/realloc.m4: Update.
1091 * gnulib/import/m4/rename.m4: Update.
1092 * gnulib/import/m4/rewinddir.m4: Update.
1093 * gnulib/import/m4/rmdir.m4: Update.
1094 * gnulib/import/m4/save-cwd.m4: Update.
1095 * gnulib/import/m4/secure_getenv.m4: Update.
1096 * gnulib/import/m4/setenv.m4: Update.
1097 * gnulib/import/m4/signal_h.m4: Update.
1098 * gnulib/import/m4/ssize_t.m4: Update.
1099 * gnulib/import/m4/stat-time.m4: Update.
1100 * gnulib/import/m4/stat.m4: Update.
1101 * gnulib/import/m4/std-gnu11.m4: Update.
1102 * gnulib/import/m4/stdbool.m4: Update.
1103 * gnulib/import/m4/stddef_h.m4: Update.
1104 * gnulib/import/m4/stdint.m4: Update.
1105 * gnulib/import/m4/stdio_h.m4: Update.
1106 * gnulib/import/m4/stdlib_h.m4: Update.
1107 * gnulib/import/m4/strchrnul.m4: Update.
1108 * gnulib/import/m4/strdup.m4: Update.
1109 * gnulib/import/m4/strerror.m4: Update.
1110 * gnulib/import/m4/string_h.m4: Update.
1111 * gnulib/import/m4/strstr.m4: Update.
1112 * gnulib/import/m4/strtok_r.m4: Update.
1113 * gnulib/import/m4/sys_socket_h.m4: Update.
1114 * gnulib/import/m4/sys_stat_h.m4: Update.
1115 * gnulib/import/m4/sys_time_h.m4: Update.
1116 * gnulib/import/m4/sys_types_h.m4: Update.
1117 * gnulib/import/m4/tempname.m4: Update.
1118 * gnulib/import/m4/time_h.m4: Update.
1119 * gnulib/import/m4/unistd-safer.m4: Update.
1120 * gnulib/import/m4/unistd_h.m4: Update.
1121 * gnulib/import/m4/warn-on-use.m4: Update.
1122 * gnulib/import/m4/wchar_h.m4: Update.
1123 * gnulib/import/m4/wchar_t.m4: Update.
1124 * gnulib/import/m4/wctype_h.m4: Update.
1125 * gnulib/import/m4/wint_t.m4: Update.
1126 * gnulib/import/malloc.c: Update.
1127 * gnulib/import/malloc/scratch_buffer.h: Update.
1128 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1129 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1130 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1131 * gnulib/import/malloca.c: Update.
1132 * gnulib/import/malloca.h: Update.
1133 * gnulib/import/malloca.valgrind: Update.
1134 * gnulib/import/math.in.h: Update.
1135 * gnulib/import/mbrtowc.c: Update.
1136 * gnulib/import/mbsinit.c: Update.
1137 * gnulib/import/mbsrtowcs-impl.h: Update.
1138 * gnulib/import/mbsrtowcs-state.c: Update.
1139 * gnulib/import/mbsrtowcs.c: Update.
1140 * gnulib/import/memchr.c: Update.
1141 * gnulib/import/memmem.c: Update.
1142 * gnulib/import/mempcpy.c: Update.
1143 * gnulib/import/memrchr.c: Update.
1144 * gnulib/import/mkdir.c: Update.
1145 * gnulib/import/mkstemp.c: Update.
1146 * gnulib/import/msvc-inval.c: Update.
1147 * gnulib/import/msvc-inval.h: Update.
1148 * gnulib/import/msvc-nothrow.c: Update.
1149 * gnulib/import/msvc-nothrow.h: Update.
1150 * gnulib/import/open.c: Update.
1151 * gnulib/import/openat-die.c: Update.
1152 * gnulib/import/openat-priv.h: Update.
1153 * gnulib/import/openat-proc.c: Update.
1154 * gnulib/import/openat.c: Update.
1155 * gnulib/import/openat.h: Update.
1156 * gnulib/import/opendir.c: Update.
1157 * gnulib/import/pathmax.h: Update.
1158 * gnulib/import/pipe-safer.c: Update.
1159 * gnulib/import/rawmemchr.c: Update.
1160 * gnulib/import/readdir.c: Update.
1161 * gnulib/import/readlink.c: Update.
1162 * gnulib/import/realloc.c: Update.
1163 * gnulib/import/ref-add.sin: Update.
1164 * gnulib/import/ref-del.sin: Update.
1165 * gnulib/import/rename.c: Update.
1166 * gnulib/import/rewinddir.c: Update.
1167 * gnulib/import/rmdir.c: Update.
1168 * gnulib/import/same-inode.h: Update.
1169 * gnulib/import/save-cwd.c: Update.
1170 * gnulib/import/save-cwd.h: Update.
1171 * gnulib/import/scratch_buffer.h: Update.
1172 * gnulib/import/secure_getenv.c: Update.
1173 * gnulib/import/setenv.c: Update.
1174 * gnulib/import/signal.in.h: Update.
1175 * gnulib/import/stat-time.c: Update.
1176 * gnulib/import/stat-time.h: Update.
1177 * gnulib/import/stat-w32.c: Update.
1178 * gnulib/import/stat-w32.h: Update.
1179 * gnulib/import/stat.c: Update.
1180 * gnulib/import/stdbool.in.h: Update.
1181 * gnulib/import/stddef.in.h: Update.
1182 * gnulib/import/stdint.in.h: Update.
1183 * gnulib/import/stdio.in.h: Update.
1184 * gnulib/import/stdlib.in.h: Update.
1185 * gnulib/import/str-two-way.h: Update.
1186 * gnulib/import/strchrnul.c: Update.
1187 * gnulib/import/strdup.c: Update.
1188 * gnulib/import/streq.h: Update.
1189 * gnulib/import/strerror-override.c: Update.
1190 * gnulib/import/strerror-override.h: Update.
1191 * gnulib/import/strerror.c: Update.
1192 * gnulib/import/string.in.h: Update.
1193 * gnulib/import/stripslash.c: Update.
1194 * gnulib/import/strnlen1.c: Update.
1195 * gnulib/import/strnlen1.h: Update.
1196 * gnulib/import/strstr.c: Update.
1197 * gnulib/import/strtok_r.c: Update.
1198 * gnulib/import/sys_stat.in.h: Update.
1199 * gnulib/import/sys_time.in.h: Update.
1200 * gnulib/import/sys_types.in.h: Update.
1201 * gnulib/import/tempname.c: Update.
1202 * gnulib/import/tempname.h: Update.
1203 * gnulib/import/time.in.h: Update.
1204 * gnulib/import/unistd--.h: Update.
1205 * gnulib/import/unistd-safer.h: Update.
1206 * gnulib/import/unistd.in.h: Update.
1207 * gnulib/import/unsetenv.c: Update.
1208 * gnulib/import/verify.h: Update.
1209 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1210 * gnulib/import/wchar.in.h: Update.
1211 * gnulib/import/wctype.in.h: Update.
1212 * gnulib/import/xalloc-oversized.h: Update.
1213 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1214 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1215
b0f492b9
GB
12162018-08-16 Gary Benson <gbenson@redhat.com>
1217
1218 PR gdb/13000:
1219 * gdb/main.c (captured_main_1): Exit with nonzero status
1220 in batch mode if the last command to be executed failed.
1221 * NEWS: Mention the above.
1222
2362e7f7
SM
12232018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1224
1225 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1226 end of warning message.
1227
4f4aedeb
AH
12282018-08-29 Alan Hayward <alan.hayward@arm.com>
1229
1230 PR gdb/22943:
1231 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1232 (aarch64_extract_return_value): Use
1233 aapcs_is_vfp_call_or_return_candidate.
1234 (aarch64_return_in_memory): Likewise.
1235 (aarch64_store_return_value): Likewise.
1236
0e745c60
AH
12372018-08-29 Alan Hayward <alan.hayward@arm.com>
1238
1239 * aarch64-tdep.c
1240 (aapcs_is_vfp_call_or_return_candidate): Make static
1241 (pass_in_v_or_stack): Remove function.
1242 (pass_in_v_vfp_candidate): New function.
1243 (aarch64_push_dummy_call): Check for float register candidates.
1244
ea92689a
AH
12452018-08-29 Alan Hayward <alan.hayward@arm.com>
1246
1247 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1248 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1249 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1250
ad202fcc
SM
12512018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1252
1253 PR build/23399
1254 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1255 (struct ipa_sym_addresses): Rename to...
1256 (struct ipa_sym_addresses_common): ... this.
1257 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1258
5fe3f3e4
TT
12592018-08-28 Tom Tromey <tom@tromey.com>
1260
1261 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1262 (token_fifo): Now a std::vector.
1263 (yylex, c_parse): Update.
1264 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1265 (token_fifo): Now a std::vector.
1266 (yylex, d_parse): Update.
1267 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1268 (token_fifo): Now a std::vector.
1269 (yylex, go_parse): Update.
1270
858d8004
SM
12712018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1272
1273 * parser-defs.h (struct type_stack) <elements>: Change type to
1274 std::vector<union type_stack_elt>.
1275 <depth, size>: Remove.
1276 * parse.c (parse_exp_in_context_1): Adjust.
1277 (type_stack_reserve): Remove.
1278 (check_type_stack_depth): Remove.
1279 (insert_into_type_stack): Adjust to std::vector.
1280 (insert_type): Likewise.
1281 (push_type): Likewise.
1282 (push_type_int): Likewise.
1283 (insert_type_address_space): Likewise.
1284 (pop_type): Likewise.
1285 (pop_type_int): Likewise.
1286 (pop_typelist): Likewise.
1287 (pop_type_stack): Likewise.
1288 (append_type_stack): Likewise.
1289 (push_type_stack): Likewise.
1290 (get_type_stack): Likewise.
1291 (type_stack_cleanup): Likewise.
1292 (push_typelist): Likewise.
1293 (follow_types): Likewise.
1294 (_initialize_parse): Likewise.
1295
416a69af
HAQ
12962018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1297
1298 * NEWS: Mention csky target.
1299
9d24df82
HAQ
13002018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1301 Hafiz Abid Qadeer <abidh@codesourcery.com>
1302 Don Breazeal <donb@codesourcery.com>
1303
1304 * csky-linux-tdep.c: New file.
1305 * csky-tdep.c: Likewise.
1306 * csky-tdep.h: Likewise.
1307 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1308 csky-tdep.o.
1309 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1310 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1311 * configure.tgt: Add csky support.
1312
3bf9c013
JV
13132018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1314
1315 * python/py-framefilter.c (py_print_frame): Print frame architecture
1316 when printing on an MI output.
1317
d3d8724a
TT
13182018-08-27 Tom Tromey <tom@tromey.com>
1319
1320 PR build/23087:
1321 * configure: Rebuild.
1322 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1323
1885053b
TT
13242018-08-27 Tom Tromey <tom@tromey.com>
1325
1326 * aarch64-linux-tdep.c
1327 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1328 casts to int.
1329
8406672e
TT
13302018-08-27 Tom Tromey <tom@tromey.com>
1331
1332 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1333 unsigned.
1334 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1335 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1336 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1337 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1338 unsigned.
1339
ec40cf90
TT
13402018-08-27 Tom Tromey <tom@tromey.com>
1341
1342 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1343 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1344
7bc02706
TT
13452018-08-27 Tom Tromey <tom@tromey.com>
1346
1347 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1348 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1349 ULONGEST_MAX.
1350 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1351 ULONGEST_MAX.
1352 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1353 ULONGEST_MAX.
1354 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1355 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1356 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1357 ULONGEST_MAX.
1358 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1359 (ppc64_linux_sigaction_tramp_frame)
1360 (ppc32_linux_sighandler_tramp_frame)
1361 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1362 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1363 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1364 * mn10300-linux-tdep.c (am33_linux_sigframe)
1365 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1366 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1367 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1368 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1369 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1370 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1371 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1372 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1373 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1374 * microblaze-linux-tdep.c
1375 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1376 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1377 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1378 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1379 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1380 * common/common-types.h (ULONGEST_MAX): New define.
1381 (CORE_ADDR_MAX): Fix formatting.
1382 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1383 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1384 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1385 (arm_linux_rt_sigreturn_tramp_frame)
1386 (arm_eabi_linux_sigreturn_tramp_frame)
1387 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1388 (thumb2_eabi_linux_sigreturn_tramp_frame)
1389 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1390 (arm_linux_restart_syscall_tramp_frame)
1391 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1392 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1393 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1394 ULONGEST_MAX.
1395 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1396
70ab8ccd
TT
13972018-08-27 Tom Tromey <tom@tromey.com>
1398
1399 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1400 CORE_ADDR_MAX.
1401 * mips-tdep.c (mips_deal_with_atomic_sequence)
1402 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1403 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1404 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1405 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1406 CORE_ADDR_MAX.
1407 * aarch64-tdep.c (aarch64_software_single_step): Use
1408 CORE_ADDR_MAX.
1409
896a7aa6
TT
14102018-08-27 Tom Tromey <tom@tromey.com>
1411
1412 * linespec.c (complete_linespec_component): Add cast to "char".
1413 * completer.c (completion_tracker::build_completion_result): Add
1414 cast to "char".
1415
dd33d41d
SM
14162018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1417
1418 * solist.h (struct solist, struct target_so_ops): Fix
1419 indentation.
1420
c645cda4
SM
14212018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1422
1423 * ada-tasks.c (ada_task_info_s): Remove typedef.
1424 (DEF_VEC_O(ada_task_info_s)): Remove.
1425 (struct ada_tasks_inferior_data): Initialize fields.
1426 <task_list>: Make an std::vector.
1427 (get_ada_tasks_inferior_data): Allocate with new.
1428 (ada_get_task_number): Adjust.
1429 (get_task_number_from_id): Likewise.
1430 (valid_task_id): Likewise.
1431 (ada_get_task_info_from_ptid): Likewise.
1432 (iterate_over_live_ada_tasks): Likewise.
1433 (add_ada_task): Likewise.
1434 (read_known_tasks): Likewise.
1435 (ada_build_task_list): Likewise.
1436 (print_ada_task_info): Likewise.
1437 (info_task): Likewise.
1438 (task_command_1): Likewise.
1439
39e7af3e
SM
14402018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1441
1442 * ada-lang.c (add_angle_brackets): Return std::string.
1443
bbbbbcee
SM
14442018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1445
1446 * python/py-threadevent.c (py_get_event_thread): Initialize
1447 pythread.
1448
d98fc15b
PA
14492018-08-24 Pedro Alves <palves@redhat.com>
1450
1451 * python/py-bpevent.c (create_breakpoint_event_object): Use
1452 copy-initialization.
1453 * python/py-continueevent.c (emit_continue_event): Use
1454 copy-initialization.
1455 * python/py-exitedevent.c (create_exited_event_object): Return a
1456 gdbpy_ref<>.
1457 (emit_exited_event): Use copy-initialization.
1458 * python/py-inferior.c (python_new_inferior)
1459 (python_inferior_deleted, add_thread_object): Use
1460 copy-initialization.
1461 * python/py-infevents.c (create_inferior_call_event_object)
1462 (create_register_changed_event_object)
1463 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1464 (emit_inferior_call_event, emit_memory_changed_event)
1465 (emit_register_changed_event): Use copy-initialization.
1466 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1467 Return a gdbpy_ref<>.
1468 (emit_new_objfile_event): Use copy-initialization.
1469 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1470 (emit_clear_objfiles_event): Use copy-initialization.
1471 * python/py-signalevent.c (create_signal_event_object): Use
1472 copy-initialization.
1473 * python/py-threadevent.c (create_thread_event_object): Use
1474 copy-initialization.
1475
da3c8738
PA
14762018-08-24 Pedro Alves <palves@redhat.com>
1477 Simon Marchi <simon.marchi@ericsson.com>
1478
1479 PR gdb/23379
1480 * python/py-continueevent.c: Include "gdbthread.h".
1481 (create_continue_event_object): Add intro comment. Add 'ptid'
1482 parameter. Use it to find thread to pass to
1483 create_thread_event_object.
1484 (emit_continue_event): Pass PTID down to
1485 create_continue_event_object.
1486 * python/py-event.h (py_get_event_thread): Declare.
1487 (create_thread_event_object): Remove default from 'thread'
1488 parameter.
1489 * python/py-stopevent.c (create_stop_event_object): Use
1490 py_get_event_thread.
1491 * python/py-threadevent.c (get_event_thread): Rename to ...
1492 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1493 and use it to find the thread.
1494 (create_thread_event_object): Assert that THREAD isn't null.
1495 Don't find the event thread here.
1496
26457a9c
KB
14972018-08-23 Kevin Buettner <kevinb@redhat.com>
1498
1499 * block.h (blockrange, blockranges): New struct declarations.
1500 (struct block): Add new field named `ranges'.
1501 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1502 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1503 macros for accessing ranges in struct block.
1504 (make_blockranges): New declaration.
1505 block.c (make_blockranges): New function.
2d5f09ec
KB
1506 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1507 for block.
fc811edd
KB
1508 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1509 * blockframe.c (cache_pc_function_block): New static global.
1510 (clear_pc_function_cache): Clear cache_pc_function_block.
1511 (find_pc_partial_function): Move comment to symtab.h. Add
1512 support for non-contiguous blocks.
e9480230
KB
1513 * cli/cli-cmds.c (block.h): Include.
1514 (print_disassembly): Handle printing of non-contiguous blocks.
1515 (disassemble_current_function): Likewise.
1516 (disassemble_command): Likewise.
26457a9c 1517
2b1ffcfd
KB
1518 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1519 BLOCK_START.
1520 * blockframe.c (get_pc_function_start): Likewise.
1521 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1522 (gcc_symbol_address): Likewise.
1523 * compile/compile-object-run.c (compile_object_run): Likewise.
1524 * compile/compile.c (get_expr_block_and_pc): Likewise.
1525 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1526 (func_addr_to_tail_call_list): Likewise.
1527 * findvar.c (default_read_var_value): Likewise.
1528 * inline-frame.c (inline_frame_this_id): Likewise.
1529 (skip-inline_frames): Likewise.
1530 * infcmd.c (until_next_command): Likewise.
1531 * linespec.c (convert_linespec_to_sals): Likewise.
1532 * parse.c (parse_exp_in_context_1): Likewise.
1533 * printcmd.c (build_address_symbolic): likewise.
1534 (info_address_command): Likewise.
1535 symtab.c (find_function_start_sal): Likewise.
1536 (skip_prologue_sal): Likewise.
1537 (find_function_alias_target): Likewise.
1538 (find_gnu_ifunc): Likewise.
1539 * stack.c (find_frame_funname): Likewise.
1540 * symtab.c (fixup_symbol_section): Likewise.
1541 (find_function_start_sal): Likewise.
1542 (skip_prologue_sal): Likewsie.
1543 (find_function_alias_target): Likewise.
1544 (find_gnu_ifunc): Likewise.
1545 * tracepoint.c (info_scope_command): Likewise.
1546 * value.c (value_fn_field): Likewise.
1547
9644dc3a
KB
1548 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1549 in place of find_pc_partial_function.
1550 * blockframe.c (find_function_entry_range_from_pc): New function.
1551 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1552 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1553 for each range in a block.
1554
1555
12a0d0f6
XR
15562018-08-23 Xavier Roirand <roirand@adacore.com>
1557
1558 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1559 incrementation.
1560
d1012b8e
SM
15612018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1562
1563 * solib-svr4.c (read_program_headers_from_bfd): Return
1564 gdb::optional<gdb::byte_vector>.
1565 (svr4_exec_displacement): Adjust.
1566
17658d46
SM
15672018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1568
1569 * solib-svr4.c (read_program_header): Return
1570 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1571 (find_program_interpreter): Return
1572 gdb::optional<gdb::byte_vector>.
1573 (scan_dyntag_auxv): Adjust.
1574 (enable_break): Adjust.
1575 (svr4_exec_displacement): Adjust.
1576
ae739fe7
SM
15772018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1578
1579 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1580 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1581
467dc1e2
SM
15822018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1583
1584 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1585 string_vprintf.
1586 * guile/scm-utils.c (gdbscm_printf): Likewise.
1587 * serial.c (serial_printf): Likewise.
1588 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1589
6d52907e
JV
15902018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1591
1592 * stack.c (print_frame): Print frame architecture when printing on
1593 an MI output.
1594 * NEWS: Mention new "arch" attribute in frame output.
1595
9758a8f8
AH
15962018-08-21 Alan Hayward <alan.hayward@arm.com>
1597
1598 * arch/aarch64.h (aarch64_regnum): Update comment.
1599
1461bdac
AH
16002018-08-21 Alan Hayward <alan.hayward@arm.com>
1601
1602 * NEWS: Add SVE to 8.2 section.
1603
4895f384
PA
16042018-08-21 Pedro Alves <palves@redhat.com>
1605
1606 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1607 out from gdbscm_parse_function_args.
1608 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1609 gdbscm_parse_function_args_1.
1610
a4497d2f
SM
16112018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1612
1613 PR gdb/17816
1614 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1615 operator.
1616
c44deb73
SM
16172018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1618
1619 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1620
be2d111a
MS
16212018-08-19 Michael Spang <spang@google.com>
1622
1623 PR gdb/11786
1624 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1625 for PT_TLS segments.
1626
a6b786da
KB
16272018-08-18 Kevin Buettner <kevinb@redhat.com>
1628
1629 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1630 dwarf_variable_value.
1631 * dwarf2-frame.c (class dwarf_expr_executor):
1632 Add override for dwarf_variable_value.
1633 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1634 (class symbol_needs_eval_context): Likewise.
1635 (indirect_synthetic_pointer): Add forward declaration.
1636 (sect_variable_value): New function.
1637 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1638 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1639 for DW_OP_GNU_variable_value.
1640
89fbedf3
TT
16412018-08-16 Tom Tromey <tom@tromey.com>
1642
1643 * top.c (read_command_file): Update.
1644 (command_line_input): Remove "repeat" argument.
1645 * ada-lang.c (get_selections): Update.
1646 * linespec.c (decode_line_2): Update.
1647 * defs.h (command_line_input): Remove argument.
1648 * cli/cli-script.c (read_next_line): Update.
1649 * python/py-gdb-readline.c: Update.
1650
12582533
TT
16512018-08-17 Tom Tromey <tom@tromey.com>
1652
1653 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1654 command_line_input.
1655
49514353
TT
16562018-08-15 Tom Tromey <tom@tromey.com>
1657
1658 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1659
26fb3983
JV
16602018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1661
1662 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1663 If used, use find_pc_partial_function to find address range
1664 to disassemble.
1665 * mi/mi-main.c (mi_cmd_list_features): Report
1666 "data-disassemble-a-option" feature.
1667 * NEWS: Mention new -data-disassemble option -a.
1668
a97b53dd
TT
16692018-08-13 Tom Tromey <tom@tromey.com>
1670
1671 * common/common-defs.h (_FORTIFY_SOURCE): Define.
1672
0c76e06d
AH
16732018-08-13 Alan Hayward <alan.hayward@arm.com>
1674
1675 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1676 (aarch64_linux_collect_sve_regset): Likewise.
1677 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1678 * regcache.h (regcache_map_entry_size): New function.
1679
b7fd65b9
AH
16802018-08-13 Alan Hayward <alan.hayward@arm.com>
1681
1682 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1683 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1684 (SVE_HEADER_VL_LENGTH): Likewise.
1685 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1686 (SVE_HEADER_FLAGS_LENGTH): Likewise.
1687 (SVE_HEADER_RESERVED_LENGTH): Likewise.
1688 (SVE_HEADER_SIZE_OFFSET): Likewise.
1689 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1690 (SVE_HEADER_VL_OFFSET): Likewise.
1691 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1692 (SVE_HEADER_FLAGS_OFFSET): Likewise.
1693 (SVE_HEADER_RESERVED_OFFSET): Likewise.
1694 (SVE_HEADER_SIZE): Likewise.
1695 (aarch64_linux_core_read_vq): Add function.
1696 (aarch64_linux_core_read_description): Check for SVE section.
1697
a616bb94
AH
16982018-08-13 Alan Hayward <alan.hayward@arm.com>
1699
1700 * aarch64-fbsd-tdep.c
1701 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1702 collect_size.
1703 * aarch64-linux-tdep.c
1704 (aarch64_linux_iterate_over_regset_sections): Likewise.
1705 * alpha-linux-tdep.c
1706 (alpha_linux_iterate_over_regset_sections):
1707 * alpha-nbsd-tdep.c
1708 (alphanbsd_iterate_over_regset_sections): Likewise.
1709 * amd64-fbsd-tdep.c
1710 (amd64fbsd_iterate_over_regset_sections): Likewise.
1711 * amd64-linux-tdep.c
1712 (amd64_linux_iterate_over_regset_sections): Likewise.
1713 * arm-bsd-tdep.c
1714 (armbsd_iterate_over_regset_sections): Likewise.
1715 * arm-fbsd-tdep.c
1716 (arm_fbsd_iterate_over_regset_sections): Likewise.
1717 * arm-linux-tdep.c
1718 (arm_linux_iterate_over_regset_sections): Likewise.
1719 * corelow.c (get_core_registers_cb): Likewise.
1720 (core_target::fetch_registers): Likewise.
1721 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1722 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1723 * gdbarch.h (void): Regenerate.
1724 * gdbarch.sh: Add supply_size and collect_size.
1725 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1726 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1727 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1728 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1729 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1730 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1731 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1732 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1733 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1734 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1735 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1736 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1737 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1738 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1739 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1740 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1741 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1742 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1743 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1744 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1745 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1746 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1747 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1748 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1749 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1750 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1751 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1752 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1753 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1754 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1755
a9925d4f
SM
17562018-08-10 Simon Marchi <simon.marchi@ericsson.com>
1757
1758 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1759 with string_printf.
1760
ad3a68e9
KS
17612018-08-10 Keith Seitz <keiths@redhat.com>
1762
1763 * compile/compile-c-support.c (add_code_header, add_code_footer):
1764 Move into policy class.
1765 (c_push_user_expression, pop_user_expression_nop)
1766 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1767 (compile_program): New host class.
1768 (c_compile_program): New typedef.
1769 (c_compute_porgram): Use c_compile_program.
1770
0cfbf430
KS
17712018-08-10 Keith Seitz <keiths@redhat.com>
1772
1773 * compile/compile-internal.h (compile_instance::~compile_instance):
1774 Remove calls to htab_delete.
1775 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1776 * compile.c (compile_instance::compile_instance): Initialize
1777 htab unique pointers.
1778 (compile_instance::get_cached_type, compile_instance::insert_type)
1779 (compile_instance::error_symbol_once): Update for unique_ptr.
1780
946d3d10
KS
17812018-08-10 Keith Seitz <keiths@redhat.com>
1782
1783 * compile/compile-c-symbols.c (struct symbol_error)
1784 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1785 (compile_instance::insert_symbol_error)
1786 (compile_instance::error_symbol_once): Move to ...
1787 * compile/compile.c: ... here.
1788
9cdfd9a2
KS
17892018-08-10 Keith Seitz <keiths@redhat.com>
1790
1791 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1792 instead of `new_compile_instance'.
1793 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1794 Update description.
1795 If the symbol error map is not initialized, create it.
1796 (generate_c_for_for_one_symbol): Do not check/initialize
1797 the symbol error map.
1798 * compile/compile-c-types.c (compile_c_instance): Make a class.
1799 Update all callers.
1800 (compile_instance::compile_instance): Initialize the type cache.
1801 (get_cached_type): New function.
1802 (insert_type): Update description.
1803 (compile_c_instance::m_default_cflags): Define.
1804 (convert_type): Update description. Use get_cached_type.
1805 (delete_instance): Moved to destructor.
1806 (new_compile_instance): Moved to constructor.
1807 * compile/compile-c.h (compile_c_instance): Make class inheriting
1808 from compile_instance.
1809 <base>: Remove field.
1810 <type_map, symbol_err_map>: Move to base class.
1811 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1812 * compile/compile-internal.h (compile_instance): Make class.
1813 <type_map_t, symbol_err_map_t>: Define.
1814 <fe>: Rename to `m_gcc_fe'.
1815 <scope, block, gcc_target_options>: Add `m_' prefix.
1816 <m_type_map, m_symbol_err_map>: New fields, moved from
1817 compile_c_instance.
1818 <destroy>: Remove.
1819 (convert_type, new_compile_instance): Remove.
1820 * compile/compile.c (cleanup_compile_instance): Remove.
1821 (compile_to_object): Use unique_ptr to eliminate cleanups.
1822 (compile_instance::set_print_callback, compile_instance::version)
1823 (compile_instance::set_verbose)
1824 (compile_instance::set_driver_filename)
1825 (compile_instance::set_triplet_regexp)
1826 (compile_instance::set_arguments)
1827 (compile_instance::set_source_file)
1828 (compile_instance::compile): Define.
1829
18cdc6d8
KS
18302018-08-10 Keith Seitz <keiths@redhat.com>
1831
1832 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1833 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1834 gcc-c-fe.def to define C plugin.
1835 (delete_instance): Delete `c_plugin'.
1836 (new_compile_instance): Initialize `c_plugin'.
1837 * compile/compile-c.h: Include gcc_c_plugin.h.
1838 (struct compile_c_instance) <c_plugin>: New member.
1839 * gcc-c-plugin.h: New file.
1840 Update all callers with API change.
1841
b7dc48b4
KS
18422018-08-10 Keith Seitz <keiths@redhat.com>
1843
1844 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1845 (HFILES_NO_SRCDIR): ... to here.
1846 Add compile-internal.h and compile-c.h.
1847 * compile/compile-c-support.c: Include compile-c.h.
1848 * compile/compile-c-symbols.c: Include compile-c.h.
1849 (generate_c_for_variable_locations): Update comment.
1850 * compile/compile-c-types.c: Include compile-c.h.
1851 * compile/compile-c.h: New file -- moved C language declarations
1852 from other files here.
1853 * compile/compile-internal.h: Do not include hashtab.h or
1854 common/enum-flags.h.
1855 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1856 (gcc_convert_symbol, gcc_symbol_address)
1857 (generate_c_for_variable_locations, c_get_mode_for_size)
1858 (c_get_range_decl_name): Definitions moved to compile-c.h.
1859 * compile/compile-loc2c.c: Include compile-c.h.
1860
6f36b6d2
KS
18612018-08-10 Keith Seitz <keiths@redhat.com>
1862
1863 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1864 (c_symbol_substitution_name): ... this.
1865 Update all callers.
1866
bd923e51
KS
18672018-08-10 Keith Seitz <keiths@redhat.com>
1868
1869 * compile/compile-c-support.c (c_compute_program): Use
1870 unique_xmalloc_ptr to eliminate cleanup.
1871 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1872 Return a unique_xmalloc_ptr and eliminate cleanup.
1873 * compile/compile-internal.h (generate_c_for_variable_locations):
1874 Return unique_xmalloc_ptr and update description.
1875
dbd534fe
AH
18762018-08-10 Alan Hayward <alan.hayward@arm.com>
1877
1878 * corelow.c (core_target::get_core_register_section): Rename
1879 min_size to section_min_size.
1880
90ad3654
JW
18812018-08-09 Jim Wilson <jimw@sifive.com>
1882
52a187f8
JW
1883 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1884 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1885 * NEWS: Mention new GNU/Linux RISC-V target.
1886 * configure.host: Add riscv*-*-linux*.
1887 * configure.nat: Add riscv*.
1888 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 1889 * riscv-linux-nat.c: New file.
90ad3654
JW
1890 * riscv-linux-tdep.c: New file.
1891
aff4e175
AB
18922018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1893
1894 * infrun.c (resume): Make static, add forward declaration.
1895 (proceed): Update header comment.
1896 * infrun.h (resume): Delete declaration.
1897
06ab9219
TT
18982018-08-09 Tom Tromey <tom@tromey.com>
1899
1900 * riscv-tdep.h: Minor formatting fixes.
1901
83c8d318
SM
19022018-08-09 Simon Marchi <simon.marchi@ericsson.com>
1903
1904 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
1905 * dwarf-index-cache.c (create_dir_and_check): Likewise.
1906 (test_mkdir_recursive): Likewise.
1907 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
1908
5ff2bbae
AB
19092018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1910
1911 * valarith.c (value_subscripted_rvalue): If an array is not in
1912 memory, and we don't know the upper bound, then we can't know that
1913 the requested element exists or not.
1914
fdbac7d8
SM
19152018-08-08 Simon Marchi <simon.marchi@ericsson.com>
1916
1917 * target.c (str_comma_list_concat_elem): Fix typo in comment.
1918 (target_options_to_string): Add comment.
1919
83202f7a
TT
19202018-08-08 Tom Tromey <tom@tromey.com>
1921
1922 * unittests/scoped_mmap-selftests.c: Check result of "write".
1923
411baa47
JW
19242018-08-08 Jim Wilson <jimw@sifive.com>
1925
5c720ed8
JW
1926 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
1927 (decode_register_index_short): New.
1928 (decode_j_type_insn, decode_cj_type_insn): New.
1929 (decode_b_type_insn, decode_cb_type_insn): New.
1930 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
1931 local xlen. Check xlen when decoding ambiguous compressed insns. In
1932 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
1933 is_c_sw_insn instead of is_sw_insn.
1934 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
1935 (riscv_software_single_step): New.
1936 * riscv-tdep.h (riscv_software_single_step): Declare.
1937
411baa47
JW
1938 * riscv-tdep.c (riscv_isa_xlen): Drop static.
1939 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
1940
9d4a934c
AB
19412018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
1942
1943 PR gdb/18050:
1944 * target.c (dispose_inferior): Don't dispose of inferiors that are
1945 already killed.
1946
ff36536c
SN
19472018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1948
1949 * remote.c (remote_target::download_tracepoint): Change char* to
1950 const char*.
1951
09ce46f2
SM
19522018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1953
1954 * target.h (target_options_to_string): Return an std::string.
1955 * target.c (str_comma_list_concat_elem): Return void, use
1956 std::string.
1957 (do_option): Likewise.
1958 (target_options_to_string): Return an std::string.
1959 * linux-nat.c (linux_nat_target::wait): Adjust.
1960 * target-debug.h (target_debug_print_options): Adjust.
1961
9c612964
TT
19622018-08-07 Tom Tromey <tom@tromey.com>
1963
1964 * Makefile.in (CPPFLAGS): New variable.
1965 (INTERNAL_CPPFLAGS): Use it.
1966
7d11235d
SM
19672018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1968
1969 * NEWS: Mention the index cache.
1970
87d6a7aa
SM
19712018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1972
1973 * common/pathstuff.h (get_standard_cache_dir): New.
1974 * common/pathstuff.c (get_standard_cache_dir): New.
1975 * build-id.h (build_id_to_string): New.
1976 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
1977 DEBUG_STR_SUFFIX): Move to here.
1978 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
1979 DEBUG_STR_SUFFIX): Move from there.
1980 (write_psymtabs_to_index): Make non-static, add basename
1981 parameter. Write to temporary files, rename when done.
1982 (save_gdb_index_command): Adjust call to
1983 write_psymtabs_to_index.
1984 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
1985 field.
1986 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
1987 (get_gdb_index_contents_from_cache): New.
1988 (get_gdb_index_contents_from_cache_dwz): New.
1989 (dwarf2_initialize_objfile): Read index from cache.
1990 (dwarf2_build_psymtabs): Save to index.
1991 * dwarf-index-cache.h: New file.
1992 * dwarf-index-cache.c: New file.
1993 * dwarf-index-write.h: New file.
1994
8a99096f
SM
19952018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1996
1997 * gnulib/aclocal.m4: Re-generate.
1998 * gnulib/config.in: Re-generate.
1999 * gnulib/configure: Re-generate.
2000 * gnulib/import/Makefile.am: Re-generate.
2001 * gnulib/import/Makefile.in: Re-generate.
2002 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2003 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2004 * gnulib/import/m4/mkdir.m4: New file.
2005 * gnulib/import/mkdir.c: New file.
2006 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2007 module.
2008
5c831bb1
SM
20092018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2010
2011 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2012 * common/scoped_mmap.c: New file.
2013 * common/scoped_mmap.h (destroy): New method.
2014 (~scoped_mmap, reset): Use destroy.
2015 (scoped_mmap): New move constructor.
2016 (mmap_file): New declaration.
2017 * unittests/scoped_mmap-selftests.c (test_normal,
2018 test_invalid_filename, run_tests): New functions.
2019 (_initialize_scoped_mmap_selftests): Register selftest.
2020
4485a1c1
SM
20212018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2022
2023 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2024 (read_gdb_index_from_buffer): ... this. Remove section
2025 parameter, add buffer parameter.
2026 (get_gdb_index_contents_ftype,
2027 get_gdb_index_contents_dwz_ftype): New typedefs.
2028 (dwarf2_read_gdb_index): Add callback parameters to get the
2029 index contents.
2030 (get_gdb_index_contents_from_section): New.
2031 (dwarf2_initialize_objfile): Update call to
2032 dwarf2_read_gdb_index.
2033
528e1572
SM
20342018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2035
2036 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2037 (gdb_open_cloexec): Likewise.
2038 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2039 (commandline_from_pid): Likewise.
2040 (linux_xfer_osdata_threads): Likewise.
2041 (linux_xfer_osdata_fds): Likewise.
2042 * ada-lang.c (is_package_name): Likewise.
2043 * auxv.c (procfs_xfer_auxv): Likewise.
2044 * breakpoint.c (print_one_breakpoint_location): Use
2045 uiout::field_fmt.
2046 (print_one_catch_solib): Use string_printf.
2047 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2048 (add_pe_forwarded_sym): Likewise.
2049 * dwarf2read.c (create_type_unit_group): Likewise.
2050 (build_error_marker_type): Likewise.
2051 * infcall.c (get_function_name): Likewise.
2052 * valprint.c (print_converted_chars_to_obstack): Likewise.
2053 * xtensa-tdep.c (xtensa_register_type): Likewise.
2054
a7f25a84
SM
20552018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2056
2057 * remote.c (remote_target::download_tracepoint): Fix format
2058 string errors.
2059
296956be
PFC
20602018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2061
2062 * tracefile.c: Include common/byte-vector.h.
2063 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2064 with trace_regblock_size if needed. Update uses of buf.
2065
a04b9d62
PFC
20662018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2067
2068 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2069 std::vector<unsigned char>.
2070 * tracepoint.c (collection_list::collection_list): Remove
2071 m_regs_mask initializer from initializer list. Resize
2072 m_regs_mask using the largest remote register number.
2073 (collection_list::add_remote_register): Remove size check on
2074 m_regs_mask. Use at to access element.
2075 (collection_list::stringify): Change type of temp_buf to
2076 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2077 stringify the register mask. Use pack_hex_byte for the register
2078 mask.
2079
4277c4b8
PFC
20802018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2081
2082 * tracepoint.h (class collection_list) <add_register>: Remove.
2083 <add_remote_register, add_ax_registers, add_local_register>:
2084 Declare.
2085 <add_memrange>: Add scope parameter.
2086 * tracepoint.c (encode_actions_1): Likewise.
2087 (collection_list::add_register): Rename to ...
2088 (collection_list::add_remote_register): ... this. Update
2089 comment.
2090 (collection_list::add_ax_registers, add_local_register): New
2091 methods.
2092 (collection_list::add_memrange): Add scope parameter. Call
2093 add_local_register instead of add_register.
2094 (finalize_tracepoint_aexpr): New function.
2095 (collection_list::collect_symbol): Update calls to add_memrange.
2096 Call add_local_register instead of add_register. Call
2097 add_ax_registers. Call finalize_tracepoint_aexpr.
2098 (encode_actions_1): Get remote regnos for $reg action. Call
2099 add_remote_register, add_ax_registers, and add_local_register.
2100 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2101 (validate_actionline): Call finalize_tracepoint_aexpr.
2102
3df3a985
PFC
21032018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2104
2105 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2106 Replace array buf with gdb::char_vector buf, of size
2107 get_remote_packet_size (). Replace references to buf and
2108 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2109 and xsnprintf with snprintf. Raise errors if the buffer is too
2110 small.
2111
aa6f3694
PFC
21122018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2113
2114 * remote.c (remote_target::download_tracepoint): Fix the has_more
2115 predicate in the QTDP action list iteration.
2116
05abfc39
PFC
21172018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2118
2119 * remote.c (remote_target::download_tracepoint): Fix indentation
2120 in for block.
2121
821a2682
RO
21222018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2123
2124 * proc-api.c (_initialize_proc_api): Remove c, unused.
2125 * procfs.c (procfs_init_inferior): Remove signals, unused.
2126 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2127 unused.
2128
95347337
AB
21292018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2130 Andrew Burgess <andrew.burgess@embecosm.com>
2131
2132 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2133 'W_STOPCODE (0)' as this could be ambiguous.
2134
425699f5
SDJ
21352018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2136
2137 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2138 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2139 "ai_socktype").
2140
3e1d3d8c
TT
21412018-08-02 Tom Tromey <tom@tromey.com>
2142
2143 PR symtab/16842.
2144 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2145 symbols.
2146 (process_structure_scope): Likewise.
2147
15843549
XR
21482018-08-02 Xavier Roirand <roirand@adacore.com>
2149
2150 PR gdb/22629:
2151 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2152 kill inferior.
2153
b5bddbbb
TT
21542018-08-02 Tom Tromey <tom@tromey.com>
2155
2156 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2157 (darwin_suspend_inferior, darwin_resume_inferior)
2158 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2159 (darwin_check_new_threads): Check result of get_darwin_inferior.
2160
f61cfa07
JB
21612018-07-31 Joel Brobecker <brobecker@adacore.com>
2162
2163 GDB 8.1.1 released.
2164
5abe0f0c
JV
21652018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2166
2167 * varobj.c (varobj_get_path_expr_parent): Report an error if
2168 parent is a dynamic varobj.
2169
472fa5ee
SM
21702018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2171
2172 * gnulib/aclocal.m4: Re-generate.
2173 * gnulib/config.in: Re-generate.
2174 * gnulib/configure: Re-generate.
2175 * gnulib/import/Makefile.in: Re-generate.
2176 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2177 * gnulib/import/m4/onceonly.m4: Re-generate.
2178
1c28969e
SM
21792018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2180
2181 * target-descriptions.c (struct xml_test_tdesc): New.
2182 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2183 (record_xml_tdesc): Update.
2184 (maintenance_check_xml_descriptions): Update.
2185 * target-descriptions.h (record_xml_tdesc): Update comment.
2186
c8f2dc0d
AB
21872018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2188
2189 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2190 checking array bounds are defined.
2191
463c08d1
TT
21922018-07-30 Tom Tromey <tom@tromey.com>
2193
2194 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2195 irreflexivity violation.
2196
dba7455e
TT
21972018-07-30 Tom Tromey <tom@tromey.com>
2198
2199 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2200 * value.c (unpack_long): Remove lint code.
2201 * valops.c (value_ind): Remove lint code.
2202 * valarith.c (value_x_binop, value_x_unop, value_equal)
2203 (value_pos): Remove lint code.
2204
37cc0cae
TV
22052018-07-28 Tom de Vries <tdevries@suse.de>
2206
2207 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2208 with undefined upper bound as <optimized out>.
2209
129eb0f1
SDJ
22102018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2211
2212 * gcore.in: Rename variable "name" to "prefix". Expand
2213 "usage" text.
2214
6af79d7b
JT
22152018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2216
2217 * windows-nat.c (windows_nat_target::create_inferior): Update to
2218 call close() in global namespace.
2219
79748972
TT
22202018-07-26 Tom Tromey <tom@tromey.com>
2221
2222 * dwarf-index-write.c (add_address_entry): Don't add objfile
2223 offsets.
2224 * dbxread.c (find_stab_function): Rename from
2225 find_stab_function_addr. Return a bound_minimal_symbol.
2226 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2227 Don't add objfile offsets.
2228 (end_psymtab): Use raw_text_low, raw_text_high,
2229 MSYMBOL_VALUE_RAW_ADDRESS.
2230 (read_ofile_symtab): Update.
2231 (process_one_symbol): Update.
2232 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2233 offsets.
2234 (dw2_relocate): Remove.
2235 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2236 searching addrmap.
2237 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2238 Update.
2239 (process_psymtab_comp_unit_reader, add_partial_symbol)
2240 (add_partial_subprogram, dwarf2_ranges_read): Update.
2241 (load_partial_dies): Update.
2242 (add_address_entry): Don't add objfile offsets.
2243 (dwarf2_build_include_psymtabs): Update.
2244 (create_addrmap_from_aranges): Don't add objfile offsets.
2245 (dw2_find_pc_sect_compunit_symtab): Update.
2246 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2247 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2248 Update.
2249 (parse_partial_symbols): Don't add objfile offsets. Use
2250 raw_text_low, raw_text_high. Update.
2251 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2252 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2253 or call 'relocate' quick function. Clear psymbol_map.
2254 * psympriv.h (struct partial_symbol) <address>: Add section
2255 offset.
2256 <set_unrelocated_address>: Rename from set_address.
2257 <raw_text_low, raw_text_high>: New methods.
2258 <text_low, text_high>: Add objfile parameter.
2259 (add_psymbol_to_bcache): Add 'section' parameter. Call
2260 set_unrelocated_address.
2261 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2262 (find_pc_psymbol): Update.
2263 (fixup_psymbol_section, relocate_psymtabs): Remove.
2264 (dump_psymtab, psym_functions): Update.
2265 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2266 parameter.
2267 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2268 (start_psymtab_common): Update.
2269 * symfile-debug.c (debug_qf_relocate): Remove.
2270 (debug_sym_quick_functions): Update.
2271 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2272 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2273 Update.
2274
52948f01
TT
22752018-07-26 Tom Tromey <tromey@redhat.com>
2276
2277 * dbxread.c (end_psymtab): Use text_high_valid and
2278 text_low_valid.
2279 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2280 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2281 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2282 Update comment.
2283 <text_low_valid, text_high_valid>: New fields.
2284 <set_text_low, set_text_high>: Update.
2285 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2286
4ae976d1
TT
22872018-07-26 Tom Tromey <tom@tromey.com>
2288
2289 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2290 Update.
2291 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2292 textlow and texthigh fields.
2293 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2294 Update.
2295 * mdebugread.c (parse_lines, parse_partial_symbols)
2296 (psymtab_to_symtab_1): Update.
2297 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2298 Rename fields. Update comment. Now private.
2299 <text_low, text_high, set_text_low, set_text_high>: New methods.
2300 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2301 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2302 (start_psymtab_common, maintenance_info_psymtabs)
2303 (maintenance_check_psymtabs): Update.
2304 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2305 texthigh fields.
2306 (scan_xcoff_symtab): Update.
2307
02e9e7f7
TT
23082018-07-26 Tom Tromey <tromey@redhat.com>
2309
2310 * psympriv.h (struct partial_symbol) <unrelocated_address,
2311 address, set_address>: New methods.
2312 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2313 (fixup_psymbol_section, relocate_psymtabs): Update.
2314 (print_partial_symbols): Add 'objfile' parameter. Update.
2315 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2316 Update.
2317
8a6d4234
TT
23182018-07-26 Tom Tromey <tom@tromey.com>
2319
2320 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2321 (debug_names::write_psymbols): Update.
2322 * psympriv.h (struct partial_symbol): Derive from
2323 general_symbol_info.
2324 <obj_section>: New method.
2325 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2326 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2327 (find_pc_sect_psymbol, fixup_psymbol_section)
2328 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2329 (print_partial_symbols, recursively_search_psymtabs)
2330 (compare_psymbols, psymbol_hash, psymbol_compare)
2331 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2332 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2333
08994e1d
TT
23342018-07-26 Tom Tromey <tromey@redhat.com>
2335
2336 * dbxread.c (end_psymtab): Remove dead code.
2337
3c3bb058
AB
23382018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2339
2340 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2341 DWARF unwinders are disabled.
2342 * dwarf2-frame.c: Add dwarf2read.h include.
2343 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2344 disabled.
2345 (dwarf2_frame_unwinders_enabled_p): Define.
2346 (show_dwarf_unwinders_enabled_p): New function.
2347 (_initialize_dwarf2_frame): Register switch to control DWARF
2348 unwinder use.
2349 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2350 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2351 (show_dwarf_cmdlist): Remove static keyword.
2352 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2353 (show_dwarf_cmdlist): Declare.
2354 * NEWS: Document new feature.
2355
9e7f3bbb
TV
23562018-07-26 Tom de Vries <tdevries@suse.de>
2357
2358 PR breakpoints/23366
2359 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2360
506f5c41
TV
23612018-07-26 Tom de Vries <tdevries@suse.de>
2362
2363 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2364 DW_AT_count can't be translated to a dynamic prop.
2365
16f808ec
TV
23662018-07-25 Tom de Vries <tdevries@suse.de>
2367
2368 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2369 try/catch.
2370
d7154a8d
JV
23712018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2372
2373 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2374
a45389f6
JB
23752018-07-25 Joel Brobecker <brobecker@adacore.com>
2376
2377 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2378
380618d6
KS
23792018-07-24 Keith Seitz <keiths@redhat.comt
2380
2381 PR symtab/23010
2382 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2383 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2384 instead of add_symbol_to_list.
2385 (read_file_scope): Call prepare_one_comp_unit before reading
2386 any other DIEs.
2387
4b17aefe
SM
23882018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2389
2390 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2391
29d17e47
TT
23922018-07-24 Tom Tromey <tom@tromey.com>
2393
2394 * utils.c (malloc, realloc, free): Don't declare.
2395 * configure, config.in: Rebuild.
2396 * configure.ac: Don't check for declarations of free, malloc, or
2397 realloc.
2398
cf4088a9
SM
23992018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2400
2401 * aarch64-linux-nat.c
2402 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2403 variable.
2404 * arm-linux-nat.c (fetch_regs): Likewise.
2405 (store_regs): Likewise.
2406 (fetch_vfp_regs): Likewise.
2407 (store_vfp_regs): Likewise.
2408 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2409 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2410 (arm_linux_nat_target::insert_watchpoint): Likewise.
2411 (arm_linux_nat_target::remove_watchpoint): Likewise.
2412 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2413 Likewise.
2414 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2415 Likewise.
2416 * ppc-linux-nat.c (fetch_register): Likewise.
2417 (fetch_all_gp_regs): Likewise.
2418 (fetch_ppc_registers): Likewise.
2419 (store_all_gp_regs): Likewise.
2420 (store_ppc_registers): Likewise.
2421 (hwdebug_insert_point): Likewise.
2422 (can_use_watchpoint_cond_accel): Likewise.
2423 * remote-sim.c (gdb_os_write_stdout): Likewise.
2424
a0de763e
TT
24252018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2426 Tom Tromey <tom@tromey.com>
2427
2428 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2429 test for it.
2430 * configure: Rebuild.
2431
3b20124b
TT
24322018-07-22 Tom Tromey <tom@tromey.com>
2433
2434 * regformats/regdat.sh: Define xmltarget_${name} inside
2435 #ifndef IN_PROCESS_AGENT.
2436
8c8807f4
TT
24372018-07-22 Tom Tromey <tom@tromey.com>
2438
2439 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2440
c486b610
TT
24412018-07-22 Tom Tromey <tom@tromey.com>
2442
2443 * symfile.c (reread_symbols): Notify iter, not objfile.
2444
494f80a9
TT
24452018-07-22 Tom Tromey <tom@tromey.com>
2446
2447 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2448 Use arch_ops.
2449 (ravenscar_thread_target::prepare_to_store): Likewise.
2450
c51f6a54
TT
24512018-07-22 Tom Tromey <tom@tromey.com>
2452
2453 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2454 unused variable. Call value_fetch_lazy when needed.
2455 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2456 Remove unused variable. Call value_fetch_lazy when needed.
2457
374fd1fd
TT
24582018-07-22 Tom Tromey <tom@tromey.com>
2459
2460 * m32c-tdep.c (mark_dma): Return void.
2461 (make_regs): Remove unused declarations.
2462
d5e9a511
TT
24632018-07-22 Tom Tromey <tom@tromey.com>
2464
2465 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2466 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2467 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2468 bkscm_get_valid_block_smob_arg_unsafe for effect.
2469
996d693a
TT
24702018-07-22 Tom Tromey <tom@tromey.com>
2471
2472 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2473 value_type.
2474
15766370
TT
24752018-07-22 Tom Tromey <tom@tromey.com>
2476
2477 * windows-nat.c (saved_context): Conditionally define.
2478 * remote.c (remote_target::remote_btrace_maybe_reopen):
2479 Conditionally declare "warned".
2480 * inflow.c (sigquit_ours): Conditionally define.
2481 (new_tty): Move "tty" declaration inside #if.
2482 * guile/guile.c (guile_datadir): Conditionally define.
2483 * charset.c (set_be_le_names): Move some declarations inside #if.
2484 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2485 #if.
2486 (parse_xml_btrace_conf): Likewise.
2487
f4e80e13
TT
24882018-07-22 Tom Tromey <tom@tromey.com>
2489
2490 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2491
8d49165d
TT
24922018-07-22 Tom Tromey <tom@tromey.com>
2493
2494 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2495 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2496 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2497 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2498 * stack.c (frame_apply_level_command): Remove unused variable.
2499 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2500 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2501 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2502 unused variable.
2503 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2504 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2505 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2506 variable.
2507 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2508 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2509 variable.
2510 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2511 Remove unused variable.
2512 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2513 variable.
2514 * common/tdesc.c (print_xml_feature::visit): Remove unused
2515 variable.
2516 * compile/compile-object-load.c (store_regs): Remove unused
2517 variables.
2518 * complaints.c (clear_complaints): Remove unused variable.
2519 * corelow.c (core_target_open): Remove unused variable.
2520 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2521 variable.
2522 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2523 variable.
2524 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2525 variable.
2526 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2527 variable.
2528 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2529 variable.
2530 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2531 variable.
2532 * ia64-tdep.c (examine_prologue): Remove unused variable.
2533 * infcall.c (run_inferior_call): Remove unused variable.
2534 * inferior.c (exit_inferior): Remove unused variable.
2535 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2536 * linespec.c (decode_line_2): Remove unused variable.
2537 * linux-nat.c (super_close): Remove.
2538 * linux-tdep.c (linux_info_proc): Remove unused variable.
2539 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2540 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2541 Remove unused variable.
2542 * parse.c (find_minsym_type_and_address): Remove unused variable.
2543 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2544 variable.
2545 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2546 variable.
2547 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2548 variables.
2549 * record-btrace.c (record_btrace_target::store_registers): Remove
2550 unused variable.
2551 (cmd_show_record_btrace_cpu): Remove unused variable.
2552 * riscv-tdep.c (riscv_register_reggroup_p)
2553 (riscv_push_dummy_call, riscv_return_value): Remove unused
2554 variable.
2555 * rust-exp.y (literal): Remove unused variable.
2556 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2557 unused variable.
2558 <STRUCTOP_ANONYMOUS>: Likewise.
2559 * s390-linux-tdep.c (s390_linux_init_abi_31)
2560 (s390_linux_init_abi_64): Remove unused variable.
2561 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2562 (file_select_thread, net_windows_open, _initialize_ser_windows):
2563 Remove unused variables.
2564 * symtab.c (find_pc_sect_line): Remove unused variable.
2565 * target-memory.c (compute_garbled_blocks): Remove unused
2566 variable.
2567 (target_write_memory_blocks): Remove unused variable.
2568 * target.c (target_stack::unpush): Remove unused variables.
2569 * tracepoint.c (start_tracing, all_tracepoint_actions)
2570 (merge_uploaded_trace_state_variables)
2571 (print_one_static_tracepoint_marker): Remove unused variable.
2572 * unittests/basic_string_view/element_access/char/1.cc (test01):
2573 Remove unused variable.
2574 * windows-nat.c (windows_continue, windows_add_all_dlls)
2575 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2576 Remove unused variables.
2577
17cbafdb
SM
25782018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2579
2580 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2581 attr_profile in HAVE_ELF.
2582 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2583 HAVE_ELF.
2584
0ee6c332
SM
25852018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2586
2587 * frame.c (frame_register_unwind): Change parameter name.
2588 (frame_unwind_register): Likewise.
2589 (frame_unwind_register_value): Likewise.
2590 (frame_unwind_register_signed): Likewise.
2591 (frame_unwind_register_unsigned): Likewise.
2592 * frame.h (frame_register_unwind): Likewise.
2593 (frame_unwind_register): Likewise.
2594 (frame_unwind_register_value): Likewise.
2595 (frame_unwind_register_signed): Likewise.
2596 (frame_unwind_register_unsigned): Likewise.
2597 (frame_unwind_arch): Likewise.
2598
e2e31f10
MR
25992018-07-20 Maciej W. Rozycki <macro@mips.com>
2600
2601 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2602 ISA maintenance.
2603
2d389915
MR
26042018-07-20 Maciej W. Rozycki <macro@mips.com>
2605
2606 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2607 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2608 hand.
2609
cbb09508
KS
26102018-07-20 Keith Seitz <keiths@redhat.com>
2611
2612 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2613 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2614 m_compunit_symtab, m_language>: Add "m_" prefix.
2615 Update all uses.
2616 * buildsym.c: Update all uses.
2617
bfe2e011
TT
26182018-07-20 Tom Tromey <tom@tromey.com>
2619
2620 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2621 * buildsym.h (record_line_ftype): Remove typedef.
2622
0e6f3061
TT
26232018-07-20 Tom Tromey <tom@tromey.com>
2624
2625 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2626 (end_expandable_symtab): Likewise.
2627 (end_symtab_get_static_block): Likewise.
2628 (end_symtab_from_static_block): Likewise.
2629 * buildsym-legacy.c (augment_type_symtab): Remove.
2630 (end_expandable_symtab): Remove.
2631 (end_symtab_get_static_block): Remove.
2632 (end_symtab_from_static_block): Remove.
2633
804d2729
TT
26342018-07-20 Tom Tromey <tom@tromey.com>
2635
2636 * dwarf2read.c: Include buildsym.h.
2637 (struct dwarf2_cu) <builder>: New method.
2638 (fixup_go_packaging): Update.
2639 (process_full_comp_unit, process_full_type_unit): Update. Don't
2640 use scoped_free_pendings.
2641 (using_directives): Add "cu" parameter, remove "language".
2642 (read_import_statement, setup_type_unit_groups, )
2643 (read_func_scope, read_lexical_block_scope)
2644 (dwarf2_record_block_ranges, read_namespace): Update.
2645 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2646 (lnp_state_machine::handle_end_sequence): Update.
2647 (class lnp_state_machine) <m_cu>: New member.
2648 <m_record_line_callback>: Remove.
2649 <m_currently_recording_lines>: New member.
2650 (lnp_state_machine::handle_set_file): Update.
2651 (noop_record_line): Remove.
2652 (dwarf_record_line_p): Add cu parameter.
2653 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2654 (lnp_state_machine::record_line)
2655 (lnp_state_machine::lnp_state_machine)
2656 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2657 (dwarf_decode_lines): Update.
2658 (dwarf2_start_subfile): Add cu parameter.
2659 (dwarf2_start_symtab, new_symbol): Update.
2660 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2661 Remove dwarf2_per_objfile parameter.
2662 (dwarf_decode_macros): Update.
2663
80e649fc
TT
26642018-07-20 Tom Tromey <tom@tromey.com>
2665
2666 * stabsread.c (define_symbol): Update.
2667 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2668 * dwarf2read.c (new_symbol): Update.
2669 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2670 * cp-namespace.c: Include buildsym.h.
2671 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2672 * buildsym-legacy.c (get_buildsym_compunit): New function.
2673
0baae8db
TT
26742018-07-20 Tom Tromey <tom@tromey.com>
2675
2676 * xcoffread.c: Include buildsym-legacy.h.
2677 * windows-nat.c: Include buildsym-legacy.h.
2678 * stabsread.c: Include buildsym-legacy.h.
2679 * mdebugread.c: Include buildsym-legacy.h.
2680 * buildsym-legacy.h: New file.
2681 * buildsym-legacy.c: New file, from buildsym.c.
2682 * go32-nat.c: Include buildsym-legacy.h.
2683 * dwarf2read.c: Include buildsym-legacy.h.
2684 * dbxread.c: Include buildsym-legacy.h.
2685 * cp-namespace.c: Include buildsym-legacy.h.
2686 * coffread.c: Include buildsym-legacy.h.
2687 * buildsym.h: Move some contents to buildsym-legacy.h.
2688 * buildsym.c: Include buildsym-legacy.h. Move many functions to
2689 buildsym-legacy.c.
2690 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2691
ab209f6f
TT
26922018-07-20 Tom Tromey <tom@tromey.com>
2693
2694 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2695 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2696 (buildsym_compunit::buildsym_compunit)
2697 (buildsym_compunit::~buildsym_compunit)
2698 (buildsym_compunit::get_macro_table): Define.
2699
74c72eac
TT
27002018-07-20 Tom Tromey <tom@tromey.com>
2701
2702 * buildsym.c (reset_symtab_globals): Remove.
2703 (buildsym_compunit::end_symtab_from_static_block): Update.
2704 (buildsym_compunit::augment_type_symtab): Update.
2705 (end_symtab_from_static_block): Call free_buildsym_compunit.
2706 (augment_type_symtab, end_symtab, end_expandable_symtab):
2707 Likewise.
2708
da6580e5
TT
27092018-07-20 Tom Tromey <tom@tromey.com>
2710
2711 * arch-utils.c: Do not include buildsym.h.
2712 * mipsread.c: Do not include buildsym.h.
2713 * machoread.c: Do not include buildsym.h.
2714 * elfread.c: Do not include buildsym.h.
2715
4a2125f5
TT
27162018-07-20 Tom Tromey <tom@tromey.com>
2717
2718 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2719 initialization.
2720 (buildsym_compunit): Add new constructor.
2721 (struct buildsym_compunit) <get_last_source_file, finish_block,
2722 record_block_range, start_subfile, patch_subfile_names,
2723 push_subfile, pop_subfile, record_line, get_compunit_symtab,
2724 set_last_source_start_addr, get_last_source_start_addr,
2725 get_local_using_directives, set_local_using_directives,
2726 get_global_using_directives, outermost_context_p,
2727 get_current_context_stack, get_context_stack_depth,
2728 get_current_subfile, get_local_symbols, get_file_symbols,
2729 get_global_symbols, record_debugformat, record_producer,
2730 push_context, pop_context, end_symtab_get_static_block,
2731 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2732 New public methods.
2733 <record_pending_block, finish_block_internal, make_blockvector,
2734 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2735 private methods.
2736 Update all users.
2737
27382018-05-22 Tom Tromey <tom@tromey.com>
2739
2740 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2741 parameter.
2742 (finish_block_internal): Update.
2743
6b213a47
TT
27442018-07-20 Tom Tromey <tom@tromey.com>
2745
2746 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2747 parameter.
2748 (finish_block_internal): Update.
2749
b80a981d
TT
27502018-07-20 Tom Tromey <tom@tromey.com>
2751
2752 * buildsym.h (EXTERN): Don't define or undef.
2753 * buildsym.c (EXTERN): Don't define.
2754
ddb70602
TT
27552018-07-20 Tom Tromey <tom@tromey.com>
2756
2757 * buildsym.c: Remove TODO comment.
2758
b37dd3bc
TT
27592018-07-20 Tom Tromey <tom@tromey.com>
2760
2761 * coffread.c (coff_symtab_read): Update.
2762 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2763 (xcoff_new_init): Update.
2764 * mipsread.c (mipscoff_new_init): Update.
2765 * mdebugread.c (mdebug_build_psymtabs): Update.
2766 * elfread.c (elf_new_init): Update.
2767 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2768 Update.
2769 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2770 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2771 (stabsect_build_psymtabs): Update.
2772 * buildsym.h (buildsym_init): Don't declare.
2773 * buildsym.c: Update comment.
2774 (prepare_for_building): Remove.
2775 (start_symtab, restart_symtab): Update.
2776 (reset_symtab_globals): Update comment.
2777 (buildsym_init): Remove.
2778
e148f09d
TT
27792018-07-20 Tom Tromey <tom@tromey.com>
2780
2781 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2782 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2783 (read_enum_type, common_block_start, common_block_end)
2784 (cleanup_undefined_types_1, finish_global_stabs): Update.
2785 * mdebugread.c (psymtab_to_symtab_1): Update.
2786 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2787 (read_lexical_block_scope, new_symbol): Update.
2788 * dbxread.c (process_one_symbol): Update.
2789 * coffread.c (coff_symtab_read, process_coff_symbol)
2790 (coff_read_enum_type): Update.
2791 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2792 declare.
2793 (get_local_symbols, get_file_symbols, get_global_symbols): New
2794 functions.
2795 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2796 m_global_symbols.
2797 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2798 (~scoped_free_pendings): Update.
2799 (finish_block, prepare_for_building, reset_symtab_globals)
2800 (end_symtab_get_static_block, end_symtab_with_blockvector)
2801 (augment_type_symtab, push_context): Update.
2802 (get_local_symbols, get_file_symbols, get_global_symbols): New
2803 functions.
2804 (buildsym_init): Update.
2805
93b8bea4
TT
28062018-07-20 Tom Tromey <tom@tromey.com>
2807
2808 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2809 (process_full_type_unit): Likewise.
2810 (dwarf2_start_symtab): Set list_in_scope.
2811
f62f6af5
TT
28122018-07-20 Tom Tromey <tom@tromey.com>
2813
2814 * dwarf2read.c (process_psymtab_comp_unit_reader)
2815 (build_type_psymtabs_reader): Do not set list_in_scope.
2816
1d376700
TT
28172018-07-20 Tom Tromey <tom@tromey.com>
2818
2819 * buildsym.c (free_pendings): Remove.
2820 (add_symbol_to_list, scoped_free_pendings)
2821 (finish_block_internal, buildsym_init): Update.
2822
c233e9c6
TT
28232018-07-20 Tom Tromey <tom@tromey.com>
2824
2825 * xcoffread.c (read_xcoff_symtab): Update.
2826 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2827 Update.
2828 * dbxread.c (process_one_symbol): Update.
2829 * coffread.c (coff_symtab_read): Update.
2830 * buildsym.h (finish_block): Update.
2831 * buildsym.c (finish_block): Remove "listhead" argument.
2832 (end_symtab_get_static_block): Update.
2833
5ac04550
TT
28342018-07-20 Tom Tromey <tom@tromey.com>
2835
2836 * buildsym.h (class scoped_free_pendings): Remove constructor.
2837 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2838 method.
2839 <m_pending_block_obstack, m_pending_blocks>: New members.
2840 (pending_block_obstack, pending_blocks): Remove.
2841 (scoped_free_pendings::scoped_free_pendings): Default.
2842 (~scoped_free_pendings): Update.
2843 (free_pending_blocks): Remove.
2844 (finish_block_internal, record_pending_block, make_blockvector)
2845 (end_symtab_get_static_block, augment_type_symtab, push_context)
2846 (buildsym_init): Update.
2847
7ea05a7b
TT
28482018-07-20 Tom Tromey <tom@tromey.com>
2849
2850 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2851 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2852 members.
2853 (pending_addrmap, pending_addrmap_obstack)
2854 (pending_addrmap_interesting): Remove.
2855 (scoped_free_pendings, record_block_range, make_blockvector)
2856 (prepare_for_building, reset_symtab_globals, buildsym_init):
2857 Update.
2858
3c65e5b3
TT
28592018-07-20 Tom Tromey <tom@tromey.com>
2860
2861 * xcoffread.c (process_linenos): Update.
2862 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2863 * mdebugread.c (psymtab_to_symtab_1): Update.
2864 * dwarf2read.c (setup_type_unit_groups)
2865 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2866 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2867 * dbxread.c (process_one_symbol): Update.
2868 * coffread.c (coff_symtab_read, enter_linenos)
2869 (process_coff_symbol): Update.
2870 * buildsym.h (current_subfile): Don't declare.
2871 (get_current_subfile): Declare.
2872 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2873 member.
2874 (start_subfile, free_buildsym_compunit, push_subfile)
2875 (prepare_for_building, start_symtab): Update.
2876 (get_current_subfile): New function.
2877
a60f3166
TT
28782018-07-20 Tom Tromey <tom@tromey.com>
2879
2880 * coffread.c (coff_symtab_read): Update.
2881 * xcoffread.c (read_xcoff_symtab): Update.
2882 * dwarf2read.c (new_symbol): Update.
2883 (read_func_scope, read_lexical_block_scope): Update.
2884 * dbxread.c (process_one_symbol): Update.
2885 * buildsym.h (context_stack, context_stack_depth): Don't declare.
2886 (outermost_context_p): Remove macro.
2887 (outermost_context_p, get_current_context_stack)
2888 (get_context_stack_depth): Declare.
2889 (pop_context): Return struct context_stack.
2890 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
2891 member.
2892 (context_stack_size): Remove.
2893 (INITIAL_CONTEXT_STACK_SIZE): Remove.
2894 (prepare_for_building, end_symtab_get_static_block)
2895 (augment_type_symtab, push_context): Update.
2896 (pop_context): Return struct context_stack.
2897 (outermost_context_p, get_current_context_stack)
2898 (get_context_stack_depth): New functions.
2899 (buildsym_init): Update.
2900
56ba65a0
TT
29012018-07-20 Tom Tromey <tom@tromey.com>
2902
2903 * rust-exp.y: Now a pure parser. Update all rules.
2904 (%union): Move earlier.
2905 (current_parser, work_obstack): Remove globals.
2906 (rust_parser, ~rust_parser): Update.
2907 (class rust_parser) <copy_name, concat3, crate_name, super_name,
2908 lex_character, lex_number, lex_string, lex_identifier,
2909 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
2910 convert_name, convert_params_to_expression,
2911 convert_ast_to_expression, ast_basic_type, ast_operation,
2912 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
2913 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
2914 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
2915 ast_array_type, ast_slice_type, ast_reference_type,
2916 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
2917 (rust_parse): Update.
2918 (rustyyerror, rustyylex): Add parser parameter.
2919 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
2920 (rust_lex_stringish_test, rust_lex_test_sequence)
2921 (rust_lex_test_trailing_dot, rust_lex_test_completion)
2922 (rust_lex_test_push_back, rust_lex_tests): Update.
2923
4c693332
PA
29242018-07-19 Pedro Alves <palves@redhat.com>
2925
2926 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
2927 gdb::unique_xmalloc_ptr.
2928 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
2929 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
2930 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
2931 copy-initialization.
2932 * guile/scm-pretty-print.c (ppscm_print_children): Use
2933 gdb::unique_xmalloc_ptr instead of cleanups.
2934 (gdbscm_apply_val_pretty_printer): Remove cleanups.
2935 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
2936 gdb::unique_xmalloc_ptr.
2937 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2938 Adjust to use gdb::unique_xmalloc_ptr.
2939 * guile/scm-utils.c (extract_arg): Adjust.
2940 * guile/scm-value.c (gdbscm_value_field): Adjust to use
2941 gdb::unique_xmalloc_ptr instead of a cleanup.
2942
4581dc82
TT
29432018-07-19 Tom Tromey <tom@tromey.com>
2944
2945 * utils.c (do_value_free_to_mark)
2946 (make_cleanup_value_free_to_mark): Remove.
2947 * utils.h (make_cleanup_value_free_to_mark): Remove.
2948
43cc6c3a
PA
29492018-07-19 Pedro Alves <palves@redhat.com>
2950
2951 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
2952 forwarding reference.
2953
3a5f2a48
PA
29542018-07-18 Pedro Alves <palves@redhat.com>
2955
2956 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
2957 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
2958 cleanup.
2959
557e56be
PA
29602018-07-18 Pedro Alves <palves@redhat.com>
2961
2962 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
2963 exceptions.
2964 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
2965 (gdbscm_wrap): New.
2966 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
2967 directly instead of a cleanup.
2968 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
2969 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
2970 (vlscm_binop_gdbthrow): New, factored out from ...
2971 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
2972 (vlscm_rich_compare): Use gdbscm_wrap.
2973 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
2974 instead of a cleanup.
2975 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
2976 cleanup.
2977 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2978 Use xfree directly instead of a cleanup.
2979 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
2980 Adjust to use gdbscm_wrap and scoped_value_mark.
2981 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
2982 (gdbscm_value_address, gdbscm_value_dereference)
2983 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
2984 scoped_value_mark.
2985 (gdbscm_value_dynamic_type): Use scoped_value_mark.
2986 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
2987 scoped_value_mark.
2988 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
2989 gdbscm_wrap and scoped_value_mark.
2990 (gdbscm_value_to_string): Use xfree directly instead of a
2991 cleanup. Move 'buffer' unique_ptr to TRY scope.
2992 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
2993 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
2994 scoped_value_mark.
2995 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
2996 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
2997 scoped_value_mark.
2998 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
2999 gdbscm_wrap.
3000
42dc7699
TV
30012018-07-18 Tom de Vries <tdevries@suse.de>
3002
3003 * findvar.c (default_read_var_value): Also resolve dynamic type for
3004 LOC_OPTIMIZED_OUT vars.
3005
6592ceed
MR
30062018-07-18 Maciej W. Rozycki <macro@mips.com>
3007
3008 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3009 decoding.
3010
c6c6149a
TT
30112018-07-17 Tom Tromey <tom@tromey.com>
3012
3013 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3014 (compute_enum_list, pascm_set_param_value_x)
3015 (gdbscm_parameter_value): Update.
3016 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3017 (gdbscm_scm_to_host_string): Update.
3018 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3019 Update.
3020 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3021 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3022 * guile/scm-string.c (gdbscm_scm_to_string): Return
3023 unique_xmalloc_ptr.
3024 (gdbscm_scm_to_host_string): Likewise.
3025
a1a31cb8
TT
30262018-07-17 Tom Tromey <tom@tromey.com>
3027
3028 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3029 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3030 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3031 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3032 unique_xmalloc_ptr.
3033
15bf3002
TT
30342018-07-17 Tom Tromey <tom@tromey.com>
3035
3036 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3037 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3038 Update.
3039 * guile/scm-cmd.c (cmdscm_function): Update.
3040 * guile/scm-pretty-print.c
3041 (ppscm_print_exception_unless_memory_error): Update.
3042 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3043 Return unique_xmalloc_ptr.
3044
7eb1a66c
TT
30452018-07-17 Tom Tromey <tom@tromey.com>
3046
3047 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3048 Use string_printf.
3049
ce73f310
JW
30502018-07-17 Jim Wilson <jimw@sifive.com>
3051
27724bad
JW
3052 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3053 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3054 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3055 unecessary braces after EF_RISCV_RVC test. Delete call to
3056 set_gdbarch_decr_pc_after_break.
3057
ce73f310
JW
3058 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3059 RISCV_LAST_FP_REGNUM + 1.
3060 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3061
056dec39
TT
30622018-07-17 Tom Tromey <tom@tromey.com>
3063
3064 * configure.ac: Remove --disable-gdbcli.
3065 * configure: Rebuild.
3066 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3067 (SUBDIR_CLI_CFLAGS): Remove.
3068 (SFILES): Use SUBDIR_CLI_SRCS.
3069 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3070
4735f0ed
TT
30712018-07-17 Tom Tromey <tom@tromey.com>
3072
3073 PR gdb/18624:
3074 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3075
117a0e99
JW
30762018-07-16 Jim Wilson <jimw@sifive.com>
3077
3078 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3079
8a67aaa8
SM
30802018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3081
3082 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3083 variable.
3084 (libunwind_frame_sniffer): Likewise.
3085 (libunwind_frame_prev_register): Likewise.
3086 (libunwind_sigtramp_frame_sniffer): Likewise.
3087 * ia64-tdep.c (ia64_access_reg): Likewise.
3088 (ia64_access_rse_reg): Likewise.
3089 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3090 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3091
ec74dcd8
SM
30922018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3093
3094 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3095
a700e753
SM
30962018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3097
3098 * remote-sim.c (gdbsim_target::close,
3099 gdbsim_target::mourn_inferior): Remove unused variables.
3100
8b411ff8
SM
31012018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3102
3103 * ia64-tdep.c (ktab_buf): New global.
3104 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3105 (get_kernel_table): Adjust.
3106
edb0470b
TT
31072018-07-16 Tom Tromey <tom@tromey.com>
3108
3109 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3110 * dwarf2read.c (using_directives, new_symbol): Use
3111 outermost_context_p.
3112 * dbxread.c (process_one_symbol): Use outermost_context_p.
3113 * coffread.c (coff_symtab_read): Use outermost_context_p.
3114
6cccc9a8
TT
31152018-07-16 Tom Tromey <tom@tromey.com>
3116
3117 * dwarf2read.c (using_directives, read_func_scope)
3118 (read_lexical_block_scope): Update.
3119 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3120 * buildsym.h (local_using_directives, global_using_directives):
3121 Don't declare.
3122 (get_local_using_directives, set_local_using_directives)
3123 (get_global_using_directives): Declare.
3124 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3125 m_global_using_directives>: New members.
3126 (finish_block_internal, prepare_for_building)
3127 (reset_symtab_globals, end_symtab_get_static_block)
3128 (push_context): Update.
3129 (get_local_using_directives, set_local_using_directives)
3130 (get_global_using_directives): New functions.
3131 (buildsym_init): Update.
3132
652788a7
TT
31332018-07-16 Tom Tromey <tom@tromey.com>
3134
3135 * xcoffread.c (xcoff_initial_scan): Don't call
3136 free_pending_blocks.
3137 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3138 * buildsym.h (class scoped_free_pendings): Add constructor.
3139 (free_pending_blocks): Don't declare.
3140 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3141 (free_pending_blocks): Now static.
3142
8419ee53
TT
31432018-07-16 Tom Tromey <tom@tromey.com>
3144
3145 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3146 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3147 member.
3148 (struct subfile_stack): Remove.
3149 (subfile_stack): Remove.
3150 (push_subfile, pop_subfile, buildsym_init): Update.
3151
ccdac490
TT
31522018-07-16 Tom Tromey <tom@tromey.com>
3153
3154 * buildsym.c (push_subfile): Use gdb_assert.
3155 (pop_subfile): Use gdb_assert.
3156
43130d6f
TT
31572018-07-16 Tom Tromey <tom@tromey.com>
3158
3159 * buildsym.h (merge_symbol_lists): Remove.
3160 * buildsym.c (merge_symbol_lists): Remove.
3161
77d6f1aa
TT
31622018-07-16 Tom Tromey <tom@tromey.com>
3163
3164 * stabsread.c (scan_file_globals): Update comment.
3165 * stabsread.h (scan_file_globals): Move from buildsym.h.
3166 * buildsym.h (scan_file_globals): Move to stabsread.h.
3167
2c722d18
TT
31682018-07-16 Tom Tromey <tom@tromey.com>
3169
3170 * xcoffread.c (xcoff_new_init): Update.
3171 * mipsread.c (mipscoff_new_init): Update.
3172 * mdebugread.c (mdebug_build_psymtabs): Update.
3173 * elfread.c (elf_new_init): Update.
3174 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3175 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3176 * buildsym.h (buildsym_new_init): Don't declare.
3177 * buildsym.c (buildsym_new_init): Remove.
3178
5985ac61
TT
31792018-07-16 Tom Tromey <tom@tromey.com>
3180
3181 * stabsread.h (within_function): Move from buildsym.h.
3182 * stabsread.c (start_stabs): Clear within_function.
3183 * coffread.c (coff_start_symtab): Clear within_function.
3184 * buildsym.h (within_function): Move to stabsread.h.
3185 * buildsym.c (prepare_for_building): Update.
3186
6b84eeb2
TT
31872018-07-16 Tom Tromey <tom@tromey.com>
3188
3189 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3190 * dwarf2read.c (dwarf2_start_symtab): Don't set
3191 processing_gcc_compilation.
3192 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3193
2150c3ef
TT
31942018-07-16 Tom Tromey <tom@tromey.com>
3195
3196 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3197 (next_symbol_text_func): Move from buildsym.h.
3198 * stabsread.c (hashname): Move from buildsym.c.
3199 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3200 (next_symbol_text_func, hashname): Move to stabsread.h.
3201 * buildsym.c: Don't include bcache.h
3202 (hashname): Move to stasbread.c.
3203
0ec44fc0
TT
32042018-07-16 Tom Tromey <tom@tromey.com>
3205
3206 * buildsym.h (context_stack_size): Don't declare.
3207 * buildsym.c (context_stack_size): New global.
3208
81cc346d
TT
32092018-07-16 Tom Tromey <tom@tromey.com>
3210
3211 * dbxread.c (processing_acc_compilation): New global.
3212 * buildsym.h (processing_acc_compilation): Don't declare.
3213
2c99ee5c
TT
32142018-07-16 Tom Tromey <tom@tromey.com>
3215
3216 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3217 * dbxread.c (read_ofile_symtab): Update.
3218 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3219 * buildsym.h (last_source_start_addr): Remove.
3220 (set_last_source_start_addr, get_last_source_start_addr):
3221 Declare.
3222 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3223 parameter.
3224 (struct buildsym_compunit) <m_last_source_start_addr>: New
3225 member.
3226 (prepare_for_building): Remove start_addr parameter.
3227 (start_symtab, restart_symtab, end_symtab_get_static_block)
3228 (end_symtab_with_blockvector): Update.
3229 (set_last_source_start_addr, get_last_source_start_addr): New
3230 functions.
3231
530fedbc
TT
32322018-07-16 Tom Tromey <tom@tromey.com>
3233
3234 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3235 member.
3236 (have_line_numbers): Remove.
3237 (record_line, prepare_for_building, end_symtab_get_static_block)
3238 (augment_type_symtab): Update.
3239
6a976300
TT
32402018-07-16 Tom Tromey <tom@tromey.com>
3241
3242 * buildsym.c (~buildsym_compunit): Free the macro table.
3243 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3244 methods.
3245 <m_pending_macros>: New member.
3246 (pending_macros): Remove.
3247 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3248 (reset_symtab_globals, end_symtab_get_static_block)
3249 (end_symtab_with_blockvector, augment_type_symtab)
3250 (buildsym_init): Update.
3251
c0015d44
TT
32522018-07-16 Tom Tromey <tom@tromey.com>
3253
3254 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3255 parameter.
3256 (buildsym_compunit::set_last_source_file): New method.
3257 <m_last_source_file>: New member.
3258 (prepare_for_building): Remove "name" parameter.
3259 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3260 (last_source_file): Remove.
3261 (set_last_source_file, get_last_source_file): Update.
3262
e62cca7c
TT
32632018-07-16 Tom Tromey <tom@tromey.com>
3264
3265 * buildsym.c (prepare_for_building): Add assert.
3266
905eb0e2
TT
32672018-07-16 Tom Tromey <tom@tromey.com>
3268
3269 * buildsym.c (~buildsym_compunit): Update.
3270 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3271 (start_subfile, patch_subfile_names)
3272 (end_symtab_with_blockvector): Update.
3273
b248663f
TT
32742018-07-16 Tom Tromey <tom@tromey.com>
3275
3276 * buildsym.c (struct buildsym_compunit): Add constructor,
3277 destructor, initializers.
3278 (start_buildsym_compunit): Remove.
3279 (free_buildsym_compunit): Use "delete".
3280 (start_symtab, restart_symtab): Use "new".
3281
ff27d073
SM
32822018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3283
3284 * symfile.c (set_objfile_default_section_offset): Remove struct
3285 keyword.
3286
6a15ecf5
SH
32872018-07-14 Stafford Horne <shorne@gmail.com>
3288
3289 * (Responsible Maintainers): Add myself as or1k maintainer.
3290
027a4c30
TT
32912018-07-13 Tom Tromey <tom@tromey.com>
3292
3293 * symfile.c (set_objfile_default_section_offset): Use extra braces
3294 around initializer.
3295
5c1eda30
AA
32962018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3297
3298 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3299 non-branching basr.
3300
bc7b042b
PW
33012018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3302
3303 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3304 unittests/cli-utils-selftests.c
3305 * unittests/cli-utils-selftests.c: New file.
3306
a14c4daa
PW
33072018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3308
3309 * NEWS: Mention new commands. Mention change to 'thread apply'.
3310
1fe75df7
PW
33112018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3312
3313 * thread.c (thr_try_catch_cmd): New function.
3314 (thread_apply_all_command): Handle qcs flags.
3315 (thread_apply_command): Handle qcs flags.
3316 (taas_command): New function.
3317 (tfaas_command): New function.
3318 (_initialize_thread): Update to setup the new commands 'taas
3319 and 'tfaas'. Change doc string for 'thread apply'.
3320
6a70eb7d
PW
33212018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3322
3323 * stack.c: (trailing_outermost_frame): New function, mostly
3324 extracted from backtrace_command_1.
3325 (leading_innermost_frame): New function.
3326 (backtrace_command_1): Update to call trailing_outermost_frame.
3327 (frame_apply_command_count): New function.
3328 (frame_apply_level_command): New function.
3329 (frame_apply_all_command): New function.
3330 (frame_apply_command): New function.
3331 (faas_command): New function.
3332 (frame_cmd_list): New variable.
3333 (_initialize_stack): Update to setup the new commands 'frame apply'
3334 and 'faas'.
3335
529c08b2
PW
33362018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3337
3338 * cli-utils.c (number_or_range_parser::get_number): Only handle
3339 numbers or convenience var as numbers.
3340 (parse_flags): New function.
3341 (parse_flags_qcs): New function.
3342 (number_or_range_parser::finished): Ensure parsing end is detected
3343 before end of string.
3344 * cli-utils.h (parse_flags): New function.
3345 (parse_flags_qcs): New function.
3346 (number_or_range_parser): Remove m_finished bool.
3347 (number_or_range_parser::skip_range): Set m_in_range to false.
3348
64b58472
SDJ
33492018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3350
3351 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3352 on Windows.
3353
c7ab0aef
SDJ
33542018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3355 Jan Kratochvil <jan.kratochvil@redhat.com>
3356 Paul Fertser <fercerpav@gmail.com>
3357 Tsutomu Seki <sekiriki@gmail.com>
3358 Pedro Alves <palves@redhat.com>
3359
3360 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3361 'unittests/parse-connection-spec-selftests.c'.
3362 (COMMON_SFILES): Add 'common/netstuff.c'.
3363 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3364 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3365 * common/netstuff.c: New file.
3366 * common/netstuff.h: New file.
3367 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3368 (wait_for_connect): Update comment. New parameter
3369 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3370 Use 'sock' directly instead of 'scb->fd'.
3371 (try_connect): New function, with code from 'net_open'.
3372 (net_open): Rewrite main loop to deal with multiple
3373 sockets/addresses. Handle IPv6-style hostnames; implement
3374 support for IPv6 connections.
3375 * unittests/parse-connection-spec-selftests.c: New file.
3376
4c7333b3
PA
33772018-07-11 Pedro Alves <palves@redhat.com>
3378
3379 PR gdb/23377
3380 * remote.c (remote_target::remote_detach_pid): Call
3381 set_current_process.
3382
a6f88f6e
PA
33832018-07-11 Pedro Alves <palves@redhat.com>
3384
3385 * h8300-tdep.c (h8300_gdbarch_init): Remove
3386 set_gdbarch_ecoff_reg_to_regnum calls.
3387
16ff70dd
SDJ
33882018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3389
3390 PR c++/23373
3391 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3392 offsets/sizes for static members of a class/struct.
3393
12863263
AH
33942018-07-11 Alan Hayward <alan.hayward@arm.com>
3395
3396 * target-descriptions.c (tdesc_register_bitsize): Rename.
3397 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3398 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3399 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3400
1123588c
TT
34012018-07-10 Tom Tromey <tom@tromey.com>
3402
3403 * breakpoint.c (moribund_locations): Now static and a
3404 std::vector.
3405 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3406 (build_bpstat_chain, update_global_location_list)
3407 (breakpoint_retire_moribund): Update.
3408 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3409 VEC.
3410
8c49aa89
AB
34112018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3412
3413 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3414 (riscv_register_reggroup_p): Use new function, remove unneeded
3415 parenthesis.
3416 (riscv_push_dummy_call): Extend assert to compare against xlen or
3417 flen based on register type.
3418
42ecac17
AB
34192018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3420
3421 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3422
055303e2
AB
34232018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3424
3425 * remote.c (show_hardware_watchpoint_limit): New function.
3426 (show_hardware_watchpoint_length_limit): New function.
3427 (show_hardware_breakpoint_limit): New function.
3428 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3429 where appropriate, update help text.
3430
8fd32c1c
TT
34312018-07-09 Tom Tromey <tom@tromey.com>
3432
3433 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3434 (CLIBS): Don't mention NAT_CLIBS.
3435
31278b51
TT
34362018-07-09 Tom Tromey <tom@tromey.com>
3437
3438 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3439 (LIBGDB_OBS, clean mostlyclean): Update.
3440 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3441
e5fd1493
TT
34422018-07-09 Tom Tromey <tom@tromey.com>
3443
3444 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3445 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3446 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3447
981e0c0c
TT
34482018-07-09 Tom Tromey <tom@tromey.com>
3449
3450 * Makefile.in (ALLDEPFILES): Remove exec.c.
3451 (COMMON_OBS): Remove exec.o.
3452 (COMMON_SFILES): Add exec.c.
3453
14ccceb2
TT
34542018-07-09 Tom Tromey <tom@tromey.com>
3455
3456 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3457
5d3c3a68
TT
34582018-07-09 Tom Tromey <tom@tromey.com>
3459
3460 * Makefile.in (clean mostlyclean): Remove stamp-version.
3461 (version.c): Depend on stamp-version.
3462 (stamp-version): New rule, from version.c rule.
3463
1998086d
TT
34642018-07-09 Tom Tromey <tom@tromey.com>
3465
3466 * Makefile.in (init.c): Depend on stamp-init.
3467 (stamp-init): New rule, from init.c rule.
3468 (clean mostlyclean): Remove stamp-init.
3469
4c754949
TT
34702018-07-09 Tom Tromey <tom@tromey.com>
3471
3472 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3473 SUBDIR_GCC_COMPILE_SRCS.
3474
6497f1dd
TT
34752018-07-09 Tom Tromey <tom@tromey.com>
3476
3477 * Makefile.in (init.c): Remove some unused sed rules.
3478
97a34db9
TT
34792018-07-09 Tom Tromey <tom@tromey.com>
3480
3481 * Makefile.in (TSOBS): Remove.
3482 (INIT_FILES): Update.
3483 (LIBGDB_OBS): Update.
3484 (COMMON_SFILES): Add inflow.c.
3485 (SFILES): Remove inflow.c.
3486
25289ac1
JK
34872018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3488
3489 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3490
e83f4d97
SM
34912018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3492
4869c585
SM
3493 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3494 get_saveloc_name, is_signal_frame_name, step_name,
3495 init_remote_name, create_addr_space_name,
3496 destroy_addr_space_name, search_unwind_table_name,
3497 find_dyn_list_name): Constify.
e83f4d97 3498
6821842f
SM
34992018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3500
3501 * darwin-nat.c (darwin_pthread_kill): New function.
3502 (darwin_resume_thread): Use darwin_pthread_kill.
3503
c530603c
TV
35042018-07-05 Tom de Vries <tdevries@suse.de>
3505
3506 * macroexp.c (macro_buffer) <operator=>: New member function.
3507
a7d0f0f0
TT
35082018-07-04 Tom Tromey <tom@tromey.com>
3509
3510 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3511
6242c6a6
SM
35122018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3513
3514 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3515 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3516 * maint.c: Likewise.
3517 * top.c: Likewise.
3518
4e5b2f89
JB
35192018-07-04 Joel Brobecker <brobecker@adacore.com>
3520
3521 * NEWS: Create a new section for the next release branch.
3522 Rename the section of the current branch, now that it has
3523 been cut.
3524
538ccc4a
JB
35252018-07-04 Joel Brobecker <brobecker@adacore.com>
3526
3527 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3528 * version.in: Bump version to 8.2.50.DATE-git.
3529
1b919490
VB
35302018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3531 Pedro Alves <palves@redhat.com>
3532
3533 * linux-nat.c (linux_init_ptrace): Rename to ...
3534 (linux_init_ptrace_procfs): ... this. Call
3535 linux_proc_init_warnings.
3536 (linux_nat_target::post_attach)
3537 (linux_nat_target::post_startup_inferior): Adjust.
3538 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3539 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3540
1ea5da02
TV
35412018-07-04 Tom de Vries <tdevries@suse.de>
3542
3543 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3544 check ...
3545 (read_comp_unit_head): ... here.
3546
f51e0e20
TT
35472018-07-03 Tom Tromey <tom@tromey.com>
3548
3549 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3550 (stop_tracing, tstatus_command)
3551 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3552 (print_one_static_tracepoint_marker): Update.
3553 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3554 std::vector.
3555 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3556 VEC.
3557 (all_tracepoints, static_tracepoints_here): Return std::vector.
3558
d7e15655
TT
35592018-07-03 Tom Tromey <tom@tromey.com>
3560
3561 * common/ptid.c (ptid_equal): Remove.
3562 * common/ptid.h (ptid_equal): Don't declare.
3563 * ada-tasks.c: Update.
3564 * breakpoint.c: Update.
3565 * common/agent.c: Update.
3566 * corelow.c: Update.
3567 * darwin-nat-info.c: Update.
3568 * darwin-nat.c: Update.
3569 * dcache.c: Update.
3570 * dtrace-probe.c: Update.
3571 * dummy-frame.c: Update.
3572 * fbsd-nat.c: Update.
3573 * frame.c: Update.
3574 * gdbthread.h: Update.
3575 * gnu-nat.c: Update.
3576 * go32-nat.c: Update.
3577 * inf-loop.c: Update.
3578 * inf-ptrace.c: Update.
3579 * infcall.c: Update.
3580 * infcmd.c: Update.
3581 * inflow.c: Update.
3582 * infrun.c: Update.
3583 * linux-fork.c: Update.
3584 * linux-nat.c: Update.
3585 * linux-thread-db.c: Update.
3586 * mi/mi-cmd-var.c: Update.
3587 * mi/mi-interp.c: Update.
3588 * mi/mi-main.c: Update.
3589 * nto-procfs.c: Update.
3590 * ppc-linux-tdep.c: Update.
3591 * procfs.c: Update.
3592 * python/py-inferior.c: Update.
3593 * python/py-record-btrace.c: Update.
3594 * python/py-record.c: Update.
3595 * ravenscar-thread.c: Update.
3596 * regcache.c: Update.
3597 * remote-sim.c: Update.
3598 * remote.c: Update.
3599 * sol-thread.c: Update.
3600 * solib.c: Update.
3601 * target.c: Update.
3602 * tui/tui-stack.c: Update.
3603 * varobj.c: Update.
3604 * windows-nat.c: Update.
3605 * windows-tdep.c: Update.
3606
26a57c92
TT
36072018-07-03 Tom Tromey <tom@tromey.com>
3608
3609 * common/ptid.c (ptid_match): Remove.
3610 * common/ptid.h (ptid_match): Don't declare.
3611 * fbsd-nat.c: Update.
3612 * infcmd.c: Update.
3613 * infrun.c: Update.
3614 * linux-nat.c: Update.
3615 * record-btrace.c: Update.
3616 * regcache.c: Update.
3617 * remote.c: Update.
3618
d2a107e3
TT
36192018-07-03 Tom Tromey <tom@tromey.com>
3620
3621 * common/ptid.c (ptid_tid_p): Remove.
3622 * common/ptid.h (ptid_tid_p): Don't declare.
3623 * sol-thread.c: Update.
3624
15a9e13e
TT
36252018-07-03 Tom Tromey <tom@tromey.com>
3626
3627 * common/ptid.c (ptid_lwp_p): Remove.
3628 * common/ptid.h (ptid_lwp_p): Don't declare.
3629 * fbsd-nat.c: Update.
3630 * linux-nat.c: Update.
3631 * nat/linux-procfs.c: Update.
3632 * nat/x86-linux-dregs.c: Update.
3633 * sol-thread.c: Update.
3634
0e998d96
TT
36352018-07-03 Tom Tromey <tom@tromey.com>
3636
3637 * common/ptid.c (ptid_is_pid): Remove.
3638 * common/ptid.h (ptid_is_pid): Don't declare.
3639 * infrun.c: Update.
3640 * linux-nat.c: Update.
3641 * mi/mi-interp.c: Update.
3642 * remote.c: Update.
3643 * thread.c: Update.
3644
cc6bcb54
TT
36452018-07-03 Tom Tromey <tom@tromey.com>
3646
3647 * common/ptid.c (ptid_get_tid): Remove.
3648 * common/ptid.h (ptid_get_tid): Don't declare.
3649 * ada-tasks.c: Update.
3650 * aix-thread.c: Update.
3651 * bsd-uthread.c: Update.
3652 * darwin-nat.c: Update.
3653 * fbsd-nat.c: Update.
3654 * i386-darwin-nat.c: Update.
3655 * infrun.c: Update.
3656 * linux-tdep.c: Update.
3657 * nto-procfs.c: Update.
3658 * ppc-ravenscar-thread.c: Update.
3659 * python/py-infthread.c: Update.
3660 * ravenscar-thread.c: Update.
3661 * sol-thread.c: Update.
3662 * sparc-ravenscar-thread.c: Update.
3663 * windows-nat.c: Update.
3664
e38504b3
TT
36652018-07-03 Tom Tromey <tom@tromey.com>
3666
3667 * common/ptid.c (ptid_get_lwp): Remove.
3668 * common/ptid.h (ptid_get_lwp): Don't declare.
3669 * aarch64-linux-nat.c: Update.
3670 * ada-tasks.c: Update.
3671 * aix-thread.c: Update.
3672 * amd64-linux-nat.c: Update.
3673 * arm-linux-nat.c: Update.
3674 * corelow.c: Update.
3675 * fbsd-nat.c: Update.
3676 * fbsd-tdep.c: Update.
3677 * gnu-nat.c: Update.
3678 * i386-cygwin-tdep.c: Update.
3679 * i386-gnu-nat.c: Update.
3680 * i386-linux-nat.c: Update.
3681 * ia64-linux-nat.c: Update.
3682 * inf-ptrace.c: Update.
3683 * infrun.c: Update.
3684 * linux-fork.c: Update.
3685 * linux-nat.c: Update.
3686 * linux-tdep.c: Update.
3687 * linux-thread-db.c: Update.
3688 * mips-linux-nat.c: Update.
3689 * nat/aarch64-linux-hw-point.c: Update.
3690 * nat/aarch64-linux.c: Update.
3691 * nat/linux-btrace.c: Update.
3692 * nat/linux-osdata.c: Update.
3693 * nat/linux-procfs.c: Update.
3694 * nat/x86-linux-dregs.c: Update.
3695 * obsd-nat.c: Update.
3696 * ppc-fbsd-nat.c: Update.
3697 * ppc-linux-nat.c: Update.
3698 * procfs.c: Update.
3699 * python/py-infthread.c: Update.
3700 * ravenscar-thread.c: Update.
3701 * remote.c: Update.
3702 * s390-linux-nat.c: Update.
3703 * sol-thread.c: Update.
3704 * sol2-tdep.c: Update.
3705 * spu-linux-nat.c: Update.
3706 * x86-linux-nat.c: Update.
3707 * xtensa-linux-nat.c: Update.
3708
e99b03dc
TT
37092018-07-03 Tom Tromey <tom@tromey.com>
3710
3711 * common/ptid.c (ptid_get_pid): Remove.
3712 * common/ptid.h (ptid_get_pid): Don't declare.
3713 * aarch64-linux-nat.c: Update.
3714 * ada-lang.c: Update.
3715 * aix-thread.c: Update.
3716 * alpha-bsd-nat.c: Update.
3717 * amd64-fbsd-nat.c: Update.
3718 * amd64-linux-nat.c: Update.
3719 * arm-linux-nat.c: Update.
3720 * arm-nbsd-nat.c: Update.
3721 * auxv.c: Update.
3722 * break-catch-syscall.c: Update.
3723 * breakpoint.c: Update.
3724 * bsd-uthread.c: Update.
3725 * corelow.c: Update.
3726 * ctf.c: Update.
3727 * darwin-nat.c: Update.
3728 * fbsd-nat.c: Update.
3729 * fbsd-tdep.c: Update.
3730 * gcore.c: Update.
3731 * gnu-nat.c: Update.
3732 * hppa-nbsd-nat.c: Update.
3733 * hppa-obsd-nat.c: Update.
3734 * i386-fbsd-nat.c: Update.
3735 * ia64-linux-nat.c: Update.
3736 * inf-ptrace.c: Update.
3737 * infcmd.c: Update.
3738 * inferior.c: Update.
3739 * inferior.h: Update.
3740 * inflow.c: Update.
3741 * infrun.c: Update.
3742 * linux-fork.c: Update.
3743 * linux-nat.c: Update.
3744 * linux-tdep.c: Update.
3745 * linux-thread-db.c: Update.
3746 * m68k-bsd-nat.c: Update.
3747 * mi/mi-interp.c: Update.
3748 * mi/mi-main.c: Update.
3749 * mips-linux-nat.c: Update.
3750 * mips-nbsd-nat.c: Update.
3751 * mips64-obsd-nat.c: Update.
3752 * nat/aarch64-linux-hw-point.c: Update.
3753 * nat/aarch64-linux.c: Update.
3754 * nat/linux-btrace.c: Update.
3755 * nat/linux-osdata.c: Update.
3756 * nat/linux-procfs.c: Update.
3757 * nat/x86-linux-dregs.c: Update.
3758 * nto-procfs.c: Update.
3759 * obsd-nat.c: Update.
3760 * ppc-linux-nat.c: Update.
3761 * ppc-nbsd-nat.c: Update.
3762 * ppc-obsd-nat.c: Update.
3763 * proc-service.c: Update.
3764 * procfs.c: Update.
3765 * python/py-inferior.c: Update.
3766 * python/py-infthread.c: Update.
3767 * ravenscar-thread.c: Update.
3768 * record.c: Update.
3769 * remote-sim.c: Update.
3770 * remote.c: Update.
3771 * rs6000-nat.c: Update.
3772 * s390-linux-nat.c: Update.
3773 * sh-nbsd-nat.c: Update.
3774 * sol-thread.c: Update.
3775 * sparc-nat.c: Update.
3776 * sparc64-tdep.c: Update.
3777 * spu-linux-nat.c: Update.
3778 * spu-tdep.c: Update.
3779 * target-debug.h: Update.
3780 * target.c: Update.
3781 * thread.c: Update.
3782 * tid-parse.c: Update.
3783 * tracefile-tfile.c: Update.
3784 * vax-bsd-nat.c: Update.
3785 * windows-nat.c: Update.
3786 * x86-linux-nat.c: Update.
3787 * x86-nat.c: Update.
3788
f2907e49
TT
37892018-07-03 Tom Tromey <tom@tromey.com>
3790
3791 * common/ptid.c (pid_to_ptid): Remove.
3792 * common/ptid.h (pid_to_ptid): Don't declare.
3793 * aix-thread.c: Update.
3794 * arm-linux-nat.c: Update.
3795 * common/ptid.c: Update.
3796 * common/ptid.h: Update.
3797 * corelow.c: Update.
3798 * ctf.c: Update.
3799 * darwin-nat.c: Update.
3800 * fbsd-nat.c: Update.
3801 * fork-child.c: Update.
3802 * gnu-nat.c: Update.
3803 * go32-nat.c: Update.
3804 * inf-ptrace.c: Update.
3805 * infcmd.c: Update.
3806 * inferior.c: Update.
3807 * infrun.c: Update.
3808 * linux-fork.c: Update.
3809 * linux-nat.c: Update.
3810 * nat/aarch64-linux-hw-point.c: Update.
3811 * nat/fork-inferior.c: Update.
3812 * nat/x86-linux-dregs.c: Update.
3813 * nto-procfs.c: Update.
3814 * obsd-nat.c: Update.
3815 * procfs.c: Update.
3816 * progspace.c: Update.
3817 * remote.c: Update.
3818 * rs6000-nat.c: Update.
3819 * s390-linux-nat.c: Update.
3820 * sol-thread.c: Update.
3821 * spu-linux-nat.c: Update.
3822 * target.c: Update.
3823 * top.c: Update.
3824 * tracefile-tfile.c: Update.
3825 * windows-nat.c: Update.
3826
fd79271b
TT
38272018-07-03 Tom Tromey <tom@tromey.com>
3828
3829 * common/ptid.h (ptid_build): Don't declare.
3830 * common/ptid.c (ptid_build): Remove.
3831 * aix-thread.c: Update.
3832 * bsd-kvm.c: Update.
3833 * bsd-uthread.c: Update.
3834 * common/agent.c: Update.
3835 * common/ptid.c: Update.
3836 * common/ptid.h: Update.
3837 * corelow.c: Update.
3838 * darwin-nat.c: Update.
3839 * fbsd-nat.c: Update.
3840 * gnu-nat.c: Update.
3841 * linux-fork.c: Update.
3842 * linux-nat.c: Update.
3843 * linux-thread-db.c: Update.
3844 * nat/linux-osdata.c: Update.
3845 * nat/linux-procfs.c: Update.
3846 * nto-procfs.c: Update.
3847 * obsd-nat.c: Update.
3848 * proc-service.c: Update.
3849 * procfs.c: Update.
3850 * ravenscar-thread.c: Update.
3851 * remote-sim.c: Update.
3852 * remote.c: Update.
3853 * sol-thread.c: Update.
3854 * target.c: Update.
3855 * windows-nat.c: Update.
3856
057302ce
TT
38572018-07-03 Tom Tromey <tom@tromey.com>
3858
3859 * infrun.c (follow_exec): Use exit_inferior_silent.
3860 * inferior.c (exit_inferior_num_silent): Remove.
3861 * inferior.h (exit_inferior_num_silent): Don't declare.
3862
a50c11c6
TT
38632018-07-03 Tom Tromey <tom@tromey.com>
3864
3865 PR cli/23340:
3866 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3867 inferior_ptid on error.
3868
471b9d15
MR
38692018-07-02 Maciej W. Rozycki <macro@mips.com>
3870 Simon Marchi <simon.marchi@polymtl.ca>
3871
3872 PR tdep/8282
3873 * disasm.h (gdb_disassembler): Add
3874 `m_disassembler_options_holder'. member
3875 * disasm.c (get_all_disassembler_options): New function.
3876 (gdb_disassembler::gdb_disassembler): Use it.
3877 (gdb_buffered_insn_length_init_dis): Likewise.
3878 (gdb_buffered_insn_length): Adjust accordingly.
3879 (set_disassembler_options): Handle options with arguments.
3880 (show_disassembler_options_sfunc): Likewise. Add a leading new
3881 line if showing options with descriptions.
3882 (disassembler_options_completer): Adapt to using the
3883 `disasm_options_and_args_t' structure.
3884 * mips-tdep.c (mips_disassembler_options): New variable.
3885 (mips_disassembler_options_o32): Likewise.
3886 (mips_disassembler_options_n32): Likewise.
3887 (mips_disassembler_options_n64): Likewise.
3888 (gdb_print_insn_mips): Don't set `disassembler_options'.
3889 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3890 functions.
3891 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
3892 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
3893 `gdbarch_disassembler_options_implicit' and
3894 `gdbarch_valid_disassembler_options'.
3895 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
3896 `disasm_options_and_args_t' structure.
3897 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
3898 method.
3899 (valid_disassembler_options): Switch from `disasm_options_t' to
3900 the `disasm_options_and_args_t' structure.
3901 * NEWS: Document `set disassembler-options' support for the MIPS
3902 target.
3903 * gdbarch.h: Regenerate.
3904 * gdbarch.c: Regenerate.
3905
41823f29
SH
39062018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3907
3908 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
3909
41206e32
JB
39102018-06-29 Joel Brobecker <brobecker@adacore.com>
3911
3912 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
3913 parameter in call to amd64_target_description.
3914 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3915 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
3916 (amd64fbsd_init_abi): Likewise.
3917 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3918 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3919 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3920 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
3921
de52b960
PA
39222018-06-29 Pedro Alves <palves@redhat.com>
3923
3924 * gdb/amd64-tdep.h (amd64_create_target_description): Add
3925 "segments" parameter.
3926 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
3927 (_initialize_amd64_tdep): Update call to
3928 amd64_create_target_description.
3929 (amd64_target_description): Add "segments" parameter. Adjust
3930 the implementation to use it.
3931 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
3932 call to amd64_create_target_description.
3933 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
3934 * gdb/arch/amd64.h (amd64_create_target_description): Add
3935 "segments" register.
3936 * gdb/arch/amd64.c (amd64_create_target_description): Add
3937 "segments" parameter. Call create_feature_i386_64bit_segments
3938 only if SEGMENTS is true.
3939 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
3940 call to amd64_create_target_description.
3941
75acb486
PA
39422018-06-29 Pedro Alves <palves@redhat.com>
3943
3944 * thread.c (thread_target_id_str): New, factored out from ...
3945 (print_thread_info_1): ... here. Use it to compute the max
3946 "Target Id" column width.
3947
c76a8ea3
PA
39482018-06-29 Pedro Alves <palves@redhat.com>
3949
3950 * remote.c (remote_target::extra_thread_info): Delete
3951 'display_buf' and 'n' locals. from the cache, regardless of
3952 packet mechanims is in use. Use cache for qThreadExtra and qP
3953 methods too.
3954
cd2bb709
PA
39552018-06-29 Pedro Alves <palves@redhat.com>
3956
3957 * blockframe.c (find_pc_sect_containing_function): New function.
3958 * breakpoint.c (print_breakpoint_location): Don't call
3959 find_pc_sect_function.
3960 * linespec.c (create_sals_line_offset): Record the location's
3961 symbol in the sal.
3962 * linespec.c (convert_address_location_to_sals): Fill in sal's
3963 symbol with find_pc_sect_containing_function.
3964 * symtab.c (find_function_start_sal): Rename to ...
3965 (find_function_start_sal_1): ... this.
3966 (find_function_start_sal): Reimplement as wrapper around
3967 find_function_start_sal_1, and use
3968 find_pc_sect_containing_function to fill in the sal's symbol.
3969 (find_function_start_sal(symbol*, bool)): Adjust.
3970 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
3971 comments.
3972 (find_pc_sect_containing_function): Declare.
3973
991ff292
PA
39742018-06-29 Pedro Alves <palves@redhat.com>
3975
3976 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
3977 true if the the location has no symbol.
3978
44cee4fd
TT
39792018-06-28 Tom Tromey <tom@tromey.com>
3980
3981 * NEWS: Mention --enable-codesign.
3982 * silent-rules.mk (ECHO_SIGN): New variable.
3983 * configure.ac: Add --enable-codesign.
3984 * configure: Rebuild.
3985 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
3986 (gdb$(EXEEXT)): Optionally invoke codesign.
3987
f2ffa92b
PA
39882018-06-28 Pedro Alves <palves@redhat.com>
3989
3990 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
3991 comments.
3992 (switch_to_thread_no_regs): Adjust comment.
3993 * infcmd.c (stop_pc): Delete.
3994 (post_create_inferior, info_program_command): Replace references
3995 to stop_pc with references to thread_info->suspend.stop_pc.
3996 * inferior.h (stop_pc): Delete declaration.
3997 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
3998 (handle_inferior_event_1, handle_signal_stop)
3999 (process_event_stop_test, keep_going_stepped_thread)
4000 (handle_step_into_function, handle_step_into_function_backward)
4001 (print_stop_location): Replace references to stop_pc with
4002 references to thread_info->suspend.stop_pc.
4003 (struct infcall_suspend_state) <stop_pc>: Delete field.
4004 (save_infcall_suspend_state, restore_infcall_suspend_state):
4005 Remove references to inf_stat->stop_pc.
4006 * linux-fork.c (fork_load_infrun_state): Likewise.
4007 * record-btrace.c (record_btrace_set_replay): Likewise.
4008 * record-full.c (record_full_goto_entry): Likewise.
4009 * remote.c (print_one_stopped_thread): Likewise.
4010 * target.c (target_resume): Extend comment.
4011 * thread.c (set_executing_thread): New.
4012 (set_executing): Use it.
4013 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4014 Remove references to stop_pc.
4015
ecdc3a72
PA
40162018-06-28 Pedro Alves <palves@redhat.com>
4017
4018 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4019 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4020
d95d3aef
TT
40212018-06-28 Tom Tromey <tom@tromey.com>
4022
4023 * coffread.c (coff_symfile_finish): Update.
4024 * xcoffread.c (xcoff_symfile_finish): Update.
4025 * elfread.c (elf_symfile_finish): Update.
4026 * symfile.h (dwarf2_free_objfile): Don't declare.
4027 * dwarf2read.c (_initialize_dwarf2_read): Use
4028 register_objfile_data_with_cleanup.
4029 (dwarf2_free_objfile): Now static. Change signature.
4030
291f9a96
PT
40312018-06-28 Petr Tesarik <ptesarik@suse.cz>
4032
4033 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4034 option "-o" to add-symbol-file-load to add an offset to each
4035 section's load address.
4036 * symfile.c (set_objfile_default_section_offset): New function.
4037
d81a3eaf
PT
40382018-06-28 Petr Tesarik <ptesarik@suse.cz>
4039
4040 * symfile.c (add_symbol_file_command): Make sure that sections
4041 with the same name are sorted in the same order.
4042
ed6dfe51
PT
40432018-06-28 Petr Tesarik <ptesarik@suse.cz>
4044
4045 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4046 require the second argument. If omitted, load sections at the
4047 addresses specified in the file.
4048
d4d429d5
PT
40492018-06-28 Petr Tesarik <ptesarik@suse.cz>
4050
4051 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4052 (_initialize_symfile): Add option "-o" to symbol-file to add an
4053 offset to each section of the symbol file.
4054
39b27ab6
PT
40552018-06-28 Petr Tesarik <ptesarik@suse.cz>
4056
4057 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4058
41827fc3
TT
40592018-06-27 Tom Tromey <tom@tromey.com>
4060
4061 * stack.c (_initialize_stack): Update "func" help text.
4062
0c6aef22
TT
40632018-06-27 Tom Tromey <tom@tromey.com>
4064
4065 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4066 std::vector.
4067 (unwind_infopy_str, pyuw_create_unwind_info)
4068 (unwind_infopy_add_saved_register, pyuw_sniffer)
4069 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4070 Update.
4071 (struct saved_reg): Add constructor.
4072 <value>: Now a gdbpy_ref<>.
4073
63177289
TT
40742018-06-27 Tom Tromey <tom@tromey.com>
4075
4076 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4077
e76f78a0
SM
40782018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4079
4080 * gdb-gdb.py.in: Format using autopep8.
4081
9a14af7b
SM
40822018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4083
4084 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4085 (type_lookup_function): Recognize CORE_ADDR values.
4086
189366cd
SM
40872018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4088
4089 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4090 print tag_name.
4091
68ad5fb9
SM
40922018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4093
4094 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4095 <__lt__>: Add.
4096
141ec9f6
SM
40972018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4098
4099 * gdb-gdb.py: Move to...
4100 * gdb-gdb.py.in: ... here.
4101 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4102 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4103 dependencies.
4104 (distclean): Remove gdb-gdb.py when cleaning.
4105 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4106 * configure: Re-generate.
4107
4c4e7ad4
PA
41082018-06-27 Pedro Alves <palves@redhat.com>
4109
4110 * proc-service.c (get_ps_regcache): New.
4111 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4112 (ps_lsetfpregs): Use it.
4113
7ab6656f
OJ
41142018-06-27 Omair Javaid <omair.javaid@linaro.org>
4115
4116 PR gdb/21695
4117 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4118 (dwarf_decode_lines_1): Adjust.
4119
bd583225
SM
41202018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4121
4122 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4123 override.
4124 <info_proc>: Likewise.
4125
9a325b7b
JB
41262018-06-26 Joel Brobecker <brobecker@adacore.com>
4127
4128 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4129 to windows_fetch_one_register, and only handle the case of
4130 fetching one register. Move the code that reloads the context
4131 and iterates over all registers if R is negative to...
4132 (windows_nat_target::fetch_registers): ... here.
4133 (do_windows_store_inferior_registers): Rename to
4134 windows_store_one_register, and only handle the case of storing
4135 one register. Move the code that handles the case where r is
4136 negative to...
4137 (windows_nat_target::store_registers) ... here.
4138
a33ccfc7
TT
41392018-06-26 Tom Tromey <tom@tromey.com>
4140
4141 PR rust/22574:
4142 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4143 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4144 Update.
4145 (rust_internal_print_type): Add podata parameter.
4146 (rust_print_type): Update.
4147
e0c547d1
TT
41482018-06-26 Tom Tromey <tom@tromey.com>
4149
4150 * typeprint.h (struct print_offset_data) <update, finish,
4151 maybe_print_hole>: New methods.
4152 <indentation>: New constant.
4153 * typeprint.c (print_offset_data::indentation): Define.
4154 (print_offset_data::maybe_print_hole, print_offset_data::update)
4155 (print_offset_data::finish): Move from c-typeprint.c and rename.
4156 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4157 (print_spaces_filtered_with_print_options): Update.
4158 (c_print_type_union_field_offset, maybe_print_hole)
4159 (c_print_type_struct_field_offset): Move to typeprint.c and
4160 rename.
4161 (c_type_print_base_struct_union): Update.
4162
75cbc781
PA
41632018-06-25 Pedro Alves <palves@redhat.com>
4164
4165 * gdbthread.h (thread_info_ref, delete_thread)
4166 (delete_thread_silent, first_thread_of_inferior)
4167 (any_thread_of_inferior, switch_to_thread)
4168 (enable_thread_stack_temporaries)
4169 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4170 (get_last_thread_stack_temporary)
4171 (value_in_thread_stack_temporaries, can_access_registers_thread):
4172 Spell out "struct thread_info" instead of just "thread_info".
4173 * inferior.h (notice_new_inferior): Likewise.
4174
b7a08269
PA
41752018-06-25 Pedro Alves <palves@redhat.com>
4176
4177 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4178 pass thread_info pointer to delete_thread.
4179 (windows_nat_target::detach): Pass inferior pointer to
4180 detach_inferior.
4181 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4182 delete_thread.
4183 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4184 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4185 and pass a thread_info pointer to delete_thread.
4186 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4187 pass thread_info pointer to delete_thread.
4188 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4189 delete_thread_silent call.
4190 * procfs.c (procfs_target::detach): Pass inferior pointer to
4191 detach_inferior.
4192 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4193 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4194 delete_thread_silent call.
4195 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4196 pass thread_info pointer to delete_thread.
4197 (windows_nat_target::detach): Pass inferior pointer to
4198 delete_inferior.
4199
8e7767e3
AH
42002018-06-22 Alan Hayward <alan.hayward@arm.com>
4201
4202 * regcache.c (readable_regcache::read_part): Fix asserts.
4203 (reg_buffer::raw_collect_part): New function.
4204 (regcache::write_part): Fix asserts.
4205 (reg_buffer::raw_supply_part): New function.
4206 (regcache::transfer_regset_register): New helper function.
4207 (regcache::transfer_regset): Call new functions.
4208 (regcache_supply_regset): Use gdb_byte*.
4209 (regcache::supply_regset): Likewise.
4210 (regcache_collect_regset): Likewise.
4211 (regcache::collect_regset): Likewise.
4212 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4213 (reg_buffer::raw_supply_part): Likewise.
4214 (regcache::transfer_regset_register): Likewise.
4215 (regcache::transfer_regset): Use gdb_byte*.
4216
bfd60e34
AH
42172018-06-22 Alan Hayward <alan.hayward@arm.com>
4218
4219 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4220
00431a78
PA
42212018-06-21 Pedro Alves <palves@redhat.com>
4222
4223 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4224 instead of a ptid_t. All callers adjusted.
4225 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4226 adjusted.
4227 (print_ada_task_info, display_current_task_id, task_command_1):
4228 Adjust.
4229 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4230 inferior_thread.
4231 (breakpoint_kind): Adjust.
4232 (remove_breakpoints_pid): Rename to ...
4233 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4234 pointer. All callers adjusted.
4235 (bpstat_clear_actions): Use inferior_thread.
4236 (get_bpstat_thread): New.
4237 (bpstat_do_actions): Use it.
4238 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4239 to take a thread_info pointer. All callers adjusted.
4240 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4241 (breakpoint_re_set_thread): Use inferior_thread.
4242 * breakpoint.h (struct inferior): Forward declare.
4243 (bpstat_stop_status): Update.
4244 (remove_breakpoints_pid): Delete.
4245 (remove_breakpoints_inf): New.
4246 * bsd-uthread.c (bsd_uthread_target::wait)
4247 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4248 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4249 (maint_btrace_packet_history_cmd)
4250 (maint_btrace_clear_packet_history_cmd): Adjust.
4251 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4252 inferior_thread.
4253 * cli/cli-interp.c: Include "inferior.h".
4254 * common/refcounted-object.h (struct
4255 refcounted_object_ref_policy): New.
4256 * compile/compile-object-load.c: Include gdbthread.h.
4257 (store_regs): Use inferior_thread.
4258 * corelow.c (core_target::close): Use current_inferior.
4259 (core_target_open): Adjust to use first_thread_of_inferior and use
4260 the current inferior.
4261 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4262 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4263 <thread>: ... this new field. All references adjusted.
4264 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4265 Take a thread_info pointer instead of a ptid_t.
4266 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4267 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4268 thread_info pointer instead of a ptid_t.
4269 * elfread.c: Include "inferior.h".
4270 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4271 Use inferior_thread.
4272 * eval.c (evaluate_subexp): Likewise.
4273 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4274 inferior_thread.
4275 * gdb_proc_service.h (struct thread_info): Forward declare.
4276 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4277 <thread>: ... this new field. All references adjusted.
4278 * gdbarch.h, gdbarch.c: Regenerate.
4279 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4280 'thread' parameter. All implementations and callers adjusted.
4281 * gdbthread.h (thread_info) <set_running>: New method.
4282 (delete_thread, delete_thread_silent): Take a thread_info pointer
4283 instead of a ptid.
4284 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4285 (first_thread_of_process): Delete, replaced by ...
4286 (first_thread_of_inferior): ... this new function. All callers
4287 adjusted.
4288 (any_live_thread_of_process): Delete, replaced by ...
4289 (any_live_thread_of_inferior): ... this new function. All callers
4290 adjusted.
4291 (switch_to_thread, switch_to_no_thread): Declare.
4292 (is_executing): Delete.
4293 (enable_thread_stack_temporaries): Update comment.
4294 <enable_thread_stack_temporaries>: Take a thread_info pointer
4295 instead of a ptid_t. Incref the thread.
4296 <~enable_thread_stack_temporaries>: Decref the thread.
4297 <m_ptid>: Delete
4298 <m_thr>: New.
4299 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4300 (get_last_thread_stack_temporary)
4301 (value_in_thread_stack_temporaries, can_access_registers_thread):
4302 Take a thread_info pointer instead of a ptid_t. All callers
4303 adjusted.
4304 * infcall.c (get_call_return_value): Use inferior_thread.
4305 (run_inferior_call): Work with thread pointers instead of ptid_t.
4306 (call_function_by_hand_dummy): Work with thread pointers instead
4307 of ptid_t. Use thread_info_ref.
4308 * infcmd.c (proceed_thread_callback): Access thread's state
4309 directly.
4310 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4311 access thread's state directly.
4312 (continue_command): Use inferior_thread.
4313 (info_program_command): Use find_thread_ptid and access thread
4314 state directly.
4315 (proceed_after_attach_callback): Use thread state directly.
4316 (notice_new_inferior): Take a thread_info pointer instead of a
4317 ptid_t. All callers adjusted.
4318 (exit_inferior): Take an inferior pointer instead of a pid. All
4319 callers adjusted.
4320 (exit_inferior_silent): New.
4321 (detach_inferior): Delete.
4322 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4323 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4324 (detach_inferior_command, kill_inferior_command): Use
4325 find_inferior_id instead of valid_gdb_inferior_id and
4326 gdb_inferior_id_to_pid.
4327 (inferior_command): Use inferior and thread pointers.
4328 * inferior.h (struct thread_info): Forward declare.
4329 (notice_new_inferior): Take a thread_info pointer instead of a
4330 ptid_t. All callers adjusted.
4331 (detach_inferior): Delete declaration.
4332 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4333 instead of a pid. All callers adjusted.
4334 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4335 (valid_gdb_inferior_id): Delete.
4336 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4337 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4338 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4339 ...
4340 <inf>: ... this new field.
4341 <step_ptid>: Delete, replaced by ...
4342 <step_thread>: ... this new field.
4343 (get_displaced_stepping_state): Take an inferior pointer instead
4344 of a pid. All callers adjusted.
4345 (displaced_step_in_progress_any_inferior): Adjust.
4346 (displaced_step_in_progress_thread): Take a thread pointer instead
4347 of a ptid_t. All callers adjusted.
4348 (displaced_step_in_progress, add_displaced_stepping_state): Take
4349 an inferior pointer instead of a pid. All callers adjusted.
4350 (get_displaced_step_closure_by_addr): Adjust.
4351 (remove_displaced_stepping_state): Take an inferior pointer
4352 instead of a pid. All callers adjusted.
4353 (displaced_step_prepare_throw, displaced_step_prepare)
4354 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4355 All callers adjusted.
4356 (start_step_over): Adjust.
4357 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4358 displaced step queue.
4359 (do_target_resume): Adjust.
4360 (fetch_inferior_event): Use inferior_thread.
4361 (context_switch, get_inferior_stop_soon): Take an
4362 execution_control_state pointer instead of a ptid_t. All callers
4363 adjusted.
4364 (switch_to_thread_cleanup): Delete.
4365 (stop_all_threads): Use scoped_restore_current_thread.
4366 * inline-frame.c: Include "gdbthread.h".
4367 (inline_state) <inline_state>: Take a thread pointer instead of a
4368 ptid_t. All callers adjusted.
4369 <ptid>: Delete, replaced by ...
4370 <thread>: ... this new field.
4371 (find_inline_frame_state): Take a thread pointer instead of a
4372 ptid_t. All callers adjusted.
4373 (skip_inline_frames, step_into_inline_frame)
4374 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4375 pointer instead of a ptid_t. All callers adjusted.
4376 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4377 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4378 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4379 pointers directly.
4380 * linux-nat.c (get_detach_signal): Likewise.
4381 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4382 (thread_db_notice_clone): Adjust.
4383 (thread_db_find_new_threads_silently)
4384 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4385 a thread pointer instead of a ptid_t. All callers adjusted.
4386 * mi/mi-cmd-var.c: Include "inferior.h".
4387 (mi_cmd_var_update_iter): Update to use thread pointers.
4388 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4389 inferior directly.
4390 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4391 out to ...
4392 (mi_output_running): ... this new function.
4393 (mi_on_resume_1): Adjust to use it.
4394 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4395 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4396 directly.
4397 (interrupt_thread_callback): : Adjust to use thread and inferior
4398 pointers.
4399 * proc-service.c: Include "gdbthread.h".
4400 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4401 * progspace-and-thread.c: Include "inferior.h".
4402 * progspace.c: Include "inferior.h".
4403 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4404 hold a reference to an inferior_object.
4405 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4406 inferior_thread.
4407 * python/py-inferior.c (struct inferior_object): Give the type a
4408 tag name instead of a typedef.
4409 (python_on_normal_stop): No need to check if the current thread is
4410 listed.
4411 (inferior_to_inferior_object): Change return type to
4412 inferior_object. All callers adjusted.
4413 (find_thread_object): Delete, bits factored out to ...
4414 (thread_to_thread_object): ... this new function.
4415 * python/py-infthread.c (create_thread_object): Use
4416 inferior_to_inferior_object.
4417 (thpy_is_stopped): Use thread pointer directly.
4418 (gdbpy_selected_thread): Use inferior_thread.
4419 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4420 field, replaced with ...
4421 <thread>: ... this new field. All users adjusted.
4422 (btpy_insn_or_gap_new): Drop const.
4423 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4424 callers adjusted.
4425 * python/py-record.c: Include "gdbthread.h".
4426 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4427 a ptid_t. All callers adjusted.
4428 (gdbpy_current_recording): Use inferior_thread.
4429 * python/py-record.h (recpy_record_object) <ptid>: Delete
4430 field, replaced with ...
4431 <thread>: ... this new field. All users adjusted.
4432 (recpy_element_object) <ptid>: Delete
4433 field, replaced with ...
4434 <thread>: ... this new field. All users adjusted.
4435 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4436 a ptid_t. All callers adjusted.
4437 * python/py-threadevent.c: Include "gdbthread.h".
4438 (get_event_thread): Use thread_to_thread_object.
4439 * python/python-internal.h (struct inferior_object): Forward
4440 declare.
4441 (find_thread_object, find_inferior_object): Delete declarations.
4442 (thread_to_thread_object, inferior_to_inferior_object): New
4443 declarations.
4444 * record-btrace.c: Include "inferior.h".
4445 (require_btrace_thread): Use inferior_thread.
4446 (record_btrace_frame_sniffer)
4447 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4448 (get_thread_current_frame): Use scoped_restore_current_thread and
4449 switch_to_thread.
4450 (get_thread_current_frame): Use thread pointer directly.
4451 (record_btrace_replay_at_breakpoint): Use thread's inferior
4452 pointer directly.
4453 * record-full.c: Include "inferior.h".
4454 * regcache.c: Include "gdbthread.h".
4455 (get_thread_arch_regcache): Use the inferior's address space
4456 directly.
4457 (get_thread_regcache, registers_changed_thread): New.
4458 * regcache.h (get_thread_regcache(thread_info *thread)): New
4459 overload.
4460 (registers_changed_thread): New.
4461 (remote_target) <remote_detach_1>: Swap order of parameters.
4462 (remote_add_thread): <remote_add_thread>: Return the new thread.
4463 (get_remote_thread_info(ptid_t)): New overload.
4464 (remote_target::remote_notice_new_inferior): Use thread pointers
4465 directly.
4466 (remote_target::process_initial_stop_replies): Use
4467 thread_info::set_running.
4468 (remote_target::remote_detach_1, remote_target::detach)
4469 (extended_remote_target::detach): Adjust.
4470 * stack.c (frame_show_address): Use inferior_thread.
4471 * target-debug.h (target_debug_print_thread_info_pp): New.
4472 * target-delegates.c: Regenerate.
4473 * target.c (default_thread_address_space): Delete.
4474 (memory_xfer_partial_1): Use current_inferior.
4475 (target_detach): Use current_inferior.
4476 (target_thread_address_space): Delete.
4477 (generic_mourn_inferior): Use current_inferior.
4478 * target.h (struct target_ops) <thread_address_space>: Delete.
4479 (target_thread_address_space): Delete.
4480 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4481 pointers directly.
4482 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4483 thread pointer instead of a ptid_t. Adjust all callers.
4484 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4485 (first_thread_of_process): Delete, replaced by ...
4486 (first_thread_of_inferior): ... this new function. All callers
4487 adjusted.
4488 (any_thread_of_process): Rename to ...
4489 (any_thread_of_inferior): ... this, and take an inferior pointer.
4490 (any_live_thread_of_process): Rename to ...
4491 (any_live_thread_of_inferior): ... this, and take an inferior
4492 pointer.
4493 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4494 (value_in_thread_stack_temporaries)
4495 (get_last_thread_stack_temporary): Take a thread pointer instead
4496 of a ptid_t. Adjust all callers.
4497 (thread_info::set_running): New.
4498 (validate_registers_access): Use inferior_thread.
4499 (can_access_registers_ptid): Rename to ...
4500 (can_access_registers_thread): ... this, and take a thread
4501 pointer.
4502 (print_thread_info_1): Adjust to compare thread pointers instead
4503 of ptids.
4504 (switch_to_no_thread, switch_to_thread): Make extern.
4505 (scoped_restore_current_thread::~scoped_restore_current_thread):
4506 Use m_thread pointer directly.
4507 (scoped_restore_current_thread::scoped_restore_current_thread):
4508 Use inferior_thread.
4509 (thread_command): Use thread pointer directly.
4510 (thread_num_make_value_helper): Use inferior_thread.
4511 * top.c (execute_command): Use inferior_thread.
4512 * tui/tui-interp.c: Include "inferior.h".
4513 * varobj.c (varobj_create): Use inferior_thread.
4514 (value_of_root_1): Use find_thread_global_id instead of
4515 global_thread_id_to_ptid.
4516
33bab475
AH
45172018-06-21 Alan Hayward <alan.hayward@arm.com>
4518
4519 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4520 possible.
4521 (regcache::write_part): Likewise.
4522 (readable_regcache::cooked_read_part): Update comment.
4523 (readable_regcache::cooked_write_part): Likewise.
4524 * regcache.h: (readable_regcache::read_part): Likewise.
4525 (regcache::write_part): Likewise.
4526
8363f9d5
RB
45272018-06-21 Richard Bunt <richard.bunt@arm.com>
4528 Dirk Schubert <dirk.schubert@arm.com>
4529
4530 * aarch64-linux-nat.c (post_attach): New.
4531 (aarch64_linux_nat_target::post_attach): Override post_attach to
4532 record the number of hardware debug registers.
4533
0d0b0ea2
TT
45342018-06-20 Tom Tromey <tom@tromey.com>
4535
4536 * python/py-param.c (add_setshow_generic): Make parameters const.
4537 (parmpy_init): Update.
4538
302abd6e
SM
45392018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4540
4541 * regcache.h (regcache_cooked_read_ftype): Rename to...
4542 (register_read_ftype): ...this, change type to function_view.
4543 (class reg_buffer) <save>: Remove src parameter.
4544 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4545 parameter non-const in first overload. Remove src parameter in
4546 second overload.
4547 * regcache.c (do_cooked_read): Remove.
4548 (readonly_detached_regcache::readonly_detached_regcache): Make
4549 parameter non-const, adjust call to other constructor.
4550 (reg_buffer::save): Remove src parameter.
4551 * frame.c (do_frame_register_read): Remove.
4552 (frame_save_as_regcache): Use lambda function.
4553 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4554 parameter to ppu2spu_data *.
4555 (ppu2spu_sniffer): Use lambda function.
4556
19f3f25f
SM
45572018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4558
4559 * record-full.c (record_full_target::insert_breakpoint): Remove
4560 "struct" keyword, add const.
4561
d0ac1c44
SM
45622018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4563
4564 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4565 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4566 * configure.ac: Remove AC_PREREQ, add missing quoting.
4567 * gnulib/configure.ac: Modernize usage of
4568 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4569 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4570 (AUTOMAKE_VERSION): Bump to 1.15.1.
4571 * configure: Re-generate.
4572 * config.in: Re-generate.
4573 * aclocal.m4: Re-generate.
4574 * gnulib/aclocal.m4: Re-generate.
4575 * gnulib/config.in: Re-generate.
4576 * gnulib/configure: Re-generate.
4577 * gnulib/import/Makefile.in: Re-generate.
4578
6ae50267
PA
45792018-06-19 Pedro Alves <palves@redhat.com>
4580
4581 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4582 (lookup_minimal_symbol_by_pc_section): ... here with
4583 gdb_assert_not_reached added.
4584
61b04dd0
PA
45852018-06-19 Pedro Alves <palves@redhat.com>
4586
4587 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4588 parameter with a block parameter. Compare location's block symbol
4589 with the frame's block instead of addresses.
4590 (skip_inline_frames): Pass the current block instead of the
4591 frame's address. Break out as soon as we determine the frame
4592 should not be skipped.
4593
f709fabb
TT
45942018-06-18 Tom Tromey <tom@tromey.com>
4595
4596 * solib-aix.c (solib_aix_get_section_offsets): Return
4597 unique_xmalloc_ptr.
4598 (solib_aix_solib_create_inferior_hook): Update.
4599
668eb2f0
TT
46002018-06-18 Tom Tromey <tom@tromey.com>
4601
4602 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4603
309822ca
TT
46042018-06-18 Tom Tromey <tom@tromey.com>
4605
4606 * solib-frv.c (frv_relocate_main_executable): Use
4607 unique_xmalloc_ptr.
4608 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4609 unique_xmalloc_ptr.
4610
06424eac
TT
46112018-06-18 Tom Tromey <tom@tromey.com>
4612
4613 * objfiles.h (inhibit_section_map_updates): Update.
4614 (resume_section_map_updates, resume_section_map_updates_cleanup):
4615 Remove.
4616 * solib-svr4.c (svr4_handle_solib_event): Update.
4617 * objfiles.c (inhibit_section_map_updates): Return
4618 scoped_restore_tmpl<int>.
4619 (resume_section_map_updates, resume_section_map_updates_cleanup):
4620 Remove.
4621
b4be9fad
TT
46222018-06-18 Tom Tromey <tom@tromey.com>
4623
4624 * valprint.h (read_string): Update.
4625 * valprint.c (read_string): Change type of "buffer".
4626 (val_print_string): Update.
4627 * python/py-value.c (valpy_string): Update.
4628 * language.h (struct language_defn) <la_get_string>: Change
4629 type of "buffer".
4630 (default_get_string, c_get_string): Update.
4631 * language.c (default_get_string): Change type of "buffer".
4632 * guile/scm-value.c (gdbscm_value_to_string): Update.
4633 * c-lang.c (c_get_string): Change type of "buffer".
4634
3f0dbd67
TT
46352018-06-18 Tom Tromey <tom@tromey.com>
4636
4637 * ser-mingw.c (struct pipe_state_destroyer): New.
4638 (pipe_state_up): New typedef.
4639 (cleanup_pipe_state): Remove.
4640 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4641
69d340c6
TT
46422018-06-18 Tom Tromey <tom@tromey.com>
4643
4644 * rust-lang.h (rust_yyerror): Don't declare.
4645 * rust-lang.c (rust_language_defn): Update.
4646 * rust-exp.y (yyerror): Now static.
4647 * parse.c (parse_exp_in_context_1): Update.
4648 * p-lang.h (p_yyerror): Don't declare.
4649 * p-lang.c (p_language_defn): Update.
4650 * p-exp.y (yyerror): Now static.
4651 * opencl-lang.c (opencl_language_defn): Update.
4652 * objc-lang.c (objc_language_defn): Update.
4653 * m2-lang.h (m2_yyerror): Don't declare.
4654 * m2-lang.c (m2_language_defn): Update.
4655 * m2-exp.y (yyerror): Now static.
4656 * language.h (struct language_defn) <la_error>: Remove.
4657 * language.c (unk_lang_error): Remove.
4658 (unknown_language_defn, auto_language_defn): Remove.
4659 * go-lang.h (go_yyerror): Don't declare.
4660 * go-lang.c (go_language_defn): Update.
4661 * go-exp.y (yyerror): Now static.
4662 * f-lang.h (f_yyerror): Don't declare.
4663 * f-lang.c (f_language_defn): Update.
4664 * f-exp.y (yyerror): Now static.
4665 * d-lang.h (d_yyerror): Don't declare.
4666 * d-lang.c (d_language_defn): Update.
4667 * d-exp.y (yyerror): Now static.
4668 * c-lang.h (c_yyerror): Don't declare.
4669 * c-lang.c (c_language_defn, cplus_language_defn)
4670 (asm_language_defn, minimal_language_defn): Update.
4671 * c-exp.y (yyerror): Now static.
4672 * ada-lang.h (ada_yyerror): Don't declare.
4673 * ada-lang.c (ada_language_defn): Update.
4674 * ada-exp.y (yyerror): Now static.
4675
e9902bfc
AH
46762018-06-18 Alan Hayward <alan.hayward@arm.com>
4677
4678 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4679 (store_sveregs_to_thread): Likewise.
4680 (aarch64_linux_fetch_inferior_registers): Check for SVE.
4681 (aarch64_linux_store_inferior_registers): Likewise.
4682 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4683 function.
4684 (aarch64_sve_regs_copy_to_regcache): Likewise.
4685 (aarch64_sve_regs_copy_from_regcache): Likewise.
4686 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4687 declaration.
4688 (aarch64_sve_regs_copy_to_regcache): Likewise.
4689 (aarch64_sve_regs_copy_from_regcache): Likewise.
4690 (sve_context): Structure from Linux headers.
4691 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4692 (SVE_SIG_ZREG_SIZE): Likewise.
4693 (SVE_SIG_PREG_SIZE): Likewise.
4694 (SVE_SIG_FFR_SIZE): Likewise.
4695 (SVE_SIG_REGS_OFFSET): Likewise.
4696 (SVE_SIG_ZREGS_OFFSET): Likewise.
4697 (SVE_SIG_ZREG_OFFSET): Likewise.
4698 (SVE_SIG_ZREGS_SIZE): Likewise.
4699 (SVE_SIG_PREGS_OFFSET): Likewise.
4700 (SVE_SIG_PREG_OFFSET): Likewise.
4701 (SVE_SIG_PREGS_SIZE): Likewise.
4702 (SVE_SIG_FFR_OFFSET): Likewise.
4703 (SVE_SIG_REGS_SIZE): Likewise.
4704 (SVE_SIG_CONTEXT_SIZE): Likewise.
4705 (SVE_PT_REGS_MASK): Likewise.
4706 (SVE_PT_REGS_FPSIMD): Likewise.
4707 (SVE_PT_REGS_SVE): Likewise.
4708 (SVE_PT_VL_INHERIT): Likewise.
4709 (SVE_PT_VL_ONEXEC): Likewise.
4710 (SVE_PT_REGS_OFFSET): Likewise.
4711 (SVE_PT_FPSIMD_OFFSET): Likewise.
4712 (SVE_PT_FPSIMD_SIZE): Likewise.
4713 (SVE_PT_SVE_ZREG_SIZE): Likewise.
4714 (SVE_PT_SVE_PREG_SIZE): Likewise.
4715 (SVE_PT_SVE_FFR_SIZE): Likewise.
4716 (SVE_PT_SVE_FPSR_SIZE): Likewise.
4717 (SVE_PT_SVE_FPCR_SIZE): Likewise.
4718 (__SVE_SIG_TO_PT): Likewise.
4719 (SVE_PT_SVE_OFFSET): Likewise.
4720 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4721 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4722 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4723 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4724 (SVE_PT_SVE_PREG_OFFSET): Likewise.
4725 (SVE_PT_SVE_PREGS_SIZE): Likewise.
4726 (SVE_PT_SVE_FFR_OFFSET): Likewise.
4727 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4728 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4729 (SVE_PT_SVE_SIZE): Likewise.
4730 (SVE_PT_SIZE): Likewise.
4731 (HAS_SVE_STATE): New define.
4732
17a1cc89
AH
47332018-06-18 Alan Hayward <alan.hayward@arm.com>
4734
4735 * nat/aarch64-sve-linux-sigcontext.h: New file.
4736 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4737 new files.
4738 (SVE_VQ_MIN): Likewise.
4739 (SVE_VQ_MAX): Likewise.
4740 (SVE_VL_MIN): Likewise.
4741 (SVE_VL_MAX): Likewise.
4742 (SVE_NUM_ZREGS): Likewise.
4743 (SVE_NUM_PREGS): Likewise.
4744 (sve_vl_valid): Likewise.
4745 (struct user_sve_header): Likewise.
4746
7010835a
AB
47472018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4748 Richard Bunt <Richard.Bunt@arm.com>
4749
4750 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4751 was requested by GDB.
4752
479b3ef4
TV
47532018-06-15 Tom de Vries <tdevries@suse.de>
4754
4755 * MAINTAINERS (Write After Approval): Add Tom de Vries.
4756
8199b8f4
SM
47572018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
4758
4759 * gnulib/update-gnulib.sh: Print expected versions of
4760 autoconf/aclocal.
4761
55c748a1
SM
47622018-06-14 Simon Marchi <simon.marchi@ericsson.com>
4763
4764 * arch-utils.c (default_type_align): Use type_length_units.
4765 * gdbtypes.c (type_align): Use type_length_units.
4766
87a8eca7
PW
47672018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4768
4769 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4770 of 'define' command.
4771
5d9a0608
TV
47722018-06-14 Tom de Vries <tdevries@suse.de>
4773
4774 PR cli/22573
4775 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4776 get_no_prettyformat_print_options.
4777
ab89b5a5
SM
47782018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4779
4780 * sparc-nat.h: Include target.h.
4781 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4782 <fetch_registers>: Remove this argument in function call.
4783 <store_registers>: Remove this argument in function call, remove
4784 extra semicolon.
4785 <low_forget_process>: Call sparc64_forget_process instead of
4786 sparc_forget_process.
4787
62c808ae
RO
47882018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4789
4790 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4791 (procfs_target::make_corefile_notes): Adjust to new
4792 target_read_alloc return type.
4793
1840d81a
AB
47942018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4795 Stephen Roberts <stephen.roberts@arm.com>
4796
4797 PR gdb/22882
4798 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4799 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4800 Move should_notify_stop local into more inner scope.
4801
9516f85a
AB
48022018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4803 Stephen Roberts <stephen.roberts@arm.com>
4804
4805 PR gdb/22882
4806 * infrun.c (resume_1): Add call to mark_async_event_handler.
4807
defd2172
AB
48082018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4809
4810 * infrun.c (do_target_wait): Change old version of $pc printed.
4811
7b23e087
SM
48122018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4813
4814 * dwarf2read.c (read_index_from_section): Rename to...
4815 (read_gdb_index_from_section): ... this, update all callers.
4816 (dwarf2_read_index): Rename to...
4817 (dwarf2_read_gdb_index): ... this, update all callers.
4818
69c67a0b
JDA
48192018-06-11 John David Anglin <danglin@gcc.gnu.org>
4820
4821 * gdb/hppa-linux-nat.c
4822 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4823 hppa_linux_nat_target::fetch_registers.
4824
65d4cada
AH
48252018-06-11 Alan Hayward <alan.hayward@arm.com>
4826
4827 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4828 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4829 (AARCH64_DWARF_SVE_FFR): Likewise.
4830 (AARCH64_DWARF_SVE_P0): Likewise.
4831 (AARCH64_DWARF_SVE_Z0): Likewise.
4832
f868386e
AH
48332018-06-11 Alan Hayward <alan.hayward@arm.com>
4834
4835 * common/common-regcache.h (raw_compare): New function.
4836 * regcache.c (regcache::raw_compare): Likewise.
4837 * regcache.h (regcache::raw_compare): New declaration.
4838
9c861883
AH
48392018-06-11 Alan Hayward <alan.hayward@arm.com>
4840
4841 * common/common-regcache.h (reg_buffer_common): New structure.
4842 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4843 (reg_buffer::raw_supply): Likewise.
4844 (reg_buffer::raw_supply_integer): Likewise.
4845 (reg_buffer::raw_supply_zeroed): Likewise.
4846 (reg_buffer::raw_collect): Likewise.
4847 (reg_buffer::raw_collect_integer): Likewise.
4848 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4849 (reg_buffer::raw_supply): Likewise.
4850 (reg_buffer::raw_supply_integer): Likewise.
4851 (reg_buffer::raw_supply_zeroed): Likewise.
4852 (reg_buffer::raw_collect): Likewise.
4853 (reg_buffer::raw_collect_integer): Likewise.
4854
953edf2b
TT
48552018-06-10 Tom Tromey <tom@tromey.com>
4856
4857 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4858 (class remote_state) <stop_reply_queue>: Now std::vector.
4859 (remote_state::~remote_state)
4860 (remote_target::stop_reply_queue_length): Update.
4861 (struct queue_iter_param, remove_child_of_pending_fork)
4862 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4863 (check_pending_event_prevents_wildcard_vcont_callback)
4864 (remove_stop_reply_for_inferior)
4865 (remove_stop_reply_of_remote_state)
4866 (remote_notif_remove_once_on_match)
4867 (stop_reply_match_ptid_and_ws)
4868 (remote_kill_child_of_pending_fork): Remove.
4869 (remote_target::remove_new_fork_children)
4870 (remote_target::check_pending_events_prevent_wildcard_vcont)
4871 (remote_target::discard_pending_stop_replies)
4872 (remote_target::discard_pending_stop_replies_in_queue)
4873 (remote_target::remote_notif_remove_queued_reply)
4874 (remote_target::queued_stop_reply)
4875 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4876 (remote_target::wait, remote_target::kill_new_fork_children)
4877 (remote_target::async): Update.
4878
1ddbba9d
TT
48792018-06-10 Tom Tromey <tom@tromey.com>
4880
4881 * record-full.c (record_full_arch_list_cleanups): Remove.
4882 (record_full_message): Use try/catch.
4883 (record_full_wait_cleanups): Remove.
4884 (record_full_wait_1): Use try/catch.
4885 (record_full_restore): Likewise.
4886
219605fd
TT
48872018-06-10 Tom Tromey <tom@tromey.com>
4888
4889 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
4890 declare VEC. Add constructor.
4891 <in_target_beneath>: Now bool.
4892 (record_full_breakpoints): Now a std::vector, static.
4893 (record_full_sync_record_breakpoints)
4894 (record_full_init_record_breakpoints)
4895 (record_full_target::insert_breakpoint)
4896 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
4897
71b73764
SM
48982018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4899
4900 * dwarf2read.c (process_cu_includes): Remove struct keyword.
4901 * serial.c (serial_interface_lookup): Remove struct keyword.
4902
4360561f
TT
49032018-06-10 Tom Tromey <tom@tromey.com>
4904
4905 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
4906 method.
4907 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
4908 a method.
4909 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
4910 method.
4911 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
4912 "beneath" as a method.
4913 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
4914 Use "beneath" as a method.
4915
d14b92bf
TT
49162018-06-10 Tom Tromey <tom@tromey.com>
4917
4918 * tracefile.c (struct trace_file_writer_deleter): New.
4919 <operator()>: Rename from trace_file_writer_xfree.
4920 (trace_file_writer_up): New typedef.
4921 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
4922
835dcf92
SM
49232018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4924
4925 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
4926 <m_registers, m_register_status>: Change type to
4927 std::unique_ptr.
4928 * regcache.c (reg_buffer::reg_buffer): Use new instead of
4929 XCNEWVEC.
4930
aac0d564
SM
49312018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4932
4933 * common/common-regcache.h (enum register_status): Add
4934 underlying type "signed char".
4935 * regcache.h (reg_buffer) <m_register_status>: Change type to
4936 register_status *.
4937 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
4938 register_status instead of signed char.
4939 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
4940 (reg_buffer::get_register_status): Remove cast.
4941 (readable_regcache::raw_read): Remove cast.
4942 (readable_regcache::cooked_read): Remove cast.
4943
77ad7394
TT
49442018-06-09 Tom Tromey <tom@tromey.com>
4945
4946 * source.c (reverse_search_command, forward_search_command): Use
4947 scoped_fd.
4948
191cca63
TT
49492018-06-09 Tom Tromey <tom@tromey.com>
4950
4951 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
4952 (serial_ops_list): Now static, std::vector.
4953 (serial_interface_lookup, serial_add_interface): Update.
4954
c5d0225d
TT
49552018-06-09 Tom Tromey <tom@tromey.com>
4956
4957 * dwarf2read.c (process_cu_includes): Update.
4958 (process_full_comp_unit): Update.
4959 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
4960 std::vector.
4961
aeab5128
PK
49622018-06-08 Paul Koning <paul_koning@dell.com>
4963
4964 PR gdb/23252
4965
4966 * python/python.c (do_start_initialization):
4967 Avoid call to internal Python API.
4968 (init__gdb_module): New function.
4969
5045b3d7
GB
49702018-06-08 Gary Benson <gbenson@redhat.com>
4971
4972 * linux-thread-db.c (valprint.h): New include.
4973 (struct check_thread_db_info): New structure.
4974 (check_thread_db_on_load, tdb_testinfo): New static globals.
4975 (check_thread_db, check_thread_db_callback): New functions.
4976 (try_thread_db_load_1): Run integrity checks if requested.
4977 (maintenance_check_libthread_db): New function.
4978 (_initialize_thread_db): Register "maint check libthread-db"
4979 and "maint set/show check-libthread-db".
4980 * NEWS: Mention the above new commands.
4981
2f4f025f
TT
49822018-06-08 Tom Tromey <tom@tromey.com>
4983
4984 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
4985 now a method.
4986
343b0027
TT
49872018-06-08 Tom Tromey <tom@tromey.com>
4988
4989 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
4990
8dcc53b3
TT
49912018-06-08 Tom Tromey <tom@tromey.com>
4992
4993 * common/btrace-common.h (struct btrace_data): Add constructor,
4994 destructor, move assignment operator.
4995 <empty, clear, fini>: New methods.
4996 <format>: Initialize.
4997 (btrace_data_init, btrace_data_fini, btrace_data_clear)
4998 (btrace_data_empty): Don't declare.
4999 * common/btrace-common.c (btrace_data_init): Remove.
5000 (btrace_data::fini): Rename from btrace_data_fini.
5001 (btrace_data::empty): Rename from btrace_data_empty.
5002 (btrace_data::clear): Rename from btrace_data_clear. Return
5003 bool.
5004 * btrace.h (make_cleanup_btrace_data): Don't declare.
5005 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5006 (parse_xml_btrace): Update.
5007 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5008 (maint_btrace_clear_packet_history_cmd): Update.
5009
a1740ee1
PA
50102018-06-07 Pedro Alves <palves@redhat.com>
5011
5012 * target.h (target_ops) <beneath>: Now a method. All references
5013 updated.
5014 (class target_stack): New.
5015 * target.c (g_target_stack): New.
5016 (g_current_top_target): Delete.
5017 (current_top_target): Get the top target out of g_target_stack.
5018 (target_stack::push, target_stack::unpush): New.
5019 (push_target, unpush_target): Reimplement.
5020 (target_is_pushed): Reimplement in terms of g_target_stack.
5021 (target_ops::beneath, target_stack::find_beneath): New.
5022
d6ca69cd
PA
50232018-06-07 Pedro Alves <palves@redhat.com>
5024
5025 * target.h (find_target_beneath): Delete declaration.
5026 * target.c (find_target_beneath): Delete definition.
5027 * aix-thread.c: All callers of find_target_beneath adjusted to
5028 call target_ops::beneath instead.
5029 * bsd-uthread.c: Likewise.
5030 * linux-thread-db.c: Likewise.
5031 * ravenscar-thread.c: Likewise.
5032 * sol-thread.c: Likewise.
5033 * spu-multiarch.c: Likewise.
5034
b6a8c27b
PA
50352018-06-07 Pedro Alves <palves@redhat.com>
5036
5037 * target.h (target_ops) <beneath>: Now a method. All references
5038 updated.
5039 (target_ops) <m_beneath>: New.
5040 * target.c (target_ops::beneath): New.
5041 * corelow.c: Adjust all references to target_ops::beneath.
5042 * linux-thread-db.c: Likewise.
5043 * make-target-delegates: Likewise.
5044 * record-btrace.c: Likewise.
5045 * record-full.c: Likewise.
5046 * remote.c: Likewise.
5047 * target.c: Likewise.
5048 * target-delegates.c: Regenerate.
5049
8b88a78e
PA
50502018-06-07 Pedro Alves <palves@redhat.com>
5051
5052 * target.h (target_stack): Delete.
5053 (current_top_target): Declare function.
5054 * target.c (target_stack): Delete.
5055 (g_current_top_target): New.
5056 (current_top_target): New function.
5057 * auxv.c: Use current_top_target instead of target_stack
5058 throughout.
5059 * avr-tdep.c: Likewise.
5060 * breakpoint.c: Likewise.
5061 * corefile.c: Likewise.
5062 * elfread.c: Likewise.
5063 * eval.c: Likewise.
5064 * exceptions.c: Likewise.
5065 * frame.c: Likewise.
5066 * gdbarch-selftests.c: Likewise.
5067 * gnu-v3-abi.c: Likewise.
5068 * ia64-tdep.c: Likewise.
5069 * ia64-vms-tdep.c: Likewise.
5070 * infcall.c: Likewise.
5071 * infcmd.c: Likewise.
5072 * infrun.c: Likewise.
5073 * linespec.c: Likewise.
5074 * linux-tdep.c: Likewise.
5075 * minsyms.c: Likewise.
5076 * ppc-linux-nat.c: Likewise.
5077 * ppc-linux-tdep.c: Likewise.
5078 * procfs.c: Likewise.
5079 * regcache.c: Likewise.
5080 * remote.c: Likewise.
5081 * rs6000-tdep.c: Likewise.
5082 * s390-linux-nat.c: Likewise.
5083 * s390-tdep.c: Likewise.
5084 * solib-aix.c: Likewise.
5085 * solib-darwin.c: Likewise.
5086 * solib-dsbt.c: Likewise.
5087 * solib-spu.c: Likewise.
5088 * solib-svr4.c: Likewise.
5089 * solib-target.c: Likewise.
5090 * sparc-tdep.c: Likewise.
5091 * sparc64-tdep.c: Likewise.
5092 * spu-tdep.c: Likewise.
5093 * symfile.c: Likewise.
5094 * symtab.c: Likewise.
5095 * target-descriptions.c: Likewise.
5096 * target-memory.c: Likewise.
5097 * target.c: Likewise.
5098 * target.h: Likewise.
5099 * tracefile-tfile.c: Likewise.
5100 * tracepoint.c: Likewise.
5101 * valops.c: Likewise.
5102 * valprint.c: Likewise.
5103 * value.c: Likewise.
5104 * windows-tdep.c: Likewise.
5105 * mi/mi-main.c: Likewise.
5106
c7110220
TT
51072018-06-07 Tom Tromey <tom@tromey.com>
5108
5109 * valprint.h (build_address_symbolic): Declare.
5110 * printcmd.c (print_address_symbolic): Update.
5111 (build_address_symbolic): Change "name" and "filename" to
5112 std::string.
5113 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5114 Update.
5115 * defs.h (build_address_symbolic): Remove declaration.
5116
63bad7b6
AH
51172018-06-07 Alan Hayward <alan.hayward@arm.com>
5118
5119 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5120 (aarch64_vnv_type): Add function.
5121 (aarch64_pseudo_register_name): Add V regs for SVE.
5122 (aarch64_pseudo_register_type): Likewise.
5123 (aarch64_pseudo_register_reggroup_p): Likewise.
5124 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5125 (aarch64_pseudo_read_value): Add V regs for SVE.
5126 (aarch64_pseudo_write_2): Use V0 offset for SVE
5127 (aarch64_pseudo_write): Add V regs for SVE.
5128 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5129
13e3c608
SDJ
51302018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5131
5132 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5133 (sve_vl_from_vq): Likewise.
5134
c61b06a1
TT
51352018-06-05 Tom Tromey <tom@tromey.com>
5136
5137 * cli/cli-cmds.c (show_version): Update.
5138 * top.c (print_gdb_version): Add "interactive" parameter.
5139 Update.
5140 * main.c (captured_main_1): Update.
5141 * top.h (print_gdb_version): Add "interactive" parameter and a
5142 comment.
5143
115f7325
DM
51442018-06-05 David Malcolm <dmalcolm@redhat.com>
5145
5146 * common/enum-flags.h: Add trailing semicolon to example in
5147 comment.
5148
eb6af809
TT
51492018-06-05 Tom Tromey <tom@tromey.com>
5150
5151 PR cli/12326:
5152 * NEWS: Add entry about pager.
5153 * utils.c (pagination_disabled_for_command): New global.
5154 (prompt_for_continue): Allow "c" response to prompt.
5155 (reinitialize_more_filter): Clear
5156 pagination_disabled_for_command.
5157 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5158
54d343a2
TT
51592018-06-04 Tom Tromey <tom@tromey.com>
5160
5161 * ada-lang.h (ada_lookup_symbol_list): Update.
5162 * ada-lang.c (resolve_subexp): Update.
5163 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5164 parameter.
5165 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5166 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5167 results parameter to std::vector.
5168 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5169 Update.
5170 * ada-exp.y (block_lookup): Update.
5171 (select_possible_type_sym): Change type of syms. Remove nsyms
5172 parameter.
5173 (write_var_or_type, write_name_assoc): Update.
5174
178d6a63
JB
51752018-06-04 Joel Brobecker <brobecker@adacore.com>
5176
5177 * windows-nat.c (windows_nat_target::xfer_partial): Return
5178 TARGET_XFER_E_IO if we need to delegate to the target beneath
5179 but BENEATH is NULL.
5180
baf00c2d
SM
51812018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5182
5183 * Makefile.in (config.status): Add configure.nat as a
5184 dependency.
5185
214b073c
TT
51862018-06-04 Tom Tromey <tom@tromey.com>
5187
5188 * cp-name-parser.y (cpname_state): Add method declarations.
5189 (HANDLE_QUAL): Update.
5190 (cpname_state::d_grab, cpname_state::fill_comp)
5191 (cpname_state::make_operator, cpname_state::make_dtor)
5192 (cpname_state::make_builtin_type, cpname_state::make_name)
5193 (cpname_state::d_qualify, cpname_state::d_int_type)
5194 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5195 (%union): Move earlier.
5196
62b74cb8
AH
51972018-06-04 Alan Hayward <alan.hayward@arm.com>
5198
5199 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5200
3c5cd5c3
AH
52012018-06-04 Alan Hayward <alan.hayward@arm.com>
5202
5203 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5204 (aarch64_pseudo_write_1): Likewise.
5205 (aarch64_pseudo_read_value): Use helper.
5206 (aarch64_pseudo_write): Likewise.
5207
59f413d5
PA
52082018-06-04 Pedro Alves <palves@redhat.com>
5209
5210 * darwin-nat.c (darwin_ops): Delete.
5211 (darwin_attach_pid): Use get_native_target.
5212
1332a140
AH
52132018-06-04 Alan Hayward <alan.hayward@arm.com>
5214
5215 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5216 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5217
ba2d2bb2
AH
52182018-06-04 Alan Hayward <alan.hayward@arm.com>
5219
5220 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5221 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5222 (aarch64_gdbarch_init): Check for SVE.
5223 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5224
52252018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
5226
5227 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5228 * aarch64-tdep.h (aarch64_read_description): Likewise.
5229 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5230 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5231 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5232 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5233 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5234
41c60b4b
SM
52352018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5236
5237 * value.c (value_fetch_lazy_bitfield): New.
5238 (value_fetch_lazy_memory): New.
5239 (value_fetch_lazy_register): New.
5240 (value_fetch_lazy): Factor out to smaller functions.
5241
7b640f72
TT
52422018-06-01 Tom Tromey <tom@tromey.com>
5243
5244 * cp-name-parser.y (backslashable, represented): Now const.
5245
98e69eb3
TT
52462018-06-01 Tom Tromey <tom@tromey.com>
5247
5248 * cp-name-parser.y: Include parser-defs.h.
5249 (parser_fprintf): Remove declaration.
5250
49265499
TT
52512018-06-01 Tom Tromey <tom@tromey.com>
5252
5253 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5254 %parse-param.
5255 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5256 (global_result): Remove globals.
5257 (struct cpname_state): New.
5258 (yyparse): Don't declare.
5259 (yylex, yyerror): Move declarations after %union.
5260 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5261 (make_name): Add state parameter.
5262 Update all callers.
5263 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5264 parameter.
5265 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5266 Update.
5267 (yylex): Add lvalp, state parameters.
5268 (yyerror): Add state parameter.
5269 (cp_demangled_name_to_comp): Update.
5270
55b6c984
TT
52712018-06-01 Tom Tromey <tom@tromey.com>
5272
5273 * cp-name-parser.y (parser_fprintf): Declare.
5274 (GDB_YY_REMAP_PREFIX): Define.
5275 Include yy-remap.h. Don't redefine yy* identifiers.
5276
3513a6bb
TT
52772018-06-01 Tom Tromey <tom@tromey.com>
5278
5279 * python/py-type.c (typy_legacy_template_argument): Update.
5280 * cp-support.h (cp_demangled_name_to_comp): Update.
5281 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5282 parameter to be a "std::string *".
5283 (main): Update.
5284
e9cb46ab
L
52852018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5286
5287 * ada-lex.l: Include "diagnostics.h" instead of
5288 "common/diagnostics.h".
5289 * unittests/environ-selftests.c: Likewise.
5290 * common/diagnostics.h: Moved to ../include.
5291
8e817061
JB
52922018-06-01 Joel Brobecker <brobecker@adacore.com>
5293
5294 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5295 to language_mode_manual while calling breakpoint_re_set_one.
5296
a737d952
TT
52972018-06-01 Tom Tromey <tom@tromey.com>
5298
5299 * valops.c (value_cast_structs, destructor_name_p): Update.
5300 * symtab.c (gdb_mangle_name): Update.
5301 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5302 Update.
5303 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5304 (pascal_object_print_value_fields, pascal_object_print_value):
5305 Update.
5306 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5307 * linespec.c (find_methods): Update.
5308 * gdbtypes.h (type_name_no_tag): Remove.
5309 (type_name_or_error): Rename from type_name_no_tag_or_error.
5310 * gdbtypes.c (type_name_no_tag): Remove.
5311 (type_name_or_error): Rename from type_name_no_tag_or_error.
5312 (lookup_struct_elt_type, check_typedef): Update.
5313 * expprint.c (print_subexp_standard): Update.
5314 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5315 * d-namespace.c (d_lookup_nested_symbol): Update.
5316 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5317 (cp_print_class_member): Update.
5318 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5319 * completer.c (add_struct_fields): Update.
5320 * c-typeprint.c (cp_type_print_derivation_info)
5321 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5322 Update.
5323 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5324 (ada_prefer_type, ada_is_exception_sym): Update.
5325
e86ca25f
TT
53262018-06-01 Tom Tromey <tom@tromey.com>
5327
5328 * valops.c (enum_constant_from_type, value_namespace_elt)
5329 (value_maybe_namespace_elt): Update.
5330 * valarith.c (find_size_for_pointer_math): Update.
5331 * target-descriptions.c (make_gdb_type): Update.
5332 * symmisc.c (print_symbol): Update.
5333 * stabsread.c (define_symbol, read_type)
5334 (complain_about_struct_wipeout, add_undefined_type)
5335 (cleanup_undefined_types_1): Update.
5336 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5337 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5338 (rust_internal_print_type, rust_composite_type)
5339 (rust_evaluate_funcall, rust_evaluate_subexp)
5340 (rust_inclusive_range_type_p): Update.
5341 * python/py-type.c (typy_get_tag): Update.
5342 * p-typeprint.c (pascal_type_print_base): Update.
5343 * mdebugread.c (parse_symbol, parse_type): Update.
5344 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5345 Update.
5346 * guile/scm-type.c (gdbscm_type_tag): Update.
5347 * go-lang.c (sixg_string_p): Update.
5348 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5349 Update.
5350 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5351 (TYPE_TAG_NAME): Remove.
5352 * gdbtypes.c (type_name_no_tag): Simplify.
5353 (check_typedef, check_types_equal, recursive_dump_type)
5354 (copy_type_recursive, arch_composite_type): Update.
5355 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5356 in summary mode when needed.
5357 * eval.c (evaluate_funcall): Update.
5358 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5359 (process_structure_scope, read_enumeration_type)
5360 (read_namespace_type, read_module_type, determine_prefix): Update.
5361 * cp-support.c (inspect_type): Update.
5362 * coffread.c (process_coff_symbol, decode_base_type): Update.
5363 * c-varobj.c (c_is_path_expr_parent): Update.
5364 * c-typeprint.c (c_type_print_base_struct_union): Update.
5365 (c_type_print_base_1): Update. Print struct/class/union/enum in
5366 summary when using C language.
5367 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5368 (gen_maybe_namespace_elt): Update.
5369 * ada-lang.c (ada_type_name): Simplify.
5370 (empty_record, ada_template_to_fixed_record_type_1)
5371 (template_to_static_fixed_type)
5372 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5373
c1ec8cea
TT
53742018-06-01 Tom Tromey <tom@tromey.com>
5375
5376 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5377 c_print_type.
5378 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5379 (c_print_type): Update.
5380 (c_print_type): New overload.
5381 (c_type_print_varspec_prefix, c_type_print_args)
5382 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5383 (c_type_print_base_struct_union, c_type_print_base_1)
5384 (cp_type_print_method_args): Add "language" parameter.
5385 (c_type_print_base): Update.
5386 * c-lang.h (c_print_type): Add new overload.
5387
bc8453a7
TT
53882018-06-01 Tom Tromey <tom@tromey.com>
5389
5390 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5391 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5392
739e8682
AH
53932018-06-01 Alan Hayward <alan.hayward@arm.com>
5394
5395 * aarch64-tdep.c (aarch64_sve_register_names): New const
5396 var.
5397 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5398 (AARCH64_SVE_Z_REGS_NUM): New define.
5399 (AARCH64_SVE_P_REGS_NUM): Likewise.
5400 (AARCH64_SVE_NUM_REGS): Likewise.
5401
8a60efe7
UB
54022018-05-31 Uros Bizjak <ubizjak@gmail.com>
5403
5404 * nat/linux-ptrace.h [__alpha__]
5405 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5406 definitions.
5407
4b2dfa9d
MR
54082018-05-31 Maciej W. Rozycki <macro@mips.com>
5409
5410 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5411 the endianness selected.
5412 * NEWS: Document `set endian auto' mode operation update.
5413
122394f1
AH
54142018-05-31 Alan Hayward <alan.hayward@arm.com>
5415
5416 * Makefile.in: Add new header.
5417 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5418 (sve_vl_from_vg): Likewise.
5419 (sve_vq_from_vl): Likewise.
5420 (sve_vl_from_vq): Likewise.
5421 (sve_vq_from_vg): Likewise.
5422 (sve_vg_from_vq): Likewise.
5423 * configure.nat: Add new c file.
5424 * nat/aarch64-sve-linux-ptrace.c: New file.
5425 * nat/aarch64-sve-linux-ptrace.h: New file.
5426
95228a0d
AH
54272018-05-31 Alan Hayward <alan.hayward@arm.com>
5428
5429 * aarch64-linux-nat.c (aarch64_linux_read_description):
5430 Add parmeter zero.
5431 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5432 Likewise.
5433 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5434 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5435 (aarch64_gdbarch_init): Add parmeter zero.
5436 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5437 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5438 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5439 parmeter.
5440 * doc/gdb.texinfo: Describe SVE feature
5441 * features/aarch64-sve.c: New file.
5442
5969f0db
OJ
54432018-05-31 Omair Javaid <omair.javaid@linaro.org>
5444
5445 PR gdb/23210
5446 * gdbarch.sh (significant_addr_bit): Default to zero when
5447 not set by target architecture.
5448 * gdbarch.c: Re-generated.
5449 * utils.c (address_significant): Update.
5450
61367c61
JB
54512018-05-30 Joel Brobecker <brobecker@adacore.com>
5452
5453 * stack.c (func_command): Remove trailing newline in call to error.
5454
34a79281
SM
54552018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5456
5457 * regcache.h (regcache_raw_collect): Remove, update callers to
5458 use regcache::raw_collect.
5459 * regcache.c (regcache_raw_collect): Remove.
5460
73e1c03f
SM
54612018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5462
5463 * regcache.h (regcache_raw_supply): Remove, update callers to
5464 use detached_regcache::raw_supply.
5465 * regcache.c (regcache_raw_supply): Remove.
5466
e4c4a59b
SM
54672018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5468
5469 * regcache.h (regcache_cooked_write_part): Remove, update
5470 callers to use regcache::cooked_write_part.
5471 * regcache.c (regcache_cooked_write_part): Remove.
5472
73bb0000
SM
54732018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5474
5475 * regcache.h (regcache_cooked_read_part): Remove, update callers
5476 to use readable_regcache::cooked_read_part.
5477 * regcache.c (regcache_cooked_read_part): Remove.
5478
46a45e9d
SM
54792018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5480
5481 * regcache.h (regcache_cooked_read_value): Remove, update
5482 callers to use readable_regcache::cooked_read_value.
5483 * regcache.c (regcache_cooked_read_value): Remove.
5484
b66f5587
SM
54852018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5486
5487 * regcache.h (regcache_cooked_write): Remove, update callers to
5488 use regcache::cooked_write.
5489 * regcache.c (regcache_cooked_write): Remove.
5490
6aa7d724
SM
54912018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5492
5493 * regcache.h (regcache_invalidate): Remove, update callers to
5494 use detached_regcache::invalidate instead.
5495 * regcache.c (regcache_invalidate): Remove.
5496
4f0420fd
SM
54972018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5498
5499 * regcache.h (regcache_raw_write_part): Remove, update callers
5500 to use regcache::raw_write_part instead.
5501 * regcache.c (regcache_raw_write_part): Remove.
5502
502fe83e
SM
55032018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5504
5505 * regcache.h (regcache_raw_read_part): Remove, update callers to
5506 use readable_regcache::raw_read_part instead.
5507 * regcache.c (regcache_raw_read_part): Remove.
5508
dca08e1f
SM
55092018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5510
5511 * regcache.h (regcache_cooked_read): Remove, update callers to
5512 use readable_regcache::cooked_read instead.
5513 * regcache.c (regcache_cooked_read): Remove.
5514
10eaee5f
SM
55152018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5516
5517 * regcache.h (regcache_raw_write): Remove, update callers to use
5518 regcache::raw_write instead.
5519 * regcache.c (regcache_raw_write): Remove.
5520
0b883586
SM
55212018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5522
5523 * regcache.h (regcache_raw_read): Remove, update callers to use
5524 readable_regcache::raw_read instead.
5525 * regcache.c (regcache_raw_read): Remove.
5526
0b47d985
SM
55272018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5528
5529 * regcache.h (regcache_raw_update): Remove, update callers to
5530 use readable_regcache::raw_update instead.
5531 * regcache.c (regcache_raw_update): Remove.
5532
0ec9f114
SM
55332018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5534
5535 * regcache.h (regcache_register_status): Remove, update callers
5536 to use reg_buffer::get_register_status directly instead.
5537 * regcache.c (regcache_register_status): Remove.
5538
222312d3
SM
55392018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5540
5541 * regcache.h (regcache_get_ptid): Remove, update all callers to
5542 call regcache::ptid instead.
5543 * regcache.c (regcache_get_ptid): Remove.
5544
fdbe37e3
SM
55452018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5546
5547 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5548
f7c6f423
PA
55492018-05-30 Pedro Alves <palves@redhat.com>
5550
5551 * common/common-exceptions.h (exception_rethrow): Use
5552 ATTRIBUTE_NORETURN.
5553
52941706
SM
55542018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5555
5556 * breakpoint.c (print_solib_event, check_status_catch_solib):
5557 Remove struct keyword in range-based for loops.
5558 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5559 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5560 Likewise.
5561 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5562 Likewise.
5563 * symfile.c (addr_info_make_relative): Likewise.
5564 * thread.c (value_in_thread_stack_temporaries): Likewise.
5565
bf2977b5
WP
55662018-06-12 Weimin Pan <weimin.pan@oracle.com>
5567
5568 PR gdb/16841
5569 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5570 aggregate type to get its real type before accessing it.
5571
64cc34d8
WP
55722018-05-29 Weimin Pan <weimin.pan@oracle.com>
5573
5574 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5575 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5576 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5577 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5578 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5579 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5580 * printcmd.c (info_address_command): Likewise.
5581
e7ec8713
TT
55822018-05-29 Tom Tromey <tom@tromey.com>
5583
5584 * windows-nat.c (handle_exception): Update fall-through comment.
5585
bcb430e4
TT
55862018-05-29 Tom Tromey <tom@tromey.com>
5587
5588 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5589 (struct program_space) <added_solibs>: Now a std::vector.
5590 * breakpoint.c (print_solib_event): Update.
5591 (check_status_catch_solib): Update.
5592 * progspace.c (clear_program_space_solib_cache): Update.
5593 * solib.c (update_solib_list): Update.
5594
894882e3
TT
55952018-05-29 Tom Tromey <tom@tromey.com>
5596
5597 * python/py-type.c (typy_richcompare): Update.
5598 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5599 * gdbtypes.h (types_deeply_equal): Return bool.
5600 (types_equal): Likewise.
5601 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5602 declare VEC.
5603 (check_types_equal): Change worklist to std::vector. Return
5604 bool.
5605 (struct type_equality_entry): Add constructor.
5606 (compare_maybe_null_strings): Return bool.
5607 (check_types_worklist): Return bool. Change worklist to
5608 std::vector.
5609 (types_deeply_equal): Use std::vector.
5610 (types_equal): Return bool.
5611 (compare_maybe_null_strings): Simplify.
5612
10b2ded4
TT
56132018-05-29 Tom Tromey <tom@tromey.com>
5614
5615 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5616
4f7deebe
TT
56172018-05-29 Tom Tromey <tom@tromey.com>
5618
5619 * objc-lang.h: Don't include cp-support.h.
5620 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5621 declare VEC.
5622
b8283aea
TT
56232018-05-27 Tom Tromey <tom@tromey.com>
5624
5625 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5626
41a883c8
TT
56272018-05-25 Tom Tromey <tom@tromey.com>
5628
5629 * value.c (value::location): Initialize.
5630
bf259e25
TT
56312018-05-25 Tom Tromey <tom@tromey.com>
5632
5633 * dbxread.c (init_bincl_list): Remove.
5634 (bincl_list): Now a std::vector.
5635 (bincls_allocated, next_bincl): Remove.
5636 (free_bincl_list, do_free_bincl_list_cleanup)
5637 (make_cleanup_free_bincl_list): Remove.
5638 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5639 unique_xmalloc_ptr.
5640 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5641 (struct header_file_location): Add constructor.
5642 (add_bincl_to_list): Remove.
5643
d525a99b
TT
56442018-05-25 Tom Tromey <tom@tromey.com>
5645
5646 * tui/tui.c (tui_enable): Update.
5647 * mi/mi-interp.c (mi_interp::init): Update.
5648 * interps.h (class interp) <name>: New method.
5649 <m_name>: Rename from name.
5650 (~scoped_restore_interp): Update.
5651 * interps.c (interp::interp): Update.
5652 (interp_add, interp_set, interp_lookup_existing)
5653 (current_interp_named_p): Update.
5654
da505cff
TT
56552018-05-25 Tom Tromey <tom@tromey.com>
5656
5657 * interps.c (interp_name): Remove.
5658 * mi/mi-interp.c (mi_interp::init): Update.
5659 * interps.h (interp_name): Remove.
5660 (~scoped_restore_interp): Update.
5661 * tui/tui.c (tui_enable): Update.
5662
29f94340
TT
56632018-05-25 Tom Tromey <tom@tromey.com>
5664
5665 * utils.c (fputs_maybe_filtered): Update.
5666 * linespec.c (decode_line_full): Update.
5667 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5668 (mi_print_breakpoint_for_event, mi_solib_loaded)
5669 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5670 (mi_user_selected_context_changed): Update.
5671 * mi/mi-main.c (mi_execute_command): Update.
5672 * cli/cli-script.c (execute_control_command): Update.
5673 * python/python.c (execute_gdb_command): Update.
5674 * solib.c (info_sharedlibrary_command): Update.
5675 * interps.c (interp_ui_out): Remove.
5676 * interps.h (interp_ui_out): Remove.
5677
716b8bc5
TT
56782018-05-25 Tom Tromey <tom@tromey.com>
5679
5680 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5681 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5682 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5683
753ff9bd
TT
56842018-05-25 Tom Tromey <tom@tromey.com>
5685
5686 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5687 * interps.c (interp_exec): Use scoped_restore.
5688
5ca3b260
TT
56892018-05-25 Tom Tromey <tom@tromey.com>
5690
5691 * remote.c (remote_target::remote_file_get): Use
5692 gdb::byte_vector.
5693 (remote_target::remote_file_put): Likewise.
5694
3173aa2f
TT
56952018-05-25 Tom Tromey <tom@tromey.com>
5696
5697 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5698 a std::string.
5699 (get_pe_section_index, add_pe_exported_sym): Update.
5700 (read_pe_exported_syms): Use gdb::def_vector.
5701
09a5e1b5
TT
57022018-05-25 Tom Tromey <tom@tromey.com>
5703
5704 * frame.c (remove_prev_frame): Remove.
5705 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5706
d8dab6c3
MR
57072018-05-25 Maciej W. Rozycki <macro@mips.com>
5708
5709 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5710 Remove prototypes.
5711 * mips-linux-nat.c (supply_fpregset): Always call
5712 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5713 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5714 `mips_fill_fpregset'.
5715 * mips-linux-tdep.c (mips_supply_fpregset)
5716 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5717 (mips_fill_fpregset_wrapper): Remove functions.
5718 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5719 (mips_linux_fpregset): Remove variable.
5720 (mips_linux_iterate_over_regset_sections): Use
5721 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5722 (mips_linux_o32_sigframe_init): Remove comment.
5723
3c69da40
PA
57242018-05-25 Pedro Alves <palves@redhat.com>
5725
5726 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5727 (struct readahead_cache, struct packet_reg, struct
5728 remote_arch_state, class remote_state): Move higher up in the
5729 file.
5730 (remote_target::m_remote_state): Now an object instead of a pointer.
5731 (remote_target::get_remote_state): Adjust.
5732
39f0c204
AB
57332018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5734
5735 * stack.c (select_and_print_frame): Delete.
5736 (struct function_bounds): Move struct within function.
5737 (func_command): Most content moved into new function
5738 find_frame_for_function, use new function, print result, add
5739 function comment.
5740 (find_frame_for_function): New function, now returns a result.
5741
d392224a
PW
57422018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5743
5744 * stack.c (iterate_over_block_arg_vars): Fix comment.
5745 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5746
45f25d6c
AB
57472018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5748
5749 PR gdb/23203
5750 * frame.c
5751 (scoped_restore_selected_frame::scoped_restore_selected_frame):
5752 Define.
5753 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5754 Define.
5755 * frame.h (class scoped_restore_selected_frame): New class.
5756 * stack.c (print_frame_local_vars): Remove catching and rethrowing
5757 of any exception, use scoped_restore_selected_frame to restore the
5758 frame instead.
5759
da05d921
PA
57602018-05-24 Pedro Alves <palves@redhat.com>
5761
5762 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5763 override.
5764
a8be540e
TT
57652018-05-23 Tom Tromey <tom@tromey.com>
5766
5767 * complaints.c (struct complaints): Remove.
5768 (symfile_complaint_book): Remove.
5769 (series): New global.
5770 (complaint_internal): Update.
5771 (clear_complaints): Update.
5772
ff1cf532
TT
57732018-05-23 Tom Tromey <tom@tromey.com>
5774
5775 * complaints.c (counters): New global.
5776 (struct complain): Remove.
5777 (struct complaints) <root>: Remove.
5778 (complaint_sentinel): Remove.
5779 (symfile_complaint_book): Update.
5780 (find_complaint) Remove.
5781 (complaint_internal, clear_complaints): Update.
5782
7ff88174
TT
57832018-05-23 Tom Tromey <tom@tromey.com>
5784
5785 * complaints.c (struct complain) <file, line>: Remove.
5786 (find_complaint): Remove file, line parameters.
5787 (complaint_internal): Update.
5788
de54e1a5
TT
57892018-05-23 Tom Tromey <tom@tromey.com>
5790
5791 * complaints.c (vcomplaint): Remove.
5792 (complaint_internal) Merge in contents of vcomplaint.
5793
2ac237e5
TT
57942018-05-23 Tom Tromey <tom@tromey.com>
5795
5796 * complaints.c (struct complaints) <explanation>: Remove.
5797 (symfile_explanations): Remove.
5798 (symfile_complaint_book): Update.
5799 (vcomplaint): Update.
5800 (struct explanation): Remove.
5801
b98664d3
TT
58022018-05-23 Tom Tromey <tom@tromey.com>
5803
5804 * complaints.c (symfile_complaints): Remove.
5805 (complaint_internal): Remove "complaints" parameter.
5806 (clear_complaints, vcomplaint): Remove "c" parameter.
5807 (get_complaints): Remove.
5808 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5809 (dwarf2_debug_line_missing_file_complaint)
5810 (dwarf2_debug_line_missing_end_sequence_complaint)
5811 (dwarf2_complex_location_expr_complaint)
5812 (dwarf2_const_value_length_mismatch_complaint)
5813 (dwarf2_section_buffer_overflow_complaint)
5814 (dwarf2_macro_malformed_definition_complaint)
5815 (dwarf2_invalid_attrib_class_complaint)
5816 (create_addrmap_from_index, dw2_symtab_iter_next)
5817 (dw2_expand_marked_cus)
5818 (dw2_debug_names_iterator::find_vec_in_debug_names)
5819 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5820 (create_debug_type_hash_table, init_cutu_and_read_dies)
5821 (partial_die_parent_scope, add_partial_enumeration)
5822 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5823 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5824 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5825 (create_cus_hash_table, create_dwp_hash_table)
5826 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5827 (dwarf2_rnglists_process, dwarf2_ranges_process)
5828 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5829 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5830 (handle_struct_member_die, process_structure_scope)
5831 (read_array_type, read_common_block, read_module_type)
5832 (read_tag_pointer_type, read_typedef, read_base_type)
5833 (read_subrange_type, load_partial_dies, partial_die_info::read)
5834 (partial_die_info::read, partial_die_info::read)
5835 (partial_die_info::read, read_checked_initial_length_and_offset)
5836 (dwarf2_string_attr, read_formatted_entries)
5837 (dwarf_decode_line_header)
5838 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5839 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5840 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5841 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5842 (get_signatured_type, get_DW_AT_signature_type)
5843 (decode_locdesc, file_file_name, consume_improper_spaces)
5844 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5845 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5846 (dwarf2_symbol_mark_computed, set_die_type)
5847 (read_attribute_value): Update.
5848 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5849 Update.
5850 * dbxread.c (unknown_symtype_complaint)
5851 (lbrac_mismatch_complaint, repeated_header_complaint)
5852 (set_namestring, function_outside_compilation_unit_complaint)
5853 (read_dbx_symtab, process_one_symbol): Update.
5854 * gdbtypes.c (stub_noname_complaint): Update.
5855 * windows-nat.c (handle_unload_dll): Update.
5856 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5857 (decode_base_type): Update.
5858 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5859 (eb_complaint, record_include_begin, record_include_end)
5860 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5861 (process_xcoff_symbol, read_symbol)
5862 (function_outside_compilation_unit_complaint)
5863 (scan_xcoff_symtab): Update.
5864 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5865 * buildsym.c (finish_block_internal, make_blockvector)
5866 (end_symtab_get_static_block, augment_type_symtab): Update.
5867 * dtrace-probe.c (dtrace_process_dof)
5868 (dtrace_static_probe_ops::get_probes): Update.
5869 * complaints.h (struct complaint): Don't declare.
5870 (symfile_complaints): Remove.
5871 (complaint_internal): Remove "complaints" parameter.
5872 (complaint): Likewise.
5873 (clear_complaints): Likewise.
5874 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5875 (reread_symbols): Update.
5876 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5877 (dwarf2_frame_cache, decode_frame_entry): Update.
5878 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5879 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5880 (info_selectors_command): Update.
5881 * macrotab.c (macro_include, check_for_redefinition)
5882 (macro_undef): Update.
5883 * objfiles.c (filter_overlapping_sections): Update.
5884 * stabsread.c (invalid_cpp_abbrev_complaint)
5885 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5886 (define_symbol, error_type, read_type, rs6000_builtin_type)
5887 (stabs_method_name_from_physname, read_member_functions)
5888 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5889 (attach_fields_to_type, complain_about_struct_wipeout)
5890 (read_range_type, read_args, common_block_start)
5891 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
5892 Update.
5893 * mdebugread.c (index_complaint, unknown_ext_complaint)
5894 (basic_type_complaint, bad_tag_guess_complaint)
5895 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
5896 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
5897 (parse_procedure, parse_lines)
5898 (function_outside_compilation_unit_complaint)
5899 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
5900 (bad_tag_guess_complaint, reg_value_complaint): Update.
5901 * cp-support.c (demangled_name_complaint): Update.
5902 * macroscope.c (sal_macro_scope): Update.
5903 * dwarf-index-write.c (class debug_names): Update.
5904
4e9668d0
TT
59052018-05-23 Tom Tromey <tom@tromey.com>
5906
5907 * complaints.c (clear_complaints): Remove "noisy" parameter.
5908 * complaints.h (clear_complaints): Update.
5909 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5910 (reread_symbols): Update.
5911
43ba33c7
TT
59122018-05-23 Tom Tromey <tom@tromey.com>
5913
5914 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
5915 SUBSEQUENT_MESSAGE.
5916 (vcomplaint, clear_complaints): Update.
5917 (symfile_explanations): Remove some messages.
5918
2b9496b2
TT
59192018-05-23 Tom Tromey <tom@tromey.com>
5920
5921 * complaints.c (internal_complaint): Remove.
5922 * complaints.h (internal_complaint): Remove.
5923
35f1fea3
MR
59242018-05-22 Maciej W. Rozycki <macro@mips.com>
5925
5926 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
5927
6b8edb51
PA
59282018-05-22 Pedro Alves <palves@redhat.com>
5929
5930 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
5931 (remote_fileio_badfd, remote_fileio_return_errno)
5932 (remote_fileio_return_success, remote_fileio_func_open)
5933 (remote_fileio_func_open, remote_fileio_func_close)
5934 (remote_fileio_func_read, remote_fileio_func_write)
5935 (remote_fileio_func_lseek, remote_fileio_func_rename)
5936 (remote_fileio_func_unlink, remote_fileio_func_stat)
5937 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5938 (remote_fileio_func_isatty, remote_fileio_func_system): Add
5939 remote_target parameter.
5940 (remote_fio_func_map) <func>: Add remote_target parameter.
5941 (do_remote_fileio_request, remote_fileio_request):
5942 * remote-fileio.h (remote_fileio_request):
5943 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
5944 remote_target parameter.
5945 (remote_notif_process, handle_notification): Adjust to pass down
5946 the remote.
5947 (remote_notif_state_allocate): Add remote_target parameter. Save
5948 it.
5949 * remote-notif.h (struct remote_target): Forward declare.
5950 (struct notif_client) <parse, ack, can_get_pending_events>: Add
5951 remote_target parameter.
5952 (struct remote_notif_state) <remote>: New field.
5953 (remote_notif_ack, remote_notif_parse): Add remote_target
5954 parameter.
5955 (remote_notif_state_allocate, remote_notif_state_allocate): Add
5956 remote_target parameter.
5957 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
5958 (threads_listing_context, rmt_thread_action, protocol_feature)
5959 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
5960 (packet_result, struct threads_listing_context, remote_state):
5961 Move definitions and declarations higher up.
5962 (remote_target) <~remote_target>: Declare.
5963 (remote_download_command_source, remote_file_put, remote_file_get)
5964 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
5965 (remote_hostio_pread_vFile, remote_hostio_send_command)
5966 (remote_hostio_set_filesystem, remote_hostio_open)
5967 (remote_hostio_close, remote_hostio_unlink, remote_state)
5968 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
5969 (get_memory_write_packet_size, get_memory_read_packet_size)
5970 (append_pending_thread_resumptions, remote_detach_1)
5971 (append_resumption, remote_resume_with_vcont)
5972 (add_current_inferior_and_thread, wait_ns, wait_as)
5973 (process_stop_reply, remote_notice_new_inferior)
5974 (process_initial_stop_replies, remote_add_thread)
5975 (btrace_sync_conf, remote_btrace_maybe_reopen)
5976 (remove_new_fork_children, kill_new_fork_children)
5977 (discard_pending_stop_replies, stop_reply_queue_length)
5978 (check_pending_events_prevent_wildcard_vcont)
5979 (discard_pending_stop_replies_in_queue, stop_reply)
5980 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
5981 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
5982 (remote_interrupt_as, remote_interrupt_ns)
5983 (remote_get_noisy_reply, remote_query_attached)
5984 (remote_add_inferior, remote_current_thread, get_current_thread)
5985 (set_thread, set_general_thread, set_continue_thread)
5986 (set_general_process, write_ptid)
5987 (remote_unpack_thread_info_response, remote_get_threadinfo)
5988 (parse_threadlist_response, remote_get_threadlist)
5989 (remote_threadlist_iterator, remote_get_threads_with_ql)
5990 (remote_get_threads_with_qxfer)
5991 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
5992 (get_offsets, remote_check_symbols, remote_supported_packet)
5993 (remote_query_supported, remote_packet_size)
5994 (remote_serial_quit_handler, remote_detach_pid)
5995 (remote_vcont_probe, remote_resume_with_hc)
5996 (send_interrupt_sequence, interrupt_query)
5997 (remote_notif_get_pending_events, fetch_register_using_p)
5998 (send_g_packet, process_g_packet, fetch_registers_using_g)
5999 (store_register_using_P, store_registers_using_G)
6000 (set_remote_traceframe, check_binary_download)
6001 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6002 (remote_xfer_live_readonly_partial, remote_read_bytes)
6003 (remote_send_printf, remote_flash_write, readchar)
6004 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6005 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6006 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6007 (extended_remote_disable_randomization, extended_remote_run)
6008 (send_environment_packet, extended_remote_environment_support)
6009 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6010 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6011 (packet_command): Now methods of ...
6012 (remote_target): ... this class.
6013 (m_remote_state) <remote_target>: New field.
6014 (struct remote_state) <stop_reply_queue,
6015 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6016 fields.
6017 (remote_state::remote_state): Allocate stop_reply_queue.
6018 (remote_state): Delete global.
6019 (get_remote_state_raw): Delete.
6020 (remote_target::get_remote_state): Allocate m_remote_state on
6021 demand.
6022 (get_current_remote_target): New.
6023 (remote_ops, extended_remote_ops): Delete.
6024 (wait_forever_enabled_p, remote_async_inferior_event_token):
6025 Delete, moved to struct remote_state.
6026 (remote_target::close): Delete self. Destruction bits split to
6027 ...
6028 (remote_target::~remote_target): ... this.
6029 (show_memory_packet_size): Adjust to use
6030 get_current_remote_target.
6031 (struct protocol_feature) <func>: Add remote_target parameter.
6032 All callers adjusted.
6033 (curr_quit_handler_target): New.
6034 (remote_serial_quit_handler): Reimplement.
6035 (remote_target::open_1): Adjust to use get_current_remote_target.
6036 Heap-allocate remote_target/extended_remote_target instances.
6037 (vcont_builder::vcont_builder): Add remote_target parameter, and
6038 save it in m_remote. All callers adjusted.
6039 (vcont_builder::m_remote): New field.
6040 (vcont_builder::restart, vcont_builder::flush)
6041 (vcont_builder::push_action): Use it.
6042 (remote_target::commit_resume): Use it.
6043 (struct queue_iter_param) <remote>: New field.
6044 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6045 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6046 (check_pending_event_prevents_wildcard_vcont_callback)
6047 (remote_target::check_pending_events_prevent_wildcard_vcont)
6048 (remote_target::discard_pending_stop_replies)
6049 (remote_target::discard_pending_stop_replies_in_queue)
6050 (remote_target::remote_notif_remove_queued_reply): Fill in
6051 'remote' field.
6052 (remote_notif_get_pending_events): New.
6053 (remote_target::readchar, remote_target::remote_serial_write):
6054 Save/restore curr_quit_handler_target.
6055 (putpkt): New.
6056 (kill_new_fork_children): Fill in 'remote' field.
6057 (packet_command): Use get_current_remote_target, defer to
6058 remote_target method of same name.
6059 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6060 parameter, and save it in m_remote. All callers adjusted.
6061 (scoped_remote_fd::release): Use m_remote.
6062 (scoped_remote_fd::m_remote): New field.
6063 (remote_file_put, remote_file_get, remote_file_delete): Use
6064 get_current_remote_target, defer to remote_target method of same
6065 name.
6066 (remote_btrace_reset): Add remote_state paremeter. Update all
6067 callers.
6068 (remote_async_inferior_event_handler). Pass down 'data'.
6069 (remote_new_objfile): Use get_current_remote_target.
6070 (remote_target::vcont_r_supported): New.
6071 (set_range_stepping): Use get_current_remote_target and
6072 remote_target::vcont_r_supported.
6073 (_initialize_remote): Don't allocate 'remote_state' and
6074 'stop_reply_queue' globals.
6075 * remote.h (struct remote_target): Forward declare.
6076 (getpkt, putpkt, remote_notif_get_pending_events): Add
6077 'remote_target' parameter.
6078
f5db4863
PA
60792018-05-22 Pedro Alves <palves@redhat.com>
6080
6081 * remote.c (vcont_builder): Now a class. Make all data members
6082 private.
6083 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6084 Declare methods.
6085 (vcont_builder_restart): Rename to ...
6086 (vcont_builder::restart): ... this.
6087 (vcont_builder_flush): Rename to ...
6088 (vcont_builder::flush): ... this.
6089 (vcont_builder_push_action): Rename to ...
6090 (vcont_builder::push_action): ... this.
6091 (remote_target::commit_resume): Adjust.
6092
cc0be08f
PA
60932018-05-22 Pedro Alves <palves@redhat.com>
6094
6095 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6096 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6097 (get_fixed_memory_packet_size): New.
6098 (get_memory_packet_size): Use it.
6099 (set_memory_packet_size): Don't override the config size with
6100 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6101 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6102 Don't refer to get_memory_packet_size if not connected to a remote
6103 target. Show "(default)" if configured size is 0.
6104
9607784a
PA
61052018-05-22 Pedro Alves <palves@redhat.com>
6106
6107 * remote.c (remote_target::mourn_inferior): Move
6108 discard_pending_stop_replies call here from ...
6109 (_initialize_remote): ... here.
6110
0e9a6b2f
PA
61112018-05-22 Pedro Alves <palves@redhat.com>
6112
6113 * remote.c (compare_section_command): Remove set_general_process
6114 call.
6115
43c3a0e4
PA
61162018-05-22 Pedro Alves <palves@redhat.com>
6117
6118 * remote.c (struct packet_reg, struct remote_arch_state):
6119 Move higher up in the file.
6120 (remote_state) <m_arch_states>: Store remote_arch_state values
6121 instead of remote_arch_state pointers.
6122 (remote_state::get_remote_arch_state): Adjust.
6123
9d6eea31
PA
61242018-05-22 Pedro Alves <palves@redhat.com>
6125
6126 * remote.c: Include <unordered_map>.
6127 (remote_state): Now a class.
6128 (remote_state) <get_remote_arch_state>: Declare method.
6129 <get_remote_arch_state>: New field.
6130 (remote_arch_state) <remote_arch_state>: Declare ctor.
6131 <regs>: Now a unique_ptr.
6132 (remote_gdbarch_data_handle): Delete.
6133 (get_remote_arch_state): Delete.
6134 (remote_state::get_remote_arch_state): New.
6135 (get_remote_state): Adjust to call remote_state's
6136 get_remote_arch_state method.
6137 (init_remote_state): Delete, bits factored out to ...
6138 (remote_arch_state::remote_arch_state): ... this new method.
6139 (get_remote_packet_size, get_memory_packet_size)
6140 (process_g_packet, remote_target::fetch_registers)
6141 (remote_target::prepare_to_store, store_registers_using_G)
6142 (remote_target::store_registers, remote_target::get_trace_status):
6143 Adjust to call remote_state's method.
6144 (_initialize_remote): Remove reference to
6145 remote_gdbarch_data_handle.
6146
dd194f6b
PA
61472018-05-22 Pedro Alves <palves@redhat.com>
6148
6149 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6150 pread>: New method declarations.
6151 (remote_target::open_1): Adjust.
6152 (readahead_cache_invalidate): Rename to ...
6153 (readahead_cache::invalidate): ... this, and adjust to be a class
6154 method.
6155 (readahead_cache_invalidate_fd): Rename to ...
6156 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6157 class method.
6158 (remote_hostio_pwrite): Adjust.
6159 (remote_hostio_pread_from_cache): Rename to ...
6160 (readahead_cache::pread): ... this, and adjust to be a class
6161 method.
6162 (remote_hostio_close): Adjust.
6163
440b7aec
PA
61642018-05-22 Pedro Alves <palves@redhat.com>
6165
6166 * remote.c (remote_hostio_close_cleanup): Delete.
6167 (class scoped_remote_fd): New.
6168 (remote_file_put, remote_file_get): Use it.
6169
de44f5a7
PA
61702018-05-22 Pedro Alves <palves@redhat.com>
6171
6172 (struct vCont_action_support): Use bool and initialize all fields.
6173 (struct readahead_cache): Initialize all fields.
6174 (remote_state): Use bool and initialize all fields.
6175 (remote_state::remote_state, remote_state::~remote_state): New.
6176 (new_remote_state): Delete.
6177 (_initialize_remote): Use new to allocate remote_state.
6178
b1b60145
PA
61792018-05-22 Pedro Alves <palves@redhat.com>
6180 張俊芝 <zjz@zjz.name>
6181
6182 PR gdb/22973
6183 * c-exp.y: Include "c-support.h".
6184 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6185 of tolower. Use c_ident_is_alpha to scan names.
6186 * c-lang.c: Include "c-support.h".
6187 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6188 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6189 * c-support.h: New file, with bits factored out from ...
6190 * cp-name-parser.y: ... this file.
6191 Include "c-support.h".
6192 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6193 c-support.h and renamed.
6194 (symbol_end, yylex): Adjust.
6195
0ec848ad
PFC
61962018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6197
6198 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6199 parameter type to CORE_ADDR.
6200 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6201 parameter type in declaration to CORE_ADDR.
6202 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6203 target_auxv_search to get AT_HWCAP and use the result to get the
6204 target description.
6205 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6206 to CORE_ADDR. Remove the cast of the return value to unsigned
6207 long. Fix error predicate of target_auxv_search.
6208 (ppc_linux_nat_target::read_description): Change the type of the
6209 hwcap variable to CORE_ADDR.
6210
0fb2aaa1
PFC
62112018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6212
6213 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6214 if the size of fpscr is larger than 32 bits.
6215
2c3305f6
PFC
62162018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6217
6218 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6219 (ppc32_linux_vsxregmap): New global.
6220 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6221 regcache_supply_regset, and regcache_collect_regset.
6222 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6223 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6224 (fetch_vsx_register, store_vsx_register): Remove.
6225 (fetch_vsx_registers): Add regno parameter. Get regset using
6226 ppc_linux_vsxregset. Use regset to supply registers.
6227 (store_vsx_registers): Add regno parameter. Get regset using
6228 ppc_linux_vsxregset. Use regset to collect registers.
6229 (fetch_register): Call fetch_vsx_registers instead of
6230 fetch_vsx_register.
6231 (store_register): Call store_vsx_registers instead of
6232 store_vsx_register.
6233 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6234 new regno parameter.
6235 (store_ppc_registers): Call store_vsx_registers with -1 for the
6236 new regno parameter.
6237 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6238 (ppc_collect_vsxregset): Remove.
6239
1d75a658
PFC
62402018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6241
6242 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6243 offset fields.
6244 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6245 for vector register offset fields.
6246 (ppc64_fbsd_reg_offsets): Likewise.
6247 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6248 to vector register offset fields.
6249 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6250 to vector register offset fields.
6251 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6252 vector register offset fields.
6253 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6254 initializers for vector register offset fields.
6255 (rs6000_aix64_reg_offsets): Likewise.
6256 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6257 (ppc_supply_vrregset): Remove.
6258 (ppc_collect_vrregset): Remove.
6259 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6260 (ppc_linux_vrregset) : New function.
6261 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6262 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6263 (ppc32_linux_vrregset): Remove.
6264 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6265 and use result instead of ppc32_linux_vrregset.
6266 (ppc32_linux_reg_offsets): Remove initializers for vector register
6267 offset fields.
6268 (ppc64_linux_reg_offsets): Likewise.
6269 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6270 * ppc-linux-nat.c: Include regset.h.
6271 (gdb_vrregset_t): Adjust comment to account for little-endian
6272 mode.
6273 (supply_vrregset, fill_vrregset): Remove.
6274 (fetch_altivec_register, store_altivec_register): Remove.
6275 (fetch_altivec_registers): Add regno parameter. Get regset using
6276 ppc_linux_vrregset. Use regset to supply registers.
6277 (store_altivec_registers): Add regno parameter. Get regset using
6278 ppc_linux_vrregset. Use regset to collect registers.
6279 (fetch_register): Call fetch_altivec_registers instead of
6280 fetch_altivec_register.
6281 (store_register): Call store_altivec_registers instead of
6282 store_altivec_register.
6283 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6284 the new regno parameter.
6285 (store_ppc_registers): Call store_altivec_registers with -1 for
6286 the new regno parameter.
6287
d078308a
PFC
62882018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6289
6290 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6291 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6292 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6293 (gdb_vrregset_t): Change array type size to
6294 PPC_LINUX_SIZEOF_VRREGSET.
6295 (gdb_vsxregset_t): Change array type size to
6296 PPC_LINUX_SIZEOF_VSXREGSET.
6297 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6298 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6299 PPC_LINUX_SIZEOF_VSXREGSET.
6300
2e077f5e
PFC
63012018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6302
6303 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6304 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6305 nat/ppc-linux.c.
6306 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6307 ppc_linux_target_wordsize with tid.
6308 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6309 wordsize with tid.
6310 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6311 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6312 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6313 tid parameter. Remove static specifier.
6314 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6315 (ppc_linux_target_wordsize): New declaration.
6316
bd64614e
PFC
63172018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6318
6319 * arch/ppc-linux-common.c: New file.
6320 * arch/ppc-linux-common.h: New file.
6321 * arch/ppc-linux-tdesc.h: New file.
6322 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6323 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6324 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6325 arch/ppc-linux-tdesc.h.
6326 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6327 arch/ppc-linux-tdesc.h.
6328 (ppc_linux_nat_target::read_description): Remove target
6329 description matching code. Fill a ppc_linux_features struct and
6330 call ppc_linux_match_description with it. Move comment about ISA
6331 2.05 to ppc-linux-common.c.
6332 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6333 arch/ppc-linux-tdesc.h.
6334 (ppc_linux_core_read_description): Remove target description
6335 matching code. Fill a ppc_linux_features struct and call
6336 ppc_linux_match_description with it.
6337 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6338 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6339 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6340 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6341 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6342 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6343 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6344 (tdesc_powerpc_e500l): Remove.
6345
241db429
JB
63462018-05-22 Joel Brobecker <brobecker@adacore.com>
6347
6348 * ada-lang.c (catch_assert_command): Pass empty string instead
6349 of NULL for excep_string argument.
6350
75d74cca
MR
63512018-05-22 Maciej W. Rozycki <macro@mips.com>
6352
6353 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6354 the width of the requested register exceeds the width of the
6355 `ptrace' data type.
6356
122b53ea
TT
63572018-05-21 Tom Tromey <tom@tromey.com>
6358
6359 * printcmd.c (output_command): Remove.
6360 (output_command_const): Rename to output_command.
6361 * valprint.h (output_command): Rename from output_command_const.
6362 * tracepoint.c (trace_dump_actions): Call output_command.
6363
bc18fbb5
TT
63642018-05-21 Tom Tromey <tom@tromey.com>
6365
6366 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6367 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6368 * ada-lang.h (create_ada_exception_catchpoint): Update.
6369 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6370 std::string.
6371 (create_excep_cond_exprs, ~ada_catchpoint)
6372 (should_stop_exception, print_one_exception)
6373 (print_mention_exception, print_recreate_exception): Update.
6374 (ada_get_next_arg): Remove.
6375 (catch_ada_exception_command_split): Use std::string. Change type
6376 of "excep_string", "cond_string".
6377 (catch_ada_exception_command): Update.
6378 (create_ada_exception_catchpoint): Change type of excep_string.
6379 (ada_exception_sal): Remove excep_string parameter.
6380 (~ada_catchpoint): Remove.
6381
790217f6
TT
63822018-05-21 Tom Tromey <tom@tromey.com>
6383
6384 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6385 cleanup.
6386
6f46ac85
TT
63872018-05-21 Tom Tromey <tom@tromey.com>
6388
6389 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6390 Return unique_xmalloc_ptr.
6391 (print_it_exception): Update.
6392
15b6611c
TT
63932018-05-21 Tom Tromey <tom@tromey.com>
6394
6395 * tracepoint.c (trace_dump_actions): Use std::string.
6396
c0c9f665
TT
63972018-05-21 Tom Tromey <tom@tromey.com>
6398
6399 * symfile.c (reread_symbols): Use std::string for original_name.
6400
22ca247e
TT
64012018-05-21 Tom Tromey <tom@tromey.com>
6402
6403 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6404 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6405 constructor.
6406
184cde75
SM
64072018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6408
6409 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6410 instance to...
6411 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6412 * objfiles.c (get_objfile_bfd_data): Allocate
6413 objfile_per_bfd_storage with obstack_new when allocating on
6414 obstack.
6415
e39db4db
SM
64162018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6417
6418 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6419 OBSTACK_ZALLOC.
6420 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6421 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6422 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6423 (add_pending): Likewise.
6424 (parse_symbol): Likewise.
6425 (parse_partial_symbols): Likewise.
6426 (psymtab_to_symtab_1): Likewise.
6427 (new_psymtab): Likewise.
6428 (elfmdebug_build_psymtabs): Likewise.
6429 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6430 * objfiles.c (get_objfile_bfd_data): Likewise.
6431 (objfile_register_static_link): Likewise.
6432 * psymtab.c (allocate_psymtab): Likewise.
6433 * stabsread.c (read_member_functions): Likewise.
6434 * xcoffread.c (xcoff_end_psymtab): Likewise.
6435
284a0e3c
SM
64362018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6437
6438 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6439 compiler supports std::is_trivially_constructible.
6440 * common/poison.h: Include obstack.h.
6441 (IsMallocable): Define to is_trivially_constructible if the
6442 compiler supports it, define to true_type otherwise.
6443 (xobnew): New.
6444 (XOBNEW): Redefine.
6445 (xobnewvec): New.
6446 (XOBNEWVEC): Redefine.
6447 * gdb_obstack.h (obstack_zalloc): New.
6448 (OBSTACK_ZALLOC): Redefine.
6449 (obstack_calloc): New.
6450 (OBSTACK_CALLOC): Redefine.
6451 (obstack_new): New.
6452 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6453 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6454 gdbarch.c.
6455 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6456 obstack_calloc/obstack_zalloc.
6457 (gdbarch_obstack_zalloc): Remove.
6458 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6459
59f66be3
PW
64602018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6461
6462 * stack.c (backtrace_command_1): Remove useless variable int i.
6463
50c65c2d
PW
64642018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6465
6466 * stack.c (print_frame_info): Fix comment.
6467
7ff8cb8c
TT
64682018-05-18 Tom Tromey <tom@tromey.com>
6469
6470 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6471 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6472 (~dwarf2_per_objfile): Update
6473 (dwarf2_get_dwz_file): Use new.
6474 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6475 unique_ptr.
6476
400174b1
TT
64772018-05-18 Tom Tromey <tom@tromey.com>
6478
6479 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6480 unique_ptr.
6481 * dwarf2read.c (struct dwp_file): Add constructor and
6482 initializers.
6483 (open_and_init_dwp_file): Return a unique_ptr.
6484 (dwarf2_per_objfile, create_dwp_hash_table)
6485 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6486 (lookup_dwo_unit_in_dwp): Update.
6487 (open_and_init_dwp_file, get_dwp_file): Update.
6488
3063847f
TT
64892018-05-18 Tom Tromey <tom@tromey.com>
6490
6491 * dwarf2read.c (dwarf2_per_objfile): Update.
6492 (struct mapped_index): Add initializers.
6493 (dwarf2_read_index): Use new.
6494 (dw2_symtab_iter_init): Update.
6495 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6496 unique_ptr.
6497
d3d02dee
SM
64982018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6499
6500 * dwarf2read.c (mapped_index) <total_size>: Remove.
6501
1d143c36
SM
65022018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6503
6504 * unittests/format_pieces-selftests.c (test_format_specifier):
6505 Add ARI comments.
6506
ce1e8424
TT
65072018-05-18 Tom Tromey <tom@tromey.com>
6508
6509 * c-typeprint.c (maybe_print_hole): New function.
6510 (c_print_type_struct_field_offset): Update.
6511 (c_type_print_base_struct_union): Call maybe_print_hole.
6512
ddfe970e
KS
65132018-05-17 Keith Seitz <keiths@redhat.com>
6514
6515 * breakpoint.c (build_bpstat_chain): New function, moved from
6516 bpstat_stop_status.
6517 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6518 If no stop chain is passed, call build_bpstat_chain to build it.
6519 * breakpoint.h (build_bpstat_chain): Declare.
6520 (bpstat_stop_status): Move documentation here from breakpoint.c.
6521 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6522 build the stop chain and pass it to skip_inline_frames.
6523 Pass this stop chain to bpstat_stop_status.
6524 * inline-frame.c: Include breakpoint.h.
6525 (stopped_by_user_bp_inline_frame): New function.
6526 (skip_inline_frames): Add parameter `stop_chain'.
6527 Move documention to inline-frame.h.
6528 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6529 whether the frame should be elided.
6530 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6531 Add moved documentation and update for new parameter.
6532
b17992c1
SM
65332018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6534
6535 PR cli/14975
6536 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6537 unittests/format_pieces-selftests.c.
6538 * common/format.h (format_piece) <operator==>: New.
6539 (format_pieces) <operator[]>: Remove.
6540 * common/format.c (format_pieces::format_pieces): Handle \e.
6541 * unittests/format_pieces-selftests.c: New.
6542
58f0c718
TT
65432018-05-17 Tom Tromey <tom@tromey.com>
6544
6545 PR symtab/23010:
6546 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6547 (dw2_instantiate_symtab): Add skip_partial parameter.
6548 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6549 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6550 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6551 (dw2_expand_symtabs_matching_one)
6552 (dw2_find_pc_sect_compunit_symtab)
6553 (dw2_debug_names_lookup_symbol)
6554 (dw2_debug_names_expand_symtabs_for_function): Update.
6555 (init_cutu_and_read_dies): Add skip_partial parameter.
6556 (process_psymtab_comp_unit, build_type_psymtabs_1)
6557 (process_skeletonless_type_unit, load_partial_comp_unit)
6558 (psymtab_to_symtab_1): Update.
6559 (load_full_comp_unit): Add skip_partial parameter.
6560 (process_imported_unit_die, dwarf2_read_addr_index)
6561 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6562 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6563 (read_signatured_type): Update.
6564
3e618834
SM
65652018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6566
6567 * value.c (release_value): Remove unused variable.
6568 (record_latest_value): Likewise.
6569 (access_value_history): Likewise.
6570 (preserve_values): Likewise.
6571
fe10fe31
TT
65722018-05-17 Tom Tromey <tom@tromey.com>
6573
6574 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6575 Initialize.
6576
1d761124
MR
65772018-05-16 Maciej W. Rozycki <macro@mips.com>
6578
6579 PR gdb/22286
6580 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6581 Also handle registers whose width is not a multiple of
6582 PTRACE_TYPE_RET.
6583 (linux_nat_trad_target::store_register): Likewise.
6584
06333fea
TT
65852018-05-16 Tom Tromey <tom@tromey.com>
6586
6587 * gdbcore.h (core_bfd): Redefine.
6588 * corelow.c (core_target::close): Update.
6589 (core_target_open): Update.
6590 * progspace.h (struct program_space) <cbfd>: Now a
6591 gdb_bfd_ref_ptr.
6592
921222e2
TT
65932018-05-16 Tom Tromey <tom@tromey.com>
6594
6595 PR cli/19551:
6596 * symfile-add-flags.h (enum symfile_add_flags)
6597 <SYMFILE_NOT_FILENAME>: New constant.
6598 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6599 objfile name from BFD.
6600 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6601 * minidebug.c (find_separate_debug_file_in_section): Put
6602 ".gnu_debugdata" into BFD's file name.
6603
3acb7083
SM
66042018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6605
6606 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6607 Remove.
6608
561a72d4
TC
66092018-05-15 Tamar Christina <tamar.christina@arm.com>
6610
6611 PR binutils/21446
6612 * aarch64-tdep.c (aarch64_analyze_prologue,
6613 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6614 Indicate not interested in errors.
6615
4e6ff0e1
MR
66162018-05-15 Maciej W. Rozycki <macro@mips.com>
6617
6618 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6619 Supply the MIPS_ZERO_REGNUM register.
6620
ea33cd92
MR
66212018-05-15 Maciej W. Rozycki <macro@mips.com>
6622
6623 * mips-tdep.c (mask_address_var): Make variable static.
6624
2d79090e
TT
66252018-05-14 Tom Tromey <tom@tromey.com>
6626
6627 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6628
cf4912ae
AB
66292018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6630
6631 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6632 FXSAVE_ADDR for the mxcsr register.
6633
67e6f569
MF
66342018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6635
6636 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6637
15244507
PA
66382018-05-11 Pedro Alves <palves@redhat.com>
6639
6640 * corelow.c (core_target) <core_target>: No longer inline.
6641 Initialize m_core_gdbarch, m_core_vec and build the section table
6642 here.
6643 <~core_target>: New.
6644 <core_gdbarch, get_core_register_section>: New methods.
6645 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6646 factored out from ...
6647 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6648 (core_ops): Delete.
6649 (sniff_core_bfd): Add gdbarch parameter.
6650 (core_close): Delete, merged into ...
6651 (core_target::close): ... here. Delete self.
6652 (core_close_cleanup): Delete.
6653 (core_target_open): Allocate a core_target on the heap. Use a
6654 unique_ptr instead of a cleanup. Bits moved into the core_target
6655 ctor. Adjust to use core_target methods instead of globals.
6656 (get_core_register_section): Rename to ...
6657 (core_target::get_core_register_section): ... this and adjust.
6658 (struct get_core_registers_cb_data): New.
6659 (get_core_registers_cb): Use it. Use bool.
6660 (core_target::fetch_registers, core_target::files_info)
6661 (core_target::xfer_partial, core_target::read_description)
6662 (core_target::pid_to, core_target::thread_name): Adjust to
6663 reference class fields instead of globals.
6664 * target.h (struct target_ops_deleter, target_ops_up): New.
6665
451953fa
PA
66662018-05-11 Pedro Alves <palves@redhat.com>
6667
6668 * corefile.c (core_file_command): Move to corelow.c.
6669 * corelow.c (the_core_target): Delete.
6670 (core_file_command): Moved from corefile.c. Check exec_bfd
6671 instead of the_core_target. Use target_detach instead of calling
6672 into the_core_target directly.
6673 (maybe_say_no_core_file_now): New.
6674 (core_target::detach): Use it.
6675 (_initialize_corelow): Remove references to the_core_target.
6676 * gdbcore.h (the_core_target): Delete.
6677
e540a5a2 66782018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 6679 Pedro Alves <palves@redhat.com>
e540a5a2
TT
6680
6681 * corefile.c (core_bfd): Remove.
6682 * gdbcore.h (core_bfd): Now a macro.
6683 * progspace.h (struct program_space) <cbfd>: New field.
6684
633cf254
TT
66852018-05-11 Tom Tromey <tom@tromey.com>
6686
6687 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6688 gdb::def_vector.
6689
1a34f210
TT
66902018-05-10 Tom Tromey <tom@tromey.com>
6691
6692 * configure: Rebuild.
6693 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6694
190852c8
JB
66952018-05-10 Joel Brobecker <brobecker@adacore.com>
6696
6697 PR server/23158:
6698 * regformats/regdat.sh: Adjust script, following the addition
6699 of the new expedite_regs parameter to init_target_desc.
6700
8727de56
OJ
67012018-05-10 Omair Javaid <omair.javaid@linaro.org>
6702
6703 PR gdb/23127
6704 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6705 set_gdbarch_significant_addr_bit.
6706 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6707 set_gdbarch_significant_addr_bit.
6708 * utils.c (address_significant): Update to sign extend addr.
6709
37d9e062
MF
67102018-05-09 Max Filippov <jcmvbkbc@gmail.com>
6711
6712 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6713 (xtensa_linux_init_abi): Limit tdep->num_regs by
6714 tdep->num_nopriv_regs.
6715 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6716 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6717 not initialized.
6718
7402fbca
SM
67192018-05-08 Simon Marchi <simon.marchi@ericsson.com>
6720
6721 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6722
8ee22052
AB
67232018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6724
6725 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6726 (I387_MXCSR_INIT_VAL): New constant.
6727 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6728 buffer if it was supplied by the inferior.
6729 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6730 (i387_xsave_get_clear_bv): New function.
6731 (i387_supply_xsave): Only read x87 control registers from the
6732 xsave buffer if the feature is enabled, and the state will have
6733 been written, otherwise, provide a suitable default.
6734 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6735 including x87 control registers. Update control registers if they
6736 have changed from the default value, and mark features as enabled
6737 as required.
6738 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6739
968ae51b
UW
67402018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6741
6742 * spu-tdep.c (info_spu_event_command): Fix output formatting.
6743
aff689d3
TT
67442018-05-07 Tom Tromey <tom@tromey.com>
6745
6746 * configure: Rebuild.
6747 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6748
ce887586
TT
67492018-05-07 Tom Tromey <tom@tromey.com>
6750
6751 PR tdep/20362:
6752 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6753 bit. Use correct value for VDIV.
6754
85e26832
TT
67552018-05-04 Tom Tromey <tom@tromey.com>
6756
6757 * configure: Rebuild.
6758 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6759
449b1ac7
TT
67602018-05-04 Tom Tromey <tom@tromey.com>
6761
6762 * linux-record.c (record_linux_system_call) <case
6763 RECORD_SYS_RECVFROM>: Add "break".
6764
15c9ffd6
TT
67652018-05-04 Tom Tromey <tom@tromey.com>
6766
6767 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6768 Add missing "break".
6769 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6770 Add missing "break".
6771
e3829d13
TT
67722018-05-04 Tom Tromey <tom@tromey.com>
6773
6774 * rs6000-tdep.c (ppc_process_record_op4)
6775 (ppc_process_record_op63): Add fall-through comment.
6776
da0e1563
TT
67772018-05-04 Tom Tromey <tom@tromey.com>
6778
6779 * i386-tdep.c (i386_process_record): Add fall-through comment.
6780
0019cd49
TT
67812018-05-04 Tom Tromey <tom@tromey.com>
6782
6783 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6784 comment.
6785
565e0eda
TT
67862018-05-04 Tom Tromey <tom@tromey.com>
6787
6788 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6789 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6790 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6791 comment.
6792 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6793 comment.
6794 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6795 comment.
6796
621846f4
TT
67972018-05-04 Tom Tromey <tom@tromey.com>
6798
6799 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6800
86a73007
TT
68012018-05-04 Tom Tromey <tom@tromey.com>
6802
6803 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6804 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6805 * symfile.c (section_is_mapped): Fix fall-through comment.
6806 * stabsread.c (define_symbol, read_member_functions): Fix
6807 fall-through comment.
6808 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6809 comment.
6810 * remote.c (remote_wait_as): Fix fall-through comment.
6811 * p-exp.y (yylex): Fix fall-through comment.
6812 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6813 comment.
6814 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6815 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6816 * jv-exp.y (yylex): Fix fall-through comment.
6817 * go-exp.y (lex_one_token): Fix fall-through comment.
6818 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6819 fall-through comment.
6820 * f-exp.y (yylex): Fix fall-through comment.
6821 * dwarf2read.c (process_die): Fix fall-through comments.
6822 * dbxread.c (process_one_symbol): Fix fall-through comment.
6823 * d-exp.y (lex_one_token): Fix fall-through comment.
6824 * cp-name-parser.y (yylex): Fix fall-through comment.
6825 * coffread.c (coff_symtab_read): Fix fall-through comment.
6826 * c-exp.y (lex_one_token): Fix fall-through comment.
6827 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6828 comment.
6829 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6830 comment.
6831
56bcdbea
TT
68322018-05-04 Tom Tromey <tom@tromey.com>
6833
6834 PR python/22730:
6835 * NEWS: Mention gdb.execute change.
6836 * gdbcmd.h (execute_control_command): Don't declare.
6837 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6838 execute_control_commands, execute_control_commands_to_string.
6839 * cli/cli-script.h (execute_control_commands)
6840 (execute_control_commands_to_string): Declare.
6841 (execute_control_command): Add from_tty parameter.
6842 * cli/cli-script.c (execute_control_commands)
6843 (execute_control_commands_to_string): New functions.
6844 (execute_user_command): Use execute_control_commands.
6845 (execute_control_command_1): Add "from_tty" parameter. Update.
6846 (execute_control_command): Likewise.
6847
a913fffb
TT
68482018-05-04 Tom Tromey <tom@tromey.com>
6849
6850 PR python/22731:
6851 * NEWS: Mention that breakpoint commands are writable.
6852 * python/py-breakpoint.c (bppy_set_commands): New function.
6853 (breakpoint_object_getset) <"commands">: Use it.
6854
60b3cef2
TT
68552018-05-04 Tom Tromey <tom@tromey.com>
6856
6857 * tracepoint.c (actions_command): Update.
6858 * mi/mi-cmd-break.c (mi_command_line_array)
6859 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6860 (mi_read_next_line): Remove.
6861 (mi_cmd_break_commands): Update.
6862 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6863 function_view.
6864 * cli/cli-script.c (get_command_line): Update.
6865 (process_next_line): Use function_view. Constify.
6866 (recurse_read_control_structure, read_command_lines)
6867 (read_command_lines_1): Change argument types to function_view.
6868 (do_define_command, document_command): Update.
6869 * breakpoint.h (check_tracepoint_command): Don't declare.
6870 * breakpoint.c (check_tracepoint_command): Remove.
6871 (commands_command_1, create_tracepoint_from_upload): Update.
6872
7a2c85f2
TT
68732018-05-04 Tom Tromey <tom@tromey.com>
6874
6875 PR gdb/11750:
6876 * cli/cli-script.h (enum command_control_type) <define_control>:
6877 New constant.
6878 * cli/cli-script.c (multi_line_command_p): Handle define_control.
6879 (build_command_line, execute_control_command_1)
6880 (process_next_line): Likewise.
6881 (do_define_command): New function, extracted from define_command.
6882 (define_command): Use it.
6883
295dc222
TT
68842018-05-04 Tom Tromey <tom@tromey.com>
6885
6886 * tracepoint.c (actions_command): Update.
6887 * cli/cli-script.h (read_command_lines): Update.
6888 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6889 (MAX_TMPBUF): Remove define.
6890 (define_command): Use string_printf.
6891 (document_command): Likewise.
6892 * breakpoint.c (commands_command_1): Update.
6893
1263a9d5
TT
68942018-05-04 Tom Tromey <tom@tromey.com>
6895
6896 * top.c (execute_command): Update.
6897 * cli/cli-script.h (print_command_lines): Now varargs.
6898 * cli/cli-script.c (print_command_lines): Now varargs.
6899 (execute_control_command_1) <case while_control, case if_control>:
6900 Update.
6901
12973681
TT
69022018-05-04 Tom Tromey <tom@tromey.com>
6903
6904 * tracepoint.c (all_tracepoint_actions): Rename from
6905 all_tracepoint_actions_and_cleanup. Change return type.
6906 (actions_command, encode_actions_1, encode_actions)
6907 (trace_dump_actions, tdump_command): Update.
6908 * remote.c (remote_download_command_source): Update.
6909 * python/python.c (gdbpy_eval_from_control_command)
6910 (python_command, python_interactive_command): Update.
6911 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6912 * guile/guile.c (guile_command)
6913 (gdbscm_eval_from_control_command, guile_command): Update.
6914 * compile/compile.c (compile_code_command)
6915 (compile_print_command, compile_to_object): Update.
6916 * cli/cli-script.h (struct command_lines_deleter): New.
6917 (counted_command_line): New typedef.
6918 (struct command_line): Add constructor, destructor.
6919 <body_list>: Remove.
6920 <body_list_0, body_list_1>: New members.
6921 (command_line_up): Remove typedef.
6922 (read_command_lines, read_command_lines_1, get_command_line):
6923 Update.
6924 (copy_command_lines): Don't declare.
6925 * cli/cli-script.c (build_command_line): Use "new".
6926 (get_command_line): Return counted_command_line.
6927 (print_command_lines, execute_user_command)
6928 (execute_control_command_1, while_command, if_command): Update.
6929 (realloc_body_list): Remove.
6930 (process_next_line, recurse_read_control_structure): Update.
6931 (read_command_lines, read_command_lines_1): Return counted_command_line.
6932 (free_command_lines): Use "delete".
6933 (copy_command_lines): Remove.
6934 (define_command, document_command, show_user_1): Update.
6935 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
6936 a counted_command_line.
6937 * breakpoint.h (counted_command_line): Remove typedef.
6938 (breakpoint_set_commands): Update.
6939 * breakpoint.c (check_no_tracepoint_commands)
6940 (validate_commands_for_breakpoint): Update.
6941 (breakpoint_set_commands): Change commands to be a
6942 counted_command_line.
6943 (commands_command_1, update_dprintf_command_list)
6944 (create_tracepoint_from_upload): Update.
6945
e2fc72e2
TT
69462018-05-04 Tom Tromey <tom@tromey.com>
6947
6948 * cli/cli-decode.h (cmd_list_element): New constructor.
6949 (~cmd_list_element): New destructor.
6950 (struct cmd_list_element): Add initializers.
6951 * cli/cli-decode.c (do_add_cmd): Use "new".
6952 (delete_cmd): Use "delete".
6953
a3b60e45
JK
69542018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6955 Pedro Alves <palves@redhat.com>
6956
6957 PR breakpoints/19806 and support for PR external/20207.
6958 * NEWS: Mention Aarch64 watchpoint improvements.
6959 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
6960 watchpoints and PR external/20207 watchpoints.
6961 * nat/aarch64-linux-hw-point.c
6962 (kernel_supports_any_contiguous_range): New.
6963 (aarch64_watchpoint_offset): New.
6964 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
6965 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
6966 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
6967 (aarch64_align_watchpoint): New parameters aligned_offset_p and
6968 next_addr_orig_p. Support PR external/20207 watchpoints.
6969 (aarch64_downgrade_regs): New.
6970 (aarch64_dr_state_insert_one_point): New parameters offset and
6971 addr_orig.
6972 (aarch64_dr_state_remove_one_point): Likewise.
6973 (aarch64_handle_breakpoint): Update caller.
6974 (aarch64_handle_aligned_watchpoint): Likewise.
6975 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
6976 aligned_offset.
6977 (aarch64_linux_set_debug_regs): Remove const from state. Call
6978 aarch64_downgrade_regs.
6979 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
6980 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
6981 (DR_CONTROL_MASK): ... this.
6982 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
6983 (unsigned int aarch64_watchpoint_offset): New prototype.
6984 (aarch64_linux_set_debug_regs): Remove const from state.
6985 * utils.c (align_up, align_down): Move to ...
6986 * common/common-utils.c (align_up, align_down): ... here.
6987 * utils.h (align_up, align_down): Move to ...
6988 * common/common-utils.h (align_up, align_down): ... here.
6989
05bc7456
JB
69902018-05-04 Joel Brobecker <brobecker@adacore.com>
6991
6992 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
6993 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
6994 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
6995 Re-implement to match the ABI as summarized in GCC's
6996 gcc/config/sparc/sparc.c. All callers updated.
6997 (sparc32_store_arguments): Remove assertion.
6998
2f433492
TT
69992018-05-04 Tom Tromey <tom@tromey.com>
7000
7001 * printcmd.c: Don't include tui.h.
7002 (decode_format): Use skip_spaces.
7003
9be2ae8f
TT
70042018-05-04 Tom Tromey <tom@tromey.com>
7005
7006 PR gdb/22619:
7007 * printcmd.c (last_count): New global.
7008 (x_command): Use saved count when repeating.
7009
f0b3976b
TT
70102018-05-04 Tom Tromey <tom@tromey.com>
7011
7012 * nto-procfs.c (do_closedir_cleanup): Remove.
7013 (procfs_pidlist): Use gdb_dir_up.
7014 * procfs.c (do_closedir_cleanup): Remove.
7015 (proc_update_threads): Use gdb_dir_up.
7016 * common/filestuff.h (struct gdb_dir_deleter): New.
7017 (gdb_dir_up): New typedef.
7018
862d101a
TT
70192018-05-04 Tom Tromey <tom@tromey.com>
7020
7021 * ada-lang.c (print_mention_exception): Use std::string.
7022
cb7de75e
TT
70232018-05-04 Tom Tromey <tom@tromey.com>
7024
7025 * ada-lang.c (create_excep_cond_exprs): Update.
7026 (ada_exception_catchpoint_cond_string): Use std::string.
7027
49d83361
TT
70282018-05-04 Tom Tromey <tom@tromey.com>
7029
7030 * ada-lang.c (xget_renaming_scope): Return std::string.
7031 (old_renaming_is_invisible): Update.
7032
ade72a34
TT
70332018-05-04 Tom Tromey <tom@tromey.com>
7034
7035 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7036 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7037
2be4d7f0
UW
70382018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7039
7040 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7041
69b6ecb0
TT
70422018-05-04 Tom Tromey <tom@tromey.com>
7043
7044 * remote.c (remote_query_supported_append): Change type.
7045 (remote_check_symbols): Update.
7046
bf27f0e2
PP
70472018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7048
7049 PR gdb/11420
7050 * configure.ac: Prepend libpython.
7051 * python/python-config.py: Likewise.
7052 * configure: Regenerate.
7053
4ea17de8
SM
70542018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7055
7056 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7057
bd732259
PA
70582018-05-03 Pedro Alves <palves@redhat.com>
7059
7060 * s390-linux-nat.c
7061 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7062 override. Write 'true' instead of '1'.
7063 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7064 declaration.
7065
d9f719f1
PA
70662018-05-02 Pedro Alves <palves@redhat.com>
7067
7068 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7069 add_inf_child_target.
7070 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7071 add_inf_child_target.
7072 * aix-thread.c (aix_thread_target_info): New.
7073 (aix_thread_target) <shortname, longname, doc>: Delete.
7074 <info>: New.
7075 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7076 add_inf_child_target.
7077 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7078 add_inf_child_target.
7079 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7080 add_inf_child_target.
7081 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7082 add_inf_child_target.
7083 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7084 add_inf_child_target.
7085 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7086 add_inf_child_target.
7087 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7088 add_inf_child_target.
7089 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7090 add_inf_child_target.
7091 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7092 add_inf_child_target.
7093 * bfd-target.c (target_bfd_target_info): New.
7094 (target_bfd) <shortname, longname, doc>: Delete.
7095 <info>: New.
7096 * bsd-kvm.c (bsd_kvm_target_info): New.
7097 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7098 <info>: New.
7099 (bsd_kvm_target::open): Rename to ...
7100 (bsd_kvm_target_open): ... this. Adjust.
7101 * bsd-uthread.c (bsd_uthread_target_info): New.
7102 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7103 <info>: New.
7104 * corefile.c (core_file_command): Adjust.
7105 * corelow.c (core_target_info): New.
7106 (core_target) <shortname, longname, doc>: Delete.
7107 <info>: New.
7108 (core_target::open): Rename to ...
7109 (core_target_open): ... this. Adjust.
7110 * ctf.c (ctf_target_info): New.
7111 (ctf_target) <shortname, longname, doc>: Delete.
7112 <info>: New.
7113 (ctf_target::open): Rename to ...
7114 (ctf_target_open): ... this.
7115 (_initialize_ctf): Adjust.
7116 * exec.c (exec_target_info): New.
7117 (exec_target) <shortname, longname, doc>: Delete.
7118 <info>: New.
7119 (exec_target::open): Rename to ...
7120 (exec_target_open): ... this.
7121 * gdbcore.h (core_target_open): Declare.
7122 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7123 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7124 add_inf_child_target.
7125 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7126 add_inf_child_target.
7127 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7128 add_inf_child_target.
7129 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7130 add_inf_child_target.
7131 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7132 add_inf_child_target.
7133 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7134 add_inf_child_target.
7135 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7136 add_inf_child_target.
7137 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7138 add_inf_child_target.
7139 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7140 add_inf_child_target.
7141 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7142 add_inf_child_target.
7143 * inf-child.c (inf_child_target_info): New.
7144 (inf_child_target::info): New.
7145 (inf_child_open_target): Remove 'target' parameter. Use
7146 get_native_target instead.
7147 (inf_child_target::open): Delete.
7148 (add_inf_child_target): New.
7149 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7150 Delete.
7151 <info>: New.
7152 (add_inf_child_target): Declare.
7153 (inf_child_open_target): Declare.
7154 * linux-thread-db.c (thread_db_target_info): New.
7155 (thread_db_target) <shortname, longname, doc>: Delete.
7156 <info>: New.
7157 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7158 add_inf_child_target.
7159 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7160 add_inf_child_target.
7161 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7162 add_inf_child_target.
7163 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7164 add_inf_child_target.
7165 * make-target-delegates (print_class): Adjust.
7166 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7167 add_inf_child_target.
7168 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7169 add_inf_child_target.
7170 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7171 add_inf_child_target.
7172 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7173 add_inf_child_target.
7174 * nto-procfs.c (nto_native_target_info): New.
7175 (nto_procfs_target_native) <shortname, longname, doc>:
7176 Delete.
7177 <info>: New.
7178 (nto_procfs_target_info): New.
7179 (nto_procfs_target_procfs) <shortname, longname, doc>:
7180 Delete.
7181 <info>: New.
7182 (init_procfs_targets): Adjust.
7183 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7184 add_inf_child_target.
7185 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7186 add_inf_child_target.
7187 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7188 add_inf_child_target.
7189 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7190 add_inf_child_target.
7191 * ravenscar-thread.c (ravenscar_target_info): New.
7192 (ravenscar_thread_target) <shortname, longname, doc>:
7193 Delete.
7194 <info>: New.
7195 * record-btrace.c (record_btrace_target_info):
7196 (record_btrace_target) <shortname, longname, doc>: Delete.
7197 <info>: New.
7198 (record_btrace_target::open): Rename to ...
7199 (record_btrace_target_open): ... this. Adjust.
7200 * record-full.c (record_longname, record_doc): New.
7201 (record_full_base_target) <shortname, longname, doc>: Delete.
7202 <info>: New.
7203 (record_full_target_info): New.
7204 (record_full_target): <shortname>: Delete.
7205 <info>: New.
7206 (record_full_core_open_1, record_full_open_1): Update comments.
7207 (record_full_base_target::open): Rename to ...
7208 (record_full_open): ... this.
7209 (cmd_record_full_restore): Update.
7210 (_initialize_record_full): Update.
7211 * remote-sim.c (remote_sim_target_info): New.
7212 (gdbsim_target) <shortname, longname, doc>: Delete.
7213 <info>: New.
7214 (gdbsim_target::open): Rename to ...
7215 (gdbsim_target_open): ... this.
7216 (_initialize_remote_sim): Adjust.
7217 * remote.c (remote_doc): New.
7218 (remote_target_info): New.
7219 (remote_target) <shortname, longname, doc>: Delete.
7220 <info>: New.
7221 (extended_remote_target_info): New.
7222 (extended_remote_target) <shortname, longname, doc>: Delete.
7223 <info>: New.
7224 (remote_target::open_1): Make static. Adjust.
7225 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7226 * s390-linux-nat.c (_initialize_s390_nat): Use
7227 add_inf_child_target.
7228 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7229 add_inf_child_target.
7230 * sol-thread.c (thread_db_target_info): New.
7231 (sol_thread_target) <shortname, longname, doc>: Delete.
7232 <info>: New.
7233 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7234 add_inf_child_target.
7235 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7236 add_inf_child_target.
7237 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7238 add_inf_child_target.
7239 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7240 add_inf_child_target.
7241 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7242 add_inf_child_target.
7243 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7244 add_inf_child_target.
7245 * spu-linux-nat.c (_initialize_spu_nat): Use
7246 add_inf_child_target.
7247 * spu-multiarch.c (spu_multiarch_target_info): New.
7248 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7249 <info>: New.
7250 * target-delegates.c: Regenerate.
7251 * target.c: Include <unordered_map>.
7252 (target_ops_p): Delete.
7253 (DEF_VEC_P(target_ops_p)): Delete.
7254 (target_factories): New.
7255 (test_target_info): New.
7256 (test_target_ops::info): New.
7257 (open_target): Adjust to use target_factories.
7258 (add_target_with_completer): Rename to ...
7259 (add_target): ... this. Change prototype. Register target_info
7260 and open callback in target_factories. Register target_info in
7261 command context instead of target_ops.
7262 (add_target): Delete old implementation.
7263 (add_deprecated_target_alias): Change prototype. Adjust.
7264 (the_native_target): New.
7265 (set_native_target, get_native_target): New.
7266 (find_default_run_target): Use the_native_target.
7267 (find_attach_target, find_run_target): Simplify.
7268 (target_ops::open): Delete.
7269 (dummy_target_info): New.
7270 (dummy_target::shortname, dummy_target::longname)
7271 (dummy_target::doc): Delete.
7272 (dummy_target::info): New.
7273 (debug_target::shortname, debug_target::longname)
7274 (debug_target::doc): Delete.
7275 (debug_target::info): New.
7276 * target.h (struct target_info): New.
7277 (target_ops::~target_ops): Add comment.
7278 (target_ops::info): New.
7279 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7280 longer virtual. Implement in terms of target_info.
7281 (set_native_target, get_native_target): Declare.
7282 (target_open_ftype): New.
7283 (add_target, add_target_with_completer)
7284 (add_deprecated_target_alias): Change prototype.
7285 (test_target) <shortname, longname, doc>: Delete.
7286 <info>: New.
7287 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7288 add_inf_child_target.
7289 * tracefile-tfile.c (tfile_target_info): New.
7290 (tfile_target) <shortname, longname, doc>: Delete.
7291 <info>: New.
7292 (tfile_target::open): Rename to ...
7293 (tfile_target_open): ... this.
7294 (_initialize_tracefile_tfile): Adjust.
7295 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7296 add_inf_child_target.
7297 * windows-nat.c (_initialize_windows_nat): Use
7298 add_inf_child_target.
7299 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7300 add_inf_child_target.
7301
135340af
PA
73022018-05-02 Pedro Alves <palves@redhat.com>
7303
7304 * linux-nat.h (linux_nat_target) <low_new_thread,
7305 low_delete_thread, low_new_fork, low_forget_process,
7306 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7307 New virtual methods.
7308 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7309 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7310 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7311 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7312 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7313 Delete.
7314 * linux-fork.c (delete_fork): Adjust to call low method.
7315 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7316 (linux_nat_new_fork, linux_nat_forget_process_hook)
7317 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7318 (linux_nat_status_is_event):
7319 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7320 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7321 to call low method.
7322 (sigtrap_is_event): Rename to ...
7323 (linux_nat_target::low_status_is_event): ... this.
7324 (linux_nat_set_status_is_event): Delete.
7325 (save_stop_reason, linux_nat_wait_1)
7326 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7327 low methods.
7328 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7329 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7330 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7331 (linux_nat_set_prepare_to_resume): Delete.
7332 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7333 low virtual methods.
7334 * amd64-linux-nat.c: Likewise.
7335 * arm-linux-nat.c: Likewise.
7336 * i386-linux-nat.c: Likewise.
7337 * ia64-linux-nat.c: Likewise.
7338 * mips-linux-nat.c: Likewise.
7339 * ppc-linux-nat.c: Likewise.
7340 * s390-linux-nat.c: Likewise.
7341 * sparc64-linux-nat.c: Likewise.
7342 * x86-linux-nat.c: Likewise.
7343 * x86-linux-nat.h: Include "nat/x86-linux.h".
7344 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7345 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7346 Override methods.
7347
57810aa7
PA
73482018-05-02 Pedro Alves <palves@redhat.com>
7349
7350 * target.h (target_ops)
7351 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7352 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7353 stopped_by_watchpoint, have_continuable_watchpoint,
7354 stopped_data_address, watchpoint_addr_within_range,
7355 can_accel_watchpoint_condition, can_run, thread_alive,
7356 has_all_memory, has_memory, has_stack, has_registers,
7357 has_execution, can_async_p, is_async_p, supports_non_stop,
7358 always_non_stop_p, can_execute_reverse, supports_multi_process,
7359 supports_enable_disable_tracepoint,
7360 supports_disable_randomization, supports_string_tracing,
7361 supports_evaluation_of_breakpoint_conditions,
7362 can_run_breakpoint_commands, filesystem_is_local,
7363 can_download_tracepoint, get_trace_state_variable_value,
7364 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7365 record_is_replaying, record_will_replay,
7366 augmented_libraries_svr4_read>: Adjust to return bool.
7367 * aarch64-linux-nat.c: All implementations adjusted.
7368 * aix-thread.c: All implementations adjusted.
7369 * arm-linux-nat.c: All implementations adjusted.
7370 * breakpoint.c: All implementations adjusted.
7371 * bsd-kvm.c: All implementations adjusted.
7372 * bsd-uthread.c: All implementations adjusted.
7373 * corelow.c: All implementations adjusted.
7374 * ctf.c: All implementations adjusted.
7375 * darwin-nat.c: All implementations adjusted.
7376 * darwin-nat.h: All implementations adjusted.
7377 * exec.c: All implementations adjusted.
7378 * fbsd-nat.c: All implementations adjusted.
7379 * fbsd-nat.h: All implementations adjusted.
7380 * gnu-nat.c: All implementations adjusted.
7381 * gnu-nat.h: All implementations adjusted.
7382 * go32-nat.c: All implementations adjusted.
7383 * ia64-linux-nat.c: All implementations adjusted.
7384 * inf-child.c: All implementations adjusted.
7385 * inf-child.h: All implementations adjusted.
7386 * inf-ptrace.c: All implementations adjusted.
7387 * inf-ptrace.h: All implementations adjusted.
7388 * linux-nat.c: All implementations adjusted.
7389 * linux-nat.h: All implementations adjusted.
7390 * mips-linux-nat.c: All implementations adjusted.
7391 * nto-procfs.c: All implementations adjusted.
7392 * ppc-linux-nat.c: All implementations adjusted.
7393 * procfs.c: All implementations adjusted.
7394 * ravenscar-thread.c: All implementations adjusted.
7395 * record-btrace.c: All implementations adjusted.
7396 * record-full.c: All implementations adjusted.
7397 * remote-sim.c: All implementations adjusted.
7398 * remote.c: All implementations adjusted.
7399 * s390-linux-nat.c: All implementations adjusted.
7400 * sol-thread.c: All implementations adjusted.
7401 * spu-multiarch.c: All implementations adjusted.
7402 * target-delegates.c: All implementations adjusted.
7403 * target.c: All implementations adjusted.
7404 * target.h: All implementations adjusted.
7405 * tracefile-tfile.c: All implementations adjusted.
7406 * tracefile.c: All implementations adjusted.
7407 * tracefile.h: All implementations adjusted.
7408 * windows-nat.c: All implementations adjusted.
7409 * x86-linux-nat.h: All implementations adjusted.
7410 * x86-nat.h: All implementations adjusted.
7411
ad6a4e2d
PA
74122018-05-02 Pedro Alves <palves@redhat.com>
7413
7414 * make-target-delegates (scan_target_h): Don't trim lines here.
7415 Replace sequences of tabs and/or whitespace with a single
7416 whitespace.
7417 (top level, parsing methods): Trim each line before processing it
7418 here.
7419
f6ac5f3d
PA
74202018-05-02 Pedro Alves <palves@redhat.com>
7421 John Baldwin <jhb@freebsd.org>
7422
7423 * target.h (enum strata) <debug_stratum>: New.
7424 (struct target_ops) <all delegation methods>: Replace by C++
7425 virtual methods, and drop "to_" prefix. All references updated
7426 throughout.
7427 <to_shortname, to_longname, to_doc, to_data,
7428 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7429 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7430 virtual methods. All references updated throughout.
7431 <can_attach, supports_terminal_ours, can_create_inferior,
7432 get_thread_control_capabilities, attach_no_wait>: New
7433 virtual methods.
7434 <insert_breakpoint, remove_breakpoint>: Now
7435 TARGET_DEFAULT_NORETURN methods.
7436 <info_proc>: Now returns bool.
7437 <to_magic>: Delete.
7438 (OPS_MAGIC): Delete.
7439 (current_target): Delete. All references replaced by references
7440 to ...
7441 (target_stack): ... this. New.
7442 (target_shortname, target_longname): Adjust.
7443 (target_can_run): Now a function declaration.
7444 (default_child_has_all_memory, default_child_has_memory)
7445 (default_child_has_stack, default_child_has_registers)
7446 (default_child_has_execution): Remove target_ops parameter.
7447 (complete_target_initialization): Delete.
7448 (memory_breakpoint_target): New template class.
7449 (test_target_ops): Refactor as a C++ class with virtual methods.
7450 * make-target-delegates (NAME_PART): Tighten.
7451 (POINTER_PART, CP_SYMBOL): New.
7452 (SIMPLE_RETURN_PART): Reimplement.
7453 (VEC_RETURN_PART): Expect less.
7454 (RETURN_PART, VIRTUAL_PART): New.
7455 (METHOD): Adjust to C++ virtual methods.
7456 (scan_target_h): Remove reference to C99.
7457 (dname): Output "target_ops::" prefix.
7458 (write_function_header): Adjust to output a C++ class method.
7459 (write_declaration): New.
7460 (write_delegator): Adjust to output a C++ class method.
7461 (tdname): Output "dummy_target::" prefix.
7462 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7463 method.
7464 (tdefault_names, debug_names): Delete.
7465 (return_types, tdefaults, styles, argtypes_array): New.
7466 (top level): All methods are delegators.
7467 (print_class): New.
7468 (top level): Print dummy_target and debug_target classes.
7469 * target-delegates.c: Regenerate.
7470 * target-debug.h (target_debug_print_enum_info_proc_what)
7471 (target_debug_print_thread_control_capabilities)
7472 (target_debug_print_thread_info_p): New.
7473 * target.c (dummy_target): Delete.
7474 (the_dummy_target, the_debug_target): New.
7475 (target_stack): Now extern.
7476 (set_targetdebug): Push/unpush debug target.
7477 (default_child_has_all_memory, default_child_has_memory)
7478 (default_child_has_stack, default_child_has_registers)
7479 (default_child_has_execution): Remove target_ops parameter.
7480 (complete_target_initialization): Delete.
7481 (add_target_with_completer): No longer call
7482 complete_target_initialization.
7483 (target_supports_terminal_ours): Use regular delegation.
7484 (update_current_target): Delete.
7485 (push_target): No longer check magic number. Don't call
7486 update_current_target.
7487 (unpush_target): Don't call update_current_target.
7488 (target_is_pushed): No longer check magic number.
7489 (target_require_runnable): Skip for all stratums over
7490 process_stratum.
7491 (target_ops::info_proc): New.
7492 (target_info_proc): Use find_target_at and
7493 find_default_run_target.
7494 (target_supports_disable_randomization): Use regular delegation.
7495 (target_get_osdata): Use find_target_at.
7496 (target_ops::open, target_ops::close, target_ops::can_attach)
7497 (target_ops::attach, target_ops::can_create_inferior)
7498 (target_ops::create_inferior, target_ops::can_run)
7499 (target_can_run): New.
7500 (default_fileio_target): Use regular delegation.
7501 (target_ops::fileio_open, target_ops::fileio_pwrite)
7502 (target_ops::fileio_pread, target_ops::fileio_fstat)
7503 (target_ops::fileio_close, target_ops::fileio_unlink)
7504 (target_ops::fileio_readlink): New.
7505 (target_fileio_open_1, target_fileio_unlink)
7506 (target_fileio_readlink): Always call the target method. Handle
7507 FILEIO_ENOSYS.
7508 (return_zero, return_zero_has_execution): Delete.
7509 (init_dummy_target): Delete.
7510 (dummy_target::dummy_target, dummy_target::shortname)
7511 (dummy_target::longname, dummy_target::doc)
7512 (debug_target::debug_target, debug_target::shortname)
7513 (debug_target::longname, debug_target::doc): New.
7514 (target_supports_delete_record): Use regular delegation.
7515 (setup_target_debug): Delete.
7516 (maintenance_print_target_stack): Skip debug_stratum.
7517 (initialize_targets): Instantiate the_dummy_target and
7518 the_debug_target.
7519 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7520 use target_stack.
7521 (target_auxv_search, fprint_target_auxv): Adjust.
7522 (info_auxv_command): Adjust to use target_stack.
7523 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7524 * exceptions.c (print_flush): Handle a NULL target_stack.
7525 * regcache.c (target_ops_no_register): Refactor as class with
7526 virtual methods.
7527
7528 * exec.c (exec_target): New class.
7529 (exec_ops): Now an exec_target.
7530 (exec_open, exec_close_1, exec_get_section_table)
7531 (exec_xfer_partial, exec_files_info, exec_has_memory)
7532 (exec_make_note_section): Refactor as exec_target methods.
7533 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7534 Delete.
7535 (exec_target::find_memory_regions): New.
7536 (_initialize_exec): Don't call init_exec_ops.
7537 * gdbcore.h (exec_file_clear): Delete.
7538
7539 * corefile.c (core_target): Delete.
7540 (core_file_command): Adjust.
7541 * corelow.c (core_target): New class.
7542 (the_core_target): New.
7543 (core_close): Remove target_ops parameter.
7544 (core_close_cleanup): Adjust.
7545 (core_target::close): New.
7546 (core_open, core_detach, get_core_registers, core_files_info)
7547 (core_xfer_partial, core_thread_alive, core_read_description)
7548 (core_pid_to_str, core_thread_name, core_has_memory)
7549 (core_has_stack, core_has_registers, core_info_proc): Rework as
7550 core_target methods.
7551 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7552 (_initialize_corelow): Initialize the_core_target.
7553 * gdbcore.h (core_target): Delete.
7554 (the_core_target): New.
7555
7556 * ctf.c: (ctf_target): New class.
7557 (ctf_ops): Now a ctf_target.
7558 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7559 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7560 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7561 methods.
7562 (init_ctf_ops): Delete.
7563 (_initialize_ctf): Don't call it.
7564 * tracefile-tfile.c (tfile_target): New class.
7565 (tfile_ops): Now a tfile_target.
7566 (tfile_open, tfile_close, tfile_files_info)
7567 (tfile_get_tracepoint_status, tfile_trace_find)
7568 (tfile_fetch_registers, tfile_xfer_partial)
7569 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7570 Refactor as tfile_target methods.
7571 (tfile_xfer_partial_features): Remove target_ops parameter.
7572 (init_tfile_ops): Delete.
7573 (_initialize_tracefile_tfile): Don't call it.
7574 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7575 (tracefile_has_stack, tracefile_has_registers)
7576 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7577 tracefile_target methods.
7578 (init_tracefile_ops): Delete.
7579 (tracefile_target::tracefile_target): New.
7580 * tracefile.h: Include "target.h".
7581 (tracefile_target): New class.
7582 (init_tracefile_ops): Delete.
7583
7584 * spu-multiarch.c (spu_multiarch_target): New class.
7585 (spu_ops): Now a spu_multiarch_target.
7586 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7587 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7588 (spu_search_memory, spu_mourn_inferior): Refactor as
7589 spu_multiarch_target methods.
7590 (init_spu_ops): Delete.
7591 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7592 complete_target_initialization.
7593
7594 * ravenscar-thread.c (ravenscar_thread_target): New class.
7595 (ravenscar_ops): Now a ravenscar_thread_target.
7596 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7597 (ravenscar_thread_alive, ravenscar_pid_to_str)
7598 (ravenscar_fetch_registers, ravenscar_store_registers)
7599 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7600 (ravenscar_stopped_by_hw_breakpoint)
7601 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7602 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7603 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7604 methods.
7605 (init_ravenscar_thread_ops): Delete.
7606 (_initialize_ravenscar): Remove references to
7607 init_ravenscar_thread_ops and complete_target_initialization.
7608
7609 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7610 (bsd_uthread_target): New class.
7611 (bsd_uthread_ops): Now a bsd_uthread_target.
7612 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7613 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7614 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7615 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7616 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7617 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7618 (bsd_uthread_target): Delete function.
7619 (_initialize_bsd_uthread): Remove reference to
7620 complete_target_initialization.
7621
7622 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7623 (target_bfd): ... this new class.
7624 (target_bfd_xfer_partial, target_bfd_get_section_table)
7625 (target_bfd_close): Refactor as target_bfd methods.
7626 (target_bfd::~target_bfd): New.
7627 (target_bfd_reopen): Adjust.
7628 (target_bfd::close): New.
7629
7630 * record-btrace.c (record_btrace_target): New class.
7631 (record_btrace_ops): Now a record_btrace_target.
7632 (record_btrace_open, record_btrace_stop_recording)
7633 (record_btrace_disconnect, record_btrace_close)
7634 (record_btrace_async, record_btrace_info)
7635 (record_btrace_insn_history, record_btrace_insn_history_range)
7636 (record_btrace_insn_history_from, record_btrace_call_history)
7637 (record_btrace_call_history_range)
7638 (record_btrace_call_history_from, record_btrace_record_method)
7639 (record_btrace_is_replaying, record_btrace_will_replay)
7640 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7641 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7642 (record_btrace_store_registers, record_btrace_prepare_to_store)
7643 (record_btrace_to_get_unwinder)
7644 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7645 (record_btrace_commit_resume, record_btrace_wait)
7646 (record_btrace_stop, record_btrace_can_execute_reverse)
7647 (record_btrace_stopped_by_sw_breakpoint)
7648 (record_btrace_supports_stopped_by_sw_breakpoint)
7649 (record_btrace_stopped_by_hw_breakpoint)
7650 (record_btrace_supports_stopped_by_hw_breakpoint)
7651 (record_btrace_update_thread_list, record_btrace_thread_alive)
7652 (record_btrace_goto_begin, record_btrace_goto_end)
7653 (record_btrace_goto, record_btrace_stop_replaying_all)
7654 (record_btrace_execution_direction)
7655 (record_btrace_prepare_to_generate_core)
7656 (record_btrace_done_generating_core): Refactor as
7657 record_btrace_target methods.
7658 (init_record_btrace_ops): Delete.
7659 (_initialize_record_btrace): Remove reference to
7660 init_record_btrace_ops.
7661 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7662 the execution_direction global.
7663 (record_full_base_target, record_full_target)
7664 (record_full_core_target): New classes.
7665 (record_full_ops): Now a record_full_target.
7666 (record_full_core_ops): Now a record_full_core_target.
7667 (record_full_target::detach, record_full_target::disconnect)
7668 (record_full_core_target::disconnect)
7669 (record_full_target::mourn_inferior, record_full_target::kill):
7670 New.
7671 (record_full_open, record_full_close, record_full_async): Refactor
7672 as methods of the record_full_base_target class.
7673 (record_full_resume, record_full_commit_resume): Refactor
7674 as methods of the record_full_target class.
7675 (record_full_wait, record_full_stopped_by_watchpoint)
7676 (record_full_stopped_data_address)
7677 (record_full_stopped_by_sw_breakpoint)
7678 (record_full_supports_stopped_by_sw_breakpoint)
7679 (record_full_stopped_by_hw_breakpoint)
7680 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7681 methods of the record_full_base_target class.
7682 (record_full_store_registers, record_full_xfer_partial)
7683 (record_full_insert_breakpoint, record_full_remove_breakpoint):
7684 Refactor as methods of the record_full_target class.
7685 (record_full_can_execute_reverse, record_full_get_bookmark)
7686 (record_full_goto_bookmark, record_full_execution_direction)
7687 (record_full_record_method, record_full_info, record_full_delete)
7688 (record_full_is_replaying, record_full_will_replay)
7689 (record_full_goto_begin, record_full_goto_end, record_full_goto)
7690 (record_full_stop_replaying): Refactor as methods of the
7691 record_full_base_target class.
7692 (record_full_core_resume, record_full_core_kill)
7693 (record_full_core_fetch_registers)
7694 (record_full_core_prepare_to_store)
7695 (record_full_core_store_registers, record_full_core_xfer_partial)
7696 (record_full_core_insert_breakpoint)
7697 (record_full_core_remove_breakpoint)
7698 (record_full_core_has_execution): Refactor
7699 as methods of the record_full_core_target class.
7700 (record_full_base_target::supports_delete_record): New.
7701 (init_record_full_ops): Delete.
7702 (init_record_full_core_ops): Delete.
7703 (record_full_save): Refactor as method of the
7704 record_full_base_target class.
7705 (_initialize_record_full): Remove references to
7706 init_record_full_ops and init_record_full_core_ops.
7707
7708 * remote.c (remote_target, extended_remote_target): New classes.
7709 (remote_ops): Now a remote_target.
7710 (extended_remote_ops): Now an extended_remote_target.
7711 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7712 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7713 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7714 (remote_pass_signals, remote_set_syscall_catchpoint)
7715 (remote_program_signals, )
7716 (remote_thread_always_alive): Remove target_ops parameter.
7717 (remote_thread_alive, remote_thread_name)
7718 (remote_update_thread_list, remote_threads_extra_info)
7719 (remote_static_tracepoint_marker_at)
7720 (remote_static_tracepoint_markers_by_strid)
7721 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7722 (remote_open): Refactor as methods of remote_target.
7723 (extended_remote_open, extended_remote_detach)
7724 (extended_remote_attach, extended_remote_post_attach):
7725 (extended_remote_supports_disable_randomization)
7726 (extended_remote_create_inferior): : Refactor as method of
7727 extended_remote_target.
7728 (remote_set_permissions, remote_open_1, remote_detach)
7729 (remote_follow_fork, remote_follow_exec, remote_disconnect)
7730 (remote_resume, remote_commit_resume, remote_stop)
7731 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7732 (remote_terminal_ours, remote_wait, remote_fetch_registers)
7733 (remote_prepare_to_store, remote_store_registers)
7734 (remote_flash_erase, remote_flash_done, remote_files_info)
7735 (remote_kill, remote_mourn, remote_insert_breakpoint)
7736 (remote_remove_breakpoint, remote_insert_watchpoint)
7737 (remote_watchpoint_addr_within_range)
7738 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7739 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7740 (remote_supports_stopped_by_sw_breakpoint)
7741 (remote_stopped_by_hw_breakpoint)
7742 (remote_supports_stopped_by_hw_breakpoint)
7743 (remote_stopped_by_watchpoint, remote_stopped_data_address)
7744 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7745 (remote_verify_memory): Refactor as methods of remote_target.
7746 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7747 parameter.
7748 (remote_xfer_partial, remote_get_memory_xfer_limit)
7749 (remote_search_memory, remote_rcmd, remote_memory_map)
7750 (remote_pid_to_str, remote_get_thread_local_address)
7751 (remote_get_tib_address, remote_read_description): Refactor as
7752 methods of remote_target.
7753 (remote_target::fileio_open, remote_target::fileio_pwrite)
7754 (remote_target::fileio_pread, remote_target::fileio_close): New.
7755 (remote_hostio_readlink, remote_hostio_fstat)
7756 (remote_filesystem_is_local, remote_can_execute_reverse)
7757 (remote_supports_non_stop, remote_supports_disable_randomization)
7758 (remote_supports_multi_process, remote_supports_cond_breakpoints)
7759 (remote_supports_enable_disable_tracepoint)
7760 (remote_supports_string_tracing)
7761 (remote_can_run_breakpoint_commands, remote_trace_init)
7762 (remote_download_tracepoint, remote_can_download_tracepoint)
7763 (remote_download_trace_state_variable, remote_enable_tracepoint)
7764 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7765 (remote_trace_start, remote_get_trace_status)
7766 (remote_get_tracepoint_status, remote_trace_stop)
7767 (remote_trace_find, remote_get_trace_state_variable_value)
7768 (remote_save_trace_data, remote_get_raw_trace_data)
7769 (remote_set_disconnected_tracing, remote_core_of_thread)
7770 (remote_set_circular_trace_buffer, remote_traceframe_info)
7771 (remote_get_min_fast_tracepoint_insn_len)
7772 (remote_set_trace_buffer_size, remote_set_trace_notes)
7773 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7774 (remote_disable_btrace, remote_teardown_btrace)
7775 (remote_read_btrace, remote_btrace_conf)
7776 (remote_augmented_libraries_svr4_read, remote_load)
7777 (remote_pid_to_exec_file, remote_can_do_single_step)
7778 (remote_execution_direction, remote_thread_handle_to_thread_info):
7779 Refactor as methods of remote_target.
7780 (init_remote_ops, init_extended_remote_ops): Delete.
7781 (remote_can_async_p, remote_is_async_p, remote_async)
7782 (remote_thread_events, remote_upload_tracepoints)
7783 (remote_upload_trace_state_variables): Refactor as methods of
7784 remote_target.
7785 (_initialize_remote): Remove references to init_remote_ops and
7786 init_extended_remote_ops.
7787
7788 * remote-sim.c (gdbsim_target): New class.
7789 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7790 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7791 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7792 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7793 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7794 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7795 Refactor as methods of gdbsim_target.
7796 (gdbsim_ops): Now a gdbsim_target.
7797 (init_gdbsim_ops): Delete.
7798 (gdbsim_cntrl_c): Adjust.
7799 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7800
7801 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7802 (the_amd64_linux_nat_target): New.
7803 (amd64_linux_fetch_inferior_registers)
7804 (amd64_linux_store_inferior_registers): Refactor as methods of
7805 amd64_linux_nat_target.
7806 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7807 * i386-linux-nat.c: Don't include "linux-nat.h".
7808 (i386_linux_nat_target): New class.
7809 (the_i386_linux_nat_target): New.
7810 (i386_linux_fetch_inferior_registers)
7811 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7812 as methods of i386_linux_nat_target.
7813 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7814 * inf-child.c (inf_child_ops): Delete.
7815 (inf_child_fetch_inferior_registers)
7816 (inf_child_store_inferior_registers): Delete.
7817 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7818 methods of inf_child_target.
7819 (inf_child_target::supports_terminal_ours)
7820 (inf_child_target::terminal_init)
7821 (inf_child_target::terminal_inferior)
7822 (inf_child_target::terminal_ours_for_output)
7823 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7824 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7825 New.
7826 (inf_child_open, inf_child_disconnect, inf_child_close)
7827 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7828 (inf_child_post_startup_inferior, inf_child_can_run)
7829 (inf_child_pid_to_exec_file): Refactor as methods of
7830 inf_child_target.
7831 (inf_child_follow_fork): Delete.
7832 (inf_child_target::can_create_inferior)
7833 (inf_child_target::can_attach): New.
7834 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7835 (inf_child_target::has_stack, inf_child_target::has_registers)
7836 (inf_child_target::has_execution): New.
7837 (inf_child_fileio_open, inf_child_fileio_pwrite)
7838 (inf_child_fileio_pread, inf_child_fileio_fstat)
7839 (inf_child_fileio_close, inf_child_fileio_unlink)
7840 (inf_child_fileio_readlink, inf_child_use_agent)
7841 (inf_child_can_use_agent): Refactor as methods of
7842 inf_child_target.
7843 (return_zero, inf_child_target): Delete.
7844 (inf_child_target::inf_child_target): New.
7845 * inf-child.h: Include "target.h".
7846 (inf_child_target): Delete function prototype.
7847 (inf_child_target): New class.
7848 (inf_child_open_target, inf_child_mourn_inferior)
7849 (inf_child_maybe_unpush_target): Delete.
7850 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7851 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7852 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7853 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7854 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7855 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7856 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7857 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7858 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7859 methods of inf_ptrace_target.
7860 (inf_ptrace_target): Delete function.
7861 * inf-ptrace.h: Include "inf-child.h".
7862 (inf_ptrace_target): Delete function declaration.
7863 (inf_ptrace_target): New class.
7864 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7865 * linux-nat.c (linux_target): New.
7866 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7867 (linux_nat_target::~linux_nat_target): New.
7868 (linux_child_post_attach, linux_child_post_startup_inferior)
7869 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7870 (linux_child_remove_fork_catchpoint)
7871 (linux_child_insert_vfork_catchpoint)
7872 (linux_child_remove_vfork_catchpoint)
7873 (linux_child_insert_exec_catchpoint)
7874 (linux_child_remove_exec_catchpoint)
7875 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7876 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7877 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7878 (linux_nat_stopped_data_address)
7879 (linux_nat_stopped_by_sw_breakpoint)
7880 (linux_nat_supports_stopped_by_sw_breakpoint)
7881 (linux_nat_stopped_by_hw_breakpoint)
7882 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7883 (linux_nat_kill, linux_nat_mourn_inferior)
7884 (linux_nat_xfer_partial, linux_nat_thread_alive)
7885 (linux_nat_update_thread_list, linux_nat_pid_to_str)
7886 (linux_nat_thread_name, linux_child_pid_to_exec_file)
7887 (linux_child_static_tracepoint_markers_by_strid)
7888 (linux_nat_is_async_p, linux_nat_can_async_p)
7889 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7890 (linux_nat_supports_multi_process)
7891 (linux_nat_supports_disable_randomization, linux_nat_async)
7892 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
7893 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
7894 (linux_nat_fileio_open, linux_nat_fileio_readlink)
7895 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
7896 methods of linux_nat_target.
7897 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
7898 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
7899 parameter.
7900 (check_stopped_by_watchpoint): Adjust.
7901 (linux_xfer_partial): Delete.
7902 (linux_target_install_ops, linux_target, linux_nat_add_target):
7903 Delete.
7904 (linux_nat_target::linux_nat_target): New.
7905 * linux-nat.h: Include "inf-ptrace.h".
7906 (linux_nat_target): New.
7907 (linux_target, linux_target_install_ops, linux_nat_add_target):
7908 Delete function declarations.
7909 (linux_target): Declare global.
7910 * linux-thread-db.c (thread_db_target): New.
7911 (thread_db_target::thread_db_target): New.
7912 (thread_db_ops): Delete.
7913 (the_thread_db_target): New.
7914 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
7915 (thread_db_update_thread_list, thread_db_pid_to_str)
7916 (thread_db_extra_thread_info)
7917 (thread_db_thread_handle_to_thread_info)
7918 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
7919 (thread_db_resume): Refactor as methods of thread_db_target.
7920 (init_thread_db_ops): Delete.
7921 (_initialize_thread_db): Remove reference to init_thread_db_ops.
7922 * x86-linux-nat.c: Don't include "linux-nat.h".
7923 (super_post_startup_inferior): Delete.
7924 (x86_linux_nat_target::~x86_linux_nat_target): New.
7925 (x86_linux_child_post_startup_inferior)
7926 (x86_linux_read_description, x86_linux_enable_btrace)
7927 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
7928 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
7929 methods of x86_linux_nat_target.
7930 (x86_linux_create_target): Delete. Bits folded ...
7931 (x86_linux_add_target): ... here. Now takes a linux_nat_target
7932 pointer.
7933 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
7934 (x86_linux_nat_target): New class.
7935 (x86_linux_create_target): Delete.
7936 (x86_linux_add_target): Now takes a linux_nat_target pointer.
7937 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
7938 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
7939 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
7940 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
7941 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
7942 make extern.
7943 (x86_use_watchpoints): Delete.
7944 * x86-nat.h: Include "breakpoint.h" and "target.h".
7945 (x86_use_watchpoints): Delete.
7946 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
7947 (x86_stopped_by_watchpoint, x86_stopped_data_address)
7948 (x86_insert_watchpoint, x86_remove_watchpoint)
7949 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
7950 (x86_stopped_by_hw_breakpoint): New declarations.
7951 (x86_nat_target): New template class.
7952
7953 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
7954 (the_ppc_linux_nat_target): New.
7955 (ppc_linux_fetch_inferior_registers)
7956 (ppc_linux_can_use_hw_breakpoint)
7957 (ppc_linux_region_ok_for_hw_watchpoint)
7958 (ppc_linux_ranged_break_num_registers)
7959 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
7960 (ppc_linux_insert_mask_watchpoint)
7961 (ppc_linux_remove_mask_watchpoint)
7962 (ppc_linux_can_accel_watchpoint_condition)
7963 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
7964 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
7965 (ppc_linux_watchpoint_addr_within_range)
7966 (ppc_linux_masked_watch_num_registers)
7967 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
7968 (ppc_linux_read_description): Refactor as methods of
7969 ppc_linux_nat_target.
7970 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
7971
7972 * procfs.c (procfs_xfer_partial): Delete forward declaration.
7973 (procfs_target): New class.
7974 (the_procfs_target): New.
7975 (procfs_target): Delete function.
7976 (procfs_auxv_parse, procfs_attach, procfs_detach)
7977 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
7978 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
7979 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
7980 (procfs_create_inferior, procfs_update_thread_list)
7981 (procfs_thread_alive, procfs_pid_to_str)
7982 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
7983 (procfs_stopped_data_address, procfs_insert_watchpoint)
7984 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
7985 (proc_find_memory_regions, procfs_info_proc)
7986 (procfs_make_note_section): Refactor as methods of procfs_target.
7987 (_initialize_procfs): Adjust.
7988 * sol-thread.c (sol_thread_target): New class.
7989 (sol_thread_ops): Now a sol_thread_target.
7990 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
7991 (sol_thread_fetch_registers, sol_thread_store_registers)
7992 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
7993 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
7994 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
7995 (init_sol_thread_ops): Delete.
7996 (_initialize_sol_thread): Adjust. Remove references to
7997 init_sol_thread_ops and complete_target_initialization.
7998
7999 * windows-nat.c (windows_nat_target): New class.
8000 (windows_fetch_inferior_registers)
8001 (windows_store_inferior_registers, windows_resume, windows_wait)
8002 (windows_attach, windows_detach, windows_pid_to_exec_file)
8003 (windows_files_info, windows_create_inferior)
8004 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8005 (windows_close, windows_pid_to_str, windows_xfer_partial)
8006 (windows_get_tib_address, windows_get_ada_task_ptid)
8007 (windows_thread_name, windows_thread_alive): Refactor as
8008 windows_nat_target methods.
8009 (do_initial_windows_stuff): Adjust.
8010 (windows_target): Delete function.
8011 (_initialize_windows_nat): Adjust.
8012
8013 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8014 (darwin_mourn_inferior, darwin_kill_inferior)
8015 (darwin_create_inferior, darwin_attach, darwin_detach)
8016 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8017 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8018 (darwin_supports_multi_process): Refactor as darwin_nat_target
8019 methods.
8020 (darwin_resume_to, darwin_files_info): Delete.
8021 (_initialize_darwin_inferior): Rename to ...
8022 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8023 * darwin-nat.h: Include "inf-child.h".
8024 (darwin_nat_target): New class.
8025 (darwin_complete_target): Delete.
8026 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8027 (darwin_target): New.
8028 (i386_darwin_fetch_inferior_registers)
8029 (i386_darwin_store_inferior_registers): Refactor as methods of
8030 darwin_nat_target.
8031 (darwin_complete_target): Delete, with ...
8032 (_initialize_i386_darwin_nat): ... bits factored out here.
8033
8034 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8035 (the_alpha_linux_nat_target): New.
8036 (alpha_linux_register_u_offset): Refactor as
8037 alpha_linux_nat_target method.
8038 (_initialize_alpha_linux_nat): Adjust.
8039 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8040 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8041 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8042 methods of linux_nat_trad_target.
8043 (linux_trad_target): Delete.
8044 * linux-nat-trad.h (linux_trad_target): Delete function.
8045 (linux_nat_trad_target): New class.
8046 * mips-linux-nat.c (mips_linux_nat_target): New class.
8047 (super_fetch_registers, super_store_registers, super_close):
8048 Delete.
8049 (the_mips_linux_nat_target): New.
8050 (mips64_linux_regsets_fetch_registers)
8051 (mips64_linux_regsets_store_registers)
8052 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8053 (mips_linux_register_u_offset, mips_linux_read_description)
8054 (mips_linux_can_use_hw_breakpoint)
8055 (mips_linux_stopped_by_watchpoint)
8056 (mips_linux_stopped_data_address)
8057 (mips_linux_region_ok_for_hw_watchpoint)
8058 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8059 (mips_linux_close): Refactor as methods of mips_linux_nat.
8060 (_initialize_mips_linux_nat): Adjust to C++ification.
8061
8062 * aix-thread.c (aix_thread_target): New class.
8063 (aix_thread_ops): Now an aix_thread_target.
8064 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8065 (aix_thread_fetch_registers, aix_thread_store_registers)
8066 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8067 (aix_thread_thread_alive, aix_thread_pid_to_str)
8068 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8069 Refactor as methods of aix_thread_target.
8070 (init_aix_thread_ops): Delete.
8071 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8072 and complete_target_initialization.
8073 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8074 (rs6000_nat_target): New class.
8075 (the_rs6000_nat_target): New.
8076 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8077 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8078 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8079 (super_create_inferior): Delete.
8080 (_initialize_rs6000_nat): Adjust to C++ification.
8081
8082 * arm-linux-nat.c (arm_linux_nat_target): New class.
8083 (the_arm_linux_nat_target): New.
8084 (arm_linux_fetch_inferior_registers)
8085 (arm_linux_store_inferior_registers, arm_linux_read_description)
8086 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8087 (arm_linux_remove_hw_breakpoint)
8088 (arm_linux_region_ok_for_hw_watchpoint)
8089 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8090 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8091 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8092 arm_linux_nat_target.
8093 (_initialize_arm_linux_nat): Adjust to C++ification.
8094
8095 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8096 (the_aarch64_linux_nat_target): New.
8097 (aarch64_linux_fetch_inferior_registers)
8098 (aarch64_linux_store_inferior_registers)
8099 (aarch64_linux_child_post_startup_inferior)
8100 (aarch64_linux_read_description)
8101 (aarch64_linux_can_use_hw_breakpoint)
8102 (aarch64_linux_insert_hw_breakpoint)
8103 (aarch64_linux_remove_hw_breakpoint)
8104 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8105 (aarch64_linux_region_ok_for_hw_watchpoint)
8106 (aarch64_linux_stopped_data_address)
8107 (aarch64_linux_stopped_by_watchpoint)
8108 (aarch64_linux_watchpoint_addr_within_range)
8109 (aarch64_linux_can_do_single_step): Refactor as methods of
8110 aarch64_linux_nat_target.
8111 (super_post_startup_inferior): Delete.
8112 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8113
8114 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8115 (the_hppa_linux_nat_target): New.
8116 (hppa_linux_fetch_inferior_registers)
8117 (hppa_linux_store_inferior_registers): Refactor as methods of
8118 hppa_linux_nat_target.
8119 (_initialize_hppa_linux_nat): Adjust to C++ification.
8120
8121 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8122 (the_ia64_linux_nat_target): New.
8123 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8124 (ia64_linux_stopped_data_address)
8125 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8126 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8127 ia64_linux_nat_target methods.
8128 (super_xfer_partial): Delete.
8129 (_initialize_ia64_linux_nat): Adjust to C++ification.
8130
8131 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8132 (the_m32r_linux_nat_target): New.
8133 (m32r_linux_fetch_inferior_registers)
8134 (m32r_linux_store_inferior_registers): Refactor as
8135 m32r_linux_nat_target methods.
8136 (_initialize_m32r_linux_nat): Adjust to C++ification.
8137
8138 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8139 (the_m68k_linux_nat_target): New.
8140 (m68k_linux_fetch_inferior_registers)
8141 (m68k_linux_store_inferior_registers): Refactor as
8142 m68k_linux_nat_target methods.
8143 (_initialize_m68k_linux_nat): Adjust to C++ification.
8144
8145 * s390-linux-nat.c (s390_linux_nat_target): New class.
8146 (the_s390_linux_nat_target): New.
8147 (s390_linux_fetch_inferior_registers)
8148 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8149 (s390_insert_watchpoint, s390_remove_watchpoint)
8150 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8151 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8152 (s390_auxv_parse, s390_read_description): Refactor as methods of
8153 s390_linux_nat_target.
8154 (_initialize_s390_nat): Adjust to C++ification.
8155
8156 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8157 (the_sparc_linux_nat_target): New.
8158 (_initialize_sparc_linux_nat): Adjust to C++ification.
8159 * sparc-nat.c (sparc_fetch_inferior_registers)
8160 (sparc_store_inferior_registers): Remove target_ops parameter.
8161 * sparc-nat.h (sparc_fetch_inferior_registers)
8162 (sparc_store_inferior_registers): Remove target_ops parameter.
8163 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8164 (the_sparc64_linux_nat_target): New.
8165 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8166
8167 * spu-linux-nat.c (spu_linux_nat_target): New class.
8168 (the_spu_linux_nat_target): New.
8169 (spu_child_post_startup_inferior, spu_child_post_attach)
8170 (spu_child_wait, spu_fetch_inferior_registers)
8171 (spu_store_inferior_registers, spu_xfer_partial)
8172 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8173 methods.
8174 (_initialize_spu_nat): Adjust to C++ification.
8175
8176 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8177 (the_tilegx_linux_nat_target): New.
8178 (fetch_inferior_registers, store_inferior_registers):
8179 Refactor as methods.
8180 (_initialize_tile_linux_nat): Adjust to C++ification.
8181
8182 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8183 (the_xtensa_linux_nat_target): New.
8184 (xtensa_linux_fetch_inferior_registers)
8185 (xtensa_linux_store_inferior_registers): Refactor as
8186 xtensa_linux_nat_target methods.
8187 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8188
8189 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8190 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8191 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8192 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8193 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8194 (fbsd_stopped_by_sw_breakpoint)
8195 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8196 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8197 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8198 (fbsd_post_startup_inferior, fbsd_post_attach)
8199 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8200 (fbsd_set_syscall_catchpoint)
8201 (super_xfer_partial, super_resume, super_wait)
8202 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8203 (fbsd_handle_debug_trap): Remove target_ops parameter.
8204 (fbsd_nat_add_target): Delete.
8205 * fbsd-nat.h: Include "inf-ptrace.h".
8206 (fbsd_nat_add_target): Delete.
8207 (USE_SIGTRAP_SIGINFO): Define.
8208 (fbsd_nat_target): New class.
8209
8210 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8211 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8212 (amd64bsd_target): Delete.
8213 * amd64-bsd-nat.h: New file.
8214 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8215 "x86-bsd-nat.h".
8216 (amd64_fbsd_nat_target): New class.
8217 (the_amd64_fbsd_nat_target): New.
8218 (amd64fbsd_read_description): Refactor as method of
8219 amd64_fbsd_nat_target.
8220 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8221 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8222 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8223 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8224 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8225 (i386bsd_target): Delete.
8226 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8227 (i386bsd_fetch_inferior_registers)
8228 (i386bsd_store_inferior_registers): Declare.
8229 (i386_bsd_nat_target): New class.
8230 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8231 (the_i386_fbsd_nat_target): New.
8232 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8233 i386_fbsd_nat_target methods.
8234 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8235 (_initialize_i386fbsd_nat): Adjust to C++ification.
8236 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8237 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8238 (_initialize_x86_bsd_nat): Adjust to C++ification.
8239 * x86-bsd-nat.h: Include "x86-nat.h".
8240 (x86bsd_target): Delete declaration.
8241 (x86bsd_nat_target): New class.
8242
8243 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8244 (the_aarch64_fbsd_nat_target): New.
8245 (aarch64_fbsd_fetch_inferior_registers)
8246 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8247 aarch64_fbsd_nat_target.
8248 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8249 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8250 (the_alpha_bsd_nat_target): New.
8251 (alphabsd_fetch_inferior_registers)
8252 (alphabsd_store_inferior_registers): Refactor as
8253 alpha_bsd_nat_target methods.
8254 (_initialize_alphabsd_nat): Refactor as methods of
8255 alpha_bsd_nat_target.
8256 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8257 (the_amd64_nbsd_nat_target): New.
8258 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8259 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8260 (the_amd64_obsd_nat_target): New.
8261 (_initialize_amd64obsd_nat): Adjust to C++ification.
8262 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8263 (the_arm_fbsd_nat_target): New.
8264 (arm_fbsd_fetch_inferior_registers)
8265 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8266 (_initialize_arm_fbsd_nat): Refactor as methods of
8267 arm_fbsd_nat_target.
8268 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8269 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8270 (the_arm_netbsd_nat_target): New.
8271 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8272 arm_netbsd_nat_target.
8273 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8274 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8275 (the_hppa_nbsd_nat_target): New.
8276 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8277 hppa_nbsd_nat_target methods.
8278 (_initialize_hppanbsd_nat): Adjust to C++ification.
8279 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8280 (the_hppa_obsd_nat_target): New.
8281 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8282 methods of hppa_obsd_nat_target.
8283 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8284 add_target.
8285 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8286 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8287 add_target.
8288 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8289 (_initialize_i386obsd_nat): Use add_target.
8290 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8291 (the_m68k_bsd_nat_target): New.
8292 (m68kbsd_fetch_inferior_registers)
8293 (m68kbsd_store_inferior_registers): Refactor as methods of
8294 m68k_bsd_nat_target.
8295 (_initialize_m68kbsd_nat): Adjust to C++ification.
8296 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8297 (the_mips_fbsd_nat_target): New.
8298 (mips_fbsd_fetch_inferior_registers)
8299 (mips_fbsd_store_inferior_registers): Refactor as methods of
8300 mips_fbsd_nat_target.
8301 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8302 add_target.
8303 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8304 (the_mips_nbsd_nat_target): New.
8305 (mipsnbsd_fetch_inferior_registers)
8306 (mipsnbsd_store_inferior_registers): Refactor as methods of
8307 mips_nbsd_nat_target.
8308 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8309 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8310 (the_mips64_obsd_nat_target): New.
8311 (mips64obsd_fetch_inferior_registers)
8312 (mips64obsd_store_inferior_registers): Refactor as methods of
8313 mips64_obsd_nat_target.
8314 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8315 add_target.
8316 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8317 nbsd_nat_target.
8318 * nbsd-nat.h: Include "inf-ptrace.h".
8319 (nbsd_nat_target): New class.
8320 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8321 (obsd_wait): Refactor as methods of obsd_nat_target.
8322 (obsd_add_target): Delete.
8323 * obsd-nat.h: Include "inf-ptrace.h".
8324 (obsd_nat_target): New class.
8325 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8326 (the_ppc_fbsd_nat_target): New.
8327 (ppcfbsd_fetch_inferior_registers)
8328 (ppcfbsd_store_inferior_registers): Refactor as methods of
8329 ppc_fbsd_nat_target.
8330 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8331 add_target.
8332 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8333 (the_ppc_nbsd_nat_target): New.
8334 (ppcnbsd_fetch_inferior_registers)
8335 (ppcnbsd_store_inferior_registers): Refactor as methods of
8336 ppc_nbsd_nat_target.
8337 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8338 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8339 (the_ppc_obsd_nat_target): New.
8340 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8341 methods of ppc_obsd_nat_target.
8342 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8343 add_target.
8344 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8345 (the_sh_nbsd_nat_target): New.
8346 (shnbsd_fetch_inferior_registers)
8347 (shnbsd_store_inferior_registers): Refactor as methods of
8348 sh_nbsd_nat_target.
8349 (_initialize_shnbsd_nat): Adjust to C++ification.
8350 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8351 (inf_ptrace_xfer_partial): Delete.
8352 (sparc_xfer_partial, sparc_target): Delete.
8353 * sparc-nat.h (sparc_fetch_inferior_registers)
8354 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8355 (sparc_target): Delete function declaration.
8356 (sparc_target): New template class.
8357 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8358 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8359 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8360 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8361 add_target.
8362 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8363 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8364 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8365 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8366 add_target.
8367 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8368 (the_vax_bsd_nat_target): New.
8369 (vaxbsd_fetch_inferior_registers)
8370 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8371 methods.
8372 (_initialize_vaxbsd_nat): Adjust to C++ification.
8373
8374 * bsd-kvm.c (bsd_kvm_target): New class.
8375 (bsd_kvm_ops): Now a bsd_kvm_target.
8376 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8377 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8378 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8379 bsd_kvm_target.
8380 (bsd_kvm_return_one): Delete.
8381 (bsd_kvm_add_target): Adjust to C++ification.
8382
8383 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8384 (nto_procfs_target_procfs): New classes.
8385 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8386 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8387 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8388 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8389 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8390 (procfs_remove_hw_breakpoint, procfs_resume)
8391 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8392 (procfs_kill_inferior, procfs_store_registers)
8393 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8394 as methods of nto_procfs_target.
8395 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8396 (nto_native_ops): Delete.
8397 (procfs_open, procfs_native_open): Delete.
8398 (nto_native_ops): Now an nto_procfs_target_native.
8399 (init_procfs_targets): Adjust to C++ification.
8400 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8401 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8402 Refactor as methods of nto_procfs_target.
8403
8404 * go32-nat.c (go32_nat_target): New class.
8405 (the_go32_nat_target): New.
8406 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8407 (go32_store_registers, go32_xfer_partial, go32_files_info)
8408 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8409 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8410 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8411 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8412 (go32_target): Delete.
8413 (_initialize_go32_nat): Adjust to C++ification.
8414
8415 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8416 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8417 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8418 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8419 gnu_nat_target.
8420 (gnu_target): Delete.
8421 * gnu-nat.h (gnu_target): Delete.
8422 (gnu_nat_target): New class.
8423 * i386-gnu-nat.c (gnu_base_target): New.
8424 (i386_gnu_nat_target): New class.
8425 (the_i386_gnu_nat_target): New.
8426 (_initialize_i386gnu_nat): Adjust to C++ification.
8427
3fffc070
PA
84282018-05-02 Pedro Alves <palves@redhat.com>
8429
8430 * bfd-target.c (target_bfd_xclose): Rename to ...
8431 (target_bfd_close): ... this.
8432 (target_bfd_reopen): Adjust.
8433 * target.c (target_close): Remove references to to_xclose.
8434 * target.h (target_ops::to_xclose): Delete.
8435 (target_ops::to_close): Update comments.
8436
6798487f
PA
84372018-05-02 Pedro Alves <palves@redhat.com>
8438
8439 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8440 "linux-nat.h".
8441 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8442 * inf-ptrace.c (inf_ptrace_register_u_offset)
8443 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8444 (inf_ptrace_store_register, inf_ptrace_store_registers)
8445 (inf_ptrace_trad_target): Move to ...
8446 * linux-nat-trad.c: ... this new file.
8447 * linux-nat-trad.h: New file.
8448 * linux-nat.c (linux_target_install_ops): Make extern.
8449 (linux_trad_target): Delete.
8450 * linux-nat.h (linux_trad_target): Delete declaration.
8451 (linux_target_install_ops): Declare.
8452 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8453 "linux-nat.h".
8454
c1955e17
PA
84552018-05-02 Pedro Alves <palves@redhat.com>
8456
8457 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8458 procfs_target/add_target here.
8459 * procfs.c (procfs_target): Make static.
8460 (_initialize_procfs): Call add_target here.
8461 * procfs.h (struct target_ops): Remove forward declaration.
8462 (procfs_target): Remove declaration.
8463 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8464
b5c8fcb1
PA
84652018-05-02 Pedro Alves <palves@redhat.com>
8466
8467 * procfs.c (procfs_stopped_by_watchpoint)
8468 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8469 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8470 Forward declare.
8471 (procfs_use_watchpoints): Delete, move contents...
8472 (procfs_target): ... here.
8473 * procfs.h (procfs_use_watchpoints): Delete declaration.
8474 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8475 procfs_use_watchpoints.
8476 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8477 procfs_use_watchpoints.
8478
0489430a
TT
84792018-05-02 Tom Tromey <tom@tromey.com>
8480
8481 PR python/20084:
8482 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8483 and var_zuinteger_unlimited.
8484 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8485 and PARAM_ZUINTEGER_UNLIMITED.
8486 (set_parameter_value): Handle var_zuinteger and
8487 var_zuinteger_unlimited.
8488 (add_setshow_generic): Likewise.
8489 (parmpy_init): Likewise.
8490
1632f8ba
DR
84912018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8492
8493 PR rust/23124
8494 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8495 pointer is not null before dereferencing it.
8496
76761936
TT
84972018-04-30 Tom Tromey <tom@tromey.com>
8498
8499 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8500 is_mi_like_p.
8501
2d33446d
TT
85022018-04-30 Tom Tromey <tom@tromey.com>
8503
8504 * breakpoint.c (mention): Remove use of is_mi_like_p.
8505 (print_mention_ranged_breakpoint): Likewise.
8506 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8507 of is_mi_like_p.
8508
f3c6abab
TT
85092018-04-30 Tom Tromey <tom@tromey.com>
8510
8511 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8512
40c03530
TT
85132018-04-30 Tom Tromey <tom@tromey.com>
8514
8515 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8516 (info_spu_event_command): Remove some uses of is_mi_like_p.
8517
2038b7fd
TT
85182018-04-30 Tom Tromey <tom@tromey.com>
8519
8520 * python/py-framefilter.c (py_print_single_arg)
8521 (enumerate_locals, py_print_args, py_print_frame): Remove some
8522 uses of is_mi_like_p.
8523
4904c3c6
TT
85242018-04-30 Tom Tromey <tom@tromey.com>
8525
8526 * ui-out.c: Update.
8527 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8528 * ui-out.h (ui_out::is_mi_like_p): Now const.
8529 (ui_out::do_is_mi_like_p): Now const.
8530 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8531
7c66fffc
TT
85322018-04-30 Tom Tromey <tom@tromey.com>
8533
8534 * varobj.c (varobj_set_visualizer): Use new_reference.
8535 * python/python.c (gdbpy_decode_line): Use new_reference.
8536 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8537 new_reference.
8538
bbfa6f00
TT
85392018-04-30 Tom Tromey <tom@tromey.com>
8540
8541 * varobj.c (install_new_value): Use new_reference.
8542 * value.h (value_incref): Return void. Swap intro comment with
8543 value_decref.
8544 * value.c (set_value_parent): Use new_reference.
8545 (value_incref): Return void. Update intro comment.
8546 (release_value): Use new_reference.
8547 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8548
1831a9f9
TT
85492018-04-30 Tom Tromey <tom@tromey.com>
8550
8551 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8552 * gdb_bfd.h (new_bfd_ref): Remove.
8553 (gdb_bfd_open): Update comment.
8554 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8555 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8556 (gdb_bfd_fdopenr): Use new_reference.
8557 * exec.c (exec_file_attach): Use new_reference.
8558
7c1b5f3d
TT
85592018-04-30 Tom Tromey <tom@tromey.com>
8560
8561 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8562 method.
8563
e11fb955
TT
85642018-04-30 Tom Tromey <tom@tromey.com>
8565
8566 * jit.c (jit_read_code_entry): Use type_align.
8567 * i386-tdep.c (i386_gdbarch_init): Don't call
8568 set_gdbarch_long_long_align_bit.
8569 * gdbarch.sh: Remove long_long_align_bit.
8570 * gdbarch.c, gdbarch.h: Rebuild.
8571 * arc-tdep.c (arc_type_align): New function.
8572 (arc_gdbarch_init): Use arc_type_align. Don't call
8573 set_gdbarch_long_long_align_bit.
8574
2fff16dd
TT
85752018-04-30 Tom Tromey <tom@tromey.com>
8576
8577 * rust-lang.c (rust_type_alignment): Remove.
8578 (rust_composite_type): Use type_align.
8579
6d7bb824
TT
85802018-04-30 Tom Tromey <tom@tromey.com>
8581
8582 * NEWS: Mention Type.align.
8583 * python/py-type.c (typy_get_alignof): New function.
8584 (type_object_getset): Add "alignof".
8585
007e1530
TT
85862018-04-30 Tom Tromey <tom@tromey.com>
8587
8588 PR exp/17095:
8589 * NEWS: Update.
8590 * std-operator.def (UNOP_ALIGNOF): New operator.
8591 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8592 New.
8593 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8594 * c-lang.c (c_op_print_tab): Add alignof.
8595 * c-exp.y (ALIGNOF): New token.
8596 (exp): Add "ALIGNOF" production.
8597 (ident_tokens): Add _Alignof and alignof.
8598
2b4424c3
TT
85992018-04-30 Tom Tromey <tom@tromey.com>
8600
8601 * i386-tdep.c (i386_type_align): New function.
8602 (i386_gdbarch_init): Update.
8603 * gdbarch.sh (type_align): New method.
8604 * gdbarch.c, gdbarch.h: Rebuild.
8605 * arch-utils.h (default_type_align): Declare.
8606 * arch-utils.c (default_type_align): New function.
8607 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8608 (struct type) <align_log2>: New field.
8609 <instance_flags>: Now a bitfield.
8610 (TYPE_RAW_ALIGN): New macro.
8611 (type_align, type_raw_align, set_type_align): Declare.
8612 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8613 functions.
8614 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8615 (get_alignment, maybe_set_alignment): New functions.
8616 (read_structure_type, read_enumeration_type, read_array_type)
8617 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8618 (read_subrange_type, read_base_type): Set type alignment.
8619
d33bc52e
SM
86202018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8621
8622 * dwarf2read.c (read_index_from_section): Use bool.
8623
e28b63a9
FG
86242018-04-29 Fabian Groffen <grobian@gentoo.org>
8625
8626 PR gdb/22950
8627 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8628 with #ifdef.
8629
cd8c76e4
JR
86302018-04-29 John Reiser <jreiser@BitWagon.com>
8631
8632 PR build/22873
8633 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8634 last step, and do it atomically.
8635
476d250e
AO
86362018-04-27 Alexandre Oliva <aoliva@redhat.com>
8637
8638 * compile/compile-c-types.c (convert_int, convert_float):
8639 Update for C FE v1.
8640
6873858b
TT
86412018-04-27 Tom Tromey <tom@tromey.com>
8642
8643 PR rust/22545:
8644 * rust-lang.c (rust_inclusive_range_type_p): New function.
8645 (rust_range): Handle inclusive ranges.
8646 (rust_compute_range): Likewise.
8647 * rust-exp.y (struct rust_op) <inclusive>: New field.
8648 (DOTDOTEQ): New constant.
8649 (range_expr): Add "..=" productions.
8650 (operator_tokens): Add "..=" token.
8651 (ast_range): Add "inclusive" parameter.
8652 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8653 ranges.
8654 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8655 bounds values.
8656 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8657 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8658 Update comments.
8659 * expprint.c (print_subexp_standard): Handle new bounds values.
8660 (dump_subexp_body_standard): Likewise.
8661
632e107b
TT
86622018-04-27 Tom Tromey <tom@tromey.com>
8663
8664 * configure: Rebuild.
8665 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8666 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8667 "OVERRIDE".
8668 (class symbol_needs_eval_context): Likewise.
8669 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8670 (mock_mapped_index::symbol_name_at): Use "override". Remove
8671 "virtual".
8672 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8673 "override".
8674 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8675 * aarch64-tdep.c (instruction_reader::read): Use "override".
8676 (instruction_reader_test::read): Likewise.
8677 * arm-tdep.c (instruction_reader::read): Use "override".
8678 (instruction_reader_thumb::read): Likewise.
8679
b75abf5b
AK
86802018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
8681
8682 PR remote/9665
8683 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8684 instead of remote_send.
8685 (remote_send): Remove.
8686
79188d8d
PA
86872018-04-26 Pedro Alves <palves@redhat.com>
8688
8689 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8690 find_function_start_sal instead of find_pc_line.
8691
f50776aa
PA
86922018-04-26 Pedro Alves <palves@redhat.com>
8693
8694 * breakpoint.c (set_breakpoint_location_function): Handle
8695 mst_data_gnu_ifunc.
8696 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8697 * elfread.c (elf_symtab_read): Give data symbols with
8698 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8699 (elf_rel_plt_read): Update comment.
8700 * linespec.c (convert_linespec_to_sals): Handle
8701 mst_data_gnu_ifunc.
8702 (minsym_found): Handle mst_data_gnu_ifunc.
8703 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8704 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8705 * parse.c (find_minsym_type_and_address): Handle
8706 mst_data_gnu_ifunc.
8707 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8708 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8709 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8710 comment.
8711 <mst_data_gnu_ifunc>: New enumerator.
8712
20944a6e
PA
87132018-04-26 Pedro Alves <palves@redhat.com>
8714
8715 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8716 (lookup_minimal_symbol_by_pc_section): ... this. Replace
8717 'want_trampoline' parameter by a lookup_msym_prefer parameter.
8718 Handle it.
8719 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8720 (lookup_minimal_symbol_by_pc): Adjust.
8721 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8722 (lookup_solib_trampoline_symbol_by_pc): Adjust.
8723 * minsyms.h (lookup_msym_prefer): New enum.
8724 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8725 parameter by a lookup_msym_prefer parameter.
8726
1adeb822
PA
87272018-04-26 Pedro Alves <palves@redhat.com>
8728
8729 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8730 ends in "@plt" instead of looking at the symbol's section.
8731
a0aca7b0
PA
87322018-04-26 Pedro Alves <palves@redhat.com>
8733
8734 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
8735 all references.
8736 (find_pc_partial_function_gnu_ifunc): Rename to ...
8737 (find_pc_partial_function): ... this, and remove references to
8738 'is_gnu_ifunc_p'.
8739 (find_pc_partial_function): Delete old implementation.
8740 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8741
76af0f26
PA
87422018-04-26 Pedro Alves <palves@redhat.com>
8743
8744 * linespec.c (struct bound_minimal_symbol_search_key): New.
8745 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
8746 skip first line if we found a GNU ifunc minimal symbol by name.
8747 (compare_msymbols): Change parameters to work with a destructured
8748 lhs minsym.
8749 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8750 functions.
8751
3467ec66
PA
87522018-04-26 Pedro Alves <palves@redhat.com>
8753
8754 * breakpoint.c (set_breakpoint_location_function): Don't resolve
8755 ifunc targets here. Instead, if we have an ifunc minsym, use its
8756 address/name.
8757 (add_location_to_breakpoint): Store the minsym and the objfile in
8758 the breakpoint location.
8759 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8760 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8761 Record the minsym in the sal.
8762 * symtab.h (symtab_and_line) <msymbol>: New field.
8763
28f4fa4d
PA
87642018-04-26 Pedro Alves <palves@redhat.com>
8765
8766 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8767 unless we actually resolved the ifunc.
8768
ca31ab1d
PA
87692018-04-26 Pedro Alves <palves@redhat.com>
8770
8771 * c-exp.y (variable production): Prefer ifunc minsyms over
8772 regular function symbols.
8773 * symtab.c (find_gnu_ifunc): New function.
8774 * minsyms.h (lookup_msym_prefer): New enum.
8775 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8776 parameter by a lookup_msym_prefer parameter.
8777 * symtab.h (find_gnu_ifunc): New declaration.
8778
8388016d
PA
87792018-04-26 Pedro Alves <palves@redhat.com>
8780
8781 * blockframe.c (find_gnu_ifunc_target_type): New function.
8782 (find_function_type): New.
8783 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8784 return a value with a memory address.
8785 (eval_call): For calls to GNU ifunc functions, try to find the
8786 type of the target function from the type that the resolver
8787 returns.
8788 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8789 symbols.
8790 * infcall.c (find_function_return_type): Delete.
8791 (find_function_addr): Add 'function_type' parameter. For calls to
8792 GNU ifunc functions, try to find the type of the target function
8793 from the type that the resolver returns, and return it via
8794 FUNCTION_TYPE.
8795 (call_function_by_hand_dummy): Adjust to use the function type
8796 returned by find_function_addr.
8797 (find_function_addr): Add 'function_type' parameter and move
8798 description here.
8799 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8800 declarations.
8801
a376e11d
PA
88022018-04-26 Pedro Alves <palves@redhat.com>
8803
8804 * c-exp.y (variable production): Skip finding an alias for ifunc
8805 symbols.
8806
02e169e2
PA
88072018-04-26 Pedro Alves <palves@redhat.com>
8808
8809 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8810
249b5733
PA
88112018-04-25 Pedro Alves <palves@redhat.com>
8812
8813 * infcmd.c (kill_command): Print the pid as string, not the whole
8814 thread's ptid. Add comment. s/has been killed/killed/ in output
8815 message.
8816 * remote.c (remote_detach_1): Print the pid as string, not the
8817 whole thread's ptid.
8818
f67c0c91
SDJ
88192018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8820 Sergio Durigan Junior <sergiodj@redhat.com>
8821 Pedro Alves <palves@redhat.com>
8822
8823 * infcmd.c (kill_command): Print message when inferior has
8824 been killed.
8825 * inferior.c (print_inferior_events): Remove 'static'. Set as
8826 '1'.
8827 (add_inferior): Improve message printed when
8828 'print_inferior_events' is on.
8829 (exit_inferior): Remove message printed when
8830 'print_inferior_events' is on.
8831 (detach_inferior): Improve message printed when
8832 'print_inferior_events' is on.
8833 (initialize_inferiors): Use 'add_inferior_silent' to set
8834 'current_inferior_'.
8835 * inferior.h (print_inferior_events): Declare here as
8836 'extern'.
8837 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8838 '[Detaching...]' messages when 'print_inferior_events' is on.
8839 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8840 as prefix/suffix for messages. Remove periods. Fix erroneous
8841 'Detaching after fork from child...', replace it by '... from
8842 parent...'.
8843 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8844 prefix/suffix when printing 'Detaching...' messages. Print
8845 them when 'print_inferior_events' is on.
8846 * remote.c (remote_detach_1): Print message when detaching
8847 from inferior and '!is_fork_parent'.
8848
e427af18
TT
88492018-04-24 Tom Tromey <tom@tromey.com>
8850
8851 * cli-out.h: Reindent.
8852
05b1d8d6
TT
88532018-04-24 Tom Tromey <tom@tromey.com>
8854
8855 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8856 (cli_ui_out::do_field_string): Use fputs_filtered.
8857 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8858
a95c7dab
TT
88592018-04-23 Tom Tromey <tom@tromey.com>
8860
8861 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8862 gdb::unique_xmalloc_ptr.
8863
458412c3
TT
88642018-04-23 Tom Tromey <tom@tromey.com>
8865
8866 * configure: Rebuild.
8867
db86b02b
RS
88682018-04-22 Rajendra SY <rajendra.sy@gmail.com>
8869
8870 PR gdb/23095
8871 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8872 prepare_for_testing. Set normal_bp to r_debug_state if target
8873 is bsd.
8874
00aecdcf
PA
88752018-04-21 Pedro Alves <palves@redhat.com>
8876 Rajendra SY <rajendra.sy@gmail.com>
8877
8878 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8879 * remote.c (extended_remote_attach): In all-stop mode, mark the
8880 thread as executing.
8881
224608c3
PW
88822018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8883
8884 * thread.c (thread_apply_all_command): Fix comment.
8885 (thread_command): Fix comment.
8886
3b74854b
AH
88872018-04-10 Alan Hayward <alan.hayward@arm.com>
8888
8889 * common/tdesc.h (tdesc_create_feature): Remove xml filename
8890 parameter.
8891 * features/aarch64-core.c (create_feature_aarch64_core):
8892 Regenerate.
8893 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
8894 Likewise.
8895 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
8896 Likewise.
8897 * features/i386/32bit-avx512.c
8898 (create_feature_i386_32bit_avx512): Likewise.
8899 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
8900 Likewise.
8901 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
8902 Likewise.
8903 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
8904 Likewise.
8905 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
8906 Likewise.
8907 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
8908 Likewise.
8909 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
8910 Likewise.
8911 * features/i386/64bit-avx512.c
8912 (create_feature_i386_64bit_avx512): Likewise.
8913 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
8914 Likewise.
8915 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
8916 Likewise.
8917 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
8918 Likewise.
8919 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
8920 Likewise.
8921 * features/i386/64bit-segments.c
8922 (create_feature_i386_64bit_segments): Likewise.
8923 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
8924 Likewise.
8925 * features/i386/x32-core.c
8926 (create_feature_i386_x32_core): Likewise.
8927 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
8928 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
8929 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
8930 * target-descriptions.c: In generated code, don't pass xml
8931 filename.
8932
e98577a9
AH
89332018-04-18 Alan Hayward <alan.hayward@arm.com>
8934
8935 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
8936 (print_xml_feature::visit_post): Likewise.
8937 (print_xml_feature::visit): Likewise.
8938 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
8939 (print_xml_feature): Add new class.
8940 * regformats/regdat.sh: Null xmltarget on feature targets.
8941 * target-descriptions.c (struct target_desc): Add xmltarget.
8942 (maintenance_check_tdesc_xml_convert): Add unittest function.
8943 (tdesc_get_features_xml): Add function to get xml.
8944 (maintenance_check_xml_descriptions): Test xml generation.
8945 * xml-tdesc.c (string_read_description_xml): Add function.
8946 * xml-tdesc.h (string_read_description_xml): Add declaration.
8947
ad7fc756
AH
89482018-04-18 Alan Hayward <alan.hayward@arm.com>
8949
8950 * features/Makefile: Add feature marker to targets with new style
8951 target descriptions.
8952 * regformats/aarch64.dat: Regenerate.
8953 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
8954 * regformats/i386/amd64-avx-linux.dat: Likewise.
8955 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
8956 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
8957 * regformats/i386/amd64-linux.dat: Likewise.
8958 * regformats/i386/amd64-mpx-linux.dat: Likewise.
8959 * regformats/i386/amd64.dat: Likewise.
8960 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
8961 * regformats/i386/i386-avx-linux.dat: Likewise.
8962 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
8963 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
8964 * regformats/i386/i386-linux.dat: Likewise.
8965 * regformats/i386/i386-mmx-linux.dat: Likewise.
8966 * regformats/i386/i386-mpx-linux.dat: Likewise.
8967 * regformats/i386/i386.dat: Likewise.
8968 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
8969 * regformats/i386/x32-avx-linux.dat: Likewise.
8970 * regformats/i386/x32-linux.dat: Likewise.
8971 * regformats/tic6x-c62x-linux.dat: Likewise.
8972 * regformats/tic6x-c64x-linux.dat: Likewise.
8973 * regformats/tic6x-c64xp-linux.dat: Likewise.
8974 * regformats/regdat.sh: Parse feature marker.
8975
d278f585
AH
89762018-04-18 Alan Hayward <alan.hayward@arm.com>
8977
8978 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
8979 (tdesc_osabi_name): Likewise.
8980 * target-descriptions.c (tdesc_architecture_name): Add new
8981 function.
8982 (tdesc_osabi_name): Likewise.
8983
eee8a18d
AH
89842018-04-18 Alan Hayward <alan.hayward@arm.com>
8985
8986 * common/tdesc.c (tdesc_predefined_type): Move to here.
8987 (tdesc_named_type): Likewise.
8988 (tdesc_create_vector): Likewise.
8989 (tdesc_create_struct): Likewise.
8990 (tdesc_set_struct_size): Likewise.
8991 (tdesc_create_union): Likewise.
8992 (tdesc_create_flags): Likewise.
8993 (tdesc_create_enum): Likewise.
8994 (tdesc_add_field): Likewise.
8995 (tdesc_add_typed_bitfield): Likewise.
8996 (tdesc_add_bitfield): Likewise.
8997 (tdesc_add_flag): Likewise.
8998 (tdesc_add_enum_value): Likewise.
8999 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9000 (struct tdesc_type_vector): Likewise.
9001 (struct tdesc_type_field): Likewise.
9002 (struct tdesc_type_with_fields): Likewise.
9003 (tdesc_create_enum): Add declaration.
9004 (tdesc_add_typed_bitfield): Likewise.
9005 (tdesc_add_enum_value): Likewise.
9006 * target-descriptions.c (tdesc_type_field): Move from here.
9007 (tdesc_type_builtin): Likewise.
9008 (tdesc_type_vector): Likewise.
9009 (tdesc_type_with_fields): Likewise.
9010 (tdesc_predefined_types): Likewise.
9011 (tdesc_named_type): Likewise.
9012 (tdesc_create_vector): Likewise.
9013 (tdesc_create_struct): Likewise.
9014 (tdesc_set_struct_size): Likewise.
9015 (tdesc_create_union): Likewise.
9016 (tdesc_create_flags): Likewise.
9017 (tdesc_create_enum): Likewise.
9018 (tdesc_add_field): Likewise.
9019 (tdesc_add_typed_bitfield): Likewise.
9020 (tdesc_add_bitfield): Likewise.
9021 (tdesc_add_flag): Likewise.
9022 (tdesc_add_enum_value): Likewise.
9023 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9024 (tdesc_add_typed_bitfield): Likewise.
9025 (tdesc_add_enum_value): Likewise.
9026
82ec9bc7
AH
90272018-04-18 Alan Hayward <alan.hayward@arm.com>
9028
9029 * common/tdesc.c (tdesc_feature::accept): Move to here.
9030 (tdesc_feature::operator==): Likewise.
9031 (tdesc_create_reg): Likewise.
9032 * common/tdesc.h (tdesc_type_kind): Likewise.
9033 (struct tdesc_type): Likewise.
9034 (struct tdesc_feature): Likewise.
9035 * regformats/regdat.sh: Create a feature.
9036 * target-descriptions.c (tdesc_type_kind): Move from here.
9037 (tdesc_type): Likewise.
9038 (tdesc_type_up): Likewise.
9039 (tdesc_feature): Likewise.
9040 (tdesc_create_reg): Likewise.
9041
ea3e7d71
AH
90422018-04-18 Alan Hayward <alan.hayward@arm.com>
9043
9044 * Makefile.in: Add arch/tdesc.c
9045 * common/tdesc.c: New file.
9046 * common/tdesc.h (tdesc_element_visitor): Move to here.
9047 (tdesc_element): Likewise.
9048 (tdesc_reg): Likewise.
9049 (tdesc_reg_up): Likewise.
9050 * regformats/regdef.h (reg): Add offset to constructors.
9051 * target-descriptions.c (tdesc_element_visitor): Move from here.
9052 (tdesc_element): Likewise.
9053 (tdesc_reg): Likewise.
9054 (tdesc_reg_up): Likewise.
9055
bedda9ac
TT
90562018-04-17 Tom Tromey <tom@tromey.com>
9057
9058 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9059 discriminant field.
9060
a037790e
TT
90612018-04-17 Tom Tromey <tom@tromey.com>
9062
9063 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9064
c7dcbf88
AA
90652018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9066
9067 * symtab.c (print_symbol_info): Skip printing filename and line
9068 number when `last' is NULL.
9069 (symtab_symbol_info): Use empty string instead of NULL for first
9070 invocation of print_symbol_info.
9071 (rbreak_command): Pass NULL to `last' parameter of
9072 print_symbol_info.
9073
07d28c77
SM
90742018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9075
9076 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9077 instead of nullptr.
9078
8a3de5e1
PA
90792018-04-16 Pedro Alves <palves@redhat.com>
9080
9081 * MAINTAINERS (sh): Remove.
9082 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9083 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9084 (ALLDEPFILES): Remove sh64-tdep.c.
9085 * NEWS: Mentions that support for SH-5/SH64 is removed.
9086 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9087 (sh*-*-openbsd*): Ditto.
9088 (sh64-*-elf*): Remove.
9089 (sh*): Remove.
9090 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9091 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9092 * sh-tdep.c: No longer include "sh64-tdep.h".
9093 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9094 * sh64-tdep.c, sh64-tdep.h: Remove files.
9095
a2a79012
PA
90962018-04-16 Pedro Alves <palves@redhat.com>
9097
9098 * MAINTAINERS: Remove m88k.
9099 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9100 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9101 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9102 * NEWS: Mention that support for m88k was removed.
9103 * configure.host (m88*-*-*): Remove support.
9104 * configure.nat (m88k-*-*): Remove support.
9105 * configure.tgt (m88*-*-openbsd*): Remove.
9106 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9107
eda4efb1
SM
91082018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9109
9110 * configure.tgt (x86_tobjs): New variable.
9111 (amd64_tobjs, i386_tobjs): Use it.
9112
b744723f
AA
91132018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9114
9115 * symtab.c (print_symbol_info): Precede the symbol definition by
9116 the line number when available.
9117 * NEWS: Advertise this enhancement.
9118
4a4495d6
MM
91192018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9120
9121 * NEWS (New options): announce set/show record btrace cpu.
9122 * btrace.c: Include record-btrace.h.
9123 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9124 the vendor is unknown.
9125 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9126 Maybe overwrite the btrace configuration's cpu.
9127 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9128 (btrace_fetch): Add cpu parameter. Update callers.
9129 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9130 Maybe overwrite the btrace configuration's cpu. Skip enabling
9131 errata workarounds if the vendor is unknown.
9132 * python/py-record-btrace.c: Include record-btrace.h.
9133 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9134 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9135 * record-btrace.c (record_btrace_cpu_state_kind): New.
9136 (record_btrace_cpu): New.
9137 (set_record_btrace_cpu_cmdlist): New.
9138 (record_btrace_get_cpu): New.
9139 (require_btrace_thread, record_btrace_info)
9140 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9141 (cmd_set_record_btrace_cpu_none): New.
9142 (cmd_set_record_btrace_cpu_auto): New.
9143 (cmd_set_record_btrace_cpu): New.
9144 (cmd_show_record_btrace_cpu): New.
9145 (_initialize_record_btrace): Initialize set/show record btrace cpu
9146 commands.
9147 * record-btrace.h (record_btrace_get_cpu): New.
9148
69f90c75
MM
91492018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9150
9151 * record.c (set_record_command): Fix typo in message.
9152
b85310e1
MM
91532018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9154
9155 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9156
1d509aa6
MM
91572018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9158
9159 * infrun.c (process_event_stop_test): Call
9160 gdbarch_in_indirect_branch_thunk.
9161 * gdbarch.sh (in_indirect_branch_thunk): New.
9162 * gdbarch.c: Regenerated.
9163 * gdbarch.h: Regenerated.
9164 * x86-tdep.h: New.
9165 * x86-tdep.c: New.
9166 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9167 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9168 (ALLDEPFILES): Add x86-tdep.c.
9169 * arch-utils.h (default_in_indirect_branch_thunk): New.
9170 * arch-utils.c (default_in_indirect_branch_thunk): New.
9171 * i386-tdep: Include x86-tdep.h.
9172 (i386_in_indirect_branch_thunk): New.
9173 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9174 function.
9175 * amd64-tdep: Include x86-tdep.h.
9176 (amd64_in_indirect_branch_thunk): New.
9177 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9178
b4be9bfd
JK
91792018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9180
9181 PR gdb/23053
9182 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9183 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9184 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9185 regression.
9186
53d7df28
TT
91872018-04-12 Tom Tromey <tom@tromey.com>
9188
9189 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9190 (rust_evaluate_subexp): Likewise.
9191
70b33f19
PA
91922018-04-12 Pedro Alves <palves@redhat.com>
9193
9194 * procfs.c (procfs_detach): Make forward declaration's prototype
9195 match definition's protototype.
9196 (proc_get_LDT_entry): Remove stale do_cleanups call.
9197
436411b1
PA
91982018-04-12 Pedro Alves <palves@redhat.com>
9199
9200 * target.h (target_ops::to_has_exited): Delete.
9201 (target_has_exited): Delete.
9202 * target-delegates.c: Regenerate.
9203
20db9c52
PA
92042018-04-11 Pedro Alves <palves@redhat.com>
9205
9206 * target.c (fileio_fh_t::t): Add comment.
9207 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9208 (target_fileio_close): Handle a NULL target.
9209 (invalidate_fileio_fh): New.
9210 (target_close): Call it.
9211 * remote.c (remote_hostio_send_command): No longer check whether
9212 remote_desc is open.
9213
5ff79300
PA
92142018-04-11 Pedro Alves <palves@redhat.com>
9215
9216 * target.c (fileio_fh_t): Make it a named struct instead of a
9217 typedef.
9218 (fileio_fh_t::is_closed): New method.
9219 (DEF_VEC_O (fileio_fh_t)): Remove.
9220 (fileio_fhandles): Now a std::vector.
9221 (is_closed_fileio_fh): Delete.
9222 (acquire_fileio_fd): Adjust. Rename parameters.
9223 (release_fileio_fd): Adjust.
9224 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9225 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9226 (target_fileio_close): Adjust.
9227
6e22e10d
SM
92282018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9229
9230 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9231 index.
9232
731f534f
PA
92332018-04-10 Pedro Alves <palves@redhat.com>
9234
9235 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9236 (scoped_finish_thread_state): New class.
9237 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9238 cleanup.
9239 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9240 (fetch_inferior_event, normal_stop): Likewise.
9241 * thread.c (finish_thread_state_cleanup): Delete.
9242
d5f4488f
SM
92432018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9244 Pedro Alves <palves@redhat.com>
9245
9246 * value.c: Include "selftest.h" and "common/array-view.h".
9247 (struct range) <operator ==>: New.
9248 (test_ranges_contain): New.
9249 (check_ranges_vector): New.
9250 (test_insert_into_bit_range_vector): New.
9251 (_initialize_values): Register selftests.
9252 * common/array-view.h (operator==, operator!=): New.
9253
b24531ed
SM
92542018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9255
9256 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9257 an iterator.
9258 * inline-frame.c: Include <algorithm>.
9259 (struct inline_state): Add constructor.
9260 (inline_state_s): Remove.
9261 (DEF_VEC_O(inline_state_s)): Remove.
9262 (inline_states): Change type to std::vector.
9263 (find_inline_frame_state): Adjust to std::vector.
9264 (allocate_inline_frame_state): Remove.
9265 (clear_inline_frame_state): Adjust to std::vector.
9266 (skip_inline_frames): Adjust to std::vector.
9267
c252925c
SM
92682018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9269
9270 * tracepoint.h (struct trace_state_variable): Add constructor.
9271 <name>: Change type to std::string.
9272 * tracepoint.c (tsv_s): Remove.
9273 (DEF_VEC_O(tsv_s)): Remove.
9274 (tvariables): Change to std::vector.
9275 (create_trace_state_variable): Adjust to std::vector.
9276 (find_trace_state_variable): Likewise.
9277 (find_trace_state_variable_by_number): Likewise.
9278 (delete_trace_state_variable): Likewise.
9279 (trace_variable_command): Adjust to std::string.
9280 (delete_trace_variable_command): Likewise.
9281 (tvariables_info_1): Adjust to std::vector.
9282 (save_trace_state_variables): Likewise.
9283 (start_tracing): Likewise.
9284 (merge_uploaded_trace_state_variables): Adjust to std::vector
9285 and std::string.
9286 * target.h (struct target_ops)
9287 <to_download_trace_state_variable>: Pass reference to
9288 trace_state_variable.
9289 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9290 * target-delegates.c: Re-generate.
9291 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9292 (mi_tsv_deleted): Likewise.
9293 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9294 * remote.c (remote_download_trace_state_variable): Change
9295 pointer to reference and adjust.
9296 * make-target-delegates (parse_argtypes): Handle references.
9297 (write_function_header): Likewise.
9298 (munge_type): Likewise.
9299
c9638d26
SM
93002018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9301
9302 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9303 string_view-selftests.c.
9304 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9305 testsuite.
9306 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9307 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9308 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9309 * unittests/basic_string_view/element_access/char/1.cc:
9310 Likewise.
9311 * unittests/basic_string_view/element_access/char/empty.cc:
9312 Likewise.
9313 * unittests/basic_string_view/element_access/char/front_back.cc:
9314 Likewise.
9315 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9316 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9317 Likewise.
9318 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9319 Likewise.
9320 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9321 Likewise.
9322 * unittests/basic_string_view/operations/compare/char/1.cc:
9323 Likewise.
9324 * unittests/basic_string_view/operations/compare/char/13650.cc:
9325 Likewise.
9326 * unittests/basic_string_view/operations/copy/char/1.cc:
9327 Likewise.
9328 * unittests/basic_string_view/operations/data/char/1.cc:
9329 Likewise.
9330 * unittests/basic_string_view/operations/find/char/1.cc:
9331 Likewise.
9332 * unittests/basic_string_view/operations/find/char/2.cc:
9333 Likewise.
9334 * unittests/basic_string_view/operations/find/char/3.cc:
9335 Likewise.
9336 * unittests/basic_string_view/operations/find/char/4.cc:
9337 Likewise.
9338 * unittests/basic_string_view/operations/rfind/char/1.cc:
9339 Likewise.
9340 * unittests/basic_string_view/operations/rfind/char/2.cc:
9341 Likewise.
9342 * unittests/basic_string_view/operations/rfind/char/3.cc:
9343 Likewise.
9344 * unittests/basic_string_view/operations/substr/char/1.cc:
9345 Likewise.
9346 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9347 * unittests/string_view-selftests.c: New file.
9348
fdc11678
SM
93492018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9350
9351 * unittests/basic_string_view/capacity/1.cc: New file.
9352 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9353 * unittests/basic_string_view/cons/char/1.cc: New file.
9354 * unittests/basic_string_view/cons/char/2.cc: New file.
9355 * unittests/basic_string_view/cons/char/3.cc: New file.
9356 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9357 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9358 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9359 * unittests/basic_string_view/element_access/char/1.cc: New file.
9360 * unittests/basic_string_view/element_access/char/2.cc: New file.
9361 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9362 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9363 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9364 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9365 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9366 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9367 * unittests/basic_string_view/include.cc: New file.
9368 * unittests/basic_string_view/inserters/char/1.cc: New file.
9369 * unittests/basic_string_view/inserters/char/2.cc: New file.
9370 * unittests/basic_string_view/inserters/char/3.cc: New file.
9371 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9372 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9373 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9374 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9375 * unittests/basic_string_view/literals/types.cc: New file.
9376 * unittests/basic_string_view/literals/values.cc: New file.
9377 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9378 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9379 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9380 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9381 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9382 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9383 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9384 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9385 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9386 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9387 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9388 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9389 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9390 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9391 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9392 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9393 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9394 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9395 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9396 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9397 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9398 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9399 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9400 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9401 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9402 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9403 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9404 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9405 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9406 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9407 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9408 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9409 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9410 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9411 * unittests/basic_string_view/operators/char/2.cc: New file.
9412 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9413 * unittests/basic_string_view/range_access/char/1.cc: New file.
9414 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9415 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9416 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9417 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9418 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9419 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9420 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9421 * unittests/basic_string_view/typedefs.cc: New file.
9422 * unittests/basic_string_view/types/1.cc: New file.
9423
8345c4a2
SM
94242018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9425
9426 * common/gdb_string_view.h: Remove libstdc++ implementation
9427 details, adjust to gdb reality.
9428 * common/gdb_string_view.tcc: Likewise.
9429 * cli/cli-script.c (struct string_view): Remove.
9430 (user_args) <m_args>: Change element type to gdb::string_view.
9431 (user_args::insert_args): Adjust.
9432
7adcdf08
SM
94332018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9434
9435 * common/gdb_string_view.h: New file.
9436 * common/gdb_string_view.tcc: New file.
9437
41260ac2
SM
94382018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9439
9440 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9441 * configure: Re-generate.
9442
0bee6dd4
PA
94432018-04-09 Pedro Alves <palves@redhat.com>
9444
9445 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9446 (set_target_gdbarch): Call
9447 gdb::observers::architecture_changed.notify instead of
9448 observer_notify_architecture_changed.
9449
6f14adc5
SM
94502018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9451
9452 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9453 (do_restore_current_traceframe_cleanup): Remove.
9454 (restore_current_traceframe_cleanup_dtor): Remove.
9455 (make_cleanup_restore_current_traceframe): Remove.
9456 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9457 New.
9458 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9459 * infrun.c (fetch_inferior_event): Use
9460 scoped_restore_current_traceframe.
9461
b2bdb8cf
SM
94622018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9463
9464 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9465 Remove.
9466 <n_allocated_type_units>: Remove.
9467 <all_type_units>: Change to std::vector.
9468 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9469 to std::vector change.
9470 (dwarf2_per_objfile::get_cutu): Likewise.
9471 (dwarf2_per_objfile::get_tu): Likewise.
9472 (create_signatured_type_table_from_index): Likewise.
9473 (create_signatured_type_table_from_debug_names): Likewise.
9474 (dw2_symtab_iter_next): Likewise.
9475 (dw2_print_stats): Likewise.
9476 (dw2_expand_all_symtabs): Likewise.
9477 (dw2_expand_marked_cus): Likewise.
9478 (dw2_debug_names_iterator::next): Likewise.
9479 (dwarf2_initialize_objfile): Likewise.
9480 (add_signatured_type_cu_to_table): Likewise.
9481 (create_all_type_units): Likewise.
9482 (add_type_unit): Likewise.
9483 (struct tu_abbrev_offset): Add constructor.
9484 (build_type_psymtabs_1): Adjust to std::vector change.
9485 (print_tu_stats): Likewise.
9486 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9487 (write_debug_names): Likewise.
9488
b76e467d
SM
94892018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9490
9491 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9492 Make an std::vector.
9493 <n_comp_units>: Remove.
9494 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9495 to std::vector change.
9496 (dwarf2_per_objfile::get_cutu): Likewise.
9497 (dwarf2_per_objfile::get_cu): Likewise.
9498 (create_cus_from_index): Likewise.
9499 (create_addrmap_from_index): Likewise.
9500 (create_addrmap_from_aranges): Likewise.
9501 (dwarf2_read_index): Likewise.
9502 (dw2_find_last_source_symtab): Likewise.
9503 (dw2_map_symtabs_matching_filename): Likewise.
9504 (dw2_symtab_iter_next): Likewise.
9505 (dw2_print_stats): Likewise.
9506 (dw2_expand_all_symtabs): Likewise.
9507 (dw2_expand_symtabs_with_fullname): Likewise.
9508 (dw2_expand_marked_cus): Likewise.
9509 (dw2_map_symbol_filenames): Likewise.
9510 (create_cus_from_debug_names): Likewise.
9511 (dwarf2_read_debug_names): Likewise.
9512 (dw2_debug_names_iterator::next): Likewise.
9513 (dwarf2_initialize_objfile): Likewise.
9514 (set_partial_user): Likewise.
9515 (dwarf2_build_psymtabs_hard): Likewise.
9516 (read_comp_units_from_section): Remove arguments, adjust to
9517 std::vector change.
9518 (create_all_comp_units): Adjust to std::vector and
9519 read_comp_units_from_section changes.
9520 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9521 change.
9522 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9523 (psyms_seen_size): Likewise.
9524 (write_gdbindex): Likewise.
9525 (write_debug_names): Likewise.
9526
12359b5e
SM
95272018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9528
9529 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9530 with dwarf2_per_objfile.
9531 (create_cus_from_index): Likewise.
9532 (create_signatured_type_table_from_index): Likewise.
9533 (dwarf2_read_index): Likewise.
9534 (dwarf2_initialize_objfile): Likewise.
9535 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9536 per_cu rather than get_dwarf2_per_objfile.
9537
ff4c9fec
SM
95382018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9539
9540 * dwarf2read.h (struct signatured_type): Forward declare.
9541 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9542 New methods.
9543 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9544 (dw2_get_cutu): ...this.
9545 (dwarf2_per_objfile::get_cu): Rename from...
9546 (dw2_get_cu): ...this.
9547 (dwarf2_per_objfile::get_tu): New.
9548 (create_addrmap_from_index): Adjust.
9549 (create_addrmap_from_aranges): Adjust.
9550 (dw2_find_last_source_symtab): Adjust.
9551 (dw2_map_symtabs_matching_filename): Adjust.
9552 (dw2_symtab_iter_next): Adjust.
9553 (dw2_print_stats): Adjust.
9554 (dw2_expand_all_symtabs): Adjust.
9555 (dw2_expand_symtabs_with_fullname): Adjust.
9556 (dw2_expand_marked_cus): Adjust.
9557 (dw_expand_symtabs_matching_file_matcher): Adjust.
9558 (dw2_map_symbol_filenames): Adjust.
9559 (dw2_debug_names_iterator::next): Adjust.
9560 (dwarf2_initialize_objfile): Adjust.
9561 (set_partial_user): Adjust.
9562 (dwarf2_build_psymtabs_hard): Adjust.
9563
5ca3fcb6
SM
95642018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9565
9566 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9567 Remove unused variables.
9568 (dw2_map_symtabs_matching_filename): Likewise.
9569 (dwarf2_record_block_ranges): Likewise.
9570 (dwarf2_read_addr_index): Likewise.
9571 (follow_die_offset): Likewise.
9572
b2e586e8
SM
95732018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9574
9575 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9576 to symbol_file_add_main.
9577
7c4e78cf
SM
95782018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9579
9580 PR mi/22299
9581 * mi/mi-console.c (do_fputc_async_safe): New.
9582 (mi_console_file::write_async_safe): New.
9583 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9584 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9585 New.
9586 * ui-file.c (ui_file::putstrn): Adjust call to
9587 fputstrn_unfiltered.
9588 * utils.c (printchar): Replace do_fputs and do_fprintf
9589 parameters by do_fputc.
9590 (fputstr_filtered): Adjust call to printchar.
9591 (fputstr_unfiltered): Likewise.
9592 (fputstrn_filtered): Likewise.
9593 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9594 printchar.
9595 * utils.h (do_fputc_ftype): New typedef.
9596 (fputstrn_unfiltered): Add do_fputc parameter.
9597
5dc026d3
SM
95982018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9599
9600 * regformats/i386/i386-avx.dat: Remove.
9601
c912f608
SM
96022018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9603
9604 PR gdb/22979
9605 * amd64-tdep.c (amd64_none_init_abi): New function.
9606 (amd64_x32_none_init_abi): New function.
9607 (_initialize_amd64_tdep): Register handlers for x86-64 and
9608 x64_32 with GDB_OSABI_NONE.
9609 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9610 GDB_OSABI_NONE osabi.
9611
26540402
SM
96122018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9613
9614 PR gdb/22980
9615 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9616 GDB_OSABI_NONE.
9617 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9618 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9619
9018be22
SM
96202018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9621
9622 * common/byte-vector.h (char_vector): New type.
9623 * target.h (target_read_alloc): Return
9624 gdb::optional<byte_vector>.
9625 (target_read_stralloc): Return gdb::optional<char_vector>.
9626 (target_get_osdata): Return gdb::optional<char_vector>.
9627 * target.c (target_read_alloc_1): Templatize. Replacement
9628 manual memory management with vector.
9629 (target_read_alloc): Change return type, adjust.
9630 (target_read_stralloc): Change return type, adjust.
9631 (target_get_osdata): Change return type, adjust.
9632 * auxv.c (struct auxv_info) <length>: Remove.
9633 <data>: Change type to gdb::optional<byte_vector>.
9634 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9635 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9636 (target_auxv_search): Adjust.
9637 (fprint_target_auxv): Adjust.
9638 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9639 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9640 (linux_make_corefile_notes): Adjust.
9641 * osdata.c (get_osdata): Adjust.
9642 * remote.c (remote_get_threads_with_qxfer): Adjust.
9643 (remote_memory_map): Adjust.
9644 (remote_traceframe_info): Adjust.
9645 (btrace_read_config): Adjust.
9646 (remote_read_btrace): Adjust.
9647 (remote_pid_to_exec_file): Adjust.
9648 * solib-aix.c (solib_aix_get_library_list): Adjust.
9649 * solib-dsbt.c (decode_loadmap): Don't free buf.
9650 (dsbt_get_initial_loadmaps): Adjust.
9651 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9652 * solib-target.c (solib_target_current_sos): Adjust.
9653 * tracepoint.c (sdata_make_value): Adjust.
9654 * xml-support.c (xinclude_start_include): Adjust.
9655 (xml_fetch_content_from_file): Adjust.
9656 * xml-support.h (xml_fetch_another): Change return type.
9657 (xml_fetch_content_from_file): Change return type.
9658 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9659 * xml-tdesc.c (file_read_description_xml): Adjust.
9660 (fetch_available_features_from_target): Change return type.
9661 (target_fetch_description_xml): Adjust.
9662 (target_read_description_xml): Adjust.
9663
14c88955
TT
96642018-04-06 Tom Tromey <tom@tromey.com>
9665
9666 * value.c (~value): Update.
9667 (struct value) <contents>: Now unique_xmalloc_ptr.
9668 (value_contents_bits_eq, allocate_value_contents)
9669 (value_contents_raw, value_contents_all_raw)
9670 (value_contents_for_printing, value_contents_for_printing_const)
9671 (set_value_enclosing_type): Update.
9672
0c7e6dd8
TT
96732018-04-06 Tom Tromey <tom@tromey.com>
9674
9675 * value.c (range_s): Remove typedef, VEC.
9676 (struct range): Add operator<.
9677 (range_lessthan): Remove.
9678 (ranges_contain): Change type.
9679 (~value): Update.
9680 (struct value) <unavailable, optimized_out>: Now std::vector.
9681 (value_entirely_available)
9682 (value_entirely_covered_by_range_vector)
9683 (value_entirely_unavailable, value_entirely_optimized_out):
9684 Update.
9685 (insert_into_bit_range_vector): Change argument type.
9686 (find_first_range_overlap): Likewise.
9687 (struct ranges_and_idx, value_contents_bits_eq)
9688 (require_not_optimized_out, require_available): Update.
9689 (ranges_copy_adjusted): Change argument types.
9690 (value_optimized_out, value_copy, value_fetch_lazy): Update.
9691
2c8331b9
TT
96922018-04-06 Tom Tromey <tom@tromey.com>
9693
9694 * value.c (~value): Update.
9695 (struct value) <parent>: Now a value_ref_ptr.
9696 (value_parent, set_value_parent, value_address, value_copy):
9697 Update.
9698
466ce3ae
TT
96992018-04-06 Tom Tromey <tom@tromey.com>
9700
9701 * value.c (struct value): Add constructor, destructor, and member
9702 initializers.
9703 (allocate_value_lazy, value_decref): Update.
9704
062d818d
TT
97052018-04-06 Tom Tromey <tom@tromey.com>
9706
9707 * value.c (struct value) <released, next>: Remove.
9708 (all_values): Now a std::vector.
9709 (allocate_value_lazy): Update.
9710 (value_next): Remove.
9711 (value_mark, value_free_to_mark, release_value)
9712 (value_release_to_mark): Update.
9713
a6535de1
TT
97142018-04-06 Tom Tromey <tom@tromey.com>
9715
9716 * value.h (fetch_subexp_value, value_release_to_mark): Update.
9717 (free_value_chain): Remove.
9718 * value.c (free_value_chain): Remove.
9719 (value_release_to_mark): Return a std::vector.
9720 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9721 std::vector.
9722 (check_condition): Update.
9723 * eval.c (fetch_subexp_value): Change "val_chain" to a
9724 std::vector.
9725 * breakpoint.c (update_watchpoint): Update.
9726 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9727
b5621201
TT
97282018-04-06 Tom Tromey <tom@tromey.com>
9729
9730 * value.h (free_all_values): Remove.
9731 * value.c (free_all_values): Remove.
9732
4d0266a0
TT
97332018-04-06 Tom Tromey <tom@tromey.com>
9734
9735 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9736 (value_history_chain, value_history_count): Remove.
9737 (value_history): New global.
9738 (record_latest_value, access_value_history, show_values)
9739 (preserve_values): Update.
9740
b4d61099
TT
97412018-04-06 Tom Tromey <tom@tromey.com>
9742
9743 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9744 * varobj.c (varobj_set_display_format, varobj_set_value)
9745 (install_default_visualizer, construct_visualizer)
9746 (install_new_value, ~varobj, varobj_get_value_type)
9747 (my_value_of_variable, varobj_editable_p): Update.
9748 * c-varobj.c (c_describe_child, c_value_of_variable)
9749 (cplus_number_of_children, cplus_describe_child): Update.
9750 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9751 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9752 (ada_value_of_variable, ada_value_is_changeable_p): Update.
9753
9b558729
TT
97542018-04-06 Tom Tromey <tom@tromey.com>
9755
9756 * printcmd.c (last_examine_address): Change type to
9757 value_ref_ptr.
9758 (do_examine, x_command): Update.
9759
850645cf
TT
97602018-04-06 Tom Tromey <tom@tromey.com>
9761
9762 * value.c (release_value): Update.
9763 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9764 (struct bpstats) <val>: Now a value_ref_ptr.
9765 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9766 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9767 (~watchpoint, print_it_watchpoint, watch_command_1)
9768 (invalidate_bp_value_on_memory_change): Update.
9769
22bc8444
TT
97702018-04-06 Tom Tromey <tom@tromey.com>
9771
9772 * varobj.c (varobj_clear_saved_item)
9773 (update_dynamic_varobj_children, install_new_value, ~varobj):
9774 Update.
9775 * value.h (value_incref): Move declaration earlier.
9776 (value_decref): Rename from value_free.
9777 (struct value_ref_policy): New.
9778 (value_ref_ptr): New typedef.
9779 (struct value_deleter): Remove.
9780 (gdb_value_up): Remove typedef.
9781 (release_value): Change return type.
9782 (release_value_or_incref): Remove.
9783 * value.c (set_value_parent): Update.
9784 (value_incref): Change return type.
9785 (value_decref): Rename from value_free.
9786 (value_free_to_mark, free_all_values, free_value_chain): Update.
9787 (release_value): Return value_ref_ptr.
9788 (release_value_or_incref): Remove.
9789 (record_latest_value, set_internalvar, clear_internalvar):
9790 Update.
9791 * stack.c (info_frame_command): Don't call value_free.
9792 * python/py-value.c (valpy_dealloc, valpy_new)
9793 (value_to_value_object): Update.
9794 * printcmd.c (do_examine): Update.
9795 * opencl-lang.c (lval_func_free_closure): Update.
9796 * mi/mi-main.c (register_changed_p): Don't call value_free.
9797 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9798 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9799 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9800 value_free.
9801 * guile/scm-value.c (vlscm_free_value_smob)
9802 (vlscm_scm_from_value): Update.
9803 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9804 (frame_unwind_register_unsigned, get_frame_register_bytes)
9805 (put_frame_register_bytes): Don't call value_free.
9806 * findvar.c (address_from_register): Don't call value_free.
9807 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9808 * dwarf2loc.c (entry_data_value_free_closure)
9809 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9810 (dwarf2_evaluate_loc_desc_full): Update.
9811 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9812 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9813 (~watchpoint, watch_command_1)
9814 (invalidate_bp_value_on_memory_change): Update.
9815 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9816
7f8a5d38
SM
98172018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9818
9819 PR gdb/23022
9820 * warning.m4: Add -Wno-error=deprecated-register.
9821 * configure: Re-generate.
9822
8a76bd3b
TT
98232018-04-05 Tom Tromey <tom@tromey.com>
9824
9825 * linespec.h: Remove include of "vec.h".
9826
8e8d776e
TT
98272018-04-05 Tom Tromey <tom@tromey.com>
9828
9829 * linespec.c (typep): Remove typedef.
9830 (find_methods, find_superclass_methods): Take a std::vector.
9831 (find_method): Use std::vector.
9832
9b2f8581
TT
98332018-04-05 Tom Tromey <tom@tromey.com>
9834
9835 * utils.c (compare_strings): Remove.
9836 * utils.h (compare_strings): Remove.
9837 * objc-lang.h (find_imps): Update.
9838 * objc-lang.c (find_methods): Take a std::vector.
9839 (uniquify_strings, find_imps): Likewise.
9840 * linespec.c (find_methods): Take a std::vector.
9841 (decode_objc): Use std::vector.
9842 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9843 a std::vector.
9844 (find_method, find_function_symbols): Use std::vector.
9845
459a2e4c
TT
98462018-04-05 Tom Tromey <tom@tromey.com>
9847
9848 * completer.c (completion_tracker::completion_tracker): Remove
9849 cast.
9850 (completion_tracker::discard_completions): Likewise.
9851 * breakpoint.c (ambiguous_names_p): Remove cast.
9852 * ada-lang.c (_initialize_ada_language): Remove cast.
9853 * utils.h (streq): Update.
9854 (streq_hash): Add new declaration.
9855 * utils.c (streq): Return bool.
9856 (streq_hash): New function.
9857
9be2c17a
TT
98582018-04-05 Tom Tromey <tom@tromey.com>
9859
9860 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9861 Remove a string copy.
9862
f73c6ece
TT
98632018-04-05 Tom Tromey <tom@tromey.com>
9864
9865 * linespec.c (filter_results): Use std::vector.
9866 (decode_line_2, decode_line_full): Update.
9867
53a0f8a2
TT
98682018-04-05 Tom Tromey <tom@tromey.com>
9869
9870 * linespec.c (canonical_to_fullform): Return std::string.
9871 (filter_results): Update.
9872 (struct decode_line_2_item): Add constructor.
9873 <fullform, displayform>: Now std::string.
9874 (decode_line_2_compare_items): Now a std::sort comparator.
9875 (decode_line_2): Update.
9876
a5b5adf5
TT
98772018-04-05 Tom Tromey <tom@tromey.com>
9878
9879 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9880 (unexpected_linespec_error): Update.
9881 (linespec_parse_basic, parse_linespec): Update.
9882
6a307fc5
TT
98832018-04-05 Tom Tromey <tom@tromey.com>
9884
9885 * linespec.c (linespec_parse_basic): Reindent.
9886
41c1efc6
TT
98872018-04-05 Tom Tromey <tom@tromey.com>
9888
9889 * minsyms.h (iterate_over_minimal_symbols): Update.
9890 * minsyms.c (iterate_over_minimal_symbols): Take a
9891 gdb::function_view.
9892 * linespec.c (struct collect_minsyms): Remove.
9893 (compare_msyms): Now a std::sort comparator.
9894 (add_minsym): Add parameters.
9895 (search_minsyms_for_name): Update. Use std::vector.
9896
c5edbf3d
TT
98972018-04-03 Tom Tromey <tom@tromey.com>
9898
9899 * mipsread.c (read_alphacoff_dynamic_symtab): Use
9900 gdb::byte_vector.
9901
b39efc48
WP
99022018-04-02 Weimin Pan <weimin.pan@oracle.com>
9903
9904 * MAINTAINERS (Write After Approval): Add Weimin Pan.
9905
121ad66c 99062018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
9907
9908 PR gdb/16959
9909 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
9910 printing static type.
9911
09473be8
TT
99122018-04-01 Tom Tromey <tom@tromey.com>
9913
9914 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
9915 (rs6000_xfer_shared_libraries): Update.
9916
ec1f2d91
SM
99172018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9918
9919 * common/gdb_vecs.h (char_ptr): Remove.
9920 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
9921
d8611974
SM
99222018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9923
9924 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
9925 with std::vector.
9926 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
9927
a18ba4e4
SM
99282018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9929
9930 * tracepoint.h (struct uploaded_tp): Initialize fields.
9931 <actions, step_actions, cmd_strings>: Change type to
9932 std::vector<char *>.
9933 * tracepoint.c (get_uploaded_tp): Allocate with new.
9934 (free_uploaded_tps): Free with delete.
9935 (parse_tracepoint_definition): Adjust to std::vector change.
9936 * breakpoint.c (read_uploaded_action): Likewise.
9937 (create_tracepoint_from_upload): Likewise.
9938 * ctf.c (ctf_write_uploaded_tp): Likewise.
9939 (SET_ARRAY_FIELD): Likewise.
9940 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
9941
a7961323
TT
99422018-03-30 Tom Tromey <tom@tromey.com>
9943
9944 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
9945 std::unique_ptr.
9946 (svr4_keep_data_in_core): Update.
9947 (svr4_read_so_list): Update.
9948
e83e4e24
TT
99492018-03-30 Tom Tromey <tom@tromey.com>
9950
9951 * windows-nat.c (handle_output_debug_string, handle_exception):
9952 Update.
9953 * target.h (target_read_string): Update.
9954 * target.c (target_read_string): Change "string" to
9955 unique_xmalloc_ptr.
9956 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9957 Update.
9958 * solib-frv.c (frv_current_sos): Update.
9959 * solib-dsbt.c (dsbt_current_sos): Update.
9960 * solib-darwin.c (darwin_current_sos): Update.
9961 * linux-thread-db.c (inferior_has_bug): Update.
9962 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
9963 Update. Remove alloca.
9964 * ada-lang.c (ada_main_name): Update.
9965
263db9a1
TT
99662018-03-30 Tom Tromey <tom@tromey.com>
9967
9968 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
9969 (struct dwo_file_deleter): New.
9970 (dwo_file_up): New typedef.
9971 (open_and_init_dwo_file): Use dwo_file_up.
9972 (free_dwo_file_cleanup): Remove.
9973
5dafb3d1
TT
99742018-03-30 Tom Tromey <tom@tromey.com>
9975
9976 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
9977 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
9978
11ed8cad
TT
99792018-03-30 Tom Tromey <tom@tromey.com>
9980
9981 * dwarf2read.c (class free_cached_comp_units): New class.
9982 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
9983 (free_cached_comp_units): Remove function.
9984
9ae79dac
TT
99852018-03-30 Tom Tromey <tom@tromey.com>
9986
9987 * utils.h (make_cleanup_unpush_target): Remove.
9988 * inf-ptrace.c (struct target_unpusher): New.
9989 (target_unpush_up) New typedef.
9990 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
9991 target_unpush_up.
9992 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
9993
5aa89276
TT
99942018-03-27 Tom Tromey <tom@tromey.com>
9995
9996 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
9997
1dbeed45
TT
99982018-03-27 Pedro Alves <palves@redhat.com>
9999 Tom Tromey <tom@tromey.com>
10000
10001 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10002 destructor. Now a class.
10003 (gdb_readline_wrapper_cleanup): Remove function.
10004 (gdb_readline_wrapper): Remove cleanups.
10005
c819b2c0
TT
100062018-03-27 Tom Tromey <tom@tromey.com>
10007
10008 * typeprint.h (struct type_print_options) <local_typedefs,
10009 global_typedefs>: Remove "struct" keyword.
10010 (class typedef_hash_table): New class.
10011 (recursively_update_typedef_hash, add_template_parameters)
10012 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10013 (find_typedef_in_hash): Don't declare.
10014 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10015 (typedef_hash_table::recursively_update): Rename from
10016 recursively_update_typedef_hash. Now a member.
10017 (typedef_hash_table::add_template_parameters): Rename from
10018 add_template_parameters. Now a member.
10019 (typedef_hash_table::typedef_hash_table): Now a constructor;
10020 rename from create_typedef_hash.
10021 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10022 rename from free_typedef_hash.
10023 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10024 (do_free_global_table): Remove.
10025 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10026 from copy_type_recursive.
10027 (create_global_typedef_table): Remove.
10028 (typedef_hash_table::find_global_typedef): Now a member of
10029 typedef_hash_table.
10030 (typedef_hash_table::find_typedef): Rename from
10031 find_typedef_in_hash; now a member.
10032 (whatis_exp): Update.
10033 * extension.h (struct ext_lang_type_printers): Add constructor and
10034 destructor.
10035 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10036 declare.
10037 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10038 Now a constructor; rename from start_ext_lang_type_printers.
10039 (ext_lang_type_printers): Now a destructor; rename from
10040 free_ext_lang_type_printers.
10041 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10042 Update.
10043 (c_type_print_base_struct_union): Update. Remove cleanups.
10044
608219fb
TT
100452018-03-27 Tom Tromey <tom@tromey.com>
10046
10047 * dwarf-index-write.c: Include <cmath>.
10048
3fcded8f
JB
100492018-03-27 Joel Brobecker <brobecker@adacore.com>
10050
10051 * NEWS: Add entry describing new "set|show varsize-limit" command.
10052 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10053 command.
10054 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10055 "set variable".
10056
cd4fb1b2
SM
100572018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10058
10059 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10060 dwarf-index-write.c
10061 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10062 * dwarf-index-common.c: New file.
10063 * dwarf-index-common.h: New file.
10064 * dwarf-index-write.c: New file.
10065 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10066 (struct dwarf2_section_info): Move from here.
10067 (dwarf2_section_info_def): Likewise.
10068 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10069 (offset_type): Likewise.
10070 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10071 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10072 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10073 (byte_swap): Likewise.
10074 (MAYBE_SWAP): Likewise.
10075 (dwarf2_per_cu_ptr): Likewise.
10076 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10077 (struct tu_stats): Likewise.
10078 (struct dwarf2_per_objfile): Likewise.
10079 (struct dwarf2_per_cu_data): Likewise.
10080 (struct signatured_type): Likewise.
10081 (sig_type_ptr): Likewise.
10082 (DEF_VEC_P (sig_type_ptr)): Likewise.
10083 (INDEX4_SUFFIX): Likewise.
10084 (INDEX5_SUFFIX): Likewise.
10085 (DEBUG_STR_SUFFIX): Likewise.
10086 (dwarf2_read_section): Make non-static.
10087 (mapped_index_string_hash): Move from here.
10088 (dwarf5_djb_hash): Likewise.
10089 (file_write): Likewise.
10090 (class data_buf): Likewise.
10091 (struct symtab_index_entry): Likewise.
10092 (struct mapped_symtab): Likewise.
10093 (find_slot): Likewise.
10094 (hash_expand): Likewise.
10095 (add_index_entry): Likewise.
10096 (uniquify_cu_indices): Likewise.
10097 (class c_str_view): Likewise.
10098 (class c_str_view_hasher): Likewise.
10099 (class vector_hasher): Likewise.
10100 (write_hash_table): Likewise.
10101 (psym_index_map): Likewise.
10102 (struct addrmap_index_data): Likewise.
10103 (add_address_entry): Likewise.
10104 (add_address_entry_worker): Likewise.
10105 (write_address_map): Likewise.
10106 (symbol_kind): Likewise.
10107 (write_psymbols): Likewise.
10108 (struct signatured_type_index_data): Likewise.
10109 (write_one_signatured_type): Likewise.
10110 (recursively_count_psymbols): Likewise.
10111 (recursively_write_psymbols): Likewise.
10112 (class debug_names): Likewise.
10113 (check_dwarf64_offsets): Likewise.
10114 (psyms_seen_size): Likewise.
10115 (write_gdbindex): Likewise.
10116 (write_debug_names): Likewise.
10117 (assert_file_size): Likewise.
10118 (write_psymtabs_to_index): Likewise.
10119 (save_gdb_index_command): Likewise.
10120 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10121 command.
10122 * dwarf2read.h: New file.
10123
59cc4834
JB
101242018-03-27 Joel Brobecker <brobecker@adacore.com>
10125
10126 PR gdb/22670
10127 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10128 symbol name if the CU's language stores symbol names in linkage
10129 format.
10130 * language.h (struct language_defn)
10131 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10132 all instances of this struct.
10133
67501539
TT
101342018-03-26 Tom Tromey <tom@tromey.com>
10135
10136 * stack.c (backtrace_command_1): Remove verbose code.
10137
76c939ac
TT
101382018-03-26 Tom Tromey <tom@tromey.com>
10139
10140 * python/py-framefilter.c (py_print_type): Don't catch
10141 exceptions. Return void.
10142 (py_print_value): Likewise.
10143 (py_print_single_arg): Likewise.
10144 (enumerate_args): Don't catch exceptions.
10145 (py_print_args): Likewise.
10146 (py_print_frame): Likewise.
10147 (gdbpy_apply_frame_filter): Catch exceptions here.
10148
9507b29c
TT
101492018-03-26 Tom Tromey <tom@tromey.com>
10150
10151 * stack.c (_initialize_stack): Remove trailing newlines from help
10152 text. Add "Usage" line to "backtrace" help.
10153
eb68e487
TT
101542018-03-26 Tom Tromey <tom@tromey.com>
10155
10156 PR python/16486:
10157 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10158
1f111921
TT
101592018-03-26 Tom Tromey <tom@tromey.com>
10160
10161 * python/py-framefilter.c (py_print_single_arg): Return
10162 EXT_LANG_BT_ERROR from catch.
10163
fb7eb8b5
TT
101642018-03-26 Tom Tromey <tom@tromey.com>
10165
10166 PR backtrace/15584:
10167 * stack.c (backtrace_command_1): Move some code into no-filters
10168 "if".
10169
4ca59a9f
TT
101702018-03-26 Tom Tromey <tom@tromey.com>
10171
10172 * python/py-framefilter.c (throw_quit_or_print_exception): New
10173 function.
10174 (gdbpy_apply_frame_filter): Use it.
10175
92256134
TT
101762018-03-26 Tom Tromey <tom@tromey.com>
10177
10178 PR cli/17716:
10179 * python/py-framefilter.c (py_print_type, py_print_value)
10180 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10181 RETURN_MASK_ERROR.
10182
7a630bc2
TT
101832018-03-26 Tom Tromey <tom@tromey.com>
10184
10185 * python/py-framefilter.c (enumerate_args): Use
10186 gdb::unique_xmalloc_ptr.
10187
63283d4a
TT
101882018-03-26 Tom Tromey <tom@tromey.com>
10189
10190 * python/py-framefilter.c (py_print_frame): Return
10191 EXT_LANG_BT_OK.
10192 (gdbpy_apply_frame_filter): Update comment.
10193 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10194 Remove.
10195 <EXT_LANG_BT_NO_FILTERS>: Change value.
10196
978d6c75
TT
101972018-03-26 Tom Tromey <tom@tromey.com>
10198
10199 PR backtrace/15582:
10200 * stack.c (backtrace_command): Parse "hide" argument.
10201 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10202 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10203 constant.
10204
1cf7e640
TT
102052018-03-26 Tom Tromey <tom@tromey.com>
10206
10207 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10208 add "flags".
10209 (backtrace_command): Remove "fulltrace", add "flags".
10210
ea3b0687
TT
102112018-03-26 Tom Tromey <tom@tromey.com>
10212
10213 * stack.c (backtrace_command): Rewrite command line parsing.
10214
9f034d75
SM
102152018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10216
10217 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10218
ce1459e5
SM
102192018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10220
10221 * filename-seen-cache.h: Add include guard.
10222
4f7ae6f5
KS
102232018-03-26 Keith Seitz <keiths@redhat.com>
10224
10225 * symfile.c (place_section): Remove "struct" from section_addr_info
10226 in comment.
10227 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10228 "struct" keyword from section_addr_info.
10229
5cd3e386
AH
102302018-03-26 Alan Hayward <alan.hayward@arm.com>
10231
10232 * regformats/regdef.h (reg): Add constructors.
10233
3e5ef9a4
PA
102342018-03-25 Pedro Alves <palves@redhat.com>
10235
10236 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10237 if then/else bodies in var_func_name extraction.
10238
c88d2fcc 102392018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
10240
10241 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10242 lookup_minimal_symbol() to find symbol entry.
10243 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10244
b7fee5a3
KS
102452018-03-23 Keith Seitz <keiths@redhat.com>
10246
10247 PR c++/22968
10248 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10249 nested type definitions for C++, too.
10250
2cc9b304
TT
102512018-03-23 Tom Tromey <tom@tromey.com>
10252
10253 * machoread.c (struct oso_el): Add a constructor. Don't define as
10254 a typedef.
10255 (macho_register_oso): Remove.
10256 (macho_symtab_read): Take a std::vector.
10257 (oso_el_compare_name): Now a std::sort comparator.
10258 (macho_symfile_read_all_oso): Take a std::vector.
10259 (macho_symfile_read): Use std::vector. Remove cleanups.
10260
a2b2bc12
TT
102612018-03-22 Tom Tromey <tom@tromey.com>
10262
10263 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10264 (record_full_goto_bookmark): Use std::string.
10265
7a8f494c
PFC
102662018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10267
10268 PR tdep/18295
10269 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10270 a single mask.
10271
dd6d677f
PFC
102722018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10273
10274 * rs6000-tdep.c (store_insn_p): New function.
10275 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10276 and cr_reg to their unshifted values. Use store_insn_p to
10277 match LR saves using either R1 or fdata->alloca_reg. Use
10278 store_insn_p to match CR saves. Set alloca_reg_offset
10279 when alloca_reg and framep are set. Remove lr_reg shift
10280 when assigning to fdata->lr_register.
10281
26d6cec4
AA
102822018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10283
10284 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10285 command line args instead of emitting a warning.
10286
5d9310c4
SM
102872018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10288
10289 * tracepoint.h (struct static_tracepoint_marker): Initialize
10290 fields, define default constructor, move constructor and move
10291 assignment, disable the rest.
10292 <str_id, extra>: Make std::string.
10293 (release_static_tracepoint_marker): Remove.
10294 (free_current_marker): Remove.
10295 * tracepoint.c (free_current_marker): Remove.
10296 (parse_static_tracepoint_marker_definition): Adjust to
10297 std::string, use new hex2str overload.
10298 (release_static_tracepoint_marker): Remove.
10299 (print_one_static_tracepoint_marker): Get marker by reference
10300 and adjust to std::string.
10301 (info_static_tracepoint_markers_command): Adjust to std::vector
10302 changes
10303 * target.h (static_tracepoint_marker_p): Remove typedef.
10304 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10305 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10306 bool.
10307 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10308 * target-debug.h
10309 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10310 (target_debug_print_std_vector_static_tracepoint_marker): New.
10311 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10312 to...
10313 (target_debug_print_static_tracepoint_marker_p): ... this.
10314 * target-delegates.c: Re-generate.
10315 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10316 Make std::string.
10317 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10318 (decode_static_tracepoint_spec): Adjust to std::vector.
10319 (tracepoint_print_one_detail): Adjust to std::string.
10320 (strace_marker_decode_location): Adjust to std::string.
10321 (update_static_tracepoint): Adjust to std::string, remove call
10322 to release_static_tracepoint_marker.
10323 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10324 Adjust to std::vector.
10325 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10326 (remote_static_tracepoint_markers_by_strid): Adjust to
10327 std::vector.
10328 * common/rsp-low.h (hex2str): New overload with explicit count
10329 of bytes.
10330 * common/rsp-low.c (hex2str): New overload with explicit count
10331 of bytes.
10332 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10333 (_initialize_rsp_low_selftests): Add test_hex2str test.
10334 * unittests/tracepoint-selftests.c
10335 (test_parse_static_tracepoint_marker_definition): Adjust to
10336 std::string.
10337
62c222b6
SM
103382018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10339
10340 * tracepoint.c (parse_static_tracepoint_marker_definition):
10341 Consider case where the definition is followed by more
10342 definitions.
10343 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10344 tracepoint-selftests.c.
10345 * unittests/tracepoint-selftests.c: New.
10346
7eb2418f
PFC
103472018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10348
10349 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10350 Carvalho.
10351
7cbe16e9
SR
103522018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10353
3d6b3b82 10354 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 10355
4ee89e90
SR
103562018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10357
3d6b3b82 10358 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 10359
92630041
TT
103602018-03-19 Tom Tromey <tom@tromey.com>
10361
10362 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10363 "IDENT" production.
10364
76727919
TT
103652018-03-19 Pedro Alves <palves@redhat.com>
10366 Tom Tromey <tom@tromey.com>
10367
10368 * unittests/observable-selftests.c: New file.
10369 * common/observable.h: New file.
10370 * observable.h: New file.
10371 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10372 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10373 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10374 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10375 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10376 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10377 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10378 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10379 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10380 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10381 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10382 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10383 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10384 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10385 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10386 tui/tui-interp.c, valops.c: Update all users.
10387 * tui/tui-hooks.c (tui_bp_created_observer)
10388 (tui_bp_deleted_observer, tui_bp_modified_observer)
10389 (tui_inferior_exit_observer, tui_before_prompt_observer)
10390 (tui_normal_stop_observer, tui_register_changed_observer):
10391 Remove.
10392 (tui_observers_token): New global.
10393 (attach_or_detach, tui_attach_detach_observers): New functions.
10394 (tui_install_hooks, tui_remove_hooks): Use
10395 tui_attach_detach_observers.
10396 * record-btrace.c (record_btrace_thread_observer): Remove.
10397 (record_btrace_thread_observer_token): New global.
10398 * observer.sh: Remove.
10399 * observer.c: Rename to observable.c.
10400 * observable.c (namespace gdb_observers): Define new objects.
10401 (observer_debug): Move into gdb_observers namespace.
10402 (struct observer, struct observer_list, xalloc_observer_list_node)
10403 (xfree_observer_list_node, generic_observer_attach)
10404 (generic_observer_detach, generic_observer_notify): Remove.
10405 (_initialize_observer): Update.
10406 Don't include observer.inc.
10407 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10408 (clean mostlyclean): Likewise.
10409 (observer.h, observer.inc): Remove targets.
10410 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10411 (COMMON_SFILES): Use observable.c, not observer.c.
10412 * .gitignore: Remove observer.h.
10413
1cb1f3da
TT
104142018-03-18 Tom Tromey <tom@tromey.com>
10415
10416 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10417 gdb::def_vector.
10418 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10419
a06ab151
TT
104202018-03-17 Tom Tromey <tom@tromey.com>
10421
10422 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10423
770623f7
TT
104242018-03-17 Tom Tromey <tom@tromey.com>
10425
10426 * target.c (class scoped_target_fd): New.
10427 (target_fileio_close_cleanup): Remove.
10428 (target_fileio_read_alloc_1): Use scoped_target_fd.
10429
39be3c7e
SM
104302018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10431
10432 * silent-rules.mk: New.
10433 * Makefile.in: Include silent-rules.mk
10434 (srcdir, VPATH, top_srcdir): Move up.
10435 (COMPILE): Add ECHO_CXX.
10436 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10437 (init.c): Add ECHO_INIT_C.
10438 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10439 (version.c): Add ECHO_GEN.
10440 (printcmd.o): Add ECHO_CXX.
10441 (target-float.o): Add ECHO_CXX.
10442 (ada-exp.o): Add ECHO_CXX.
10443 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10444 (insight$(EXEEXT)): Add ECHO_CXXLD.
10445 * gnulib/configure.ac: Add AM_SILENT_RULES.
10446 * gnulib/aclocal.m4: Re-generate.
10447 * gnulib/configure: Re-generate.
10448 * gnulib/import/Makefile.in: Re-generate.
10449
37e136b1
TT
104502018-03-16 Tom Tromey <tom@tromey.com>
10451
10452 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10453 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10454 * utils.c (do_free_section_addr_info)
10455 (make_cleanup_free_section_addr_info): Remove.
10456 * symfile.h (struct other_sections): Add constructor.
10457 (struct section_addr_info): Remove.
10458 (section_addr_info): New typedef.
10459 (struct sym_fns) <sym_offsets>: Change type of parameter.
10460 (build_section_addr_info_from_objfile)
10461 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10462 (default_symfile_offsets, symbol_file_add)
10463 (symbol_file_add_from_bfd)
10464 (build_section_addr_info_from_section_table): Update.
10465 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10466 * symfile.c (alloc_section_addr_info): Remove.
10467 (build_section_addr_info_from_section_table): Change return type.
10468 Update.
10469 (build_section_addr_info_from_bfd)
10470 (build_section_addr_info_from_objfile): Likewise.
10471 (free_section_addr_info): Remove.
10472 (relative_addr_info_to_section_offsets): Change type of "addrs".
10473 (addrs_section_compar): Now a std::sort comparator.
10474 (addrs_section_sort): Change return type.
10475 (addr_info_make_relative): Change type of "addrs". Update.
10476 (default_symfile_offsets, syms_from_objfile_1)
10477 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10478 (symbol_file_add_separate): Update.
10479 (symbol_file_add): Change type of "addrs". Update.
10480 (add_symbol_file_command): Update. Remove cleanups.
10481 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10482 cleanups.
10483 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10484 * solib.c (solib_read_symbols): Update.
10485 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10486 * machoread.c (macho_symfile_offsets): Update.
10487 * jit.c (jit_bfd_try_read_symtab): Update.
10488
03afa6ef
SM
104892018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10490
10491 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10492 unittests/utils-selftests.c.
10493 * unittests/utils-selftests.c: New file.
10494
3ae9ce5d
TT
104952018-03-14 Tom Tromey <tom@tromey.com>
10496
10497 PR cli/14977:
10498 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10499 for NULL.
10500
b8c2339b
TT
105012018-03-14 Tom Tromey <tom@tromey.com>
10502
10503 PR cli/19918:
10504 * printcmd.c (printf_pointer): Allow "-" in format.
10505
80ae639d
TT
105062018-03-14 Tom Tromey <tom@tromey.com>
10507
10508 * printcmd.c (_initialize_printcmd): Add usage to printf.
10509
0d671d99
YQ
105102018-03-14 Yao Qi <qiyao@sourceware.org>
10511
10512 * MAINTAINERS: Update my email address.
10513
b577b6af
TT
105142018-03-13 Tom Tromey <tom@tromey.com>
10515
10516 * machoread.c (macho_check_dsym): Change filenamep to a
10517 std::string*.
10518 (macho_symfile_read): Update.
10519 * symfile.c (load_command): Use std::string.
10520
89a3b63e
AB
105212018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10522
10523 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10524 to error message string.
10525 (riscv_register_name): Use xsnprintf instead of sprintf.
10526 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10527 internal_error.
10528 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10529 error.
10530 (riscv_push_dummy_call): Likewise.
10531
984c7238
TT
105322018-03-12 Tom Tromey <tom@tromey.com>
10533
10534 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10535 Use gdb::byte_vector.
10536 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10537
933522d1
YQ
105382018-03-12 Yao Qi <yao.qi@linaro.org>
10539
10540 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10541 parameter type to readable_regcache.
10542 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10543 the declaration.
10544
be2daae6
TT
105452018-03-11 Tom Tromey <tom@tromey.com>
10546
10547 * dwarf2read.c (struct nextfield): Add initializers.
10548 (struct nextfnfield): Remove.
10549 (struct fnfieldlist): Add initializers. Remove "length" and
10550 "head", use std::vector.
10551 (struct decl_field_list): Remove.
10552 (struct field_info): Add initializers.
10553 <fields, baseclasses>: Now std::vector.
10554 <nbaseclasses, nfnfields, typedef_field_list_count,
10555 nested_types_list_count>: Remove.
10556 (dwarf2_add_field, dwarf2_add_type_defn)
10557 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10558 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10559 (process_structure_scope): Update.
10560
484cf504
TT
105612018-03-11 Tom Tromey <tom@tromey.com>
10562
10563 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10564 for use by std::sort.
10565 (build_type_psymtabs_1): Use std::vector.
10566
9bd8e0b0
EZ
105672018-03-09 Eli Zaretskii <eliz@gnu.org>
10568
10569 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10570 and LIBMPFR in the printed configuration.
10571
5dc1a704
TT
105722018-03-08 Tom Tromey <tom@tromey.com>
10573
10574 * source.c (get_filename_and_charpos): Use scoped_fd.
10575 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10576 (procfs_pidlist): Likewise.
10577 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10578 (iterate_over_mappings): Likewise.
10579
fdf07f3a
TT
105802018-03-08 Tom Tromey <tom@tromey.com>
10581
10582 * infcall.c (struct call_return_meta_info)
10583 <stack_temporaries_enabled>: Remove.
10584 (get_call_return_value, call_function_by_hand_dummy): Update.
10585 * thread.c (disable_thread_stack_temporaries): Remove.
10586 (enable_thread_stack_temporaries): Remove.
10587 (thread_stack_temporaries_enabled_p): Return bool.
10588 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10589 (get_last_thread_stack_temporary): Update.
10590 * eval.c (evaluate_subexp): Update.
10591 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10592 class, not a function.
10593 (value_ptr, value_vec): Remove typedefs.
10594 (class thread_info) <stack_temporaries_enabled>: Now bool.
10595 <stack_temporaries>: Now a std::vector.
10596 (thread_stack_temporaries_enabled_p)
10597 (value_in_thread_stack_temporaries): Return bool.
10598
567a3e54
SM
105992018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10600
10601 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10602 (getpkt_or_notif_sane_1): Likewise.
10603
00b40057
SM
106042018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10605
10606 * build-id.c (build_id_to_debug_bfd): Use std::string.
10607
a8dbfd58
SM
106082018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10609
10610 * build-id.c (find_separate_debug_file_by_buildid): Return
10611 std::string.
10612 * build-id.h (find_separate_debug_file_by_buildid): Return
10613 std::string.
10614 * coffread.c (coff_symfile_read): Adjust to std::string.
10615 * elfread.c (elf_symfile_read): Adjust to std::string.
10616 * symfile.c (separate_debug_file_exists): Change parameter to
10617 std::string.
10618 (find_separate_debug_file): Return std::string.
10619 (find_separate_debug_file_by_debuglink): Return std::string.
10620 * symfile.h (find_separate_debug_file_by_debuglink): Return
10621 std::string.
10622
e6a58aa8
SM
106232018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10624
10625 * common/xml-utils.c (xml_escape_text): Move code to...
10626 (xml_escape_text_append): ... this new function.
10627 * common/xml-utils.h (xml_escape_text_append): New declaration.
10628 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10629 New function.
10630 (_initialize_xml_utils): register test_xml_escape_text_append as
10631 a selftest.
10632
4ef0bef6
AH
106332018-03-07 Alan Hayward <alan.hayward@arm.com>
10634
10635 * defs.h: Remove MAX_REGISTER_SIZE.
10636 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10637 asserts.
10638 * python/py-unwind.c (pyuw_sniffer): Likewise.
10639
e0d3522b
TT
106402018-03-07 Tom Tromey <tom@tromey.com>
10641
10642 * linux-tdep.c (linux_info_proc): Update.
10643 * target.h (struct target_ops) <to_fileio_readlink>: Return
10644 optional<string>.
10645 (target_fileio_readlink): Return optional<string>.
10646 * remote.c (remote_hostio_readlink): Return optional<string>.
10647 * inf-child.c (inf_child_fileio_readlink): Return
10648 optional<string>.
10649 * target.c (target_fileio_readlink): Return optional<string>.
10650
ea005f31
AB
106512018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10652
10653 * regcache.c (cooked_read_test): Add riscv to the list of
10654 architectures that have a save_reggroup.
10655
e95a97d4
AA
106562018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10657
10658 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10659 value is not a dynamic class object.
10660
d8344f3d
TT
106612018-03-06 Tom Tromey <tom@tromey.com>
10662
10663 * rust-exp.y: Formatting fixes.
10664
9add17f2
AB
106652018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10666
10667 * riscv-tdep.c (riscv_register_name): Remove target description
10668 support.
10669 (riscv_gdbarch_init): Remove target description check.
10670
c9486dfe
AB
106712018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10672
10673 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10674 comment.
10675 * riscv-tdep.h: Likewise.
10676
d74aff3d
AB
106772018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10678
10679 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10680 (riscv_pseudo_register_write): Delete.
10681 (riscv_gdbarch_init): Remove all use of pseudo registers.
10682
7ea78b59
SM
106832018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10684
10685 * record-btrace.c (btrace_print_lines): Replace cleanup
10686 parameter with RAII equivalents.
10687 (btrace_insn_history): Replace cleanup with RAII equivalents.
10688 * ui-out.h (make_cleanup_ui_out_list_begin_end,
10689 make_cleanup_ui_out_tuple_begin_end): Remove.
10690 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10691 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10692 make_cleanup_ui_out_list_begin_end): Remove.
10693
53127008
SM
106942018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10695
10696 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10697 parameter types to std::vector. Use bool.
10698 (record_btrace_wait): Replace VEC(tp_t) with
10699 std::vector<thread_info *>.
10700 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10701
228f1508
SM
107022018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10703
10704 * record-btrace.c (record_btrace_disable_callback): Remove.
10705 (struct scoped_btrace_disable): New.
10706 (record_btrace_open): Use scoped_btrace_disable.
10707
b2970c23
AB
107082018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10709
10710 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10711 reading values from registers.
10712
fb294655
AB
107132018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10714
10715 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10716 where appropriate.
10717
cab5bb9d
AB
107182018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10719
10720 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10721 change parameter type. Use GDB's print functions, and use
10722 core_addr_to_string where appropriate.
10723 (riscv_push_dummy_call): Use core_addr_to_string where
10724 appropriate, update call to riscv_print_arg_location, and reindent
10725 a few lines.
10726 (riscv_return_value): Update call to riscv_print_arg_location.
10727
dbbb1059
AB
107282018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10729 Tim Newsome <tim@sifive.com>
10730 Albert Ou <a0u@eecs.berkeley.edu>
10731 Darius Rad <darius@bluespec.com>
10732
10733 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10734 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10735 (ALLDEPFILES): Add riscv-tdep.c
10736 * configure.tgt: Add riscv support.
10737 * riscv-tdep.c: New file.
10738 * riscv-tdep.h: New file.
10739 * NEWS: Mention new target.
10740 * MAINTAINERS: Add entry for riscv.
10741
5dc43913
AB
107422018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10743
10744 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10745 fields within aggregates.
10746
3dea1ef7
SM
107472018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
10748
10749 * record-btrace.c (btrace_print_lines): Change type of flags to
10750 gdb_disassembly_flags.
10751
7efba073
JB
107522018-03-04 John Baldwin <jhb@FreeBSD.org>
10753
10754 * fbsd-nat.c: Include "inf-ptrace.h".
10755 (USE_SIGTRAP_SIGINFO): Conditionally define.
10756 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10757 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10758 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10759 function.
10760 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10761 Likewise.
10762 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10763 Likewise.
10764 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10765 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10766 "supports_stopped_by_hw_breakpoint" target methods.
10767
386a8676
JB
107682018-03-04 John Baldwin <jhb@FreeBSD.org>
10769
10770 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10771 * fbsd-nat.c (debug_fbsd_nat): New variable.
10772 (show_fbsd_nat_debug): New function.
10773 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10774 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10775
12279366
JB
107762018-03-04 John Baldwin <jhb@FreeBSD.org>
10777
10778 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10779 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10780 prototype.
10781 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10782 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10783 method.
10784
54693cf5
SM
107852018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10786
10787 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10788 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10789
ccb2231c
SM
107902018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10791
10792 * charset.c (struct charset_vector): New.
10793 (charsets): Change type to charset_vector.
10794 (find_charset_names): Adjust.
10795 (add_one): Adjust.
10796 (_initialize_charset): Adjust.
10797
6fb16ce6
SM
107982018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10799
10800 * progspace.h (struct program_space) <deleted_solibs>: Change
10801 type to std::vector<std::string>.
10802 * progspace.c (clear_program_space_solib_cache): Adjust.
10803 * breakpoint.c (print_solib_event): Adjust.
10804 (check_status_catch_solib): Adjust.
10805 * solib.c (update_solib_list): Adjust.
10806 * ui-out.h (class ui_out) <field_string>: New overload.
10807 * ui-out.c (ui_out::field_string): New overload.
10808
564b1e3f
SM
108092018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10810
10811 * progspace.h (struct program_space): Add constructor and
10812 destructor, initialize fields.
10813 (add_program_space): Remove.
10814 * progspace.c (add_program_space): Rename to...
10815 (program_space::program_space): ... this.
10816 (release_program_space): Rename to...
10817 (program_space::~program_space): ... this.
10818 (delete_program_space): Use delete to delete program_space.
10819 (initialize_progspace): Use new to allocate program_space.
10820 * inferior.c (add_inferior_with_spaces): Likewise.
10821 (clone_inferior_command): Likewise.
10822 * infrun.c (follow_fork_inferior): Likewise.
10823 (handle_vfork_child_exec_or_exit): Likewise.
10824
e80aaf61
SM
108252018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10826
10827 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10828 (delim_string_to_char_ptr_vec): Return std::vector of
10829 gdb::unique_xmalloc_ptr.
10830 (dirnames_to_char_ptr_vec_append): Take std::vector of
10831 gdb::unique_xmalloc_ptr.
10832 (dirnames_to_char_ptr_vec): Return std::vector of
10833 gdb::unique_xmalloc_ptr.
10834 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10835 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10836 (delim_string_to_char_ptr_vec): Return an std::vector of
10837 gdb::unique_xmalloc_ptr, adjust the code.
10838 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10839 gdb::unique_xmalloc_ptr, adjust the code.
10840 (dirnames_to_char_ptr_vec): Return an std::vector of
10841 gdb::unique_xmalloc_ptr, adjust the code.
10842 * auto-load.c (auto_load_safe_path_vec): Change type to
10843 std::vector of gdb::unique_xmalloc_ptr.
10844 (auto_load_expand_dir_vars): Return an std::vector of
10845 gdb::unique_xmalloc_ptr, adjust the code.
10846 (auto_load_safe_path_vec_update): Adjust.
10847 (filename_is_in_auto_load_safe_path_vec): Adjust.
10848 (auto_load_objfile_script_1): Adjust.
10849 * build-id.c (build_id_to_debug_bfd): Adjust.
10850 * linux-thread-db.c (thread_db_load_search): Adjust.
10851 * source.c (add_path): Adjust.
10852 (openp): Adjust.
10853 * symfile.c (find_separate_debug_file): Adjust.
10854 * utils.c (do_free_char_ptr_vec): Remove.
10855 (make_cleanup_free_char_ptr_vec): Remove.
10856
ab818ade
SDJ
108572018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10858
10859 PR gdb/22907
10860 * common/pathstuff.c: Conditionally include "<windows.h>".
10861
e1e6f073
GS
108622018-03-01 Georg Sauthoff <mail@georg.so>
10863
10864 PR gdb/22888
10865 * gcore.in: Quote variables and switch interpreter to bash.
10866
c7b15a66
TT
108672018-03-01 Tom Tromey <tom@tromey.com>
10868
10869 * dwarf2read.c (alloc_discriminant_info): Fix default_index
10870 assertion. Add assertion for discriminant_index.
10871 (quirk_rust_enum): Use correct base type name in univariant case.
10872
0cb7c7b0
SM
108732018-03-01 Simon Marchi <simon.marchi@ericsson.com>
10874
10875 * record.c (get_call_history_modifiers): Return a
10876 record_print_flags.
10877 (cmd_record_call_history): Adjust.
10878 * record-btrace.c (record_btrace_call_history): Adjust.
10879 (record_btrace_call_history_range): Adjust.
10880 (record_btrace_call_history_from): Adjust.
10881 * target-debug.h (target_debug_print_record_print_flags): New.
10882 * target-delegates.c: Re-generate.
10883 * target.c (target_call_history): Change flags type.
10884 (target_call_history_from): Likewise.
10885 (target_call_history_range): Likewise.
10886 * target.h (struct target_ops) <target_call_history>: Likewise.
10887 (target_call_history_from): Likewise.
10888 (target_call_history_range): Likewise.
10889
25e3c82c
SDJ
108902018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10891 Simon Marchi <simon.marchi@polymtl.ca>
10892
10893 * common/common-utils.c: Include "sys/stat.h".
10894 (is_regular_file): Move here from "source.c"; change return
10895 type to "bool".
10896 * common/common-utils.h (is_regular_file): New prototype.
10897 * common/pathstuff.c (contains_dir_separator): New function.
10898 * common/pathstuff.h (contains_dir_separator): New prototype.
10899 * source.c: Don't include "sys/stat.h".
10900 (is_regular_file): Move to "common/common-utils.c".
10901
b4987c95
SDJ
109022018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10903
10904 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
10905 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
10906 * auto-load.c: Include "common/pathstuff.h".
10907 * common/common-def.h (current_directory): Move here.
10908 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
10909 function.
10910 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
10911 prototype.
10912 * common/pathstuff.c: New file.
10913 * common/pathstuff.h: New file.
10914 * compile/compile.c: Include "common/pathstuff.h".
10915 * defs.h (current_directory): Move to "common/common-defs.h".
10916 * dwarf2read.c: Include "common/pathstuff.h".
10917 * exec.c: Likewise.
10918 * guile/scm-safe-call.c: Likewise.
10919 * linux-thread-db.c: Likewise.
10920 * main.c: Likewise.
10921 * nto-tdep.c: Likewise.
10922 * objfiles.c: Likewise.
10923 * source.c: Likewise.
10924 * symtab.c: Likewise.
10925 * utils.c: Include "common/pathstuff.h".
10926 (gdb_realpath): Move to "common/pathstuff.c".
10927 (gdb_realpath_keepfile): Likewise.
10928 (gdb_abspath): Likewise.
10929 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
10930 (gdb_realpath_keepfile): Likewise.
10931 (gdb_abspath): Likewise.
10932
f169cfdc
JB
109332018-02-28 John Baldwin <jhb@FreeBSD.org>
10934
10935 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
10936 wildcard process pid for super_resume for kernels with a
10937 specific bug.
10938
e05cac70
PM
109392018-02-27 Phil Muldoon <pmuldoon@redhat.com>
10940
10941 * compile/compile.c (get_args): Add additional comments
10942 explaining function.
10943
55089490
TT
109442018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
10945 Tom Tromey <tom@tromey.com>
10946
10947 * target.h (memory_write_request_s): Remove typedef. Don't define
10948 VEC.
10949 (target_write_memory_blocks): Change argument to std::vector.
10950 (struct memory_write_request): Add constructor.
10951 * target-memory.c (compare_block_starting_address): Return bool.
10952 Change argument types.
10953 (claim_memory): Change arguments to use std::vector.
10954 (split_regular_and_flash_blocks, blocks_to_erase)
10955 (compute_garbled_blocks): Likewise.
10956 (cleanup_request_data, cleanup_write_requests_vector): Remove.
10957 (target_write_memory_blocks): Change argument to std::vector.
10958 * symfile.c (struct load_section_data): Add constructor and
10959 destructor. Use std::vector for "requests".
10960 (struct load_progress_data): Add initializers.
10961 (load_section_callback): Update. Use "new".
10962 (clear_memory_write_data): Remove.
10963 (generic_load): Update.
10964
0c305b61
AH
109652018-02-27 Alan Hayward <alan.hayward@arm.com>
10966
10967 * arch/aarch64.h: Use common/tdesc.h.
10968
c5196c92
MR
109692018-02-26 Maciej W. Rozycki <macro@mips.com>
10970
10971 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
10972 architecture with a 64-bit ABI.
10973
37c33887
MR
109742018-02-26 Maciej W. Rozycki <macro@mips.com>
10975
10976 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
10977 ahead of target description loading.
10978
d4dd3282
TT
109792018-02-26 Tom Tromey <tom@tromey.com>
10980
10981 * stack.c (backtrace_command_1): Update.
10982 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
10983 of "flags".
10984 * python/py-framefilter.c (py_print_frame)
10985 (gdbpy_apply_frame_filter): Change type of "flags".
10986 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
10987 of "flags".
10988 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
10989 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
10990 * extension.h (enum frame_filter_flag): Rename from
10991 frame_filter_flags.
10992 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
10993 (apply_ext_lang_frame_filter): Change type of "flags".
10994 * extension.c (apply_ext_lang_frame_filter): Change type of
10995 "flags".
10996 * extension-priv.h (struct extension_language_ops)
10997 <apply_frame_filter>: Change type of "flags".
10998
6893c19a
TT
109992018-02-26 Tom Tromey <tom@tromey.com>
11000
11001 PR python/16497:
11002 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11003 off-by-one in py_end computation.
11004 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11005 PRINT_MORE_FRAMES.
11006 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11007 constant.
11008
2ddeaf8a
TT
110092018-02-26 Tom Tromey <tom@tromey.com>
11010
11011 * dwarf2read.c (struct variant_field): New.
11012 (struct nextfield) <variant>: New field.
11013 (dwarf2_add_field): Handle DW_TAG_variant_part.
11014 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11015 discriminated union.
11016 (read_structure_type): Handle DW_TAG_variant_part.
11017 (handle_struct_member_die): New function, extracted from
11018 process_structure_scope. Handle DW_TAG_variant.
11019 (process_structure_scope): Handle discriminated unions. Call
11020 handle_struct_member_die.
11021
c9317f21
TT
110222018-02-26 Tom Tromey <tom@tromey.com>
11023
11024 * rust-lang.h (rust_last_path_segment): Declare.
11025 * rust-lang.c (rust_last_path_segment): Now public. Change
11026 contract.
11027 (struct disr_info): Remove.
11028 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11029 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11030 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11031 (rust_enum_p, rust_enum_variant): New function.
11032 (rust_underscore_fields): Remove "offset" parameter.
11033 (rust_print_enum): New function.
11034 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11035 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11036 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11037 enums.
11038 (rust_internal_print_type): New function, from rust_print_type.
11039 Remove enum code.
11040 (rust_print_type): Call rust_internal_print_type.
11041 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11042 Update enum handling.
11043 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11044 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11045 (rust_union_quirks): New functions.
11046 (process_full_comp_unit, process_full_type_unit): Call
11047 rust_union_quirks.
11048 (process_structure_scope): Update rust_unions if necessary.
11049
7c22600a
TT
110502018-02-26 Tom Tromey <tom@tromey.com>
11051
11052 * value.h (value_union_variant): Declare.
11053 * valops.c (value_union_variant): New function.
11054 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11055 (struct discriminant_info): New.
11056 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11057 enumerator.
11058 (struct main_type) <flag_discriminated_union>: New field.
11059
15ce8941
TT
110602018-02-26 Tom Tromey <tom@tromey.com>
11061
11062 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11063 unittests/unpack-selftests.c.
11064 * unittests/unpack-selftests.c: New file.
11065 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11066
48fbe735
YQ
110672018-02-26 Yao Qi <yao.qi@linaro.org>
11068
11069 * dwarf2read.c (struct partial_die_info) <read>: New method.
11070 (read_partial_die): Remove the declaration.
11071 (load_partial_dies): Update.
11072 (partial_die_info::partial_die_info):
11073 (read_partial_die): Change it to partial_die_info::read.
11074
52356b79
YQ
110752018-02-26 Yao Qi <yao.qi@linaro.org>
11076
11077 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11078 (fixup_partial_die): Remove declaration.
11079 (scan_partial_symbols): Update.
11080 (partial_die_parent_scope): Likewise.
11081 (partial_die_full_name): Likewise.
11082 (fixup_partial_die): Change it to partial_die_info::fixup.
11083
35cc7ed7
YQ
110842018-02-26 Yao Qi <yao.qi@linaro.org>
11085
11086 * dwarf2read.c (read_partial_die): Update the declaration.
11087 (load_partial_dies): Caller update.
11088 (read_partial_die): Remove one argument abbrev_len.
11089
6f06d47b
YQ
110902018-02-26 Yao Qi <yao.qi@linaro.org>
11091
11092 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11093 assignment operator.
11094 (load_partial_dies): Use ctor and copy ctor.
11095 (read_partial_die): Update.
11096 (dwarf2_cu::find_partial_die): Use ctor.
11097
d590ff25
YQ
110982018-02-26 Yao Qi <yao.qi@linaro.org>
11099
11100 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11101 (find_partial_die_in_comp_unit): Change it to
11102 dwarf2_cu::find_partial_die.
11103 (find_partial_die): Update.
11104
fd0a254f
YQ
111052018-02-26 Yao Qi <yao.qi@linaro.org>
11106
11107 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11108 is NULL.
11109
cd9983dd
YQ
111102018-02-26 Yao Qi <yao.qi@linaro.org>
11111
11112 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11113
f46cd62a
AH
111142018-02-26 Alan Hayward <alan.hayward@arm.com>
11115
11116 * arch/amd64.h: Use common/tdesc.h.
11117 * arch/i386.c: Likewise.
11118 * arch/i386.h: Likewise.
11119 * arch/tic6x.c: Likewise.
11120 * arch/tdesc.h: Move file from here...
11121 * common/tdesc.h: ...to here.
11122 * features/aarch64-core.c: Regenerate.
11123 * features/aarch64-fpu.c: Regenerate.
11124 * features/i386/32bit-avx.c: Regenerate.
11125 * features/i386/32bit-avx512.c: Regenerate.
11126 * features/i386/32bit-core.c: Regenerate.
11127 * features/i386/32bit-linux.c: Regenerate.
11128 * features/i386/32bit-mpx.c: Regenerate.
11129 * features/i386/32bit-pkeys.c: Regenerate.
11130 * features/i386/32bit-sse.c: Regenerate.
11131 * features/i386/64bit-avx.c: Regenerate.
11132 * features/i386/64bit-avx512.c: Regenerate.
11133 * features/i386/64bit-core.c: Regenerate.
11134 * features/i386/64bit-linux.c: Regenerate.
11135 * features/i386/64bit-mpx.c: Regenerate.
11136 * features/i386/64bit-pkeys.c: Regenerate.
11137 * features/i386/64bit-segments.c: Regenerate.
11138 * features/i386/64bit-sse.c: Regenerate.
11139 * features/i386/x32-core.c: Regenerate.
11140 * features/tic6x-c6xp.c: Regenerate.
11141 * features/tic6x-core.c: Regenerate.
11142 * features/tic6x-gp.c: Regenerate.
11143 * target-descriptions.c: Use common/tdesc.h.
11144 * target-descriptions.h: Likewise.
11145
9b292f68
TT
111462018-02-24 Tom Tromey <tom@tromey.com>
11147
11148 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11149 (try_thread_db_load_from_dir, thread_db_load_search): Use
11150 std::string.
11151 (info_auto_load_libthread_db_compare): Return bool. Change
11152 argument types.
11153 (info_auto_load_libthread_db): Use std::vector, std::string.
11154 Remove cleanups.
11155
281d762b
TT
111562018-02-24 Tom Tromey <tom@tromey.com>
11157
11158 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11159 std::string.
11160 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11161 std::string*.
11162 * gdbarch.c: Rebuild.
11163 * gdbarch.h: Rebuild.
11164 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11165 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11166 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11167 std::string*.
11168
9d8780f0
SM
111692018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11170
11171 * gdbtypes.h (sect_offset): Change type to uint64_t.
11172 (sect_offset_str): New function.
11173 * dwarf2read.c (create_addrmap_from_aranges): Use
11174 sect_offset_str.
11175 (error_check_comp_unit_head): Likewise.
11176 (create_debug_type_hash_table): Likewise.
11177 (read_cutu_die_from_dwo): Likewise.
11178 (init_cutu_and_read_dies): Likewise.
11179 (init_cutu_and_read_dies_no_follow): Likewise.
11180 (process_psymtab_comp_unit_reader): Likewise.
11181 (partial_die_parent_scope): Likewise.
11182 (peek_die_abbrev): Likewise.
11183 (process_queue): Likewise.
11184 (dwarf2_physname): Likewise.
11185 (read_namespace_alias): Likewise.
11186 (read_import_statement): Likewise.
11187 (create_dwo_cu_reader): Likewise.
11188 (create_cus_hash_table): Likewise.
11189 (lookup_dwo_cutu): Likewise.
11190 (inherit_abstract_dies): Likewise.
11191 (read_func_scope): Likewise.
11192 (read_call_site_scope): Likewise.
11193 (dwarf2_add_member_fn): Likewise.
11194 (read_common_block): Likewise.
11195 (read_module_type): Likewise.
11196 (read_typedef): Likewise.
11197 (read_subrange_type): Likewise.
11198 (load_partial_dies): Likewise.
11199 (read_partial_die): Likewise.
11200 (find_partial_die): Likewise.
11201 (read_str_index): Likewise.
11202 (dwarf2_string_attr): Likewise.
11203 (build_error_marker_type): Likewise.
11204 (lookup_die_type): Likewise.
11205 (dump_die_shallow): Likewise.
11206 (follow_die_ref): Likewise.
11207 (dwarf2_fetch_die_loc_sect_off): Likewise.
11208 (dwarf2_fetch_constant_bytes): Likewise.
11209 (follow_die_sig): Likewise.
11210 (get_signatured_type): Likewise.
11211 (get_DW_AT_signature_type): Likewise.
11212 (dwarf2_find_containing_comp_unit): Likewise.
11213 (set_die_type): Likewise.
11214
8ec57239
JB
112152018-02-21 John Baldwin <jhb@FreeBSD.org>
11216
11217 * arch/aarch64.c: Include "common-defs.h".
11218 * arch/amd64.c: Likewise.
11219 * arch/i386.c: Likewise.
11220
3eac2b65
TT
112212018-02-21 Tom Tromey <tom@tromey.com>
11222
11223 * value.h: (extract_field_op): Update.
11224 * eval.c (extract_field_op): Return a const char *.
11225 * expression.h (parse_expression_for_completion): Update.
11226 * completer.c (complete_expression): Update.
11227 (add_struct_fields): Make fieldname const.
11228 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11229 (mark_completion_tag, parse_exp_in_context_1): Update.
11230 (parse_expression_for_completion): Change "name" to
11231 unique_xmalloc_ptr*.
11232
6ccb583f
TT
112332018-02-21 Tom Tromey <tom@tromey.com>
11234
11235 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11236
c113ed0c
YQ
112372018-02-21 Yao Qi <yao.qi@linaro.org>
11238
11239 * avr-tdep.c (avr_read_pc): Change parameter type to
11240 readable_regcache.
11241 * gdbarch.sh (read_pc): Likewise.
11242 * gdbarch.c: Re-generated.
11243 * gdbarch.h: Re-generated.
11244 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11245 readable_regcache.
11246 * ia64-tdep.c (ia64_read_pc): Likewise.
11247 * mips-tdep.c (mips_read_pc): Likewise.
11248 * spu-tdep.c (spu_read_pc): Likewise.
11249
4c74fe6b
YQ
112502018-02-21 Yao Qi <yao.qi@linaro.org>
11251
11252 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11253 * regcache-dump.c: New file.
11254 * regcache.c: Move register_dump to regcache-dump.c.
11255 (maintenance_print_registers): Likewise.
11256 (maintenance_print_raw_registers): Likewise.
11257 (maintenance_print_cooked_registers): Likewise.
11258 (maintenance_print_register_groups): Likewise.
11259 (maintenance_print_remote_registers): Likewise.
11260 (_initialize_regcache): Likewise.
11261 * regcache.h (register_dump): Moved from regcache.c.
11262
796bb026
YQ
112632018-02-21 Yao Qi <yao.qi@linaro.org>
11264
11265 * regcache.c (regcache::regcache): Update.
11266 (regcache::invalidate): Move it to detached_regcache::invalidate.
11267 (get_thread_arch_aspace_regcache): Update.
11268 (regcache::raw_update): Update.
11269 (regcache::cooked_read): Remove some code.
11270 (regcache::cooked_read_value): Likewise.
11271 (regcache::raw_write): Remove assert on m_readonly_p.
11272 (regcache::raw_supply_integer): Move it to
11273 detached_regcache::raw_supply_integer.
11274 (regcache::raw_supply_zeroed): Likewise.
11275 * regcache.h (detached_regcache) <raw_supply_integer>: New
11276 declaration.
11277 <raw_supply_zeroed, invalidate>: Likewise.
11278 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11279 <invalidate>: Likewise.
11280 <m_readonly_p>: Removed.
11281
215c69dc
YQ
112822018-02-21 Yao Qi <yao.qi@linaro.org>
11283
11284 * infcmd.c (get_return_value): Let stop_regs point to
11285 get_current_regcache.
11286 * regcache.c (regcache::regcache): Remove.
11287 (register_dump_reg_buffer): New class.
11288 (regcache_print): Adjust.
11289 * regcache.h (regcache): Remove constructors.
11290
f3384e66
YQ
112912018-02-21 Yao Qi <yao.qi@linaro.org>
11292
11293 * regcache.c (class register_dump): New class.
11294 (register_dump_regcache, register_dump_none): New class.
11295 (register_dump_remote, register_dump_groups): New class.
11296 (regcache_print): Update.
11297 * regcache.h (regcache_dump_what): Move it to regcache.c.
11298 (regcache) <dump>: Remove.
11299
c8ec2f33
YQ
113002018-02-21 Yao Qi <yao.qi@linaro.org>
11301
11302 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11303 reg_buffer_rw *.
11304 (jit_unwind_reg_set_impl): Call raw_supply.
11305 (jit_frame_sniffer): Use reg_buffer_rw.
11306 * record-full.c (record_full_core_regbuf): Change its type.
11307 (record_full_core_open_1): Use reg_buffer_rw.
11308 (record_full_close): Likewise.
11309 (record_full_core_fetch_registers): Use regcache->raw_supply.
11310 (record_full_core_store_registers): Likewise.
11311 * regcache.c (regcache::get_register_status): Move it to
11312 reg_buffer.
11313 (regcache_raw_set_cached_value): Remove.
11314 (regcache::raw_set_cached_value): Remove.
11315 (regcache::raw_write): Call raw_supply.
11316 (regcache::raw_supply): Move it to reg_buffer_rw.
11317 * regcache.h (regcache_raw_set_cached_value): Remove.
11318 (reg_buffer_rw): New class.
11319
daf6667d
YQ
113202018-02-21 Yao Qi <yao.qi@linaro.org>
11321
11322 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11323 readonly_detached_regcache.
11324 (dummy_frame_prev_register): Use regcache->cooked_read.
11325 * frame.c (frame_save_as_regcache): Change return type.
11326 (frame_pop): Update.
11327 * frame.h (frame_save_as_regcache): Update declaration.
11328 * inferior.h (get_infcall_suspend_state_regcache): Update
11329 declaration.
11330 * infrun.c (infcall_suspend_state) <registers>: use
11331 readonly_detached_regcache.
11332 (save_infcall_suspend_state): Don't use regcache_dup.
11333 (get_infcall_suspend_state_regcache): Change return type.
11334 * linux-fork.c (struct fork_info) <savedregs>: Change to
11335 readonly_detached_regcache.
11336 <pc>: New field.
11337 (fork_save_infrun_state): Don't use regcache_dup.
11338 (info_checkpoints_command): Adjust.
11339 * mi/mi-main.c (register_changed_p): Update declaration.
11340 (mi_cmd_data_list_changed_registers): Use
11341 readonly_detached_regcache.
11342 (register_changed_p): Change parameter type to
11343 readonly_detached_regcache.
11344 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11345 readonly_detached_regcache.
11346 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11347 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11348 New.
11349 (regcache::save): Move it to reg_buffer.
11350 (regcache::restore): Change parameter type.
11351 (regcache_dup): Remove.
11352 * regcache.h (reg_buffer) <save>: New method.
11353 (readonly_detached_regcache): New class.
11354 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11355 readonly_detached_regcache.
11356 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11357
fc5b8736
YQ
113582018-02-21 Yao Qi <yao.qi@linaro.org>
11359
11360 * frame.c (frame_save_as_regcache): Use regcache method save.
11361 (frame_pop): Use regcache method restore.
11362 * infrun.c (restore_infcall_suspend_state): Likewise.
11363 * linux-fork.c (fork_load_infrun_state): Likewise.
11364 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11365 save.
11366 * regcache.c (regcache_save): Remove.
11367 (regcache::restore): More asserts.
11368 (regcache_cpy): Remove.
11369 * regcache.h (regcache_save): Remove the declaration.
11370 (regcache::restore): Move from private to public.
11371 Remove the friend declaration of regcache_cpy.
11372 (regcache_cpy): Remove declaration.
11373
849d0ba8
YQ
113742018-02-21 Yao Qi <yao.qi@linaro.org>
11375
11376 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11377 parameter type to 'readable_regcache *'.
11378 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11379 * arm-tdep.c (arm_neon_quad_read): Likewise.
11380 (arm_pseudo_read): Likewise.
11381 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11382 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11383 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11384 * gdbarch.c: Re-generated.
11385 * gdbarch.h: Re-generated.
11386 * gdbarch.sh (pseudo_register_read): Change parameter type to
11387 'readable_regcache *'.
11388 (pseudo_register_read_value): Likewise.
11389 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11390 (h8300_pseudo_register_read): Likewise.
11391 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11392 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11393 (i386_pseudo_register_read_into_value): Likewise.
11394 (i386_pseudo_register_read_value): Likewise.
11395 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11396 declaration.
11397 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11398 * m32c-tdep.c (m32c_raw_read): Likewise.
11399 (m32c_read_flg): Likewise.
11400 (m32c_banked_register): Likewise.
11401 (m32c_banked_read): Likewise.
11402 (m32c_sb_read): Likewise.
11403 (m32c_part_read): Likewise.
11404 (m32c_cat_read): Likewise.
11405 (m32c_r3r2r1r0_read): Likewise.
11406 (m32c_pseudo_register_read): Likewise.
11407 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11408 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11409 (mep_pseudo_cr64_read): Likewise.
11410 (mep_pseudo_register_read): Likewise.
11411 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11412 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11413 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11414 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11415 (regcache::cooked_read): Likewise.
11416 (regcache::cooked_read_value): Likewise.
11417 (regcache_cooked_read_signed):
11418 (regcache::cooked_read): Likewise.
11419 * regcache.h (readable_regcache): New class.
11420 (regcache): Inherit readable_regcache. Move some methods to
11421 readable_regcache.
11422 * rl78-tdep.c (rl78_pseudo_register_read): Change
11423 parameter type to 'readable_regcache *'.
11424 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11425 (e500_pseudo_register_read): Change parameter type to
11426 'readable_regcache *'.
11427 (dfp_pseudo_register_read): Likewise.
11428 (vsx_pseudo_register_read): Likewise.
11429 (efpr_pseudo_register_read): Likewise.
11430 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11431 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11432 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11433 (sh64_pseudo_register_read): Likewise.
11434 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11435 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11436 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11437 (spu_pseudo_register_read): Likewise.
11438 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11439 (xtensa_pseudo_register_read): Likewise.
11440
31716595
YQ
114412018-02-21 Yao Qi <yao.qi@linaro.org>
11442
11443 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11444 (regcache::arch): Move it to reg_buffer::arch.
11445 (regcache::register_buffer): Likewise.
11446 (regcache::assert_regnum): Likewise.
11447 (regcache::num_raw_registers): Likewise.
11448 * regcache.h (reg_buffer): New class.
11449 (regcache): Inherit reg_buffer.
11450
7104e59b
SM
114512018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11452
11453 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11454 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11455
2d8adcbd
MM
114562018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11457
11458 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11459
b5884fa7
AH
114602018-02-19 Alan Hayward <alan.hayward@arm.com>
11461
11462 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11463 (SFILES): Remove common/*.c files.
11464 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11465 * common/common.host: Add common reference.
11466 * configure.ac: Likewise.
11467 * configure: Regenerate.
11468
fd90ace4
YQ
114692018-02-16 Yao Qi <yao.qi@linaro.org>
11470
11471 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11472 (block_initialize_namespace): Use new.
11473 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11474 (dwarf2_free_objfile): Use delete.
11475 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11476 (copy_type_recursive): Use new.
11477 * gdb_obstack.h (allocate_on_obstack): New.
11478
85046ae2
YQ
114792018-02-15 Yao Qi <yao.qi@linaro.org>
11480
11481 PR gdb/22849
11482 * inferior.c (exit_inferior_1): Reset inf->control.
11483
355c559b
JB
114842018-02-15 Joel Brobecker <brobecker@adacore.com>
11485
11486 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11487 declaration.
11488
980548fd
PA
114892018-02-14 Pedro Alves <palves@redhat.com>
11490
11491 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11492 frame_cleanup_after_sniffer on exception.
11493
692d6f97
TT
114942018-02-14 Tom Tromey <tom@tromey.com>
11495
11496 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11497 const.
11498 (solib_bfd_open): Make pathname const.
11499 * solib.c (solib_bfd_open): Make pathname const.
11500 * solib-spu.c (spu_bfd_fopen): Make name const.
11501 (spu_bfd_open): Make pathname const.
11502 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11503 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11504
e0cc99a6
TT
115052018-02-14 Tom Tromey <tom@tromey.com>
11506
11507 * symfile.c (symfile_bfd_open): Update.
11508 * source.h (openp, source_full_path_of, find_and_open_source):
11509 Change argument type to unique_xmalloc_ptr.
11510 * source.c (openp): Take a unique_xmalloc_ptr.
11511 (source_full_path_of, find_and_open_source): Likewise.
11512 (open_source_file, symtab_to_fullname): Update.
11513 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11514 unique_xmalloc_ptr.
11515 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11516 (exec_file_find): Update.
11517 * psymtab.c (psymtab_to_fullname): Update.
11518 * nto-tdep.h (nto_find_and_open_solib): Update.
11519 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11520 unique_xmalloc_ptr.
11521 * exec.c (exec_file_attach): Update.
11522 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11523 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11524
b46a8d7c
TT
115252018-02-14 Tom Tromey <tom@tromey.com>
11526
11527 * solib.c: Include source.h.
11528 * nto-tdep.c: Include source.h.
11529 * mi/mi-cmd-env.c: Include source.h.
11530 * infcmd.c: Include source.h.
11531 * exec.c: Include source.h.
11532 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11533 (add_path, directory_switch, source_path, init_source_path): Move
11534 declarations...
11535 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11536 (add_path, directory_switch, source_path, init_source_path):
11537 ...here.
11538
797bc1cb
TT
115392018-02-14 Tom Tromey <tom@tromey.com>
11540
11541 * solist.h (exec_file_find, solib_find): Return
11542 unique_xmalloc_ptr.
11543 (solib_bfd_fopen): Take a const char *.
11544 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11545 (exec_file_find, solib_find): Likewise.
11546 (solib_bfd_fopen): Do not take ownership of "pathname".
11547 (solib_bfd_open): Use unique_xmalloc_ptr.
11548 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11549 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11550 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11551 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11552
f98b2e33
JB
115532018-02-14 Joel Brobecker <brobecker@adacore.com>
11554
11555 * ada-lang.c (name_match_type_from_name): Remove reference to
11556 ada_name_for_lookup in function's documentation.
11557 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11558
24b9144d
SM
115592018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11560
11561 * defs.h (enum openp_flags): New enum.
11562 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11563 Move to enum openp_flags.
11564 (openp_flags): New enum flags.
11565 (openp): Change parameter type to openp_flags.
11566 * source.c (openp): Change parameter type to openp_flags.
11567 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11568 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11569
387cd15b
SM
115702018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11571
11572 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11573 per-command.
11574
b303c6f6
AB
115752018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11576
11577 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11578 into...
11579 (class dwarf2_queue_guard): ...the destructor of this new class.
11580 (dw2_do_instantiate_symtab): Create instance of the new class
11581 dwarf2_queue_guard, remove cleanup.
11582
9c3630e9
TT
115832018-02-09 Tom Tromey <tom@tromey.com>
11584
11585 * source.c (find_source_lines): Don't reference past the end of
11586 the vector.
11587
c4e12631
MM
115882018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11589
11590 * remote.c (remote_btrace_maybe_reopen): Change error message.
11591 * btrace.c (btrace_enable): Likewise.
11592 (parse_xml_btrace): Likewise.
11593 (parse_xml_btrace_conf): Likewise.
11594
88711fbf
MM
115952018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11596
11597 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11598 (linux_enable_pt, linux_enable_bts): Call
11599 diagnose_perf_event_open_fail.
11600
17ad2a4f
MM
116012018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11602
11603 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11604 Remove parameter and change return type. Update callers. Move it.
11605 (linux_enable_bts, linux_enable_pt): Improve error message.
11606 (linux_enable_pt): Remove zero buffer size check.
11607 (linux_enable_btrace): Improve error messages. Remove NULL return
11608 check.
11609
de6242d3
MM
116102018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11611
11612 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11613 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11614 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11615 (linux_supports_pt, linux_supports_btrace): Remove.
11616 (linux_enable_bts): Call cpu_supports_bts.
11617 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11618 * remote.c (remote_supports_btrace): Remove.
11619 (init_remote_ops): Remove remote_supports_btrace.
11620 * target-delegates.c: Regenerated.
11621 * target.c (target_supports_btrace): Remove.
11622 * target.h (target_ops) <to_supports_btrace>: Remove
11623 (target_supports_btrace): Remove.
11624 * x86-linux-nat.c (x86_linux_create_target): Remove
11625 linux_supports_btrace.
11626
9ee23a85
MM
116272018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11628
11629 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11630 btrace failed.
11631 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11632 exception and use message in own exception.
11633
5c3284c1
MM
116342018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11635
11636 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11637 (perf_event_pt_event_type): Use gdb_file_up.
11638 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11639 scoped_fd, and scoped_mmap.
11640
84696f37
MM
116412018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11642
11643 * common/scoped_mmap.h: New.
11644 * unittests/scoped_mmap-selftest.c: New.
11645 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11646 unittests/scoped_mmap-selftest.c.
11647
ea4a0888
MM
116482018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11649
11650 * common/scoped_fd.h: New.
11651 * unittests/scoped_fd-selftest.c: New.
11652 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11653 unittests/scoped_fd-selftest.c.
11654
869e8290
TT
116552018-02-09 Tom Tromey <tom@tromey.com>
11656
11657 * auto-load.c (auto_load_section_scripts): Use
11658 gdb::unique_xmalloc_ptr.
11659
a37a2ae7
TT
116602018-02-09 Tom Tromey <tom@tromey.com>
11661
11662 * auto-load.c (execute_script_contents): Use std::string.
11663
4e725347
JB
116642018-02-09 Joel Brobecker <brobecker@adacore.com>
11665
11666 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11667 Python function, rather than a new command.
11668
9a897d43
TT
116692018-02-08 Tom Tromey <tom@tromey.com>
11670
11671 * solib.c (solib_find_1): Use std::string.
11672 (solib_bfd_fopen): Use unique_xmalloc_ptr.
11673
58ef3771
TT
116742018-02-08 Tom Tromey <tom@tromey.com>
11675
11676 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11677
a9abc434
TT
116782018-02-08 Tom Tromey <tom@tromey.com>
11679
11680 * source.c (find_source_lines): Use gdb::def_vector.
11681
84f27c6f
TT
116822018-02-08 Tom Tromey <tom@tromey.com>
11683
11684 * macrocmd.c (struct temporary_macro_definition): New.
11685 (macro_define_command): Use temporary_macro_definition. Remove
11686 cleanups.
11687 (free_macro_definition_ptr): Remove.
11688
0354904b
TT
116892018-02-08 Tom Tromey <tom@tromey.com>
11690
11691 * macroexp.c (maybe_expand): Use std::string.
11692
1739cf24
TT
116932018-02-08 Tom Tromey <tom@tromey.com>
11694
11695 * macroexp.c (struct macro_buffer): Add initializers for some
11696 members.
11697 (init_buffer, init_shared_buffer, free_buffer)
11698 (free_buffer_return_text): Remove.
11699 (macro_buffer): New constructors.
11700 (~macro_buffer): New destructor.
11701 (macro_buffer::set_shared): New method.
11702 (macro_buffer::resize_buffer, macro_buffer::appendc)
11703 (macro_buffer::appendmem): Now methods, not free functions.
11704 (set_token, append_tokens_without_splicing, stringify)
11705 (macro_stringify): Update.
11706 (gather_arguments): Change return type. Remove argc_p argument,
11707 add args_ptr argument. Use std::vector.
11708 (substitute_args): Remove argc argument. Accept std::vector.
11709 (expand): Update. Use std::vector.
11710 (scan, macro_expand, macro_expand_next): Update.
11711
f6c2623e
TT
117122018-02-08 Tom Tromey <tom@tromey.com>
11713
11714 * symtab.c (default_collect_symbol_completion_matches_break_on):
11715 Use unique_xmalloc_ptr.
11716 * macroscope.h: (sal_macro_scope, user_macro_scope)
11717 (default_macro_scope): Return unique_xmalloc_ptr.
11718 * macroscope.c (sal_macro_scope, user_macro_scope)
11719 (default_macro_scope): Return unique_xmalloc_ptr.
11720 * macroexp.h (macro_expand, macro_expand_once): Return
11721 unique_xmalloc_ptr.
11722 * macroexp.c (macro_expand, macro_expand_once): Return
11723 unique_xmalloc_ptr.
11724 * macrocmd.c (macro_expand_command, macro_expand_once_command)
11725 (info_macro_command, info_macros_command): Use
11726 unique_xmalloc_ptr.
11727 * compile/compile-c-support.c (write_macro_definitions): Use
11728 unique_xmalloc_ptr.
11729 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11730
c2e0e465
SM
117312018-02-07 Simon Marchi <simon.marchi@ericsson.com>
11732
11733 * value.c (value_static_field): Assign field type instead of
11734 containing type when returning an optimized out value.
11735
3f8c94b4
YQ
117362018-02-06 Yao Qi <yao.qi@linaro.org>
11737
11738 * ft32-tdep.c (ft32_read_pc): Remove.
11739 (ft32_write_pc): Remove.
11740 (ft32_gdbarch_init): Update.
11741 * m32r-tdep.c (m32r_read_pc): Remove.
11742 (m32r_gdbarch_init): Update.
11743 * mep-tdep.c (mep_read_pc): Remove.
11744 (mep_gdbarch_init): Update.
11745 * microblaze-tdep.c (microblaze_write_pc): Remove.
11746 (microblaze_gdbarch_init): Update.
11747 * mn10300-tdep.c (mn10300_read_pc): Remove.
11748 (mn10300_write_pc): Remove.
11749 (mn10300_gdbarch_init): Update.
11750 * moxie-tdep.c (moxie_read_pc): Remove.
11751 (moxie_write_pc): Remove.
11752 (moxie_gdbarch_init): Update.
11753
bca65a23
YQ
117542018-02-06 Yao Qi <yao.qi@linaro.org>
11755
11756 * expprint.c (print_subexp_standard): Handle
11757 OP_F77_UNDETERMINED_ARGLIST.
11758 (dump_subexp_body_standard): Likewise.
11759
583e3f90 117602018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 11761
583e3f90
YQ
11762 * target-descriptions.c (tdesc_element_visitor) Add empty
11763 implementations.
b8df6ca7
AH
11764 (tdesc_type): Move make_gdb_type from here.
11765 (tdesc_type_builtin): Likewise.
11766 (tdesc_type_vector): Likewise.
11767 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11768 (make_gdb_type_struct): Move from tdesc_type_with_fields.
11769 (make_gdb_type_union): Likewise.
11770 (make_gdb_type_flags): Likewise.
11771 (make_gdb_type_enum): Likewise.
11772 (make_gdb_type): New function.
11773 (tdesc_register_type): Use static make_gdb_type.
11774
e813d34a
RK
117752018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11776
11777 * infcmd.c (default_print_one_register_info): Align natural-format
11778 column values consistently one under another.
11779 (pad_to_column): New function.
11780
0eb876f5
JB
117812018-02-05 Joel Brobecker <brobecker@adacore.com>
11782
11783 * dwarf2read.c (dwarf2_physname): Move commment.
11784
0625771b
LS
117852018-02-01 Leszek Swirski <leszeks@google.com>
11786
11787 * varobj.c (varobj_formatted_print_options): Allow recursive
11788 pretty printing if pretty printing is enabled.
11789
59498c30
LS
117902018-02-01 Leszek Swirski <leszeks@google.com>
11791
11792 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11793 names after a structop as a filename.
11794
2d9e6acb
YQ
117952018-02-01 Yao Qi <yao.qi@linaro.org>
11796
11797 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11798 (arm_record_coproc_data_proc): Likewise.
11799
df95a9cf
YQ
118002018-02-01 Yao Qi <yao.qi@linaro.org>
11801
11802 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11803
07e5f5cf
NP
118042018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11805
11806 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11807 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11808
3045b475
PA
118092018-01-31 Pedro Alves <palves@redhat.com>
11810
11811 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11812 * inflow.c (child_terminal_save_inferior): Wrap reference to
11813 tcgetpgrp in HAVE_TERMIOS_H.
11814 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11815 _WIN32.
11816 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11817 always iterate over all inferiors.
11818 (gdbsim_cntrl_c): Adjust.
11819 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11820
929b5ad4
JB
118212018-01-31 Joel Brobecker <brobecker@adacore.com>
11822
11823 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11824 index type is objfile-owned if the element type is as well.
11825
29236ca2
JB
118262018-01-31 Joel Brobecker <brobecker@adacore.com>
11827
11828 GDB 8.1 released.
11829
c81e8879
PR
118302018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11831
11832 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11833 "features/s390x-linux64.c".
11834 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11835 s390_linux32 and s390x_linux64.
11836 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11837 default tdesc.
11838 * s390-tdep.c: Include "features/s390-linux32.c" and
11839 "features/s390x-linux64.c".
11840 (s390_tdesc_valid): Add check for tdesc_has_registers.
11841 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11842 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11843 tdesc_s390x_linux64.
11844 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11845 tdesc_s390x_linux64 to...
11846 * s390-tdep.h: ...here.
11847
e671cd59
PA
118482018-01-30 Pedro Alves <palves@redhat.com>
11849
11850 PR gdb/13211
11851 * config.in, configure: Regenerate.
11852 * configure.ac: Check for getpgid.
11853 * go32-nat.c (go32_pass_ctrlc): New.
11854 (go32_target): Install it.
11855 * inf-child.c (inf_child_target): Install
11856 child_terminal_save_inferior, child_pass_ctrlc and
11857 child_interrupt.
11858 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11859 (inf_ptrace_target): No longer install it.
11860 * infcmd.c (interrupt_target_1): Adjust.
11861 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11862 (child_interrupt): Declare.
11863 (inferior::terminal_state): New.
11864 * inflow.c (struct terminal_info): Update comments.
11865 (inferior_process_group): Delete.
11866 (terminal_is_ours): Delete.
11867 (gdb_tty_state): New.
11868 (child_terminal_init): Adjust.
11869 (is_gdb_terminal, sharing_input_terminal_1)
11870 (sharing_input_terminal): New functions.
11871 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
11872 Set the process's actual process group in the foreground if
11873 possible. Handle is_ours_for_output/is_ours distinction. Don't
11874 mark terminal as the inferior's if not sharing GDB's terminal.
11875 Don't check attach_flag.
11876 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11877 pass down a target_terminal_state.
11878 (child_terminal_save_inferior): New, factored out from ...
11879 (child_terminal_ours_1): ... this. Handle
11880 target_terminal_state::is_ours_for_output.
11881 (child_interrupt, child_pass_ctrlc): New.
11882 (inflow_inferior_exit): Clear the inferior's terminal_state.
11883 (copy_terminal_info): Copy the inferior's terminal state.
11884 (_initialize_inflow): Remove reference to terminal_is_ours.
11885 * inflow.h (inferior_process_group): Delete.
11886 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11887 * procfs.c (procfs_target): Don't install procfs_interrupt.
11888 (procfs_interrupt): Delete.
11889 * remote.c (remote_serial_quit_handler): Adjust.
11890 (remote_interrupt): Remove ptid parameter. Adjust.
11891 * target-delegates.c: Regenerate.
11892 * target.c: Include "terminal.h".
11893 (target_terminal::terminal_state): Rename to ...
11894 (target_terminal::m_terminal_state): ... this.
11895 (target_terminal::init): Adjust.
11896 (target_terminal::inferior): Adjust to per-inferior
11897 terminal_state.
11898 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
11899 (target_terminal::ours, target_terminal::ours_for_output): Use
11900 target_terminal_is_ours_kind.
11901 (target_interrupt): Remove ptid parameter. Adjust.
11902 (default_target_pass_ctrlc): Adjust.
11903 * target.h (target_ops::to_terminal_save_inferior): New field.
11904 (target_ops::to_interrupt): Remove ptid_t parameter.
11905 (target_interrupt): Remove ptid_t parameter. Update comment.
11906 (target_pass_ctrlc): Update comment.
11907 * target/target.h (target_terminal_state): New scoped enum,
11908 factored out of ...
11909 (target_terminal::terminal_state): ... here.
11910 (target_terminal::inferior): Update comments.
11911 (target_terminal::restore_inferior): New.
11912 (target_terminal::is_inferior, target_terminal::is_ours)
11913 (target_terminal::is_ours_for_output): Adjust.
11914 (target_terminal::scoped_restore_terminal_state): Adjust to
11915 rename, and call restore_inferior() instead of inferior().
11916 (target_terminal::scoped_restore_terminal_state::m_state): Change
11917 type.
11918 (target_terminal::terminal_state): Rename to ...
11919 (target_terminal::m_terminal_state): ... this and change type.
11920
9c3a5d93
PA
119212018-01-30 Pedro Alves <palves@redhat.com>
11922
11923 * linux-nat.c (wait_for_signal): New function.
11924 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
11925 directly.
11926 (async_terminal_is_ours)
11927 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
11928 (linux_nat_add_target): Don't override
11929 to_terminal_inferior/to_terminal_ours.
11930
69ab5edb
SDJ
119312018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
11932
11933 * remote.c (remote_follow_fork): Don't call "detach_inferior".
11934
fc8e7e75
SM
119352018-01-28 Simon Marchi <simon.marchi@ericsson.com>
11936
11937 * dwarf2read.c (free_dwo_files): Add forward-declaration.
11938 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
11939 dwarf2_per_objfile_free here.
11940 (dwarf2_per_objfile_free): Remove.
11941 (_initialize_dwarf2_read): Don't register
11942 dwarf2_per_objfile_free as a registry cleanup.
11943
b2a426e2
EZ
119442018-01-27 Eli Zaretskii <eliz@gnu.org>
11945
11946 Avoid compilation errors in MinGW native builds
11947
11948 The error is triggered by including python-internal.h, and the
11949 error message is:
11950
11951 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
11952 from build-gnulib/import/math.h:27,
11953 from d:/usr/Python26/include/pyport.h:235,
11954 from d:/usr/Python26/include/Python.h:58,
11955 from python/python-internal.h:94,
11956 from python/py-arch.c:24:
11957 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
11958 using ::hypot;
11959 ^~~~~
11960
11961 This happens because Python headers define 'hypot' to expand t
11962 '_hypot' in the Windows builds.
11963 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
11964 'hypoth'. This avoids a compilation error.
11965
0bdd8eac
AH
119662018-01-26 Alan Hayward <alan.hayward@arm.com>
11967
11968 * MAINTAINERS (Write After Approval): Fix ordering.
11969
56ae9dc3
AH
119702018-01-26 Alan Hayward <alan.hayward@arm.com>
11971
11972 * MAINTAINERS (Write After Approval): Add Alan Hayward.
11973
7433498b
AM
119742018-01-26 Alan Modra <amodra@gmail.com>
11975
11976 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
11977 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
11978 Remove nop. Make const. Comment.
11979 (powerpc32_plt_stub_so_2): New.
11980 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
11981 Correct count. Update uses.
11982 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
11983 Move common code reading PLT entry word. Correct
11984 powerpc32_plt_stub PLT address calculation.
11985 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
11986 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
11987 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
11988 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
11989 (ppc64_standard_linkage8): Likewise.
11990 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
11991 Correct insns description.
11992 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
11993
0f59d5fc
PA
119942018-01-24 Pedro Alves <palves@redhat.com>
11995
11996 GCC PR libstdc++/83906
11997 * gdbtypes.c (operator==(const dynamic_prop &,
11998 const dynamic_prop &)): New.
11999 (operator==(const range_bounds &, const range_bounds &)): New.
12000 (check_types_equal): Use them instead of memcmp.
12001 * gdbtypes.h (operator==(const dynamic_prop &,
12002 const dynamic_prop &)): Declare.
12003 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12004 (operator==(const range_bounds &, const range_bounds &)): Declare.
12005 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12006
ef8914a4
PR
120072018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12008
12009 * s390-linux-tdep.c (s390_record_address_mask)
12010 (s390_record_calc_disp_common, s390_record_calc_disp)
12011 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12012 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12013 (s390_process_record): Move to s390-tdep.c.
12014 (s390_linux_init_abi_any): Adjust.
12015 * s390-tdep.c (s390_record_address_mask)
12016 (s390_record_calc_disp_common, s390_record_calc_disp)
12017 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12018 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12019 (s390_process_record): Moved from s390-linux-tdep.c
12020 (s390_gdbarch_init): Adjust.
12021
d6e58945
PR
120222018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12023
12024 * s390-linux-nat.c (s390-tdep.h): New include.
12025 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12026 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12027 (ALLDEPFILES): Add s390-tdep.c.
12028 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12029 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12030 * s390-tdep.h: ...this. New file.
12031 * s390-linux-tdep.c (s390-tdep.h): New include.
12032 (_initialize_s390_tdep): Rename to...
12033 (_initialize_s390_linux_tdep): ...this and adjust.
12034 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12035 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12036 s390-tdep.h.
12037 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12038 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12039 (s390_is_partial_instruction, s390_software_single_step)
12040 (is_non_branch_ril, s390_displaced_step_copy_insn)
12041 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12042 (s390_prologue_data, s390_addr, s390_store, s390_load)
12043 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12044 (s390_register_call_saved, s390_guess_tracepoint_registers)
12045 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12046 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12047 (s390_pseudo_register_name, s390_pseudo_register_type)
12048 (s390_pseudo_register_read, s390_pseudo_register_write)
12049 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12050 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12051 (s390_addr_bits_remove, s390_address_class_type_flags)
12052 (s390_address_class_type_flags_to_name)
12053 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12054 (s390_function_arg_float, s390_function_arg_vector)
12055 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12056 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12057 (s390_frame_align, s390_register_return_value, s390_return_value)
12058 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12059 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12060 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12061 (s390_trad_frame_prev_register, s390_unwind_cache)
12062 (s390_prologue_frame_unwind_cache)
12063 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12064 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12065 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12066 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12067 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12068 (s390_frame_base_address, s390_local_base_address)
12069 (s390_frame_base, s390_gcc_target_options)
12070 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12071 (s390_validate_reg_range, s390_tdesc_valid)
12072 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12073 * s390-tdep.c: ...this. New file.
12074
9c0b896e
PR
120752018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12076
12077 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12078 (s390_process_record, s390_gdbarch_tdep_alloc)
12079 (s390_linux_init_abi_any): Use/set new hook.
12080
7042632b
PR
120812018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12082
12083 * s390-linux-tdep.c (osabi.h): New include.
12084 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12085 (s390_linux_init_abi_any): New functions.
12086 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12087
650f5e13
PR
120882018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12089
12090 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12091 tdesc_has_registers check
12092
47c9317e
PR
120932018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12094
12095 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12096 (s390_validate_reg_range): New macro.
12097 (s390_gdbarch_init): Adjust.
12098
095085d8
PR
120992018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12100
12101 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12102 (s390_gdbarch_tdep_alloc): Adjust.
12103 (s390_gdbarch_init): Adjust.
12104
ab9bcc67
PR
121052018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12106
12107 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12108 <have_tdb>: Change type to bool.
12109 (s390_gdbarch_tdep_alloc): Adjust.
12110 (s390_gdbarch_init): Adjust.
12111
21f6f5ff
PR
121122018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12113
12114 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12115 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12116 (s390_gdbarch_tdep_alloc): New function.
12117 (s390_gdbarch_init): Allocate tdep at start and use its fields
12118 instead of separate variables.
12119
0eb97953
PR
121202018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12121
12122 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12123 when looking for cached gdbarch and add comment for remaining.
12124
5c319bb2
PA
121252018-01-22 Pedro Alves <palves@redhat.com>
12126 Sergio Durigan Junior <sergiodj@redhat.com>
12127
12128 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12129 case.
12130
d65ce302
MR
121312018-01-22 Maciej W. Rozycki <macro@mips.com>
12132
12133 * MAINTAINERS: Update my company e-mail address.
12134
ec7a5fcb
YQ
121352018-01-22 Yao Qi <yao.qi@linaro.org>
12136
12137 * regcache.c (cooked_write_test): New function.
12138 (_initialize_regcache): Register the test.
12139
11f57cb6
YQ
121402018-01-22 Yao Qi <yao.qi@linaro.org>
12141
12142 * ia64-tdep.c (ia64_pseudo_register_read): Call
12143 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12144 * m32c-tdep.c (m32c_cat_read): Likewise.
12145 (m32c_r3r2r1r0_read): Likewise.
12146 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12147 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12148
03f50fc8
YQ
121492018-01-22 Yao Qi <yao.qi@linaro.org>
12150
12151 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12152 method raw_read instead of regcache_raw_read.
12153 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12154 * arm-tdep.c (arm_neon_quad_read): Likewise.
12155 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12156 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12157 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12158 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12159 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12160 (i386_pseudo_register_read_into_value): Likewise.
12161 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12162 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12163 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12164 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12165 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12166 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12167 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12168 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12169 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12170
dc711524
YQ
121712018-01-22 Yao Qi <yao.qi@linaro.org>
12172
12173 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12174 * configure.tgt: Remove target mt.
12175 * mt-tdep.c: Remove.
12176 * regcache.c (cooked_read_test): Remove the check for mt.
12177
3f5a868b
YQ
121782018-01-22 Yao Qi <yao.qi@linaro.org>
12179
12180 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12181 instead of gdbarch_pseudo_register_read_value.
12182
de4cb04a
JB
121832018-01-22 Joel Brobecker <brobecker@adacore.com>
12184
12185 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12186 language is Ada.
12187
a9e40818
JB
121882018-01-22 Joel Brobecker <brobecker@adacore.com>
12189
12190 * linespec.c (create_sals_line_offset): Remove code that preserved
12191 the symtab_and_line's line number.
12192
e707fc44
AB
121932018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12194
12195 * varobj.c (varobj_create): Don't set valid_block when creating a
12196 floating varobj.
12197
03d0bf7b
AB
121982018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12199
12200 * varobj.c (varobj_create): Remove out of date comment.
12201
ae451627
AB
122022018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12203
12204 PR mi/20395
12205 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12206 updating innermost block.
12207 * parse.c (innermost_block_tracker::update): Take extra type
12208 parameter, and check types match before updating innermost block.
12209 (write_dollar_variable): Update innermost block for registers.
12210 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12211 (innermost_block_tracker::innermost_block_tracker): Initialise
12212 m_types member.
12213 (innermost_block_tracker::reset): Take type parameter.
12214 (innermost_block_tracker::update): Take type parameter, and pass
12215 type through as needed.
12216 (innermost_block_tracker::m_types): New member.
12217 * varobj.c (varobj_create): Pass type when reseting innermost
12218 block.
12219
aee1fcdf
AB
122202018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12221
12222 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12223 * ada-lang.c (resolve_subexp): Likewise.
12224 * breakpoint.c (set_breakpoint_condition) Likewise.
12225 (watch_command_1) Likewise.
12226 * c-exp.y (variable): Likewise.
12227 * d-exp.y (PrimaryExpression): Likewise.
12228 * f-exp.y (variable): Likewise.
12229 * go-exp.y (variable): Likewise.
12230 * m2-exp.y (variable): Likewise.
12231 * objfiles.c (objfile::~objfile): Likewise.
12232 * p-exp.y (variable): Likewise.
12233 * parse.c (innermost_block): Change type.
12234 * parser-defs.h (class innermost_block_tracker): New.
12235 (innermost_block): Change to innermost_block_tracker.
12236 * printcmd.c (display_command): Switch to innermost_block API.
12237 (do_one_display): Likewise.
12238 * rust-exp.y (do_one_display): Likewise.
12239 * symfile.c (clear_symtab_users): Likewise.
12240 * varobj.c (varobj_create): Switch to innermost_block API, replace
12241 use of innermost_block with block stored on varobj object.
12242
396af9a1
AB
122432018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12244
12245 * expression.h (innermost_block): Remove declaration.
12246 * varobj.c: Add 'parser-defs.h' include.
12247
fcfcc376
TT
122482018-01-19 Tom Tromey <tom@tromey.com>
12249
12250 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12251 symbols in the static and global blocks.
12252
5a6c3296
JC
122532018-01-19 James Clarke <jrtc27@jrtc27.com>
12254
12255 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12256 gdb_ptrace.h, and move including gdb_wait.h ...
12257 * nat/linux-ptrace.h: ... to here.
12258
bc09b0c1
SM
122592018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12260
12261 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12262 inf_ptrace_detach_success.
12263 (inf_ptrace_detach_success): Add inferior parameter, use it
12264 instead of inferior_ptid, pass it to detach_inferior.
12265 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12266 parameter.
12267 * inferior.c (detach_inferior): Add overload that takes an
12268 inferior object.
12269 * inferior.h (detach_inferior): Likewise.
12270 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12271 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12272 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12273
6e1e1966
SM
122742018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12275
12276 * target.h (struct target_ops) <to_detach>: Add inferior
12277 parameter.
12278 (target_detach): Likewise.
12279 * target.c (dispose_inferior): Pass inferior down.
12280 (target_detach): Pass inferior down. Assert that it is equal to
12281 the current inferior.
12282 * aix-thread.c (aix_thread_detach): Pass inferior down.
12283 * corefile.c (core_file_command): Pass current_inferior() down.
12284 * corelow.c (core_detach): Add inferior parameter.
12285 * darwin-nat.c (darwin_detach): Likewise.
12286 * gnu-nat.c (gnu_detach): Likewise.
12287 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12288 * infcmd.c (detach_command): Pass current_inferior() down to
12289 target_detach.
12290 * infrun.c (follow_fork_inferior): Pass parent_inf to
12291 target_detach.
12292 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12293 target_detach.
12294 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12295 * linux-thread-db.c (thread_db_detach): Likewise.
12296 * nto-procfs.c (procfs_detach): Likewise.
12297 * procfs.c (procfs_detach): Likewise.
12298 * record.c (record_detach): Likewise.
12299 * record.h (struct inferior): Forward-declare.
12300 (record_detach): Add inferior parameter.
12301 * remote-sim.c (gdbsim_detach): Likewise.
12302 * remote.c (remote_detach_1): Likewise.
12303 (remote_detach): Likewise.
12304 (extended_remote_detach): Likewise.
12305 * sol-thread.c (sol_thread_detach): Likewise.
12306 * target-debug.h (target_debug_print_inferior_p): New macro.
12307 * target-delegates.c: Re-generate.
12308 * top.c (kill_or_detach): Pass inferior down to target_detach.
12309 * windows-nat.c (windows_detach): Add inferior parameter.
12310
6bd6f3b6
SM
123112018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12312
12313 * target.h (struct target_ops) <to_detach>: Remove args
12314 parameter.
12315 (target_detach): Likewise.
12316 * target.c (dispose_inferior): Adjust.
12317 (target_detach): Remove args parameter, adjust.
12318 * aix-thread.c (aix_thread_detach): Adjust.
12319 * corefile.c (core_file_command): Adjust.
12320 * corelow.c (core_detach): Adjust.
12321 * darwin-nat.c (darwin_detach): Adjust.
12322 * gnu-nat.c (gnu_detach): Adjust.
12323 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12324 * infcmd.c (detach_command): Adjust
12325 * infrun.c (follow_fork_inferior): Adjust.
12326 (handle_vfork_child_exec_or_exit): Adjust.
12327 * linux-fork.c (linux_fork_detach): Remove args parameter.
12328 * linux-fork.h (linux_fork_detach): Likewise.
12329 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12330 * linux-thread-db.c (thread_db_detach): Likewise.
12331 * nto-procfs.c (procfs_detach): Likewise.
12332 * procfs.c (procfs_detach): Likewise.
12333 (do_detach): Remove signo parameter.
12334 * record.c (record_detach): Remove args parameter.
12335 * record.h (record_detach): Likewise.
12336 * remote-sim.c (gdbsim_detach): Likewise.
12337 * remote.c (remote_detach_1): Likewise.
12338 (remote_detach): Likewise.
12339 (extended_remote_detach): Likewise.
12340 * sol-thread.c (sol_thread_detach): Likewise.
12341 * target-delegates.c: Re-generate.
12342 * top.c (struct qt_args) <args>: Remove field.
12343 (kill_or_detach): Don't pass args.
12344 (quit_force): Don't set args.
12345 * windows-nat.c (windows_detach): Remove args parameter.
12346
88af8ea8
YQ
123472018-01-19 Yao Qi <yao.qi@linaro.org>
12348
12349 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12350 (arm_linux_init_abi): Install it.
12351
dea445b9
YQ
123522018-01-19 Yao Qi <yao.qi@linaro.org>
12353
12354 * osabi.c (gdb_osabi_names): Extend the regexp for
12355 arm-linux-gnueabihf.
12356
4a17f768
YQ
123572018-01-18 Yao Qi <yao.qi@linaro.org>
12358
12359 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12360 m_abbrevs.
12361 (abbrev_table::add_abbrev): Update.
12362 (abbrev_table::lookup_abbrev): Update.
12363
d679c21a
YQ
123642018-01-18 Yao Qi <yao.qi@linaro.org>
12365
12366 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12367
7d937cad
SDJ
123682018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12369
12370 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12371 to "std::string".
12372
9e14690d
TT
123732018-01-17 Tom Tromey <tom@tromey.com>
12374
12375 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12376
50a82047
TT
123772018-01-17 Tom Tromey <tom@tromey.com>
12378
12379 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12380 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12381 (create_array_type_with_stride): Update.
12382 * dwarf2read.c (set_die_type): Update.
12383
c89b44cd
TT
123842018-01-17 Tom Tromey <tom@tromey.com>
12385
12386 * dwarf2read.c (delayed_method_info): Remove typedef.
12387 (dwarf2_cu::method_info): Now a std::vector.
12388 (add_to_method_list): Update.
12389 (free_delayed_list): Remove.
12390 (compute_delayed_physnames): Update.
12391 (process_full_comp_unit, process_full_type_unit): Clear the method
12392 list. Remove cleanups.
12393 (psymtab_include_file_name): Add name_holder parameter. Use
12394 unique_xmalloc_ptr.
12395 (dwarf_decode_lines): Update.
12396
fcd3b13d
SM
123972018-01-17 Tom Tromey <tom@tromey.com>
12398 Simon Marchi <simon.marchi@ericsson.com>
12399
12400 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12401 (dwarf2_per_objfile::free_cached_comp_units)
12402 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12403 (init_cutu_and_read_dies_no_follow): Update.
12404 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12405 (dwarf2_cu::~dwarf2_cu): New.
12406 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12407 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12408
685af9cd
TT
124092018-01-17 Tom Tromey <tom@tromey.com>
12410 Simon Marchi <simon.marchi@ericsson.com>
12411
12412 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12413 (struct die_reader_specs) <abbrev_table>: New member.
12414 (struct abbrev_table): Add constructor.
12415 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12416 <abbrev_obstack>: Now an auto_obstack.
12417 (abbrev_table_up): New typedef.
12418 (init_cu_die_reader): Add abbrev_table parameter.
12419 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12420 Add result_dwo_abbrev_table.
12421 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12422 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12423 Update.
12424 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12425 parameter.
12426 (skip_children): Update.
12427 (abbrev_table::alloc_abbrev): Rename from
12428 abbrev_table_alloc_abbrev.
12429 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12430 (abbrev_table::lookup_abbrev): Rename from
12431 abbrev_table_lookup_abbrev.
12432 (abbrev_table_read_table): Return abbrev_table_up.
12433 (abbrev_table_free, abbrev_table_free_cleanup)
12434 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12435 (load_partial_dies): Update.
12436
5e2db402
TT
124372018-01-17 Tom Tromey <tom@tromey.com>
12438
12439 * dwarf2read.c (dwarf2_compute_name): Update comment.
12440 (read_func_scope, read_variable): Update.
12441 (new_symbol): Remove.
12442 (new_symbol_full): Rename to new_symbol.
12443
ee7f689e 124442018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
12445
12446 PR gdb/16577
12447 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12448 a warning instead of throwing an error, set section size to 0 and return
12449 NULL.
12450 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12451
4d9b86e1
SM
124522018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12453
12454 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12455 std::string.
12456 (linux_ptrace_attach_fail_reason_string): Likewise.
12457 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12458 Likewise.
12459 (linux_ptrace_attach_fail_reason_string): Likewise.
12460 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12461
a7b2d0fb
SM
124622018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12463
12464 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12465
f517c180
EA
124662018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12467
12468 PR gdb/21559
12469 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12470 checking for fs_base/gs_base fields in struct user_regs_struct.
12471 * configure: Regenerate.
12472
7045b1ca
YQ
124732018-01-17 Yao Qi <yao.qi@linaro.org>
12474
12475 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12476 function.
12477 (aarch64_linux_init_abi): Install it to gdbarch hook
12478 gcc_target_options.
12479
db422fb2
PA
124802018-01-15 Pedro Alves <palves@redhat.com>
12481
12482 * common/signals-state-save-restore.c
12483 (save_original_signals_state): Fix typos.
12484
ba643918
SDJ
124852017-01-12 Tom Tromey <tom@tromey.com>
12486 Sergio Durigan Junior <sergiodj@redhat.com>
12487
12488 * Makefile.in (install-only): Install gdb-add-index.
12489
906b4aac
JB
124902018-01-12 John Baldwin <jhb@FreeBSD.org>
12491
12492 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12493
bdf2a94a
AA
124942018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12495
12496 * infrun.c (keep_going_pass_signal): Clear step-over info when
12497 insert_breakpoints fails.
12498
71d378ae
PA
124992018-01-11 Pedro Alves <palves@redhat.com>
12500
12501 PR gdb/22583
12502 * infrun.c (resume): Rename to ...
12503 (resume_1): ... this.
12504 (resume): Reimplement as wrapper around resume_1.
12505
3cada740
PA
125062018-01-11 Pedro Alves <palves@redhat.com>
12507
12508 PR remote/22597
12509 * remote.c (remote_parse_stop_reply): Default to the last-set
12510 general thread instead of to 'magic_null_ptid'.
12511
618daa93
PA
125122018-01-10 Pedro Alves <palves@redhat.com>
12513
12514 * language.h (language_get_symbol_name_matcher): Rename ...
12515 (get_symbol_name_matcher): ... this.
12516 * language.c (language_get_symbol_name_matcher): Ditto.
12517 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12518 callers adjusted.
12519
c63d3e8d
PA
125202018-01-10 Pedro Alves <palves@redhat.com>
12521
12522 PR gdb/22670
12523 * dwarf2read.c
12524 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12525 Adjust to use language_get_symbol_name_matcher instead of
12526 language_defn::la_get_symbol_name_matcher.
12527 * language.c (language_get_symbol_name_matcher): If in Ada mode
12528 and the lookup name is a verbatim match, return Ada's matcher.
12529 * language.h (language_get_symbol_name_matcher): Adjust comment.
12530 (ada_lookup_name_info::verbatim_p):: New method.
12531
d4c2a405
PA
125322018-01-10 Pedro Alves <palves@redhat.com>
12533
12534 PR gdb/22670
12535 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12536 minsym's language is language_auto or language_cplus, pass down
12537 language_ada instead.
12538 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12539
8825213e
PA
125402018-01-10 Pedro Alves <palves@redhat.com>
12541
12542 PR gdb/22670
12543 * minsyms.c (linkage_name_str): New function.
12544 (iterate_over_minimal_symbols): Use it.
12545
2d97a5d9
JB
125462018-01-09 John Baldwin <jhb@FreeBSD.org>
12547
12548 * NEWS: Document that 'info proc' now works on FreeBSD.
12549
92fce24d
JB
125502018-01-09 John Baldwin <jhb@FreeBSD.org>
12551
12552 * configure.ac: Check for kinfo_getfile in libutil.
12553 * configure: Regenerate.
12554 * config.in: Regenerate.
12555 * fbsd-nat.c: Include "fbsd-tdep.h".
12556 (fbsd_fetch_cmdline): New.
12557 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12558 rather than calling error.
12559 (fbsd_info_proc): New.
12560 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12561 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12562 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12563
262f62f5
JB
125642018-01-09 John Baldwin <jhb@FreeBSD.org>
12565
12566 * fbsd-nat.c (struct free_deleter): Remove.
12567 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12568
b999e203
JB
125692018-01-09 John Baldwin <jhb@FreeBSD.org>
12570
12571 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12572 NULL for an empty pathname.
12573
d2176225
JB
125742018-01-09 John Baldwin <jhb@FreeBSD.org>
12575
12576 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12577 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12578 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12579 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12580 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12581 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12582 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12583 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12584 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12585 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12586 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12587 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12588 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12589 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12590 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12591
9c4ac400
ST
125922018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12593
12594 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12595 (gnu_xfer_auxv): New function.
12596 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12597 TARGET_OBJECT_AUXV.
12598
1e5ded6c
YQ
125992018-01-08 Yao Qi <yao.qi@linaro.org>
12600 Simon Marchi <simon.marchi@ericsson.com>
12601
12602 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12603 common/selftest.c.
12604 (COMMON_OBS): Remove selftest.o.
12605 * configure.ac: Append selftest-arch.c and common/selftest.c to
12606 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12607 * configure: Re-generated.
12608 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12609 GDB_SELF_TEST.
12610 (maintenance_info_selftests): Likewise.
12611
04bafb1e
XR
126122018-01-08 Xavier Roirand <roirand@adacore.com>
12613
12614 * ada-valprint.c (val_print_packed_array_elements): Use
12615 proper number of elements when printing an array indexed
12616 by an enumeration type.
12617
518817b3
SM
126182018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12619
12620 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12621 (dw2_get_file_names_reader): Adjust.
12622 (lookup_dwo_signatured_type): Adjust.
12623 (lookup_dwp_signatured_type): Adjust.
12624 (lookup_signatured_type): Adjust.
12625 (create_type_unit_group): Adjust.
12626 (get_type_unit_group): Adjust.
12627 (process_psymtab_comp_unit_reader): Adjust.
12628 (build_type_psymtabs_reader): Adjust.
12629 (scan_partial_symbols): Adjust.
12630 (add_partial_symbol): Adjust.
12631 (add_partial_subprogram): Adjust.
12632 (peek_die_abbrev): Adjust.
12633 (fixup_go_packaging): Adjust.
12634 (process_imported_unit_die): Adjust.
12635 (dwarf2_compute_name): Adjust.
12636 (dwarf2_physname): Adjust.
12637 (read_import_statement): Adjust.
12638 (handle_DW_AT_stmt_list): Adjust.
12639 (read_file_scope): Adjust.
12640 (read_func_scope): Adjust.
12641 (read_lexical_block_scope): Adjust.
12642 (read_call_site_scope): Adjust.
12643 (read_variable): Adjust.
12644 (dwarf2_rnglists_process): Adjust.
12645 (dwarf2_ranges_process): Adjust.
12646 (dwarf2_ranges_read): Adjust.
12647 (dwarf2_get_pc_bounds): Adjust.
12648 (dwarf2_record_block_ranges): Adjust.
12649 (dwarf2_add_field): Adjust.
12650 (dwarf2_add_member_fn): Adjust.
12651 (read_structure_type): Adjust.
12652 (process_structure_scope): Adjust.
12653 (read_enumeration_type): Adjust.
12654 (read_array_type): Adjust.
12655 (mark_common_block_symbol_computed): Adjust.
12656 (read_common_block): Adjust.
12657 (read_namespace_type): Adjust.
12658 (read_namespace): Adjust.
12659 (read_module_type): Adjust.
12660 (read_tag_pointer_type): Adjust.
12661 (read_tag_ptr_to_member_type): Adjust.
12662 (read_tag_string_type): Adjust.
12663 (read_subroutine_type): Adjust.
12664 (read_typedef): Adjust.
12665 (read_base_type): Adjust.
12666 (attr_to_dynamic_prop): Adjust.
12667 (read_subrange_type): Adjust.
12668 (read_unspecified_type): Adjust.
12669 (dwarf2_read_abbrevs): Adjust.
12670 (load_partial_dies): Adjust.
12671 (read_partial_die): Adjust.
12672 (find_partial_die): Adjust.
12673 (guess_partial_die_structure_name): Adjust.
12674 (fixup_partial_die): Adjust.
12675 (read_attribute_value): Adjust.
12676 (read_addr_index): Adjust.
12677 (read_addr_index_from_leb128): Adjust.
12678 (read_str_index): Adjust.
12679 (dwarf2_string_attr): Adjust.
12680 (get_debug_line_section): Adjust.
12681 (dwarf_decode_line_header): Adjust.
12682 (lnp_state_machine::check_line_address): Adjust.
12683 (dwarf_decode_lines_1): Adjust.
12684 (dwarf_decode_lines): Adjust.
12685 (dwarf2_start_symtab): Adjust.
12686 (var_decode_location): Adjust.
12687 (new_symbol_full): Adjust.
12688 (dwarf2_const_value_data): Adjust.
12689 (dwarf2_const_value_attr): Adjust.
12690 (dwarf2_const_value): Adjust.
12691 (die_type): Adjust.
12692 (die_containing_type): Adjust.
12693 (build_error_marker_type): Adjust.
12694 (lookup_die_type): Adjust.
12695 (guess_full_die_structure_name): Adjust.
12696 (anonymous_struct_prefix): Adjust.
12697 (determine_prefix): Adjust.
12698 (dwarf2_name): Adjust.
12699 (follow_die_ref_or_sig): Adjust.
12700 (follow_die_offset): Adjust.
12701 (follow_die_ref): Adjust.
12702 (follow_die_sig_1): Adjust.
12703 (follow_die_sig): Adjust.
12704 (get_signatured_type): Adjust.
12705 (get_DW_AT_signature_type): Adjust.
12706 (decode_locdesc): Adjust.
12707 (dwarf_decode_macros): Adjust.
12708 (cu_debug_loc_section): Adjust.
12709 (fill_in_loclist_baton): Adjust.
12710 (dwarf2_symbol_mark_computed): Adjust.
12711 (init_one_comp_unit): Don't assign
12712 dwarf2_cu::dwarf2_per_objfile.
12713 (set_die_type): Adjust.
12714
ed2dc618
SM
127152018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12716
12717 * dwarf2read.c (struct mapped_debug_names): Add constructor.
12718 <dwarf2_per_objfile>: New field.
12719 (dwarf2_per_objfile): Remove global.
12720 (get_dwarf2_per_objfile): New function.
12721 (set_dwarf2_per_objfile): New function.
12722 (dwarf2_build_psymtabs_hard): Change objfile parameter to
12723 dwarf2_per_objfile.
12724 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12725 (read_abbrev_offset): Likewise.
12726 (read_indirect_string): Likewise.
12727 (read_indirect_line_string): Likewise.
12728 (read_indirect_string_at_offset): Likewise.
12729 (read_indirect_string_from_dwz): Likewise.
12730 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12731 dwarf2_per_objfile.
12732 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12733 (create_all_comp_units): Change objfile parameter to
12734 dwarf2_per_objfile.
12735 (create_all_type_units): Likewise.
12736 (process_queue): Add dwarf2_per_objfile parameter.
12737 (read_and_check_comp_unit_head): Likewise.
12738 (lookup_dwo_unit_in_dwp): Likewise.
12739 (get_dwp_file): Likewise.
12740 (process_cu_includes): Likewise.
12741 (struct free_dwo_file_cleanup_data): New struct.
12742 (dwarf2_has_info): Use get_dwarf2_per_objfile and
12743 set_dwarf2_per_objfile.
12744 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12745 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12746 context, adjust calls.
12747 (dw2_instantiate_symtab): Likewise.
12748 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12749 (dw2_get_cu): Likewise.
12750 (create_cu_from_index_list): Change objfile parameter to
12751 dwarf2_per_objfile.
12752 (create_cus_from_index_list): Get dwarf2_per_objfile from
12753 context, adjust calls.
12754 (create_cus_from_index): Likewise.
12755 (create_signatured_type_table_from_index): Change objfile
12756 parameter to dwarf2_per_objfile.
12757 (create_signatured_type_table_from_debug_names): Change objfile
12758 parameter to dwarf2_per_objfile.
12759 (create_addrmap_from_index): Likewise.
12760 (create_addrmap_from_aranges): Likewise.
12761 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12762 (dw2_setup): Remove.
12763 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12764 context.
12765 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12766 get_dwarf2_per_objfile.
12767 (dw2_forget_cached_source_info): Likewise.
12768 (dw2_map_symtabs_matching_filename): Likewise.
12769 (struct dw2_symtab_iterator) <index>: Remove.
12770 <dwarf2_per_objfile>: New field.
12771 (dw2_symtab_iter_init): Replace index parameter with
12772 dwarf2_per_objfile.
12773 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12774 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12775 (dw2_print_stats): Likewise.
12776 (dw2_dump): Likewise.
12777 (dw2_expand_symtabs_for_function): Likewise.
12778 (dw2_expand_all_symtabs): Likewise.
12779 (dw2_expand_symtabs_with_fullname): Likewise.
12780 (dw2_expand_marked_cus): Replace index and objfile parameters
12781 with dwarf2_per_objfile.
12782 (dw_expand_symtabs_matching_file_matcher): Add
12783 dwarf2_per_objfile parameter and adjust calls.
12784 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12785 adjust calls.
12786 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12787 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12788 adjust calls.
12789 (create_cus_from_debug_names_list): Replace objfile parameter
12790 with dwarf2_per_objfile and adjust calls.
12791 (create_cus_from_debug_names): Likewise.
12792 (dwarf2_read_debug_names): Likewise.
12793 (mapped_debug_names::namei_to_name): Adjust call.
12794 (dw2_debug_names_iterator::next): Likewise.
12795 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12796 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12797 (dw2_debug_names_dump): Likewise.
12798 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12799 (dw2_debug_names_expand_symtabs_matching): Likewise.
12800 (dwarf2_initialize_objfile): Likewise.
12801 (dwarf2_build_psymtabs): Likewise.
12802 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12803 this_cu.
12804 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12805 (read_and_check_comp_unit_head): Likewise.
12806 (read_abbrev_offset): Likewise.
12807 (create_debug_type_hash_table): Likewise.
12808 (create_debug_types_hash_table): Likewise.
12809 (create_all_type_units): Replace objfile parameter with
12810 dwarf2_per_objfile.
12811 (add_type_unit): Add dwarf2_per_objfile parameter.
12812 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12813 with dwarf2_per_objfile.
12814 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12815 (lookup_dwp_signatured_type): Likewise.
12816 (lookup_signatured_type): Likewise.
12817 (read_cutu_die_from_dwo): Likewise.
12818 (init_tu_and_read_dwo_dies): Likewise.
12819 (init_cutu_and_read_dies): Likewise.
12820 (init_cutu_and_read_dies_no_follow): Likewise.
12821 (allocate_type_unit_groups_table): Add objfile parameter.
12822 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12823 (get_type_unit_group): Likewise.
12824 (process_psymtab_comp_unit): Update call.
12825 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12826 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12827 (print_tu_stats): Likewise.
12828 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12829 in void* parameter.
12830 (build_type_psymtabs): Change objfile parameter to
12831 dwarf2_per_objfile.
12832 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12833 passed in void* parameter.
12834 (process_skeletonless_type_units): Change objfile parameter to
12835 dwarf2_per_objfile.
12836 (set_partial_user): Likewise.
12837 (dwarf2_build_psymtabs_hard): Likewise.
12838 (read_comp_units_from_section): Likewise.
12839 (create_all_comp_units): Likewise.
12840 (scan_partial_symbols): Update calls.
12841 (add_partial_symbol): Likewise.
12842 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12843 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12844 (process_queue): Add dwarf2_per_objfile parameter.
12845 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12846 (compute_compunit_symtab_includes): Likewise.
12847 (process_cu_includes): Add dwarf2_per_objfile parameter.
12848 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12849 (process_full_type_unit): Likewise.
12850 (process_imported_unit_die): Update call.
12851 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12852 (read_file_scope): Likewise.
12853 (allocate_dwo_file_hash_table): Add objfile parameter.
12854 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12855 (create_cus_hash_table): Likewise.
12856 (create_dwp_hash_table): Likewise.
12857 (create_dwo_unit_in_dwp_v1): Likewise.
12858 (create_dwp_v2_section): Likewise.
12859 (create_dwo_unit_in_dwp_v2): Likewise.
12860 (lookup_dwo_unit_in_dwp): Likewise.
12861 (try_open_dwop_file): Likewise.
12862 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12863 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12864 cleanup to include a reference to dwarf2_per_objfile.
12865 (open_dwp_file): Add dwarf2_per_objfile parameter.
12866 (open_and_init_dwp_file): Likewise.
12867 (get_dwp_file): Likewise.
12868 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12869 (queue_and_load_all_dwo_tus): Update call.
12870 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12871 data.
12872 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12873 (dwarf2_ranges_process): Likewise.
12874 (dwarf2_get_pc_bounds): Likewise.
12875 (mark_common_block_symbol_computed): Likewise.
12876 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12877 (dwarf2_read_abbrevs): Update call.
12878 (read_partial_die): Use dwarf2_per_objfile from cu.
12879 (find_partial_die): Likewise.
12880 (fixup_partial_die): Likewise.
12881 (read_attribute_value): Likewise.
12882 (read_indirect_string_at_offset_from): Add objfile parameter.
12883 (read_indirect_string_at_offset): Add dwarf2_per_objfile
12884 parameter.
12885 (read_indirect_string_from_dwz): Add objfile parameter.
12886 (read_indirect_string): Add objfile parameter.
12887 (read_addr_index_1): Add dwarf2_per_objfile parameter.
12888 (read_addr_index): Use dwarf2_per_objfile from cu.
12889 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12890 call dw2_setup.
12891 (read_str_index): Use dwarf2_per_objfile from cu.
12892 (get_debug_line_section): Likewise.
12893 (read_formatted_entries): Add dwarf2_per_objfile parameter.
12894 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
12895 (new_symbol_full): Use dwarf2_per_objfile from cu.
12896 (build_error_marker_type): Likewise.
12897 (lookup_die_type): Likewise.
12898 (determine_prefix): Likewise.
12899 (follow_die_offset): Likewise.
12900 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
12901 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
12902 (dwarf2_fetch_die_type_sect_off): Likewise.
12903 (dwarf2_get_die_type): Likewise.
12904 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
12905 (get_signatured_type): Likewise.
12906 (get_DW_AT_signature_type): Likewise.
12907 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
12908 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
12909 (cu_debug_loc_section): Likewise.
12910 (fill_in_loclist_baton): Likewise.
12911 (dwarf2_symbol_mark_computed): Likewise.
12912 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12913 dwarf2_per_objfile.
12914 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
12915 parameter.
12916 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12917 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
12918 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
12919 (set_die_type): Use dwarf2_free_objfile from cu.
12920 (get_die_type_at_offset): Likewise.
12921 (dwarf2_per_objfile_free): Don't assign global variable.
12922 (debug_names) <constructor>: Add dwarf2_per_objfile
12923 parameter, update m_debugstrlookup construction.
12924 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
12925 parameter.
12926 <m_dwarf2_per_objfile>: New field.
12927 <lookup>: Use m_dwarf2_per_objfile.
12928 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
12929 (psyms_seen_size): Likewise.
12930 (write_gdbindex): Replace objfile parameter with
12931 dwarf2_per_objfile.
12932 (write_debug_names): Likewise.
12933 (write_psymtabs_to_index): Likewise.
12934 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
12935 calls.
12936
e3b94546
SM
129372018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12938
12939 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
12940 <dwarf2_per_objfile>: New field.
12941 (struct dwarf2_per_cu_data) <objfile>: Remove.
12942 <dwarf2_per_objfile>: New field.
12943 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
12944 of objfile.
12945 (create_signatured_type_table_from_index): Likewise.
12946 (create_debug_type_hash_table): Likewise.
12947 (fill_in_sig_entry_from_dwo_entry): Likewise.
12948 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
12949 (create_type_unit_group): Assign dwarf2_per_objfile instead of
12950 objfile.
12951 (create_partial_symtab): Access objfile through
12952 dwarf2_per_objfile.
12953 (process_psymtab_comp_unit_reader): Likewise.
12954 (read_comp_units_from_section): Likewise.
12955 (scan_partial_symbols): Likewise.
12956 (add_partial_symbol): Likewise.
12957 (add_partial_subprogram): Likewise.
12958 (peek_die_abbrev): Likewise.
12959 (fixup_go_packaging): Likewise.
12960 (process_full_comp_unit): Likewise.
12961 (process_full_type_unit): Likewise.
12962 (process_imported_unit_die): Likewise.
12963 (dwarf2_compute_name): Likewise.
12964 (dwarf2_physname): Likewise.
12965 (read_import_statement): Likewise.
12966 (create_cus_hash_table): Assign dwarf2_physname instead of
12967 objfile.
12968 (read_func_scope): Access objfile through dwarf2_per_objfile.
12969 (read_lexical_block_scope): Likewise.
12970 (read_call_site_scope): Likewise.
12971 (read_variable): Likewise.
12972 (dwarf2_rnglists_process): Likewise.
12973 (dwarf2_ranges_process): Likewise.
12974 (dwarf2_ranges_read): Likewise.
12975 (dwarf2_record_block_ranges): Likewise.
12976 (dwarf2_add_field): Likewise.
12977 (dwarf2_add_member_fn): Likewise.
12978 (read_structure_type): Likewise.
12979 (process_structure_scope): Likewise.
12980 (read_enumeration_type): Likewise.
12981 (read_array_type): Likewise.
12982 (read_common_block): Likewise.
12983 (read_namespace_type): Likewise.
12984 (read_namespace): Likewise.
12985 (read_module_type): Likewise.
12986 (read_tag_pointer_type): Likewise.
12987 (read_tag_ptr_to_member_type): Likewise.
12988 (read_tag_string_type): Likewise.
12989 (read_subroutine_type): Likewise.
12990 (read_typedef): Likewise.
12991 (read_base_type): Likewise.
12992 (attr_to_dynamic_prop): Likewise.
12993 (read_subrange_type): Likewise.
12994 (read_unspecified_type): Likewise.
12995 (load_partial_dies): Likewise.
12996 (read_partial_die): Likewise.
12997 (find_partial_die): Likewise.
12998 (guess_partial_die_structure_name): Likewise.
12999 (fixup_partial_die): Likewise.
13000 (read_attribute_value): Likewise.
13001 (read_addr_index_from_leb128): Likewise.
13002 (dwarf2_read_addr_index): Likewise.
13003 (dwarf2_string_attr): Likewise.
13004 (lnp_state_machine::check_line_address): Likewise.
13005 (dwarf_decode_lines_1): Likewise.
13006 (dwarf_decode_lines): Likewise.
13007 (dwarf2_start_symtab): Likewise.
13008 (var_decode_location): Likewise.
13009 (new_symbol_full): Likewise.
13010 (dwarf2_const_value_data): Likewise.
13011 (dwarf2_const_value_attr): Likewise.
13012 (dwarf2_const_value): Likewise.
13013 (die_type): Likewise.
13014 (die_containing_type): Likewise.
13015 (lookup_die_type): Likewise.
13016 (guess_full_die_structure_name): Likewise.
13017 (anonymous_struct_prefix): Likewise.
13018 (dwarf2_name): Likewise.
13019 (follow_die_ref_or_sig): Likewise.
13020 (follow_die_offset): Likewise.
13021 (follow_die_ref): Likewise.
13022 (dwarf2_fetch_die_loc_sect_off): Likewise.
13023 (dwarf2_fetch_constant_bytes): Likewise.
13024 (dwarf2_fetch_die_type_sect_off): Likewise.
13025 (dwarf2_get_die_type): Likewise.
13026 (follow_die_sig): Likewise.
13027 (decode_locdesc): Likewise.
13028 (dwarf2_per_cu_objfile): Likewise.
13029 (dwarf2_per_cu_text_offset): Likewise.
13030 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13031 objfile.
13032 (set_die_type): Access objfile through
13033 dwarf2_per_objfile.
13034
b01ba14d
SM
130352018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13036
13037 * valprint.c (converted_character_d): Remove typedef.
13038 (DEF_VEC_O (converted_character_d)): Remove.
13039 (count_next_character): Use std::vector.
13040 (print_converted_chars_to_obstack): Likewise.
13041 (generic_printstr): Likewise.
13042
4d0fdd9b
SM
130432018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13044
13045 * xml-support.h (struct gdb_xml_value): Add constructor.
13046 <value>: Change type to unique_xmalloc_ptr.
13047 (gdb_xml_value_s): Remove typedef.
13048 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13049 (gdb_xml_element_start_handler): Change parameter type to
13050 std::vector.
13051 (xml_find_attribute): Likewise.
13052 * xml-support.c (xml_find_attribute): Change parameter type to
13053 std::vector and adjust.
13054 (gdb_xml_values_cleanup): Remove.
13055 (gdb_xml_parser::start_element): Adjust to std::vector.
13056 (xinclude_start_include): Change paraeter type to std::vector
13057 and adjust.
13058 * btrace.c (check_xml_btrace_version): Likewise.
13059 (parse_xml_btrace_block): Likewise.
13060 (parse_xml_btrace_pt_config_cpu): Likewise.
13061 (parse_xml_btrace_pt): Likewise.
13062 (parse_xml_btrace_conf_bts): Likewise.
13063 (parse_xml_btrace_conf_pt): Likewise.
13064 * memory-map.c (memory_map_start_memory): Likewise.
13065 (memory_map_start_property): Likewise.
13066 * osdata.c (osdata_start_osdata): Likewise.
13067 (osdata_start_item): Likewise.
13068 (osdata_start_column): Likewise.
13069 * remote.c (start_thread): Likewise.
13070 * solib-aix.c (library_list_start_library): Likewise.
13071 (library_list_start_list): Likewise.
13072 * solib-svr4.c (library_list_start_library): Likewise.
13073 (svr4_library_list_start_list): Likewise.
13074 * solib-target.c (library_list_start_segment): Likewise.
13075 (library_list_start_section): Likewise.
13076 (library_list_start_library): Likewise.
13077 (library_list_start_list): Likewise.
13078 * tracepoint.c (traceframe_info_start_memory): Likewise.
13079 (traceframe_info_start_tvar): Likewise.
13080 * xml-syscall.c (syscall_start_syscall): Likewise.
13081 * xml-tdesc.c (tdesc_start_target): Likewise.
13082 (tdesc_start_feature): Likewise.
13083 (tdesc_start_reg): Likewise.
13084 (tdesc_start_union): Likewise.
13085 (tdesc_start_struct): Likewise.
13086 (tdesc_start_flags): Likewise.
13087 (tdesc_start_enum): Likewise.
13088 (tdesc_start_field): Likewise.
13089 (tdesc_start_enum_value): Likewise.
13090 (tdesc_start_vector): Likewise.
13091
f979c73f
SM
130922018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13093
13094 * extension.h (struct xmethod_worker) <clone>: Remove.
13095 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13096 Remove.
13097 (python_xmethod_worker::clone): Remove.
13098 * valops.c (find_overload_match): Use std::move instead of
13099 clone.
13100
ba18742c
SM
131012018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13102
13103 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13104 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13105 <free_xmethod_worker_data>: Remove.
13106 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13107 <get_xmethod_arg_types>: Remove.
13108 <get_xmethod_result_type>: Remove.
13109 <invoke_xmethod>: Remove.
13110 * extension.c (new_xmethod_worker): Remove.
13111 (clone_xmethod_worker): Remove.
13112 (get_matching_xmethod_workers): Return void, pass std::vector by
13113 pointer.
13114 (get_xmethod_arg_types): Rename to...
13115 (xmethod_worker::get_arg_types): ... this, and adjust.
13116 (get_xmethod_result_type): Rename to...
13117 (xmethod_worker::get_result_type): ... this, and adjust.
13118 (invoke_xmethod): Remove.
13119 (free_xmethod_worker): Remove.
13120 (free_xmethod_worker_vec): Remove.
13121 * extension.h (enum ext_lang_rc): Move here from
13122 extension-priv.h.
13123 (struct xmethod_worker): Add constructor and destructor.
13124 <data>: Remove.
13125 <value>: Remove.
13126 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13127 virtual pure methods.
13128 <get_arg_types, get_result_type>: New methods.
13129 (xmethod_worker_ptr): Remove typedef.
13130 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13131 (xmethod_worker_vec): Remove typedef.
13132 (xmethod_worker_up): New typedef.
13133 (invoke_xmethod): Remove.
13134 (clone_xmethod_worker): Remove.
13135 (free_xmethod_worker): Remove.
13136 (free_xmethod_worker_vec): Remove.
13137 (get_xmethod_arg_types): Remove.
13138 (get_xmethod_result_type): Remove.
13139 * valops.c (find_method_list): Use std::vector, don't use
13140 intermediate vector.
13141 (value_find_oload_method_list): Use std::vector.
13142 (find_overload_match): Use std::vector.
13143 (find_oload_champ): Use std::vector.
13144 * value.c (value_free): Use operator delete.
13145 (value_of_xmethod): Rename to...
13146 (value_from_xmethod): ... this. Don't assign
13147 xmethod_worker::value, take rvalue-reference.
13148 (result_type_of_xmethod): Adjust.
13149 (call_xmethod): Adjust.
13150 * value.h: Include extension.h.
13151 (struct xmethod_worker): Don't forward-declare.
13152 (value_of_xmethod): Rename to...
13153 (value_from_xmethod): ... this, take rvalue-reference.
13154 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13155 (struct python_xmethod_worker): ... this, add constructor and
13156 destructor.
13157 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13158 (gdbpy_free_xmethod_worker_data): Rename to...
13159 (python_xmethod_worker::~python_xmethod_worker): ... this and
13160 adjust.
13161 (gdbpy_clone_xmethod_worker_data): Rename to...
13162 (python_xmethod_worker::clone): ... this and adjust.
13163 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13164 temporary vector.
13165 (gdbpy_get_xmethod_arg_types): Rename to...
13166 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13167 (gdbpy_get_xmethod_result_type): Rename to...
13168 (python_xmethod_worker::do_get_result_type): ... this and
13169 adjust.
13170 (gdbpy_invoke_xmethod): Rename to...
13171 (python_xmethod_worker::invoke): ... this and adjust.
13172 (new_python_xmethod_worker): Rename to...
13173 (python_xmethod_worker::python_xmethod_worker): ... this and
13174 adjust.
13175 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13176 Remove.
13177 (gdbpy_free_xmethod_worker_data): Remove.
13178 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13179 (gdbpy_get_xmethod_arg_types): Remove.
13180 (gdbpy_get_xmethod_result_type): Remove.
13181 (gdbpy_invoke_xmethod): Remove.
13182 * python/python.c (python_extension_ops): Remove obsolete
13183 callbacks.
13184
e379cee6
PA
131852018-01-05 Pedro Alves <palves@redhat.com>
13186
13187 PR gdb/18653
13188 * common/signals-state-save-restore.c
13189 (save_original_signals_state): New parameter 'quiet'. Warn if we
13190 find a custom handler preinstalled, instead of internal erroring.
13191 But only warn if !quiet.
13192 * common/signals-state-save-restore.h
13193 (save_original_signals_state): New parameter 'quiet'.
13194 * main.c (captured_main_1): Move save_original_signals_state call
13195 after option handling, and pass QUIET.
13196
a655456c
PA
131972018-01-05 Pedro Alves <palves@redhat.com>
13198
13199 * spu-tdep.c (spu_catch_start): Pass
13200 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13201
de63c46b
PA
132022018-01-05 Pedro Alves <palves@redhat.com>
13203
13204 PR gdb/22670
13205 * ada-lang.c (literal_symbol_name_matcher): New function.
13206 (ada_get_symbol_name_matcher): Use it for
13207 symbol_name_match_type::SEARCH_NAME.
13208 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13209 it down instead of assuming symbol_name_match_type::FULL.
13210 * block.h (block_lookup_symbol): New parameter 'match_type'.
13211 * c-valprint.c (print_unpacked_pointer): Use
13212 lookup_symbol_search_name instead of lookup_symbol.
13213 * compile/compile-object-load.c (get_out_value_type): Pass down
13214 symbol_name_match_type::SEARCH_NAME.
13215 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13216 symbol_name_match_type::FULL.
13217 * cp-support.c (cp_get_symbol_name_matcher): Handle
13218 symbol_name_match_type::SEARCH_NAME.
13219 * infrun.c (insert_exception_resume_breakpoint): Use
13220 lookup_symbol_search_name.
13221 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13222 * psymtab.c (maintenance_check_psymtabs): Use
13223 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13224 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13225 SYMBOL_SEARCH_NAME.
13226 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13227 if symbol_name_match_type::SEARCH_NAME.
13228 (lookup_symbol_in_language): Pass down
13229 symbol_name_match_type::FULL.
13230 (lookup_symbol_search_name): New.
13231 (lookup_language_this): Pass down
13232 symbol_name_match_type::SEARCH_NAME.
13233 (lookup_symbol_aux, lookup_local_symbol): New parameter
13234 'match_type'. Pass it down.
13235 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13236 (lookup_symbol_search_name): New declaration.
13237 (lookup_symbol_in_block): New 'match_type' parameter.
13238
f98fc17b
PA
132392018-01-05 Pedro Alves <palves@redhat.com>
13240
13241 PR gdb/22670
13242 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13243 ada_lookup_symbol.
13244 (ada_lookup_symbol): Reimplement in terms of
13245 ada_lookup_symbol_list, bits factored out from
13246 ada_lookup_encoded_symbol.
13247
342f8240
JB
132482018-01-05 Joel Brobecker <brobecker@adacore.com>
13249
13250 * ada-exp.y (write_object_renaming): When subscripting an array
13251 using a symbol as the index, pass the block in call to
13252 ada_lookup_encoded_symbol when looking that symbol up.
13253
7150d33c
JG
132542018-01-05 Jerome Guitton <guitton@adacore.com>
13255
13256 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13257 TYPE_INDEX_TYPE.
13258
cc0e770c
JB
132592018-01-05 Joel Brobecker <brobecker@adacore.com>
13260
13261 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13262 the case where VALUE_LVAL (val0) is not lval_memory.
13263
f79da888 132642018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
13265
13266 * ada-valprint.c (print_optional_low_bound): Handle
13267 character-indexed array printing like boolean-indexed array
13268 printing.
13269
cd385f94
JB
132702018-01-05 Joel Brobecker <brobecker@adacore.com>
13271
13272 * NEWS: Create a new section for the next release branch.
13273 Rename the section of the current branch, now that it has
13274 been cut.
13275
09aca949
JB
132762018-01-05 Joel Brobecker <brobecker@adacore.com>
13277
13278 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13279 * version.in: Bump version to 8.1.50.DATE-git.
13280
9f757bf7
XR
132812018-01-03 Xavier Roirand <roirand@adacore.com>
13282
13283 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13284 Add field.
13285 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13286 Add field.
13287 (default_exception_support_info) <catch_handlers_sym>: Add field.
13288 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13289 (ada_exception_name_addr_1): Add "catch handlers" handling.
13290 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13291 Update all callers.
13292 (create_excep_cond_exprs) <ex>: Add parameter.
13293 (re_set_exception): Update create_excep_cond_exprs call.
13294 (print_it_exception, print_one_exception, print_mention_exception)
13295 (print_recreate_exception): Add "catch handler" handling.
13296 (allocate_location_catch_handlers, re_set_catch_handlers)
13297 (check_status_catch_handlers, print_it_catch_handlers)
13298 (print_one_catch_handlers, print_mention_catch_handlers)
13299 (print_recreate_catch_handlers): New function.
13300 (catch_handlers_breakpoint_ops): New variable.
13301 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13302 Add parameter. Add "catch handler" handling.
13303 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13304 Add "catch handler" handling.
13305 (ada_exception_catchpoint_cond_string): Add "catch handler"
13306 handling.
13307 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13308 call.
13309 (catch_ada_handlers_command): New function.
13310 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13311 operations structure.
13312 (_initialize_ada_language): Add "catch handlers" command entry.
13313 * NEWS: Document "catch handlers" feature.
13314
9fe561ab
JB
133152018-01-02 Joel Brobecker <brobecker@adacore.com>
13316
13317 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13318 account when creating the array type of the slice.
13319 (ada_value_slice): Likewise.
13320
a405673c
JB
133212018-01-02 Joel Brobecker <brobecker@adacore.com>
13322
13323 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13324 New enum value.
13325 (create_array_type_with_stride): Add byte_stride_prop parameter.
13326 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13327 New parameter. Update all callers in this file.
13328 (array_type_has_dynamic_stride): New function.
13329 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13330 of arrays with dynamic byte strides.
13331 * dwarf2read.c (read_array_type): Add support for dynamic
13332 DW_AT_byte_stride attributes.
13333
74a2f8ff
JB
133342018-01-02 Joel Brobecker <brobecker@adacore.com>
13335
13336 * dwarf2read.c (read_unspecified_type): Treat
13337 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13338
e2882c85
JB
133392018-01-01 Joel Brobecker <brobecker@adacore.com>
13340
13341 Update copyright year range in all GDB files.
13342
1690bb24
JB
133432018-01-01 Joel Brobecker <brobecker@adacore.com>
13344
13345 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13346 and gdb/testsuite/gdb.base/step-line.c.
13347
0f0c98a8
JB
133482018-01-01 Joel Brobecker <brobecker@adacore.com>
13349
13350 * copyright.py (main): Dump the contents of
13351 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13352 even if BY_HAND is empty.
13353
82e1e79a
JB
133542018-01-01 Joel Brobecker <brobecker@adacore.com>
13355
13356 * top.c (print_gdb_version): Update Copyright year in version
13357 message.
13358
053f54e5 133592018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 13360
053f54e5 13361 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 13362
053f54e5 13363For older changes see ChangeLog-2017.
c906108c
SS
13364\f
13365Local Variables:
13366mode: change-log
13367left-margin: 8
13368fill-column: 74
13369version-control: never
57da7796 13370coding: utf-8
c906108c 13371End:
This page took 3.75793 seconds and 4 git commands to generate.