Add debug output about skipping files and functions
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3e68067f
SM
12018-09-12 Simon Marchi <simon.marchi@ericsson.com>
2
3 * skip.c (debug_skip): New variable.
4 (skiplist_entry::do_skip_file_p): Add debug output.
5 (skiplist_entry::do_skip_gfile_p): Likewise.
6 (skiplist_entry::skip_function_p): Likewise.
7 (_initialize_step_skip): Create debug command.
8 * NEWS: Mention set/show debug skip.
9
d6be54ef
XR
102018-09-11 Xavier Roirand <roirand@adacore.com>
11
12 * darwin-nat.c (should_disable_startup_with_shell):
13 New function.
14 (darwin_nat_target::create_inferior): Add call.
15
de1ec836
XR
162018-09-11 Xavier Roirand <roirand@adacore.com>
17
18 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
19 inf_port, msg_state>: Initialize.
20 (struct darwin_thread_info) <signaled, single_step>: Change
21 type and initialize.
22 (struct darwin_thread_info) <event>: Initialize.
23
e2fc52e7
SDJ
242018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
25
26 PR gdb/23555
27 PR gdb/23558
28 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
29 guesses.
30
5e8754f9
SDJ
312018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
32
33 Revert:
34 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
35
36 PR gdb/23555
37 PR gdb/23558
38 * gnulib/aclocal.m4: Regenerate.
39 * gnulib/config.in: Regenerate.
40 * gnulib/configure: Regenerate.
41 * gnulib/import/Makefile.am: Update.
42 * gnulib/import/Makefile.in: Update.
43 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
44 * gnulib/import/_Noreturn.h: ... this.
45 * gnulib/import/alloca.in.h: Update.
46 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
47 * gnulib/import/arg-nonnull.h: ... this.
48 * gnulib/import/assure.h: Update.
49 * gnulib/import/at-func.c: Update.
50 * gnulib/import/basename-lgpl.c: Update.
51 * gnulib/import/extra/snippet/c++defs.h: Rename to...
52 * gnulib/import/c++defs.h: ... this.
53 * gnulib/import/canonicalize-lgpl.c: Update.
54 * gnulib/import/cdefs.h: Update.
55 * gnulib/import/chdir-long.c: Update.
56 * gnulib/import/chdir-long.h: Update.
57 * gnulib/import/cloexec.c: Update.
58 * gnulib/import/cloexec.h: Update.
59 * gnulib/import/close.c: Update.
60 * gnulib/import/closedir.c: Update.
61 * gnulib/import/config.charset: Update.
62 * gnulib/import/dirent-private.h: Update.
63 * gnulib/import/dirent.in.h: Update.
64 * gnulib/import/dirfd.c: Update.
65 * gnulib/import/dirname-lgpl.c: Update.
66 * gnulib/import/dirname.h: Update.
67 * gnulib/import/dosname.h: Update.
68 * gnulib/import/dup-safer-flag.c: Update.
69 * gnulib/import/dup-safer.c: Update.
70 * gnulib/import/dup.c: Update.
71 * gnulib/import/dup2.c: Update.
72 * gnulib/import/errno.in.h: Update.
73 * gnulib/import/error.c: Update.
74 * gnulib/import/error.h: Update.
75 * gnulib/import/exitfail.c: Update.
76 * gnulib/import/exitfail.h: Update.
77 * gnulib/import/extra/update-copyright: Update.
78 * gnulib/import/fchdir.c: Update.
79 * gnulib/import/fcntl.c: Update.
80 * gnulib/import/fcntl.in.h: Update.
81 * gnulib/import/fd-hook.c: Update.
82 * gnulib/import/fd-hook.h: Update.
83 * gnulib/import/fd-safer-flag.c: Update.
84 * gnulib/import/fd-safer.c: Update.
85 * gnulib/import/fdopendir.c: Update.
86 * gnulib/import/filename.h: Update.
87 * gnulib/import/filenamecat-lgpl.c: Update.
88 * gnulib/import/filenamecat.h: Update.
89 * gnulib/import/flexmember.h: Update.
90 * gnulib/import/float+.h: Update.
91 * gnulib/import/float.c: Update.
92 * gnulib/import/float.in.h: Update.
93 * gnulib/import/fnmatch.c: Update.
94 * gnulib/import/fnmatch.in.h: Update.
95 * gnulib/import/fnmatch_loop.c: Update.
96 * gnulib/import/fpucw.h: Update.
97 * gnulib/import/frexp.c: Update.
98 * gnulib/import/frexpl.c: Update.
99 * gnulib/import/fstat.c: Update.
100 * gnulib/import/fstatat.c: Update.
101 * gnulib/import/getcwd-lgpl.c: Update.
102 * gnulib/import/getcwd.c: Update.
103 * gnulib/import/getdtablesize.c: Update.
104 * gnulib/import/getlogin_r.c: Update.
105 * gnulib/import/getprogname.c: Update.
106 * gnulib/import/getprogname.h: Update.
107 * gnulib/import/gettext.h: Update.
108 * gnulib/import/gettimeofday.c: Update.
109 * gnulib/import/glob-libc.h: Update.
110 * gnulib/import/glob.c: Update.
111 * gnulib/import/glob.in.h: Update.
112 * gnulib/import/glob_internal.h: Update.
113 * gnulib/import/glob_pattern_p.c: Update.
114 * gnulib/import/globfree.c: Update.
115 * gnulib/import/hard-locale.c: Update.
116 * gnulib/import/hard-locale.h: Update.
117 * gnulib/import/intprops.h: Update.
118 * gnulib/import/inttypes.in.h: Update.
119 * gnulib/import/isnan.c: Update.
120 * gnulib/import/isnand-nolibm.h: Update.
121 * gnulib/import/isnand.c: Update.
122 * gnulib/import/isnanl-nolibm.h: Update.
123 * gnulib/import/isnanl.c: Update.
124 * gnulib/import/itold.c: Update.
125 * gnulib/import/libc-config.h: Update.
126 * gnulib/import/limits.in.h: Update.
127 * gnulib/import/localcharset.c: Update.
128 * gnulib/import/localcharset.h: Update.
129 * gnulib/import/localtime-buffer.c: Update.
130 * gnulib/import/localtime-buffer.h: Update.
131 * gnulib/import/lstat.c: Update.
132 * gnulib/import/m4/00gnulib.m4: Update.
133 * gnulib/import/m4/__inline.m4: Update.
134 * gnulib/import/m4/absolute-header.m4: Update.
135 * gnulib/import/m4/alloca.m4: Update.
136 * gnulib/import/m4/builtin-expect.m4: Update.
137 * gnulib/import/m4/canonicalize.m4: Update.
138 * gnulib/import/m4/chdir-long.m4: Update.
139 * gnulib/import/m4/close.m4: Update.
140 * gnulib/import/m4/closedir.m4: Update.
141 * gnulib/import/m4/configmake.m4: Update.
142 * gnulib/import/m4/d-ino.m4: Update.
143 * gnulib/import/m4/d-type.m4: Update.
144 * gnulib/import/m4/dirent_h.m4: Update.
145 * gnulib/import/m4/dirfd.m4: Update.
146 * gnulib/import/m4/dirname.m4: Update.
147 * gnulib/import/m4/double-slash-root.m4: Update.
148 * gnulib/import/m4/dup.m4: Update.
149 * gnulib/import/m4/dup2.m4: Update.
150 * gnulib/import/m4/eealloc.m4: Update.
151 * gnulib/import/m4/environ.m4: Update.
152 * gnulib/import/m4/errno_h.m4: Update.
153 * gnulib/import/m4/error.m4: Update.
154 * gnulib/import/m4/exponentd.m4: Update.
155 * gnulib/import/m4/exponentl.m4: Update.
156 * gnulib/import/m4/extensions.m4: Update.
157 * gnulib/import/m4/extern-inline.m4: Update.
158 * gnulib/import/m4/fchdir.m4: Update.
159 * gnulib/import/m4/fcntl-o.m4: Update.
160 * gnulib/import/m4/fcntl.m4: Update.
161 * gnulib/import/m4/fcntl_h.m4: Update.
162 * gnulib/import/m4/fdopendir.m4: Update.
163 * gnulib/import/m4/filenamecat.m4: Update.
164 * gnulib/import/m4/flexmember.m4: Update.
165 * gnulib/import/m4/float_h.m4: Update.
166 * gnulib/import/m4/fnmatch.m4: Update.
167 * gnulib/import/m4/fnmatch_h.m4: Update.
168 * gnulib/import/m4/fpieee.m4: Update.
169 * gnulib/import/m4/frexp.m4: Update.
170 * gnulib/import/m4/frexpl.m4: Update.
171 * gnulib/import/m4/fstat.m4: Update.
172 * gnulib/import/m4/fstatat.m4: Update.
173 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
174 * gnulib/import/m4/getcwd-path-max.m4: Update.
175 * gnulib/import/m4/getcwd.m4: Update.
176 * gnulib/import/m4/getdtablesize.m4: Update.
177 * gnulib/import/m4/getlogin.m4: Update.
178 * gnulib/import/m4/getlogin_r.m4: Update.
179 * gnulib/import/m4/getpagesize.m4: Update.
180 * gnulib/import/m4/getprogname.m4: Update.
181 * gnulib/import/m4/gettimeofday.m4: Update.
182 * gnulib/import/m4/glibc21.m4: Update.
183 * gnulib/import/m4/glob.m4: Update.
184 * gnulib/import/m4/glob_h.m4: Update.
185 * gnulib/import/m4/gnulib-cache.m4: Update.
186 * gnulib/import/m4/gnulib-common.m4: Update.
187 * gnulib/import/m4/gnulib-comp.m4: Update.
188 * gnulib/import/m4/gnulib-tool.m4: Update.
189 * gnulib/import/m4/hard-locale.m4: Update.
190 * gnulib/import/m4/include_next.m4: Update.
191 * gnulib/import/m4/inttypes-pri.m4: Update.
192 * gnulib/import/m4/inttypes.m4: Update.
193 * gnulib/import/m4/isnand.m4: Update.
194 * gnulib/import/m4/isnanl.m4: Update.
195 * gnulib/import/m4/largefile.m4: Update.
196 * gnulib/import/m4/limits-h.m4: Update.
197 * gnulib/import/m4/localcharset.m4: Update.
198 * gnulib/import/m4/locale-fr.m4: Update.
199 * gnulib/import/m4/locale-ja.m4: Update.
200 * gnulib/import/m4/locale-zh.m4: Update.
201 * gnulib/import/m4/localtime-buffer.m4: Update.
202 * gnulib/import/m4/longlong.m4: Update.
203 * gnulib/import/m4/lstat.m4: Update.
204 * gnulib/import/m4/malloc.m4: Update.
205 * gnulib/import/m4/malloca.m4: Update.
206 * gnulib/import/m4/math_h.m4: Update.
207 * gnulib/import/m4/mbrtowc.m4: Update.
208 * gnulib/import/m4/mbsinit.m4: Update.
209 * gnulib/import/m4/mbsrtowcs.m4: Update.
210 * gnulib/import/m4/mbstate_t.m4: Update.
211 * gnulib/import/m4/memchr.m4: Update.
212 * gnulib/import/m4/memmem.m4: Update.
213 * gnulib/import/m4/mempcpy.m4: Update.
214 * gnulib/import/m4/memrchr.m4: Update.
215 * gnulib/import/m4/mkdir.m4: Update.
216 * gnulib/import/m4/mkstemp.m4: Update.
217 * gnulib/import/m4/mmap-anon.m4: Update.
218 * gnulib/import/m4/mode_t.m4: Update.
219 * gnulib/import/m4/msvc-inval.m4: Update.
220 * gnulib/import/m4/msvc-nothrow.m4: Update.
221 * gnulib/import/m4/multiarch.m4: Update.
222 * gnulib/import/m4/nocrash.m4: Update.
223 * gnulib/import/m4/off_t.m4: Update.
224 * gnulib/import/m4/onceonly.m4: Update.
225 * gnulib/import/m4/open-cloexec.m4: Update.
226 * gnulib/import/m4/open.m4: Update.
227 * gnulib/import/m4/openat.m4: Update.
228 * gnulib/import/m4/opendir.m4: Update.
229 * gnulib/import/m4/pathmax.m4: Update.
230 * gnulib/import/m4/rawmemchr.m4: Update.
231 * gnulib/import/m4/readdir.m4: Update.
232 * gnulib/import/m4/readlink.m4: Update.
233 * gnulib/import/m4/realloc.m4: Update.
234 * gnulib/import/m4/rename.m4: Update.
235 * gnulib/import/m4/rewinddir.m4: Update.
236 * gnulib/import/m4/rmdir.m4: Update.
237 * gnulib/import/m4/save-cwd.m4: Update.
238 * gnulib/import/m4/secure_getenv.m4: Update.
239 * gnulib/import/m4/setenv.m4: Update.
240 * gnulib/import/m4/signal_h.m4: Update.
241 * gnulib/import/m4/ssize_t.m4: Update.
242 * gnulib/import/m4/stat-time.m4: Update.
243 * gnulib/import/m4/stat.m4: Update.
244 * gnulib/import/m4/std-gnu11.m4: Update.
245 * gnulib/import/m4/stdbool.m4: Update.
246 * gnulib/import/m4/stddef_h.m4: Update.
247 * gnulib/import/m4/stdint.m4: Update.
248 * gnulib/import/m4/stdio_h.m4: Update.
249 * gnulib/import/m4/stdlib_h.m4: Update.
250 * gnulib/import/m4/strchrnul.m4: Update.
251 * gnulib/import/m4/strdup.m4: Update.
252 * gnulib/import/m4/strerror.m4: Update.
253 * gnulib/import/m4/string_h.m4: Update.
254 * gnulib/import/m4/strstr.m4: Update.
255 * gnulib/import/m4/strtok_r.m4: Update.
256 * gnulib/import/m4/sys_socket_h.m4: Update.
257 * gnulib/import/m4/sys_stat_h.m4: Update.
258 * gnulib/import/m4/sys_time_h.m4: Update.
259 * gnulib/import/m4/sys_types_h.m4: Update.
260 * gnulib/import/m4/tempname.m4: Update.
261 * gnulib/import/m4/time_h.m4: Update.
262 * gnulib/import/m4/unistd-safer.m4: Update.
263 * gnulib/import/m4/unistd_h.m4: Update.
264 * gnulib/import/m4/warn-on-use.m4: Update.
265 * gnulib/import/m4/wchar_h.m4: Update.
266 * gnulib/import/m4/wchar_t.m4: Update.
267 * gnulib/import/m4/wctype_h.m4: Update.
268 * gnulib/import/m4/wint_t.m4: Update.
269 * gnulib/import/malloc.c: Update.
270 * gnulib/import/malloc/scratch_buffer.h: Update.
271 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
272 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
273 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
274 * gnulib/import/malloca.c: Update.
275 * gnulib/import/malloca.h: Update.
276 * gnulib/import/malloca.valgrind: Update.
277 * gnulib/import/math.in.h: Update.
278 * gnulib/import/mbrtowc.c: Update.
279 * gnulib/import/mbsinit.c: Update.
280 * gnulib/import/mbsrtowcs-impl.h: Update.
281 * gnulib/import/mbsrtowcs-state.c: Update.
282 * gnulib/import/mbsrtowcs.c: Update.
283 * gnulib/import/memchr.c: Update.
284 * gnulib/import/memmem.c: Update.
285 * gnulib/import/mempcpy.c: Update.
286 * gnulib/import/memrchr.c: Update.
287 * gnulib/import/mkdir.c: Update.
288 * gnulib/import/mkstemp.c: Update.
289 * gnulib/import/msvc-inval.c: Update.
290 * gnulib/import/msvc-inval.h: Update.
291 * gnulib/import/msvc-nothrow.c: Update.
292 * gnulib/import/msvc-nothrow.h: Update.
293 * gnulib/import/open.c: Update.
294 * gnulib/import/openat-die.c: Update.
295 * gnulib/import/openat-priv.h: Update.
296 * gnulib/import/openat-proc.c: Update.
297 * gnulib/import/openat.c: Update.
298 * gnulib/import/openat.h: Update.
299 * gnulib/import/opendir.c: Update.
300 * gnulib/import/pathmax.h: Update.
301 * gnulib/import/pipe-safer.c: Update.
302 * gnulib/import/rawmemchr.c: Update.
303 * gnulib/import/readdir.c: Update.
304 * gnulib/import/readlink.c: Update.
305 * gnulib/import/realloc.c: Update.
306 * gnulib/import/ref-add.sin: Update.
307 * gnulib/import/ref-del.sin: Update.
308 * gnulib/import/rename.c: Update.
309 * gnulib/import/rewinddir.c: Update.
310 * gnulib/import/rmdir.c: Update.
311 * gnulib/import/same-inode.h: Update.
312 * gnulib/import/save-cwd.c: Update.
313 * gnulib/import/save-cwd.h: Update.
314 * gnulib/import/scratch_buffer.h: Update.
315 * gnulib/import/secure_getenv.c: Update.
316 * gnulib/import/setenv.c: Update.
317 * gnulib/import/signal.in.h: Update.
318 * gnulib/import/stat-time.c: Update.
319 * gnulib/import/stat-time.h: Update.
320 * gnulib/import/stat-w32.c: Update.
321 * gnulib/import/stat-w32.h: Update.
322 * gnulib/import/stat.c: Update.
323 * gnulib/import/stdbool.in.h: Update.
324 * gnulib/import/stddef.in.h: Update.
325 * gnulib/import/stdint.in.h: Update.
326 * gnulib/import/stdio.in.h: Update.
327 * gnulib/import/stdlib.in.h: Update.
328 * gnulib/import/str-two-way.h: Update.
329 * gnulib/import/strchrnul.c: Update.
330 * gnulib/import/strdup.c: Update.
331 * gnulib/import/streq.h: Update.
332 * gnulib/import/strerror-override.c: Update.
333 * gnulib/import/strerror-override.h: Update.
334 * gnulib/import/strerror.c: Update.
335 * gnulib/import/string.in.h: Update.
336 * gnulib/import/stripslash.c: Update.
337 * gnulib/import/strnlen1.c: Update.
338 * gnulib/import/strnlen1.h: Update.
339 * gnulib/import/strstr.c: Update.
340 * gnulib/import/strtok_r.c: Update.
341 * gnulib/import/sys_stat.in.h: Update.
342 * gnulib/import/sys_time.in.h: Update.
343 * gnulib/import/sys_types.in.h: Update.
344 * gnulib/import/tempname.c: Update.
345 * gnulib/import/tempname.h: Update.
346 * gnulib/import/time.in.h: Update.
347 * gnulib/import/unistd--.h: Update.
348 * gnulib/import/unistd-safer.h: Update.
349 * gnulib/import/unistd.in.h: Update.
350 * gnulib/import/unsetenv.c: Update.
351 * gnulib/import/verify.h: Update.
352 * gnulib/import/extra/snippet/warn-on-use.h: Update.
353 * gnulib/import/wchar.in.h: Update.
354 * gnulib/import/wctype.in.h: Update.
355 * gnulib/import/xalloc-oversized.h: Update.
356 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
357 "53e2c179f26a890fa6685af4b6c1397ee370433b".
358
8ec23583
SM
3592018-09-10 Simon Marchi <simon.marchi@ericsson.com>
360
361 * record-btrace.c (get_thread_current_frame): Remove
362 old_inferior_ptid.
363
1f5d1570
JG
3642018-09-10 Jerome Guitton <guitton@adacore.com>
365
366 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
367 with check_tag to 1 if and only if the type is tagged and the
368 component being searched cannot been found in the current
369 view. Otherwise, always call ada_to_fixed_type with
370 check_tag to 0.
371
d91e9ea8
XR
3722018-09-10 Xavier Roirand <roirand@adacore.com>
373
374 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
375 declaration.
376 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
377 * ada-varobj.c (ada_varobj_get_number_of_children,
378 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
379
cc330e39
XR
3802018-09-10 Xavier Roirand <roirand@adacore.com>
381
382 * ada-valprint.c (ada_value_print): Use type instead of
383 enclosing type.
384
b9c50e9a
XR
3852018-09-10 Xavier Roirand <roirand@adacore.com>
386
387 * ada-lang.c (ada_value_subscript): Handle case when parameter is
388 an array of access to unconstrained array.
389
736ade86
XR
3902018-09-10 Xavier Roirand <roirand@adacore.com>
391
392 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
393 (ada_check_typedef): Use it.
394
2963898f
XR
3952018-09-10 Xavier Roirand <roirand@adacore.com>
396
397 * ada-varobj.c (ada_varobj_describe_struct_child)
398 (ada_varobj_describe_child): Handle union case like struct one.
399
a154931e
TT
4002018-09-10 Tom Tromey <tom@tromey.com>
401
402 PR python/18380:
403 * python/python.c (_initialize_python): Make example in "python"
404 help work in Python 3.
405
23c4651c
EZ
4062018-09-10 Eli Zaretskii <eliz@gnu.org>
407
408 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
409 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
410 $(EXEEXT) to the script, as it is not a program.
411
a5c5eda7
SM
4122018-09-09 Simon Marchi <simon.marchi@ericsson.com>
413
414 * python/py-prettyprint.c (pretty_print_one_value): Return
415 gdbpy_ref<>.
416 (print_string_repr): Adjust.
417 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
418 * python/python-internal.h (apply_varobj_pretty_printer): Return
419 gdbpy_ref<>.
420 * varobj.c (varobj_value_get_print_value): Adjust.
421
332cf4c9
TT
4222018-09-08 Tom Tromey <tom@tromey.com>
423
424 PR python/16047:
425 * python/py-prettyprint.c (pretty_print_one_value): Check for
426 to_string method.
427
424da6cf
JB
4282018-09-08 Joel Brobecker <brobecker@adacore.com>
429
430 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
431 replace_operator_with_call.
432
95f39a5b
JB
4332018-09-08 Joel Brobecker <brobecker@adacore.com>
434
435 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
436
16b9eb7b
JB
4372018-09-08 Joel Brobecker <brobecker@adacore.com>
438
439 * ada-typeprint.c (print_range): Print the bounds using TYPE
440 rather than its TYPE_TARGET_TYPE.
441
d8ce9127
JB
4422018-09-08 Joel Brobecker <brobecker@adacore.com>
443
444 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
445 call to ada_to_fixed_value_create.
446
0d81f350
JG
4472018-09-08 Jerome Guitton <guitton@adacore.com>
448
449 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
450
57aff202
JB
4512018-09-08 Joel Brobecker <brobecker@adacore.com>
452
453 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
454 by calls to error.
455
fb44b1a7
JB
4562018-09-08 Joel Brobecker <brobecker@adacore.com>
457
458 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
459 Move update of loop variable "fi".
460
2a62dfa9
JB
4612018-09-08 Joel Brobecker <brobecker@adacore.com>
462
463 * ada-lang.c (value_assign_to_component): In the case of
464 big-endian targets, extract the bits of the given VAL
465 using an src_offset of zero if container is not a scalar.
466
739ab2e9
SS
4672018-09-06 Simon Ser <contact@emersion.fr>
468
469 PR gdb/23105
470 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
471 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
472 * fbsd-tdep.c (fbsd_make_note_desc): New.
473 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
474 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
475 * target.h (enum target_object) Add FreeBSD-specific
476 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
477
d82b3862
SM
4782018-09-06 Simon Marchi <simon.marchi@ericsson.com>
479
480 * compile/compile-c.h (generate_c_for_variable_locations):
481 Change reference to pointer.
482 * compile/compile-c-support.c (compile_program) <compute>:
483 Likewise.
484 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
485 (generate_c_for_for_one_variable): Likewise
486 (generate_c_for_variable_locations): Likewise
487 * compile/compile-c-types.c (compile_c_instance::convert_type):
488 Likewise
489 * compile/compile-cplus-symbols.c (convert_one_symbol):
490 std::move the scope passed to enter_scope.
491 * compile/compile-cplus-types.c
492 (compile_cplus_instance::enter_scope): Make parameter
493 rvalue-reference.
494 (compile_cplus_instance::new_scope): Change reference to
495 pointer.
496 (compile_cplus_instance::convert_type): Likewise
497 (compile_cplus_convert_typedef): std::move the scope passed to
498 enter_scope.
499 (compile_cplus_convert_struct_or_union): Likewise.
500 (compile_cplus_convert_enum): Likewise.
501 (compile_cplus_convert_namespace): Likewise.
502 * compile/compile-cplus.h (compile_cplus_instance)
503 <enter_scope>: Make parameter rvalue-reference.
504 * compile/compile-internal.h (compile_instance)
505 <get_cached_type>: Likewise
506 * compile/compile-loc2c.c (push): Likewise
507 (pushf): Likewise
508 (unary): Likewise
509 (binary): Likewise
510 (print_label): Likewise
511 (pushf_register_address): Likewise
512 (pushf_register): Likewise
513 (do_compile_dwarf_expr_to_c): Likewise
514 (compile_dwarf_expr_to_c): Likewise
515 (compile_dwarf_bounds_to_c): Likewise
516 * compile/compile.c (compile_instance::get_cached_type):
517 Likewise
518 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
519 (compile_dwarf_bounds_to_c): Likewise
520 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
521 (dwarf2_compile_property_to_c): Likewise
522 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
523 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
524 Likewise
525
cc5a5ae5
SM
5262018-09-06 Simon Marchi <simon.marchi@ericsson.com>
527
528 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
529 * tui/tui-data.c (init_content_element): Don't initialize it.
530
137be540
SM
5312018-09-06 Simon Marchi <simon.marchi@ericsson.com>
532
533 * tui/tui-data.h (struct tui_win_info)
534 <detail::opaque>: Remove.
535 * tui/tui-data.c (init_win_info): Remove assignment.
536
f1628857
TT
5372018-09-05 Tom Tromey <tom@tromey.com>
538
539 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
540 -Wformat-nonliteral.
541 * target-float.c (host_float_ops<T>::to_string)
542 (host_float_ops<T>::from_string): Use
543 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
544 * configure: Rebuild.
545
af39b1c2
SM
5462018-09-05 Simon Marchi <simon.marchi@ericsson.com>
547
548 * printcmd.c (printf_c_string): Use
549 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
550 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
551
081bca4d
TT
5522018-09-05 Tom Tromey <tom@tromey.com>
553
554 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
555
e4a62c65
TV
5562018-09-05 Tom de Vries <tdevries@suse.de>
557
558 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
559 with resolve_abstract_p == true.
560 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
561 defaulting to false. Propagate resolve_abstract_p to
562 dwarf2_fetch_die_loc_sect_off.
563 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
564 parameter, defaulting to false.
565 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
566 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
567 parameter.
568 * dwarf2read.h (struct die_info): Forward-declare.
569 (die_info_ptr): New typedef.
570 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
571
2b69821e
JB
5722018-09-05 Joel Brobecker <brobecker@adacore.com>
573
574 GDB 8.2 released.
575
fcc9b044
SDJ
5762018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
577 Pedro Alves <palves@redhat.com>
578
579 * gnulib/Makefile.in (aclocal_m4_deps): Move to
580 "aclocal-m4-deps.mk". Include file here.
581 $(srcdir)/aclocal.m4: Add "configure.ac".
582 * gnulib/aclocal-m4-deps.mk: New file.
583 * gnulib/update-gnulib.sh: Automatically update
584 "aclocal-m4-deps.mk".
585
d53d5436
TT
5862018-09-04 Tom Tromey <tom@tromey.com>
587
588 * configure: Rebuild.
589 * configure.ac: Remove multi-ice code.
590
8dc9fd87
TT
5912018-09-04 Tom Tromey <tom@tromey.com>
592
593 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
594 (ada-exp.o): Update.
595
3322c5d9
TT
5962018-09-04 Tom Tromey <tom@tromey.com>
597
598 * Makefile.in (printcmd.o, target-float.o): Remove.
599 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
600
ba2bf2aa
TT
6012018-09-04 Tom Tromey <tom@tromey.com>
602
603 * gnulib/Makefile.in: Remove obsolete comment.
604 * Makefile.in: Remove obsolete comment.
605
6c9d681b
AB
6062018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
609 line with '+'.
610
78a3b0fa
AB
6112018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
612
613 * riscv-tdep.c: Add 'prologue-value.h' include.
614 (struct riscv_unwind_cache): New struct.
615 (riscv_debug_unwinder): New global.
616 (riscv_scan_prologue): Update arguments, capture register details
617 from prologue scan.
618 (riscv_skip_prologue): Reformat arguments line, move end of
619 prologue calculation into riscv_scan_prologue.
620 (riscv_frame_cache): Update return type, create
621 riscv_unwind_cache, scan the prologue, and fill in remaining cache
622 details.
623 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
624 (riscv_frame_prev_register): Use the trad_frame within the
625 riscv_unwind_cache.
626 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
627 flag.
628
23e60e7a
AB
6292018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
630
631 * trad-frame.h (trad_frame_set_realreg): Declare.
632 (trad_frame_set_addr): Declare.
633 * trad-frame.c (trad_frame_set_realreg): Define new function.
634 (trad_frame_set_addr): Define new function.
635 (trad_frame_set_reg_realreg): Use new function.
636 (trad_frame_set_reg_addr): Use new function.
637
5c889512
KS
6382018-09-01 Keith Seitz <keiths@redhat.com>
639
640 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
641 pulongest instead of "%lld".
642 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
643 ATTRIBUTE_UNUSED.
644
c8c81635
TT
6452018-08-31 Tom Tromey <tom@tromey.com>
646
647 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
648 variant part type.
649
0c888588
PA
6502018-08-31 Pedro Alves <palves@redhat.com>
651
652 * gdbarch.h: Regenerate.
653
7ea65f08
PA
6542018-08-31 Pedro Alves <palves@redhat.com>
655
656 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
657 * target.h (Hardware watchpoint interfaces): Describe
658 continuable/steppable/non-steppable watchpoints.
659 * gdbarch.h, gdbarch.c: Regenerate.
660
7eb65faf
PA
6612018-08-31 Pedro Alves <palves@redhat.com>
662
663 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
664 Delete.
665 * s390-linux-nat.c
666 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
667 * target.h (target_ops::have_continuable_watchpoint): Delete.
668 (target_have_continuable_watchpoint): Delete.
669 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
670 * target-delegates.c: Regenerate.
671
dab999b1
SDJ
6722018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
673
674 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
675 the files present in "gnulib/import/m4/".
676
ff3a05b3
AB
6772018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
678
679 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
680 c.sw, c.swsp, and c.sdsp.
681
0b3f9efc
AB
6822018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
683
684 * riscv-tdep.c (struct riscv_inferior_data): Delete.
685 (riscv_read_misa_reg): Don't cache value read into inferior data.
686 (riscv_new_inferior_data): Delete.
687 (riscv_inferior_data_cleanup): Delete.
688 (riscv_inferior_data): Delete.
689 (riscv_invalidate_inferior_data): Delete.
690 (_initialize_riscv_tdep): Remove initialisation of inferior data.
691
a0dc02a6
SM
6922018-08-30 Simon Marchi <simon.marchi@ericsson.com>
693
694 * compile/compile-cplus-types.c
695 (compile_cplus_instance::leave_scope): Take the address of scope
696 object.
697 (compile_cplus_instance::convert_qualified_base): Compare quals
698 to 0.
699
fdad7678
KS
7002018-08-30 Keith Seitz <keiths@redhat.com>
701
702 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
703 Use "%s" and host_address_to_string instead of "%p" in printf.
704
078a0207
KS
7052018-08-29 Keith Seitz <keiths@redhat.com>
706
707 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
708 and compile-cplus-types.c.
709 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
710 * c-lang.c (cplus_language_defn): Set C++ compile functions.
711 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
712 Declare.
713 * compile/compile-c-support.c: Include compile-cplus.h.
714 (load_libcompile): Templatize.
715 (get_compile_context): "New" function.
716 (c_get_compile_context): Use get_compile_context.
717 (cplus_get_compile_context): New function.
718 (cplus_push_user_expression, cplus_pop_user_expression)
719 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
720 (cplus_compute_program): Define new structs/functions.
721 * compile/compile-cplus-symmbols.c: New file.
722 * compile/compile-cplus-types.c: New file.
723 * compile/compile-cplus.h: New file.
724 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
725 Declare.
726 * compile/compile-object-load.c (get_out_value_type): Use
727 strncmp_iw when comparing symbol names.
728 (compile_object_load): Add mst_bss and mst_data.
729 * compile/compile.c (_initialize_compile): Remove
730 -Wno-implicit-function-declaration from `compile_args'.
731 * compile/gcc-cp-plugin.h: New file.
732 * NEWS: Mention C++ compile support and new debug options.
733
fcaad03c
KS
7342018-08-29 Keith Seitz <keiths@redhat.com>
735
736 * linespec.c (collect_info::add_symbol): Make virtual.
737 (struct symbol_searcher_collect_info): New struct.
738 (symbol_searcher::find_all_symbols): New method.
739 * symtab.h (class symbol_searcher): New class.
740
7e41c8db
KS
7412018-08-29 Keith Seitz <keiths@redhat.com>
742
743 * linespec.c (struct linespec) <function_symbols, label_symbols>:
744 Change to vector of block_symbol. Update all users.
745 (struct collect_info) <symbols>: Likewise.
746 (collect_info::add_symbol): Take block_symbol as argument.
747 Update all callers.
748 (decode_compound_collector) <m_symbols>: Change type to vector
749 of block_symbol. Update all users.
750 (decode_compound_collector::operator ()): Change parameter type
751 to block_symbol.
752 (find_method, find_function_symbols, find_linespec_symbols)
753 (find_label_symbols_in_block, find_label_symbols): Change symbol
754 vectors to block_symbol vectors.
755 * symtab.h (symbol_found_callback_ftype): Change parameter type to
756 block_symbol.
757
63e8c3da
KS
7582018-08-29 Keith Seitz <keiths@redhat.com>
759
760 * linespec.c (symbolp): Remove typedef and VEC definitions.
761 (bound_minimal_symbol_d): Likewise.
762
4dedf84d
KS
7632018-08-29 Keith Seitz <keiths@redhat.com>
764
765 * linespec.c (decode_compound_collector::decode_compound_collector):
766 Remove initialization for `m_symtabs'.
767 (decode_compound_collector::release_symbols): Change return type
768 to std::vector. Update all callers.
769 (class decode_compound_collector) <m_symbols>: Change type to
770 std::vector.
771 (lookup_prefix_sym): Change return type to std::vector. Update all
772 callers.
773 (compare_symbols): Remove.
774 (std_compare_symbols): Rename to `compare_symbols'.
775 (find_method): Change `sym_classes' parameter to std::vector.
776 Update all callers. Use std::sort to sort sym_classes.
777 (find_linespec_symbols): Remove cleanup.
778
c2a031c5
KS
7792018-08-29 Keith Seitz <keiths@redhat.com>
780
781 * linespec.c (struct linespec) <minimal_symbols>: Change type to
782 std::vector. Update all users.
783 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
784 (struct collect_info) <minimal_symbols>: Likewise.
785 (compare_msymbols): Return bool. Change parameters to const
786 bound_minimal_symbol references.
787 (find_method, find_function_symbols, find_linespec_symbols): Change
788 `minsyms' parameter to std::vector. Update all callers.
789
3553eadc
KS
7902018-08-29 Keith Seitz <keiths@redhat.com>
791
792 * linespec.c (struct linespec) <label_symbols>: Change type to
793 std::vector. Update all users.
794 (find_label_symbols_in_block): Change `result' parameter to
795 std::vector. Update all callers.
796 (find_label_symbols): Return std::vector. Update all callers.
797
7243d011
KS
7982018-08-29 Keith Seitz <keiths@redhat.com>
799
800 * linespec.c (struct linespec) <function_symbols>: Change type to
801 std::vector. Update all users.
802 (struct collect_info) <function_symbols>: Likewise.
803 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
804 (std_compare_symbols): New function.
805 (find_method, find_function_symbols, find_linespec_symbols)
806 (find_label_symbols_in_block): Change `symbols' parameter to
807 std::vector. Update all callers.
808 (find_label_symbols): Likewise for `function_symbols' and
809 `label_funcs_ret'.
810
2a908241
KS
8112018-08-29 Keith Seitz <keiths@redhat.com>
812
813 * linespec.c (symtab_vector_up): Define.
814 (struct linespec) <file_symtabs>: Change type to std::vector *.
815 Update all uses.
816 (struct collect_info) <file_symtabs>: Likewise.
817 (collect_symtabs_from_filename): Return symtab_vector_up.
818 Update all callers.
819 (decode_objc): Remove cleanup.
820 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
821 (symtab_collector::release_symtabs): Return symtab_vector_up.
822 Update all callers.
823 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
824 Update all users.
825 (collect_symtabs_from_filename, symtabs_from_filename): Return
826 symtab_vector_up. Update all callers.
827
f6c4e3e8
TT
8282018-08-29 Tom Tromey <tom@tromey.com>
829
830 * csky-tdep.c (csky_analyze_prologue): Use
831 core_addr_to_string_nz.
832
73c13fe6
TT
8332018-08-29 Tom Tromey <tom@tromey.com>
834
835 * windows-nat.c (struct xlate_exception) <them>: Change type to
836 DWORD.
837 (xlate): Fix formatting. Remove last entry.
838 (struct xlate_exception, xlate): Comment out.
839 (windows_nat_target::resume): Use ranged for.
840
4d3928d7
JW
8412018-08-29 Jim Wilson <jimw@sifive.com>
842
843 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
844 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
845 of NT_PRFPREG.
846 (riscv_linux_nat_target::store_registers): Likewise.
847
7a6dbc2f
SDJ
8482018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
849
850 PR gdb/23555
851 PR gdb/23558
852 * gnulib/aclocal.m4: Regenerate.
853 * gnulib/config.in: Regenerate.
854 * gnulib/configure: Regenerate.
855 * gnulib/import/Makefile.am: Update.
856 * gnulib/import/Makefile.in: Update.
857 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
858 * gnulib/import/_Noreturn.h: ... this.
859 * gnulib/import/alloca.in.h: Update.
860 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
861 * gnulib/import/arg-nonnull.h: ... this.
862 * gnulib/import/assure.h: Update.
863 * gnulib/import/at-func.c: Update.
864 * gnulib/import/basename-lgpl.c: Update.
865 * gnulib/import/extra/snippet/c++defs.h: Rename to...
866 * gnulib/import/c++defs.h: ... this.
867 * gnulib/import/canonicalize-lgpl.c: Update.
868 * gnulib/import/cdefs.h: Update.
869 * gnulib/import/chdir-long.c: Update.
870 * gnulib/import/chdir-long.h: Update.
871 * gnulib/import/cloexec.c: Update.
872 * gnulib/import/cloexec.h: Update.
873 * gnulib/import/close.c: Update.
874 * gnulib/import/closedir.c: Update.
875 * gnulib/import/config.charset: Update.
876 * gnulib/import/dirent-private.h: Update.
877 * gnulib/import/dirent.in.h: Update.
878 * gnulib/import/dirfd.c: Update.
879 * gnulib/import/dirname-lgpl.c: Update.
880 * gnulib/import/dirname.h: Update.
881 * gnulib/import/dosname.h: Update.
882 * gnulib/import/dup-safer-flag.c: Update.
883 * gnulib/import/dup-safer.c: Update.
884 * gnulib/import/dup.c: Update.
885 * gnulib/import/dup2.c: Update.
886 * gnulib/import/errno.in.h: Update.
887 * gnulib/import/error.c: Update.
888 * gnulib/import/error.h: Update.
889 * gnulib/import/exitfail.c: Update.
890 * gnulib/import/exitfail.h: Update.
891 * gnulib/import/extra/update-copyright: Update.
892 * gnulib/import/fchdir.c: Update.
893 * gnulib/import/fcntl.c: Update.
894 * gnulib/import/fcntl.in.h: Update.
895 * gnulib/import/fd-hook.c: Update.
896 * gnulib/import/fd-hook.h: Update.
897 * gnulib/import/fd-safer-flag.c: Update.
898 * gnulib/import/fd-safer.c: Update.
899 * gnulib/import/fdopendir.c: Update.
900 * gnulib/import/filename.h: Update.
901 * gnulib/import/filenamecat-lgpl.c: Update.
902 * gnulib/import/filenamecat.h: Update.
903 * gnulib/import/flexmember.h: Update.
904 * gnulib/import/float+.h: Update.
905 * gnulib/import/float.c: Update.
906 * gnulib/import/float.in.h: Update.
907 * gnulib/import/fnmatch.c: Update.
908 * gnulib/import/fnmatch.in.h: Update.
909 * gnulib/import/fnmatch_loop.c: Update.
910 * gnulib/import/fpucw.h: Update.
911 * gnulib/import/frexp.c: Update.
912 * gnulib/import/frexpl.c: Update.
913 * gnulib/import/fstat.c: Update.
914 * gnulib/import/fstatat.c: Update.
915 * gnulib/import/getcwd-lgpl.c: Update.
916 * gnulib/import/getcwd.c: Update.
917 * gnulib/import/getdtablesize.c: Update.
918 * gnulib/import/getlogin_r.c: Update.
919 * gnulib/import/getprogname.c: Update.
920 * gnulib/import/getprogname.h: Update.
921 * gnulib/import/gettext.h: Update.
922 * gnulib/import/gettimeofday.c: Update.
923 * gnulib/import/glob-libc.h: Update.
924 * gnulib/import/glob.c: Update.
925 * gnulib/import/glob.in.h: Update.
926 * gnulib/import/glob_internal.h: Update.
927 * gnulib/import/glob_pattern_p.c: Update.
928 * gnulib/import/globfree.c: Update.
929 * gnulib/import/hard-locale.c: Update.
930 * gnulib/import/hard-locale.h: Update.
931 * gnulib/import/intprops.h: Update.
932 * gnulib/import/inttypes.in.h: Update.
933 * gnulib/import/isnan.c: Update.
934 * gnulib/import/isnand-nolibm.h: Update.
935 * gnulib/import/isnand.c: Update.
936 * gnulib/import/isnanl-nolibm.h: Update.
937 * gnulib/import/isnanl.c: Update.
938 * gnulib/import/itold.c: Update.
939 * gnulib/import/libc-config.h: Update.
940 * gnulib/import/limits.in.h: Update.
941 * gnulib/import/localcharset.c: Update.
942 * gnulib/import/localcharset.h: Update.
943 * gnulib/import/localtime-buffer.c: Update.
944 * gnulib/import/localtime-buffer.h: Update.
945 * gnulib/import/lstat.c: Update.
946 * gnulib/import/m4/00gnulib.m4: Update.
947 * gnulib/import/m4/__inline.m4: Update.
948 * gnulib/import/m4/absolute-header.m4: Update.
949 * gnulib/import/m4/alloca.m4: Update.
950 * gnulib/import/m4/builtin-expect.m4: Update.
951 * gnulib/import/m4/canonicalize.m4: Update.
952 * gnulib/import/m4/chdir-long.m4: Update.
953 * gnulib/import/m4/close.m4: Update.
954 * gnulib/import/m4/closedir.m4: Update.
955 * gnulib/import/m4/configmake.m4: Update.
956 * gnulib/import/m4/d-ino.m4: Update.
957 * gnulib/import/m4/d-type.m4: Update.
958 * gnulib/import/m4/dirent_h.m4: Update.
959 * gnulib/import/m4/dirfd.m4: Update.
960 * gnulib/import/m4/dirname.m4: Update.
961 * gnulib/import/m4/double-slash-root.m4: Update.
962 * gnulib/import/m4/dup.m4: Update.
963 * gnulib/import/m4/dup2.m4: Update.
964 * gnulib/import/m4/eealloc.m4: Update.
965 * gnulib/import/m4/environ.m4: Update.
966 * gnulib/import/m4/errno_h.m4: Update.
967 * gnulib/import/m4/error.m4: Update.
968 * gnulib/import/m4/exponentd.m4: Update.
969 * gnulib/import/m4/exponentl.m4: Update.
970 * gnulib/import/m4/extensions.m4: Update.
971 * gnulib/import/m4/extern-inline.m4: Update.
972 * gnulib/import/m4/fchdir.m4: Update.
973 * gnulib/import/m4/fcntl-o.m4: Update.
974 * gnulib/import/m4/fcntl.m4: Update.
975 * gnulib/import/m4/fcntl_h.m4: Update.
976 * gnulib/import/m4/fdopendir.m4: Update.
977 * gnulib/import/m4/filenamecat.m4: Update.
978 * gnulib/import/m4/flexmember.m4: Update.
979 * gnulib/import/m4/float_h.m4: Update.
980 * gnulib/import/m4/fnmatch.m4: Update.
981 * gnulib/import/m4/fnmatch_h.m4: Update.
982 * gnulib/import/m4/fpieee.m4: Update.
983 * gnulib/import/m4/frexp.m4: Update.
984 * gnulib/import/m4/frexpl.m4: Update.
985 * gnulib/import/m4/fstat.m4: Update.
986 * gnulib/import/m4/fstatat.m4: Update.
987 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
988 * gnulib/import/m4/getcwd-path-max.m4: Update.
989 * gnulib/import/m4/getcwd.m4: Update.
990 * gnulib/import/m4/getdtablesize.m4: Update.
991 * gnulib/import/m4/getlogin.m4: Update.
992 * gnulib/import/m4/getlogin_r.m4: Update.
993 * gnulib/import/m4/getpagesize.m4: Update.
994 * gnulib/import/m4/getprogname.m4: Update.
995 * gnulib/import/m4/gettimeofday.m4: Update.
996 * gnulib/import/m4/glibc21.m4: Update.
997 * gnulib/import/m4/glob.m4: Update.
998 * gnulib/import/m4/glob_h.m4: Update.
999 * gnulib/import/m4/gnulib-cache.m4: Update.
1000 * gnulib/import/m4/gnulib-common.m4: Update.
1001 * gnulib/import/m4/gnulib-comp.m4: Update.
1002 * gnulib/import/m4/gnulib-tool.m4: Update.
1003 * gnulib/import/m4/hard-locale.m4: Update.
1004 * gnulib/import/m4/include_next.m4: Update.
1005 * gnulib/import/m4/inttypes-pri.m4: Update.
1006 * gnulib/import/m4/inttypes.m4: Update.
1007 * gnulib/import/m4/isnand.m4: Update.
1008 * gnulib/import/m4/isnanl.m4: Update.
1009 * gnulib/import/m4/largefile.m4: Update.
1010 * gnulib/import/m4/limits-h.m4: Update.
1011 * gnulib/import/m4/localcharset.m4: Update.
1012 * gnulib/import/m4/locale-fr.m4: Update.
1013 * gnulib/import/m4/locale-ja.m4: Update.
1014 * gnulib/import/m4/locale-zh.m4: Update.
1015 * gnulib/import/m4/localtime-buffer.m4: Update.
1016 * gnulib/import/m4/longlong.m4: Update.
1017 * gnulib/import/m4/lstat.m4: Update.
1018 * gnulib/import/m4/malloc.m4: Update.
1019 * gnulib/import/m4/malloca.m4: Update.
1020 * gnulib/import/m4/math_h.m4: Update.
1021 * gnulib/import/m4/mbrtowc.m4: Update.
1022 * gnulib/import/m4/mbsinit.m4: Update.
1023 * gnulib/import/m4/mbsrtowcs.m4: Update.
1024 * gnulib/import/m4/mbstate_t.m4: Update.
1025 * gnulib/import/m4/memchr.m4: Update.
1026 * gnulib/import/m4/memmem.m4: Update.
1027 * gnulib/import/m4/mempcpy.m4: Update.
1028 * gnulib/import/m4/memrchr.m4: Update.
1029 * gnulib/import/m4/mkdir.m4: Update.
1030 * gnulib/import/m4/mkstemp.m4: Update.
1031 * gnulib/import/m4/mmap-anon.m4: Update.
1032 * gnulib/import/m4/mode_t.m4: Update.
1033 * gnulib/import/m4/msvc-inval.m4: Update.
1034 * gnulib/import/m4/msvc-nothrow.m4: Update.
1035 * gnulib/import/m4/multiarch.m4: Update.
1036 * gnulib/import/m4/nocrash.m4: Update.
1037 * gnulib/import/m4/off_t.m4: Update.
1038 * gnulib/import/m4/onceonly.m4: Update.
1039 * gnulib/import/m4/open-cloexec.m4: Update.
1040 * gnulib/import/m4/open.m4: Update.
1041 * gnulib/import/m4/openat.m4: Update.
1042 * gnulib/import/m4/opendir.m4: Update.
1043 * gnulib/import/m4/pathmax.m4: Update.
1044 * gnulib/import/m4/rawmemchr.m4: Update.
1045 * gnulib/import/m4/readdir.m4: Update.
1046 * gnulib/import/m4/readlink.m4: Update.
1047 * gnulib/import/m4/realloc.m4: Update.
1048 * gnulib/import/m4/rename.m4: Update.
1049 * gnulib/import/m4/rewinddir.m4: Update.
1050 * gnulib/import/m4/rmdir.m4: Update.
1051 * gnulib/import/m4/save-cwd.m4: Update.
1052 * gnulib/import/m4/secure_getenv.m4: Update.
1053 * gnulib/import/m4/setenv.m4: Update.
1054 * gnulib/import/m4/signal_h.m4: Update.
1055 * gnulib/import/m4/ssize_t.m4: Update.
1056 * gnulib/import/m4/stat-time.m4: Update.
1057 * gnulib/import/m4/stat.m4: Update.
1058 * gnulib/import/m4/std-gnu11.m4: Update.
1059 * gnulib/import/m4/stdbool.m4: Update.
1060 * gnulib/import/m4/stddef_h.m4: Update.
1061 * gnulib/import/m4/stdint.m4: Update.
1062 * gnulib/import/m4/stdio_h.m4: Update.
1063 * gnulib/import/m4/stdlib_h.m4: Update.
1064 * gnulib/import/m4/strchrnul.m4: Update.
1065 * gnulib/import/m4/strdup.m4: Update.
1066 * gnulib/import/m4/strerror.m4: Update.
1067 * gnulib/import/m4/string_h.m4: Update.
1068 * gnulib/import/m4/strstr.m4: Update.
1069 * gnulib/import/m4/strtok_r.m4: Update.
1070 * gnulib/import/m4/sys_socket_h.m4: Update.
1071 * gnulib/import/m4/sys_stat_h.m4: Update.
1072 * gnulib/import/m4/sys_time_h.m4: Update.
1073 * gnulib/import/m4/sys_types_h.m4: Update.
1074 * gnulib/import/m4/tempname.m4: Update.
1075 * gnulib/import/m4/time_h.m4: Update.
1076 * gnulib/import/m4/unistd-safer.m4: Update.
1077 * gnulib/import/m4/unistd_h.m4: Update.
1078 * gnulib/import/m4/warn-on-use.m4: Update.
1079 * gnulib/import/m4/wchar_h.m4: Update.
1080 * gnulib/import/m4/wchar_t.m4: Update.
1081 * gnulib/import/m4/wctype_h.m4: Update.
1082 * gnulib/import/m4/wint_t.m4: Update.
1083 * gnulib/import/malloc.c: Update.
1084 * gnulib/import/malloc/scratch_buffer.h: Update.
1085 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1086 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1087 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1088 * gnulib/import/malloca.c: Update.
1089 * gnulib/import/malloca.h: Update.
1090 * gnulib/import/malloca.valgrind: Update.
1091 * gnulib/import/math.in.h: Update.
1092 * gnulib/import/mbrtowc.c: Update.
1093 * gnulib/import/mbsinit.c: Update.
1094 * gnulib/import/mbsrtowcs-impl.h: Update.
1095 * gnulib/import/mbsrtowcs-state.c: Update.
1096 * gnulib/import/mbsrtowcs.c: Update.
1097 * gnulib/import/memchr.c: Update.
1098 * gnulib/import/memmem.c: Update.
1099 * gnulib/import/mempcpy.c: Update.
1100 * gnulib/import/memrchr.c: Update.
1101 * gnulib/import/mkdir.c: Update.
1102 * gnulib/import/mkstemp.c: Update.
1103 * gnulib/import/msvc-inval.c: Update.
1104 * gnulib/import/msvc-inval.h: Update.
1105 * gnulib/import/msvc-nothrow.c: Update.
1106 * gnulib/import/msvc-nothrow.h: Update.
1107 * gnulib/import/open.c: Update.
1108 * gnulib/import/openat-die.c: Update.
1109 * gnulib/import/openat-priv.h: Update.
1110 * gnulib/import/openat-proc.c: Update.
1111 * gnulib/import/openat.c: Update.
1112 * gnulib/import/openat.h: Update.
1113 * gnulib/import/opendir.c: Update.
1114 * gnulib/import/pathmax.h: Update.
1115 * gnulib/import/pipe-safer.c: Update.
1116 * gnulib/import/rawmemchr.c: Update.
1117 * gnulib/import/readdir.c: Update.
1118 * gnulib/import/readlink.c: Update.
1119 * gnulib/import/realloc.c: Update.
1120 * gnulib/import/ref-add.sin: Update.
1121 * gnulib/import/ref-del.sin: Update.
1122 * gnulib/import/rename.c: Update.
1123 * gnulib/import/rewinddir.c: Update.
1124 * gnulib/import/rmdir.c: Update.
1125 * gnulib/import/same-inode.h: Update.
1126 * gnulib/import/save-cwd.c: Update.
1127 * gnulib/import/save-cwd.h: Update.
1128 * gnulib/import/scratch_buffer.h: Update.
1129 * gnulib/import/secure_getenv.c: Update.
1130 * gnulib/import/setenv.c: Update.
1131 * gnulib/import/signal.in.h: Update.
1132 * gnulib/import/stat-time.c: Update.
1133 * gnulib/import/stat-time.h: Update.
1134 * gnulib/import/stat-w32.c: Update.
1135 * gnulib/import/stat-w32.h: Update.
1136 * gnulib/import/stat.c: Update.
1137 * gnulib/import/stdbool.in.h: Update.
1138 * gnulib/import/stddef.in.h: Update.
1139 * gnulib/import/stdint.in.h: Update.
1140 * gnulib/import/stdio.in.h: Update.
1141 * gnulib/import/stdlib.in.h: Update.
1142 * gnulib/import/str-two-way.h: Update.
1143 * gnulib/import/strchrnul.c: Update.
1144 * gnulib/import/strdup.c: Update.
1145 * gnulib/import/streq.h: Update.
1146 * gnulib/import/strerror-override.c: Update.
1147 * gnulib/import/strerror-override.h: Update.
1148 * gnulib/import/strerror.c: Update.
1149 * gnulib/import/string.in.h: Update.
1150 * gnulib/import/stripslash.c: Update.
1151 * gnulib/import/strnlen1.c: Update.
1152 * gnulib/import/strnlen1.h: Update.
1153 * gnulib/import/strstr.c: Update.
1154 * gnulib/import/strtok_r.c: Update.
1155 * gnulib/import/sys_stat.in.h: Update.
1156 * gnulib/import/sys_time.in.h: Update.
1157 * gnulib/import/sys_types.in.h: Update.
1158 * gnulib/import/tempname.c: Update.
1159 * gnulib/import/tempname.h: Update.
1160 * gnulib/import/time.in.h: Update.
1161 * gnulib/import/unistd--.h: Update.
1162 * gnulib/import/unistd-safer.h: Update.
1163 * gnulib/import/unistd.in.h: Update.
1164 * gnulib/import/unsetenv.c: Update.
1165 * gnulib/import/verify.h: Update.
1166 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1167 * gnulib/import/wchar.in.h: Update.
1168 * gnulib/import/wctype.in.h: Update.
1169 * gnulib/import/xalloc-oversized.h: Update.
1170 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1171 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1172
b0f492b9
GB
11732018-08-16 Gary Benson <gbenson@redhat.com>
1174
1175 PR gdb/13000:
1176 * gdb/main.c (captured_main_1): Exit with nonzero status
1177 in batch mode if the last command to be executed failed.
1178 * NEWS: Mention the above.
1179
2362e7f7
SM
11802018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1181
1182 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1183 end of warning message.
1184
4f4aedeb
AH
11852018-08-29 Alan Hayward <alan.hayward@arm.com>
1186
1187 PR gdb/22943:
1188 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1189 (aarch64_extract_return_value): Use
1190 aapcs_is_vfp_call_or_return_candidate.
1191 (aarch64_return_in_memory): Likewise.
1192 (aarch64_store_return_value): Likewise.
1193
0e745c60
AH
11942018-08-29 Alan Hayward <alan.hayward@arm.com>
1195
1196 * aarch64-tdep.c
1197 (aapcs_is_vfp_call_or_return_candidate): Make static
1198 (pass_in_v_or_stack): Remove function.
1199 (pass_in_v_vfp_candidate): New function.
1200 (aarch64_push_dummy_call): Check for float register candidates.
1201
ea92689a
AH
12022018-08-29 Alan Hayward <alan.hayward@arm.com>
1203
1204 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1205 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1206 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1207
ad202fcc
SM
12082018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1209
1210 PR build/23399
1211 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1212 (struct ipa_sym_addresses): Rename to...
1213 (struct ipa_sym_addresses_common): ... this.
1214 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1215
5fe3f3e4
TT
12162018-08-28 Tom Tromey <tom@tromey.com>
1217
1218 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1219 (token_fifo): Now a std::vector.
1220 (yylex, c_parse): Update.
1221 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1222 (token_fifo): Now a std::vector.
1223 (yylex, d_parse): Update.
1224 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1225 (token_fifo): Now a std::vector.
1226 (yylex, go_parse): Update.
1227
858d8004
SM
12282018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1229
1230 * parser-defs.h (struct type_stack) <elements>: Change type to
1231 std::vector<union type_stack_elt>.
1232 <depth, size>: Remove.
1233 * parse.c (parse_exp_in_context_1): Adjust.
1234 (type_stack_reserve): Remove.
1235 (check_type_stack_depth): Remove.
1236 (insert_into_type_stack): Adjust to std::vector.
1237 (insert_type): Likewise.
1238 (push_type): Likewise.
1239 (push_type_int): Likewise.
1240 (insert_type_address_space): Likewise.
1241 (pop_type): Likewise.
1242 (pop_type_int): Likewise.
1243 (pop_typelist): Likewise.
1244 (pop_type_stack): Likewise.
1245 (append_type_stack): Likewise.
1246 (push_type_stack): Likewise.
1247 (get_type_stack): Likewise.
1248 (type_stack_cleanup): Likewise.
1249 (push_typelist): Likewise.
1250 (follow_types): Likewise.
1251 (_initialize_parse): Likewise.
1252
416a69af
HAQ
12532018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1254
1255 * NEWS: Mention csky target.
1256
9d24df82
HAQ
12572018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1258 Hafiz Abid Qadeer <abidh@codesourcery.com>
1259 Don Breazeal <donb@codesourcery.com>
1260
1261 * csky-linux-tdep.c: New file.
1262 * csky-tdep.c: Likewise.
1263 * csky-tdep.h: Likewise.
1264 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1265 csky-tdep.o.
1266 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1267 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1268 * configure.tgt: Add csky support.
1269
3bf9c013
JV
12702018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1271
1272 * python/py-framefilter.c (py_print_frame): Print frame architecture
1273 when printing on an MI output.
1274
d3d8724a
TT
12752018-08-27 Tom Tromey <tom@tromey.com>
1276
1277 PR build/23087:
1278 * configure: Rebuild.
1279 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1280
1885053b
TT
12812018-08-27 Tom Tromey <tom@tromey.com>
1282
1283 * aarch64-linux-tdep.c
1284 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1285 casts to int.
1286
8406672e
TT
12872018-08-27 Tom Tromey <tom@tromey.com>
1288
1289 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1290 unsigned.
1291 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1292 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1293 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1294 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1295 unsigned.
1296
ec40cf90
TT
12972018-08-27 Tom Tromey <tom@tromey.com>
1298
1299 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1300 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1301
7bc02706
TT
13022018-08-27 Tom Tromey <tom@tromey.com>
1303
1304 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1305 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1306 ULONGEST_MAX.
1307 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1308 ULONGEST_MAX.
1309 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1310 ULONGEST_MAX.
1311 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1312 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1313 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1314 ULONGEST_MAX.
1315 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1316 (ppc64_linux_sigaction_tramp_frame)
1317 (ppc32_linux_sighandler_tramp_frame)
1318 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1319 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1320 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1321 * mn10300-linux-tdep.c (am33_linux_sigframe)
1322 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1323 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1324 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1325 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1326 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1327 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1328 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1329 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1330 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1331 * microblaze-linux-tdep.c
1332 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1333 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1334 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1335 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1336 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1337 * common/common-types.h (ULONGEST_MAX): New define.
1338 (CORE_ADDR_MAX): Fix formatting.
1339 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1340 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1341 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1342 (arm_linux_rt_sigreturn_tramp_frame)
1343 (arm_eabi_linux_sigreturn_tramp_frame)
1344 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1345 (thumb2_eabi_linux_sigreturn_tramp_frame)
1346 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1347 (arm_linux_restart_syscall_tramp_frame)
1348 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1349 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1350 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1351 ULONGEST_MAX.
1352 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1353
70ab8ccd
TT
13542018-08-27 Tom Tromey <tom@tromey.com>
1355
1356 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1357 CORE_ADDR_MAX.
1358 * mips-tdep.c (mips_deal_with_atomic_sequence)
1359 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1360 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1361 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1362 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1363 CORE_ADDR_MAX.
1364 * aarch64-tdep.c (aarch64_software_single_step): Use
1365 CORE_ADDR_MAX.
1366
896a7aa6
TT
13672018-08-27 Tom Tromey <tom@tromey.com>
1368
1369 * linespec.c (complete_linespec_component): Add cast to "char".
1370 * completer.c (completion_tracker::build_completion_result): Add
1371 cast to "char".
1372
dd33d41d
SM
13732018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1374
1375 * solist.h (struct solist, struct target_so_ops): Fix
1376 indentation.
1377
c645cda4
SM
13782018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1379
1380 * ada-tasks.c (ada_task_info_s): Remove typedef.
1381 (DEF_VEC_O(ada_task_info_s)): Remove.
1382 (struct ada_tasks_inferior_data): Initialize fields.
1383 <task_list>: Make an std::vector.
1384 (get_ada_tasks_inferior_data): Allocate with new.
1385 (ada_get_task_number): Adjust.
1386 (get_task_number_from_id): Likewise.
1387 (valid_task_id): Likewise.
1388 (ada_get_task_info_from_ptid): Likewise.
1389 (iterate_over_live_ada_tasks): Likewise.
1390 (add_ada_task): Likewise.
1391 (read_known_tasks): Likewise.
1392 (ada_build_task_list): Likewise.
1393 (print_ada_task_info): Likewise.
1394 (info_task): Likewise.
1395 (task_command_1): Likewise.
1396
39e7af3e
SM
13972018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1398
1399 * ada-lang.c (add_angle_brackets): Return std::string.
1400
bbbbbcee
SM
14012018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1402
1403 * python/py-threadevent.c (py_get_event_thread): Initialize
1404 pythread.
1405
d98fc15b
PA
14062018-08-24 Pedro Alves <palves@redhat.com>
1407
1408 * python/py-bpevent.c (create_breakpoint_event_object): Use
1409 copy-initialization.
1410 * python/py-continueevent.c (emit_continue_event): Use
1411 copy-initialization.
1412 * python/py-exitedevent.c (create_exited_event_object): Return a
1413 gdbpy_ref<>.
1414 (emit_exited_event): Use copy-initialization.
1415 * python/py-inferior.c (python_new_inferior)
1416 (python_inferior_deleted, add_thread_object): Use
1417 copy-initialization.
1418 * python/py-infevents.c (create_inferior_call_event_object)
1419 (create_register_changed_event_object)
1420 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1421 (emit_inferior_call_event, emit_memory_changed_event)
1422 (emit_register_changed_event): Use copy-initialization.
1423 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1424 Return a gdbpy_ref<>.
1425 (emit_new_objfile_event): Use copy-initialization.
1426 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1427 (emit_clear_objfiles_event): Use copy-initialization.
1428 * python/py-signalevent.c (create_signal_event_object): Use
1429 copy-initialization.
1430 * python/py-threadevent.c (create_thread_event_object): Use
1431 copy-initialization.
1432
da3c8738
PA
14332018-08-24 Pedro Alves <palves@redhat.com>
1434 Simon Marchi <simon.marchi@ericsson.com>
1435
1436 PR gdb/23379
1437 * python/py-continueevent.c: Include "gdbthread.h".
1438 (create_continue_event_object): Add intro comment. Add 'ptid'
1439 parameter. Use it to find thread to pass to
1440 create_thread_event_object.
1441 (emit_continue_event): Pass PTID down to
1442 create_continue_event_object.
1443 * python/py-event.h (py_get_event_thread): Declare.
1444 (create_thread_event_object): Remove default from 'thread'
1445 parameter.
1446 * python/py-stopevent.c (create_stop_event_object): Use
1447 py_get_event_thread.
1448 * python/py-threadevent.c (get_event_thread): Rename to ...
1449 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1450 and use it to find the thread.
1451 (create_thread_event_object): Assert that THREAD isn't null.
1452 Don't find the event thread here.
1453
26457a9c
KB
14542018-08-23 Kevin Buettner <kevinb@redhat.com>
1455
1456 * block.h (blockrange, blockranges): New struct declarations.
1457 (struct block): Add new field named `ranges'.
1458 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1459 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1460 macros for accessing ranges in struct block.
1461 (make_blockranges): New declaration.
1462 block.c (make_blockranges): New function.
2d5f09ec
KB
1463 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1464 for block.
fc811edd
KB
1465 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1466 * blockframe.c (cache_pc_function_block): New static global.
1467 (clear_pc_function_cache): Clear cache_pc_function_block.
1468 (find_pc_partial_function): Move comment to symtab.h. Add
1469 support for non-contiguous blocks.
e9480230
KB
1470 * cli/cli-cmds.c (block.h): Include.
1471 (print_disassembly): Handle printing of non-contiguous blocks.
1472 (disassemble_current_function): Likewise.
1473 (disassemble_command): Likewise.
26457a9c 1474
2b1ffcfd
KB
1475 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1476 BLOCK_START.
1477 * blockframe.c (get_pc_function_start): Likewise.
1478 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1479 (gcc_symbol_address): Likewise.
1480 * compile/compile-object-run.c (compile_object_run): Likewise.
1481 * compile/compile.c (get_expr_block_and_pc): Likewise.
1482 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1483 (func_addr_to_tail_call_list): Likewise.
1484 * findvar.c (default_read_var_value): Likewise.
1485 * inline-frame.c (inline_frame_this_id): Likewise.
1486 (skip-inline_frames): Likewise.
1487 * infcmd.c (until_next_command): Likewise.
1488 * linespec.c (convert_linespec_to_sals): Likewise.
1489 * parse.c (parse_exp_in_context_1): Likewise.
1490 * printcmd.c (build_address_symbolic): likewise.
1491 (info_address_command): Likewise.
1492 symtab.c (find_function_start_sal): Likewise.
1493 (skip_prologue_sal): Likewise.
1494 (find_function_alias_target): Likewise.
1495 (find_gnu_ifunc): Likewise.
1496 * stack.c (find_frame_funname): Likewise.
1497 * symtab.c (fixup_symbol_section): Likewise.
1498 (find_function_start_sal): Likewise.
1499 (skip_prologue_sal): Likewsie.
1500 (find_function_alias_target): Likewise.
1501 (find_gnu_ifunc): Likewise.
1502 * tracepoint.c (info_scope_command): Likewise.
1503 * value.c (value_fn_field): Likewise.
1504
9644dc3a
KB
1505 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1506 in place of find_pc_partial_function.
1507 * blockframe.c (find_function_entry_range_from_pc): New function.
1508 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1509 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1510 for each range in a block.
1511
1512
12a0d0f6
XR
15132018-08-23 Xavier Roirand <roirand@adacore.com>
1514
1515 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1516 incrementation.
1517
d1012b8e
SM
15182018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1519
1520 * solib-svr4.c (read_program_headers_from_bfd): Return
1521 gdb::optional<gdb::byte_vector>.
1522 (svr4_exec_displacement): Adjust.
1523
17658d46
SM
15242018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1525
1526 * solib-svr4.c (read_program_header): Return
1527 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1528 (find_program_interpreter): Return
1529 gdb::optional<gdb::byte_vector>.
1530 (scan_dyntag_auxv): Adjust.
1531 (enable_break): Adjust.
1532 (svr4_exec_displacement): Adjust.
1533
ae739fe7
SM
15342018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1535
1536 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1537 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1538
467dc1e2
SM
15392018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1540
1541 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1542 string_vprintf.
1543 * guile/scm-utils.c (gdbscm_printf): Likewise.
1544 * serial.c (serial_printf): Likewise.
1545 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1546
6d52907e
JV
15472018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1548
1549 * stack.c (print_frame): Print frame architecture when printing on
1550 an MI output.
1551 * NEWS: Mention new "arch" attribute in frame output.
1552
9758a8f8
AH
15532018-08-21 Alan Hayward <alan.hayward@arm.com>
1554
1555 * arch/aarch64.h (aarch64_regnum): Update comment.
1556
1461bdac
AH
15572018-08-21 Alan Hayward <alan.hayward@arm.com>
1558
1559 * NEWS: Add SVE to 8.2 section.
1560
4895f384
PA
15612018-08-21 Pedro Alves <palves@redhat.com>
1562
1563 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1564 out from gdbscm_parse_function_args.
1565 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1566 gdbscm_parse_function_args_1.
1567
a4497d2f
SM
15682018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1569
1570 PR gdb/17816
1571 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1572 operator.
1573
c44deb73
SM
15742018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1575
1576 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1577
be2d111a
MS
15782018-08-19 Michael Spang <spang@google.com>
1579
1580 PR gdb/11786
1581 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1582 for PT_TLS segments.
1583
a6b786da
KB
15842018-08-18 Kevin Buettner <kevinb@redhat.com>
1585
1586 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1587 dwarf_variable_value.
1588 * dwarf2-frame.c (class dwarf_expr_executor):
1589 Add override for dwarf_variable_value.
1590 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1591 (class symbol_needs_eval_context): Likewise.
1592 (indirect_synthetic_pointer): Add forward declaration.
1593 (sect_variable_value): New function.
1594 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1595 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1596 for DW_OP_GNU_variable_value.
1597
89fbedf3
TT
15982018-08-16 Tom Tromey <tom@tromey.com>
1599
1600 * top.c (read_command_file): Update.
1601 (command_line_input): Remove "repeat" argument.
1602 * ada-lang.c (get_selections): Update.
1603 * linespec.c (decode_line_2): Update.
1604 * defs.h (command_line_input): Remove argument.
1605 * cli/cli-script.c (read_next_line): Update.
1606 * python/py-gdb-readline.c: Update.
1607
12582533
TT
16082018-08-17 Tom Tromey <tom@tromey.com>
1609
1610 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1611 command_line_input.
1612
49514353
TT
16132018-08-15 Tom Tromey <tom@tromey.com>
1614
1615 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1616
26fb3983
JV
16172018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1618
1619 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1620 If used, use find_pc_partial_function to find address range
1621 to disassemble.
1622 * mi/mi-main.c (mi_cmd_list_features): Report
1623 "data-disassemble-a-option" feature.
1624 * NEWS: Mention new -data-disassemble option -a.
1625
a97b53dd
TT
16262018-08-13 Tom Tromey <tom@tromey.com>
1627
1628 * common/common-defs.h (_FORTIFY_SOURCE): Define.
1629
0c76e06d
AH
16302018-08-13 Alan Hayward <alan.hayward@arm.com>
1631
1632 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1633 (aarch64_linux_collect_sve_regset): Likewise.
1634 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1635 * regcache.h (regcache_map_entry_size): New function.
1636
b7fd65b9
AH
16372018-08-13 Alan Hayward <alan.hayward@arm.com>
1638
1639 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1640 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1641 (SVE_HEADER_VL_LENGTH): Likewise.
1642 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1643 (SVE_HEADER_FLAGS_LENGTH): Likewise.
1644 (SVE_HEADER_RESERVED_LENGTH): Likewise.
1645 (SVE_HEADER_SIZE_OFFSET): Likewise.
1646 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1647 (SVE_HEADER_VL_OFFSET): Likewise.
1648 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1649 (SVE_HEADER_FLAGS_OFFSET): Likewise.
1650 (SVE_HEADER_RESERVED_OFFSET): Likewise.
1651 (SVE_HEADER_SIZE): Likewise.
1652 (aarch64_linux_core_read_vq): Add function.
1653 (aarch64_linux_core_read_description): Check for SVE section.
1654
a616bb94
AH
16552018-08-13 Alan Hayward <alan.hayward@arm.com>
1656
1657 * aarch64-fbsd-tdep.c
1658 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1659 collect_size.
1660 * aarch64-linux-tdep.c
1661 (aarch64_linux_iterate_over_regset_sections): Likewise.
1662 * alpha-linux-tdep.c
1663 (alpha_linux_iterate_over_regset_sections):
1664 * alpha-nbsd-tdep.c
1665 (alphanbsd_iterate_over_regset_sections): Likewise.
1666 * amd64-fbsd-tdep.c
1667 (amd64fbsd_iterate_over_regset_sections): Likewise.
1668 * amd64-linux-tdep.c
1669 (amd64_linux_iterate_over_regset_sections): Likewise.
1670 * arm-bsd-tdep.c
1671 (armbsd_iterate_over_regset_sections): Likewise.
1672 * arm-fbsd-tdep.c
1673 (arm_fbsd_iterate_over_regset_sections): Likewise.
1674 * arm-linux-tdep.c
1675 (arm_linux_iterate_over_regset_sections): Likewise.
1676 * corelow.c (get_core_registers_cb): Likewise.
1677 (core_target::fetch_registers): Likewise.
1678 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1679 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1680 * gdbarch.h (void): Regenerate.
1681 * gdbarch.sh: Add supply_size and collect_size.
1682 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1683 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1684 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1685 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1686 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1687 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1688 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1689 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1690 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1691 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1692 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1693 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1694 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1695 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1696 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1697 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1698 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1699 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1700 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1701 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1702 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1703 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1704 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1705 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1706 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1707 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1708 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1709 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1710 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1711 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1712
a9925d4f
SM
17132018-08-10 Simon Marchi <simon.marchi@ericsson.com>
1714
1715 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1716 with string_printf.
1717
ad3a68e9
KS
17182018-08-10 Keith Seitz <keiths@redhat.com>
1719
1720 * compile/compile-c-support.c (add_code_header, add_code_footer):
1721 Move into policy class.
1722 (c_push_user_expression, pop_user_expression_nop)
1723 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1724 (compile_program): New host class.
1725 (c_compile_program): New typedef.
1726 (c_compute_porgram): Use c_compile_program.
1727
0cfbf430
KS
17282018-08-10 Keith Seitz <keiths@redhat.com>
1729
1730 * compile/compile-internal.h (compile_instance::~compile_instance):
1731 Remove calls to htab_delete.
1732 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1733 * compile.c (compile_instance::compile_instance): Initialize
1734 htab unique pointers.
1735 (compile_instance::get_cached_type, compile_instance::insert_type)
1736 (compile_instance::error_symbol_once): Update for unique_ptr.
1737
946d3d10
KS
17382018-08-10 Keith Seitz <keiths@redhat.com>
1739
1740 * compile/compile-c-symbols.c (struct symbol_error)
1741 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1742 (compile_instance::insert_symbol_error)
1743 (compile_instance::error_symbol_once): Move to ...
1744 * compile/compile.c: ... here.
1745
9cdfd9a2
KS
17462018-08-10 Keith Seitz <keiths@redhat.com>
1747
1748 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1749 instead of `new_compile_instance'.
1750 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1751 Update description.
1752 If the symbol error map is not initialized, create it.
1753 (generate_c_for_for_one_symbol): Do not check/initialize
1754 the symbol error map.
1755 * compile/compile-c-types.c (compile_c_instance): Make a class.
1756 Update all callers.
1757 (compile_instance::compile_instance): Initialize the type cache.
1758 (get_cached_type): New function.
1759 (insert_type): Update description.
1760 (compile_c_instance::m_default_cflags): Define.
1761 (convert_type): Update description. Use get_cached_type.
1762 (delete_instance): Moved to destructor.
1763 (new_compile_instance): Moved to constructor.
1764 * compile/compile-c.h (compile_c_instance): Make class inheriting
1765 from compile_instance.
1766 <base>: Remove field.
1767 <type_map, symbol_err_map>: Move to base class.
1768 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1769 * compile/compile-internal.h (compile_instance): Make class.
1770 <type_map_t, symbol_err_map_t>: Define.
1771 <fe>: Rename to `m_gcc_fe'.
1772 <scope, block, gcc_target_options>: Add `m_' prefix.
1773 <m_type_map, m_symbol_err_map>: New fields, moved from
1774 compile_c_instance.
1775 <destroy>: Remove.
1776 (convert_type, new_compile_instance): Remove.
1777 * compile/compile.c (cleanup_compile_instance): Remove.
1778 (compile_to_object): Use unique_ptr to eliminate cleanups.
1779 (compile_instance::set_print_callback, compile_instance::version)
1780 (compile_instance::set_verbose)
1781 (compile_instance::set_driver_filename)
1782 (compile_instance::set_triplet_regexp)
1783 (compile_instance::set_arguments)
1784 (compile_instance::set_source_file)
1785 (compile_instance::compile): Define.
1786
18cdc6d8
KS
17872018-08-10 Keith Seitz <keiths@redhat.com>
1788
1789 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1790 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1791 gcc-c-fe.def to define C plugin.
1792 (delete_instance): Delete `c_plugin'.
1793 (new_compile_instance): Initialize `c_plugin'.
1794 * compile/compile-c.h: Include gcc_c_plugin.h.
1795 (struct compile_c_instance) <c_plugin>: New member.
1796 * gcc-c-plugin.h: New file.
1797 Update all callers with API change.
1798
b7dc48b4
KS
17992018-08-10 Keith Seitz <keiths@redhat.com>
1800
1801 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1802 (HFILES_NO_SRCDIR): ... to here.
1803 Add compile-internal.h and compile-c.h.
1804 * compile/compile-c-support.c: Include compile-c.h.
1805 * compile/compile-c-symbols.c: Include compile-c.h.
1806 (generate_c_for_variable_locations): Update comment.
1807 * compile/compile-c-types.c: Include compile-c.h.
1808 * compile/compile-c.h: New file -- moved C language declarations
1809 from other files here.
1810 * compile/compile-internal.h: Do not include hashtab.h or
1811 common/enum-flags.h.
1812 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1813 (gcc_convert_symbol, gcc_symbol_address)
1814 (generate_c_for_variable_locations, c_get_mode_for_size)
1815 (c_get_range_decl_name): Definitions moved to compile-c.h.
1816 * compile/compile-loc2c.c: Include compile-c.h.
1817
6f36b6d2
KS
18182018-08-10 Keith Seitz <keiths@redhat.com>
1819
1820 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1821 (c_symbol_substitution_name): ... this.
1822 Update all callers.
1823
bd923e51
KS
18242018-08-10 Keith Seitz <keiths@redhat.com>
1825
1826 * compile/compile-c-support.c (c_compute_program): Use
1827 unique_xmalloc_ptr to eliminate cleanup.
1828 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1829 Return a unique_xmalloc_ptr and eliminate cleanup.
1830 * compile/compile-internal.h (generate_c_for_variable_locations):
1831 Return unique_xmalloc_ptr and update description.
1832
dbd534fe
AH
18332018-08-10 Alan Hayward <alan.hayward@arm.com>
1834
1835 * corelow.c (core_target::get_core_register_section): Rename
1836 min_size to section_min_size.
1837
90ad3654
JW
18382018-08-09 Jim Wilson <jimw@sifive.com>
1839
52a187f8
JW
1840 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1841 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1842 * NEWS: Mention new GNU/Linux RISC-V target.
1843 * configure.host: Add riscv*-*-linux*.
1844 * configure.nat: Add riscv*.
1845 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 1846 * riscv-linux-nat.c: New file.
90ad3654
JW
1847 * riscv-linux-tdep.c: New file.
1848
aff4e175
AB
18492018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * infrun.c (resume): Make static, add forward declaration.
1852 (proceed): Update header comment.
1853 * infrun.h (resume): Delete declaration.
1854
06ab9219
TT
18552018-08-09 Tom Tromey <tom@tromey.com>
1856
1857 * riscv-tdep.h: Minor formatting fixes.
1858
83c8d318
SM
18592018-08-09 Simon Marchi <simon.marchi@ericsson.com>
1860
1861 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
1862 * dwarf-index-cache.c (create_dir_and_check): Likewise.
1863 (test_mkdir_recursive): Likewise.
1864 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
1865
5ff2bbae
AB
18662018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1867
1868 * valarith.c (value_subscripted_rvalue): If an array is not in
1869 memory, and we don't know the upper bound, then we can't know that
1870 the requested element exists or not.
1871
fdbac7d8
SM
18722018-08-08 Simon Marchi <simon.marchi@ericsson.com>
1873
1874 * target.c (str_comma_list_concat_elem): Fix typo in comment.
1875 (target_options_to_string): Add comment.
1876
83202f7a
TT
18772018-08-08 Tom Tromey <tom@tromey.com>
1878
1879 * unittests/scoped_mmap-selftests.c: Check result of "write".
1880
411baa47
JW
18812018-08-08 Jim Wilson <jimw@sifive.com>
1882
5c720ed8
JW
1883 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
1884 (decode_register_index_short): New.
1885 (decode_j_type_insn, decode_cj_type_insn): New.
1886 (decode_b_type_insn, decode_cb_type_insn): New.
1887 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
1888 local xlen. Check xlen when decoding ambiguous compressed insns. In
1889 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
1890 is_c_sw_insn instead of is_sw_insn.
1891 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
1892 (riscv_software_single_step): New.
1893 * riscv-tdep.h (riscv_software_single_step): Declare.
1894
411baa47
JW
1895 * riscv-tdep.c (riscv_isa_xlen): Drop static.
1896 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
1897
9d4a934c
AB
18982018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
1899
1900 PR gdb/18050:
1901 * target.c (dispose_inferior): Don't dispose of inferiors that are
1902 already killed.
1903
ff36536c
SN
19042018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1905
1906 * remote.c (remote_target::download_tracepoint): Change char* to
1907 const char*.
1908
09ce46f2
SM
19092018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1910
1911 * target.h (target_options_to_string): Return an std::string.
1912 * target.c (str_comma_list_concat_elem): Return void, use
1913 std::string.
1914 (do_option): Likewise.
1915 (target_options_to_string): Return an std::string.
1916 * linux-nat.c (linux_nat_target::wait): Adjust.
1917 * target-debug.h (target_debug_print_options): Adjust.
1918
9c612964
TT
19192018-08-07 Tom Tromey <tom@tromey.com>
1920
1921 * Makefile.in (CPPFLAGS): New variable.
1922 (INTERNAL_CPPFLAGS): Use it.
1923
7d11235d
SM
19242018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1925
1926 * NEWS: Mention the index cache.
1927
87d6a7aa
SM
19282018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1929
1930 * common/pathstuff.h (get_standard_cache_dir): New.
1931 * common/pathstuff.c (get_standard_cache_dir): New.
1932 * build-id.h (build_id_to_string): New.
1933 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
1934 DEBUG_STR_SUFFIX): Move to here.
1935 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
1936 DEBUG_STR_SUFFIX): Move from there.
1937 (write_psymtabs_to_index): Make non-static, add basename
1938 parameter. Write to temporary files, rename when done.
1939 (save_gdb_index_command): Adjust call to
1940 write_psymtabs_to_index.
1941 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
1942 field.
1943 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
1944 (get_gdb_index_contents_from_cache): New.
1945 (get_gdb_index_contents_from_cache_dwz): New.
1946 (dwarf2_initialize_objfile): Read index from cache.
1947 (dwarf2_build_psymtabs): Save to index.
1948 * dwarf-index-cache.h: New file.
1949 * dwarf-index-cache.c: New file.
1950 * dwarf-index-write.h: New file.
1951
8a99096f
SM
19522018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1953
1954 * gnulib/aclocal.m4: Re-generate.
1955 * gnulib/config.in: Re-generate.
1956 * gnulib/configure: Re-generate.
1957 * gnulib/import/Makefile.am: Re-generate.
1958 * gnulib/import/Makefile.in: Re-generate.
1959 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1960 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1961 * gnulib/import/m4/mkdir.m4: New file.
1962 * gnulib/import/mkdir.c: New file.
1963 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
1964 module.
1965
5c831bb1
SM
19662018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1967
1968 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
1969 * common/scoped_mmap.c: New file.
1970 * common/scoped_mmap.h (destroy): New method.
1971 (~scoped_mmap, reset): Use destroy.
1972 (scoped_mmap): New move constructor.
1973 (mmap_file): New declaration.
1974 * unittests/scoped_mmap-selftests.c (test_normal,
1975 test_invalid_filename, run_tests): New functions.
1976 (_initialize_scoped_mmap_selftests): Register selftest.
1977
4485a1c1
SM
19782018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1979
1980 * dwarf2read.c (read_gdb_index_from_section): Rename to...
1981 (read_gdb_index_from_buffer): ... this. Remove section
1982 parameter, add buffer parameter.
1983 (get_gdb_index_contents_ftype,
1984 get_gdb_index_contents_dwz_ftype): New typedefs.
1985 (dwarf2_read_gdb_index): Add callback parameters to get the
1986 index contents.
1987 (get_gdb_index_contents_from_section): New.
1988 (dwarf2_initialize_objfile): Update call to
1989 dwarf2_read_gdb_index.
1990
528e1572
SM
19912018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1992
1993 * common/filestuff.h (gdb_fopen_cloexec): New overload.
1994 (gdb_open_cloexec): Likewise.
1995 * nat/linux-osdata.c (command_from_pid): Use string_printf.
1996 (commandline_from_pid): Likewise.
1997 (linux_xfer_osdata_threads): Likewise.
1998 (linux_xfer_osdata_fds): Likewise.
1999 * ada-lang.c (is_package_name): Likewise.
2000 * auxv.c (procfs_xfer_auxv): Likewise.
2001 * breakpoint.c (print_one_breakpoint_location): Use
2002 uiout::field_fmt.
2003 (print_one_catch_solib): Use string_printf.
2004 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2005 (add_pe_forwarded_sym): Likewise.
2006 * dwarf2read.c (create_type_unit_group): Likewise.
2007 (build_error_marker_type): Likewise.
2008 * infcall.c (get_function_name): Likewise.
2009 * valprint.c (print_converted_chars_to_obstack): Likewise.
2010 * xtensa-tdep.c (xtensa_register_type): Likewise.
2011
a7f25a84
SM
20122018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2013
2014 * remote.c (remote_target::download_tracepoint): Fix format
2015 string errors.
2016
296956be
PFC
20172018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2018
2019 * tracefile.c: Include common/byte-vector.h.
2020 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2021 with trace_regblock_size if needed. Update uses of buf.
2022
a04b9d62
PFC
20232018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2024
2025 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2026 std::vector<unsigned char>.
2027 * tracepoint.c (collection_list::collection_list): Remove
2028 m_regs_mask initializer from initializer list. Resize
2029 m_regs_mask using the largest remote register number.
2030 (collection_list::add_remote_register): Remove size check on
2031 m_regs_mask. Use at to access element.
2032 (collection_list::stringify): Change type of temp_buf to
2033 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2034 stringify the register mask. Use pack_hex_byte for the register
2035 mask.
2036
4277c4b8
PFC
20372018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2038
2039 * tracepoint.h (class collection_list) <add_register>: Remove.
2040 <add_remote_register, add_ax_registers, add_local_register>:
2041 Declare.
2042 <add_memrange>: Add scope parameter.
2043 * tracepoint.c (encode_actions_1): Likewise.
2044 (collection_list::add_register): Rename to ...
2045 (collection_list::add_remote_register): ... this. Update
2046 comment.
2047 (collection_list::add_ax_registers, add_local_register): New
2048 methods.
2049 (collection_list::add_memrange): Add scope parameter. Call
2050 add_local_register instead of add_register.
2051 (finalize_tracepoint_aexpr): New function.
2052 (collection_list::collect_symbol): Update calls to add_memrange.
2053 Call add_local_register instead of add_register. Call
2054 add_ax_registers. Call finalize_tracepoint_aexpr.
2055 (encode_actions_1): Get remote regnos for $reg action. Call
2056 add_remote_register, add_ax_registers, and add_local_register.
2057 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2058 (validate_actionline): Call finalize_tracepoint_aexpr.
2059
3df3a985
PFC
20602018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2061
2062 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2063 Replace array buf with gdb::char_vector buf, of size
2064 get_remote_packet_size (). Replace references to buf and
2065 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2066 and xsnprintf with snprintf. Raise errors if the buffer is too
2067 small.
2068
aa6f3694
PFC
20692018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2070
2071 * remote.c (remote_target::download_tracepoint): Fix the has_more
2072 predicate in the QTDP action list iteration.
2073
05abfc39
PFC
20742018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2075
2076 * remote.c (remote_target::download_tracepoint): Fix indentation
2077 in for block.
2078
821a2682
RO
20792018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2080
2081 * proc-api.c (_initialize_proc_api): Remove c, unused.
2082 * procfs.c (procfs_init_inferior): Remove signals, unused.
2083 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2084 unused.
2085
95347337
AB
20862018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2087 Andrew Burgess <andrew.burgess@embecosm.com>
2088
2089 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2090 'W_STOPCODE (0)' as this could be ambiguous.
2091
425699f5
SDJ
20922018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2093
2094 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2095 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2096 "ai_socktype").
2097
3e1d3d8c
TT
20982018-08-02 Tom Tromey <tom@tromey.com>
2099
2100 PR symtab/16842.
2101 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2102 symbols.
2103 (process_structure_scope): Likewise.
2104
15843549
XR
21052018-08-02 Xavier Roirand <roirand@adacore.com>
2106
2107 PR gdb/22629:
2108 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2109 kill inferior.
2110
b5bddbbb
TT
21112018-08-02 Tom Tromey <tom@tromey.com>
2112
2113 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2114 (darwin_suspend_inferior, darwin_resume_inferior)
2115 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2116 (darwin_check_new_threads): Check result of get_darwin_inferior.
2117
f61cfa07
JB
21182018-07-31 Joel Brobecker <brobecker@adacore.com>
2119
2120 GDB 8.1.1 released.
2121
5abe0f0c
JV
21222018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2123
2124 * varobj.c (varobj_get_path_expr_parent): Report an error if
2125 parent is a dynamic varobj.
2126
472fa5ee
SM
21272018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2128
2129 * gnulib/aclocal.m4: Re-generate.
2130 * gnulib/config.in: Re-generate.
2131 * gnulib/configure: Re-generate.
2132 * gnulib/import/Makefile.in: Re-generate.
2133 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2134 * gnulib/import/m4/onceonly.m4: Re-generate.
2135
1c28969e
SM
21362018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2137
2138 * target-descriptions.c (struct xml_test_tdesc): New.
2139 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2140 (record_xml_tdesc): Update.
2141 (maintenance_check_xml_descriptions): Update.
2142 * target-descriptions.h (record_xml_tdesc): Update comment.
2143
c8f2dc0d
AB
21442018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2145
2146 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2147 checking array bounds are defined.
2148
463c08d1
TT
21492018-07-30 Tom Tromey <tom@tromey.com>
2150
2151 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2152 irreflexivity violation.
2153
dba7455e
TT
21542018-07-30 Tom Tromey <tom@tromey.com>
2155
2156 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2157 * value.c (unpack_long): Remove lint code.
2158 * valops.c (value_ind): Remove lint code.
2159 * valarith.c (value_x_binop, value_x_unop, value_equal)
2160 (value_pos): Remove lint code.
2161
37cc0cae
TV
21622018-07-28 Tom de Vries <tdevries@suse.de>
2163
2164 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2165 with undefined upper bound as <optimized out>.
2166
129eb0f1
SDJ
21672018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2168
2169 * gcore.in: Rename variable "name" to "prefix". Expand
2170 "usage" text.
2171
6af79d7b
JT
21722018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2173
2174 * windows-nat.c (windows_nat_target::create_inferior): Update to
2175 call close() in global namespace.
2176
79748972
TT
21772018-07-26 Tom Tromey <tom@tromey.com>
2178
2179 * dwarf-index-write.c (add_address_entry): Don't add objfile
2180 offsets.
2181 * dbxread.c (find_stab_function): Rename from
2182 find_stab_function_addr. Return a bound_minimal_symbol.
2183 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2184 Don't add objfile offsets.
2185 (end_psymtab): Use raw_text_low, raw_text_high,
2186 MSYMBOL_VALUE_RAW_ADDRESS.
2187 (read_ofile_symtab): Update.
2188 (process_one_symbol): Update.
2189 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2190 offsets.
2191 (dw2_relocate): Remove.
2192 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2193 searching addrmap.
2194 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2195 Update.
2196 (process_psymtab_comp_unit_reader, add_partial_symbol)
2197 (add_partial_subprogram, dwarf2_ranges_read): Update.
2198 (load_partial_dies): Update.
2199 (add_address_entry): Don't add objfile offsets.
2200 (dwarf2_build_include_psymtabs): Update.
2201 (create_addrmap_from_aranges): Don't add objfile offsets.
2202 (dw2_find_pc_sect_compunit_symtab): Update.
2203 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2204 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2205 Update.
2206 (parse_partial_symbols): Don't add objfile offsets. Use
2207 raw_text_low, raw_text_high. Update.
2208 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2209 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2210 or call 'relocate' quick function. Clear psymbol_map.
2211 * psympriv.h (struct partial_symbol) <address>: Add section
2212 offset.
2213 <set_unrelocated_address>: Rename from set_address.
2214 <raw_text_low, raw_text_high>: New methods.
2215 <text_low, text_high>: Add objfile parameter.
2216 (add_psymbol_to_bcache): Add 'section' parameter. Call
2217 set_unrelocated_address.
2218 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2219 (find_pc_psymbol): Update.
2220 (fixup_psymbol_section, relocate_psymtabs): Remove.
2221 (dump_psymtab, psym_functions): Update.
2222 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2223 parameter.
2224 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2225 (start_psymtab_common): Update.
2226 * symfile-debug.c (debug_qf_relocate): Remove.
2227 (debug_sym_quick_functions): Update.
2228 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2229 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2230 Update.
2231
52948f01
TT
22322018-07-26 Tom Tromey <tromey@redhat.com>
2233
2234 * dbxread.c (end_psymtab): Use text_high_valid and
2235 text_low_valid.
2236 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2237 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2238 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2239 Update comment.
2240 <text_low_valid, text_high_valid>: New fields.
2241 <set_text_low, set_text_high>: Update.
2242 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2243
4ae976d1
TT
22442018-07-26 Tom Tromey <tom@tromey.com>
2245
2246 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2247 Update.
2248 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2249 textlow and texthigh fields.
2250 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2251 Update.
2252 * mdebugread.c (parse_lines, parse_partial_symbols)
2253 (psymtab_to_symtab_1): Update.
2254 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2255 Rename fields. Update comment. Now private.
2256 <text_low, text_high, set_text_low, set_text_high>: New methods.
2257 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2258 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2259 (start_psymtab_common, maintenance_info_psymtabs)
2260 (maintenance_check_psymtabs): Update.
2261 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2262 texthigh fields.
2263 (scan_xcoff_symtab): Update.
2264
02e9e7f7
TT
22652018-07-26 Tom Tromey <tromey@redhat.com>
2266
2267 * psympriv.h (struct partial_symbol) <unrelocated_address,
2268 address, set_address>: New methods.
2269 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2270 (fixup_psymbol_section, relocate_psymtabs): Update.
2271 (print_partial_symbols): Add 'objfile' parameter. Update.
2272 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2273 Update.
2274
8a6d4234
TT
22752018-07-26 Tom Tromey <tom@tromey.com>
2276
2277 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2278 (debug_names::write_psymbols): Update.
2279 * psympriv.h (struct partial_symbol): Derive from
2280 general_symbol_info.
2281 <obj_section>: New method.
2282 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2283 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2284 (find_pc_sect_psymbol, fixup_psymbol_section)
2285 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2286 (print_partial_symbols, recursively_search_psymtabs)
2287 (compare_psymbols, psymbol_hash, psymbol_compare)
2288 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2289 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2290
08994e1d
TT
22912018-07-26 Tom Tromey <tromey@redhat.com>
2292
2293 * dbxread.c (end_psymtab): Remove dead code.
2294
3c3bb058
AB
22952018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2296
2297 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2298 DWARF unwinders are disabled.
2299 * dwarf2-frame.c: Add dwarf2read.h include.
2300 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2301 disabled.
2302 (dwarf2_frame_unwinders_enabled_p): Define.
2303 (show_dwarf_unwinders_enabled_p): New function.
2304 (_initialize_dwarf2_frame): Register switch to control DWARF
2305 unwinder use.
2306 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2307 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2308 (show_dwarf_cmdlist): Remove static keyword.
2309 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2310 (show_dwarf_cmdlist): Declare.
2311 * NEWS: Document new feature.
2312
9e7f3bbb
TV
23132018-07-26 Tom de Vries <tdevries@suse.de>
2314
2315 PR breakpoints/23366
2316 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2317
506f5c41
TV
23182018-07-26 Tom de Vries <tdevries@suse.de>
2319
2320 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2321 DW_AT_count can't be translated to a dynamic prop.
2322
16f808ec
TV
23232018-07-25 Tom de Vries <tdevries@suse.de>
2324
2325 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2326 try/catch.
2327
d7154a8d
JV
23282018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2329
2330 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2331
a45389f6
JB
23322018-07-25 Joel Brobecker <brobecker@adacore.com>
2333
2334 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2335
380618d6
KS
23362018-07-24 Keith Seitz <keiths@redhat.comt
2337
2338 PR symtab/23010
2339 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2340 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2341 instead of add_symbol_to_list.
2342 (read_file_scope): Call prepare_one_comp_unit before reading
2343 any other DIEs.
2344
4b17aefe
SM
23452018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2346
2347 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2348
29d17e47
TT
23492018-07-24 Tom Tromey <tom@tromey.com>
2350
2351 * utils.c (malloc, realloc, free): Don't declare.
2352 * configure, config.in: Rebuild.
2353 * configure.ac: Don't check for declarations of free, malloc, or
2354 realloc.
2355
cf4088a9
SM
23562018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2357
2358 * aarch64-linux-nat.c
2359 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2360 variable.
2361 * arm-linux-nat.c (fetch_regs): Likewise.
2362 (store_regs): Likewise.
2363 (fetch_vfp_regs): Likewise.
2364 (store_vfp_regs): Likewise.
2365 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2366 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2367 (arm_linux_nat_target::insert_watchpoint): Likewise.
2368 (arm_linux_nat_target::remove_watchpoint): Likewise.
2369 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2370 Likewise.
2371 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2372 Likewise.
2373 * ppc-linux-nat.c (fetch_register): Likewise.
2374 (fetch_all_gp_regs): Likewise.
2375 (fetch_ppc_registers): Likewise.
2376 (store_all_gp_regs): Likewise.
2377 (store_ppc_registers): Likewise.
2378 (hwdebug_insert_point): Likewise.
2379 (can_use_watchpoint_cond_accel): Likewise.
2380 * remote-sim.c (gdb_os_write_stdout): Likewise.
2381
a0de763e
TT
23822018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2383 Tom Tromey <tom@tromey.com>
2384
2385 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2386 test for it.
2387 * configure: Rebuild.
2388
3b20124b
TT
23892018-07-22 Tom Tromey <tom@tromey.com>
2390
2391 * regformats/regdat.sh: Define xmltarget_${name} inside
2392 #ifndef IN_PROCESS_AGENT.
2393
8c8807f4
TT
23942018-07-22 Tom Tromey <tom@tromey.com>
2395
2396 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2397
c486b610
TT
23982018-07-22 Tom Tromey <tom@tromey.com>
2399
2400 * symfile.c (reread_symbols): Notify iter, not objfile.
2401
494f80a9
TT
24022018-07-22 Tom Tromey <tom@tromey.com>
2403
2404 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2405 Use arch_ops.
2406 (ravenscar_thread_target::prepare_to_store): Likewise.
2407
c51f6a54
TT
24082018-07-22 Tom Tromey <tom@tromey.com>
2409
2410 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2411 unused variable. Call value_fetch_lazy when needed.
2412 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2413 Remove unused variable. Call value_fetch_lazy when needed.
2414
374fd1fd
TT
24152018-07-22 Tom Tromey <tom@tromey.com>
2416
2417 * m32c-tdep.c (mark_dma): Return void.
2418 (make_regs): Remove unused declarations.
2419
d5e9a511
TT
24202018-07-22 Tom Tromey <tom@tromey.com>
2421
2422 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2423 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2424 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2425 bkscm_get_valid_block_smob_arg_unsafe for effect.
2426
996d693a
TT
24272018-07-22 Tom Tromey <tom@tromey.com>
2428
2429 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2430 value_type.
2431
15766370
TT
24322018-07-22 Tom Tromey <tom@tromey.com>
2433
2434 * windows-nat.c (saved_context): Conditionally define.
2435 * remote.c (remote_target::remote_btrace_maybe_reopen):
2436 Conditionally declare "warned".
2437 * inflow.c (sigquit_ours): Conditionally define.
2438 (new_tty): Move "tty" declaration inside #if.
2439 * guile/guile.c (guile_datadir): Conditionally define.
2440 * charset.c (set_be_le_names): Move some declarations inside #if.
2441 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2442 #if.
2443 (parse_xml_btrace_conf): Likewise.
2444
f4e80e13
TT
24452018-07-22 Tom Tromey <tom@tromey.com>
2446
2447 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2448
8d49165d
TT
24492018-07-22 Tom Tromey <tom@tromey.com>
2450
2451 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2452 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2453 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2454 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2455 * stack.c (frame_apply_level_command): Remove unused variable.
2456 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2457 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2458 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2459 unused variable.
2460 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2461 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2462 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2463 variable.
2464 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2465 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2466 variable.
2467 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2468 Remove unused variable.
2469 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2470 variable.
2471 * common/tdesc.c (print_xml_feature::visit): Remove unused
2472 variable.
2473 * compile/compile-object-load.c (store_regs): Remove unused
2474 variables.
2475 * complaints.c (clear_complaints): Remove unused variable.
2476 * corelow.c (core_target_open): Remove unused variable.
2477 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2478 variable.
2479 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2480 variable.
2481 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2482 variable.
2483 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2484 variable.
2485 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2486 variable.
2487 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2488 variable.
2489 * ia64-tdep.c (examine_prologue): Remove unused variable.
2490 * infcall.c (run_inferior_call): Remove unused variable.
2491 * inferior.c (exit_inferior): Remove unused variable.
2492 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2493 * linespec.c (decode_line_2): Remove unused variable.
2494 * linux-nat.c (super_close): Remove.
2495 * linux-tdep.c (linux_info_proc): Remove unused variable.
2496 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2497 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2498 Remove unused variable.
2499 * parse.c (find_minsym_type_and_address): Remove unused variable.
2500 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2501 variable.
2502 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2503 variable.
2504 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2505 variables.
2506 * record-btrace.c (record_btrace_target::store_registers): Remove
2507 unused variable.
2508 (cmd_show_record_btrace_cpu): Remove unused variable.
2509 * riscv-tdep.c (riscv_register_reggroup_p)
2510 (riscv_push_dummy_call, riscv_return_value): Remove unused
2511 variable.
2512 * rust-exp.y (literal): Remove unused variable.
2513 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2514 unused variable.
2515 <STRUCTOP_ANONYMOUS>: Likewise.
2516 * s390-linux-tdep.c (s390_linux_init_abi_31)
2517 (s390_linux_init_abi_64): Remove unused variable.
2518 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2519 (file_select_thread, net_windows_open, _initialize_ser_windows):
2520 Remove unused variables.
2521 * symtab.c (find_pc_sect_line): Remove unused variable.
2522 * target-memory.c (compute_garbled_blocks): Remove unused
2523 variable.
2524 (target_write_memory_blocks): Remove unused variable.
2525 * target.c (target_stack::unpush): Remove unused variables.
2526 * tracepoint.c (start_tracing, all_tracepoint_actions)
2527 (merge_uploaded_trace_state_variables)
2528 (print_one_static_tracepoint_marker): Remove unused variable.
2529 * unittests/basic_string_view/element_access/char/1.cc (test01):
2530 Remove unused variable.
2531 * windows-nat.c (windows_continue, windows_add_all_dlls)
2532 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2533 Remove unused variables.
2534
17cbafdb
SM
25352018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2536
2537 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2538 attr_profile in HAVE_ELF.
2539 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2540 HAVE_ELF.
2541
0ee6c332
SM
25422018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2543
2544 * frame.c (frame_register_unwind): Change parameter name.
2545 (frame_unwind_register): Likewise.
2546 (frame_unwind_register_value): Likewise.
2547 (frame_unwind_register_signed): Likewise.
2548 (frame_unwind_register_unsigned): Likewise.
2549 * frame.h (frame_register_unwind): Likewise.
2550 (frame_unwind_register): Likewise.
2551 (frame_unwind_register_value): Likewise.
2552 (frame_unwind_register_signed): Likewise.
2553 (frame_unwind_register_unsigned): Likewise.
2554 (frame_unwind_arch): Likewise.
2555
e2e31f10
MR
25562018-07-20 Maciej W. Rozycki <macro@mips.com>
2557
2558 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2559 ISA maintenance.
2560
2d389915
MR
25612018-07-20 Maciej W. Rozycki <macro@mips.com>
2562
2563 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2564 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2565 hand.
2566
cbb09508
KS
25672018-07-20 Keith Seitz <keiths@redhat.com>
2568
2569 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2570 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2571 m_compunit_symtab, m_language>: Add "m_" prefix.
2572 Update all uses.
2573 * buildsym.c: Update all uses.
2574
bfe2e011
TT
25752018-07-20 Tom Tromey <tom@tromey.com>
2576
2577 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2578 * buildsym.h (record_line_ftype): Remove typedef.
2579
0e6f3061
TT
25802018-07-20 Tom Tromey <tom@tromey.com>
2581
2582 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2583 (end_expandable_symtab): Likewise.
2584 (end_symtab_get_static_block): Likewise.
2585 (end_symtab_from_static_block): Likewise.
2586 * buildsym-legacy.c (augment_type_symtab): Remove.
2587 (end_expandable_symtab): Remove.
2588 (end_symtab_get_static_block): Remove.
2589 (end_symtab_from_static_block): Remove.
2590
804d2729
TT
25912018-07-20 Tom Tromey <tom@tromey.com>
2592
2593 * dwarf2read.c: Include buildsym.h.
2594 (struct dwarf2_cu) <builder>: New method.
2595 (fixup_go_packaging): Update.
2596 (process_full_comp_unit, process_full_type_unit): Update. Don't
2597 use scoped_free_pendings.
2598 (using_directives): Add "cu" parameter, remove "language".
2599 (read_import_statement, setup_type_unit_groups, )
2600 (read_func_scope, read_lexical_block_scope)
2601 (dwarf2_record_block_ranges, read_namespace): Update.
2602 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2603 (lnp_state_machine::handle_end_sequence): Update.
2604 (class lnp_state_machine) <m_cu>: New member.
2605 <m_record_line_callback>: Remove.
2606 <m_currently_recording_lines>: New member.
2607 (lnp_state_machine::handle_set_file): Update.
2608 (noop_record_line): Remove.
2609 (dwarf_record_line_p): Add cu parameter.
2610 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2611 (lnp_state_machine::record_line)
2612 (lnp_state_machine::lnp_state_machine)
2613 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2614 (dwarf_decode_lines): Update.
2615 (dwarf2_start_subfile): Add cu parameter.
2616 (dwarf2_start_symtab, new_symbol): Update.
2617 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2618 Remove dwarf2_per_objfile parameter.
2619 (dwarf_decode_macros): Update.
2620
80e649fc
TT
26212018-07-20 Tom Tromey <tom@tromey.com>
2622
2623 * stabsread.c (define_symbol): Update.
2624 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2625 * dwarf2read.c (new_symbol): Update.
2626 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2627 * cp-namespace.c: Include buildsym.h.
2628 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2629 * buildsym-legacy.c (get_buildsym_compunit): New function.
2630
0baae8db
TT
26312018-07-20 Tom Tromey <tom@tromey.com>
2632
2633 * xcoffread.c: Include buildsym-legacy.h.
2634 * windows-nat.c: Include buildsym-legacy.h.
2635 * stabsread.c: Include buildsym-legacy.h.
2636 * mdebugread.c: Include buildsym-legacy.h.
2637 * buildsym-legacy.h: New file.
2638 * buildsym-legacy.c: New file, from buildsym.c.
2639 * go32-nat.c: Include buildsym-legacy.h.
2640 * dwarf2read.c: Include buildsym-legacy.h.
2641 * dbxread.c: Include buildsym-legacy.h.
2642 * cp-namespace.c: Include buildsym-legacy.h.
2643 * coffread.c: Include buildsym-legacy.h.
2644 * buildsym.h: Move some contents to buildsym-legacy.h.
2645 * buildsym.c: Include buildsym-legacy.h. Move many functions to
2646 buildsym-legacy.c.
2647 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2648
ab209f6f
TT
26492018-07-20 Tom Tromey <tom@tromey.com>
2650
2651 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2652 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2653 (buildsym_compunit::buildsym_compunit)
2654 (buildsym_compunit::~buildsym_compunit)
2655 (buildsym_compunit::get_macro_table): Define.
2656
74c72eac
TT
26572018-07-20 Tom Tromey <tom@tromey.com>
2658
2659 * buildsym.c (reset_symtab_globals): Remove.
2660 (buildsym_compunit::end_symtab_from_static_block): Update.
2661 (buildsym_compunit::augment_type_symtab): Update.
2662 (end_symtab_from_static_block): Call free_buildsym_compunit.
2663 (augment_type_symtab, end_symtab, end_expandable_symtab):
2664 Likewise.
2665
da6580e5
TT
26662018-07-20 Tom Tromey <tom@tromey.com>
2667
2668 * arch-utils.c: Do not include buildsym.h.
2669 * mipsread.c: Do not include buildsym.h.
2670 * machoread.c: Do not include buildsym.h.
2671 * elfread.c: Do not include buildsym.h.
2672
4a2125f5
TT
26732018-07-20 Tom Tromey <tom@tromey.com>
2674
2675 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2676 initialization.
2677 (buildsym_compunit): Add new constructor.
2678 (struct buildsym_compunit) <get_last_source_file, finish_block,
2679 record_block_range, start_subfile, patch_subfile_names,
2680 push_subfile, pop_subfile, record_line, get_compunit_symtab,
2681 set_last_source_start_addr, get_last_source_start_addr,
2682 get_local_using_directives, set_local_using_directives,
2683 get_global_using_directives, outermost_context_p,
2684 get_current_context_stack, get_context_stack_depth,
2685 get_current_subfile, get_local_symbols, get_file_symbols,
2686 get_global_symbols, record_debugformat, record_producer,
2687 push_context, pop_context, end_symtab_get_static_block,
2688 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2689 New public methods.
2690 <record_pending_block, finish_block_internal, make_blockvector,
2691 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2692 private methods.
2693 Update all users.
2694
26952018-05-22 Tom Tromey <tom@tromey.com>
2696
2697 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2698 parameter.
2699 (finish_block_internal): Update.
2700
6b213a47
TT
27012018-07-20 Tom Tromey <tom@tromey.com>
2702
2703 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2704 parameter.
2705 (finish_block_internal): Update.
2706
b80a981d
TT
27072018-07-20 Tom Tromey <tom@tromey.com>
2708
2709 * buildsym.h (EXTERN): Don't define or undef.
2710 * buildsym.c (EXTERN): Don't define.
2711
ddb70602
TT
27122018-07-20 Tom Tromey <tom@tromey.com>
2713
2714 * buildsym.c: Remove TODO comment.
2715
b37dd3bc
TT
27162018-07-20 Tom Tromey <tom@tromey.com>
2717
2718 * coffread.c (coff_symtab_read): Update.
2719 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2720 (xcoff_new_init): Update.
2721 * mipsread.c (mipscoff_new_init): Update.
2722 * mdebugread.c (mdebug_build_psymtabs): Update.
2723 * elfread.c (elf_new_init): Update.
2724 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2725 Update.
2726 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2727 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2728 (stabsect_build_psymtabs): Update.
2729 * buildsym.h (buildsym_init): Don't declare.
2730 * buildsym.c: Update comment.
2731 (prepare_for_building): Remove.
2732 (start_symtab, restart_symtab): Update.
2733 (reset_symtab_globals): Update comment.
2734 (buildsym_init): Remove.
2735
e148f09d
TT
27362018-07-20 Tom Tromey <tom@tromey.com>
2737
2738 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2739 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2740 (read_enum_type, common_block_start, common_block_end)
2741 (cleanup_undefined_types_1, finish_global_stabs): Update.
2742 * mdebugread.c (psymtab_to_symtab_1): Update.
2743 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2744 (read_lexical_block_scope, new_symbol): Update.
2745 * dbxread.c (process_one_symbol): Update.
2746 * coffread.c (coff_symtab_read, process_coff_symbol)
2747 (coff_read_enum_type): Update.
2748 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2749 declare.
2750 (get_local_symbols, get_file_symbols, get_global_symbols): New
2751 functions.
2752 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2753 m_global_symbols.
2754 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2755 (~scoped_free_pendings): Update.
2756 (finish_block, prepare_for_building, reset_symtab_globals)
2757 (end_symtab_get_static_block, end_symtab_with_blockvector)
2758 (augment_type_symtab, push_context): Update.
2759 (get_local_symbols, get_file_symbols, get_global_symbols): New
2760 functions.
2761 (buildsym_init): Update.
2762
93b8bea4
TT
27632018-07-20 Tom Tromey <tom@tromey.com>
2764
2765 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2766 (process_full_type_unit): Likewise.
2767 (dwarf2_start_symtab): Set list_in_scope.
2768
f62f6af5
TT
27692018-07-20 Tom Tromey <tom@tromey.com>
2770
2771 * dwarf2read.c (process_psymtab_comp_unit_reader)
2772 (build_type_psymtabs_reader): Do not set list_in_scope.
2773
1d376700
TT
27742018-07-20 Tom Tromey <tom@tromey.com>
2775
2776 * buildsym.c (free_pendings): Remove.
2777 (add_symbol_to_list, scoped_free_pendings)
2778 (finish_block_internal, buildsym_init): Update.
2779
c233e9c6
TT
27802018-07-20 Tom Tromey <tom@tromey.com>
2781
2782 * xcoffread.c (read_xcoff_symtab): Update.
2783 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2784 Update.
2785 * dbxread.c (process_one_symbol): Update.
2786 * coffread.c (coff_symtab_read): Update.
2787 * buildsym.h (finish_block): Update.
2788 * buildsym.c (finish_block): Remove "listhead" argument.
2789 (end_symtab_get_static_block): Update.
2790
5ac04550
TT
27912018-07-20 Tom Tromey <tom@tromey.com>
2792
2793 * buildsym.h (class scoped_free_pendings): Remove constructor.
2794 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2795 method.
2796 <m_pending_block_obstack, m_pending_blocks>: New members.
2797 (pending_block_obstack, pending_blocks): Remove.
2798 (scoped_free_pendings::scoped_free_pendings): Default.
2799 (~scoped_free_pendings): Update.
2800 (free_pending_blocks): Remove.
2801 (finish_block_internal, record_pending_block, make_blockvector)
2802 (end_symtab_get_static_block, augment_type_symtab, push_context)
2803 (buildsym_init): Update.
2804
7ea05a7b
TT
28052018-07-20 Tom Tromey <tom@tromey.com>
2806
2807 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2808 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2809 members.
2810 (pending_addrmap, pending_addrmap_obstack)
2811 (pending_addrmap_interesting): Remove.
2812 (scoped_free_pendings, record_block_range, make_blockvector)
2813 (prepare_for_building, reset_symtab_globals, buildsym_init):
2814 Update.
2815
3c65e5b3
TT
28162018-07-20 Tom Tromey <tom@tromey.com>
2817
2818 * xcoffread.c (process_linenos): Update.
2819 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2820 * mdebugread.c (psymtab_to_symtab_1): Update.
2821 * dwarf2read.c (setup_type_unit_groups)
2822 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2823 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2824 * dbxread.c (process_one_symbol): Update.
2825 * coffread.c (coff_symtab_read, enter_linenos)
2826 (process_coff_symbol): Update.
2827 * buildsym.h (current_subfile): Don't declare.
2828 (get_current_subfile): Declare.
2829 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2830 member.
2831 (start_subfile, free_buildsym_compunit, push_subfile)
2832 (prepare_for_building, start_symtab): Update.
2833 (get_current_subfile): New function.
2834
a60f3166
TT
28352018-07-20 Tom Tromey <tom@tromey.com>
2836
2837 * coffread.c (coff_symtab_read): Update.
2838 * xcoffread.c (read_xcoff_symtab): Update.
2839 * dwarf2read.c (new_symbol): Update.
2840 (read_func_scope, read_lexical_block_scope): Update.
2841 * dbxread.c (process_one_symbol): Update.
2842 * buildsym.h (context_stack, context_stack_depth): Don't declare.
2843 (outermost_context_p): Remove macro.
2844 (outermost_context_p, get_current_context_stack)
2845 (get_context_stack_depth): Declare.
2846 (pop_context): Return struct context_stack.
2847 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
2848 member.
2849 (context_stack_size): Remove.
2850 (INITIAL_CONTEXT_STACK_SIZE): Remove.
2851 (prepare_for_building, end_symtab_get_static_block)
2852 (augment_type_symtab, push_context): Update.
2853 (pop_context): Return struct context_stack.
2854 (outermost_context_p, get_current_context_stack)
2855 (get_context_stack_depth): New functions.
2856 (buildsym_init): Update.
2857
56ba65a0
TT
28582018-07-20 Tom Tromey <tom@tromey.com>
2859
2860 * rust-exp.y: Now a pure parser. Update all rules.
2861 (%union): Move earlier.
2862 (current_parser, work_obstack): Remove globals.
2863 (rust_parser, ~rust_parser): Update.
2864 (class rust_parser) <copy_name, concat3, crate_name, super_name,
2865 lex_character, lex_number, lex_string, lex_identifier,
2866 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
2867 convert_name, convert_params_to_expression,
2868 convert_ast_to_expression, ast_basic_type, ast_operation,
2869 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
2870 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
2871 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
2872 ast_array_type, ast_slice_type, ast_reference_type,
2873 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
2874 (rust_parse): Update.
2875 (rustyyerror, rustyylex): Add parser parameter.
2876 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
2877 (rust_lex_stringish_test, rust_lex_test_sequence)
2878 (rust_lex_test_trailing_dot, rust_lex_test_completion)
2879 (rust_lex_test_push_back, rust_lex_tests): Update.
2880
4c693332
PA
28812018-07-19 Pedro Alves <palves@redhat.com>
2882
2883 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
2884 gdb::unique_xmalloc_ptr.
2885 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
2886 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
2887 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
2888 copy-initialization.
2889 * guile/scm-pretty-print.c (ppscm_print_children): Use
2890 gdb::unique_xmalloc_ptr instead of cleanups.
2891 (gdbscm_apply_val_pretty_printer): Remove cleanups.
2892 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
2893 gdb::unique_xmalloc_ptr.
2894 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2895 Adjust to use gdb::unique_xmalloc_ptr.
2896 * guile/scm-utils.c (extract_arg): Adjust.
2897 * guile/scm-value.c (gdbscm_value_field): Adjust to use
2898 gdb::unique_xmalloc_ptr instead of a cleanup.
2899
4581dc82
TT
29002018-07-19 Tom Tromey <tom@tromey.com>
2901
2902 * utils.c (do_value_free_to_mark)
2903 (make_cleanup_value_free_to_mark): Remove.
2904 * utils.h (make_cleanup_value_free_to_mark): Remove.
2905
43cc6c3a
PA
29062018-07-19 Pedro Alves <palves@redhat.com>
2907
2908 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
2909 forwarding reference.
2910
3a5f2a48
PA
29112018-07-18 Pedro Alves <palves@redhat.com>
2912
2913 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
2914 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
2915 cleanup.
2916
557e56be
PA
29172018-07-18 Pedro Alves <palves@redhat.com>
2918
2919 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
2920 exceptions.
2921 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
2922 (gdbscm_wrap): New.
2923 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
2924 directly instead of a cleanup.
2925 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
2926 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
2927 (vlscm_binop_gdbthrow): New, factored out from ...
2928 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
2929 (vlscm_rich_compare): Use gdbscm_wrap.
2930 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
2931 instead of a cleanup.
2932 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
2933 cleanup.
2934 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2935 Use xfree directly instead of a cleanup.
2936 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
2937 Adjust to use gdbscm_wrap and scoped_value_mark.
2938 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
2939 (gdbscm_value_address, gdbscm_value_dereference)
2940 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
2941 scoped_value_mark.
2942 (gdbscm_value_dynamic_type): Use scoped_value_mark.
2943 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
2944 scoped_value_mark.
2945 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
2946 gdbscm_wrap and scoped_value_mark.
2947 (gdbscm_value_to_string): Use xfree directly instead of a
2948 cleanup. Move 'buffer' unique_ptr to TRY scope.
2949 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
2950 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
2951 scoped_value_mark.
2952 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
2953 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
2954 scoped_value_mark.
2955 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
2956 gdbscm_wrap.
2957
42dc7699
TV
29582018-07-18 Tom de Vries <tdevries@suse.de>
2959
2960 * findvar.c (default_read_var_value): Also resolve dynamic type for
2961 LOC_OPTIMIZED_OUT vars.
2962
6592ceed
MR
29632018-07-18 Maciej W. Rozycki <macro@mips.com>
2964
2965 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
2966 decoding.
2967
c6c6149a
TT
29682018-07-17 Tom Tromey <tom@tromey.com>
2969
2970 * guile/scm-param.c (pascm_set_func, pascm_show_func)
2971 (compute_enum_list, pascm_set_param_value_x)
2972 (gdbscm_parameter_value): Update.
2973 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
2974 (gdbscm_scm_to_host_string): Update.
2975 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
2976 Update.
2977 * guile/scm-cmd.c (cmdscm_add_completion): Update.
2978 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
2979 * guile/scm-string.c (gdbscm_scm_to_string): Return
2980 unique_xmalloc_ptr.
2981 (gdbscm_scm_to_host_string): Likewise.
2982
a1a31cb8
TT
29832018-07-17 Tom Tromey <tom@tromey.com>
2984
2985 * guile/guile.c (gdbscm_eval_from_control_command): Update.
2986 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
2987 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
2988 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
2989 unique_xmalloc_ptr.
2990
15bf3002
TT
29912018-07-17 Tom Tromey <tom@tromey.com>
2992
2993 * guile/scm-param.c (pascm_signal_setshow_error): Update.
2994 * guile/guile-internal.h (gdbscm_exception_message_to_string):
2995 Update.
2996 * guile/scm-cmd.c (cmdscm_function): Update.
2997 * guile/scm-pretty-print.c
2998 (ppscm_print_exception_unless_memory_error): Update.
2999 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3000 Return unique_xmalloc_ptr.
3001
7eb1a66c
TT
30022018-07-17 Tom Tromey <tom@tromey.com>
3003
3004 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3005 Use string_printf.
3006
ce73f310
JW
30072018-07-17 Jim Wilson <jimw@sifive.com>
3008
27724bad
JW
3009 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3010 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3011 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3012 unecessary braces after EF_RISCV_RVC test. Delete call to
3013 set_gdbarch_decr_pc_after_break.
3014
ce73f310
JW
3015 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3016 RISCV_LAST_FP_REGNUM + 1.
3017 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3018
056dec39
TT
30192018-07-17 Tom Tromey <tom@tromey.com>
3020
3021 * configure.ac: Remove --disable-gdbcli.
3022 * configure: Rebuild.
3023 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3024 (SUBDIR_CLI_CFLAGS): Remove.
3025 (SFILES): Use SUBDIR_CLI_SRCS.
3026 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3027
4735f0ed
TT
30282018-07-17 Tom Tromey <tom@tromey.com>
3029
3030 PR gdb/18624:
3031 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3032
117a0e99
JW
30332018-07-16 Jim Wilson <jimw@sifive.com>
3034
3035 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3036
8a67aaa8
SM
30372018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3038
3039 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3040 variable.
3041 (libunwind_frame_sniffer): Likewise.
3042 (libunwind_frame_prev_register): Likewise.
3043 (libunwind_sigtramp_frame_sniffer): Likewise.
3044 * ia64-tdep.c (ia64_access_reg): Likewise.
3045 (ia64_access_rse_reg): Likewise.
3046 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3047 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3048
ec74dcd8
SM
30492018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3050
3051 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3052
a700e753
SM
30532018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3054
3055 * remote-sim.c (gdbsim_target::close,
3056 gdbsim_target::mourn_inferior): Remove unused variables.
3057
8b411ff8
SM
30582018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3059
3060 * ia64-tdep.c (ktab_buf): New global.
3061 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3062 (get_kernel_table): Adjust.
3063
edb0470b
TT
30642018-07-16 Tom Tromey <tom@tromey.com>
3065
3066 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3067 * dwarf2read.c (using_directives, new_symbol): Use
3068 outermost_context_p.
3069 * dbxread.c (process_one_symbol): Use outermost_context_p.
3070 * coffread.c (coff_symtab_read): Use outermost_context_p.
3071
6cccc9a8
TT
30722018-07-16 Tom Tromey <tom@tromey.com>
3073
3074 * dwarf2read.c (using_directives, read_func_scope)
3075 (read_lexical_block_scope): Update.
3076 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3077 * buildsym.h (local_using_directives, global_using_directives):
3078 Don't declare.
3079 (get_local_using_directives, set_local_using_directives)
3080 (get_global_using_directives): Declare.
3081 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3082 m_global_using_directives>: New members.
3083 (finish_block_internal, prepare_for_building)
3084 (reset_symtab_globals, end_symtab_get_static_block)
3085 (push_context): Update.
3086 (get_local_using_directives, set_local_using_directives)
3087 (get_global_using_directives): New functions.
3088 (buildsym_init): Update.
3089
652788a7
TT
30902018-07-16 Tom Tromey <tom@tromey.com>
3091
3092 * xcoffread.c (xcoff_initial_scan): Don't call
3093 free_pending_blocks.
3094 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3095 * buildsym.h (class scoped_free_pendings): Add constructor.
3096 (free_pending_blocks): Don't declare.
3097 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3098 (free_pending_blocks): Now static.
3099
8419ee53
TT
31002018-07-16 Tom Tromey <tom@tromey.com>
3101
3102 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3103 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3104 member.
3105 (struct subfile_stack): Remove.
3106 (subfile_stack): Remove.
3107 (push_subfile, pop_subfile, buildsym_init): Update.
3108
ccdac490
TT
31092018-07-16 Tom Tromey <tom@tromey.com>
3110
3111 * buildsym.c (push_subfile): Use gdb_assert.
3112 (pop_subfile): Use gdb_assert.
3113
43130d6f
TT
31142018-07-16 Tom Tromey <tom@tromey.com>
3115
3116 * buildsym.h (merge_symbol_lists): Remove.
3117 * buildsym.c (merge_symbol_lists): Remove.
3118
77d6f1aa
TT
31192018-07-16 Tom Tromey <tom@tromey.com>
3120
3121 * stabsread.c (scan_file_globals): Update comment.
3122 * stabsread.h (scan_file_globals): Move from buildsym.h.
3123 * buildsym.h (scan_file_globals): Move to stabsread.h.
3124
2c722d18
TT
31252018-07-16 Tom Tromey <tom@tromey.com>
3126
3127 * xcoffread.c (xcoff_new_init): Update.
3128 * mipsread.c (mipscoff_new_init): Update.
3129 * mdebugread.c (mdebug_build_psymtabs): Update.
3130 * elfread.c (elf_new_init): Update.
3131 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3132 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3133 * buildsym.h (buildsym_new_init): Don't declare.
3134 * buildsym.c (buildsym_new_init): Remove.
3135
5985ac61
TT
31362018-07-16 Tom Tromey <tom@tromey.com>
3137
3138 * stabsread.h (within_function): Move from buildsym.h.
3139 * stabsread.c (start_stabs): Clear within_function.
3140 * coffread.c (coff_start_symtab): Clear within_function.
3141 * buildsym.h (within_function): Move to stabsread.h.
3142 * buildsym.c (prepare_for_building): Update.
3143
6b84eeb2
TT
31442018-07-16 Tom Tromey <tom@tromey.com>
3145
3146 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3147 * dwarf2read.c (dwarf2_start_symtab): Don't set
3148 processing_gcc_compilation.
3149 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3150
2150c3ef
TT
31512018-07-16 Tom Tromey <tom@tromey.com>
3152
3153 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3154 (next_symbol_text_func): Move from buildsym.h.
3155 * stabsread.c (hashname): Move from buildsym.c.
3156 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3157 (next_symbol_text_func, hashname): Move to stabsread.h.
3158 * buildsym.c: Don't include bcache.h
3159 (hashname): Move to stasbread.c.
3160
0ec44fc0
TT
31612018-07-16 Tom Tromey <tom@tromey.com>
3162
3163 * buildsym.h (context_stack_size): Don't declare.
3164 * buildsym.c (context_stack_size): New global.
3165
81cc346d
TT
31662018-07-16 Tom Tromey <tom@tromey.com>
3167
3168 * dbxread.c (processing_acc_compilation): New global.
3169 * buildsym.h (processing_acc_compilation): Don't declare.
3170
2c99ee5c
TT
31712018-07-16 Tom Tromey <tom@tromey.com>
3172
3173 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3174 * dbxread.c (read_ofile_symtab): Update.
3175 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3176 * buildsym.h (last_source_start_addr): Remove.
3177 (set_last_source_start_addr, get_last_source_start_addr):
3178 Declare.
3179 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3180 parameter.
3181 (struct buildsym_compunit) <m_last_source_start_addr>: New
3182 member.
3183 (prepare_for_building): Remove start_addr parameter.
3184 (start_symtab, restart_symtab, end_symtab_get_static_block)
3185 (end_symtab_with_blockvector): Update.
3186 (set_last_source_start_addr, get_last_source_start_addr): New
3187 functions.
3188
530fedbc
TT
31892018-07-16 Tom Tromey <tom@tromey.com>
3190
3191 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3192 member.
3193 (have_line_numbers): Remove.
3194 (record_line, prepare_for_building, end_symtab_get_static_block)
3195 (augment_type_symtab): Update.
3196
6a976300
TT
31972018-07-16 Tom Tromey <tom@tromey.com>
3198
3199 * buildsym.c (~buildsym_compunit): Free the macro table.
3200 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3201 methods.
3202 <m_pending_macros>: New member.
3203 (pending_macros): Remove.
3204 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3205 (reset_symtab_globals, end_symtab_get_static_block)
3206 (end_symtab_with_blockvector, augment_type_symtab)
3207 (buildsym_init): Update.
3208
c0015d44
TT
32092018-07-16 Tom Tromey <tom@tromey.com>
3210
3211 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3212 parameter.
3213 (buildsym_compunit::set_last_source_file): New method.
3214 <m_last_source_file>: New member.
3215 (prepare_for_building): Remove "name" parameter.
3216 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3217 (last_source_file): Remove.
3218 (set_last_source_file, get_last_source_file): Update.
3219
e62cca7c
TT
32202018-07-16 Tom Tromey <tom@tromey.com>
3221
3222 * buildsym.c (prepare_for_building): Add assert.
3223
905eb0e2
TT
32242018-07-16 Tom Tromey <tom@tromey.com>
3225
3226 * buildsym.c (~buildsym_compunit): Update.
3227 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3228 (start_subfile, patch_subfile_names)
3229 (end_symtab_with_blockvector): Update.
3230
b248663f
TT
32312018-07-16 Tom Tromey <tom@tromey.com>
3232
3233 * buildsym.c (struct buildsym_compunit): Add constructor,
3234 destructor, initializers.
3235 (start_buildsym_compunit): Remove.
3236 (free_buildsym_compunit): Use "delete".
3237 (start_symtab, restart_symtab): Use "new".
3238
ff27d073
SM
32392018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3240
3241 * symfile.c (set_objfile_default_section_offset): Remove struct
3242 keyword.
3243
6a15ecf5
SH
32442018-07-14 Stafford Horne <shorne@gmail.com>
3245
3246 * (Responsible Maintainers): Add myself as or1k maintainer.
3247
027a4c30
TT
32482018-07-13 Tom Tromey <tom@tromey.com>
3249
3250 * symfile.c (set_objfile_default_section_offset): Use extra braces
3251 around initializer.
3252
5c1eda30
AA
32532018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3254
3255 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3256 non-branching basr.
3257
bc7b042b
PW
32582018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3259
3260 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3261 unittests/cli-utils-selftests.c
3262 * unittests/cli-utils-selftests.c: New file.
3263
a14c4daa
PW
32642018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3265
3266 * NEWS: Mention new commands. Mention change to 'thread apply'.
3267
1fe75df7
PW
32682018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3269
3270 * thread.c (thr_try_catch_cmd): New function.
3271 (thread_apply_all_command): Handle qcs flags.
3272 (thread_apply_command): Handle qcs flags.
3273 (taas_command): New function.
3274 (tfaas_command): New function.
3275 (_initialize_thread): Update to setup the new commands 'taas
3276 and 'tfaas'. Change doc string for 'thread apply'.
3277
6a70eb7d
PW
32782018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3279
3280 * stack.c: (trailing_outermost_frame): New function, mostly
3281 extracted from backtrace_command_1.
3282 (leading_innermost_frame): New function.
3283 (backtrace_command_1): Update to call trailing_outermost_frame.
3284 (frame_apply_command_count): New function.
3285 (frame_apply_level_command): New function.
3286 (frame_apply_all_command): New function.
3287 (frame_apply_command): New function.
3288 (faas_command): New function.
3289 (frame_cmd_list): New variable.
3290 (_initialize_stack): Update to setup the new commands 'frame apply'
3291 and 'faas'.
3292
529c08b2
PW
32932018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3294
3295 * cli-utils.c (number_or_range_parser::get_number): Only handle
3296 numbers or convenience var as numbers.
3297 (parse_flags): New function.
3298 (parse_flags_qcs): New function.
3299 (number_or_range_parser::finished): Ensure parsing end is detected
3300 before end of string.
3301 * cli-utils.h (parse_flags): New function.
3302 (parse_flags_qcs): New function.
3303 (number_or_range_parser): Remove m_finished bool.
3304 (number_or_range_parser::skip_range): Set m_in_range to false.
3305
64b58472
SDJ
33062018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3307
3308 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3309 on Windows.
3310
c7ab0aef
SDJ
33112018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3312 Jan Kratochvil <jan.kratochvil@redhat.com>
3313 Paul Fertser <fercerpav@gmail.com>
3314 Tsutomu Seki <sekiriki@gmail.com>
3315 Pedro Alves <palves@redhat.com>
3316
3317 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3318 'unittests/parse-connection-spec-selftests.c'.
3319 (COMMON_SFILES): Add 'common/netstuff.c'.
3320 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3321 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3322 * common/netstuff.c: New file.
3323 * common/netstuff.h: New file.
3324 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3325 (wait_for_connect): Update comment. New parameter
3326 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3327 Use 'sock' directly instead of 'scb->fd'.
3328 (try_connect): New function, with code from 'net_open'.
3329 (net_open): Rewrite main loop to deal with multiple
3330 sockets/addresses. Handle IPv6-style hostnames; implement
3331 support for IPv6 connections.
3332 * unittests/parse-connection-spec-selftests.c: New file.
3333
4c7333b3
PA
33342018-07-11 Pedro Alves <palves@redhat.com>
3335
3336 PR gdb/23377
3337 * remote.c (remote_target::remote_detach_pid): Call
3338 set_current_process.
3339
a6f88f6e
PA
33402018-07-11 Pedro Alves <palves@redhat.com>
3341
3342 * h8300-tdep.c (h8300_gdbarch_init): Remove
3343 set_gdbarch_ecoff_reg_to_regnum calls.
3344
16ff70dd
SDJ
33452018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3346
3347 PR c++/23373
3348 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3349 offsets/sizes for static members of a class/struct.
3350
12863263
AH
33512018-07-11 Alan Hayward <alan.hayward@arm.com>
3352
3353 * target-descriptions.c (tdesc_register_bitsize): Rename.
3354 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3355 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3356 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3357
1123588c
TT
33582018-07-10 Tom Tromey <tom@tromey.com>
3359
3360 * breakpoint.c (moribund_locations): Now static and a
3361 std::vector.
3362 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3363 (build_bpstat_chain, update_global_location_list)
3364 (breakpoint_retire_moribund): Update.
3365 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3366 VEC.
3367
8c49aa89
AB
33682018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3369
3370 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3371 (riscv_register_reggroup_p): Use new function, remove unneeded
3372 parenthesis.
3373 (riscv_push_dummy_call): Extend assert to compare against xlen or
3374 flen based on register type.
3375
42ecac17
AB
33762018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3377
3378 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3379
055303e2
AB
33802018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3381
3382 * remote.c (show_hardware_watchpoint_limit): New function.
3383 (show_hardware_watchpoint_length_limit): New function.
3384 (show_hardware_breakpoint_limit): New function.
3385 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3386 where appropriate, update help text.
3387
8fd32c1c
TT
33882018-07-09 Tom Tromey <tom@tromey.com>
3389
3390 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3391 (CLIBS): Don't mention NAT_CLIBS.
3392
31278b51
TT
33932018-07-09 Tom Tromey <tom@tromey.com>
3394
3395 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3396 (LIBGDB_OBS, clean mostlyclean): Update.
3397 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3398
e5fd1493
TT
33992018-07-09 Tom Tromey <tom@tromey.com>
3400
3401 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3402 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3403 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3404
981e0c0c
TT
34052018-07-09 Tom Tromey <tom@tromey.com>
3406
3407 * Makefile.in (ALLDEPFILES): Remove exec.c.
3408 (COMMON_OBS): Remove exec.o.
3409 (COMMON_SFILES): Add exec.c.
3410
14ccceb2
TT
34112018-07-09 Tom Tromey <tom@tromey.com>
3412
3413 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3414
5d3c3a68
TT
34152018-07-09 Tom Tromey <tom@tromey.com>
3416
3417 * Makefile.in (clean mostlyclean): Remove stamp-version.
3418 (version.c): Depend on stamp-version.
3419 (stamp-version): New rule, from version.c rule.
3420
1998086d
TT
34212018-07-09 Tom Tromey <tom@tromey.com>
3422
3423 * Makefile.in (init.c): Depend on stamp-init.
3424 (stamp-init): New rule, from init.c rule.
3425 (clean mostlyclean): Remove stamp-init.
3426
4c754949
TT
34272018-07-09 Tom Tromey <tom@tromey.com>
3428
3429 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3430 SUBDIR_GCC_COMPILE_SRCS.
3431
6497f1dd
TT
34322018-07-09 Tom Tromey <tom@tromey.com>
3433
3434 * Makefile.in (init.c): Remove some unused sed rules.
3435
97a34db9
TT
34362018-07-09 Tom Tromey <tom@tromey.com>
3437
3438 * Makefile.in (TSOBS): Remove.
3439 (INIT_FILES): Update.
3440 (LIBGDB_OBS): Update.
3441 (COMMON_SFILES): Add inflow.c.
3442 (SFILES): Remove inflow.c.
3443
25289ac1
JK
34442018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3445
3446 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3447
e83f4d97
SM
34482018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3449
4869c585
SM
3450 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3451 get_saveloc_name, is_signal_frame_name, step_name,
3452 init_remote_name, create_addr_space_name,
3453 destroy_addr_space_name, search_unwind_table_name,
3454 find_dyn_list_name): Constify.
e83f4d97 3455
6821842f
SM
34562018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3457
3458 * darwin-nat.c (darwin_pthread_kill): New function.
3459 (darwin_resume_thread): Use darwin_pthread_kill.
3460
c530603c
TV
34612018-07-05 Tom de Vries <tdevries@suse.de>
3462
3463 * macroexp.c (macro_buffer) <operator=>: New member function.
3464
a7d0f0f0
TT
34652018-07-04 Tom Tromey <tom@tromey.com>
3466
3467 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3468
6242c6a6
SM
34692018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3470
3471 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3472 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3473 * maint.c: Likewise.
3474 * top.c: Likewise.
3475
4e5b2f89
JB
34762018-07-04 Joel Brobecker <brobecker@adacore.com>
3477
3478 * NEWS: Create a new section for the next release branch.
3479 Rename the section of the current branch, now that it has
3480 been cut.
3481
538ccc4a
JB
34822018-07-04 Joel Brobecker <brobecker@adacore.com>
3483
3484 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3485 * version.in: Bump version to 8.2.50.DATE-git.
3486
1b919490
VB
34872018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3488 Pedro Alves <palves@redhat.com>
3489
3490 * linux-nat.c (linux_init_ptrace): Rename to ...
3491 (linux_init_ptrace_procfs): ... this. Call
3492 linux_proc_init_warnings.
3493 (linux_nat_target::post_attach)
3494 (linux_nat_target::post_startup_inferior): Adjust.
3495 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3496 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3497
1ea5da02
TV
34982018-07-04 Tom de Vries <tdevries@suse.de>
3499
3500 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3501 check ...
3502 (read_comp_unit_head): ... here.
3503
f51e0e20
TT
35042018-07-03 Tom Tromey <tom@tromey.com>
3505
3506 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3507 (stop_tracing, tstatus_command)
3508 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3509 (print_one_static_tracepoint_marker): Update.
3510 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3511 std::vector.
3512 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3513 VEC.
3514 (all_tracepoints, static_tracepoints_here): Return std::vector.
3515
d7e15655
TT
35162018-07-03 Tom Tromey <tom@tromey.com>
3517
3518 * common/ptid.c (ptid_equal): Remove.
3519 * common/ptid.h (ptid_equal): Don't declare.
3520 * ada-tasks.c: Update.
3521 * breakpoint.c: Update.
3522 * common/agent.c: Update.
3523 * corelow.c: Update.
3524 * darwin-nat-info.c: Update.
3525 * darwin-nat.c: Update.
3526 * dcache.c: Update.
3527 * dtrace-probe.c: Update.
3528 * dummy-frame.c: Update.
3529 * fbsd-nat.c: Update.
3530 * frame.c: Update.
3531 * gdbthread.h: Update.
3532 * gnu-nat.c: Update.
3533 * go32-nat.c: Update.
3534 * inf-loop.c: Update.
3535 * inf-ptrace.c: Update.
3536 * infcall.c: Update.
3537 * infcmd.c: Update.
3538 * inflow.c: Update.
3539 * infrun.c: Update.
3540 * linux-fork.c: Update.
3541 * linux-nat.c: Update.
3542 * linux-thread-db.c: Update.
3543 * mi/mi-cmd-var.c: Update.
3544 * mi/mi-interp.c: Update.
3545 * mi/mi-main.c: Update.
3546 * nto-procfs.c: Update.
3547 * ppc-linux-tdep.c: Update.
3548 * procfs.c: Update.
3549 * python/py-inferior.c: Update.
3550 * python/py-record-btrace.c: Update.
3551 * python/py-record.c: Update.
3552 * ravenscar-thread.c: Update.
3553 * regcache.c: Update.
3554 * remote-sim.c: Update.
3555 * remote.c: Update.
3556 * sol-thread.c: Update.
3557 * solib.c: Update.
3558 * target.c: Update.
3559 * tui/tui-stack.c: Update.
3560 * varobj.c: Update.
3561 * windows-nat.c: Update.
3562 * windows-tdep.c: Update.
3563
26a57c92
TT
35642018-07-03 Tom Tromey <tom@tromey.com>
3565
3566 * common/ptid.c (ptid_match): Remove.
3567 * common/ptid.h (ptid_match): Don't declare.
3568 * fbsd-nat.c: Update.
3569 * infcmd.c: Update.
3570 * infrun.c: Update.
3571 * linux-nat.c: Update.
3572 * record-btrace.c: Update.
3573 * regcache.c: Update.
3574 * remote.c: Update.
3575
d2a107e3
TT
35762018-07-03 Tom Tromey <tom@tromey.com>
3577
3578 * common/ptid.c (ptid_tid_p): Remove.
3579 * common/ptid.h (ptid_tid_p): Don't declare.
3580 * sol-thread.c: Update.
3581
15a9e13e
TT
35822018-07-03 Tom Tromey <tom@tromey.com>
3583
3584 * common/ptid.c (ptid_lwp_p): Remove.
3585 * common/ptid.h (ptid_lwp_p): Don't declare.
3586 * fbsd-nat.c: Update.
3587 * linux-nat.c: Update.
3588 * nat/linux-procfs.c: Update.
3589 * nat/x86-linux-dregs.c: Update.
3590 * sol-thread.c: Update.
3591
0e998d96
TT
35922018-07-03 Tom Tromey <tom@tromey.com>
3593
3594 * common/ptid.c (ptid_is_pid): Remove.
3595 * common/ptid.h (ptid_is_pid): Don't declare.
3596 * infrun.c: Update.
3597 * linux-nat.c: Update.
3598 * mi/mi-interp.c: Update.
3599 * remote.c: Update.
3600 * thread.c: Update.
3601
cc6bcb54
TT
36022018-07-03 Tom Tromey <tom@tromey.com>
3603
3604 * common/ptid.c (ptid_get_tid): Remove.
3605 * common/ptid.h (ptid_get_tid): Don't declare.
3606 * ada-tasks.c: Update.
3607 * aix-thread.c: Update.
3608 * bsd-uthread.c: Update.
3609 * darwin-nat.c: Update.
3610 * fbsd-nat.c: Update.
3611 * i386-darwin-nat.c: Update.
3612 * infrun.c: Update.
3613 * linux-tdep.c: Update.
3614 * nto-procfs.c: Update.
3615 * ppc-ravenscar-thread.c: Update.
3616 * python/py-infthread.c: Update.
3617 * ravenscar-thread.c: Update.
3618 * sol-thread.c: Update.
3619 * sparc-ravenscar-thread.c: Update.
3620 * windows-nat.c: Update.
3621
e38504b3
TT
36222018-07-03 Tom Tromey <tom@tromey.com>
3623
3624 * common/ptid.c (ptid_get_lwp): Remove.
3625 * common/ptid.h (ptid_get_lwp): Don't declare.
3626 * aarch64-linux-nat.c: Update.
3627 * ada-tasks.c: Update.
3628 * aix-thread.c: Update.
3629 * amd64-linux-nat.c: Update.
3630 * arm-linux-nat.c: Update.
3631 * corelow.c: Update.
3632 * fbsd-nat.c: Update.
3633 * fbsd-tdep.c: Update.
3634 * gnu-nat.c: Update.
3635 * i386-cygwin-tdep.c: Update.
3636 * i386-gnu-nat.c: Update.
3637 * i386-linux-nat.c: Update.
3638 * ia64-linux-nat.c: Update.
3639 * inf-ptrace.c: Update.
3640 * infrun.c: Update.
3641 * linux-fork.c: Update.
3642 * linux-nat.c: Update.
3643 * linux-tdep.c: Update.
3644 * linux-thread-db.c: Update.
3645 * mips-linux-nat.c: Update.
3646 * nat/aarch64-linux-hw-point.c: Update.
3647 * nat/aarch64-linux.c: Update.
3648 * nat/linux-btrace.c: Update.
3649 * nat/linux-osdata.c: Update.
3650 * nat/linux-procfs.c: Update.
3651 * nat/x86-linux-dregs.c: Update.
3652 * obsd-nat.c: Update.
3653 * ppc-fbsd-nat.c: Update.
3654 * ppc-linux-nat.c: Update.
3655 * procfs.c: Update.
3656 * python/py-infthread.c: Update.
3657 * ravenscar-thread.c: Update.
3658 * remote.c: Update.
3659 * s390-linux-nat.c: Update.
3660 * sol-thread.c: Update.
3661 * sol2-tdep.c: Update.
3662 * spu-linux-nat.c: Update.
3663 * x86-linux-nat.c: Update.
3664 * xtensa-linux-nat.c: Update.
3665
e99b03dc
TT
36662018-07-03 Tom Tromey <tom@tromey.com>
3667
3668 * common/ptid.c (ptid_get_pid): Remove.
3669 * common/ptid.h (ptid_get_pid): Don't declare.
3670 * aarch64-linux-nat.c: Update.
3671 * ada-lang.c: Update.
3672 * aix-thread.c: Update.
3673 * alpha-bsd-nat.c: Update.
3674 * amd64-fbsd-nat.c: Update.
3675 * amd64-linux-nat.c: Update.
3676 * arm-linux-nat.c: Update.
3677 * arm-nbsd-nat.c: Update.
3678 * auxv.c: Update.
3679 * break-catch-syscall.c: Update.
3680 * breakpoint.c: Update.
3681 * bsd-uthread.c: Update.
3682 * corelow.c: Update.
3683 * ctf.c: Update.
3684 * darwin-nat.c: Update.
3685 * fbsd-nat.c: Update.
3686 * fbsd-tdep.c: Update.
3687 * gcore.c: Update.
3688 * gnu-nat.c: Update.
3689 * hppa-nbsd-nat.c: Update.
3690 * hppa-obsd-nat.c: Update.
3691 * i386-fbsd-nat.c: Update.
3692 * ia64-linux-nat.c: Update.
3693 * inf-ptrace.c: Update.
3694 * infcmd.c: Update.
3695 * inferior.c: Update.
3696 * inferior.h: Update.
3697 * inflow.c: Update.
3698 * infrun.c: Update.
3699 * linux-fork.c: Update.
3700 * linux-nat.c: Update.
3701 * linux-tdep.c: Update.
3702 * linux-thread-db.c: Update.
3703 * m68k-bsd-nat.c: Update.
3704 * mi/mi-interp.c: Update.
3705 * mi/mi-main.c: Update.
3706 * mips-linux-nat.c: Update.
3707 * mips-nbsd-nat.c: Update.
3708 * mips64-obsd-nat.c: Update.
3709 * nat/aarch64-linux-hw-point.c: Update.
3710 * nat/aarch64-linux.c: Update.
3711 * nat/linux-btrace.c: Update.
3712 * nat/linux-osdata.c: Update.
3713 * nat/linux-procfs.c: Update.
3714 * nat/x86-linux-dregs.c: Update.
3715 * nto-procfs.c: Update.
3716 * obsd-nat.c: Update.
3717 * ppc-linux-nat.c: Update.
3718 * ppc-nbsd-nat.c: Update.
3719 * ppc-obsd-nat.c: Update.
3720 * proc-service.c: Update.
3721 * procfs.c: Update.
3722 * python/py-inferior.c: Update.
3723 * python/py-infthread.c: Update.
3724 * ravenscar-thread.c: Update.
3725 * record.c: Update.
3726 * remote-sim.c: Update.
3727 * remote.c: Update.
3728 * rs6000-nat.c: Update.
3729 * s390-linux-nat.c: Update.
3730 * sh-nbsd-nat.c: Update.
3731 * sol-thread.c: Update.
3732 * sparc-nat.c: Update.
3733 * sparc64-tdep.c: Update.
3734 * spu-linux-nat.c: Update.
3735 * spu-tdep.c: Update.
3736 * target-debug.h: Update.
3737 * target.c: Update.
3738 * thread.c: Update.
3739 * tid-parse.c: Update.
3740 * tracefile-tfile.c: Update.
3741 * vax-bsd-nat.c: Update.
3742 * windows-nat.c: Update.
3743 * x86-linux-nat.c: Update.
3744 * x86-nat.c: Update.
3745
f2907e49
TT
37462018-07-03 Tom Tromey <tom@tromey.com>
3747
3748 * common/ptid.c (pid_to_ptid): Remove.
3749 * common/ptid.h (pid_to_ptid): Don't declare.
3750 * aix-thread.c: Update.
3751 * arm-linux-nat.c: Update.
3752 * common/ptid.c: Update.
3753 * common/ptid.h: Update.
3754 * corelow.c: Update.
3755 * ctf.c: Update.
3756 * darwin-nat.c: Update.
3757 * fbsd-nat.c: Update.
3758 * fork-child.c: Update.
3759 * gnu-nat.c: Update.
3760 * go32-nat.c: Update.
3761 * inf-ptrace.c: Update.
3762 * infcmd.c: Update.
3763 * inferior.c: Update.
3764 * infrun.c: Update.
3765 * linux-fork.c: Update.
3766 * linux-nat.c: Update.
3767 * nat/aarch64-linux-hw-point.c: Update.
3768 * nat/fork-inferior.c: Update.
3769 * nat/x86-linux-dregs.c: Update.
3770 * nto-procfs.c: Update.
3771 * obsd-nat.c: Update.
3772 * procfs.c: Update.
3773 * progspace.c: Update.
3774 * remote.c: Update.
3775 * rs6000-nat.c: Update.
3776 * s390-linux-nat.c: Update.
3777 * sol-thread.c: Update.
3778 * spu-linux-nat.c: Update.
3779 * target.c: Update.
3780 * top.c: Update.
3781 * tracefile-tfile.c: Update.
3782 * windows-nat.c: Update.
3783
fd79271b
TT
37842018-07-03 Tom Tromey <tom@tromey.com>
3785
3786 * common/ptid.h (ptid_build): Don't declare.
3787 * common/ptid.c (ptid_build): Remove.
3788 * aix-thread.c: Update.
3789 * bsd-kvm.c: Update.
3790 * bsd-uthread.c: Update.
3791 * common/agent.c: Update.
3792 * common/ptid.c: Update.
3793 * common/ptid.h: Update.
3794 * corelow.c: Update.
3795 * darwin-nat.c: Update.
3796 * fbsd-nat.c: Update.
3797 * gnu-nat.c: Update.
3798 * linux-fork.c: Update.
3799 * linux-nat.c: Update.
3800 * linux-thread-db.c: Update.
3801 * nat/linux-osdata.c: Update.
3802 * nat/linux-procfs.c: Update.
3803 * nto-procfs.c: Update.
3804 * obsd-nat.c: Update.
3805 * proc-service.c: Update.
3806 * procfs.c: Update.
3807 * ravenscar-thread.c: Update.
3808 * remote-sim.c: Update.
3809 * remote.c: Update.
3810 * sol-thread.c: Update.
3811 * target.c: Update.
3812 * windows-nat.c: Update.
3813
057302ce
TT
38142018-07-03 Tom Tromey <tom@tromey.com>
3815
3816 * infrun.c (follow_exec): Use exit_inferior_silent.
3817 * inferior.c (exit_inferior_num_silent): Remove.
3818 * inferior.h (exit_inferior_num_silent): Don't declare.
3819
a50c11c6
TT
38202018-07-03 Tom Tromey <tom@tromey.com>
3821
3822 PR cli/23340:
3823 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3824 inferior_ptid on error.
3825
471b9d15
MR
38262018-07-02 Maciej W. Rozycki <macro@mips.com>
3827 Simon Marchi <simon.marchi@polymtl.ca>
3828
3829 PR tdep/8282
3830 * disasm.h (gdb_disassembler): Add
3831 `m_disassembler_options_holder'. member
3832 * disasm.c (get_all_disassembler_options): New function.
3833 (gdb_disassembler::gdb_disassembler): Use it.
3834 (gdb_buffered_insn_length_init_dis): Likewise.
3835 (gdb_buffered_insn_length): Adjust accordingly.
3836 (set_disassembler_options): Handle options with arguments.
3837 (show_disassembler_options_sfunc): Likewise. Add a leading new
3838 line if showing options with descriptions.
3839 (disassembler_options_completer): Adapt to using the
3840 `disasm_options_and_args_t' structure.
3841 * mips-tdep.c (mips_disassembler_options): New variable.
3842 (mips_disassembler_options_o32): Likewise.
3843 (mips_disassembler_options_n32): Likewise.
3844 (mips_disassembler_options_n64): Likewise.
3845 (gdb_print_insn_mips): Don't set `disassembler_options'.
3846 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3847 functions.
3848 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
3849 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
3850 `gdbarch_disassembler_options_implicit' and
3851 `gdbarch_valid_disassembler_options'.
3852 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
3853 `disasm_options_and_args_t' structure.
3854 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
3855 method.
3856 (valid_disassembler_options): Switch from `disasm_options_t' to
3857 the `disasm_options_and_args_t' structure.
3858 * NEWS: Document `set disassembler-options' support for the MIPS
3859 target.
3860 * gdbarch.h: Regenerate.
3861 * gdbarch.c: Regenerate.
3862
41823f29
SH
38632018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3864
3865 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
3866
41206e32
JB
38672018-06-29 Joel Brobecker <brobecker@adacore.com>
3868
3869 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
3870 parameter in call to amd64_target_description.
3871 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3872 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
3873 (amd64fbsd_init_abi): Likewise.
3874 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3875 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3876 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3877 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
3878
de52b960
PA
38792018-06-29 Pedro Alves <palves@redhat.com>
3880
3881 * gdb/amd64-tdep.h (amd64_create_target_description): Add
3882 "segments" parameter.
3883 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
3884 (_initialize_amd64_tdep): Update call to
3885 amd64_create_target_description.
3886 (amd64_target_description): Add "segments" parameter. Adjust
3887 the implementation to use it.
3888 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
3889 call to amd64_create_target_description.
3890 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
3891 * gdb/arch/amd64.h (amd64_create_target_description): Add
3892 "segments" register.
3893 * gdb/arch/amd64.c (amd64_create_target_description): Add
3894 "segments" parameter. Call create_feature_i386_64bit_segments
3895 only if SEGMENTS is true.
3896 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
3897 call to amd64_create_target_description.
3898
75acb486
PA
38992018-06-29 Pedro Alves <palves@redhat.com>
3900
3901 * thread.c (thread_target_id_str): New, factored out from ...
3902 (print_thread_info_1): ... here. Use it to compute the max
3903 "Target Id" column width.
3904
c76a8ea3
PA
39052018-06-29 Pedro Alves <palves@redhat.com>
3906
3907 * remote.c (remote_target::extra_thread_info): Delete
3908 'display_buf' and 'n' locals. from the cache, regardless of
3909 packet mechanims is in use. Use cache for qThreadExtra and qP
3910 methods too.
3911
cd2bb709
PA
39122018-06-29 Pedro Alves <palves@redhat.com>
3913
3914 * blockframe.c (find_pc_sect_containing_function): New function.
3915 * breakpoint.c (print_breakpoint_location): Don't call
3916 find_pc_sect_function.
3917 * linespec.c (create_sals_line_offset): Record the location's
3918 symbol in the sal.
3919 * linespec.c (convert_address_location_to_sals): Fill in sal's
3920 symbol with find_pc_sect_containing_function.
3921 * symtab.c (find_function_start_sal): Rename to ...
3922 (find_function_start_sal_1): ... this.
3923 (find_function_start_sal): Reimplement as wrapper around
3924 find_function_start_sal_1, and use
3925 find_pc_sect_containing_function to fill in the sal's symbol.
3926 (find_function_start_sal(symbol*, bool)): Adjust.
3927 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
3928 comments.
3929 (find_pc_sect_containing_function): Declare.
3930
991ff292
PA
39312018-06-29 Pedro Alves <palves@redhat.com>
3932
3933 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
3934 true if the the location has no symbol.
3935
44cee4fd
TT
39362018-06-28 Tom Tromey <tom@tromey.com>
3937
3938 * NEWS: Mention --enable-codesign.
3939 * silent-rules.mk (ECHO_SIGN): New variable.
3940 * configure.ac: Add --enable-codesign.
3941 * configure: Rebuild.
3942 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
3943 (gdb$(EXEEXT)): Optionally invoke codesign.
3944
f2ffa92b
PA
39452018-06-28 Pedro Alves <palves@redhat.com>
3946
3947 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
3948 comments.
3949 (switch_to_thread_no_regs): Adjust comment.
3950 * infcmd.c (stop_pc): Delete.
3951 (post_create_inferior, info_program_command): Replace references
3952 to stop_pc with references to thread_info->suspend.stop_pc.
3953 * inferior.h (stop_pc): Delete declaration.
3954 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
3955 (handle_inferior_event_1, handle_signal_stop)
3956 (process_event_stop_test, keep_going_stepped_thread)
3957 (handle_step_into_function, handle_step_into_function_backward)
3958 (print_stop_location): Replace references to stop_pc with
3959 references to thread_info->suspend.stop_pc.
3960 (struct infcall_suspend_state) <stop_pc>: Delete field.
3961 (save_infcall_suspend_state, restore_infcall_suspend_state):
3962 Remove references to inf_stat->stop_pc.
3963 * linux-fork.c (fork_load_infrun_state): Likewise.
3964 * record-btrace.c (record_btrace_set_replay): Likewise.
3965 * record-full.c (record_full_goto_entry): Likewise.
3966 * remote.c (print_one_stopped_thread): Likewise.
3967 * target.c (target_resume): Extend comment.
3968 * thread.c (set_executing_thread): New.
3969 (set_executing): Use it.
3970 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
3971 Remove references to stop_pc.
3972
ecdc3a72
PA
39732018-06-28 Pedro Alves <palves@redhat.com>
3974
3975 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
3976 Moving fetching stop_pc until after ecs->event_thread is refreshed.
3977
d95d3aef
TT
39782018-06-28 Tom Tromey <tom@tromey.com>
3979
3980 * coffread.c (coff_symfile_finish): Update.
3981 * xcoffread.c (xcoff_symfile_finish): Update.
3982 * elfread.c (elf_symfile_finish): Update.
3983 * symfile.h (dwarf2_free_objfile): Don't declare.
3984 * dwarf2read.c (_initialize_dwarf2_read): Use
3985 register_objfile_data_with_cleanup.
3986 (dwarf2_free_objfile): Now static. Change signature.
3987
291f9a96
PT
39882018-06-28 Petr Tesarik <ptesarik@suse.cz>
3989
3990 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
3991 option "-o" to add-symbol-file-load to add an offset to each
3992 section's load address.
3993 * symfile.c (set_objfile_default_section_offset): New function.
3994
d81a3eaf
PT
39952018-06-28 Petr Tesarik <ptesarik@suse.cz>
3996
3997 * symfile.c (add_symbol_file_command): Make sure that sections
3998 with the same name are sorted in the same order.
3999
ed6dfe51
PT
40002018-06-28 Petr Tesarik <ptesarik@suse.cz>
4001
4002 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4003 require the second argument. If omitted, load sections at the
4004 addresses specified in the file.
4005
d4d429d5
PT
40062018-06-28 Petr Tesarik <ptesarik@suse.cz>
4007
4008 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4009 (_initialize_symfile): Add option "-o" to symbol-file to add an
4010 offset to each section of the symbol file.
4011
39b27ab6
PT
40122018-06-28 Petr Tesarik <ptesarik@suse.cz>
4013
4014 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4015
41827fc3
TT
40162018-06-27 Tom Tromey <tom@tromey.com>
4017
4018 * stack.c (_initialize_stack): Update "func" help text.
4019
0c6aef22
TT
40202018-06-27 Tom Tromey <tom@tromey.com>
4021
4022 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4023 std::vector.
4024 (unwind_infopy_str, pyuw_create_unwind_info)
4025 (unwind_infopy_add_saved_register, pyuw_sniffer)
4026 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4027 Update.
4028 (struct saved_reg): Add constructor.
4029 <value>: Now a gdbpy_ref<>.
4030
63177289
TT
40312018-06-27 Tom Tromey <tom@tromey.com>
4032
4033 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4034
e76f78a0
SM
40352018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4036
4037 * gdb-gdb.py.in: Format using autopep8.
4038
9a14af7b
SM
40392018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4040
4041 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4042 (type_lookup_function): Recognize CORE_ADDR values.
4043
189366cd
SM
40442018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4045
4046 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4047 print tag_name.
4048
68ad5fb9
SM
40492018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4050
4051 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4052 <__lt__>: Add.
4053
141ec9f6
SM
40542018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4055
4056 * gdb-gdb.py: Move to...
4057 * gdb-gdb.py.in: ... here.
4058 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4059 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4060 dependencies.
4061 (distclean): Remove gdb-gdb.py when cleaning.
4062 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4063 * configure: Re-generate.
4064
4c4e7ad4
PA
40652018-06-27 Pedro Alves <palves@redhat.com>
4066
4067 * proc-service.c (get_ps_regcache): New.
4068 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4069 (ps_lsetfpregs): Use it.
4070
7ab6656f
OJ
40712018-06-27 Omair Javaid <omair.javaid@linaro.org>
4072
4073 PR gdb/21695
4074 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4075 (dwarf_decode_lines_1): Adjust.
4076
bd583225
SM
40772018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4078
4079 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4080 override.
4081 <info_proc>: Likewise.
4082
9a325b7b
JB
40832018-06-26 Joel Brobecker <brobecker@adacore.com>
4084
4085 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4086 to windows_fetch_one_register, and only handle the case of
4087 fetching one register. Move the code that reloads the context
4088 and iterates over all registers if R is negative to...
4089 (windows_nat_target::fetch_registers): ... here.
4090 (do_windows_store_inferior_registers): Rename to
4091 windows_store_one_register, and only handle the case of storing
4092 one register. Move the code that handles the case where r is
4093 negative to...
4094 (windows_nat_target::store_registers) ... here.
4095
a33ccfc7
TT
40962018-06-26 Tom Tromey <tom@tromey.com>
4097
4098 PR rust/22574:
4099 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4100 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4101 Update.
4102 (rust_internal_print_type): Add podata parameter.
4103 (rust_print_type): Update.
4104
e0c547d1
TT
41052018-06-26 Tom Tromey <tom@tromey.com>
4106
4107 * typeprint.h (struct print_offset_data) <update, finish,
4108 maybe_print_hole>: New methods.
4109 <indentation>: New constant.
4110 * typeprint.c (print_offset_data::indentation): Define.
4111 (print_offset_data::maybe_print_hole, print_offset_data::update)
4112 (print_offset_data::finish): Move from c-typeprint.c and rename.
4113 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4114 (print_spaces_filtered_with_print_options): Update.
4115 (c_print_type_union_field_offset, maybe_print_hole)
4116 (c_print_type_struct_field_offset): Move to typeprint.c and
4117 rename.
4118 (c_type_print_base_struct_union): Update.
4119
75cbc781
PA
41202018-06-25 Pedro Alves <palves@redhat.com>
4121
4122 * gdbthread.h (thread_info_ref, delete_thread)
4123 (delete_thread_silent, first_thread_of_inferior)
4124 (any_thread_of_inferior, switch_to_thread)
4125 (enable_thread_stack_temporaries)
4126 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4127 (get_last_thread_stack_temporary)
4128 (value_in_thread_stack_temporaries, can_access_registers_thread):
4129 Spell out "struct thread_info" instead of just "thread_info".
4130 * inferior.h (notice_new_inferior): Likewise.
4131
b7a08269
PA
41322018-06-25 Pedro Alves <palves@redhat.com>
4133
4134 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4135 pass thread_info pointer to delete_thread.
4136 (windows_nat_target::detach): Pass inferior pointer to
4137 detach_inferior.
4138 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4139 delete_thread.
4140 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4141 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4142 and pass a thread_info pointer to delete_thread.
4143 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4144 pass thread_info pointer to delete_thread.
4145 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4146 delete_thread_silent call.
4147 * procfs.c (procfs_target::detach): Pass inferior pointer to
4148 detach_inferior.
4149 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4150 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4151 delete_thread_silent call.
4152 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4153 pass thread_info pointer to delete_thread.
4154 (windows_nat_target::detach): Pass inferior pointer to
4155 delete_inferior.
4156
8e7767e3
AH
41572018-06-22 Alan Hayward <alan.hayward@arm.com>
4158
4159 * regcache.c (readable_regcache::read_part): Fix asserts.
4160 (reg_buffer::raw_collect_part): New function.
4161 (regcache::write_part): Fix asserts.
4162 (reg_buffer::raw_supply_part): New function.
4163 (regcache::transfer_regset_register): New helper function.
4164 (regcache::transfer_regset): Call new functions.
4165 (regcache_supply_regset): Use gdb_byte*.
4166 (regcache::supply_regset): Likewise.
4167 (regcache_collect_regset): Likewise.
4168 (regcache::collect_regset): Likewise.
4169 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4170 (reg_buffer::raw_supply_part): Likewise.
4171 (regcache::transfer_regset_register): Likewise.
4172 (regcache::transfer_regset): Use gdb_byte*.
4173
bfd60e34
AH
41742018-06-22 Alan Hayward <alan.hayward@arm.com>
4175
4176 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4177
00431a78
PA
41782018-06-21 Pedro Alves <palves@redhat.com>
4179
4180 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4181 instead of a ptid_t. All callers adjusted.
4182 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4183 adjusted.
4184 (print_ada_task_info, display_current_task_id, task_command_1):
4185 Adjust.
4186 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4187 inferior_thread.
4188 (breakpoint_kind): Adjust.
4189 (remove_breakpoints_pid): Rename to ...
4190 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4191 pointer. All callers adjusted.
4192 (bpstat_clear_actions): Use inferior_thread.
4193 (get_bpstat_thread): New.
4194 (bpstat_do_actions): Use it.
4195 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4196 to take a thread_info pointer. All callers adjusted.
4197 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4198 (breakpoint_re_set_thread): Use inferior_thread.
4199 * breakpoint.h (struct inferior): Forward declare.
4200 (bpstat_stop_status): Update.
4201 (remove_breakpoints_pid): Delete.
4202 (remove_breakpoints_inf): New.
4203 * bsd-uthread.c (bsd_uthread_target::wait)
4204 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4205 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4206 (maint_btrace_packet_history_cmd)
4207 (maint_btrace_clear_packet_history_cmd): Adjust.
4208 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4209 inferior_thread.
4210 * cli/cli-interp.c: Include "inferior.h".
4211 * common/refcounted-object.h (struct
4212 refcounted_object_ref_policy): New.
4213 * compile/compile-object-load.c: Include gdbthread.h.
4214 (store_regs): Use inferior_thread.
4215 * corelow.c (core_target::close): Use current_inferior.
4216 (core_target_open): Adjust to use first_thread_of_inferior and use
4217 the current inferior.
4218 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4219 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4220 <thread>: ... this new field. All references adjusted.
4221 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4222 Take a thread_info pointer instead of a ptid_t.
4223 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4224 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4225 thread_info pointer instead of a ptid_t.
4226 * elfread.c: Include "inferior.h".
4227 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4228 Use inferior_thread.
4229 * eval.c (evaluate_subexp): Likewise.
4230 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4231 inferior_thread.
4232 * gdb_proc_service.h (struct thread_info): Forward declare.
4233 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4234 <thread>: ... this new field. All references adjusted.
4235 * gdbarch.h, gdbarch.c: Regenerate.
4236 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4237 'thread' parameter. All implementations and callers adjusted.
4238 * gdbthread.h (thread_info) <set_running>: New method.
4239 (delete_thread, delete_thread_silent): Take a thread_info pointer
4240 instead of a ptid.
4241 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4242 (first_thread_of_process): Delete, replaced by ...
4243 (first_thread_of_inferior): ... this new function. All callers
4244 adjusted.
4245 (any_live_thread_of_process): Delete, replaced by ...
4246 (any_live_thread_of_inferior): ... this new function. All callers
4247 adjusted.
4248 (switch_to_thread, switch_to_no_thread): Declare.
4249 (is_executing): Delete.
4250 (enable_thread_stack_temporaries): Update comment.
4251 <enable_thread_stack_temporaries>: Take a thread_info pointer
4252 instead of a ptid_t. Incref the thread.
4253 <~enable_thread_stack_temporaries>: Decref the thread.
4254 <m_ptid>: Delete
4255 <m_thr>: New.
4256 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4257 (get_last_thread_stack_temporary)
4258 (value_in_thread_stack_temporaries, can_access_registers_thread):
4259 Take a thread_info pointer instead of a ptid_t. All callers
4260 adjusted.
4261 * infcall.c (get_call_return_value): Use inferior_thread.
4262 (run_inferior_call): Work with thread pointers instead of ptid_t.
4263 (call_function_by_hand_dummy): Work with thread pointers instead
4264 of ptid_t. Use thread_info_ref.
4265 * infcmd.c (proceed_thread_callback): Access thread's state
4266 directly.
4267 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4268 access thread's state directly.
4269 (continue_command): Use inferior_thread.
4270 (info_program_command): Use find_thread_ptid and access thread
4271 state directly.
4272 (proceed_after_attach_callback): Use thread state directly.
4273 (notice_new_inferior): Take a thread_info pointer instead of a
4274 ptid_t. All callers adjusted.
4275 (exit_inferior): Take an inferior pointer instead of a pid. All
4276 callers adjusted.
4277 (exit_inferior_silent): New.
4278 (detach_inferior): Delete.
4279 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4280 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4281 (detach_inferior_command, kill_inferior_command): Use
4282 find_inferior_id instead of valid_gdb_inferior_id and
4283 gdb_inferior_id_to_pid.
4284 (inferior_command): Use inferior and thread pointers.
4285 * inferior.h (struct thread_info): Forward declare.
4286 (notice_new_inferior): Take a thread_info pointer instead of a
4287 ptid_t. All callers adjusted.
4288 (detach_inferior): Delete declaration.
4289 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4290 instead of a pid. All callers adjusted.
4291 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4292 (valid_gdb_inferior_id): Delete.
4293 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4294 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4295 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4296 ...
4297 <inf>: ... this new field.
4298 <step_ptid>: Delete, replaced by ...
4299 <step_thread>: ... this new field.
4300 (get_displaced_stepping_state): Take an inferior pointer instead
4301 of a pid. All callers adjusted.
4302 (displaced_step_in_progress_any_inferior): Adjust.
4303 (displaced_step_in_progress_thread): Take a thread pointer instead
4304 of a ptid_t. All callers adjusted.
4305 (displaced_step_in_progress, add_displaced_stepping_state): Take
4306 an inferior pointer instead of a pid. All callers adjusted.
4307 (get_displaced_step_closure_by_addr): Adjust.
4308 (remove_displaced_stepping_state): Take an inferior pointer
4309 instead of a pid. All callers adjusted.
4310 (displaced_step_prepare_throw, displaced_step_prepare)
4311 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4312 All callers adjusted.
4313 (start_step_over): Adjust.
4314 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4315 displaced step queue.
4316 (do_target_resume): Adjust.
4317 (fetch_inferior_event): Use inferior_thread.
4318 (context_switch, get_inferior_stop_soon): Take an
4319 execution_control_state pointer instead of a ptid_t. All callers
4320 adjusted.
4321 (switch_to_thread_cleanup): Delete.
4322 (stop_all_threads): Use scoped_restore_current_thread.
4323 * inline-frame.c: Include "gdbthread.h".
4324 (inline_state) <inline_state>: Take a thread pointer instead of a
4325 ptid_t. All callers adjusted.
4326 <ptid>: Delete, replaced by ...
4327 <thread>: ... this new field.
4328 (find_inline_frame_state): Take a thread pointer instead of a
4329 ptid_t. All callers adjusted.
4330 (skip_inline_frames, step_into_inline_frame)
4331 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4332 pointer instead of a ptid_t. All callers adjusted.
4333 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4334 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4335 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4336 pointers directly.
4337 * linux-nat.c (get_detach_signal): Likewise.
4338 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4339 (thread_db_notice_clone): Adjust.
4340 (thread_db_find_new_threads_silently)
4341 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4342 a thread pointer instead of a ptid_t. All callers adjusted.
4343 * mi/mi-cmd-var.c: Include "inferior.h".
4344 (mi_cmd_var_update_iter): Update to use thread pointers.
4345 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4346 inferior directly.
4347 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4348 out to ...
4349 (mi_output_running): ... this new function.
4350 (mi_on_resume_1): Adjust to use it.
4351 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4352 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4353 directly.
4354 (interrupt_thread_callback): : Adjust to use thread and inferior
4355 pointers.
4356 * proc-service.c: Include "gdbthread.h".
4357 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4358 * progspace-and-thread.c: Include "inferior.h".
4359 * progspace.c: Include "inferior.h".
4360 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4361 hold a reference to an inferior_object.
4362 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4363 inferior_thread.
4364 * python/py-inferior.c (struct inferior_object): Give the type a
4365 tag name instead of a typedef.
4366 (python_on_normal_stop): No need to check if the current thread is
4367 listed.
4368 (inferior_to_inferior_object): Change return type to
4369 inferior_object. All callers adjusted.
4370 (find_thread_object): Delete, bits factored out to ...
4371 (thread_to_thread_object): ... this new function.
4372 * python/py-infthread.c (create_thread_object): Use
4373 inferior_to_inferior_object.
4374 (thpy_is_stopped): Use thread pointer directly.
4375 (gdbpy_selected_thread): Use inferior_thread.
4376 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4377 field, replaced with ...
4378 <thread>: ... this new field. All users adjusted.
4379 (btpy_insn_or_gap_new): Drop const.
4380 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4381 callers adjusted.
4382 * python/py-record.c: Include "gdbthread.h".
4383 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4384 a ptid_t. All callers adjusted.
4385 (gdbpy_current_recording): Use inferior_thread.
4386 * python/py-record.h (recpy_record_object) <ptid>: Delete
4387 field, replaced with ...
4388 <thread>: ... this new field. All users adjusted.
4389 (recpy_element_object) <ptid>: Delete
4390 field, replaced with ...
4391 <thread>: ... this new field. All users adjusted.
4392 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4393 a ptid_t. All callers adjusted.
4394 * python/py-threadevent.c: Include "gdbthread.h".
4395 (get_event_thread): Use thread_to_thread_object.
4396 * python/python-internal.h (struct inferior_object): Forward
4397 declare.
4398 (find_thread_object, find_inferior_object): Delete declarations.
4399 (thread_to_thread_object, inferior_to_inferior_object): New
4400 declarations.
4401 * record-btrace.c: Include "inferior.h".
4402 (require_btrace_thread): Use inferior_thread.
4403 (record_btrace_frame_sniffer)
4404 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4405 (get_thread_current_frame): Use scoped_restore_current_thread and
4406 switch_to_thread.
4407 (get_thread_current_frame): Use thread pointer directly.
4408 (record_btrace_replay_at_breakpoint): Use thread's inferior
4409 pointer directly.
4410 * record-full.c: Include "inferior.h".
4411 * regcache.c: Include "gdbthread.h".
4412 (get_thread_arch_regcache): Use the inferior's address space
4413 directly.
4414 (get_thread_regcache, registers_changed_thread): New.
4415 * regcache.h (get_thread_regcache(thread_info *thread)): New
4416 overload.
4417 (registers_changed_thread): New.
4418 (remote_target) <remote_detach_1>: Swap order of parameters.
4419 (remote_add_thread): <remote_add_thread>: Return the new thread.
4420 (get_remote_thread_info(ptid_t)): New overload.
4421 (remote_target::remote_notice_new_inferior): Use thread pointers
4422 directly.
4423 (remote_target::process_initial_stop_replies): Use
4424 thread_info::set_running.
4425 (remote_target::remote_detach_1, remote_target::detach)
4426 (extended_remote_target::detach): Adjust.
4427 * stack.c (frame_show_address): Use inferior_thread.
4428 * target-debug.h (target_debug_print_thread_info_pp): New.
4429 * target-delegates.c: Regenerate.
4430 * target.c (default_thread_address_space): Delete.
4431 (memory_xfer_partial_1): Use current_inferior.
4432 (target_detach): Use current_inferior.
4433 (target_thread_address_space): Delete.
4434 (generic_mourn_inferior): Use current_inferior.
4435 * target.h (struct target_ops) <thread_address_space>: Delete.
4436 (target_thread_address_space): Delete.
4437 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4438 pointers directly.
4439 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4440 thread pointer instead of a ptid_t. Adjust all callers.
4441 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4442 (first_thread_of_process): Delete, replaced by ...
4443 (first_thread_of_inferior): ... this new function. All callers
4444 adjusted.
4445 (any_thread_of_process): Rename to ...
4446 (any_thread_of_inferior): ... this, and take an inferior pointer.
4447 (any_live_thread_of_process): Rename to ...
4448 (any_live_thread_of_inferior): ... this, and take an inferior
4449 pointer.
4450 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4451 (value_in_thread_stack_temporaries)
4452 (get_last_thread_stack_temporary): Take a thread pointer instead
4453 of a ptid_t. Adjust all callers.
4454 (thread_info::set_running): New.
4455 (validate_registers_access): Use inferior_thread.
4456 (can_access_registers_ptid): Rename to ...
4457 (can_access_registers_thread): ... this, and take a thread
4458 pointer.
4459 (print_thread_info_1): Adjust to compare thread pointers instead
4460 of ptids.
4461 (switch_to_no_thread, switch_to_thread): Make extern.
4462 (scoped_restore_current_thread::~scoped_restore_current_thread):
4463 Use m_thread pointer directly.
4464 (scoped_restore_current_thread::scoped_restore_current_thread):
4465 Use inferior_thread.
4466 (thread_command): Use thread pointer directly.
4467 (thread_num_make_value_helper): Use inferior_thread.
4468 * top.c (execute_command): Use inferior_thread.
4469 * tui/tui-interp.c: Include "inferior.h".
4470 * varobj.c (varobj_create): Use inferior_thread.
4471 (value_of_root_1): Use find_thread_global_id instead of
4472 global_thread_id_to_ptid.
4473
33bab475
AH
44742018-06-21 Alan Hayward <alan.hayward@arm.com>
4475
4476 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4477 possible.
4478 (regcache::write_part): Likewise.
4479 (readable_regcache::cooked_read_part): Update comment.
4480 (readable_regcache::cooked_write_part): Likewise.
4481 * regcache.h: (readable_regcache::read_part): Likewise.
4482 (regcache::write_part): Likewise.
4483
8363f9d5
RB
44842018-06-21 Richard Bunt <richard.bunt@arm.com>
4485 Dirk Schubert <dirk.schubert@arm.com>
4486
4487 * aarch64-linux-nat.c (post_attach): New.
4488 (aarch64_linux_nat_target::post_attach): Override post_attach to
4489 record the number of hardware debug registers.
4490
0d0b0ea2
TT
44912018-06-20 Tom Tromey <tom@tromey.com>
4492
4493 * python/py-param.c (add_setshow_generic): Make parameters const.
4494 (parmpy_init): Update.
4495
302abd6e
SM
44962018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4497
4498 * regcache.h (regcache_cooked_read_ftype): Rename to...
4499 (register_read_ftype): ...this, change type to function_view.
4500 (class reg_buffer) <save>: Remove src parameter.
4501 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4502 parameter non-const in first overload. Remove src parameter in
4503 second overload.
4504 * regcache.c (do_cooked_read): Remove.
4505 (readonly_detached_regcache::readonly_detached_regcache): Make
4506 parameter non-const, adjust call to other constructor.
4507 (reg_buffer::save): Remove src parameter.
4508 * frame.c (do_frame_register_read): Remove.
4509 (frame_save_as_regcache): Use lambda function.
4510 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4511 parameter to ppu2spu_data *.
4512 (ppu2spu_sniffer): Use lambda function.
4513
19f3f25f
SM
45142018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4515
4516 * record-full.c (record_full_target::insert_breakpoint): Remove
4517 "struct" keyword, add const.
4518
d0ac1c44
SM
45192018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4520
4521 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4522 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4523 * configure.ac: Remove AC_PREREQ, add missing quoting.
4524 * gnulib/configure.ac: Modernize usage of
4525 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4526 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4527 (AUTOMAKE_VERSION): Bump to 1.15.1.
4528 * configure: Re-generate.
4529 * config.in: Re-generate.
4530 * aclocal.m4: Re-generate.
4531 * gnulib/aclocal.m4: Re-generate.
4532 * gnulib/config.in: Re-generate.
4533 * gnulib/configure: Re-generate.
4534 * gnulib/import/Makefile.in: Re-generate.
4535
6ae50267
PA
45362018-06-19 Pedro Alves <palves@redhat.com>
4537
4538 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4539 (lookup_minimal_symbol_by_pc_section): ... here with
4540 gdb_assert_not_reached added.
4541
61b04dd0
PA
45422018-06-19 Pedro Alves <palves@redhat.com>
4543
4544 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4545 parameter with a block parameter. Compare location's block symbol
4546 with the frame's block instead of addresses.
4547 (skip_inline_frames): Pass the current block instead of the
4548 frame's address. Break out as soon as we determine the frame
4549 should not be skipped.
4550
f709fabb
TT
45512018-06-18 Tom Tromey <tom@tromey.com>
4552
4553 * solib-aix.c (solib_aix_get_section_offsets): Return
4554 unique_xmalloc_ptr.
4555 (solib_aix_solib_create_inferior_hook): Update.
4556
668eb2f0
TT
45572018-06-18 Tom Tromey <tom@tromey.com>
4558
4559 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4560
309822ca
TT
45612018-06-18 Tom Tromey <tom@tromey.com>
4562
4563 * solib-frv.c (frv_relocate_main_executable): Use
4564 unique_xmalloc_ptr.
4565 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4566 unique_xmalloc_ptr.
4567
06424eac
TT
45682018-06-18 Tom Tromey <tom@tromey.com>
4569
4570 * objfiles.h (inhibit_section_map_updates): Update.
4571 (resume_section_map_updates, resume_section_map_updates_cleanup):
4572 Remove.
4573 * solib-svr4.c (svr4_handle_solib_event): Update.
4574 * objfiles.c (inhibit_section_map_updates): Return
4575 scoped_restore_tmpl<int>.
4576 (resume_section_map_updates, resume_section_map_updates_cleanup):
4577 Remove.
4578
b4be9fad
TT
45792018-06-18 Tom Tromey <tom@tromey.com>
4580
4581 * valprint.h (read_string): Update.
4582 * valprint.c (read_string): Change type of "buffer".
4583 (val_print_string): Update.
4584 * python/py-value.c (valpy_string): Update.
4585 * language.h (struct language_defn) <la_get_string>: Change
4586 type of "buffer".
4587 (default_get_string, c_get_string): Update.
4588 * language.c (default_get_string): Change type of "buffer".
4589 * guile/scm-value.c (gdbscm_value_to_string): Update.
4590 * c-lang.c (c_get_string): Change type of "buffer".
4591
3f0dbd67
TT
45922018-06-18 Tom Tromey <tom@tromey.com>
4593
4594 * ser-mingw.c (struct pipe_state_destroyer): New.
4595 (pipe_state_up): New typedef.
4596 (cleanup_pipe_state): Remove.
4597 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4598
69d340c6
TT
45992018-06-18 Tom Tromey <tom@tromey.com>
4600
4601 * rust-lang.h (rust_yyerror): Don't declare.
4602 * rust-lang.c (rust_language_defn): Update.
4603 * rust-exp.y (yyerror): Now static.
4604 * parse.c (parse_exp_in_context_1): Update.
4605 * p-lang.h (p_yyerror): Don't declare.
4606 * p-lang.c (p_language_defn): Update.
4607 * p-exp.y (yyerror): Now static.
4608 * opencl-lang.c (opencl_language_defn): Update.
4609 * objc-lang.c (objc_language_defn): Update.
4610 * m2-lang.h (m2_yyerror): Don't declare.
4611 * m2-lang.c (m2_language_defn): Update.
4612 * m2-exp.y (yyerror): Now static.
4613 * language.h (struct language_defn) <la_error>: Remove.
4614 * language.c (unk_lang_error): Remove.
4615 (unknown_language_defn, auto_language_defn): Remove.
4616 * go-lang.h (go_yyerror): Don't declare.
4617 * go-lang.c (go_language_defn): Update.
4618 * go-exp.y (yyerror): Now static.
4619 * f-lang.h (f_yyerror): Don't declare.
4620 * f-lang.c (f_language_defn): Update.
4621 * f-exp.y (yyerror): Now static.
4622 * d-lang.h (d_yyerror): Don't declare.
4623 * d-lang.c (d_language_defn): Update.
4624 * d-exp.y (yyerror): Now static.
4625 * c-lang.h (c_yyerror): Don't declare.
4626 * c-lang.c (c_language_defn, cplus_language_defn)
4627 (asm_language_defn, minimal_language_defn): Update.
4628 * c-exp.y (yyerror): Now static.
4629 * ada-lang.h (ada_yyerror): Don't declare.
4630 * ada-lang.c (ada_language_defn): Update.
4631 * ada-exp.y (yyerror): Now static.
4632
e9902bfc
AH
46332018-06-18 Alan Hayward <alan.hayward@arm.com>
4634
4635 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4636 (store_sveregs_to_thread): Likewise.
4637 (aarch64_linux_fetch_inferior_registers): Check for SVE.
4638 (aarch64_linux_store_inferior_registers): Likewise.
4639 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4640 function.
4641 (aarch64_sve_regs_copy_to_regcache): Likewise.
4642 (aarch64_sve_regs_copy_from_regcache): Likewise.
4643 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4644 declaration.
4645 (aarch64_sve_regs_copy_to_regcache): Likewise.
4646 (aarch64_sve_regs_copy_from_regcache): Likewise.
4647 (sve_context): Structure from Linux headers.
4648 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4649 (SVE_SIG_ZREG_SIZE): Likewise.
4650 (SVE_SIG_PREG_SIZE): Likewise.
4651 (SVE_SIG_FFR_SIZE): Likewise.
4652 (SVE_SIG_REGS_OFFSET): Likewise.
4653 (SVE_SIG_ZREGS_OFFSET): Likewise.
4654 (SVE_SIG_ZREG_OFFSET): Likewise.
4655 (SVE_SIG_ZREGS_SIZE): Likewise.
4656 (SVE_SIG_PREGS_OFFSET): Likewise.
4657 (SVE_SIG_PREG_OFFSET): Likewise.
4658 (SVE_SIG_PREGS_SIZE): Likewise.
4659 (SVE_SIG_FFR_OFFSET): Likewise.
4660 (SVE_SIG_REGS_SIZE): Likewise.
4661 (SVE_SIG_CONTEXT_SIZE): Likewise.
4662 (SVE_PT_REGS_MASK): Likewise.
4663 (SVE_PT_REGS_FPSIMD): Likewise.
4664 (SVE_PT_REGS_SVE): Likewise.
4665 (SVE_PT_VL_INHERIT): Likewise.
4666 (SVE_PT_VL_ONEXEC): Likewise.
4667 (SVE_PT_REGS_OFFSET): Likewise.
4668 (SVE_PT_FPSIMD_OFFSET): Likewise.
4669 (SVE_PT_FPSIMD_SIZE): Likewise.
4670 (SVE_PT_SVE_ZREG_SIZE): Likewise.
4671 (SVE_PT_SVE_PREG_SIZE): Likewise.
4672 (SVE_PT_SVE_FFR_SIZE): Likewise.
4673 (SVE_PT_SVE_FPSR_SIZE): Likewise.
4674 (SVE_PT_SVE_FPCR_SIZE): Likewise.
4675 (__SVE_SIG_TO_PT): Likewise.
4676 (SVE_PT_SVE_OFFSET): Likewise.
4677 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4678 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4679 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4680 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4681 (SVE_PT_SVE_PREG_OFFSET): Likewise.
4682 (SVE_PT_SVE_PREGS_SIZE): Likewise.
4683 (SVE_PT_SVE_FFR_OFFSET): Likewise.
4684 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4685 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4686 (SVE_PT_SVE_SIZE): Likewise.
4687 (SVE_PT_SIZE): Likewise.
4688 (HAS_SVE_STATE): New define.
4689
17a1cc89
AH
46902018-06-18 Alan Hayward <alan.hayward@arm.com>
4691
4692 * nat/aarch64-sve-linux-sigcontext.h: New file.
4693 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4694 new files.
4695 (SVE_VQ_MIN): Likewise.
4696 (SVE_VQ_MAX): Likewise.
4697 (SVE_VL_MIN): Likewise.
4698 (SVE_VL_MAX): Likewise.
4699 (SVE_NUM_ZREGS): Likewise.
4700 (SVE_NUM_PREGS): Likewise.
4701 (sve_vl_valid): Likewise.
4702 (struct user_sve_header): Likewise.
4703
7010835a
AB
47042018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4705 Richard Bunt <Richard.Bunt@arm.com>
4706
4707 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4708 was requested by GDB.
4709
479b3ef4
TV
47102018-06-15 Tom de Vries <tdevries@suse.de>
4711
4712 * MAINTAINERS (Write After Approval): Add Tom de Vries.
4713
8199b8f4
SM
47142018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
4715
4716 * gnulib/update-gnulib.sh: Print expected versions of
4717 autoconf/aclocal.
4718
55c748a1
SM
47192018-06-14 Simon Marchi <simon.marchi@ericsson.com>
4720
4721 * arch-utils.c (default_type_align): Use type_length_units.
4722 * gdbtypes.c (type_align): Use type_length_units.
4723
87a8eca7
PW
47242018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4725
4726 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4727 of 'define' command.
4728
5d9a0608
TV
47292018-06-14 Tom de Vries <tdevries@suse.de>
4730
4731 PR cli/22573
4732 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4733 get_no_prettyformat_print_options.
4734
ab89b5a5
SM
47352018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4736
4737 * sparc-nat.h: Include target.h.
4738 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4739 <fetch_registers>: Remove this argument in function call.
4740 <store_registers>: Remove this argument in function call, remove
4741 extra semicolon.
4742 <low_forget_process>: Call sparc64_forget_process instead of
4743 sparc_forget_process.
4744
62c808ae
RO
47452018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4746
4747 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4748 (procfs_target::make_corefile_notes): Adjust to new
4749 target_read_alloc return type.
4750
1840d81a
AB
47512018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4752 Stephen Roberts <stephen.roberts@arm.com>
4753
4754 PR gdb/22882
4755 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4756 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4757 Move should_notify_stop local into more inner scope.
4758
9516f85a
AB
47592018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4760 Stephen Roberts <stephen.roberts@arm.com>
4761
4762 PR gdb/22882
4763 * infrun.c (resume_1): Add call to mark_async_event_handler.
4764
defd2172
AB
47652018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4766
4767 * infrun.c (do_target_wait): Change old version of $pc printed.
4768
7b23e087
SM
47692018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4770
4771 * dwarf2read.c (read_index_from_section): Rename to...
4772 (read_gdb_index_from_section): ... this, update all callers.
4773 (dwarf2_read_index): Rename to...
4774 (dwarf2_read_gdb_index): ... this, update all callers.
4775
69c67a0b
JDA
47762018-06-11 John David Anglin <danglin@gcc.gnu.org>
4777
4778 * gdb/hppa-linux-nat.c
4779 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4780 hppa_linux_nat_target::fetch_registers.
4781
65d4cada
AH
47822018-06-11 Alan Hayward <alan.hayward@arm.com>
4783
4784 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4785 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4786 (AARCH64_DWARF_SVE_FFR): Likewise.
4787 (AARCH64_DWARF_SVE_P0): Likewise.
4788 (AARCH64_DWARF_SVE_Z0): Likewise.
4789
f868386e
AH
47902018-06-11 Alan Hayward <alan.hayward@arm.com>
4791
4792 * common/common-regcache.h (raw_compare): New function.
4793 * regcache.c (regcache::raw_compare): Likewise.
4794 * regcache.h (regcache::raw_compare): New declaration.
4795
9c861883
AH
47962018-06-11 Alan Hayward <alan.hayward@arm.com>
4797
4798 * common/common-regcache.h (reg_buffer_common): New structure.
4799 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4800 (reg_buffer::raw_supply): Likewise.
4801 (reg_buffer::raw_supply_integer): Likewise.
4802 (reg_buffer::raw_supply_zeroed): Likewise.
4803 (reg_buffer::raw_collect): Likewise.
4804 (reg_buffer::raw_collect_integer): Likewise.
4805 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4806 (reg_buffer::raw_supply): Likewise.
4807 (reg_buffer::raw_supply_integer): Likewise.
4808 (reg_buffer::raw_supply_zeroed): Likewise.
4809 (reg_buffer::raw_collect): Likewise.
4810 (reg_buffer::raw_collect_integer): Likewise.
4811
953edf2b
TT
48122018-06-10 Tom Tromey <tom@tromey.com>
4813
4814 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4815 (class remote_state) <stop_reply_queue>: Now std::vector.
4816 (remote_state::~remote_state)
4817 (remote_target::stop_reply_queue_length): Update.
4818 (struct queue_iter_param, remove_child_of_pending_fork)
4819 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4820 (check_pending_event_prevents_wildcard_vcont_callback)
4821 (remove_stop_reply_for_inferior)
4822 (remove_stop_reply_of_remote_state)
4823 (remote_notif_remove_once_on_match)
4824 (stop_reply_match_ptid_and_ws)
4825 (remote_kill_child_of_pending_fork): Remove.
4826 (remote_target::remove_new_fork_children)
4827 (remote_target::check_pending_events_prevent_wildcard_vcont)
4828 (remote_target::discard_pending_stop_replies)
4829 (remote_target::discard_pending_stop_replies_in_queue)
4830 (remote_target::remote_notif_remove_queued_reply)
4831 (remote_target::queued_stop_reply)
4832 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4833 (remote_target::wait, remote_target::kill_new_fork_children)
4834 (remote_target::async): Update.
4835
1ddbba9d
TT
48362018-06-10 Tom Tromey <tom@tromey.com>
4837
4838 * record-full.c (record_full_arch_list_cleanups): Remove.
4839 (record_full_message): Use try/catch.
4840 (record_full_wait_cleanups): Remove.
4841 (record_full_wait_1): Use try/catch.
4842 (record_full_restore): Likewise.
4843
219605fd
TT
48442018-06-10 Tom Tromey <tom@tromey.com>
4845
4846 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
4847 declare VEC. Add constructor.
4848 <in_target_beneath>: Now bool.
4849 (record_full_breakpoints): Now a std::vector, static.
4850 (record_full_sync_record_breakpoints)
4851 (record_full_init_record_breakpoints)
4852 (record_full_target::insert_breakpoint)
4853 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
4854
71b73764
SM
48552018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4856
4857 * dwarf2read.c (process_cu_includes): Remove struct keyword.
4858 * serial.c (serial_interface_lookup): Remove struct keyword.
4859
4360561f
TT
48602018-06-10 Tom Tromey <tom@tromey.com>
4861
4862 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
4863 method.
4864 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
4865 a method.
4866 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
4867 method.
4868 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
4869 "beneath" as a method.
4870 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
4871 Use "beneath" as a method.
4872
d14b92bf
TT
48732018-06-10 Tom Tromey <tom@tromey.com>
4874
4875 * tracefile.c (struct trace_file_writer_deleter): New.
4876 <operator()>: Rename from trace_file_writer_xfree.
4877 (trace_file_writer_up): New typedef.
4878 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
4879
835dcf92
SM
48802018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4881
4882 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
4883 <m_registers, m_register_status>: Change type to
4884 std::unique_ptr.
4885 * regcache.c (reg_buffer::reg_buffer): Use new instead of
4886 XCNEWVEC.
4887
aac0d564
SM
48882018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4889
4890 * common/common-regcache.h (enum register_status): Add
4891 underlying type "signed char".
4892 * regcache.h (reg_buffer) <m_register_status>: Change type to
4893 register_status *.
4894 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
4895 register_status instead of signed char.
4896 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
4897 (reg_buffer::get_register_status): Remove cast.
4898 (readable_regcache::raw_read): Remove cast.
4899 (readable_regcache::cooked_read): Remove cast.
4900
77ad7394
TT
49012018-06-09 Tom Tromey <tom@tromey.com>
4902
4903 * source.c (reverse_search_command, forward_search_command): Use
4904 scoped_fd.
4905
191cca63
TT
49062018-06-09 Tom Tromey <tom@tromey.com>
4907
4908 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
4909 (serial_ops_list): Now static, std::vector.
4910 (serial_interface_lookup, serial_add_interface): Update.
4911
c5d0225d
TT
49122018-06-09 Tom Tromey <tom@tromey.com>
4913
4914 * dwarf2read.c (process_cu_includes): Update.
4915 (process_full_comp_unit): Update.
4916 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
4917 std::vector.
4918
aeab5128
PK
49192018-06-08 Paul Koning <paul_koning@dell.com>
4920
4921 PR gdb/23252
4922
4923 * python/python.c (do_start_initialization):
4924 Avoid call to internal Python API.
4925 (init__gdb_module): New function.
4926
5045b3d7
GB
49272018-06-08 Gary Benson <gbenson@redhat.com>
4928
4929 * linux-thread-db.c (valprint.h): New include.
4930 (struct check_thread_db_info): New structure.
4931 (check_thread_db_on_load, tdb_testinfo): New static globals.
4932 (check_thread_db, check_thread_db_callback): New functions.
4933 (try_thread_db_load_1): Run integrity checks if requested.
4934 (maintenance_check_libthread_db): New function.
4935 (_initialize_thread_db): Register "maint check libthread-db"
4936 and "maint set/show check-libthread-db".
4937 * NEWS: Mention the above new commands.
4938
2f4f025f
TT
49392018-06-08 Tom Tromey <tom@tromey.com>
4940
4941 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
4942 now a method.
4943
343b0027
TT
49442018-06-08 Tom Tromey <tom@tromey.com>
4945
4946 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
4947
8dcc53b3
TT
49482018-06-08 Tom Tromey <tom@tromey.com>
4949
4950 * common/btrace-common.h (struct btrace_data): Add constructor,
4951 destructor, move assignment operator.
4952 <empty, clear, fini>: New methods.
4953 <format>: Initialize.
4954 (btrace_data_init, btrace_data_fini, btrace_data_clear)
4955 (btrace_data_empty): Don't declare.
4956 * common/btrace-common.c (btrace_data_init): Remove.
4957 (btrace_data::fini): Rename from btrace_data_fini.
4958 (btrace_data::empty): Rename from btrace_data_empty.
4959 (btrace_data::clear): Rename from btrace_data_clear. Return
4960 bool.
4961 * btrace.h (make_cleanup_btrace_data): Don't declare.
4962 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
4963 (parse_xml_btrace): Update.
4964 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
4965 (maint_btrace_clear_packet_history_cmd): Update.
4966
a1740ee1
PA
49672018-06-07 Pedro Alves <palves@redhat.com>
4968
4969 * target.h (target_ops) <beneath>: Now a method. All references
4970 updated.
4971 (class target_stack): New.
4972 * target.c (g_target_stack): New.
4973 (g_current_top_target): Delete.
4974 (current_top_target): Get the top target out of g_target_stack.
4975 (target_stack::push, target_stack::unpush): New.
4976 (push_target, unpush_target): Reimplement.
4977 (target_is_pushed): Reimplement in terms of g_target_stack.
4978 (target_ops::beneath, target_stack::find_beneath): New.
4979
d6ca69cd
PA
49802018-06-07 Pedro Alves <palves@redhat.com>
4981
4982 * target.h (find_target_beneath): Delete declaration.
4983 * target.c (find_target_beneath): Delete definition.
4984 * aix-thread.c: All callers of find_target_beneath adjusted to
4985 call target_ops::beneath instead.
4986 * bsd-uthread.c: Likewise.
4987 * linux-thread-db.c: Likewise.
4988 * ravenscar-thread.c: Likewise.
4989 * sol-thread.c: Likewise.
4990 * spu-multiarch.c: Likewise.
4991
b6a8c27b
PA
49922018-06-07 Pedro Alves <palves@redhat.com>
4993
4994 * target.h (target_ops) <beneath>: Now a method. All references
4995 updated.
4996 (target_ops) <m_beneath>: New.
4997 * target.c (target_ops::beneath): New.
4998 * corelow.c: Adjust all references to target_ops::beneath.
4999 * linux-thread-db.c: Likewise.
5000 * make-target-delegates: Likewise.
5001 * record-btrace.c: Likewise.
5002 * record-full.c: Likewise.
5003 * remote.c: Likewise.
5004 * target.c: Likewise.
5005 * target-delegates.c: Regenerate.
5006
8b88a78e
PA
50072018-06-07 Pedro Alves <palves@redhat.com>
5008
5009 * target.h (target_stack): Delete.
5010 (current_top_target): Declare function.
5011 * target.c (target_stack): Delete.
5012 (g_current_top_target): New.
5013 (current_top_target): New function.
5014 * auxv.c: Use current_top_target instead of target_stack
5015 throughout.
5016 * avr-tdep.c: Likewise.
5017 * breakpoint.c: Likewise.
5018 * corefile.c: Likewise.
5019 * elfread.c: Likewise.
5020 * eval.c: Likewise.
5021 * exceptions.c: Likewise.
5022 * frame.c: Likewise.
5023 * gdbarch-selftests.c: Likewise.
5024 * gnu-v3-abi.c: Likewise.
5025 * ia64-tdep.c: Likewise.
5026 * ia64-vms-tdep.c: Likewise.
5027 * infcall.c: Likewise.
5028 * infcmd.c: Likewise.
5029 * infrun.c: Likewise.
5030 * linespec.c: Likewise.
5031 * linux-tdep.c: Likewise.
5032 * minsyms.c: Likewise.
5033 * ppc-linux-nat.c: Likewise.
5034 * ppc-linux-tdep.c: Likewise.
5035 * procfs.c: Likewise.
5036 * regcache.c: Likewise.
5037 * remote.c: Likewise.
5038 * rs6000-tdep.c: Likewise.
5039 * s390-linux-nat.c: Likewise.
5040 * s390-tdep.c: Likewise.
5041 * solib-aix.c: Likewise.
5042 * solib-darwin.c: Likewise.
5043 * solib-dsbt.c: Likewise.
5044 * solib-spu.c: Likewise.
5045 * solib-svr4.c: Likewise.
5046 * solib-target.c: Likewise.
5047 * sparc-tdep.c: Likewise.
5048 * sparc64-tdep.c: Likewise.
5049 * spu-tdep.c: Likewise.
5050 * symfile.c: Likewise.
5051 * symtab.c: Likewise.
5052 * target-descriptions.c: Likewise.
5053 * target-memory.c: Likewise.
5054 * target.c: Likewise.
5055 * target.h: Likewise.
5056 * tracefile-tfile.c: Likewise.
5057 * tracepoint.c: Likewise.
5058 * valops.c: Likewise.
5059 * valprint.c: Likewise.
5060 * value.c: Likewise.
5061 * windows-tdep.c: Likewise.
5062 * mi/mi-main.c: Likewise.
5063
c7110220
TT
50642018-06-07 Tom Tromey <tom@tromey.com>
5065
5066 * valprint.h (build_address_symbolic): Declare.
5067 * printcmd.c (print_address_symbolic): Update.
5068 (build_address_symbolic): Change "name" and "filename" to
5069 std::string.
5070 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5071 Update.
5072 * defs.h (build_address_symbolic): Remove declaration.
5073
63bad7b6
AH
50742018-06-07 Alan Hayward <alan.hayward@arm.com>
5075
5076 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5077 (aarch64_vnv_type): Add function.
5078 (aarch64_pseudo_register_name): Add V regs for SVE.
5079 (aarch64_pseudo_register_type): Likewise.
5080 (aarch64_pseudo_register_reggroup_p): Likewise.
5081 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5082 (aarch64_pseudo_read_value): Add V regs for SVE.
5083 (aarch64_pseudo_write_2): Use V0 offset for SVE
5084 (aarch64_pseudo_write): Add V regs for SVE.
5085 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5086
13e3c608
SDJ
50872018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5088
5089 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5090 (sve_vl_from_vq): Likewise.
5091
c61b06a1
TT
50922018-06-05 Tom Tromey <tom@tromey.com>
5093
5094 * cli/cli-cmds.c (show_version): Update.
5095 * top.c (print_gdb_version): Add "interactive" parameter.
5096 Update.
5097 * main.c (captured_main_1): Update.
5098 * top.h (print_gdb_version): Add "interactive" parameter and a
5099 comment.
5100
115f7325
DM
51012018-06-05 David Malcolm <dmalcolm@redhat.com>
5102
5103 * common/enum-flags.h: Add trailing semicolon to example in
5104 comment.
5105
eb6af809
TT
51062018-06-05 Tom Tromey <tom@tromey.com>
5107
5108 PR cli/12326:
5109 * NEWS: Add entry about pager.
5110 * utils.c (pagination_disabled_for_command): New global.
5111 (prompt_for_continue): Allow "c" response to prompt.
5112 (reinitialize_more_filter): Clear
5113 pagination_disabled_for_command.
5114 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5115
54d343a2
TT
51162018-06-04 Tom Tromey <tom@tromey.com>
5117
5118 * ada-lang.h (ada_lookup_symbol_list): Update.
5119 * ada-lang.c (resolve_subexp): Update.
5120 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5121 parameter.
5122 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5123 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5124 results parameter to std::vector.
5125 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5126 Update.
5127 * ada-exp.y (block_lookup): Update.
5128 (select_possible_type_sym): Change type of syms. Remove nsyms
5129 parameter.
5130 (write_var_or_type, write_name_assoc): Update.
5131
178d6a63
JB
51322018-06-04 Joel Brobecker <brobecker@adacore.com>
5133
5134 * windows-nat.c (windows_nat_target::xfer_partial): Return
5135 TARGET_XFER_E_IO if we need to delegate to the target beneath
5136 but BENEATH is NULL.
5137
baf00c2d
SM
51382018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5139
5140 * Makefile.in (config.status): Add configure.nat as a
5141 dependency.
5142
214b073c
TT
51432018-06-04 Tom Tromey <tom@tromey.com>
5144
5145 * cp-name-parser.y (cpname_state): Add method declarations.
5146 (HANDLE_QUAL): Update.
5147 (cpname_state::d_grab, cpname_state::fill_comp)
5148 (cpname_state::make_operator, cpname_state::make_dtor)
5149 (cpname_state::make_builtin_type, cpname_state::make_name)
5150 (cpname_state::d_qualify, cpname_state::d_int_type)
5151 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5152 (%union): Move earlier.
5153
62b74cb8
AH
51542018-06-04 Alan Hayward <alan.hayward@arm.com>
5155
5156 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5157
3c5cd5c3
AH
51582018-06-04 Alan Hayward <alan.hayward@arm.com>
5159
5160 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5161 (aarch64_pseudo_write_1): Likewise.
5162 (aarch64_pseudo_read_value): Use helper.
5163 (aarch64_pseudo_write): Likewise.
5164
59f413d5
PA
51652018-06-04 Pedro Alves <palves@redhat.com>
5166
5167 * darwin-nat.c (darwin_ops): Delete.
5168 (darwin_attach_pid): Use get_native_target.
5169
1332a140
AH
51702018-06-04 Alan Hayward <alan.hayward@arm.com>
5171
5172 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5173 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5174
ba2d2bb2
AH
51752018-06-04 Alan Hayward <alan.hayward@arm.com>
5176
5177 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5178 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5179 (aarch64_gdbarch_init): Check for SVE.
5180 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5181
51822018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
5183
5184 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5185 * aarch64-tdep.h (aarch64_read_description): Likewise.
5186 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5187 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5188 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5189 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5190 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5191
41c60b4b
SM
51922018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5193
5194 * value.c (value_fetch_lazy_bitfield): New.
5195 (value_fetch_lazy_memory): New.
5196 (value_fetch_lazy_register): New.
5197 (value_fetch_lazy): Factor out to smaller functions.
5198
7b640f72
TT
51992018-06-01 Tom Tromey <tom@tromey.com>
5200
5201 * cp-name-parser.y (backslashable, represented): Now const.
5202
98e69eb3
TT
52032018-06-01 Tom Tromey <tom@tromey.com>
5204
5205 * cp-name-parser.y: Include parser-defs.h.
5206 (parser_fprintf): Remove declaration.
5207
49265499
TT
52082018-06-01 Tom Tromey <tom@tromey.com>
5209
5210 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5211 %parse-param.
5212 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5213 (global_result): Remove globals.
5214 (struct cpname_state): New.
5215 (yyparse): Don't declare.
5216 (yylex, yyerror): Move declarations after %union.
5217 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5218 (make_name): Add state parameter.
5219 Update all callers.
5220 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5221 parameter.
5222 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5223 Update.
5224 (yylex): Add lvalp, state parameters.
5225 (yyerror): Add state parameter.
5226 (cp_demangled_name_to_comp): Update.
5227
55b6c984
TT
52282018-06-01 Tom Tromey <tom@tromey.com>
5229
5230 * cp-name-parser.y (parser_fprintf): Declare.
5231 (GDB_YY_REMAP_PREFIX): Define.
5232 Include yy-remap.h. Don't redefine yy* identifiers.
5233
3513a6bb
TT
52342018-06-01 Tom Tromey <tom@tromey.com>
5235
5236 * python/py-type.c (typy_legacy_template_argument): Update.
5237 * cp-support.h (cp_demangled_name_to_comp): Update.
5238 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5239 parameter to be a "std::string *".
5240 (main): Update.
5241
e9cb46ab
L
52422018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5243
5244 * ada-lex.l: Include "diagnostics.h" instead of
5245 "common/diagnostics.h".
5246 * unittests/environ-selftests.c: Likewise.
5247 * common/diagnostics.h: Moved to ../include.
5248
8e817061
JB
52492018-06-01 Joel Brobecker <brobecker@adacore.com>
5250
5251 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5252 to language_mode_manual while calling breakpoint_re_set_one.
5253
a737d952
TT
52542018-06-01 Tom Tromey <tom@tromey.com>
5255
5256 * valops.c (value_cast_structs, destructor_name_p): Update.
5257 * symtab.c (gdb_mangle_name): Update.
5258 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5259 Update.
5260 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5261 (pascal_object_print_value_fields, pascal_object_print_value):
5262 Update.
5263 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5264 * linespec.c (find_methods): Update.
5265 * gdbtypes.h (type_name_no_tag): Remove.
5266 (type_name_or_error): Rename from type_name_no_tag_or_error.
5267 * gdbtypes.c (type_name_no_tag): Remove.
5268 (type_name_or_error): Rename from type_name_no_tag_or_error.
5269 (lookup_struct_elt_type, check_typedef): Update.
5270 * expprint.c (print_subexp_standard): Update.
5271 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5272 * d-namespace.c (d_lookup_nested_symbol): Update.
5273 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5274 (cp_print_class_member): Update.
5275 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5276 * completer.c (add_struct_fields): Update.
5277 * c-typeprint.c (cp_type_print_derivation_info)
5278 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5279 Update.
5280 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5281 (ada_prefer_type, ada_is_exception_sym): Update.
5282
e86ca25f
TT
52832018-06-01 Tom Tromey <tom@tromey.com>
5284
5285 * valops.c (enum_constant_from_type, value_namespace_elt)
5286 (value_maybe_namespace_elt): Update.
5287 * valarith.c (find_size_for_pointer_math): Update.
5288 * target-descriptions.c (make_gdb_type): Update.
5289 * symmisc.c (print_symbol): Update.
5290 * stabsread.c (define_symbol, read_type)
5291 (complain_about_struct_wipeout, add_undefined_type)
5292 (cleanup_undefined_types_1): Update.
5293 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5294 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5295 (rust_internal_print_type, rust_composite_type)
5296 (rust_evaluate_funcall, rust_evaluate_subexp)
5297 (rust_inclusive_range_type_p): Update.
5298 * python/py-type.c (typy_get_tag): Update.
5299 * p-typeprint.c (pascal_type_print_base): Update.
5300 * mdebugread.c (parse_symbol, parse_type): Update.
5301 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5302 Update.
5303 * guile/scm-type.c (gdbscm_type_tag): Update.
5304 * go-lang.c (sixg_string_p): Update.
5305 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5306 Update.
5307 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5308 (TYPE_TAG_NAME): Remove.
5309 * gdbtypes.c (type_name_no_tag): Simplify.
5310 (check_typedef, check_types_equal, recursive_dump_type)
5311 (copy_type_recursive, arch_composite_type): Update.
5312 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5313 in summary mode when needed.
5314 * eval.c (evaluate_funcall): Update.
5315 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5316 (process_structure_scope, read_enumeration_type)
5317 (read_namespace_type, read_module_type, determine_prefix): Update.
5318 * cp-support.c (inspect_type): Update.
5319 * coffread.c (process_coff_symbol, decode_base_type): Update.
5320 * c-varobj.c (c_is_path_expr_parent): Update.
5321 * c-typeprint.c (c_type_print_base_struct_union): Update.
5322 (c_type_print_base_1): Update. Print struct/class/union/enum in
5323 summary when using C language.
5324 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5325 (gen_maybe_namespace_elt): Update.
5326 * ada-lang.c (ada_type_name): Simplify.
5327 (empty_record, ada_template_to_fixed_record_type_1)
5328 (template_to_static_fixed_type)
5329 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5330
c1ec8cea
TT
53312018-06-01 Tom Tromey <tom@tromey.com>
5332
5333 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5334 c_print_type.
5335 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5336 (c_print_type): Update.
5337 (c_print_type): New overload.
5338 (c_type_print_varspec_prefix, c_type_print_args)
5339 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5340 (c_type_print_base_struct_union, c_type_print_base_1)
5341 (cp_type_print_method_args): Add "language" parameter.
5342 (c_type_print_base): Update.
5343 * c-lang.h (c_print_type): Add new overload.
5344
bc8453a7
TT
53452018-06-01 Tom Tromey <tom@tromey.com>
5346
5347 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5348 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5349
739e8682
AH
53502018-06-01 Alan Hayward <alan.hayward@arm.com>
5351
5352 * aarch64-tdep.c (aarch64_sve_register_names): New const
5353 var.
5354 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5355 (AARCH64_SVE_Z_REGS_NUM): New define.
5356 (AARCH64_SVE_P_REGS_NUM): Likewise.
5357 (AARCH64_SVE_NUM_REGS): Likewise.
5358
8a60efe7
UB
53592018-05-31 Uros Bizjak <ubizjak@gmail.com>
5360
5361 * nat/linux-ptrace.h [__alpha__]
5362 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5363 definitions.
5364
4b2dfa9d
MR
53652018-05-31 Maciej W. Rozycki <macro@mips.com>
5366
5367 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5368 the endianness selected.
5369 * NEWS: Document `set endian auto' mode operation update.
5370
122394f1
AH
53712018-05-31 Alan Hayward <alan.hayward@arm.com>
5372
5373 * Makefile.in: Add new header.
5374 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5375 (sve_vl_from_vg): Likewise.
5376 (sve_vq_from_vl): Likewise.
5377 (sve_vl_from_vq): Likewise.
5378 (sve_vq_from_vg): Likewise.
5379 (sve_vg_from_vq): Likewise.
5380 * configure.nat: Add new c file.
5381 * nat/aarch64-sve-linux-ptrace.c: New file.
5382 * nat/aarch64-sve-linux-ptrace.h: New file.
5383
95228a0d
AH
53842018-05-31 Alan Hayward <alan.hayward@arm.com>
5385
5386 * aarch64-linux-nat.c (aarch64_linux_read_description):
5387 Add parmeter zero.
5388 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5389 Likewise.
5390 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5391 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5392 (aarch64_gdbarch_init): Add parmeter zero.
5393 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5394 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5395 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5396 parmeter.
5397 * doc/gdb.texinfo: Describe SVE feature
5398 * features/aarch64-sve.c: New file.
5399
5969f0db
OJ
54002018-05-31 Omair Javaid <omair.javaid@linaro.org>
5401
5402 PR gdb/23210
5403 * gdbarch.sh (significant_addr_bit): Default to zero when
5404 not set by target architecture.
5405 * gdbarch.c: Re-generated.
5406 * utils.c (address_significant): Update.
5407
61367c61
JB
54082018-05-30 Joel Brobecker <brobecker@adacore.com>
5409
5410 * stack.c (func_command): Remove trailing newline in call to error.
5411
34a79281
SM
54122018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5413
5414 * regcache.h (regcache_raw_collect): Remove, update callers to
5415 use regcache::raw_collect.
5416 * regcache.c (regcache_raw_collect): Remove.
5417
73e1c03f
SM
54182018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5419
5420 * regcache.h (regcache_raw_supply): Remove, update callers to
5421 use detached_regcache::raw_supply.
5422 * regcache.c (regcache_raw_supply): Remove.
5423
e4c4a59b
SM
54242018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5425
5426 * regcache.h (regcache_cooked_write_part): Remove, update
5427 callers to use regcache::cooked_write_part.
5428 * regcache.c (regcache_cooked_write_part): Remove.
5429
73bb0000
SM
54302018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5431
5432 * regcache.h (regcache_cooked_read_part): Remove, update callers
5433 to use readable_regcache::cooked_read_part.
5434 * regcache.c (regcache_cooked_read_part): Remove.
5435
46a45e9d
SM
54362018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5437
5438 * regcache.h (regcache_cooked_read_value): Remove, update
5439 callers to use readable_regcache::cooked_read_value.
5440 * regcache.c (regcache_cooked_read_value): Remove.
5441
b66f5587
SM
54422018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5443
5444 * regcache.h (regcache_cooked_write): Remove, update callers to
5445 use regcache::cooked_write.
5446 * regcache.c (regcache_cooked_write): Remove.
5447
6aa7d724
SM
54482018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5449
5450 * regcache.h (regcache_invalidate): Remove, update callers to
5451 use detached_regcache::invalidate instead.
5452 * regcache.c (regcache_invalidate): Remove.
5453
4f0420fd
SM
54542018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5455
5456 * regcache.h (regcache_raw_write_part): Remove, update callers
5457 to use regcache::raw_write_part instead.
5458 * regcache.c (regcache_raw_write_part): Remove.
5459
502fe83e
SM
54602018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5461
5462 * regcache.h (regcache_raw_read_part): Remove, update callers to
5463 use readable_regcache::raw_read_part instead.
5464 * regcache.c (regcache_raw_read_part): Remove.
5465
dca08e1f
SM
54662018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5467
5468 * regcache.h (regcache_cooked_read): Remove, update callers to
5469 use readable_regcache::cooked_read instead.
5470 * regcache.c (regcache_cooked_read): Remove.
5471
10eaee5f
SM
54722018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5473
5474 * regcache.h (regcache_raw_write): Remove, update callers to use
5475 regcache::raw_write instead.
5476 * regcache.c (regcache_raw_write): Remove.
5477
0b883586
SM
54782018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5479
5480 * regcache.h (regcache_raw_read): Remove, update callers to use
5481 readable_regcache::raw_read instead.
5482 * regcache.c (regcache_raw_read): Remove.
5483
0b47d985
SM
54842018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5485
5486 * regcache.h (regcache_raw_update): Remove, update callers to
5487 use readable_regcache::raw_update instead.
5488 * regcache.c (regcache_raw_update): Remove.
5489
0ec9f114
SM
54902018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5491
5492 * regcache.h (regcache_register_status): Remove, update callers
5493 to use reg_buffer::get_register_status directly instead.
5494 * regcache.c (regcache_register_status): Remove.
5495
222312d3
SM
54962018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5497
5498 * regcache.h (regcache_get_ptid): Remove, update all callers to
5499 call regcache::ptid instead.
5500 * regcache.c (regcache_get_ptid): Remove.
5501
fdbe37e3
SM
55022018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5503
5504 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5505
f7c6f423
PA
55062018-05-30 Pedro Alves <palves@redhat.com>
5507
5508 * common/common-exceptions.h (exception_rethrow): Use
5509 ATTRIBUTE_NORETURN.
5510
52941706
SM
55112018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5512
5513 * breakpoint.c (print_solib_event, check_status_catch_solib):
5514 Remove struct keyword in range-based for loops.
5515 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5516 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5517 Likewise.
5518 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5519 Likewise.
5520 * symfile.c (addr_info_make_relative): Likewise.
5521 * thread.c (value_in_thread_stack_temporaries): Likewise.
5522
bf2977b5
WP
55232018-06-12 Weimin Pan <weimin.pan@oracle.com>
5524
5525 PR gdb/16841
5526 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5527 aggregate type to get its real type before accessing it.
5528
64cc34d8
WP
55292018-05-29 Weimin Pan <weimin.pan@oracle.com>
5530
5531 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5532 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5533 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5534 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5535 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5536 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5537 * printcmd.c (info_address_command): Likewise.
5538
e7ec8713
TT
55392018-05-29 Tom Tromey <tom@tromey.com>
5540
5541 * windows-nat.c (handle_exception): Update fall-through comment.
5542
bcb430e4
TT
55432018-05-29 Tom Tromey <tom@tromey.com>
5544
5545 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5546 (struct program_space) <added_solibs>: Now a std::vector.
5547 * breakpoint.c (print_solib_event): Update.
5548 (check_status_catch_solib): Update.
5549 * progspace.c (clear_program_space_solib_cache): Update.
5550 * solib.c (update_solib_list): Update.
5551
894882e3
TT
55522018-05-29 Tom Tromey <tom@tromey.com>
5553
5554 * python/py-type.c (typy_richcompare): Update.
5555 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5556 * gdbtypes.h (types_deeply_equal): Return bool.
5557 (types_equal): Likewise.
5558 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5559 declare VEC.
5560 (check_types_equal): Change worklist to std::vector. Return
5561 bool.
5562 (struct type_equality_entry): Add constructor.
5563 (compare_maybe_null_strings): Return bool.
5564 (check_types_worklist): Return bool. Change worklist to
5565 std::vector.
5566 (types_deeply_equal): Use std::vector.
5567 (types_equal): Return bool.
5568 (compare_maybe_null_strings): Simplify.
5569
10b2ded4
TT
55702018-05-29 Tom Tromey <tom@tromey.com>
5571
5572 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5573
4f7deebe
TT
55742018-05-29 Tom Tromey <tom@tromey.com>
5575
5576 * objc-lang.h: Don't include cp-support.h.
5577 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5578 declare VEC.
5579
b8283aea
TT
55802018-05-27 Tom Tromey <tom@tromey.com>
5581
5582 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5583
41a883c8
TT
55842018-05-25 Tom Tromey <tom@tromey.com>
5585
5586 * value.c (value::location): Initialize.
5587
bf259e25
TT
55882018-05-25 Tom Tromey <tom@tromey.com>
5589
5590 * dbxread.c (init_bincl_list): Remove.
5591 (bincl_list): Now a std::vector.
5592 (bincls_allocated, next_bincl): Remove.
5593 (free_bincl_list, do_free_bincl_list_cleanup)
5594 (make_cleanup_free_bincl_list): Remove.
5595 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5596 unique_xmalloc_ptr.
5597 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5598 (struct header_file_location): Add constructor.
5599 (add_bincl_to_list): Remove.
5600
d525a99b
TT
56012018-05-25 Tom Tromey <tom@tromey.com>
5602
5603 * tui/tui.c (tui_enable): Update.
5604 * mi/mi-interp.c (mi_interp::init): Update.
5605 * interps.h (class interp) <name>: New method.
5606 <m_name>: Rename from name.
5607 (~scoped_restore_interp): Update.
5608 * interps.c (interp::interp): Update.
5609 (interp_add, interp_set, interp_lookup_existing)
5610 (current_interp_named_p): Update.
5611
da505cff
TT
56122018-05-25 Tom Tromey <tom@tromey.com>
5613
5614 * interps.c (interp_name): Remove.
5615 * mi/mi-interp.c (mi_interp::init): Update.
5616 * interps.h (interp_name): Remove.
5617 (~scoped_restore_interp): Update.
5618 * tui/tui.c (tui_enable): Update.
5619
29f94340
TT
56202018-05-25 Tom Tromey <tom@tromey.com>
5621
5622 * utils.c (fputs_maybe_filtered): Update.
5623 * linespec.c (decode_line_full): Update.
5624 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5625 (mi_print_breakpoint_for_event, mi_solib_loaded)
5626 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5627 (mi_user_selected_context_changed): Update.
5628 * mi/mi-main.c (mi_execute_command): Update.
5629 * cli/cli-script.c (execute_control_command): Update.
5630 * python/python.c (execute_gdb_command): Update.
5631 * solib.c (info_sharedlibrary_command): Update.
5632 * interps.c (interp_ui_out): Remove.
5633 * interps.h (interp_ui_out): Remove.
5634
716b8bc5
TT
56352018-05-25 Tom Tromey <tom@tromey.com>
5636
5637 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5638 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5639 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5640
753ff9bd
TT
56412018-05-25 Tom Tromey <tom@tromey.com>
5642
5643 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5644 * interps.c (interp_exec): Use scoped_restore.
5645
5ca3b260
TT
56462018-05-25 Tom Tromey <tom@tromey.com>
5647
5648 * remote.c (remote_target::remote_file_get): Use
5649 gdb::byte_vector.
5650 (remote_target::remote_file_put): Likewise.
5651
3173aa2f
TT
56522018-05-25 Tom Tromey <tom@tromey.com>
5653
5654 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5655 a std::string.
5656 (get_pe_section_index, add_pe_exported_sym): Update.
5657 (read_pe_exported_syms): Use gdb::def_vector.
5658
09a5e1b5
TT
56592018-05-25 Tom Tromey <tom@tromey.com>
5660
5661 * frame.c (remove_prev_frame): Remove.
5662 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5663
d8dab6c3
MR
56642018-05-25 Maciej W. Rozycki <macro@mips.com>
5665
5666 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5667 Remove prototypes.
5668 * mips-linux-nat.c (supply_fpregset): Always call
5669 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5670 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5671 `mips_fill_fpregset'.
5672 * mips-linux-tdep.c (mips_supply_fpregset)
5673 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5674 (mips_fill_fpregset_wrapper): Remove functions.
5675 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5676 (mips_linux_fpregset): Remove variable.
5677 (mips_linux_iterate_over_regset_sections): Use
5678 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5679 (mips_linux_o32_sigframe_init): Remove comment.
5680
3c69da40
PA
56812018-05-25 Pedro Alves <palves@redhat.com>
5682
5683 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5684 (struct readahead_cache, struct packet_reg, struct
5685 remote_arch_state, class remote_state): Move higher up in the
5686 file.
5687 (remote_target::m_remote_state): Now an object instead of a pointer.
5688 (remote_target::get_remote_state): Adjust.
5689
39f0c204
AB
56902018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5691
5692 * stack.c (select_and_print_frame): Delete.
5693 (struct function_bounds): Move struct within function.
5694 (func_command): Most content moved into new function
5695 find_frame_for_function, use new function, print result, add
5696 function comment.
5697 (find_frame_for_function): New function, now returns a result.
5698
d392224a
PW
56992018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5700
5701 * stack.c (iterate_over_block_arg_vars): Fix comment.
5702 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5703
45f25d6c
AB
57042018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5705
5706 PR gdb/23203
5707 * frame.c
5708 (scoped_restore_selected_frame::scoped_restore_selected_frame):
5709 Define.
5710 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5711 Define.
5712 * frame.h (class scoped_restore_selected_frame): New class.
5713 * stack.c (print_frame_local_vars): Remove catching and rethrowing
5714 of any exception, use scoped_restore_selected_frame to restore the
5715 frame instead.
5716
da05d921
PA
57172018-05-24 Pedro Alves <palves@redhat.com>
5718
5719 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5720 override.
5721
a8be540e
TT
57222018-05-23 Tom Tromey <tom@tromey.com>
5723
5724 * complaints.c (struct complaints): Remove.
5725 (symfile_complaint_book): Remove.
5726 (series): New global.
5727 (complaint_internal): Update.
5728 (clear_complaints): Update.
5729
ff1cf532
TT
57302018-05-23 Tom Tromey <tom@tromey.com>
5731
5732 * complaints.c (counters): New global.
5733 (struct complain): Remove.
5734 (struct complaints) <root>: Remove.
5735 (complaint_sentinel): Remove.
5736 (symfile_complaint_book): Update.
5737 (find_complaint) Remove.
5738 (complaint_internal, clear_complaints): Update.
5739
7ff88174
TT
57402018-05-23 Tom Tromey <tom@tromey.com>
5741
5742 * complaints.c (struct complain) <file, line>: Remove.
5743 (find_complaint): Remove file, line parameters.
5744 (complaint_internal): Update.
5745
de54e1a5
TT
57462018-05-23 Tom Tromey <tom@tromey.com>
5747
5748 * complaints.c (vcomplaint): Remove.
5749 (complaint_internal) Merge in contents of vcomplaint.
5750
2ac237e5
TT
57512018-05-23 Tom Tromey <tom@tromey.com>
5752
5753 * complaints.c (struct complaints) <explanation>: Remove.
5754 (symfile_explanations): Remove.
5755 (symfile_complaint_book): Update.
5756 (vcomplaint): Update.
5757 (struct explanation): Remove.
5758
b98664d3
TT
57592018-05-23 Tom Tromey <tom@tromey.com>
5760
5761 * complaints.c (symfile_complaints): Remove.
5762 (complaint_internal): Remove "complaints" parameter.
5763 (clear_complaints, vcomplaint): Remove "c" parameter.
5764 (get_complaints): Remove.
5765 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5766 (dwarf2_debug_line_missing_file_complaint)
5767 (dwarf2_debug_line_missing_end_sequence_complaint)
5768 (dwarf2_complex_location_expr_complaint)
5769 (dwarf2_const_value_length_mismatch_complaint)
5770 (dwarf2_section_buffer_overflow_complaint)
5771 (dwarf2_macro_malformed_definition_complaint)
5772 (dwarf2_invalid_attrib_class_complaint)
5773 (create_addrmap_from_index, dw2_symtab_iter_next)
5774 (dw2_expand_marked_cus)
5775 (dw2_debug_names_iterator::find_vec_in_debug_names)
5776 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5777 (create_debug_type_hash_table, init_cutu_and_read_dies)
5778 (partial_die_parent_scope, add_partial_enumeration)
5779 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5780 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5781 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5782 (create_cus_hash_table, create_dwp_hash_table)
5783 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5784 (dwarf2_rnglists_process, dwarf2_ranges_process)
5785 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5786 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5787 (handle_struct_member_die, process_structure_scope)
5788 (read_array_type, read_common_block, read_module_type)
5789 (read_tag_pointer_type, read_typedef, read_base_type)
5790 (read_subrange_type, load_partial_dies, partial_die_info::read)
5791 (partial_die_info::read, partial_die_info::read)
5792 (partial_die_info::read, read_checked_initial_length_and_offset)
5793 (dwarf2_string_attr, read_formatted_entries)
5794 (dwarf_decode_line_header)
5795 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5796 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5797 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5798 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5799 (get_signatured_type, get_DW_AT_signature_type)
5800 (decode_locdesc, file_file_name, consume_improper_spaces)
5801 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5802 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5803 (dwarf2_symbol_mark_computed, set_die_type)
5804 (read_attribute_value): Update.
5805 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5806 Update.
5807 * dbxread.c (unknown_symtype_complaint)
5808 (lbrac_mismatch_complaint, repeated_header_complaint)
5809 (set_namestring, function_outside_compilation_unit_complaint)
5810 (read_dbx_symtab, process_one_symbol): Update.
5811 * gdbtypes.c (stub_noname_complaint): Update.
5812 * windows-nat.c (handle_unload_dll): Update.
5813 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5814 (decode_base_type): Update.
5815 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5816 (eb_complaint, record_include_begin, record_include_end)
5817 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5818 (process_xcoff_symbol, read_symbol)
5819 (function_outside_compilation_unit_complaint)
5820 (scan_xcoff_symtab): Update.
5821 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5822 * buildsym.c (finish_block_internal, make_blockvector)
5823 (end_symtab_get_static_block, augment_type_symtab): Update.
5824 * dtrace-probe.c (dtrace_process_dof)
5825 (dtrace_static_probe_ops::get_probes): Update.
5826 * complaints.h (struct complaint): Don't declare.
5827 (symfile_complaints): Remove.
5828 (complaint_internal): Remove "complaints" parameter.
5829 (complaint): Likewise.
5830 (clear_complaints): Likewise.
5831 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5832 (reread_symbols): Update.
5833 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5834 (dwarf2_frame_cache, decode_frame_entry): Update.
5835 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5836 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5837 (info_selectors_command): Update.
5838 * macrotab.c (macro_include, check_for_redefinition)
5839 (macro_undef): Update.
5840 * objfiles.c (filter_overlapping_sections): Update.
5841 * stabsread.c (invalid_cpp_abbrev_complaint)
5842 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5843 (define_symbol, error_type, read_type, rs6000_builtin_type)
5844 (stabs_method_name_from_physname, read_member_functions)
5845 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5846 (attach_fields_to_type, complain_about_struct_wipeout)
5847 (read_range_type, read_args, common_block_start)
5848 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
5849 Update.
5850 * mdebugread.c (index_complaint, unknown_ext_complaint)
5851 (basic_type_complaint, bad_tag_guess_complaint)
5852 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
5853 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
5854 (parse_procedure, parse_lines)
5855 (function_outside_compilation_unit_complaint)
5856 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
5857 (bad_tag_guess_complaint, reg_value_complaint): Update.
5858 * cp-support.c (demangled_name_complaint): Update.
5859 * macroscope.c (sal_macro_scope): Update.
5860 * dwarf-index-write.c (class debug_names): Update.
5861
4e9668d0
TT
58622018-05-23 Tom Tromey <tom@tromey.com>
5863
5864 * complaints.c (clear_complaints): Remove "noisy" parameter.
5865 * complaints.h (clear_complaints): Update.
5866 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5867 (reread_symbols): Update.
5868
43ba33c7
TT
58692018-05-23 Tom Tromey <tom@tromey.com>
5870
5871 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
5872 SUBSEQUENT_MESSAGE.
5873 (vcomplaint, clear_complaints): Update.
5874 (symfile_explanations): Remove some messages.
5875
2b9496b2
TT
58762018-05-23 Tom Tromey <tom@tromey.com>
5877
5878 * complaints.c (internal_complaint): Remove.
5879 * complaints.h (internal_complaint): Remove.
5880
35f1fea3
MR
58812018-05-22 Maciej W. Rozycki <macro@mips.com>
5882
5883 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
5884
6b8edb51
PA
58852018-05-22 Pedro Alves <palves@redhat.com>
5886
5887 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
5888 (remote_fileio_badfd, remote_fileio_return_errno)
5889 (remote_fileio_return_success, remote_fileio_func_open)
5890 (remote_fileio_func_open, remote_fileio_func_close)
5891 (remote_fileio_func_read, remote_fileio_func_write)
5892 (remote_fileio_func_lseek, remote_fileio_func_rename)
5893 (remote_fileio_func_unlink, remote_fileio_func_stat)
5894 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5895 (remote_fileio_func_isatty, remote_fileio_func_system): Add
5896 remote_target parameter.
5897 (remote_fio_func_map) <func>: Add remote_target parameter.
5898 (do_remote_fileio_request, remote_fileio_request):
5899 * remote-fileio.h (remote_fileio_request):
5900 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
5901 remote_target parameter.
5902 (remote_notif_process, handle_notification): Adjust to pass down
5903 the remote.
5904 (remote_notif_state_allocate): Add remote_target parameter. Save
5905 it.
5906 * remote-notif.h (struct remote_target): Forward declare.
5907 (struct notif_client) <parse, ack, can_get_pending_events>: Add
5908 remote_target parameter.
5909 (struct remote_notif_state) <remote>: New field.
5910 (remote_notif_ack, remote_notif_parse): Add remote_target
5911 parameter.
5912 (remote_notif_state_allocate, remote_notif_state_allocate): Add
5913 remote_target parameter.
5914 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
5915 (threads_listing_context, rmt_thread_action, protocol_feature)
5916 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
5917 (packet_result, struct threads_listing_context, remote_state):
5918 Move definitions and declarations higher up.
5919 (remote_target) <~remote_target>: Declare.
5920 (remote_download_command_source, remote_file_put, remote_file_get)
5921 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
5922 (remote_hostio_pread_vFile, remote_hostio_send_command)
5923 (remote_hostio_set_filesystem, remote_hostio_open)
5924 (remote_hostio_close, remote_hostio_unlink, remote_state)
5925 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
5926 (get_memory_write_packet_size, get_memory_read_packet_size)
5927 (append_pending_thread_resumptions, remote_detach_1)
5928 (append_resumption, remote_resume_with_vcont)
5929 (add_current_inferior_and_thread, wait_ns, wait_as)
5930 (process_stop_reply, remote_notice_new_inferior)
5931 (process_initial_stop_replies, remote_add_thread)
5932 (btrace_sync_conf, remote_btrace_maybe_reopen)
5933 (remove_new_fork_children, kill_new_fork_children)
5934 (discard_pending_stop_replies, stop_reply_queue_length)
5935 (check_pending_events_prevent_wildcard_vcont)
5936 (discard_pending_stop_replies_in_queue, stop_reply)
5937 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
5938 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
5939 (remote_interrupt_as, remote_interrupt_ns)
5940 (remote_get_noisy_reply, remote_query_attached)
5941 (remote_add_inferior, remote_current_thread, get_current_thread)
5942 (set_thread, set_general_thread, set_continue_thread)
5943 (set_general_process, write_ptid)
5944 (remote_unpack_thread_info_response, remote_get_threadinfo)
5945 (parse_threadlist_response, remote_get_threadlist)
5946 (remote_threadlist_iterator, remote_get_threads_with_ql)
5947 (remote_get_threads_with_qxfer)
5948 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
5949 (get_offsets, remote_check_symbols, remote_supported_packet)
5950 (remote_query_supported, remote_packet_size)
5951 (remote_serial_quit_handler, remote_detach_pid)
5952 (remote_vcont_probe, remote_resume_with_hc)
5953 (send_interrupt_sequence, interrupt_query)
5954 (remote_notif_get_pending_events, fetch_register_using_p)
5955 (send_g_packet, process_g_packet, fetch_registers_using_g)
5956 (store_register_using_P, store_registers_using_G)
5957 (set_remote_traceframe, check_binary_download)
5958 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
5959 (remote_xfer_live_readonly_partial, remote_read_bytes)
5960 (remote_send_printf, remote_flash_write, readchar)
5961 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
5962 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
5963 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
5964 (extended_remote_disable_randomization, extended_remote_run)
5965 (send_environment_packet, extended_remote_environment_support)
5966 (extended_remote_set_inferior_cwd, remote_write_qxfer)
5967 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
5968 (packet_command): Now methods of ...
5969 (remote_target): ... this class.
5970 (m_remote_state) <remote_target>: New field.
5971 (struct remote_state) <stop_reply_queue,
5972 remote_async_inferior_event_token, wait_forever_enabled_p>: New
5973 fields.
5974 (remote_state::remote_state): Allocate stop_reply_queue.
5975 (remote_state): Delete global.
5976 (get_remote_state_raw): Delete.
5977 (remote_target::get_remote_state): Allocate m_remote_state on
5978 demand.
5979 (get_current_remote_target): New.
5980 (remote_ops, extended_remote_ops): Delete.
5981 (wait_forever_enabled_p, remote_async_inferior_event_token):
5982 Delete, moved to struct remote_state.
5983 (remote_target::close): Delete self. Destruction bits split to
5984 ...
5985 (remote_target::~remote_target): ... this.
5986 (show_memory_packet_size): Adjust to use
5987 get_current_remote_target.
5988 (struct protocol_feature) <func>: Add remote_target parameter.
5989 All callers adjusted.
5990 (curr_quit_handler_target): New.
5991 (remote_serial_quit_handler): Reimplement.
5992 (remote_target::open_1): Adjust to use get_current_remote_target.
5993 Heap-allocate remote_target/extended_remote_target instances.
5994 (vcont_builder::vcont_builder): Add remote_target parameter, and
5995 save it in m_remote. All callers adjusted.
5996 (vcont_builder::m_remote): New field.
5997 (vcont_builder::restart, vcont_builder::flush)
5998 (vcont_builder::push_action): Use it.
5999 (remote_target::commit_resume): Use it.
6000 (struct queue_iter_param) <remote>: New field.
6001 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6002 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6003 (check_pending_event_prevents_wildcard_vcont_callback)
6004 (remote_target::check_pending_events_prevent_wildcard_vcont)
6005 (remote_target::discard_pending_stop_replies)
6006 (remote_target::discard_pending_stop_replies_in_queue)
6007 (remote_target::remote_notif_remove_queued_reply): Fill in
6008 'remote' field.
6009 (remote_notif_get_pending_events): New.
6010 (remote_target::readchar, remote_target::remote_serial_write):
6011 Save/restore curr_quit_handler_target.
6012 (putpkt): New.
6013 (kill_new_fork_children): Fill in 'remote' field.
6014 (packet_command): Use get_current_remote_target, defer to
6015 remote_target method of same name.
6016 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6017 parameter, and save it in m_remote. All callers adjusted.
6018 (scoped_remote_fd::release): Use m_remote.
6019 (scoped_remote_fd::m_remote): New field.
6020 (remote_file_put, remote_file_get, remote_file_delete): Use
6021 get_current_remote_target, defer to remote_target method of same
6022 name.
6023 (remote_btrace_reset): Add remote_state paremeter. Update all
6024 callers.
6025 (remote_async_inferior_event_handler). Pass down 'data'.
6026 (remote_new_objfile): Use get_current_remote_target.
6027 (remote_target::vcont_r_supported): New.
6028 (set_range_stepping): Use get_current_remote_target and
6029 remote_target::vcont_r_supported.
6030 (_initialize_remote): Don't allocate 'remote_state' and
6031 'stop_reply_queue' globals.
6032 * remote.h (struct remote_target): Forward declare.
6033 (getpkt, putpkt, remote_notif_get_pending_events): Add
6034 'remote_target' parameter.
6035
f5db4863
PA
60362018-05-22 Pedro Alves <palves@redhat.com>
6037
6038 * remote.c (vcont_builder): Now a class. Make all data members
6039 private.
6040 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6041 Declare methods.
6042 (vcont_builder_restart): Rename to ...
6043 (vcont_builder::restart): ... this.
6044 (vcont_builder_flush): Rename to ...
6045 (vcont_builder::flush): ... this.
6046 (vcont_builder_push_action): Rename to ...
6047 (vcont_builder::push_action): ... this.
6048 (remote_target::commit_resume): Adjust.
6049
cc0be08f
PA
60502018-05-22 Pedro Alves <palves@redhat.com>
6051
6052 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6053 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6054 (get_fixed_memory_packet_size): New.
6055 (get_memory_packet_size): Use it.
6056 (set_memory_packet_size): Don't override the config size with
6057 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6058 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6059 Don't refer to get_memory_packet_size if not connected to a remote
6060 target. Show "(default)" if configured size is 0.
6061
9607784a
PA
60622018-05-22 Pedro Alves <palves@redhat.com>
6063
6064 * remote.c (remote_target::mourn_inferior): Move
6065 discard_pending_stop_replies call here from ...
6066 (_initialize_remote): ... here.
6067
0e9a6b2f
PA
60682018-05-22 Pedro Alves <palves@redhat.com>
6069
6070 * remote.c (compare_section_command): Remove set_general_process
6071 call.
6072
43c3a0e4
PA
60732018-05-22 Pedro Alves <palves@redhat.com>
6074
6075 * remote.c (struct packet_reg, struct remote_arch_state):
6076 Move higher up in the file.
6077 (remote_state) <m_arch_states>: Store remote_arch_state values
6078 instead of remote_arch_state pointers.
6079 (remote_state::get_remote_arch_state): Adjust.
6080
9d6eea31
PA
60812018-05-22 Pedro Alves <palves@redhat.com>
6082
6083 * remote.c: Include <unordered_map>.
6084 (remote_state): Now a class.
6085 (remote_state) <get_remote_arch_state>: Declare method.
6086 <get_remote_arch_state>: New field.
6087 (remote_arch_state) <remote_arch_state>: Declare ctor.
6088 <regs>: Now a unique_ptr.
6089 (remote_gdbarch_data_handle): Delete.
6090 (get_remote_arch_state): Delete.
6091 (remote_state::get_remote_arch_state): New.
6092 (get_remote_state): Adjust to call remote_state's
6093 get_remote_arch_state method.
6094 (init_remote_state): Delete, bits factored out to ...
6095 (remote_arch_state::remote_arch_state): ... this new method.
6096 (get_remote_packet_size, get_memory_packet_size)
6097 (process_g_packet, remote_target::fetch_registers)
6098 (remote_target::prepare_to_store, store_registers_using_G)
6099 (remote_target::store_registers, remote_target::get_trace_status):
6100 Adjust to call remote_state's method.
6101 (_initialize_remote): Remove reference to
6102 remote_gdbarch_data_handle.
6103
dd194f6b
PA
61042018-05-22 Pedro Alves <palves@redhat.com>
6105
6106 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6107 pread>: New method declarations.
6108 (remote_target::open_1): Adjust.
6109 (readahead_cache_invalidate): Rename to ...
6110 (readahead_cache::invalidate): ... this, and adjust to be a class
6111 method.
6112 (readahead_cache_invalidate_fd): Rename to ...
6113 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6114 class method.
6115 (remote_hostio_pwrite): Adjust.
6116 (remote_hostio_pread_from_cache): Rename to ...
6117 (readahead_cache::pread): ... this, and adjust to be a class
6118 method.
6119 (remote_hostio_close): Adjust.
6120
440b7aec
PA
61212018-05-22 Pedro Alves <palves@redhat.com>
6122
6123 * remote.c (remote_hostio_close_cleanup): Delete.
6124 (class scoped_remote_fd): New.
6125 (remote_file_put, remote_file_get): Use it.
6126
de44f5a7
PA
61272018-05-22 Pedro Alves <palves@redhat.com>
6128
6129 (struct vCont_action_support): Use bool and initialize all fields.
6130 (struct readahead_cache): Initialize all fields.
6131 (remote_state): Use bool and initialize all fields.
6132 (remote_state::remote_state, remote_state::~remote_state): New.
6133 (new_remote_state): Delete.
6134 (_initialize_remote): Use new to allocate remote_state.
6135
b1b60145
PA
61362018-05-22 Pedro Alves <palves@redhat.com>
6137 張俊芝 <zjz@zjz.name>
6138
6139 PR gdb/22973
6140 * c-exp.y: Include "c-support.h".
6141 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6142 of tolower. Use c_ident_is_alpha to scan names.
6143 * c-lang.c: Include "c-support.h".
6144 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6145 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6146 * c-support.h: New file, with bits factored out from ...
6147 * cp-name-parser.y: ... this file.
6148 Include "c-support.h".
6149 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6150 c-support.h and renamed.
6151 (symbol_end, yylex): Adjust.
6152
0ec848ad
PFC
61532018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6154
6155 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6156 parameter type to CORE_ADDR.
6157 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6158 parameter type in declaration to CORE_ADDR.
6159 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6160 target_auxv_search to get AT_HWCAP and use the result to get the
6161 target description.
6162 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6163 to CORE_ADDR. Remove the cast of the return value to unsigned
6164 long. Fix error predicate of target_auxv_search.
6165 (ppc_linux_nat_target::read_description): Change the type of the
6166 hwcap variable to CORE_ADDR.
6167
0fb2aaa1
PFC
61682018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6169
6170 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6171 if the size of fpscr is larger than 32 bits.
6172
2c3305f6
PFC
61732018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6174
6175 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6176 (ppc32_linux_vsxregmap): New global.
6177 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6178 regcache_supply_regset, and regcache_collect_regset.
6179 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6180 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6181 (fetch_vsx_register, store_vsx_register): Remove.
6182 (fetch_vsx_registers): Add regno parameter. Get regset using
6183 ppc_linux_vsxregset. Use regset to supply registers.
6184 (store_vsx_registers): Add regno parameter. Get regset using
6185 ppc_linux_vsxregset. Use regset to collect registers.
6186 (fetch_register): Call fetch_vsx_registers instead of
6187 fetch_vsx_register.
6188 (store_register): Call store_vsx_registers instead of
6189 store_vsx_register.
6190 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6191 new regno parameter.
6192 (store_ppc_registers): Call store_vsx_registers with -1 for the
6193 new regno parameter.
6194 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6195 (ppc_collect_vsxregset): Remove.
6196
1d75a658
PFC
61972018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6198
6199 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6200 offset fields.
6201 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6202 for vector register offset fields.
6203 (ppc64_fbsd_reg_offsets): Likewise.
6204 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6205 to vector register offset fields.
6206 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6207 to vector register offset fields.
6208 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6209 vector register offset fields.
6210 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6211 initializers for vector register offset fields.
6212 (rs6000_aix64_reg_offsets): Likewise.
6213 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6214 (ppc_supply_vrregset): Remove.
6215 (ppc_collect_vrregset): Remove.
6216 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6217 (ppc_linux_vrregset) : New function.
6218 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6219 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6220 (ppc32_linux_vrregset): Remove.
6221 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6222 and use result instead of ppc32_linux_vrregset.
6223 (ppc32_linux_reg_offsets): Remove initializers for vector register
6224 offset fields.
6225 (ppc64_linux_reg_offsets): Likewise.
6226 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6227 * ppc-linux-nat.c: Include regset.h.
6228 (gdb_vrregset_t): Adjust comment to account for little-endian
6229 mode.
6230 (supply_vrregset, fill_vrregset): Remove.
6231 (fetch_altivec_register, store_altivec_register): Remove.
6232 (fetch_altivec_registers): Add regno parameter. Get regset using
6233 ppc_linux_vrregset. Use regset to supply registers.
6234 (store_altivec_registers): Add regno parameter. Get regset using
6235 ppc_linux_vrregset. Use regset to collect registers.
6236 (fetch_register): Call fetch_altivec_registers instead of
6237 fetch_altivec_register.
6238 (store_register): Call store_altivec_registers instead of
6239 store_altivec_register.
6240 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6241 the new regno parameter.
6242 (store_ppc_registers): Call store_altivec_registers with -1 for
6243 the new regno parameter.
6244
d078308a
PFC
62452018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6246
6247 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6248 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6249 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6250 (gdb_vrregset_t): Change array type size to
6251 PPC_LINUX_SIZEOF_VRREGSET.
6252 (gdb_vsxregset_t): Change array type size to
6253 PPC_LINUX_SIZEOF_VSXREGSET.
6254 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6255 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6256 PPC_LINUX_SIZEOF_VSXREGSET.
6257
2e077f5e
PFC
62582018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6259
6260 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6261 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6262 nat/ppc-linux.c.
6263 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6264 ppc_linux_target_wordsize with tid.
6265 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6266 wordsize with tid.
6267 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6268 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6269 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6270 tid parameter. Remove static specifier.
6271 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6272 (ppc_linux_target_wordsize): New declaration.
6273
bd64614e
PFC
62742018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6275
6276 * arch/ppc-linux-common.c: New file.
6277 * arch/ppc-linux-common.h: New file.
6278 * arch/ppc-linux-tdesc.h: New file.
6279 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6280 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6281 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6282 arch/ppc-linux-tdesc.h.
6283 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6284 arch/ppc-linux-tdesc.h.
6285 (ppc_linux_nat_target::read_description): Remove target
6286 description matching code. Fill a ppc_linux_features struct and
6287 call ppc_linux_match_description with it. Move comment about ISA
6288 2.05 to ppc-linux-common.c.
6289 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6290 arch/ppc-linux-tdesc.h.
6291 (ppc_linux_core_read_description): Remove target description
6292 matching code. Fill a ppc_linux_features struct and call
6293 ppc_linux_match_description with it.
6294 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6295 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6296 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6297 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6298 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6299 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6300 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6301 (tdesc_powerpc_e500l): Remove.
6302
241db429
JB
63032018-05-22 Joel Brobecker <brobecker@adacore.com>
6304
6305 * ada-lang.c (catch_assert_command): Pass empty string instead
6306 of NULL for excep_string argument.
6307
75d74cca
MR
63082018-05-22 Maciej W. Rozycki <macro@mips.com>
6309
6310 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6311 the width of the requested register exceeds the width of the
6312 `ptrace' data type.
6313
122b53ea
TT
63142018-05-21 Tom Tromey <tom@tromey.com>
6315
6316 * printcmd.c (output_command): Remove.
6317 (output_command_const): Rename to output_command.
6318 * valprint.h (output_command): Rename from output_command_const.
6319 * tracepoint.c (trace_dump_actions): Call output_command.
6320
bc18fbb5
TT
63212018-05-21 Tom Tromey <tom@tromey.com>
6322
6323 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6324 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6325 * ada-lang.h (create_ada_exception_catchpoint): Update.
6326 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6327 std::string.
6328 (create_excep_cond_exprs, ~ada_catchpoint)
6329 (should_stop_exception, print_one_exception)
6330 (print_mention_exception, print_recreate_exception): Update.
6331 (ada_get_next_arg): Remove.
6332 (catch_ada_exception_command_split): Use std::string. Change type
6333 of "excep_string", "cond_string".
6334 (catch_ada_exception_command): Update.
6335 (create_ada_exception_catchpoint): Change type of excep_string.
6336 (ada_exception_sal): Remove excep_string parameter.
6337 (~ada_catchpoint): Remove.
6338
790217f6
TT
63392018-05-21 Tom Tromey <tom@tromey.com>
6340
6341 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6342 cleanup.
6343
6f46ac85
TT
63442018-05-21 Tom Tromey <tom@tromey.com>
6345
6346 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6347 Return unique_xmalloc_ptr.
6348 (print_it_exception): Update.
6349
15b6611c
TT
63502018-05-21 Tom Tromey <tom@tromey.com>
6351
6352 * tracepoint.c (trace_dump_actions): Use std::string.
6353
c0c9f665
TT
63542018-05-21 Tom Tromey <tom@tromey.com>
6355
6356 * symfile.c (reread_symbols): Use std::string for original_name.
6357
22ca247e
TT
63582018-05-21 Tom Tromey <tom@tromey.com>
6359
6360 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6361 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6362 constructor.
6363
184cde75
SM
63642018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6365
6366 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6367 instance to...
6368 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6369 * objfiles.c (get_objfile_bfd_data): Allocate
6370 objfile_per_bfd_storage with obstack_new when allocating on
6371 obstack.
6372
e39db4db
SM
63732018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6374
6375 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6376 OBSTACK_ZALLOC.
6377 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6378 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6379 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6380 (add_pending): Likewise.
6381 (parse_symbol): Likewise.
6382 (parse_partial_symbols): Likewise.
6383 (psymtab_to_symtab_1): Likewise.
6384 (new_psymtab): Likewise.
6385 (elfmdebug_build_psymtabs): Likewise.
6386 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6387 * objfiles.c (get_objfile_bfd_data): Likewise.
6388 (objfile_register_static_link): Likewise.
6389 * psymtab.c (allocate_psymtab): Likewise.
6390 * stabsread.c (read_member_functions): Likewise.
6391 * xcoffread.c (xcoff_end_psymtab): Likewise.
6392
284a0e3c
SM
63932018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6394
6395 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6396 compiler supports std::is_trivially_constructible.
6397 * common/poison.h: Include obstack.h.
6398 (IsMallocable): Define to is_trivially_constructible if the
6399 compiler supports it, define to true_type otherwise.
6400 (xobnew): New.
6401 (XOBNEW): Redefine.
6402 (xobnewvec): New.
6403 (XOBNEWVEC): Redefine.
6404 * gdb_obstack.h (obstack_zalloc): New.
6405 (OBSTACK_ZALLOC): Redefine.
6406 (obstack_calloc): New.
6407 (OBSTACK_CALLOC): Redefine.
6408 (obstack_new): New.
6409 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6410 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6411 gdbarch.c.
6412 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6413 obstack_calloc/obstack_zalloc.
6414 (gdbarch_obstack_zalloc): Remove.
6415 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6416
59f66be3
PW
64172018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6418
6419 * stack.c (backtrace_command_1): Remove useless variable int i.
6420
50c65c2d
PW
64212018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6422
6423 * stack.c (print_frame_info): Fix comment.
6424
7ff8cb8c
TT
64252018-05-18 Tom Tromey <tom@tromey.com>
6426
6427 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6428 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6429 (~dwarf2_per_objfile): Update
6430 (dwarf2_get_dwz_file): Use new.
6431 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6432 unique_ptr.
6433
400174b1
TT
64342018-05-18 Tom Tromey <tom@tromey.com>
6435
6436 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6437 unique_ptr.
6438 * dwarf2read.c (struct dwp_file): Add constructor and
6439 initializers.
6440 (open_and_init_dwp_file): Return a unique_ptr.
6441 (dwarf2_per_objfile, create_dwp_hash_table)
6442 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6443 (lookup_dwo_unit_in_dwp): Update.
6444 (open_and_init_dwp_file, get_dwp_file): Update.
6445
3063847f
TT
64462018-05-18 Tom Tromey <tom@tromey.com>
6447
6448 * dwarf2read.c (dwarf2_per_objfile): Update.
6449 (struct mapped_index): Add initializers.
6450 (dwarf2_read_index): Use new.
6451 (dw2_symtab_iter_init): Update.
6452 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6453 unique_ptr.
6454
d3d02dee
SM
64552018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6456
6457 * dwarf2read.c (mapped_index) <total_size>: Remove.
6458
1d143c36
SM
64592018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6460
6461 * unittests/format_pieces-selftests.c (test_format_specifier):
6462 Add ARI comments.
6463
ce1e8424
TT
64642018-05-18 Tom Tromey <tom@tromey.com>
6465
6466 * c-typeprint.c (maybe_print_hole): New function.
6467 (c_print_type_struct_field_offset): Update.
6468 (c_type_print_base_struct_union): Call maybe_print_hole.
6469
ddfe970e
KS
64702018-05-17 Keith Seitz <keiths@redhat.com>
6471
6472 * breakpoint.c (build_bpstat_chain): New function, moved from
6473 bpstat_stop_status.
6474 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6475 If no stop chain is passed, call build_bpstat_chain to build it.
6476 * breakpoint.h (build_bpstat_chain): Declare.
6477 (bpstat_stop_status): Move documentation here from breakpoint.c.
6478 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6479 build the stop chain and pass it to skip_inline_frames.
6480 Pass this stop chain to bpstat_stop_status.
6481 * inline-frame.c: Include breakpoint.h.
6482 (stopped_by_user_bp_inline_frame): New function.
6483 (skip_inline_frames): Add parameter `stop_chain'.
6484 Move documention to inline-frame.h.
6485 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6486 whether the frame should be elided.
6487 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6488 Add moved documentation and update for new parameter.
6489
b17992c1
SM
64902018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6491
6492 PR cli/14975
6493 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6494 unittests/format_pieces-selftests.c.
6495 * common/format.h (format_piece) <operator==>: New.
6496 (format_pieces) <operator[]>: Remove.
6497 * common/format.c (format_pieces::format_pieces): Handle \e.
6498 * unittests/format_pieces-selftests.c: New.
6499
58f0c718
TT
65002018-05-17 Tom Tromey <tom@tromey.com>
6501
6502 PR symtab/23010:
6503 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6504 (dw2_instantiate_symtab): Add skip_partial parameter.
6505 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6506 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6507 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6508 (dw2_expand_symtabs_matching_one)
6509 (dw2_find_pc_sect_compunit_symtab)
6510 (dw2_debug_names_lookup_symbol)
6511 (dw2_debug_names_expand_symtabs_for_function): Update.
6512 (init_cutu_and_read_dies): Add skip_partial parameter.
6513 (process_psymtab_comp_unit, build_type_psymtabs_1)
6514 (process_skeletonless_type_unit, load_partial_comp_unit)
6515 (psymtab_to_symtab_1): Update.
6516 (load_full_comp_unit): Add skip_partial parameter.
6517 (process_imported_unit_die, dwarf2_read_addr_index)
6518 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6519 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6520 (read_signatured_type): Update.
6521
3e618834
SM
65222018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6523
6524 * value.c (release_value): Remove unused variable.
6525 (record_latest_value): Likewise.
6526 (access_value_history): Likewise.
6527 (preserve_values): Likewise.
6528
fe10fe31
TT
65292018-05-17 Tom Tromey <tom@tromey.com>
6530
6531 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6532 Initialize.
6533
1d761124
MR
65342018-05-16 Maciej W. Rozycki <macro@mips.com>
6535
6536 PR gdb/22286
6537 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6538 Also handle registers whose width is not a multiple of
6539 PTRACE_TYPE_RET.
6540 (linux_nat_trad_target::store_register): Likewise.
6541
06333fea
TT
65422018-05-16 Tom Tromey <tom@tromey.com>
6543
6544 * gdbcore.h (core_bfd): Redefine.
6545 * corelow.c (core_target::close): Update.
6546 (core_target_open): Update.
6547 * progspace.h (struct program_space) <cbfd>: Now a
6548 gdb_bfd_ref_ptr.
6549
921222e2
TT
65502018-05-16 Tom Tromey <tom@tromey.com>
6551
6552 PR cli/19551:
6553 * symfile-add-flags.h (enum symfile_add_flags)
6554 <SYMFILE_NOT_FILENAME>: New constant.
6555 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6556 objfile name from BFD.
6557 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6558 * minidebug.c (find_separate_debug_file_in_section): Put
6559 ".gnu_debugdata" into BFD's file name.
6560
3acb7083
SM
65612018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6562
6563 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6564 Remove.
6565
561a72d4
TC
65662018-05-15 Tamar Christina <tamar.christina@arm.com>
6567
6568 PR binutils/21446
6569 * aarch64-tdep.c (aarch64_analyze_prologue,
6570 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6571 Indicate not interested in errors.
6572
4e6ff0e1
MR
65732018-05-15 Maciej W. Rozycki <macro@mips.com>
6574
6575 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6576 Supply the MIPS_ZERO_REGNUM register.
6577
ea33cd92
MR
65782018-05-15 Maciej W. Rozycki <macro@mips.com>
6579
6580 * mips-tdep.c (mask_address_var): Make variable static.
6581
2d79090e
TT
65822018-05-14 Tom Tromey <tom@tromey.com>
6583
6584 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6585
cf4912ae
AB
65862018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6587
6588 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6589 FXSAVE_ADDR for the mxcsr register.
6590
67e6f569
MF
65912018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6592
6593 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6594
15244507
PA
65952018-05-11 Pedro Alves <palves@redhat.com>
6596
6597 * corelow.c (core_target) <core_target>: No longer inline.
6598 Initialize m_core_gdbarch, m_core_vec and build the section table
6599 here.
6600 <~core_target>: New.
6601 <core_gdbarch, get_core_register_section>: New methods.
6602 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6603 factored out from ...
6604 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6605 (core_ops): Delete.
6606 (sniff_core_bfd): Add gdbarch parameter.
6607 (core_close): Delete, merged into ...
6608 (core_target::close): ... here. Delete self.
6609 (core_close_cleanup): Delete.
6610 (core_target_open): Allocate a core_target on the heap. Use a
6611 unique_ptr instead of a cleanup. Bits moved into the core_target
6612 ctor. Adjust to use core_target methods instead of globals.
6613 (get_core_register_section): Rename to ...
6614 (core_target::get_core_register_section): ... this and adjust.
6615 (struct get_core_registers_cb_data): New.
6616 (get_core_registers_cb): Use it. Use bool.
6617 (core_target::fetch_registers, core_target::files_info)
6618 (core_target::xfer_partial, core_target::read_description)
6619 (core_target::pid_to, core_target::thread_name): Adjust to
6620 reference class fields instead of globals.
6621 * target.h (struct target_ops_deleter, target_ops_up): New.
6622
451953fa
PA
66232018-05-11 Pedro Alves <palves@redhat.com>
6624
6625 * corefile.c (core_file_command): Move to corelow.c.
6626 * corelow.c (the_core_target): Delete.
6627 (core_file_command): Moved from corefile.c. Check exec_bfd
6628 instead of the_core_target. Use target_detach instead of calling
6629 into the_core_target directly.
6630 (maybe_say_no_core_file_now): New.
6631 (core_target::detach): Use it.
6632 (_initialize_corelow): Remove references to the_core_target.
6633 * gdbcore.h (the_core_target): Delete.
6634
e540a5a2 66352018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 6636 Pedro Alves <palves@redhat.com>
e540a5a2
TT
6637
6638 * corefile.c (core_bfd): Remove.
6639 * gdbcore.h (core_bfd): Now a macro.
6640 * progspace.h (struct program_space) <cbfd>: New field.
6641
633cf254
TT
66422018-05-11 Tom Tromey <tom@tromey.com>
6643
6644 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6645 gdb::def_vector.
6646
1a34f210
TT
66472018-05-10 Tom Tromey <tom@tromey.com>
6648
6649 * configure: Rebuild.
6650 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6651
190852c8
JB
66522018-05-10 Joel Brobecker <brobecker@adacore.com>
6653
6654 PR server/23158:
6655 * regformats/regdat.sh: Adjust script, following the addition
6656 of the new expedite_regs parameter to init_target_desc.
6657
8727de56
OJ
66582018-05-10 Omair Javaid <omair.javaid@linaro.org>
6659
6660 PR gdb/23127
6661 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6662 set_gdbarch_significant_addr_bit.
6663 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6664 set_gdbarch_significant_addr_bit.
6665 * utils.c (address_significant): Update to sign extend addr.
6666
37d9e062
MF
66672018-05-09 Max Filippov <jcmvbkbc@gmail.com>
6668
6669 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6670 (xtensa_linux_init_abi): Limit tdep->num_regs by
6671 tdep->num_nopriv_regs.
6672 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6673 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6674 not initialized.
6675
7402fbca
SM
66762018-05-08 Simon Marchi <simon.marchi@ericsson.com>
6677
6678 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6679
8ee22052
AB
66802018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6681
6682 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6683 (I387_MXCSR_INIT_VAL): New constant.
6684 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6685 buffer if it was supplied by the inferior.
6686 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6687 (i387_xsave_get_clear_bv): New function.
6688 (i387_supply_xsave): Only read x87 control registers from the
6689 xsave buffer if the feature is enabled, and the state will have
6690 been written, otherwise, provide a suitable default.
6691 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6692 including x87 control registers. Update control registers if they
6693 have changed from the default value, and mark features as enabled
6694 as required.
6695 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6696
968ae51b
UW
66972018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6698
6699 * spu-tdep.c (info_spu_event_command): Fix output formatting.
6700
aff689d3
TT
67012018-05-07 Tom Tromey <tom@tromey.com>
6702
6703 * configure: Rebuild.
6704 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6705
ce887586
TT
67062018-05-07 Tom Tromey <tom@tromey.com>
6707
6708 PR tdep/20362:
6709 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6710 bit. Use correct value for VDIV.
6711
85e26832
TT
67122018-05-04 Tom Tromey <tom@tromey.com>
6713
6714 * configure: Rebuild.
6715 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6716
449b1ac7
TT
67172018-05-04 Tom Tromey <tom@tromey.com>
6718
6719 * linux-record.c (record_linux_system_call) <case
6720 RECORD_SYS_RECVFROM>: Add "break".
6721
15c9ffd6
TT
67222018-05-04 Tom Tromey <tom@tromey.com>
6723
6724 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6725 Add missing "break".
6726 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6727 Add missing "break".
6728
e3829d13
TT
67292018-05-04 Tom Tromey <tom@tromey.com>
6730
6731 * rs6000-tdep.c (ppc_process_record_op4)
6732 (ppc_process_record_op63): Add fall-through comment.
6733
da0e1563
TT
67342018-05-04 Tom Tromey <tom@tromey.com>
6735
6736 * i386-tdep.c (i386_process_record): Add fall-through comment.
6737
0019cd49
TT
67382018-05-04 Tom Tromey <tom@tromey.com>
6739
6740 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6741 comment.
6742
565e0eda
TT
67432018-05-04 Tom Tromey <tom@tromey.com>
6744
6745 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6746 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6747 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6748 comment.
6749 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6750 comment.
6751 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6752 comment.
6753
621846f4
TT
67542018-05-04 Tom Tromey <tom@tromey.com>
6755
6756 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6757
86a73007
TT
67582018-05-04 Tom Tromey <tom@tromey.com>
6759
6760 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6761 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6762 * symfile.c (section_is_mapped): Fix fall-through comment.
6763 * stabsread.c (define_symbol, read_member_functions): Fix
6764 fall-through comment.
6765 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6766 comment.
6767 * remote.c (remote_wait_as): Fix fall-through comment.
6768 * p-exp.y (yylex): Fix fall-through comment.
6769 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6770 comment.
6771 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6772 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6773 * jv-exp.y (yylex): Fix fall-through comment.
6774 * go-exp.y (lex_one_token): Fix fall-through comment.
6775 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6776 fall-through comment.
6777 * f-exp.y (yylex): Fix fall-through comment.
6778 * dwarf2read.c (process_die): Fix fall-through comments.
6779 * dbxread.c (process_one_symbol): Fix fall-through comment.
6780 * d-exp.y (lex_one_token): Fix fall-through comment.
6781 * cp-name-parser.y (yylex): Fix fall-through comment.
6782 * coffread.c (coff_symtab_read): Fix fall-through comment.
6783 * c-exp.y (lex_one_token): Fix fall-through comment.
6784 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6785 comment.
6786 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6787 comment.
6788
56bcdbea
TT
67892018-05-04 Tom Tromey <tom@tromey.com>
6790
6791 PR python/22730:
6792 * NEWS: Mention gdb.execute change.
6793 * gdbcmd.h (execute_control_command): Don't declare.
6794 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6795 execute_control_commands, execute_control_commands_to_string.
6796 * cli/cli-script.h (execute_control_commands)
6797 (execute_control_commands_to_string): Declare.
6798 (execute_control_command): Add from_tty parameter.
6799 * cli/cli-script.c (execute_control_commands)
6800 (execute_control_commands_to_string): New functions.
6801 (execute_user_command): Use execute_control_commands.
6802 (execute_control_command_1): Add "from_tty" parameter. Update.
6803 (execute_control_command): Likewise.
6804
a913fffb
TT
68052018-05-04 Tom Tromey <tom@tromey.com>
6806
6807 PR python/22731:
6808 * NEWS: Mention that breakpoint commands are writable.
6809 * python/py-breakpoint.c (bppy_set_commands): New function.
6810 (breakpoint_object_getset) <"commands">: Use it.
6811
60b3cef2
TT
68122018-05-04 Tom Tromey <tom@tromey.com>
6813
6814 * tracepoint.c (actions_command): Update.
6815 * mi/mi-cmd-break.c (mi_command_line_array)
6816 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6817 (mi_read_next_line): Remove.
6818 (mi_cmd_break_commands): Update.
6819 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6820 function_view.
6821 * cli/cli-script.c (get_command_line): Update.
6822 (process_next_line): Use function_view. Constify.
6823 (recurse_read_control_structure, read_command_lines)
6824 (read_command_lines_1): Change argument types to function_view.
6825 (do_define_command, document_command): Update.
6826 * breakpoint.h (check_tracepoint_command): Don't declare.
6827 * breakpoint.c (check_tracepoint_command): Remove.
6828 (commands_command_1, create_tracepoint_from_upload): Update.
6829
7a2c85f2
TT
68302018-05-04 Tom Tromey <tom@tromey.com>
6831
6832 PR gdb/11750:
6833 * cli/cli-script.h (enum command_control_type) <define_control>:
6834 New constant.
6835 * cli/cli-script.c (multi_line_command_p): Handle define_control.
6836 (build_command_line, execute_control_command_1)
6837 (process_next_line): Likewise.
6838 (do_define_command): New function, extracted from define_command.
6839 (define_command): Use it.
6840
295dc222
TT
68412018-05-04 Tom Tromey <tom@tromey.com>
6842
6843 * tracepoint.c (actions_command): Update.
6844 * cli/cli-script.h (read_command_lines): Update.
6845 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6846 (MAX_TMPBUF): Remove define.
6847 (define_command): Use string_printf.
6848 (document_command): Likewise.
6849 * breakpoint.c (commands_command_1): Update.
6850
1263a9d5
TT
68512018-05-04 Tom Tromey <tom@tromey.com>
6852
6853 * top.c (execute_command): Update.
6854 * cli/cli-script.h (print_command_lines): Now varargs.
6855 * cli/cli-script.c (print_command_lines): Now varargs.
6856 (execute_control_command_1) <case while_control, case if_control>:
6857 Update.
6858
12973681
TT
68592018-05-04 Tom Tromey <tom@tromey.com>
6860
6861 * tracepoint.c (all_tracepoint_actions): Rename from
6862 all_tracepoint_actions_and_cleanup. Change return type.
6863 (actions_command, encode_actions_1, encode_actions)
6864 (trace_dump_actions, tdump_command): Update.
6865 * remote.c (remote_download_command_source): Update.
6866 * python/python.c (gdbpy_eval_from_control_command)
6867 (python_command, python_interactive_command): Update.
6868 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6869 * guile/guile.c (guile_command)
6870 (gdbscm_eval_from_control_command, guile_command): Update.
6871 * compile/compile.c (compile_code_command)
6872 (compile_print_command, compile_to_object): Update.
6873 * cli/cli-script.h (struct command_lines_deleter): New.
6874 (counted_command_line): New typedef.
6875 (struct command_line): Add constructor, destructor.
6876 <body_list>: Remove.
6877 <body_list_0, body_list_1>: New members.
6878 (command_line_up): Remove typedef.
6879 (read_command_lines, read_command_lines_1, get_command_line):
6880 Update.
6881 (copy_command_lines): Don't declare.
6882 * cli/cli-script.c (build_command_line): Use "new".
6883 (get_command_line): Return counted_command_line.
6884 (print_command_lines, execute_user_command)
6885 (execute_control_command_1, while_command, if_command): Update.
6886 (realloc_body_list): Remove.
6887 (process_next_line, recurse_read_control_structure): Update.
6888 (read_command_lines, read_command_lines_1): Return counted_command_line.
6889 (free_command_lines): Use "delete".
6890 (copy_command_lines): Remove.
6891 (define_command, document_command, show_user_1): Update.
6892 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
6893 a counted_command_line.
6894 * breakpoint.h (counted_command_line): Remove typedef.
6895 (breakpoint_set_commands): Update.
6896 * breakpoint.c (check_no_tracepoint_commands)
6897 (validate_commands_for_breakpoint): Update.
6898 (breakpoint_set_commands): Change commands to be a
6899 counted_command_line.
6900 (commands_command_1, update_dprintf_command_list)
6901 (create_tracepoint_from_upload): Update.
6902
e2fc72e2
TT
69032018-05-04 Tom Tromey <tom@tromey.com>
6904
6905 * cli/cli-decode.h (cmd_list_element): New constructor.
6906 (~cmd_list_element): New destructor.
6907 (struct cmd_list_element): Add initializers.
6908 * cli/cli-decode.c (do_add_cmd): Use "new".
6909 (delete_cmd): Use "delete".
6910
a3b60e45
JK
69112018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6912 Pedro Alves <palves@redhat.com>
6913
6914 PR breakpoints/19806 and support for PR external/20207.
6915 * NEWS: Mention Aarch64 watchpoint improvements.
6916 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
6917 watchpoints and PR external/20207 watchpoints.
6918 * nat/aarch64-linux-hw-point.c
6919 (kernel_supports_any_contiguous_range): New.
6920 (aarch64_watchpoint_offset): New.
6921 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
6922 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
6923 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
6924 (aarch64_align_watchpoint): New parameters aligned_offset_p and
6925 next_addr_orig_p. Support PR external/20207 watchpoints.
6926 (aarch64_downgrade_regs): New.
6927 (aarch64_dr_state_insert_one_point): New parameters offset and
6928 addr_orig.
6929 (aarch64_dr_state_remove_one_point): Likewise.
6930 (aarch64_handle_breakpoint): Update caller.
6931 (aarch64_handle_aligned_watchpoint): Likewise.
6932 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
6933 aligned_offset.
6934 (aarch64_linux_set_debug_regs): Remove const from state. Call
6935 aarch64_downgrade_regs.
6936 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
6937 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
6938 (DR_CONTROL_MASK): ... this.
6939 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
6940 (unsigned int aarch64_watchpoint_offset): New prototype.
6941 (aarch64_linux_set_debug_regs): Remove const from state.
6942 * utils.c (align_up, align_down): Move to ...
6943 * common/common-utils.c (align_up, align_down): ... here.
6944 * utils.h (align_up, align_down): Move to ...
6945 * common/common-utils.h (align_up, align_down): ... here.
6946
05bc7456
JB
69472018-05-04 Joel Brobecker <brobecker@adacore.com>
6948
6949 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
6950 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
6951 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
6952 Re-implement to match the ABI as summarized in GCC's
6953 gcc/config/sparc/sparc.c. All callers updated.
6954 (sparc32_store_arguments): Remove assertion.
6955
2f433492
TT
69562018-05-04 Tom Tromey <tom@tromey.com>
6957
6958 * printcmd.c: Don't include tui.h.
6959 (decode_format): Use skip_spaces.
6960
9be2ae8f
TT
69612018-05-04 Tom Tromey <tom@tromey.com>
6962
6963 PR gdb/22619:
6964 * printcmd.c (last_count): New global.
6965 (x_command): Use saved count when repeating.
6966
f0b3976b
TT
69672018-05-04 Tom Tromey <tom@tromey.com>
6968
6969 * nto-procfs.c (do_closedir_cleanup): Remove.
6970 (procfs_pidlist): Use gdb_dir_up.
6971 * procfs.c (do_closedir_cleanup): Remove.
6972 (proc_update_threads): Use gdb_dir_up.
6973 * common/filestuff.h (struct gdb_dir_deleter): New.
6974 (gdb_dir_up): New typedef.
6975
862d101a
TT
69762018-05-04 Tom Tromey <tom@tromey.com>
6977
6978 * ada-lang.c (print_mention_exception): Use std::string.
6979
cb7de75e
TT
69802018-05-04 Tom Tromey <tom@tromey.com>
6981
6982 * ada-lang.c (create_excep_cond_exprs): Update.
6983 (ada_exception_catchpoint_cond_string): Use std::string.
6984
49d83361
TT
69852018-05-04 Tom Tromey <tom@tromey.com>
6986
6987 * ada-lang.c (xget_renaming_scope): Return std::string.
6988 (old_renaming_is_invisible): Update.
6989
ade72a34
TT
69902018-05-04 Tom Tromey <tom@tromey.com>
6991
6992 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
6993 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
6994
2be4d7f0
UW
69952018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
6996
6997 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
6998
69b6ecb0
TT
69992018-05-04 Tom Tromey <tom@tromey.com>
7000
7001 * remote.c (remote_query_supported_append): Change type.
7002 (remote_check_symbols): Update.
7003
bf27f0e2
PP
70042018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7005
7006 PR gdb/11420
7007 * configure.ac: Prepend libpython.
7008 * python/python-config.py: Likewise.
7009 * configure: Regenerate.
7010
4ea17de8
SM
70112018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7012
7013 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7014
bd732259
PA
70152018-05-03 Pedro Alves <palves@redhat.com>
7016
7017 * s390-linux-nat.c
7018 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7019 override. Write 'true' instead of '1'.
7020 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7021 declaration.
7022
d9f719f1
PA
70232018-05-02 Pedro Alves <palves@redhat.com>
7024
7025 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7026 add_inf_child_target.
7027 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7028 add_inf_child_target.
7029 * aix-thread.c (aix_thread_target_info): New.
7030 (aix_thread_target) <shortname, longname, doc>: Delete.
7031 <info>: New.
7032 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7033 add_inf_child_target.
7034 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7035 add_inf_child_target.
7036 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7037 add_inf_child_target.
7038 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7039 add_inf_child_target.
7040 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7041 add_inf_child_target.
7042 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7043 add_inf_child_target.
7044 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7045 add_inf_child_target.
7046 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7047 add_inf_child_target.
7048 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7049 add_inf_child_target.
7050 * bfd-target.c (target_bfd_target_info): New.
7051 (target_bfd) <shortname, longname, doc>: Delete.
7052 <info>: New.
7053 * bsd-kvm.c (bsd_kvm_target_info): New.
7054 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7055 <info>: New.
7056 (bsd_kvm_target::open): Rename to ...
7057 (bsd_kvm_target_open): ... this. Adjust.
7058 * bsd-uthread.c (bsd_uthread_target_info): New.
7059 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7060 <info>: New.
7061 * corefile.c (core_file_command): Adjust.
7062 * corelow.c (core_target_info): New.
7063 (core_target) <shortname, longname, doc>: Delete.
7064 <info>: New.
7065 (core_target::open): Rename to ...
7066 (core_target_open): ... this. Adjust.
7067 * ctf.c (ctf_target_info): New.
7068 (ctf_target) <shortname, longname, doc>: Delete.
7069 <info>: New.
7070 (ctf_target::open): Rename to ...
7071 (ctf_target_open): ... this.
7072 (_initialize_ctf): Adjust.
7073 * exec.c (exec_target_info): New.
7074 (exec_target) <shortname, longname, doc>: Delete.
7075 <info>: New.
7076 (exec_target::open): Rename to ...
7077 (exec_target_open): ... this.
7078 * gdbcore.h (core_target_open): Declare.
7079 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7080 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7081 add_inf_child_target.
7082 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7083 add_inf_child_target.
7084 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7085 add_inf_child_target.
7086 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7087 add_inf_child_target.
7088 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7089 add_inf_child_target.
7090 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7091 add_inf_child_target.
7092 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7093 add_inf_child_target.
7094 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7095 add_inf_child_target.
7096 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7097 add_inf_child_target.
7098 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7099 add_inf_child_target.
7100 * inf-child.c (inf_child_target_info): New.
7101 (inf_child_target::info): New.
7102 (inf_child_open_target): Remove 'target' parameter. Use
7103 get_native_target instead.
7104 (inf_child_target::open): Delete.
7105 (add_inf_child_target): New.
7106 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7107 Delete.
7108 <info>: New.
7109 (add_inf_child_target): Declare.
7110 (inf_child_open_target): Declare.
7111 * linux-thread-db.c (thread_db_target_info): New.
7112 (thread_db_target) <shortname, longname, doc>: Delete.
7113 <info>: New.
7114 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7115 add_inf_child_target.
7116 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7117 add_inf_child_target.
7118 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7119 add_inf_child_target.
7120 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7121 add_inf_child_target.
7122 * make-target-delegates (print_class): Adjust.
7123 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7124 add_inf_child_target.
7125 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7126 add_inf_child_target.
7127 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7128 add_inf_child_target.
7129 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7130 add_inf_child_target.
7131 * nto-procfs.c (nto_native_target_info): New.
7132 (nto_procfs_target_native) <shortname, longname, doc>:
7133 Delete.
7134 <info>: New.
7135 (nto_procfs_target_info): New.
7136 (nto_procfs_target_procfs) <shortname, longname, doc>:
7137 Delete.
7138 <info>: New.
7139 (init_procfs_targets): Adjust.
7140 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7141 add_inf_child_target.
7142 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7143 add_inf_child_target.
7144 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7145 add_inf_child_target.
7146 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7147 add_inf_child_target.
7148 * ravenscar-thread.c (ravenscar_target_info): New.
7149 (ravenscar_thread_target) <shortname, longname, doc>:
7150 Delete.
7151 <info>: New.
7152 * record-btrace.c (record_btrace_target_info):
7153 (record_btrace_target) <shortname, longname, doc>: Delete.
7154 <info>: New.
7155 (record_btrace_target::open): Rename to ...
7156 (record_btrace_target_open): ... this. Adjust.
7157 * record-full.c (record_longname, record_doc): New.
7158 (record_full_base_target) <shortname, longname, doc>: Delete.
7159 <info>: New.
7160 (record_full_target_info): New.
7161 (record_full_target): <shortname>: Delete.
7162 <info>: New.
7163 (record_full_core_open_1, record_full_open_1): Update comments.
7164 (record_full_base_target::open): Rename to ...
7165 (record_full_open): ... this.
7166 (cmd_record_full_restore): Update.
7167 (_initialize_record_full): Update.
7168 * remote-sim.c (remote_sim_target_info): New.
7169 (gdbsim_target) <shortname, longname, doc>: Delete.
7170 <info>: New.
7171 (gdbsim_target::open): Rename to ...
7172 (gdbsim_target_open): ... this.
7173 (_initialize_remote_sim): Adjust.
7174 * remote.c (remote_doc): New.
7175 (remote_target_info): New.
7176 (remote_target) <shortname, longname, doc>: Delete.
7177 <info>: New.
7178 (extended_remote_target_info): New.
7179 (extended_remote_target) <shortname, longname, doc>: Delete.
7180 <info>: New.
7181 (remote_target::open_1): Make static. Adjust.
7182 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7183 * s390-linux-nat.c (_initialize_s390_nat): Use
7184 add_inf_child_target.
7185 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7186 add_inf_child_target.
7187 * sol-thread.c (thread_db_target_info): New.
7188 (sol_thread_target) <shortname, longname, doc>: Delete.
7189 <info>: New.
7190 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7191 add_inf_child_target.
7192 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7193 add_inf_child_target.
7194 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7195 add_inf_child_target.
7196 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7197 add_inf_child_target.
7198 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7199 add_inf_child_target.
7200 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7201 add_inf_child_target.
7202 * spu-linux-nat.c (_initialize_spu_nat): Use
7203 add_inf_child_target.
7204 * spu-multiarch.c (spu_multiarch_target_info): New.
7205 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7206 <info>: New.
7207 * target-delegates.c: Regenerate.
7208 * target.c: Include <unordered_map>.
7209 (target_ops_p): Delete.
7210 (DEF_VEC_P(target_ops_p)): Delete.
7211 (target_factories): New.
7212 (test_target_info): New.
7213 (test_target_ops::info): New.
7214 (open_target): Adjust to use target_factories.
7215 (add_target_with_completer): Rename to ...
7216 (add_target): ... this. Change prototype. Register target_info
7217 and open callback in target_factories. Register target_info in
7218 command context instead of target_ops.
7219 (add_target): Delete old implementation.
7220 (add_deprecated_target_alias): Change prototype. Adjust.
7221 (the_native_target): New.
7222 (set_native_target, get_native_target): New.
7223 (find_default_run_target): Use the_native_target.
7224 (find_attach_target, find_run_target): Simplify.
7225 (target_ops::open): Delete.
7226 (dummy_target_info): New.
7227 (dummy_target::shortname, dummy_target::longname)
7228 (dummy_target::doc): Delete.
7229 (dummy_target::info): New.
7230 (debug_target::shortname, debug_target::longname)
7231 (debug_target::doc): Delete.
7232 (debug_target::info): New.
7233 * target.h (struct target_info): New.
7234 (target_ops::~target_ops): Add comment.
7235 (target_ops::info): New.
7236 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7237 longer virtual. Implement in terms of target_info.
7238 (set_native_target, get_native_target): Declare.
7239 (target_open_ftype): New.
7240 (add_target, add_target_with_completer)
7241 (add_deprecated_target_alias): Change prototype.
7242 (test_target) <shortname, longname, doc>: Delete.
7243 <info>: New.
7244 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7245 add_inf_child_target.
7246 * tracefile-tfile.c (tfile_target_info): New.
7247 (tfile_target) <shortname, longname, doc>: Delete.
7248 <info>: New.
7249 (tfile_target::open): Rename to ...
7250 (tfile_target_open): ... this.
7251 (_initialize_tracefile_tfile): Adjust.
7252 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7253 add_inf_child_target.
7254 * windows-nat.c (_initialize_windows_nat): Use
7255 add_inf_child_target.
7256 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7257 add_inf_child_target.
7258
135340af
PA
72592018-05-02 Pedro Alves <palves@redhat.com>
7260
7261 * linux-nat.h (linux_nat_target) <low_new_thread,
7262 low_delete_thread, low_new_fork, low_forget_process,
7263 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7264 New virtual methods.
7265 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7266 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7267 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7268 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7269 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7270 Delete.
7271 * linux-fork.c (delete_fork): Adjust to call low method.
7272 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7273 (linux_nat_new_fork, linux_nat_forget_process_hook)
7274 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7275 (linux_nat_status_is_event):
7276 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7277 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7278 to call low method.
7279 (sigtrap_is_event): Rename to ...
7280 (linux_nat_target::low_status_is_event): ... this.
7281 (linux_nat_set_status_is_event): Delete.
7282 (save_stop_reason, linux_nat_wait_1)
7283 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7284 low methods.
7285 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7286 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7287 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7288 (linux_nat_set_prepare_to_resume): Delete.
7289 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7290 low virtual methods.
7291 * amd64-linux-nat.c: Likewise.
7292 * arm-linux-nat.c: Likewise.
7293 * i386-linux-nat.c: Likewise.
7294 * ia64-linux-nat.c: Likewise.
7295 * mips-linux-nat.c: Likewise.
7296 * ppc-linux-nat.c: Likewise.
7297 * s390-linux-nat.c: Likewise.
7298 * sparc64-linux-nat.c: Likewise.
7299 * x86-linux-nat.c: Likewise.
7300 * x86-linux-nat.h: Include "nat/x86-linux.h".
7301 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7302 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7303 Override methods.
7304
57810aa7
PA
73052018-05-02 Pedro Alves <palves@redhat.com>
7306
7307 * target.h (target_ops)
7308 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7309 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7310 stopped_by_watchpoint, have_continuable_watchpoint,
7311 stopped_data_address, watchpoint_addr_within_range,
7312 can_accel_watchpoint_condition, can_run, thread_alive,
7313 has_all_memory, has_memory, has_stack, has_registers,
7314 has_execution, can_async_p, is_async_p, supports_non_stop,
7315 always_non_stop_p, can_execute_reverse, supports_multi_process,
7316 supports_enable_disable_tracepoint,
7317 supports_disable_randomization, supports_string_tracing,
7318 supports_evaluation_of_breakpoint_conditions,
7319 can_run_breakpoint_commands, filesystem_is_local,
7320 can_download_tracepoint, get_trace_state_variable_value,
7321 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7322 record_is_replaying, record_will_replay,
7323 augmented_libraries_svr4_read>: Adjust to return bool.
7324 * aarch64-linux-nat.c: All implementations adjusted.
7325 * aix-thread.c: All implementations adjusted.
7326 * arm-linux-nat.c: All implementations adjusted.
7327 * breakpoint.c: All implementations adjusted.
7328 * bsd-kvm.c: All implementations adjusted.
7329 * bsd-uthread.c: All implementations adjusted.
7330 * corelow.c: All implementations adjusted.
7331 * ctf.c: All implementations adjusted.
7332 * darwin-nat.c: All implementations adjusted.
7333 * darwin-nat.h: All implementations adjusted.
7334 * exec.c: All implementations adjusted.
7335 * fbsd-nat.c: All implementations adjusted.
7336 * fbsd-nat.h: All implementations adjusted.
7337 * gnu-nat.c: All implementations adjusted.
7338 * gnu-nat.h: All implementations adjusted.
7339 * go32-nat.c: All implementations adjusted.
7340 * ia64-linux-nat.c: All implementations adjusted.
7341 * inf-child.c: All implementations adjusted.
7342 * inf-child.h: All implementations adjusted.
7343 * inf-ptrace.c: All implementations adjusted.
7344 * inf-ptrace.h: All implementations adjusted.
7345 * linux-nat.c: All implementations adjusted.
7346 * linux-nat.h: All implementations adjusted.
7347 * mips-linux-nat.c: All implementations adjusted.
7348 * nto-procfs.c: All implementations adjusted.
7349 * ppc-linux-nat.c: All implementations adjusted.
7350 * procfs.c: All implementations adjusted.
7351 * ravenscar-thread.c: All implementations adjusted.
7352 * record-btrace.c: All implementations adjusted.
7353 * record-full.c: All implementations adjusted.
7354 * remote-sim.c: All implementations adjusted.
7355 * remote.c: All implementations adjusted.
7356 * s390-linux-nat.c: All implementations adjusted.
7357 * sol-thread.c: All implementations adjusted.
7358 * spu-multiarch.c: All implementations adjusted.
7359 * target-delegates.c: All implementations adjusted.
7360 * target.c: All implementations adjusted.
7361 * target.h: All implementations adjusted.
7362 * tracefile-tfile.c: All implementations adjusted.
7363 * tracefile.c: All implementations adjusted.
7364 * tracefile.h: All implementations adjusted.
7365 * windows-nat.c: All implementations adjusted.
7366 * x86-linux-nat.h: All implementations adjusted.
7367 * x86-nat.h: All implementations adjusted.
7368
ad6a4e2d
PA
73692018-05-02 Pedro Alves <palves@redhat.com>
7370
7371 * make-target-delegates (scan_target_h): Don't trim lines here.
7372 Replace sequences of tabs and/or whitespace with a single
7373 whitespace.
7374 (top level, parsing methods): Trim each line before processing it
7375 here.
7376
f6ac5f3d
PA
73772018-05-02 Pedro Alves <palves@redhat.com>
7378 John Baldwin <jhb@freebsd.org>
7379
7380 * target.h (enum strata) <debug_stratum>: New.
7381 (struct target_ops) <all delegation methods>: Replace by C++
7382 virtual methods, and drop "to_" prefix. All references updated
7383 throughout.
7384 <to_shortname, to_longname, to_doc, to_data,
7385 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7386 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7387 virtual methods. All references updated throughout.
7388 <can_attach, supports_terminal_ours, can_create_inferior,
7389 get_thread_control_capabilities, attach_no_wait>: New
7390 virtual methods.
7391 <insert_breakpoint, remove_breakpoint>: Now
7392 TARGET_DEFAULT_NORETURN methods.
7393 <info_proc>: Now returns bool.
7394 <to_magic>: Delete.
7395 (OPS_MAGIC): Delete.
7396 (current_target): Delete. All references replaced by references
7397 to ...
7398 (target_stack): ... this. New.
7399 (target_shortname, target_longname): Adjust.
7400 (target_can_run): Now a function declaration.
7401 (default_child_has_all_memory, default_child_has_memory)
7402 (default_child_has_stack, default_child_has_registers)
7403 (default_child_has_execution): Remove target_ops parameter.
7404 (complete_target_initialization): Delete.
7405 (memory_breakpoint_target): New template class.
7406 (test_target_ops): Refactor as a C++ class with virtual methods.
7407 * make-target-delegates (NAME_PART): Tighten.
7408 (POINTER_PART, CP_SYMBOL): New.
7409 (SIMPLE_RETURN_PART): Reimplement.
7410 (VEC_RETURN_PART): Expect less.
7411 (RETURN_PART, VIRTUAL_PART): New.
7412 (METHOD): Adjust to C++ virtual methods.
7413 (scan_target_h): Remove reference to C99.
7414 (dname): Output "target_ops::" prefix.
7415 (write_function_header): Adjust to output a C++ class method.
7416 (write_declaration): New.
7417 (write_delegator): Adjust to output a C++ class method.
7418 (tdname): Output "dummy_target::" prefix.
7419 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7420 method.
7421 (tdefault_names, debug_names): Delete.
7422 (return_types, tdefaults, styles, argtypes_array): New.
7423 (top level): All methods are delegators.
7424 (print_class): New.
7425 (top level): Print dummy_target and debug_target classes.
7426 * target-delegates.c: Regenerate.
7427 * target-debug.h (target_debug_print_enum_info_proc_what)
7428 (target_debug_print_thread_control_capabilities)
7429 (target_debug_print_thread_info_p): New.
7430 * target.c (dummy_target): Delete.
7431 (the_dummy_target, the_debug_target): New.
7432 (target_stack): Now extern.
7433 (set_targetdebug): Push/unpush debug target.
7434 (default_child_has_all_memory, default_child_has_memory)
7435 (default_child_has_stack, default_child_has_registers)
7436 (default_child_has_execution): Remove target_ops parameter.
7437 (complete_target_initialization): Delete.
7438 (add_target_with_completer): No longer call
7439 complete_target_initialization.
7440 (target_supports_terminal_ours): Use regular delegation.
7441 (update_current_target): Delete.
7442 (push_target): No longer check magic number. Don't call
7443 update_current_target.
7444 (unpush_target): Don't call update_current_target.
7445 (target_is_pushed): No longer check magic number.
7446 (target_require_runnable): Skip for all stratums over
7447 process_stratum.
7448 (target_ops::info_proc): New.
7449 (target_info_proc): Use find_target_at and
7450 find_default_run_target.
7451 (target_supports_disable_randomization): Use regular delegation.
7452 (target_get_osdata): Use find_target_at.
7453 (target_ops::open, target_ops::close, target_ops::can_attach)
7454 (target_ops::attach, target_ops::can_create_inferior)
7455 (target_ops::create_inferior, target_ops::can_run)
7456 (target_can_run): New.
7457 (default_fileio_target): Use regular delegation.
7458 (target_ops::fileio_open, target_ops::fileio_pwrite)
7459 (target_ops::fileio_pread, target_ops::fileio_fstat)
7460 (target_ops::fileio_close, target_ops::fileio_unlink)
7461 (target_ops::fileio_readlink): New.
7462 (target_fileio_open_1, target_fileio_unlink)
7463 (target_fileio_readlink): Always call the target method. Handle
7464 FILEIO_ENOSYS.
7465 (return_zero, return_zero_has_execution): Delete.
7466 (init_dummy_target): Delete.
7467 (dummy_target::dummy_target, dummy_target::shortname)
7468 (dummy_target::longname, dummy_target::doc)
7469 (debug_target::debug_target, debug_target::shortname)
7470 (debug_target::longname, debug_target::doc): New.
7471 (target_supports_delete_record): Use regular delegation.
7472 (setup_target_debug): Delete.
7473 (maintenance_print_target_stack): Skip debug_stratum.
7474 (initialize_targets): Instantiate the_dummy_target and
7475 the_debug_target.
7476 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7477 use target_stack.
7478 (target_auxv_search, fprint_target_auxv): Adjust.
7479 (info_auxv_command): Adjust to use target_stack.
7480 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7481 * exceptions.c (print_flush): Handle a NULL target_stack.
7482 * regcache.c (target_ops_no_register): Refactor as class with
7483 virtual methods.
7484
7485 * exec.c (exec_target): New class.
7486 (exec_ops): Now an exec_target.
7487 (exec_open, exec_close_1, exec_get_section_table)
7488 (exec_xfer_partial, exec_files_info, exec_has_memory)
7489 (exec_make_note_section): Refactor as exec_target methods.
7490 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7491 Delete.
7492 (exec_target::find_memory_regions): New.
7493 (_initialize_exec): Don't call init_exec_ops.
7494 * gdbcore.h (exec_file_clear): Delete.
7495
7496 * corefile.c (core_target): Delete.
7497 (core_file_command): Adjust.
7498 * corelow.c (core_target): New class.
7499 (the_core_target): New.
7500 (core_close): Remove target_ops parameter.
7501 (core_close_cleanup): Adjust.
7502 (core_target::close): New.
7503 (core_open, core_detach, get_core_registers, core_files_info)
7504 (core_xfer_partial, core_thread_alive, core_read_description)
7505 (core_pid_to_str, core_thread_name, core_has_memory)
7506 (core_has_stack, core_has_registers, core_info_proc): Rework as
7507 core_target methods.
7508 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7509 (_initialize_corelow): Initialize the_core_target.
7510 * gdbcore.h (core_target): Delete.
7511 (the_core_target): New.
7512
7513 * ctf.c: (ctf_target): New class.
7514 (ctf_ops): Now a ctf_target.
7515 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7516 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7517 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7518 methods.
7519 (init_ctf_ops): Delete.
7520 (_initialize_ctf): Don't call it.
7521 * tracefile-tfile.c (tfile_target): New class.
7522 (tfile_ops): Now a tfile_target.
7523 (tfile_open, tfile_close, tfile_files_info)
7524 (tfile_get_tracepoint_status, tfile_trace_find)
7525 (tfile_fetch_registers, tfile_xfer_partial)
7526 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7527 Refactor as tfile_target methods.
7528 (tfile_xfer_partial_features): Remove target_ops parameter.
7529 (init_tfile_ops): Delete.
7530 (_initialize_tracefile_tfile): Don't call it.
7531 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7532 (tracefile_has_stack, tracefile_has_registers)
7533 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7534 tracefile_target methods.
7535 (init_tracefile_ops): Delete.
7536 (tracefile_target::tracefile_target): New.
7537 * tracefile.h: Include "target.h".
7538 (tracefile_target): New class.
7539 (init_tracefile_ops): Delete.
7540
7541 * spu-multiarch.c (spu_multiarch_target): New class.
7542 (spu_ops): Now a spu_multiarch_target.
7543 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7544 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7545 (spu_search_memory, spu_mourn_inferior): Refactor as
7546 spu_multiarch_target methods.
7547 (init_spu_ops): Delete.
7548 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7549 complete_target_initialization.
7550
7551 * ravenscar-thread.c (ravenscar_thread_target): New class.
7552 (ravenscar_ops): Now a ravenscar_thread_target.
7553 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7554 (ravenscar_thread_alive, ravenscar_pid_to_str)
7555 (ravenscar_fetch_registers, ravenscar_store_registers)
7556 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7557 (ravenscar_stopped_by_hw_breakpoint)
7558 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7559 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7560 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7561 methods.
7562 (init_ravenscar_thread_ops): Delete.
7563 (_initialize_ravenscar): Remove references to
7564 init_ravenscar_thread_ops and complete_target_initialization.
7565
7566 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7567 (bsd_uthread_target): New class.
7568 (bsd_uthread_ops): Now a bsd_uthread_target.
7569 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7570 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7571 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7572 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7573 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7574 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7575 (bsd_uthread_target): Delete function.
7576 (_initialize_bsd_uthread): Remove reference to
7577 complete_target_initialization.
7578
7579 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7580 (target_bfd): ... this new class.
7581 (target_bfd_xfer_partial, target_bfd_get_section_table)
7582 (target_bfd_close): Refactor as target_bfd methods.
7583 (target_bfd::~target_bfd): New.
7584 (target_bfd_reopen): Adjust.
7585 (target_bfd::close): New.
7586
7587 * record-btrace.c (record_btrace_target): New class.
7588 (record_btrace_ops): Now a record_btrace_target.
7589 (record_btrace_open, record_btrace_stop_recording)
7590 (record_btrace_disconnect, record_btrace_close)
7591 (record_btrace_async, record_btrace_info)
7592 (record_btrace_insn_history, record_btrace_insn_history_range)
7593 (record_btrace_insn_history_from, record_btrace_call_history)
7594 (record_btrace_call_history_range)
7595 (record_btrace_call_history_from, record_btrace_record_method)
7596 (record_btrace_is_replaying, record_btrace_will_replay)
7597 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7598 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7599 (record_btrace_store_registers, record_btrace_prepare_to_store)
7600 (record_btrace_to_get_unwinder)
7601 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7602 (record_btrace_commit_resume, record_btrace_wait)
7603 (record_btrace_stop, record_btrace_can_execute_reverse)
7604 (record_btrace_stopped_by_sw_breakpoint)
7605 (record_btrace_supports_stopped_by_sw_breakpoint)
7606 (record_btrace_stopped_by_hw_breakpoint)
7607 (record_btrace_supports_stopped_by_hw_breakpoint)
7608 (record_btrace_update_thread_list, record_btrace_thread_alive)
7609 (record_btrace_goto_begin, record_btrace_goto_end)
7610 (record_btrace_goto, record_btrace_stop_replaying_all)
7611 (record_btrace_execution_direction)
7612 (record_btrace_prepare_to_generate_core)
7613 (record_btrace_done_generating_core): Refactor as
7614 record_btrace_target methods.
7615 (init_record_btrace_ops): Delete.
7616 (_initialize_record_btrace): Remove reference to
7617 init_record_btrace_ops.
7618 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7619 the execution_direction global.
7620 (record_full_base_target, record_full_target)
7621 (record_full_core_target): New classes.
7622 (record_full_ops): Now a record_full_target.
7623 (record_full_core_ops): Now a record_full_core_target.
7624 (record_full_target::detach, record_full_target::disconnect)
7625 (record_full_core_target::disconnect)
7626 (record_full_target::mourn_inferior, record_full_target::kill):
7627 New.
7628 (record_full_open, record_full_close, record_full_async): Refactor
7629 as methods of the record_full_base_target class.
7630 (record_full_resume, record_full_commit_resume): Refactor
7631 as methods of the record_full_target class.
7632 (record_full_wait, record_full_stopped_by_watchpoint)
7633 (record_full_stopped_data_address)
7634 (record_full_stopped_by_sw_breakpoint)
7635 (record_full_supports_stopped_by_sw_breakpoint)
7636 (record_full_stopped_by_hw_breakpoint)
7637 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7638 methods of the record_full_base_target class.
7639 (record_full_store_registers, record_full_xfer_partial)
7640 (record_full_insert_breakpoint, record_full_remove_breakpoint):
7641 Refactor as methods of the record_full_target class.
7642 (record_full_can_execute_reverse, record_full_get_bookmark)
7643 (record_full_goto_bookmark, record_full_execution_direction)
7644 (record_full_record_method, record_full_info, record_full_delete)
7645 (record_full_is_replaying, record_full_will_replay)
7646 (record_full_goto_begin, record_full_goto_end, record_full_goto)
7647 (record_full_stop_replaying): Refactor as methods of the
7648 record_full_base_target class.
7649 (record_full_core_resume, record_full_core_kill)
7650 (record_full_core_fetch_registers)
7651 (record_full_core_prepare_to_store)
7652 (record_full_core_store_registers, record_full_core_xfer_partial)
7653 (record_full_core_insert_breakpoint)
7654 (record_full_core_remove_breakpoint)
7655 (record_full_core_has_execution): Refactor
7656 as methods of the record_full_core_target class.
7657 (record_full_base_target::supports_delete_record): New.
7658 (init_record_full_ops): Delete.
7659 (init_record_full_core_ops): Delete.
7660 (record_full_save): Refactor as method of the
7661 record_full_base_target class.
7662 (_initialize_record_full): Remove references to
7663 init_record_full_ops and init_record_full_core_ops.
7664
7665 * remote.c (remote_target, extended_remote_target): New classes.
7666 (remote_ops): Now a remote_target.
7667 (extended_remote_ops): Now an extended_remote_target.
7668 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7669 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7670 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7671 (remote_pass_signals, remote_set_syscall_catchpoint)
7672 (remote_program_signals, )
7673 (remote_thread_always_alive): Remove target_ops parameter.
7674 (remote_thread_alive, remote_thread_name)
7675 (remote_update_thread_list, remote_threads_extra_info)
7676 (remote_static_tracepoint_marker_at)
7677 (remote_static_tracepoint_markers_by_strid)
7678 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7679 (remote_open): Refactor as methods of remote_target.
7680 (extended_remote_open, extended_remote_detach)
7681 (extended_remote_attach, extended_remote_post_attach):
7682 (extended_remote_supports_disable_randomization)
7683 (extended_remote_create_inferior): : Refactor as method of
7684 extended_remote_target.
7685 (remote_set_permissions, remote_open_1, remote_detach)
7686 (remote_follow_fork, remote_follow_exec, remote_disconnect)
7687 (remote_resume, remote_commit_resume, remote_stop)
7688 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7689 (remote_terminal_ours, remote_wait, remote_fetch_registers)
7690 (remote_prepare_to_store, remote_store_registers)
7691 (remote_flash_erase, remote_flash_done, remote_files_info)
7692 (remote_kill, remote_mourn, remote_insert_breakpoint)
7693 (remote_remove_breakpoint, remote_insert_watchpoint)
7694 (remote_watchpoint_addr_within_range)
7695 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7696 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7697 (remote_supports_stopped_by_sw_breakpoint)
7698 (remote_stopped_by_hw_breakpoint)
7699 (remote_supports_stopped_by_hw_breakpoint)
7700 (remote_stopped_by_watchpoint, remote_stopped_data_address)
7701 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7702 (remote_verify_memory): Refactor as methods of remote_target.
7703 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7704 parameter.
7705 (remote_xfer_partial, remote_get_memory_xfer_limit)
7706 (remote_search_memory, remote_rcmd, remote_memory_map)
7707 (remote_pid_to_str, remote_get_thread_local_address)
7708 (remote_get_tib_address, remote_read_description): Refactor as
7709 methods of remote_target.
7710 (remote_target::fileio_open, remote_target::fileio_pwrite)
7711 (remote_target::fileio_pread, remote_target::fileio_close): New.
7712 (remote_hostio_readlink, remote_hostio_fstat)
7713 (remote_filesystem_is_local, remote_can_execute_reverse)
7714 (remote_supports_non_stop, remote_supports_disable_randomization)
7715 (remote_supports_multi_process, remote_supports_cond_breakpoints)
7716 (remote_supports_enable_disable_tracepoint)
7717 (remote_supports_string_tracing)
7718 (remote_can_run_breakpoint_commands, remote_trace_init)
7719 (remote_download_tracepoint, remote_can_download_tracepoint)
7720 (remote_download_trace_state_variable, remote_enable_tracepoint)
7721 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7722 (remote_trace_start, remote_get_trace_status)
7723 (remote_get_tracepoint_status, remote_trace_stop)
7724 (remote_trace_find, remote_get_trace_state_variable_value)
7725 (remote_save_trace_data, remote_get_raw_trace_data)
7726 (remote_set_disconnected_tracing, remote_core_of_thread)
7727 (remote_set_circular_trace_buffer, remote_traceframe_info)
7728 (remote_get_min_fast_tracepoint_insn_len)
7729 (remote_set_trace_buffer_size, remote_set_trace_notes)
7730 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7731 (remote_disable_btrace, remote_teardown_btrace)
7732 (remote_read_btrace, remote_btrace_conf)
7733 (remote_augmented_libraries_svr4_read, remote_load)
7734 (remote_pid_to_exec_file, remote_can_do_single_step)
7735 (remote_execution_direction, remote_thread_handle_to_thread_info):
7736 Refactor as methods of remote_target.
7737 (init_remote_ops, init_extended_remote_ops): Delete.
7738 (remote_can_async_p, remote_is_async_p, remote_async)
7739 (remote_thread_events, remote_upload_tracepoints)
7740 (remote_upload_trace_state_variables): Refactor as methods of
7741 remote_target.
7742 (_initialize_remote): Remove references to init_remote_ops and
7743 init_extended_remote_ops.
7744
7745 * remote-sim.c (gdbsim_target): New class.
7746 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7747 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7748 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7749 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7750 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7751 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7752 Refactor as methods of gdbsim_target.
7753 (gdbsim_ops): Now a gdbsim_target.
7754 (init_gdbsim_ops): Delete.
7755 (gdbsim_cntrl_c): Adjust.
7756 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7757
7758 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7759 (the_amd64_linux_nat_target): New.
7760 (amd64_linux_fetch_inferior_registers)
7761 (amd64_linux_store_inferior_registers): Refactor as methods of
7762 amd64_linux_nat_target.
7763 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7764 * i386-linux-nat.c: Don't include "linux-nat.h".
7765 (i386_linux_nat_target): New class.
7766 (the_i386_linux_nat_target): New.
7767 (i386_linux_fetch_inferior_registers)
7768 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7769 as methods of i386_linux_nat_target.
7770 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7771 * inf-child.c (inf_child_ops): Delete.
7772 (inf_child_fetch_inferior_registers)
7773 (inf_child_store_inferior_registers): Delete.
7774 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7775 methods of inf_child_target.
7776 (inf_child_target::supports_terminal_ours)
7777 (inf_child_target::terminal_init)
7778 (inf_child_target::terminal_inferior)
7779 (inf_child_target::terminal_ours_for_output)
7780 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7781 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7782 New.
7783 (inf_child_open, inf_child_disconnect, inf_child_close)
7784 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7785 (inf_child_post_startup_inferior, inf_child_can_run)
7786 (inf_child_pid_to_exec_file): Refactor as methods of
7787 inf_child_target.
7788 (inf_child_follow_fork): Delete.
7789 (inf_child_target::can_create_inferior)
7790 (inf_child_target::can_attach): New.
7791 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7792 (inf_child_target::has_stack, inf_child_target::has_registers)
7793 (inf_child_target::has_execution): New.
7794 (inf_child_fileio_open, inf_child_fileio_pwrite)
7795 (inf_child_fileio_pread, inf_child_fileio_fstat)
7796 (inf_child_fileio_close, inf_child_fileio_unlink)
7797 (inf_child_fileio_readlink, inf_child_use_agent)
7798 (inf_child_can_use_agent): Refactor as methods of
7799 inf_child_target.
7800 (return_zero, inf_child_target): Delete.
7801 (inf_child_target::inf_child_target): New.
7802 * inf-child.h: Include "target.h".
7803 (inf_child_target): Delete function prototype.
7804 (inf_child_target): New class.
7805 (inf_child_open_target, inf_child_mourn_inferior)
7806 (inf_child_maybe_unpush_target): Delete.
7807 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7808 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7809 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7810 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7811 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7812 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7813 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7814 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7815 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7816 methods of inf_ptrace_target.
7817 (inf_ptrace_target): Delete function.
7818 * inf-ptrace.h: Include "inf-child.h".
7819 (inf_ptrace_target): Delete function declaration.
7820 (inf_ptrace_target): New class.
7821 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7822 * linux-nat.c (linux_target): New.
7823 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7824 (linux_nat_target::~linux_nat_target): New.
7825 (linux_child_post_attach, linux_child_post_startup_inferior)
7826 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7827 (linux_child_remove_fork_catchpoint)
7828 (linux_child_insert_vfork_catchpoint)
7829 (linux_child_remove_vfork_catchpoint)
7830 (linux_child_insert_exec_catchpoint)
7831 (linux_child_remove_exec_catchpoint)
7832 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7833 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7834 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7835 (linux_nat_stopped_data_address)
7836 (linux_nat_stopped_by_sw_breakpoint)
7837 (linux_nat_supports_stopped_by_sw_breakpoint)
7838 (linux_nat_stopped_by_hw_breakpoint)
7839 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7840 (linux_nat_kill, linux_nat_mourn_inferior)
7841 (linux_nat_xfer_partial, linux_nat_thread_alive)
7842 (linux_nat_update_thread_list, linux_nat_pid_to_str)
7843 (linux_nat_thread_name, linux_child_pid_to_exec_file)
7844 (linux_child_static_tracepoint_markers_by_strid)
7845 (linux_nat_is_async_p, linux_nat_can_async_p)
7846 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7847 (linux_nat_supports_multi_process)
7848 (linux_nat_supports_disable_randomization, linux_nat_async)
7849 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
7850 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
7851 (linux_nat_fileio_open, linux_nat_fileio_readlink)
7852 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
7853 methods of linux_nat_target.
7854 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
7855 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
7856 parameter.
7857 (check_stopped_by_watchpoint): Adjust.
7858 (linux_xfer_partial): Delete.
7859 (linux_target_install_ops, linux_target, linux_nat_add_target):
7860 Delete.
7861 (linux_nat_target::linux_nat_target): New.
7862 * linux-nat.h: Include "inf-ptrace.h".
7863 (linux_nat_target): New.
7864 (linux_target, linux_target_install_ops, linux_nat_add_target):
7865 Delete function declarations.
7866 (linux_target): Declare global.
7867 * linux-thread-db.c (thread_db_target): New.
7868 (thread_db_target::thread_db_target): New.
7869 (thread_db_ops): Delete.
7870 (the_thread_db_target): New.
7871 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
7872 (thread_db_update_thread_list, thread_db_pid_to_str)
7873 (thread_db_extra_thread_info)
7874 (thread_db_thread_handle_to_thread_info)
7875 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
7876 (thread_db_resume): Refactor as methods of thread_db_target.
7877 (init_thread_db_ops): Delete.
7878 (_initialize_thread_db): Remove reference to init_thread_db_ops.
7879 * x86-linux-nat.c: Don't include "linux-nat.h".
7880 (super_post_startup_inferior): Delete.
7881 (x86_linux_nat_target::~x86_linux_nat_target): New.
7882 (x86_linux_child_post_startup_inferior)
7883 (x86_linux_read_description, x86_linux_enable_btrace)
7884 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
7885 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
7886 methods of x86_linux_nat_target.
7887 (x86_linux_create_target): Delete. Bits folded ...
7888 (x86_linux_add_target): ... here. Now takes a linux_nat_target
7889 pointer.
7890 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
7891 (x86_linux_nat_target): New class.
7892 (x86_linux_create_target): Delete.
7893 (x86_linux_add_target): Now takes a linux_nat_target pointer.
7894 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
7895 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
7896 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
7897 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
7898 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
7899 make extern.
7900 (x86_use_watchpoints): Delete.
7901 * x86-nat.h: Include "breakpoint.h" and "target.h".
7902 (x86_use_watchpoints): Delete.
7903 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
7904 (x86_stopped_by_watchpoint, x86_stopped_data_address)
7905 (x86_insert_watchpoint, x86_remove_watchpoint)
7906 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
7907 (x86_stopped_by_hw_breakpoint): New declarations.
7908 (x86_nat_target): New template class.
7909
7910 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
7911 (the_ppc_linux_nat_target): New.
7912 (ppc_linux_fetch_inferior_registers)
7913 (ppc_linux_can_use_hw_breakpoint)
7914 (ppc_linux_region_ok_for_hw_watchpoint)
7915 (ppc_linux_ranged_break_num_registers)
7916 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
7917 (ppc_linux_insert_mask_watchpoint)
7918 (ppc_linux_remove_mask_watchpoint)
7919 (ppc_linux_can_accel_watchpoint_condition)
7920 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
7921 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
7922 (ppc_linux_watchpoint_addr_within_range)
7923 (ppc_linux_masked_watch_num_registers)
7924 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
7925 (ppc_linux_read_description): Refactor as methods of
7926 ppc_linux_nat_target.
7927 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
7928
7929 * procfs.c (procfs_xfer_partial): Delete forward declaration.
7930 (procfs_target): New class.
7931 (the_procfs_target): New.
7932 (procfs_target): Delete function.
7933 (procfs_auxv_parse, procfs_attach, procfs_detach)
7934 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
7935 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
7936 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
7937 (procfs_create_inferior, procfs_update_thread_list)
7938 (procfs_thread_alive, procfs_pid_to_str)
7939 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
7940 (procfs_stopped_data_address, procfs_insert_watchpoint)
7941 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
7942 (proc_find_memory_regions, procfs_info_proc)
7943 (procfs_make_note_section): Refactor as methods of procfs_target.
7944 (_initialize_procfs): Adjust.
7945 * sol-thread.c (sol_thread_target): New class.
7946 (sol_thread_ops): Now a sol_thread_target.
7947 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
7948 (sol_thread_fetch_registers, sol_thread_store_registers)
7949 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
7950 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
7951 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
7952 (init_sol_thread_ops): Delete.
7953 (_initialize_sol_thread): Adjust. Remove references to
7954 init_sol_thread_ops and complete_target_initialization.
7955
7956 * windows-nat.c (windows_nat_target): New class.
7957 (windows_fetch_inferior_registers)
7958 (windows_store_inferior_registers, windows_resume, windows_wait)
7959 (windows_attach, windows_detach, windows_pid_to_exec_file)
7960 (windows_files_info, windows_create_inferior)
7961 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
7962 (windows_close, windows_pid_to_str, windows_xfer_partial)
7963 (windows_get_tib_address, windows_get_ada_task_ptid)
7964 (windows_thread_name, windows_thread_alive): Refactor as
7965 windows_nat_target methods.
7966 (do_initial_windows_stuff): Adjust.
7967 (windows_target): Delete function.
7968 (_initialize_windows_nat): Adjust.
7969
7970 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
7971 (darwin_mourn_inferior, darwin_kill_inferior)
7972 (darwin_create_inferior, darwin_attach, darwin_detach)
7973 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
7974 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
7975 (darwin_supports_multi_process): Refactor as darwin_nat_target
7976 methods.
7977 (darwin_resume_to, darwin_files_info): Delete.
7978 (_initialize_darwin_inferior): Rename to ...
7979 (_initialize_darwin_nat): ... this. Adjust to C++ification.
7980 * darwin-nat.h: Include "inf-child.h".
7981 (darwin_nat_target): New class.
7982 (darwin_complete_target): Delete.
7983 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
7984 (darwin_target): New.
7985 (i386_darwin_fetch_inferior_registers)
7986 (i386_darwin_store_inferior_registers): Refactor as methods of
7987 darwin_nat_target.
7988 (darwin_complete_target): Delete, with ...
7989 (_initialize_i386_darwin_nat): ... bits factored out here.
7990
7991 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
7992 (the_alpha_linux_nat_target): New.
7993 (alpha_linux_register_u_offset): Refactor as
7994 alpha_linux_nat_target method.
7995 (_initialize_alpha_linux_nat): Adjust.
7996 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
7997 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
7998 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
7999 methods of linux_nat_trad_target.
8000 (linux_trad_target): Delete.
8001 * linux-nat-trad.h (linux_trad_target): Delete function.
8002 (linux_nat_trad_target): New class.
8003 * mips-linux-nat.c (mips_linux_nat_target): New class.
8004 (super_fetch_registers, super_store_registers, super_close):
8005 Delete.
8006 (the_mips_linux_nat_target): New.
8007 (mips64_linux_regsets_fetch_registers)
8008 (mips64_linux_regsets_store_registers)
8009 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8010 (mips_linux_register_u_offset, mips_linux_read_description)
8011 (mips_linux_can_use_hw_breakpoint)
8012 (mips_linux_stopped_by_watchpoint)
8013 (mips_linux_stopped_data_address)
8014 (mips_linux_region_ok_for_hw_watchpoint)
8015 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8016 (mips_linux_close): Refactor as methods of mips_linux_nat.
8017 (_initialize_mips_linux_nat): Adjust to C++ification.
8018
8019 * aix-thread.c (aix_thread_target): New class.
8020 (aix_thread_ops): Now an aix_thread_target.
8021 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8022 (aix_thread_fetch_registers, aix_thread_store_registers)
8023 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8024 (aix_thread_thread_alive, aix_thread_pid_to_str)
8025 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8026 Refactor as methods of aix_thread_target.
8027 (init_aix_thread_ops): Delete.
8028 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8029 and complete_target_initialization.
8030 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8031 (rs6000_nat_target): New class.
8032 (the_rs6000_nat_target): New.
8033 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8034 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8035 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8036 (super_create_inferior): Delete.
8037 (_initialize_rs6000_nat): Adjust to C++ification.
8038
8039 * arm-linux-nat.c (arm_linux_nat_target): New class.
8040 (the_arm_linux_nat_target): New.
8041 (arm_linux_fetch_inferior_registers)
8042 (arm_linux_store_inferior_registers, arm_linux_read_description)
8043 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8044 (arm_linux_remove_hw_breakpoint)
8045 (arm_linux_region_ok_for_hw_watchpoint)
8046 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8047 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8048 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8049 arm_linux_nat_target.
8050 (_initialize_arm_linux_nat): Adjust to C++ification.
8051
8052 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8053 (the_aarch64_linux_nat_target): New.
8054 (aarch64_linux_fetch_inferior_registers)
8055 (aarch64_linux_store_inferior_registers)
8056 (aarch64_linux_child_post_startup_inferior)
8057 (aarch64_linux_read_description)
8058 (aarch64_linux_can_use_hw_breakpoint)
8059 (aarch64_linux_insert_hw_breakpoint)
8060 (aarch64_linux_remove_hw_breakpoint)
8061 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8062 (aarch64_linux_region_ok_for_hw_watchpoint)
8063 (aarch64_linux_stopped_data_address)
8064 (aarch64_linux_stopped_by_watchpoint)
8065 (aarch64_linux_watchpoint_addr_within_range)
8066 (aarch64_linux_can_do_single_step): Refactor as methods of
8067 aarch64_linux_nat_target.
8068 (super_post_startup_inferior): Delete.
8069 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8070
8071 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8072 (the_hppa_linux_nat_target): New.
8073 (hppa_linux_fetch_inferior_registers)
8074 (hppa_linux_store_inferior_registers): Refactor as methods of
8075 hppa_linux_nat_target.
8076 (_initialize_hppa_linux_nat): Adjust to C++ification.
8077
8078 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8079 (the_ia64_linux_nat_target): New.
8080 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8081 (ia64_linux_stopped_data_address)
8082 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8083 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8084 ia64_linux_nat_target methods.
8085 (super_xfer_partial): Delete.
8086 (_initialize_ia64_linux_nat): Adjust to C++ification.
8087
8088 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8089 (the_m32r_linux_nat_target): New.
8090 (m32r_linux_fetch_inferior_registers)
8091 (m32r_linux_store_inferior_registers): Refactor as
8092 m32r_linux_nat_target methods.
8093 (_initialize_m32r_linux_nat): Adjust to C++ification.
8094
8095 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8096 (the_m68k_linux_nat_target): New.
8097 (m68k_linux_fetch_inferior_registers)
8098 (m68k_linux_store_inferior_registers): Refactor as
8099 m68k_linux_nat_target methods.
8100 (_initialize_m68k_linux_nat): Adjust to C++ification.
8101
8102 * s390-linux-nat.c (s390_linux_nat_target): New class.
8103 (the_s390_linux_nat_target): New.
8104 (s390_linux_fetch_inferior_registers)
8105 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8106 (s390_insert_watchpoint, s390_remove_watchpoint)
8107 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8108 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8109 (s390_auxv_parse, s390_read_description): Refactor as methods of
8110 s390_linux_nat_target.
8111 (_initialize_s390_nat): Adjust to C++ification.
8112
8113 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8114 (the_sparc_linux_nat_target): New.
8115 (_initialize_sparc_linux_nat): Adjust to C++ification.
8116 * sparc-nat.c (sparc_fetch_inferior_registers)
8117 (sparc_store_inferior_registers): Remove target_ops parameter.
8118 * sparc-nat.h (sparc_fetch_inferior_registers)
8119 (sparc_store_inferior_registers): Remove target_ops parameter.
8120 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8121 (the_sparc64_linux_nat_target): New.
8122 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8123
8124 * spu-linux-nat.c (spu_linux_nat_target): New class.
8125 (the_spu_linux_nat_target): New.
8126 (spu_child_post_startup_inferior, spu_child_post_attach)
8127 (spu_child_wait, spu_fetch_inferior_registers)
8128 (spu_store_inferior_registers, spu_xfer_partial)
8129 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8130 methods.
8131 (_initialize_spu_nat): Adjust to C++ification.
8132
8133 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8134 (the_tilegx_linux_nat_target): New.
8135 (fetch_inferior_registers, store_inferior_registers):
8136 Refactor as methods.
8137 (_initialize_tile_linux_nat): Adjust to C++ification.
8138
8139 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8140 (the_xtensa_linux_nat_target): New.
8141 (xtensa_linux_fetch_inferior_registers)
8142 (xtensa_linux_store_inferior_registers): Refactor as
8143 xtensa_linux_nat_target methods.
8144 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8145
8146 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8147 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8148 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8149 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8150 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8151 (fbsd_stopped_by_sw_breakpoint)
8152 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8153 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8154 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8155 (fbsd_post_startup_inferior, fbsd_post_attach)
8156 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8157 (fbsd_set_syscall_catchpoint)
8158 (super_xfer_partial, super_resume, super_wait)
8159 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8160 (fbsd_handle_debug_trap): Remove target_ops parameter.
8161 (fbsd_nat_add_target): Delete.
8162 * fbsd-nat.h: Include "inf-ptrace.h".
8163 (fbsd_nat_add_target): Delete.
8164 (USE_SIGTRAP_SIGINFO): Define.
8165 (fbsd_nat_target): New class.
8166
8167 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8168 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8169 (amd64bsd_target): Delete.
8170 * amd64-bsd-nat.h: New file.
8171 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8172 "x86-bsd-nat.h".
8173 (amd64_fbsd_nat_target): New class.
8174 (the_amd64_fbsd_nat_target): New.
8175 (amd64fbsd_read_description): Refactor as method of
8176 amd64_fbsd_nat_target.
8177 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8178 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8179 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8180 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8181 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8182 (i386bsd_target): Delete.
8183 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8184 (i386bsd_fetch_inferior_registers)
8185 (i386bsd_store_inferior_registers): Declare.
8186 (i386_bsd_nat_target): New class.
8187 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8188 (the_i386_fbsd_nat_target): New.
8189 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8190 i386_fbsd_nat_target methods.
8191 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8192 (_initialize_i386fbsd_nat): Adjust to C++ification.
8193 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8194 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8195 (_initialize_x86_bsd_nat): Adjust to C++ification.
8196 * x86-bsd-nat.h: Include "x86-nat.h".
8197 (x86bsd_target): Delete declaration.
8198 (x86bsd_nat_target): New class.
8199
8200 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8201 (the_aarch64_fbsd_nat_target): New.
8202 (aarch64_fbsd_fetch_inferior_registers)
8203 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8204 aarch64_fbsd_nat_target.
8205 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8206 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8207 (the_alpha_bsd_nat_target): New.
8208 (alphabsd_fetch_inferior_registers)
8209 (alphabsd_store_inferior_registers): Refactor as
8210 alpha_bsd_nat_target methods.
8211 (_initialize_alphabsd_nat): Refactor as methods of
8212 alpha_bsd_nat_target.
8213 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8214 (the_amd64_nbsd_nat_target): New.
8215 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8216 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8217 (the_amd64_obsd_nat_target): New.
8218 (_initialize_amd64obsd_nat): Adjust to C++ification.
8219 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8220 (the_arm_fbsd_nat_target): New.
8221 (arm_fbsd_fetch_inferior_registers)
8222 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8223 (_initialize_arm_fbsd_nat): Refactor as methods of
8224 arm_fbsd_nat_target.
8225 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8226 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8227 (the_arm_netbsd_nat_target): New.
8228 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8229 arm_netbsd_nat_target.
8230 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8231 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8232 (the_hppa_nbsd_nat_target): New.
8233 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8234 hppa_nbsd_nat_target methods.
8235 (_initialize_hppanbsd_nat): Adjust to C++ification.
8236 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8237 (the_hppa_obsd_nat_target): New.
8238 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8239 methods of hppa_obsd_nat_target.
8240 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8241 add_target.
8242 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8243 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8244 add_target.
8245 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8246 (_initialize_i386obsd_nat): Use add_target.
8247 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8248 (the_m68k_bsd_nat_target): New.
8249 (m68kbsd_fetch_inferior_registers)
8250 (m68kbsd_store_inferior_registers): Refactor as methods of
8251 m68k_bsd_nat_target.
8252 (_initialize_m68kbsd_nat): Adjust to C++ification.
8253 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8254 (the_mips_fbsd_nat_target): New.
8255 (mips_fbsd_fetch_inferior_registers)
8256 (mips_fbsd_store_inferior_registers): Refactor as methods of
8257 mips_fbsd_nat_target.
8258 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8259 add_target.
8260 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8261 (the_mips_nbsd_nat_target): New.
8262 (mipsnbsd_fetch_inferior_registers)
8263 (mipsnbsd_store_inferior_registers): Refactor as methods of
8264 mips_nbsd_nat_target.
8265 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8266 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8267 (the_mips64_obsd_nat_target): New.
8268 (mips64obsd_fetch_inferior_registers)
8269 (mips64obsd_store_inferior_registers): Refactor as methods of
8270 mips64_obsd_nat_target.
8271 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8272 add_target.
8273 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8274 nbsd_nat_target.
8275 * nbsd-nat.h: Include "inf-ptrace.h".
8276 (nbsd_nat_target): New class.
8277 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8278 (obsd_wait): Refactor as methods of obsd_nat_target.
8279 (obsd_add_target): Delete.
8280 * obsd-nat.h: Include "inf-ptrace.h".
8281 (obsd_nat_target): New class.
8282 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8283 (the_ppc_fbsd_nat_target): New.
8284 (ppcfbsd_fetch_inferior_registers)
8285 (ppcfbsd_store_inferior_registers): Refactor as methods of
8286 ppc_fbsd_nat_target.
8287 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8288 add_target.
8289 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8290 (the_ppc_nbsd_nat_target): New.
8291 (ppcnbsd_fetch_inferior_registers)
8292 (ppcnbsd_store_inferior_registers): Refactor as methods of
8293 ppc_nbsd_nat_target.
8294 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8295 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8296 (the_ppc_obsd_nat_target): New.
8297 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8298 methods of ppc_obsd_nat_target.
8299 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8300 add_target.
8301 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8302 (the_sh_nbsd_nat_target): New.
8303 (shnbsd_fetch_inferior_registers)
8304 (shnbsd_store_inferior_registers): Refactor as methods of
8305 sh_nbsd_nat_target.
8306 (_initialize_shnbsd_nat): Adjust to C++ification.
8307 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8308 (inf_ptrace_xfer_partial): Delete.
8309 (sparc_xfer_partial, sparc_target): Delete.
8310 * sparc-nat.h (sparc_fetch_inferior_registers)
8311 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8312 (sparc_target): Delete function declaration.
8313 (sparc_target): New template class.
8314 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8315 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8316 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8317 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8318 add_target.
8319 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8320 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8321 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8322 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8323 add_target.
8324 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8325 (the_vax_bsd_nat_target): New.
8326 (vaxbsd_fetch_inferior_registers)
8327 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8328 methods.
8329 (_initialize_vaxbsd_nat): Adjust to C++ification.
8330
8331 * bsd-kvm.c (bsd_kvm_target): New class.
8332 (bsd_kvm_ops): Now a bsd_kvm_target.
8333 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8334 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8335 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8336 bsd_kvm_target.
8337 (bsd_kvm_return_one): Delete.
8338 (bsd_kvm_add_target): Adjust to C++ification.
8339
8340 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8341 (nto_procfs_target_procfs): New classes.
8342 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8343 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8344 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8345 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8346 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8347 (procfs_remove_hw_breakpoint, procfs_resume)
8348 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8349 (procfs_kill_inferior, procfs_store_registers)
8350 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8351 as methods of nto_procfs_target.
8352 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8353 (nto_native_ops): Delete.
8354 (procfs_open, procfs_native_open): Delete.
8355 (nto_native_ops): Now an nto_procfs_target_native.
8356 (init_procfs_targets): Adjust to C++ification.
8357 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8358 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8359 Refactor as methods of nto_procfs_target.
8360
8361 * go32-nat.c (go32_nat_target): New class.
8362 (the_go32_nat_target): New.
8363 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8364 (go32_store_registers, go32_xfer_partial, go32_files_info)
8365 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8366 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8367 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8368 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8369 (go32_target): Delete.
8370 (_initialize_go32_nat): Adjust to C++ification.
8371
8372 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8373 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8374 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8375 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8376 gnu_nat_target.
8377 (gnu_target): Delete.
8378 * gnu-nat.h (gnu_target): Delete.
8379 (gnu_nat_target): New class.
8380 * i386-gnu-nat.c (gnu_base_target): New.
8381 (i386_gnu_nat_target): New class.
8382 (the_i386_gnu_nat_target): New.
8383 (_initialize_i386gnu_nat): Adjust to C++ification.
8384
3fffc070
PA
83852018-05-02 Pedro Alves <palves@redhat.com>
8386
8387 * bfd-target.c (target_bfd_xclose): Rename to ...
8388 (target_bfd_close): ... this.
8389 (target_bfd_reopen): Adjust.
8390 * target.c (target_close): Remove references to to_xclose.
8391 * target.h (target_ops::to_xclose): Delete.
8392 (target_ops::to_close): Update comments.
8393
6798487f
PA
83942018-05-02 Pedro Alves <palves@redhat.com>
8395
8396 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8397 "linux-nat.h".
8398 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8399 * inf-ptrace.c (inf_ptrace_register_u_offset)
8400 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8401 (inf_ptrace_store_register, inf_ptrace_store_registers)
8402 (inf_ptrace_trad_target): Move to ...
8403 * linux-nat-trad.c: ... this new file.
8404 * linux-nat-trad.h: New file.
8405 * linux-nat.c (linux_target_install_ops): Make extern.
8406 (linux_trad_target): Delete.
8407 * linux-nat.h (linux_trad_target): Delete declaration.
8408 (linux_target_install_ops): Declare.
8409 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8410 "linux-nat.h".
8411
c1955e17
PA
84122018-05-02 Pedro Alves <palves@redhat.com>
8413
8414 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8415 procfs_target/add_target here.
8416 * procfs.c (procfs_target): Make static.
8417 (_initialize_procfs): Call add_target here.
8418 * procfs.h (struct target_ops): Remove forward declaration.
8419 (procfs_target): Remove declaration.
8420 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8421
b5c8fcb1
PA
84222018-05-02 Pedro Alves <palves@redhat.com>
8423
8424 * procfs.c (procfs_stopped_by_watchpoint)
8425 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8426 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8427 Forward declare.
8428 (procfs_use_watchpoints): Delete, move contents...
8429 (procfs_target): ... here.
8430 * procfs.h (procfs_use_watchpoints): Delete declaration.
8431 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8432 procfs_use_watchpoints.
8433 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8434 procfs_use_watchpoints.
8435
0489430a
TT
84362018-05-02 Tom Tromey <tom@tromey.com>
8437
8438 PR python/20084:
8439 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8440 and var_zuinteger_unlimited.
8441 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8442 and PARAM_ZUINTEGER_UNLIMITED.
8443 (set_parameter_value): Handle var_zuinteger and
8444 var_zuinteger_unlimited.
8445 (add_setshow_generic): Likewise.
8446 (parmpy_init): Likewise.
8447
1632f8ba
DR
84482018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8449
8450 PR rust/23124
8451 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8452 pointer is not null before dereferencing it.
8453
76761936
TT
84542018-04-30 Tom Tromey <tom@tromey.com>
8455
8456 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8457 is_mi_like_p.
8458
2d33446d
TT
84592018-04-30 Tom Tromey <tom@tromey.com>
8460
8461 * breakpoint.c (mention): Remove use of is_mi_like_p.
8462 (print_mention_ranged_breakpoint): Likewise.
8463 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8464 of is_mi_like_p.
8465
f3c6abab
TT
84662018-04-30 Tom Tromey <tom@tromey.com>
8467
8468 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8469
40c03530
TT
84702018-04-30 Tom Tromey <tom@tromey.com>
8471
8472 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8473 (info_spu_event_command): Remove some uses of is_mi_like_p.
8474
2038b7fd
TT
84752018-04-30 Tom Tromey <tom@tromey.com>
8476
8477 * python/py-framefilter.c (py_print_single_arg)
8478 (enumerate_locals, py_print_args, py_print_frame): Remove some
8479 uses of is_mi_like_p.
8480
4904c3c6
TT
84812018-04-30 Tom Tromey <tom@tromey.com>
8482
8483 * ui-out.c: Update.
8484 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8485 * ui-out.h (ui_out::is_mi_like_p): Now const.
8486 (ui_out::do_is_mi_like_p): Now const.
8487 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8488
7c66fffc
TT
84892018-04-30 Tom Tromey <tom@tromey.com>
8490
8491 * varobj.c (varobj_set_visualizer): Use new_reference.
8492 * python/python.c (gdbpy_decode_line): Use new_reference.
8493 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8494 new_reference.
8495
bbfa6f00
TT
84962018-04-30 Tom Tromey <tom@tromey.com>
8497
8498 * varobj.c (install_new_value): Use new_reference.
8499 * value.h (value_incref): Return void. Swap intro comment with
8500 value_decref.
8501 * value.c (set_value_parent): Use new_reference.
8502 (value_incref): Return void. Update intro comment.
8503 (release_value): Use new_reference.
8504 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8505
1831a9f9
TT
85062018-04-30 Tom Tromey <tom@tromey.com>
8507
8508 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8509 * gdb_bfd.h (new_bfd_ref): Remove.
8510 (gdb_bfd_open): Update comment.
8511 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8512 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8513 (gdb_bfd_fdopenr): Use new_reference.
8514 * exec.c (exec_file_attach): Use new_reference.
8515
7c1b5f3d
TT
85162018-04-30 Tom Tromey <tom@tromey.com>
8517
8518 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8519 method.
8520
e11fb955
TT
85212018-04-30 Tom Tromey <tom@tromey.com>
8522
8523 * jit.c (jit_read_code_entry): Use type_align.
8524 * i386-tdep.c (i386_gdbarch_init): Don't call
8525 set_gdbarch_long_long_align_bit.
8526 * gdbarch.sh: Remove long_long_align_bit.
8527 * gdbarch.c, gdbarch.h: Rebuild.
8528 * arc-tdep.c (arc_type_align): New function.
8529 (arc_gdbarch_init): Use arc_type_align. Don't call
8530 set_gdbarch_long_long_align_bit.
8531
2fff16dd
TT
85322018-04-30 Tom Tromey <tom@tromey.com>
8533
8534 * rust-lang.c (rust_type_alignment): Remove.
8535 (rust_composite_type): Use type_align.
8536
6d7bb824
TT
85372018-04-30 Tom Tromey <tom@tromey.com>
8538
8539 * NEWS: Mention Type.align.
8540 * python/py-type.c (typy_get_alignof): New function.
8541 (type_object_getset): Add "alignof".
8542
007e1530
TT
85432018-04-30 Tom Tromey <tom@tromey.com>
8544
8545 PR exp/17095:
8546 * NEWS: Update.
8547 * std-operator.def (UNOP_ALIGNOF): New operator.
8548 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8549 New.
8550 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8551 * c-lang.c (c_op_print_tab): Add alignof.
8552 * c-exp.y (ALIGNOF): New token.
8553 (exp): Add "ALIGNOF" production.
8554 (ident_tokens): Add _Alignof and alignof.
8555
2b4424c3
TT
85562018-04-30 Tom Tromey <tom@tromey.com>
8557
8558 * i386-tdep.c (i386_type_align): New function.
8559 (i386_gdbarch_init): Update.
8560 * gdbarch.sh (type_align): New method.
8561 * gdbarch.c, gdbarch.h: Rebuild.
8562 * arch-utils.h (default_type_align): Declare.
8563 * arch-utils.c (default_type_align): New function.
8564 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8565 (struct type) <align_log2>: New field.
8566 <instance_flags>: Now a bitfield.
8567 (TYPE_RAW_ALIGN): New macro.
8568 (type_align, type_raw_align, set_type_align): Declare.
8569 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8570 functions.
8571 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8572 (get_alignment, maybe_set_alignment): New functions.
8573 (read_structure_type, read_enumeration_type, read_array_type)
8574 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8575 (read_subrange_type, read_base_type): Set type alignment.
8576
d33bc52e
SM
85772018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8578
8579 * dwarf2read.c (read_index_from_section): Use bool.
8580
e28b63a9
FG
85812018-04-29 Fabian Groffen <grobian@gentoo.org>
8582
8583 PR gdb/22950
8584 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8585 with #ifdef.
8586
cd8c76e4
JR
85872018-04-29 John Reiser <jreiser@BitWagon.com>
8588
8589 PR build/22873
8590 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8591 last step, and do it atomically.
8592
476d250e
AO
85932018-04-27 Alexandre Oliva <aoliva@redhat.com>
8594
8595 * compile/compile-c-types.c (convert_int, convert_float):
8596 Update for C FE v1.
8597
6873858b
TT
85982018-04-27 Tom Tromey <tom@tromey.com>
8599
8600 PR rust/22545:
8601 * rust-lang.c (rust_inclusive_range_type_p): New function.
8602 (rust_range): Handle inclusive ranges.
8603 (rust_compute_range): Likewise.
8604 * rust-exp.y (struct rust_op) <inclusive>: New field.
8605 (DOTDOTEQ): New constant.
8606 (range_expr): Add "..=" productions.
8607 (operator_tokens): Add "..=" token.
8608 (ast_range): Add "inclusive" parameter.
8609 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8610 ranges.
8611 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8612 bounds values.
8613 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8614 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8615 Update comments.
8616 * expprint.c (print_subexp_standard): Handle new bounds values.
8617 (dump_subexp_body_standard): Likewise.
8618
632e107b
TT
86192018-04-27 Tom Tromey <tom@tromey.com>
8620
8621 * configure: Rebuild.
8622 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8623 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8624 "OVERRIDE".
8625 (class symbol_needs_eval_context): Likewise.
8626 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8627 (mock_mapped_index::symbol_name_at): Use "override". Remove
8628 "virtual".
8629 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8630 "override".
8631 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8632 * aarch64-tdep.c (instruction_reader::read): Use "override".
8633 (instruction_reader_test::read): Likewise.
8634 * arm-tdep.c (instruction_reader::read): Use "override".
8635 (instruction_reader_thumb::read): Likewise.
8636
b75abf5b
AK
86372018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
8638
8639 PR remote/9665
8640 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8641 instead of remote_send.
8642 (remote_send): Remove.
8643
79188d8d
PA
86442018-04-26 Pedro Alves <palves@redhat.com>
8645
8646 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8647 find_function_start_sal instead of find_pc_line.
8648
f50776aa
PA
86492018-04-26 Pedro Alves <palves@redhat.com>
8650
8651 * breakpoint.c (set_breakpoint_location_function): Handle
8652 mst_data_gnu_ifunc.
8653 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8654 * elfread.c (elf_symtab_read): Give data symbols with
8655 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8656 (elf_rel_plt_read): Update comment.
8657 * linespec.c (convert_linespec_to_sals): Handle
8658 mst_data_gnu_ifunc.
8659 (minsym_found): Handle mst_data_gnu_ifunc.
8660 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8661 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8662 * parse.c (find_minsym_type_and_address): Handle
8663 mst_data_gnu_ifunc.
8664 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8665 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8666 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8667 comment.
8668 <mst_data_gnu_ifunc>: New enumerator.
8669
20944a6e
PA
86702018-04-26 Pedro Alves <palves@redhat.com>
8671
8672 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8673 (lookup_minimal_symbol_by_pc_section): ... this. Replace
8674 'want_trampoline' parameter by a lookup_msym_prefer parameter.
8675 Handle it.
8676 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8677 (lookup_minimal_symbol_by_pc): Adjust.
8678 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8679 (lookup_solib_trampoline_symbol_by_pc): Adjust.
8680 * minsyms.h (lookup_msym_prefer): New enum.
8681 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8682 parameter by a lookup_msym_prefer parameter.
8683
1adeb822
PA
86842018-04-26 Pedro Alves <palves@redhat.com>
8685
8686 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8687 ends in "@plt" instead of looking at the symbol's section.
8688
a0aca7b0
PA
86892018-04-26 Pedro Alves <palves@redhat.com>
8690
8691 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
8692 all references.
8693 (find_pc_partial_function_gnu_ifunc): Rename to ...
8694 (find_pc_partial_function): ... this, and remove references to
8695 'is_gnu_ifunc_p'.
8696 (find_pc_partial_function): Delete old implementation.
8697 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8698
76af0f26
PA
86992018-04-26 Pedro Alves <palves@redhat.com>
8700
8701 * linespec.c (struct bound_minimal_symbol_search_key): New.
8702 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
8703 skip first line if we found a GNU ifunc minimal symbol by name.
8704 (compare_msymbols): Change parameters to work with a destructured
8705 lhs minsym.
8706 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8707 functions.
8708
3467ec66
PA
87092018-04-26 Pedro Alves <palves@redhat.com>
8710
8711 * breakpoint.c (set_breakpoint_location_function): Don't resolve
8712 ifunc targets here. Instead, if we have an ifunc minsym, use its
8713 address/name.
8714 (add_location_to_breakpoint): Store the minsym and the objfile in
8715 the breakpoint location.
8716 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8717 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8718 Record the minsym in the sal.
8719 * symtab.h (symtab_and_line) <msymbol>: New field.
8720
28f4fa4d
PA
87212018-04-26 Pedro Alves <palves@redhat.com>
8722
8723 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8724 unless we actually resolved the ifunc.
8725
ca31ab1d
PA
87262018-04-26 Pedro Alves <palves@redhat.com>
8727
8728 * c-exp.y (variable production): Prefer ifunc minsyms over
8729 regular function symbols.
8730 * symtab.c (find_gnu_ifunc): New function.
8731 * minsyms.h (lookup_msym_prefer): New enum.
8732 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8733 parameter by a lookup_msym_prefer parameter.
8734 * symtab.h (find_gnu_ifunc): New declaration.
8735
8388016d
PA
87362018-04-26 Pedro Alves <palves@redhat.com>
8737
8738 * blockframe.c (find_gnu_ifunc_target_type): New function.
8739 (find_function_type): New.
8740 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8741 return a value with a memory address.
8742 (eval_call): For calls to GNU ifunc functions, try to find the
8743 type of the target function from the type that the resolver
8744 returns.
8745 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8746 symbols.
8747 * infcall.c (find_function_return_type): Delete.
8748 (find_function_addr): Add 'function_type' parameter. For calls to
8749 GNU ifunc functions, try to find the type of the target function
8750 from the type that the resolver returns, and return it via
8751 FUNCTION_TYPE.
8752 (call_function_by_hand_dummy): Adjust to use the function type
8753 returned by find_function_addr.
8754 (find_function_addr): Add 'function_type' parameter and move
8755 description here.
8756 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8757 declarations.
8758
a376e11d
PA
87592018-04-26 Pedro Alves <palves@redhat.com>
8760
8761 * c-exp.y (variable production): Skip finding an alias for ifunc
8762 symbols.
8763
02e169e2
PA
87642018-04-26 Pedro Alves <palves@redhat.com>
8765
8766 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8767
249b5733
PA
87682018-04-25 Pedro Alves <palves@redhat.com>
8769
8770 * infcmd.c (kill_command): Print the pid as string, not the whole
8771 thread's ptid. Add comment. s/has been killed/killed/ in output
8772 message.
8773 * remote.c (remote_detach_1): Print the pid as string, not the
8774 whole thread's ptid.
8775
f67c0c91
SDJ
87762018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8777 Sergio Durigan Junior <sergiodj@redhat.com>
8778 Pedro Alves <palves@redhat.com>
8779
8780 * infcmd.c (kill_command): Print message when inferior has
8781 been killed.
8782 * inferior.c (print_inferior_events): Remove 'static'. Set as
8783 '1'.
8784 (add_inferior): Improve message printed when
8785 'print_inferior_events' is on.
8786 (exit_inferior): Remove message printed when
8787 'print_inferior_events' is on.
8788 (detach_inferior): Improve message printed when
8789 'print_inferior_events' is on.
8790 (initialize_inferiors): Use 'add_inferior_silent' to set
8791 'current_inferior_'.
8792 * inferior.h (print_inferior_events): Declare here as
8793 'extern'.
8794 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8795 '[Detaching...]' messages when 'print_inferior_events' is on.
8796 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8797 as prefix/suffix for messages. Remove periods. Fix erroneous
8798 'Detaching after fork from child...', replace it by '... from
8799 parent...'.
8800 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8801 prefix/suffix when printing 'Detaching...' messages. Print
8802 them when 'print_inferior_events' is on.
8803 * remote.c (remote_detach_1): Print message when detaching
8804 from inferior and '!is_fork_parent'.
8805
e427af18
TT
88062018-04-24 Tom Tromey <tom@tromey.com>
8807
8808 * cli-out.h: Reindent.
8809
05b1d8d6
TT
88102018-04-24 Tom Tromey <tom@tromey.com>
8811
8812 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8813 (cli_ui_out::do_field_string): Use fputs_filtered.
8814 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8815
a95c7dab
TT
88162018-04-23 Tom Tromey <tom@tromey.com>
8817
8818 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8819 gdb::unique_xmalloc_ptr.
8820
458412c3
TT
88212018-04-23 Tom Tromey <tom@tromey.com>
8822
8823 * configure: Rebuild.
8824
db86b02b
RS
88252018-04-22 Rajendra SY <rajendra.sy@gmail.com>
8826
8827 PR gdb/23095
8828 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8829 prepare_for_testing. Set normal_bp to r_debug_state if target
8830 is bsd.
8831
00aecdcf
PA
88322018-04-21 Pedro Alves <palves@redhat.com>
8833 Rajendra SY <rajendra.sy@gmail.com>
8834
8835 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8836 * remote.c (extended_remote_attach): In all-stop mode, mark the
8837 thread as executing.
8838
224608c3
PW
88392018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8840
8841 * thread.c (thread_apply_all_command): Fix comment.
8842 (thread_command): Fix comment.
8843
3b74854b
AH
88442018-04-10 Alan Hayward <alan.hayward@arm.com>
8845
8846 * common/tdesc.h (tdesc_create_feature): Remove xml filename
8847 parameter.
8848 * features/aarch64-core.c (create_feature_aarch64_core):
8849 Regenerate.
8850 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
8851 Likewise.
8852 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
8853 Likewise.
8854 * features/i386/32bit-avx512.c
8855 (create_feature_i386_32bit_avx512): Likewise.
8856 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
8857 Likewise.
8858 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
8859 Likewise.
8860 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
8861 Likewise.
8862 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
8863 Likewise.
8864 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
8865 Likewise.
8866 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
8867 Likewise.
8868 * features/i386/64bit-avx512.c
8869 (create_feature_i386_64bit_avx512): Likewise.
8870 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
8871 Likewise.
8872 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
8873 Likewise.
8874 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
8875 Likewise.
8876 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
8877 Likewise.
8878 * features/i386/64bit-segments.c
8879 (create_feature_i386_64bit_segments): Likewise.
8880 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
8881 Likewise.
8882 * features/i386/x32-core.c
8883 (create_feature_i386_x32_core): Likewise.
8884 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
8885 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
8886 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
8887 * target-descriptions.c: In generated code, don't pass xml
8888 filename.
8889
e98577a9
AH
88902018-04-18 Alan Hayward <alan.hayward@arm.com>
8891
8892 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
8893 (print_xml_feature::visit_post): Likewise.
8894 (print_xml_feature::visit): Likewise.
8895 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
8896 (print_xml_feature): Add new class.
8897 * regformats/regdat.sh: Null xmltarget on feature targets.
8898 * target-descriptions.c (struct target_desc): Add xmltarget.
8899 (maintenance_check_tdesc_xml_convert): Add unittest function.
8900 (tdesc_get_features_xml): Add function to get xml.
8901 (maintenance_check_xml_descriptions): Test xml generation.
8902 * xml-tdesc.c (string_read_description_xml): Add function.
8903 * xml-tdesc.h (string_read_description_xml): Add declaration.
8904
ad7fc756
AH
89052018-04-18 Alan Hayward <alan.hayward@arm.com>
8906
8907 * features/Makefile: Add feature marker to targets with new style
8908 target descriptions.
8909 * regformats/aarch64.dat: Regenerate.
8910 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
8911 * regformats/i386/amd64-avx-linux.dat: Likewise.
8912 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
8913 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
8914 * regformats/i386/amd64-linux.dat: Likewise.
8915 * regformats/i386/amd64-mpx-linux.dat: Likewise.
8916 * regformats/i386/amd64.dat: Likewise.
8917 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
8918 * regformats/i386/i386-avx-linux.dat: Likewise.
8919 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
8920 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
8921 * regformats/i386/i386-linux.dat: Likewise.
8922 * regformats/i386/i386-mmx-linux.dat: Likewise.
8923 * regformats/i386/i386-mpx-linux.dat: Likewise.
8924 * regformats/i386/i386.dat: Likewise.
8925 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
8926 * regformats/i386/x32-avx-linux.dat: Likewise.
8927 * regformats/i386/x32-linux.dat: Likewise.
8928 * regformats/tic6x-c62x-linux.dat: Likewise.
8929 * regformats/tic6x-c64x-linux.dat: Likewise.
8930 * regformats/tic6x-c64xp-linux.dat: Likewise.
8931 * regformats/regdat.sh: Parse feature marker.
8932
d278f585
AH
89332018-04-18 Alan Hayward <alan.hayward@arm.com>
8934
8935 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
8936 (tdesc_osabi_name): Likewise.
8937 * target-descriptions.c (tdesc_architecture_name): Add new
8938 function.
8939 (tdesc_osabi_name): Likewise.
8940
eee8a18d
AH
89412018-04-18 Alan Hayward <alan.hayward@arm.com>
8942
8943 * common/tdesc.c (tdesc_predefined_type): Move to here.
8944 (tdesc_named_type): Likewise.
8945 (tdesc_create_vector): Likewise.
8946 (tdesc_create_struct): Likewise.
8947 (tdesc_set_struct_size): Likewise.
8948 (tdesc_create_union): Likewise.
8949 (tdesc_create_flags): Likewise.
8950 (tdesc_create_enum): Likewise.
8951 (tdesc_add_field): Likewise.
8952 (tdesc_add_typed_bitfield): Likewise.
8953 (tdesc_add_bitfield): Likewise.
8954 (tdesc_add_flag): Likewise.
8955 (tdesc_add_enum_value): Likewise.
8956 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
8957 (struct tdesc_type_vector): Likewise.
8958 (struct tdesc_type_field): Likewise.
8959 (struct tdesc_type_with_fields): Likewise.
8960 (tdesc_create_enum): Add declaration.
8961 (tdesc_add_typed_bitfield): Likewise.
8962 (tdesc_add_enum_value): Likewise.
8963 * target-descriptions.c (tdesc_type_field): Move from here.
8964 (tdesc_type_builtin): Likewise.
8965 (tdesc_type_vector): Likewise.
8966 (tdesc_type_with_fields): Likewise.
8967 (tdesc_predefined_types): Likewise.
8968 (tdesc_named_type): Likewise.
8969 (tdesc_create_vector): Likewise.
8970 (tdesc_create_struct): Likewise.
8971 (tdesc_set_struct_size): Likewise.
8972 (tdesc_create_union): Likewise.
8973 (tdesc_create_flags): Likewise.
8974 (tdesc_create_enum): Likewise.
8975 (tdesc_add_field): Likewise.
8976 (tdesc_add_typed_bitfield): Likewise.
8977 (tdesc_add_bitfield): Likewise.
8978 (tdesc_add_flag): Likewise.
8979 (tdesc_add_enum_value): Likewise.
8980 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
8981 (tdesc_add_typed_bitfield): Likewise.
8982 (tdesc_add_enum_value): Likewise.
8983
82ec9bc7
AH
89842018-04-18 Alan Hayward <alan.hayward@arm.com>
8985
8986 * common/tdesc.c (tdesc_feature::accept): Move to here.
8987 (tdesc_feature::operator==): Likewise.
8988 (tdesc_create_reg): Likewise.
8989 * common/tdesc.h (tdesc_type_kind): Likewise.
8990 (struct tdesc_type): Likewise.
8991 (struct tdesc_feature): Likewise.
8992 * regformats/regdat.sh: Create a feature.
8993 * target-descriptions.c (tdesc_type_kind): Move from here.
8994 (tdesc_type): Likewise.
8995 (tdesc_type_up): Likewise.
8996 (tdesc_feature): Likewise.
8997 (tdesc_create_reg): Likewise.
8998
ea3e7d71
AH
89992018-04-18 Alan Hayward <alan.hayward@arm.com>
9000
9001 * Makefile.in: Add arch/tdesc.c
9002 * common/tdesc.c: New file.
9003 * common/tdesc.h (tdesc_element_visitor): Move to here.
9004 (tdesc_element): Likewise.
9005 (tdesc_reg): Likewise.
9006 (tdesc_reg_up): Likewise.
9007 * regformats/regdef.h (reg): Add offset to constructors.
9008 * target-descriptions.c (tdesc_element_visitor): Move from here.
9009 (tdesc_element): Likewise.
9010 (tdesc_reg): Likewise.
9011 (tdesc_reg_up): Likewise.
9012
bedda9ac
TT
90132018-04-17 Tom Tromey <tom@tromey.com>
9014
9015 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9016 discriminant field.
9017
a037790e
TT
90182018-04-17 Tom Tromey <tom@tromey.com>
9019
9020 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9021
c7dcbf88
AA
90222018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9023
9024 * symtab.c (print_symbol_info): Skip printing filename and line
9025 number when `last' is NULL.
9026 (symtab_symbol_info): Use empty string instead of NULL for first
9027 invocation of print_symbol_info.
9028 (rbreak_command): Pass NULL to `last' parameter of
9029 print_symbol_info.
9030
07d28c77
SM
90312018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9032
9033 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9034 instead of nullptr.
9035
8a3de5e1
PA
90362018-04-16 Pedro Alves <palves@redhat.com>
9037
9038 * MAINTAINERS (sh): Remove.
9039 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9040 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9041 (ALLDEPFILES): Remove sh64-tdep.c.
9042 * NEWS: Mentions that support for SH-5/SH64 is removed.
9043 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9044 (sh*-*-openbsd*): Ditto.
9045 (sh64-*-elf*): Remove.
9046 (sh*): Remove.
9047 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9048 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9049 * sh-tdep.c: No longer include "sh64-tdep.h".
9050 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9051 * sh64-tdep.c, sh64-tdep.h: Remove files.
9052
a2a79012
PA
90532018-04-16 Pedro Alves <palves@redhat.com>
9054
9055 * MAINTAINERS: Remove m88k.
9056 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9057 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9058 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9059 * NEWS: Mention that support for m88k was removed.
9060 * configure.host (m88*-*-*): Remove support.
9061 * configure.nat (m88k-*-*): Remove support.
9062 * configure.tgt (m88*-*-openbsd*): Remove.
9063 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9064
eda4efb1
SM
90652018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9066
9067 * configure.tgt (x86_tobjs): New variable.
9068 (amd64_tobjs, i386_tobjs): Use it.
9069
b744723f
AA
90702018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9071
9072 * symtab.c (print_symbol_info): Precede the symbol definition by
9073 the line number when available.
9074 * NEWS: Advertise this enhancement.
9075
4a4495d6
MM
90762018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9077
9078 * NEWS (New options): announce set/show record btrace cpu.
9079 * btrace.c: Include record-btrace.h.
9080 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9081 the vendor is unknown.
9082 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9083 Maybe overwrite the btrace configuration's cpu.
9084 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9085 (btrace_fetch): Add cpu parameter. Update callers.
9086 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9087 Maybe overwrite the btrace configuration's cpu. Skip enabling
9088 errata workarounds if the vendor is unknown.
9089 * python/py-record-btrace.c: Include record-btrace.h.
9090 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9091 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9092 * record-btrace.c (record_btrace_cpu_state_kind): New.
9093 (record_btrace_cpu): New.
9094 (set_record_btrace_cpu_cmdlist): New.
9095 (record_btrace_get_cpu): New.
9096 (require_btrace_thread, record_btrace_info)
9097 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9098 (cmd_set_record_btrace_cpu_none): New.
9099 (cmd_set_record_btrace_cpu_auto): New.
9100 (cmd_set_record_btrace_cpu): New.
9101 (cmd_show_record_btrace_cpu): New.
9102 (_initialize_record_btrace): Initialize set/show record btrace cpu
9103 commands.
9104 * record-btrace.h (record_btrace_get_cpu): New.
9105
69f90c75
MM
91062018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9107
9108 * record.c (set_record_command): Fix typo in message.
9109
b85310e1
MM
91102018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9111
9112 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9113
1d509aa6
MM
91142018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9115
9116 * infrun.c (process_event_stop_test): Call
9117 gdbarch_in_indirect_branch_thunk.
9118 * gdbarch.sh (in_indirect_branch_thunk): New.
9119 * gdbarch.c: Regenerated.
9120 * gdbarch.h: Regenerated.
9121 * x86-tdep.h: New.
9122 * x86-tdep.c: New.
9123 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9124 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9125 (ALLDEPFILES): Add x86-tdep.c.
9126 * arch-utils.h (default_in_indirect_branch_thunk): New.
9127 * arch-utils.c (default_in_indirect_branch_thunk): New.
9128 * i386-tdep: Include x86-tdep.h.
9129 (i386_in_indirect_branch_thunk): New.
9130 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9131 function.
9132 * amd64-tdep: Include x86-tdep.h.
9133 (amd64_in_indirect_branch_thunk): New.
9134 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9135
b4be9bfd
JK
91362018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9137
9138 PR gdb/23053
9139 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9140 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9141 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9142 regression.
9143
53d7df28
TT
91442018-04-12 Tom Tromey <tom@tromey.com>
9145
9146 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9147 (rust_evaluate_subexp): Likewise.
9148
70b33f19
PA
91492018-04-12 Pedro Alves <palves@redhat.com>
9150
9151 * procfs.c (procfs_detach): Make forward declaration's prototype
9152 match definition's protototype.
9153 (proc_get_LDT_entry): Remove stale do_cleanups call.
9154
436411b1
PA
91552018-04-12 Pedro Alves <palves@redhat.com>
9156
9157 * target.h (target_ops::to_has_exited): Delete.
9158 (target_has_exited): Delete.
9159 * target-delegates.c: Regenerate.
9160
20db9c52
PA
91612018-04-11 Pedro Alves <palves@redhat.com>
9162
9163 * target.c (fileio_fh_t::t): Add comment.
9164 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9165 (target_fileio_close): Handle a NULL target.
9166 (invalidate_fileio_fh): New.
9167 (target_close): Call it.
9168 * remote.c (remote_hostio_send_command): No longer check whether
9169 remote_desc is open.
9170
5ff79300
PA
91712018-04-11 Pedro Alves <palves@redhat.com>
9172
9173 * target.c (fileio_fh_t): Make it a named struct instead of a
9174 typedef.
9175 (fileio_fh_t::is_closed): New method.
9176 (DEF_VEC_O (fileio_fh_t)): Remove.
9177 (fileio_fhandles): Now a std::vector.
9178 (is_closed_fileio_fh): Delete.
9179 (acquire_fileio_fd): Adjust. Rename parameters.
9180 (release_fileio_fd): Adjust.
9181 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9182 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9183 (target_fileio_close): Adjust.
9184
6e22e10d
SM
91852018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9186
9187 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9188 index.
9189
731f534f
PA
91902018-04-10 Pedro Alves <palves@redhat.com>
9191
9192 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9193 (scoped_finish_thread_state): New class.
9194 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9195 cleanup.
9196 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9197 (fetch_inferior_event, normal_stop): Likewise.
9198 * thread.c (finish_thread_state_cleanup): Delete.
9199
d5f4488f
SM
92002018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9201 Pedro Alves <palves@redhat.com>
9202
9203 * value.c: Include "selftest.h" and "common/array-view.h".
9204 (struct range) <operator ==>: New.
9205 (test_ranges_contain): New.
9206 (check_ranges_vector): New.
9207 (test_insert_into_bit_range_vector): New.
9208 (_initialize_values): Register selftests.
9209 * common/array-view.h (operator==, operator!=): New.
9210
b24531ed
SM
92112018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9212
9213 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9214 an iterator.
9215 * inline-frame.c: Include <algorithm>.
9216 (struct inline_state): Add constructor.
9217 (inline_state_s): Remove.
9218 (DEF_VEC_O(inline_state_s)): Remove.
9219 (inline_states): Change type to std::vector.
9220 (find_inline_frame_state): Adjust to std::vector.
9221 (allocate_inline_frame_state): Remove.
9222 (clear_inline_frame_state): Adjust to std::vector.
9223 (skip_inline_frames): Adjust to std::vector.
9224
c252925c
SM
92252018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9226
9227 * tracepoint.h (struct trace_state_variable): Add constructor.
9228 <name>: Change type to std::string.
9229 * tracepoint.c (tsv_s): Remove.
9230 (DEF_VEC_O(tsv_s)): Remove.
9231 (tvariables): Change to std::vector.
9232 (create_trace_state_variable): Adjust to std::vector.
9233 (find_trace_state_variable): Likewise.
9234 (find_trace_state_variable_by_number): Likewise.
9235 (delete_trace_state_variable): Likewise.
9236 (trace_variable_command): Adjust to std::string.
9237 (delete_trace_variable_command): Likewise.
9238 (tvariables_info_1): Adjust to std::vector.
9239 (save_trace_state_variables): Likewise.
9240 (start_tracing): Likewise.
9241 (merge_uploaded_trace_state_variables): Adjust to std::vector
9242 and std::string.
9243 * target.h (struct target_ops)
9244 <to_download_trace_state_variable>: Pass reference to
9245 trace_state_variable.
9246 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9247 * target-delegates.c: Re-generate.
9248 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9249 (mi_tsv_deleted): Likewise.
9250 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9251 * remote.c (remote_download_trace_state_variable): Change
9252 pointer to reference and adjust.
9253 * make-target-delegates (parse_argtypes): Handle references.
9254 (write_function_header): Likewise.
9255 (munge_type): Likewise.
9256
c9638d26
SM
92572018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9258
9259 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9260 string_view-selftests.c.
9261 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9262 testsuite.
9263 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9264 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9265 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9266 * unittests/basic_string_view/element_access/char/1.cc:
9267 Likewise.
9268 * unittests/basic_string_view/element_access/char/empty.cc:
9269 Likewise.
9270 * unittests/basic_string_view/element_access/char/front_back.cc:
9271 Likewise.
9272 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9273 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9274 Likewise.
9275 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9276 Likewise.
9277 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9278 Likewise.
9279 * unittests/basic_string_view/operations/compare/char/1.cc:
9280 Likewise.
9281 * unittests/basic_string_view/operations/compare/char/13650.cc:
9282 Likewise.
9283 * unittests/basic_string_view/operations/copy/char/1.cc:
9284 Likewise.
9285 * unittests/basic_string_view/operations/data/char/1.cc:
9286 Likewise.
9287 * unittests/basic_string_view/operations/find/char/1.cc:
9288 Likewise.
9289 * unittests/basic_string_view/operations/find/char/2.cc:
9290 Likewise.
9291 * unittests/basic_string_view/operations/find/char/3.cc:
9292 Likewise.
9293 * unittests/basic_string_view/operations/find/char/4.cc:
9294 Likewise.
9295 * unittests/basic_string_view/operations/rfind/char/1.cc:
9296 Likewise.
9297 * unittests/basic_string_view/operations/rfind/char/2.cc:
9298 Likewise.
9299 * unittests/basic_string_view/operations/rfind/char/3.cc:
9300 Likewise.
9301 * unittests/basic_string_view/operations/substr/char/1.cc:
9302 Likewise.
9303 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9304 * unittests/string_view-selftests.c: New file.
9305
fdc11678
SM
93062018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9307
9308 * unittests/basic_string_view/capacity/1.cc: New file.
9309 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9310 * unittests/basic_string_view/cons/char/1.cc: New file.
9311 * unittests/basic_string_view/cons/char/2.cc: New file.
9312 * unittests/basic_string_view/cons/char/3.cc: New file.
9313 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9314 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9315 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9316 * unittests/basic_string_view/element_access/char/1.cc: New file.
9317 * unittests/basic_string_view/element_access/char/2.cc: New file.
9318 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9319 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9320 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9321 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9322 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9323 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9324 * unittests/basic_string_view/include.cc: New file.
9325 * unittests/basic_string_view/inserters/char/1.cc: New file.
9326 * unittests/basic_string_view/inserters/char/2.cc: New file.
9327 * unittests/basic_string_view/inserters/char/3.cc: New file.
9328 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9329 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9330 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9331 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9332 * unittests/basic_string_view/literals/types.cc: New file.
9333 * unittests/basic_string_view/literals/values.cc: New file.
9334 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9335 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9336 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9337 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9338 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9339 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9340 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9341 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9342 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9343 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9344 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9345 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9346 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9347 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9348 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9349 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9350 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9351 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9352 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9353 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9354 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9355 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9356 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9357 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9358 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9359 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9360 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9361 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9362 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9363 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9364 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9365 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9366 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9367 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9368 * unittests/basic_string_view/operators/char/2.cc: New file.
9369 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9370 * unittests/basic_string_view/range_access/char/1.cc: New file.
9371 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9372 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9373 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9374 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9375 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9376 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9377 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9378 * unittests/basic_string_view/typedefs.cc: New file.
9379 * unittests/basic_string_view/types/1.cc: New file.
9380
8345c4a2
SM
93812018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9382
9383 * common/gdb_string_view.h: Remove libstdc++ implementation
9384 details, adjust to gdb reality.
9385 * common/gdb_string_view.tcc: Likewise.
9386 * cli/cli-script.c (struct string_view): Remove.
9387 (user_args) <m_args>: Change element type to gdb::string_view.
9388 (user_args::insert_args): Adjust.
9389
7adcdf08
SM
93902018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9391
9392 * common/gdb_string_view.h: New file.
9393 * common/gdb_string_view.tcc: New file.
9394
41260ac2
SM
93952018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9396
9397 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9398 * configure: Re-generate.
9399
0bee6dd4
PA
94002018-04-09 Pedro Alves <palves@redhat.com>
9401
9402 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9403 (set_target_gdbarch): Call
9404 gdb::observers::architecture_changed.notify instead of
9405 observer_notify_architecture_changed.
9406
6f14adc5
SM
94072018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9408
9409 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9410 (do_restore_current_traceframe_cleanup): Remove.
9411 (restore_current_traceframe_cleanup_dtor): Remove.
9412 (make_cleanup_restore_current_traceframe): Remove.
9413 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9414 New.
9415 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9416 * infrun.c (fetch_inferior_event): Use
9417 scoped_restore_current_traceframe.
9418
b2bdb8cf
SM
94192018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9420
9421 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9422 Remove.
9423 <n_allocated_type_units>: Remove.
9424 <all_type_units>: Change to std::vector.
9425 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9426 to std::vector change.
9427 (dwarf2_per_objfile::get_cutu): Likewise.
9428 (dwarf2_per_objfile::get_tu): Likewise.
9429 (create_signatured_type_table_from_index): Likewise.
9430 (create_signatured_type_table_from_debug_names): Likewise.
9431 (dw2_symtab_iter_next): Likewise.
9432 (dw2_print_stats): Likewise.
9433 (dw2_expand_all_symtabs): Likewise.
9434 (dw2_expand_marked_cus): Likewise.
9435 (dw2_debug_names_iterator::next): Likewise.
9436 (dwarf2_initialize_objfile): Likewise.
9437 (add_signatured_type_cu_to_table): Likewise.
9438 (create_all_type_units): Likewise.
9439 (add_type_unit): Likewise.
9440 (struct tu_abbrev_offset): Add constructor.
9441 (build_type_psymtabs_1): Adjust to std::vector change.
9442 (print_tu_stats): Likewise.
9443 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9444 (write_debug_names): Likewise.
9445
b76e467d
SM
94462018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9447
9448 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9449 Make an std::vector.
9450 <n_comp_units>: Remove.
9451 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9452 to std::vector change.
9453 (dwarf2_per_objfile::get_cutu): Likewise.
9454 (dwarf2_per_objfile::get_cu): Likewise.
9455 (create_cus_from_index): Likewise.
9456 (create_addrmap_from_index): Likewise.
9457 (create_addrmap_from_aranges): Likewise.
9458 (dwarf2_read_index): Likewise.
9459 (dw2_find_last_source_symtab): Likewise.
9460 (dw2_map_symtabs_matching_filename): Likewise.
9461 (dw2_symtab_iter_next): Likewise.
9462 (dw2_print_stats): Likewise.
9463 (dw2_expand_all_symtabs): Likewise.
9464 (dw2_expand_symtabs_with_fullname): Likewise.
9465 (dw2_expand_marked_cus): Likewise.
9466 (dw2_map_symbol_filenames): Likewise.
9467 (create_cus_from_debug_names): Likewise.
9468 (dwarf2_read_debug_names): Likewise.
9469 (dw2_debug_names_iterator::next): Likewise.
9470 (dwarf2_initialize_objfile): Likewise.
9471 (set_partial_user): Likewise.
9472 (dwarf2_build_psymtabs_hard): Likewise.
9473 (read_comp_units_from_section): Remove arguments, adjust to
9474 std::vector change.
9475 (create_all_comp_units): Adjust to std::vector and
9476 read_comp_units_from_section changes.
9477 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9478 change.
9479 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9480 (psyms_seen_size): Likewise.
9481 (write_gdbindex): Likewise.
9482 (write_debug_names): Likewise.
9483
12359b5e
SM
94842018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9485
9486 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9487 with dwarf2_per_objfile.
9488 (create_cus_from_index): Likewise.
9489 (create_signatured_type_table_from_index): Likewise.
9490 (dwarf2_read_index): Likewise.
9491 (dwarf2_initialize_objfile): Likewise.
9492 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9493 per_cu rather than get_dwarf2_per_objfile.
9494
ff4c9fec
SM
94952018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9496
9497 * dwarf2read.h (struct signatured_type): Forward declare.
9498 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9499 New methods.
9500 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9501 (dw2_get_cutu): ...this.
9502 (dwarf2_per_objfile::get_cu): Rename from...
9503 (dw2_get_cu): ...this.
9504 (dwarf2_per_objfile::get_tu): New.
9505 (create_addrmap_from_index): Adjust.
9506 (create_addrmap_from_aranges): Adjust.
9507 (dw2_find_last_source_symtab): Adjust.
9508 (dw2_map_symtabs_matching_filename): Adjust.
9509 (dw2_symtab_iter_next): Adjust.
9510 (dw2_print_stats): Adjust.
9511 (dw2_expand_all_symtabs): Adjust.
9512 (dw2_expand_symtabs_with_fullname): Adjust.
9513 (dw2_expand_marked_cus): Adjust.
9514 (dw_expand_symtabs_matching_file_matcher): Adjust.
9515 (dw2_map_symbol_filenames): Adjust.
9516 (dw2_debug_names_iterator::next): Adjust.
9517 (dwarf2_initialize_objfile): Adjust.
9518 (set_partial_user): Adjust.
9519 (dwarf2_build_psymtabs_hard): Adjust.
9520
5ca3fcb6
SM
95212018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9522
9523 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9524 Remove unused variables.
9525 (dw2_map_symtabs_matching_filename): Likewise.
9526 (dwarf2_record_block_ranges): Likewise.
9527 (dwarf2_read_addr_index): Likewise.
9528 (follow_die_offset): Likewise.
9529
b2e586e8
SM
95302018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9531
9532 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9533 to symbol_file_add_main.
9534
7c4e78cf
SM
95352018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9536
9537 PR mi/22299
9538 * mi/mi-console.c (do_fputc_async_safe): New.
9539 (mi_console_file::write_async_safe): New.
9540 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9541 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9542 New.
9543 * ui-file.c (ui_file::putstrn): Adjust call to
9544 fputstrn_unfiltered.
9545 * utils.c (printchar): Replace do_fputs and do_fprintf
9546 parameters by do_fputc.
9547 (fputstr_filtered): Adjust call to printchar.
9548 (fputstr_unfiltered): Likewise.
9549 (fputstrn_filtered): Likewise.
9550 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9551 printchar.
9552 * utils.h (do_fputc_ftype): New typedef.
9553 (fputstrn_unfiltered): Add do_fputc parameter.
9554
5dc026d3
SM
95552018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9556
9557 * regformats/i386/i386-avx.dat: Remove.
9558
c912f608
SM
95592018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9560
9561 PR gdb/22979
9562 * amd64-tdep.c (amd64_none_init_abi): New function.
9563 (amd64_x32_none_init_abi): New function.
9564 (_initialize_amd64_tdep): Register handlers for x86-64 and
9565 x64_32 with GDB_OSABI_NONE.
9566 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9567 GDB_OSABI_NONE osabi.
9568
26540402
SM
95692018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9570
9571 PR gdb/22980
9572 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9573 GDB_OSABI_NONE.
9574 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9575 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9576
9018be22
SM
95772018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9578
9579 * common/byte-vector.h (char_vector): New type.
9580 * target.h (target_read_alloc): Return
9581 gdb::optional<byte_vector>.
9582 (target_read_stralloc): Return gdb::optional<char_vector>.
9583 (target_get_osdata): Return gdb::optional<char_vector>.
9584 * target.c (target_read_alloc_1): Templatize. Replacement
9585 manual memory management with vector.
9586 (target_read_alloc): Change return type, adjust.
9587 (target_read_stralloc): Change return type, adjust.
9588 (target_get_osdata): Change return type, adjust.
9589 * auxv.c (struct auxv_info) <length>: Remove.
9590 <data>: Change type to gdb::optional<byte_vector>.
9591 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9592 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9593 (target_auxv_search): Adjust.
9594 (fprint_target_auxv): Adjust.
9595 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9596 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9597 (linux_make_corefile_notes): Adjust.
9598 * osdata.c (get_osdata): Adjust.
9599 * remote.c (remote_get_threads_with_qxfer): Adjust.
9600 (remote_memory_map): Adjust.
9601 (remote_traceframe_info): Adjust.
9602 (btrace_read_config): Adjust.
9603 (remote_read_btrace): Adjust.
9604 (remote_pid_to_exec_file): Adjust.
9605 * solib-aix.c (solib_aix_get_library_list): Adjust.
9606 * solib-dsbt.c (decode_loadmap): Don't free buf.
9607 (dsbt_get_initial_loadmaps): Adjust.
9608 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9609 * solib-target.c (solib_target_current_sos): Adjust.
9610 * tracepoint.c (sdata_make_value): Adjust.
9611 * xml-support.c (xinclude_start_include): Adjust.
9612 (xml_fetch_content_from_file): Adjust.
9613 * xml-support.h (xml_fetch_another): Change return type.
9614 (xml_fetch_content_from_file): Change return type.
9615 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9616 * xml-tdesc.c (file_read_description_xml): Adjust.
9617 (fetch_available_features_from_target): Change return type.
9618 (target_fetch_description_xml): Adjust.
9619 (target_read_description_xml): Adjust.
9620
14c88955
TT
96212018-04-06 Tom Tromey <tom@tromey.com>
9622
9623 * value.c (~value): Update.
9624 (struct value) <contents>: Now unique_xmalloc_ptr.
9625 (value_contents_bits_eq, allocate_value_contents)
9626 (value_contents_raw, value_contents_all_raw)
9627 (value_contents_for_printing, value_contents_for_printing_const)
9628 (set_value_enclosing_type): Update.
9629
0c7e6dd8
TT
96302018-04-06 Tom Tromey <tom@tromey.com>
9631
9632 * value.c (range_s): Remove typedef, VEC.
9633 (struct range): Add operator<.
9634 (range_lessthan): Remove.
9635 (ranges_contain): Change type.
9636 (~value): Update.
9637 (struct value) <unavailable, optimized_out>: Now std::vector.
9638 (value_entirely_available)
9639 (value_entirely_covered_by_range_vector)
9640 (value_entirely_unavailable, value_entirely_optimized_out):
9641 Update.
9642 (insert_into_bit_range_vector): Change argument type.
9643 (find_first_range_overlap): Likewise.
9644 (struct ranges_and_idx, value_contents_bits_eq)
9645 (require_not_optimized_out, require_available): Update.
9646 (ranges_copy_adjusted): Change argument types.
9647 (value_optimized_out, value_copy, value_fetch_lazy): Update.
9648
2c8331b9
TT
96492018-04-06 Tom Tromey <tom@tromey.com>
9650
9651 * value.c (~value): Update.
9652 (struct value) <parent>: Now a value_ref_ptr.
9653 (value_parent, set_value_parent, value_address, value_copy):
9654 Update.
9655
466ce3ae
TT
96562018-04-06 Tom Tromey <tom@tromey.com>
9657
9658 * value.c (struct value): Add constructor, destructor, and member
9659 initializers.
9660 (allocate_value_lazy, value_decref): Update.
9661
062d818d
TT
96622018-04-06 Tom Tromey <tom@tromey.com>
9663
9664 * value.c (struct value) <released, next>: Remove.
9665 (all_values): Now a std::vector.
9666 (allocate_value_lazy): Update.
9667 (value_next): Remove.
9668 (value_mark, value_free_to_mark, release_value)
9669 (value_release_to_mark): Update.
9670
a6535de1
TT
96712018-04-06 Tom Tromey <tom@tromey.com>
9672
9673 * value.h (fetch_subexp_value, value_release_to_mark): Update.
9674 (free_value_chain): Remove.
9675 * value.c (free_value_chain): Remove.
9676 (value_release_to_mark): Return a std::vector.
9677 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9678 std::vector.
9679 (check_condition): Update.
9680 * eval.c (fetch_subexp_value): Change "val_chain" to a
9681 std::vector.
9682 * breakpoint.c (update_watchpoint): Update.
9683 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9684
b5621201
TT
96852018-04-06 Tom Tromey <tom@tromey.com>
9686
9687 * value.h (free_all_values): Remove.
9688 * value.c (free_all_values): Remove.
9689
4d0266a0
TT
96902018-04-06 Tom Tromey <tom@tromey.com>
9691
9692 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9693 (value_history_chain, value_history_count): Remove.
9694 (value_history): New global.
9695 (record_latest_value, access_value_history, show_values)
9696 (preserve_values): Update.
9697
b4d61099
TT
96982018-04-06 Tom Tromey <tom@tromey.com>
9699
9700 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9701 * varobj.c (varobj_set_display_format, varobj_set_value)
9702 (install_default_visualizer, construct_visualizer)
9703 (install_new_value, ~varobj, varobj_get_value_type)
9704 (my_value_of_variable, varobj_editable_p): Update.
9705 * c-varobj.c (c_describe_child, c_value_of_variable)
9706 (cplus_number_of_children, cplus_describe_child): Update.
9707 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9708 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9709 (ada_value_of_variable, ada_value_is_changeable_p): Update.
9710
9b558729
TT
97112018-04-06 Tom Tromey <tom@tromey.com>
9712
9713 * printcmd.c (last_examine_address): Change type to
9714 value_ref_ptr.
9715 (do_examine, x_command): Update.
9716
850645cf
TT
97172018-04-06 Tom Tromey <tom@tromey.com>
9718
9719 * value.c (release_value): Update.
9720 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9721 (struct bpstats) <val>: Now a value_ref_ptr.
9722 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9723 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9724 (~watchpoint, print_it_watchpoint, watch_command_1)
9725 (invalidate_bp_value_on_memory_change): Update.
9726
22bc8444
TT
97272018-04-06 Tom Tromey <tom@tromey.com>
9728
9729 * varobj.c (varobj_clear_saved_item)
9730 (update_dynamic_varobj_children, install_new_value, ~varobj):
9731 Update.
9732 * value.h (value_incref): Move declaration earlier.
9733 (value_decref): Rename from value_free.
9734 (struct value_ref_policy): New.
9735 (value_ref_ptr): New typedef.
9736 (struct value_deleter): Remove.
9737 (gdb_value_up): Remove typedef.
9738 (release_value): Change return type.
9739 (release_value_or_incref): Remove.
9740 * value.c (set_value_parent): Update.
9741 (value_incref): Change return type.
9742 (value_decref): Rename from value_free.
9743 (value_free_to_mark, free_all_values, free_value_chain): Update.
9744 (release_value): Return value_ref_ptr.
9745 (release_value_or_incref): Remove.
9746 (record_latest_value, set_internalvar, clear_internalvar):
9747 Update.
9748 * stack.c (info_frame_command): Don't call value_free.
9749 * python/py-value.c (valpy_dealloc, valpy_new)
9750 (value_to_value_object): Update.
9751 * printcmd.c (do_examine): Update.
9752 * opencl-lang.c (lval_func_free_closure): Update.
9753 * mi/mi-main.c (register_changed_p): Don't call value_free.
9754 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9755 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9756 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9757 value_free.
9758 * guile/scm-value.c (vlscm_free_value_smob)
9759 (vlscm_scm_from_value): Update.
9760 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9761 (frame_unwind_register_unsigned, get_frame_register_bytes)
9762 (put_frame_register_bytes): Don't call value_free.
9763 * findvar.c (address_from_register): Don't call value_free.
9764 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9765 * dwarf2loc.c (entry_data_value_free_closure)
9766 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9767 (dwarf2_evaluate_loc_desc_full): Update.
9768 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9769 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9770 (~watchpoint, watch_command_1)
9771 (invalidate_bp_value_on_memory_change): Update.
9772 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9773
7f8a5d38
SM
97742018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9775
9776 PR gdb/23022
9777 * warning.m4: Add -Wno-error=deprecated-register.
9778 * configure: Re-generate.
9779
8a76bd3b
TT
97802018-04-05 Tom Tromey <tom@tromey.com>
9781
9782 * linespec.h: Remove include of "vec.h".
9783
8e8d776e
TT
97842018-04-05 Tom Tromey <tom@tromey.com>
9785
9786 * linespec.c (typep): Remove typedef.
9787 (find_methods, find_superclass_methods): Take a std::vector.
9788 (find_method): Use std::vector.
9789
9b2f8581
TT
97902018-04-05 Tom Tromey <tom@tromey.com>
9791
9792 * utils.c (compare_strings): Remove.
9793 * utils.h (compare_strings): Remove.
9794 * objc-lang.h (find_imps): Update.
9795 * objc-lang.c (find_methods): Take a std::vector.
9796 (uniquify_strings, find_imps): Likewise.
9797 * linespec.c (find_methods): Take a std::vector.
9798 (decode_objc): Use std::vector.
9799 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9800 a std::vector.
9801 (find_method, find_function_symbols): Use std::vector.
9802
459a2e4c
TT
98032018-04-05 Tom Tromey <tom@tromey.com>
9804
9805 * completer.c (completion_tracker::completion_tracker): Remove
9806 cast.
9807 (completion_tracker::discard_completions): Likewise.
9808 * breakpoint.c (ambiguous_names_p): Remove cast.
9809 * ada-lang.c (_initialize_ada_language): Remove cast.
9810 * utils.h (streq): Update.
9811 (streq_hash): Add new declaration.
9812 * utils.c (streq): Return bool.
9813 (streq_hash): New function.
9814
9be2c17a
TT
98152018-04-05 Tom Tromey <tom@tromey.com>
9816
9817 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9818 Remove a string copy.
9819
f73c6ece
TT
98202018-04-05 Tom Tromey <tom@tromey.com>
9821
9822 * linespec.c (filter_results): Use std::vector.
9823 (decode_line_2, decode_line_full): Update.
9824
53a0f8a2
TT
98252018-04-05 Tom Tromey <tom@tromey.com>
9826
9827 * linespec.c (canonical_to_fullform): Return std::string.
9828 (filter_results): Update.
9829 (struct decode_line_2_item): Add constructor.
9830 <fullform, displayform>: Now std::string.
9831 (decode_line_2_compare_items): Now a std::sort comparator.
9832 (decode_line_2): Update.
9833
a5b5adf5
TT
98342018-04-05 Tom Tromey <tom@tromey.com>
9835
9836 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9837 (unexpected_linespec_error): Update.
9838 (linespec_parse_basic, parse_linespec): Update.
9839
6a307fc5
TT
98402018-04-05 Tom Tromey <tom@tromey.com>
9841
9842 * linespec.c (linespec_parse_basic): Reindent.
9843
41c1efc6
TT
98442018-04-05 Tom Tromey <tom@tromey.com>
9845
9846 * minsyms.h (iterate_over_minimal_symbols): Update.
9847 * minsyms.c (iterate_over_minimal_symbols): Take a
9848 gdb::function_view.
9849 * linespec.c (struct collect_minsyms): Remove.
9850 (compare_msyms): Now a std::sort comparator.
9851 (add_minsym): Add parameters.
9852 (search_minsyms_for_name): Update. Use std::vector.
9853
c5edbf3d
TT
98542018-04-03 Tom Tromey <tom@tromey.com>
9855
9856 * mipsread.c (read_alphacoff_dynamic_symtab): Use
9857 gdb::byte_vector.
9858
b39efc48
WP
98592018-04-02 Weimin Pan <weimin.pan@oracle.com>
9860
9861 * MAINTAINERS (Write After Approval): Add Weimin Pan.
9862
121ad66c 98632018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
9864
9865 PR gdb/16959
9866 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
9867 printing static type.
9868
09473be8
TT
98692018-04-01 Tom Tromey <tom@tromey.com>
9870
9871 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
9872 (rs6000_xfer_shared_libraries): Update.
9873
ec1f2d91
SM
98742018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9875
9876 * common/gdb_vecs.h (char_ptr): Remove.
9877 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
9878
d8611974
SM
98792018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9880
9881 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
9882 with std::vector.
9883 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
9884
a18ba4e4
SM
98852018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9886
9887 * tracepoint.h (struct uploaded_tp): Initialize fields.
9888 <actions, step_actions, cmd_strings>: Change type to
9889 std::vector<char *>.
9890 * tracepoint.c (get_uploaded_tp): Allocate with new.
9891 (free_uploaded_tps): Free with delete.
9892 (parse_tracepoint_definition): Adjust to std::vector change.
9893 * breakpoint.c (read_uploaded_action): Likewise.
9894 (create_tracepoint_from_upload): Likewise.
9895 * ctf.c (ctf_write_uploaded_tp): Likewise.
9896 (SET_ARRAY_FIELD): Likewise.
9897 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
9898
a7961323
TT
98992018-03-30 Tom Tromey <tom@tromey.com>
9900
9901 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
9902 std::unique_ptr.
9903 (svr4_keep_data_in_core): Update.
9904 (svr4_read_so_list): Update.
9905
e83e4e24
TT
99062018-03-30 Tom Tromey <tom@tromey.com>
9907
9908 * windows-nat.c (handle_output_debug_string, handle_exception):
9909 Update.
9910 * target.h (target_read_string): Update.
9911 * target.c (target_read_string): Change "string" to
9912 unique_xmalloc_ptr.
9913 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9914 Update.
9915 * solib-frv.c (frv_current_sos): Update.
9916 * solib-dsbt.c (dsbt_current_sos): Update.
9917 * solib-darwin.c (darwin_current_sos): Update.
9918 * linux-thread-db.c (inferior_has_bug): Update.
9919 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
9920 Update. Remove alloca.
9921 * ada-lang.c (ada_main_name): Update.
9922
263db9a1
TT
99232018-03-30 Tom Tromey <tom@tromey.com>
9924
9925 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
9926 (struct dwo_file_deleter): New.
9927 (dwo_file_up): New typedef.
9928 (open_and_init_dwo_file): Use dwo_file_up.
9929 (free_dwo_file_cleanup): Remove.
9930
5dafb3d1
TT
99312018-03-30 Tom Tromey <tom@tromey.com>
9932
9933 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
9934 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
9935
11ed8cad
TT
99362018-03-30 Tom Tromey <tom@tromey.com>
9937
9938 * dwarf2read.c (class free_cached_comp_units): New class.
9939 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
9940 (free_cached_comp_units): Remove function.
9941
9ae79dac
TT
99422018-03-30 Tom Tromey <tom@tromey.com>
9943
9944 * utils.h (make_cleanup_unpush_target): Remove.
9945 * inf-ptrace.c (struct target_unpusher): New.
9946 (target_unpush_up) New typedef.
9947 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
9948 target_unpush_up.
9949 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
9950
5aa89276
TT
99512018-03-27 Tom Tromey <tom@tromey.com>
9952
9953 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
9954
1dbeed45
TT
99552018-03-27 Pedro Alves <palves@redhat.com>
9956 Tom Tromey <tom@tromey.com>
9957
9958 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
9959 destructor. Now a class.
9960 (gdb_readline_wrapper_cleanup): Remove function.
9961 (gdb_readline_wrapper): Remove cleanups.
9962
c819b2c0
TT
99632018-03-27 Tom Tromey <tom@tromey.com>
9964
9965 * typeprint.h (struct type_print_options) <local_typedefs,
9966 global_typedefs>: Remove "struct" keyword.
9967 (class typedef_hash_table): New class.
9968 (recursively_update_typedef_hash, add_template_parameters)
9969 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
9970 (find_typedef_in_hash): Don't declare.
9971 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
9972 (typedef_hash_table::recursively_update): Rename from
9973 recursively_update_typedef_hash. Now a member.
9974 (typedef_hash_table::add_template_parameters): Rename from
9975 add_template_parameters. Now a member.
9976 (typedef_hash_table::typedef_hash_table): Now a constructor;
9977 rename from create_typedef_hash.
9978 (typedef_hash_table::~typedef_hash_table): Now a destructor;
9979 rename from free_typedef_hash.
9980 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
9981 (do_free_global_table): Remove.
9982 (typedef_hash_table::typedef_hash_table): New constructor; renamed
9983 from copy_type_recursive.
9984 (create_global_typedef_table): Remove.
9985 (typedef_hash_table::find_global_typedef): Now a member of
9986 typedef_hash_table.
9987 (typedef_hash_table::find_typedef): Rename from
9988 find_typedef_in_hash; now a member.
9989 (whatis_exp): Update.
9990 * extension.h (struct ext_lang_type_printers): Add constructor and
9991 destructor.
9992 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
9993 declare.
9994 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
9995 Now a constructor; rename from start_ext_lang_type_printers.
9996 (ext_lang_type_printers): Now a destructor; rename from
9997 free_ext_lang_type_printers.
9998 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
9999 Update.
10000 (c_type_print_base_struct_union): Update. Remove cleanups.
10001
608219fb
TT
100022018-03-27 Tom Tromey <tom@tromey.com>
10003
10004 * dwarf-index-write.c: Include <cmath>.
10005
3fcded8f
JB
100062018-03-27 Joel Brobecker <brobecker@adacore.com>
10007
10008 * NEWS: Add entry describing new "set|show varsize-limit" command.
10009 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10010 command.
10011 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10012 "set variable".
10013
cd4fb1b2
SM
100142018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10015
10016 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10017 dwarf-index-write.c
10018 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10019 * dwarf-index-common.c: New file.
10020 * dwarf-index-common.h: New file.
10021 * dwarf-index-write.c: New file.
10022 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10023 (struct dwarf2_section_info): Move from here.
10024 (dwarf2_section_info_def): Likewise.
10025 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10026 (offset_type): Likewise.
10027 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10028 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10029 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10030 (byte_swap): Likewise.
10031 (MAYBE_SWAP): Likewise.
10032 (dwarf2_per_cu_ptr): Likewise.
10033 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10034 (struct tu_stats): Likewise.
10035 (struct dwarf2_per_objfile): Likewise.
10036 (struct dwarf2_per_cu_data): Likewise.
10037 (struct signatured_type): Likewise.
10038 (sig_type_ptr): Likewise.
10039 (DEF_VEC_P (sig_type_ptr)): Likewise.
10040 (INDEX4_SUFFIX): Likewise.
10041 (INDEX5_SUFFIX): Likewise.
10042 (DEBUG_STR_SUFFIX): Likewise.
10043 (dwarf2_read_section): Make non-static.
10044 (mapped_index_string_hash): Move from here.
10045 (dwarf5_djb_hash): Likewise.
10046 (file_write): Likewise.
10047 (class data_buf): Likewise.
10048 (struct symtab_index_entry): Likewise.
10049 (struct mapped_symtab): Likewise.
10050 (find_slot): Likewise.
10051 (hash_expand): Likewise.
10052 (add_index_entry): Likewise.
10053 (uniquify_cu_indices): Likewise.
10054 (class c_str_view): Likewise.
10055 (class c_str_view_hasher): Likewise.
10056 (class vector_hasher): Likewise.
10057 (write_hash_table): Likewise.
10058 (psym_index_map): Likewise.
10059 (struct addrmap_index_data): Likewise.
10060 (add_address_entry): Likewise.
10061 (add_address_entry_worker): Likewise.
10062 (write_address_map): Likewise.
10063 (symbol_kind): Likewise.
10064 (write_psymbols): Likewise.
10065 (struct signatured_type_index_data): Likewise.
10066 (write_one_signatured_type): Likewise.
10067 (recursively_count_psymbols): Likewise.
10068 (recursively_write_psymbols): Likewise.
10069 (class debug_names): Likewise.
10070 (check_dwarf64_offsets): Likewise.
10071 (psyms_seen_size): Likewise.
10072 (write_gdbindex): Likewise.
10073 (write_debug_names): Likewise.
10074 (assert_file_size): Likewise.
10075 (write_psymtabs_to_index): Likewise.
10076 (save_gdb_index_command): Likewise.
10077 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10078 command.
10079 * dwarf2read.h: New file.
10080
59cc4834
JB
100812018-03-27 Joel Brobecker <brobecker@adacore.com>
10082
10083 PR gdb/22670
10084 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10085 symbol name if the CU's language stores symbol names in linkage
10086 format.
10087 * language.h (struct language_defn)
10088 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10089 all instances of this struct.
10090
67501539
TT
100912018-03-26 Tom Tromey <tom@tromey.com>
10092
10093 * stack.c (backtrace_command_1): Remove verbose code.
10094
76c939ac
TT
100952018-03-26 Tom Tromey <tom@tromey.com>
10096
10097 * python/py-framefilter.c (py_print_type): Don't catch
10098 exceptions. Return void.
10099 (py_print_value): Likewise.
10100 (py_print_single_arg): Likewise.
10101 (enumerate_args): Don't catch exceptions.
10102 (py_print_args): Likewise.
10103 (py_print_frame): Likewise.
10104 (gdbpy_apply_frame_filter): Catch exceptions here.
10105
9507b29c
TT
101062018-03-26 Tom Tromey <tom@tromey.com>
10107
10108 * stack.c (_initialize_stack): Remove trailing newlines from help
10109 text. Add "Usage" line to "backtrace" help.
10110
eb68e487
TT
101112018-03-26 Tom Tromey <tom@tromey.com>
10112
10113 PR python/16486:
10114 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10115
1f111921
TT
101162018-03-26 Tom Tromey <tom@tromey.com>
10117
10118 * python/py-framefilter.c (py_print_single_arg): Return
10119 EXT_LANG_BT_ERROR from catch.
10120
fb7eb8b5
TT
101212018-03-26 Tom Tromey <tom@tromey.com>
10122
10123 PR backtrace/15584:
10124 * stack.c (backtrace_command_1): Move some code into no-filters
10125 "if".
10126
4ca59a9f
TT
101272018-03-26 Tom Tromey <tom@tromey.com>
10128
10129 * python/py-framefilter.c (throw_quit_or_print_exception): New
10130 function.
10131 (gdbpy_apply_frame_filter): Use it.
10132
92256134
TT
101332018-03-26 Tom Tromey <tom@tromey.com>
10134
10135 PR cli/17716:
10136 * python/py-framefilter.c (py_print_type, py_print_value)
10137 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10138 RETURN_MASK_ERROR.
10139
7a630bc2
TT
101402018-03-26 Tom Tromey <tom@tromey.com>
10141
10142 * python/py-framefilter.c (enumerate_args): Use
10143 gdb::unique_xmalloc_ptr.
10144
63283d4a
TT
101452018-03-26 Tom Tromey <tom@tromey.com>
10146
10147 * python/py-framefilter.c (py_print_frame): Return
10148 EXT_LANG_BT_OK.
10149 (gdbpy_apply_frame_filter): Update comment.
10150 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10151 Remove.
10152 <EXT_LANG_BT_NO_FILTERS>: Change value.
10153
978d6c75
TT
101542018-03-26 Tom Tromey <tom@tromey.com>
10155
10156 PR backtrace/15582:
10157 * stack.c (backtrace_command): Parse "hide" argument.
10158 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10159 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10160 constant.
10161
1cf7e640
TT
101622018-03-26 Tom Tromey <tom@tromey.com>
10163
10164 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10165 add "flags".
10166 (backtrace_command): Remove "fulltrace", add "flags".
10167
ea3b0687
TT
101682018-03-26 Tom Tromey <tom@tromey.com>
10169
10170 * stack.c (backtrace_command): Rewrite command line parsing.
10171
9f034d75
SM
101722018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10173
10174 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10175
ce1459e5
SM
101762018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10177
10178 * filename-seen-cache.h: Add include guard.
10179
4f7ae6f5
KS
101802018-03-26 Keith Seitz <keiths@redhat.com>
10181
10182 * symfile.c (place_section): Remove "struct" from section_addr_info
10183 in comment.
10184 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10185 "struct" keyword from section_addr_info.
10186
5cd3e386
AH
101872018-03-26 Alan Hayward <alan.hayward@arm.com>
10188
10189 * regformats/regdef.h (reg): Add constructors.
10190
3e5ef9a4
PA
101912018-03-25 Pedro Alves <palves@redhat.com>
10192
10193 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10194 if then/else bodies in var_func_name extraction.
10195
c88d2fcc 101962018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
10197
10198 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10199 lookup_minimal_symbol() to find symbol entry.
10200 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10201
b7fee5a3
KS
102022018-03-23 Keith Seitz <keiths@redhat.com>
10203
10204 PR c++/22968
10205 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10206 nested type definitions for C++, too.
10207
2cc9b304
TT
102082018-03-23 Tom Tromey <tom@tromey.com>
10209
10210 * machoread.c (struct oso_el): Add a constructor. Don't define as
10211 a typedef.
10212 (macho_register_oso): Remove.
10213 (macho_symtab_read): Take a std::vector.
10214 (oso_el_compare_name): Now a std::sort comparator.
10215 (macho_symfile_read_all_oso): Take a std::vector.
10216 (macho_symfile_read): Use std::vector. Remove cleanups.
10217
a2b2bc12
TT
102182018-03-22 Tom Tromey <tom@tromey.com>
10219
10220 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10221 (record_full_goto_bookmark): Use std::string.
10222
7a8f494c
PFC
102232018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10224
10225 PR tdep/18295
10226 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10227 a single mask.
10228
dd6d677f
PFC
102292018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10230
10231 * rs6000-tdep.c (store_insn_p): New function.
10232 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10233 and cr_reg to their unshifted values. Use store_insn_p to
10234 match LR saves using either R1 or fdata->alloca_reg. Use
10235 store_insn_p to match CR saves. Set alloca_reg_offset
10236 when alloca_reg and framep are set. Remove lr_reg shift
10237 when assigning to fdata->lr_register.
10238
26d6cec4
AA
102392018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10240
10241 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10242 command line args instead of emitting a warning.
10243
5d9310c4
SM
102442018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10245
10246 * tracepoint.h (struct static_tracepoint_marker): Initialize
10247 fields, define default constructor, move constructor and move
10248 assignment, disable the rest.
10249 <str_id, extra>: Make std::string.
10250 (release_static_tracepoint_marker): Remove.
10251 (free_current_marker): Remove.
10252 * tracepoint.c (free_current_marker): Remove.
10253 (parse_static_tracepoint_marker_definition): Adjust to
10254 std::string, use new hex2str overload.
10255 (release_static_tracepoint_marker): Remove.
10256 (print_one_static_tracepoint_marker): Get marker by reference
10257 and adjust to std::string.
10258 (info_static_tracepoint_markers_command): Adjust to std::vector
10259 changes
10260 * target.h (static_tracepoint_marker_p): Remove typedef.
10261 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10262 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10263 bool.
10264 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10265 * target-debug.h
10266 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10267 (target_debug_print_std_vector_static_tracepoint_marker): New.
10268 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10269 to...
10270 (target_debug_print_static_tracepoint_marker_p): ... this.
10271 * target-delegates.c: Re-generate.
10272 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10273 Make std::string.
10274 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10275 (decode_static_tracepoint_spec): Adjust to std::vector.
10276 (tracepoint_print_one_detail): Adjust to std::string.
10277 (strace_marker_decode_location): Adjust to std::string.
10278 (update_static_tracepoint): Adjust to std::string, remove call
10279 to release_static_tracepoint_marker.
10280 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10281 Adjust to std::vector.
10282 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10283 (remote_static_tracepoint_markers_by_strid): Adjust to
10284 std::vector.
10285 * common/rsp-low.h (hex2str): New overload with explicit count
10286 of bytes.
10287 * common/rsp-low.c (hex2str): New overload with explicit count
10288 of bytes.
10289 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10290 (_initialize_rsp_low_selftests): Add test_hex2str test.
10291 * unittests/tracepoint-selftests.c
10292 (test_parse_static_tracepoint_marker_definition): Adjust to
10293 std::string.
10294
62c222b6
SM
102952018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10296
10297 * tracepoint.c (parse_static_tracepoint_marker_definition):
10298 Consider case where the definition is followed by more
10299 definitions.
10300 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10301 tracepoint-selftests.c.
10302 * unittests/tracepoint-selftests.c: New.
10303
7eb2418f
PFC
103042018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10305
10306 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10307 Carvalho.
10308
7cbe16e9
SR
103092018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10310
3d6b3b82 10311 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 10312
4ee89e90
SR
103132018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10314
3d6b3b82 10315 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 10316
92630041
TT
103172018-03-19 Tom Tromey <tom@tromey.com>
10318
10319 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10320 "IDENT" production.
10321
76727919
TT
103222018-03-19 Pedro Alves <palves@redhat.com>
10323 Tom Tromey <tom@tromey.com>
10324
10325 * unittests/observable-selftests.c: New file.
10326 * common/observable.h: New file.
10327 * observable.h: New file.
10328 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10329 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10330 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10331 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10332 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10333 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10334 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10335 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10336 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10337 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10338 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10339 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10340 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10341 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10342 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10343 tui/tui-interp.c, valops.c: Update all users.
10344 * tui/tui-hooks.c (tui_bp_created_observer)
10345 (tui_bp_deleted_observer, tui_bp_modified_observer)
10346 (tui_inferior_exit_observer, tui_before_prompt_observer)
10347 (tui_normal_stop_observer, tui_register_changed_observer):
10348 Remove.
10349 (tui_observers_token): New global.
10350 (attach_or_detach, tui_attach_detach_observers): New functions.
10351 (tui_install_hooks, tui_remove_hooks): Use
10352 tui_attach_detach_observers.
10353 * record-btrace.c (record_btrace_thread_observer): Remove.
10354 (record_btrace_thread_observer_token): New global.
10355 * observer.sh: Remove.
10356 * observer.c: Rename to observable.c.
10357 * observable.c (namespace gdb_observers): Define new objects.
10358 (observer_debug): Move into gdb_observers namespace.
10359 (struct observer, struct observer_list, xalloc_observer_list_node)
10360 (xfree_observer_list_node, generic_observer_attach)
10361 (generic_observer_detach, generic_observer_notify): Remove.
10362 (_initialize_observer): Update.
10363 Don't include observer.inc.
10364 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10365 (clean mostlyclean): Likewise.
10366 (observer.h, observer.inc): Remove targets.
10367 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10368 (COMMON_SFILES): Use observable.c, not observer.c.
10369 * .gitignore: Remove observer.h.
10370
1cb1f3da
TT
103712018-03-18 Tom Tromey <tom@tromey.com>
10372
10373 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10374 gdb::def_vector.
10375 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10376
a06ab151
TT
103772018-03-17 Tom Tromey <tom@tromey.com>
10378
10379 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10380
770623f7
TT
103812018-03-17 Tom Tromey <tom@tromey.com>
10382
10383 * target.c (class scoped_target_fd): New.
10384 (target_fileio_close_cleanup): Remove.
10385 (target_fileio_read_alloc_1): Use scoped_target_fd.
10386
39be3c7e
SM
103872018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10388
10389 * silent-rules.mk: New.
10390 * Makefile.in: Include silent-rules.mk
10391 (srcdir, VPATH, top_srcdir): Move up.
10392 (COMPILE): Add ECHO_CXX.
10393 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10394 (init.c): Add ECHO_INIT_C.
10395 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10396 (version.c): Add ECHO_GEN.
10397 (printcmd.o): Add ECHO_CXX.
10398 (target-float.o): Add ECHO_CXX.
10399 (ada-exp.o): Add ECHO_CXX.
10400 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10401 (insight$(EXEEXT)): Add ECHO_CXXLD.
10402 * gnulib/configure.ac: Add AM_SILENT_RULES.
10403 * gnulib/aclocal.m4: Re-generate.
10404 * gnulib/configure: Re-generate.
10405 * gnulib/import/Makefile.in: Re-generate.
10406
37e136b1
TT
104072018-03-16 Tom Tromey <tom@tromey.com>
10408
10409 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10410 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10411 * utils.c (do_free_section_addr_info)
10412 (make_cleanup_free_section_addr_info): Remove.
10413 * symfile.h (struct other_sections): Add constructor.
10414 (struct section_addr_info): Remove.
10415 (section_addr_info): New typedef.
10416 (struct sym_fns) <sym_offsets>: Change type of parameter.
10417 (build_section_addr_info_from_objfile)
10418 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10419 (default_symfile_offsets, symbol_file_add)
10420 (symbol_file_add_from_bfd)
10421 (build_section_addr_info_from_section_table): Update.
10422 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10423 * symfile.c (alloc_section_addr_info): Remove.
10424 (build_section_addr_info_from_section_table): Change return type.
10425 Update.
10426 (build_section_addr_info_from_bfd)
10427 (build_section_addr_info_from_objfile): Likewise.
10428 (free_section_addr_info): Remove.
10429 (relative_addr_info_to_section_offsets): Change type of "addrs".
10430 (addrs_section_compar): Now a std::sort comparator.
10431 (addrs_section_sort): Change return type.
10432 (addr_info_make_relative): Change type of "addrs". Update.
10433 (default_symfile_offsets, syms_from_objfile_1)
10434 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10435 (symbol_file_add_separate): Update.
10436 (symbol_file_add): Change type of "addrs". Update.
10437 (add_symbol_file_command): Update. Remove cleanups.
10438 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10439 cleanups.
10440 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10441 * solib.c (solib_read_symbols): Update.
10442 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10443 * machoread.c (macho_symfile_offsets): Update.
10444 * jit.c (jit_bfd_try_read_symtab): Update.
10445
03afa6ef
SM
104462018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10447
10448 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10449 unittests/utils-selftests.c.
10450 * unittests/utils-selftests.c: New file.
10451
3ae9ce5d
TT
104522018-03-14 Tom Tromey <tom@tromey.com>
10453
10454 PR cli/14977:
10455 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10456 for NULL.
10457
b8c2339b
TT
104582018-03-14 Tom Tromey <tom@tromey.com>
10459
10460 PR cli/19918:
10461 * printcmd.c (printf_pointer): Allow "-" in format.
10462
80ae639d
TT
104632018-03-14 Tom Tromey <tom@tromey.com>
10464
10465 * printcmd.c (_initialize_printcmd): Add usage to printf.
10466
0d671d99
YQ
104672018-03-14 Yao Qi <qiyao@sourceware.org>
10468
10469 * MAINTAINERS: Update my email address.
10470
b577b6af
TT
104712018-03-13 Tom Tromey <tom@tromey.com>
10472
10473 * machoread.c (macho_check_dsym): Change filenamep to a
10474 std::string*.
10475 (macho_symfile_read): Update.
10476 * symfile.c (load_command): Use std::string.
10477
89a3b63e
AB
104782018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10479
10480 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10481 to error message string.
10482 (riscv_register_name): Use xsnprintf instead of sprintf.
10483 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10484 internal_error.
10485 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10486 error.
10487 (riscv_push_dummy_call): Likewise.
10488
984c7238
TT
104892018-03-12 Tom Tromey <tom@tromey.com>
10490
10491 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10492 Use gdb::byte_vector.
10493 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10494
933522d1
YQ
104952018-03-12 Yao Qi <yao.qi@linaro.org>
10496
10497 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10498 parameter type to readable_regcache.
10499 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10500 the declaration.
10501
be2daae6
TT
105022018-03-11 Tom Tromey <tom@tromey.com>
10503
10504 * dwarf2read.c (struct nextfield): Add initializers.
10505 (struct nextfnfield): Remove.
10506 (struct fnfieldlist): Add initializers. Remove "length" and
10507 "head", use std::vector.
10508 (struct decl_field_list): Remove.
10509 (struct field_info): Add initializers.
10510 <fields, baseclasses>: Now std::vector.
10511 <nbaseclasses, nfnfields, typedef_field_list_count,
10512 nested_types_list_count>: Remove.
10513 (dwarf2_add_field, dwarf2_add_type_defn)
10514 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10515 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10516 (process_structure_scope): Update.
10517
484cf504
TT
105182018-03-11 Tom Tromey <tom@tromey.com>
10519
10520 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10521 for use by std::sort.
10522 (build_type_psymtabs_1): Use std::vector.
10523
9bd8e0b0
EZ
105242018-03-09 Eli Zaretskii <eliz@gnu.org>
10525
10526 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10527 and LIBMPFR in the printed configuration.
10528
5dc1a704
TT
105292018-03-08 Tom Tromey <tom@tromey.com>
10530
10531 * source.c (get_filename_and_charpos): Use scoped_fd.
10532 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10533 (procfs_pidlist): Likewise.
10534 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10535 (iterate_over_mappings): Likewise.
10536
fdf07f3a
TT
105372018-03-08 Tom Tromey <tom@tromey.com>
10538
10539 * infcall.c (struct call_return_meta_info)
10540 <stack_temporaries_enabled>: Remove.
10541 (get_call_return_value, call_function_by_hand_dummy): Update.
10542 * thread.c (disable_thread_stack_temporaries): Remove.
10543 (enable_thread_stack_temporaries): Remove.
10544 (thread_stack_temporaries_enabled_p): Return bool.
10545 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10546 (get_last_thread_stack_temporary): Update.
10547 * eval.c (evaluate_subexp): Update.
10548 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10549 class, not a function.
10550 (value_ptr, value_vec): Remove typedefs.
10551 (class thread_info) <stack_temporaries_enabled>: Now bool.
10552 <stack_temporaries>: Now a std::vector.
10553 (thread_stack_temporaries_enabled_p)
10554 (value_in_thread_stack_temporaries): Return bool.
10555
567a3e54
SM
105562018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10557
10558 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10559 (getpkt_or_notif_sane_1): Likewise.
10560
00b40057
SM
105612018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10562
10563 * build-id.c (build_id_to_debug_bfd): Use std::string.
10564
a8dbfd58
SM
105652018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10566
10567 * build-id.c (find_separate_debug_file_by_buildid): Return
10568 std::string.
10569 * build-id.h (find_separate_debug_file_by_buildid): Return
10570 std::string.
10571 * coffread.c (coff_symfile_read): Adjust to std::string.
10572 * elfread.c (elf_symfile_read): Adjust to std::string.
10573 * symfile.c (separate_debug_file_exists): Change parameter to
10574 std::string.
10575 (find_separate_debug_file): Return std::string.
10576 (find_separate_debug_file_by_debuglink): Return std::string.
10577 * symfile.h (find_separate_debug_file_by_debuglink): Return
10578 std::string.
10579
e6a58aa8
SM
105802018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10581
10582 * common/xml-utils.c (xml_escape_text): Move code to...
10583 (xml_escape_text_append): ... this new function.
10584 * common/xml-utils.h (xml_escape_text_append): New declaration.
10585 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10586 New function.
10587 (_initialize_xml_utils): register test_xml_escape_text_append as
10588 a selftest.
10589
4ef0bef6
AH
105902018-03-07 Alan Hayward <alan.hayward@arm.com>
10591
10592 * defs.h: Remove MAX_REGISTER_SIZE.
10593 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10594 asserts.
10595 * python/py-unwind.c (pyuw_sniffer): Likewise.
10596
e0d3522b
TT
105972018-03-07 Tom Tromey <tom@tromey.com>
10598
10599 * linux-tdep.c (linux_info_proc): Update.
10600 * target.h (struct target_ops) <to_fileio_readlink>: Return
10601 optional<string>.
10602 (target_fileio_readlink): Return optional<string>.
10603 * remote.c (remote_hostio_readlink): Return optional<string>.
10604 * inf-child.c (inf_child_fileio_readlink): Return
10605 optional<string>.
10606 * target.c (target_fileio_readlink): Return optional<string>.
10607
ea005f31
AB
106082018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10609
10610 * regcache.c (cooked_read_test): Add riscv to the list of
10611 architectures that have a save_reggroup.
10612
e95a97d4
AA
106132018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10614
10615 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10616 value is not a dynamic class object.
10617
d8344f3d
TT
106182018-03-06 Tom Tromey <tom@tromey.com>
10619
10620 * rust-exp.y: Formatting fixes.
10621
9add17f2
AB
106222018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10623
10624 * riscv-tdep.c (riscv_register_name): Remove target description
10625 support.
10626 (riscv_gdbarch_init): Remove target description check.
10627
c9486dfe
AB
106282018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10629
10630 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10631 comment.
10632 * riscv-tdep.h: Likewise.
10633
d74aff3d
AB
106342018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10635
10636 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10637 (riscv_pseudo_register_write): Delete.
10638 (riscv_gdbarch_init): Remove all use of pseudo registers.
10639
7ea78b59
SM
106402018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10641
10642 * record-btrace.c (btrace_print_lines): Replace cleanup
10643 parameter with RAII equivalents.
10644 (btrace_insn_history): Replace cleanup with RAII equivalents.
10645 * ui-out.h (make_cleanup_ui_out_list_begin_end,
10646 make_cleanup_ui_out_tuple_begin_end): Remove.
10647 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10648 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10649 make_cleanup_ui_out_list_begin_end): Remove.
10650
53127008
SM
106512018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10652
10653 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10654 parameter types to std::vector. Use bool.
10655 (record_btrace_wait): Replace VEC(tp_t) with
10656 std::vector<thread_info *>.
10657 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10658
228f1508
SM
106592018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10660
10661 * record-btrace.c (record_btrace_disable_callback): Remove.
10662 (struct scoped_btrace_disable): New.
10663 (record_btrace_open): Use scoped_btrace_disable.
10664
b2970c23
AB
106652018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10666
10667 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10668 reading values from registers.
10669
fb294655
AB
106702018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10671
10672 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10673 where appropriate.
10674
cab5bb9d
AB
106752018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10676
10677 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10678 change parameter type. Use GDB's print functions, and use
10679 core_addr_to_string where appropriate.
10680 (riscv_push_dummy_call): Use core_addr_to_string where
10681 appropriate, update call to riscv_print_arg_location, and reindent
10682 a few lines.
10683 (riscv_return_value): Update call to riscv_print_arg_location.
10684
dbbb1059
AB
106852018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10686 Tim Newsome <tim@sifive.com>
10687 Albert Ou <a0u@eecs.berkeley.edu>
10688 Darius Rad <darius@bluespec.com>
10689
10690 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10691 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10692 (ALLDEPFILES): Add riscv-tdep.c
10693 * configure.tgt: Add riscv support.
10694 * riscv-tdep.c: New file.
10695 * riscv-tdep.h: New file.
10696 * NEWS: Mention new target.
10697 * MAINTAINERS: Add entry for riscv.
10698
5dc43913
AB
106992018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10700
10701 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10702 fields within aggregates.
10703
3dea1ef7
SM
107042018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
10705
10706 * record-btrace.c (btrace_print_lines): Change type of flags to
10707 gdb_disassembly_flags.
10708
7efba073
JB
107092018-03-04 John Baldwin <jhb@FreeBSD.org>
10710
10711 * fbsd-nat.c: Include "inf-ptrace.h".
10712 (USE_SIGTRAP_SIGINFO): Conditionally define.
10713 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10714 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10715 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10716 function.
10717 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10718 Likewise.
10719 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10720 Likewise.
10721 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10722 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10723 "supports_stopped_by_hw_breakpoint" target methods.
10724
386a8676
JB
107252018-03-04 John Baldwin <jhb@FreeBSD.org>
10726
10727 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10728 * fbsd-nat.c (debug_fbsd_nat): New variable.
10729 (show_fbsd_nat_debug): New function.
10730 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10731 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10732
12279366
JB
107332018-03-04 John Baldwin <jhb@FreeBSD.org>
10734
10735 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10736 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10737 prototype.
10738 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10739 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10740 method.
10741
54693cf5
SM
107422018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10743
10744 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10745 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10746
ccb2231c
SM
107472018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10748
10749 * charset.c (struct charset_vector): New.
10750 (charsets): Change type to charset_vector.
10751 (find_charset_names): Adjust.
10752 (add_one): Adjust.
10753 (_initialize_charset): Adjust.
10754
6fb16ce6
SM
107552018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10756
10757 * progspace.h (struct program_space) <deleted_solibs>: Change
10758 type to std::vector<std::string>.
10759 * progspace.c (clear_program_space_solib_cache): Adjust.
10760 * breakpoint.c (print_solib_event): Adjust.
10761 (check_status_catch_solib): Adjust.
10762 * solib.c (update_solib_list): Adjust.
10763 * ui-out.h (class ui_out) <field_string>: New overload.
10764 * ui-out.c (ui_out::field_string): New overload.
10765
564b1e3f
SM
107662018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10767
10768 * progspace.h (struct program_space): Add constructor and
10769 destructor, initialize fields.
10770 (add_program_space): Remove.
10771 * progspace.c (add_program_space): Rename to...
10772 (program_space::program_space): ... this.
10773 (release_program_space): Rename to...
10774 (program_space::~program_space): ... this.
10775 (delete_program_space): Use delete to delete program_space.
10776 (initialize_progspace): Use new to allocate program_space.
10777 * inferior.c (add_inferior_with_spaces): Likewise.
10778 (clone_inferior_command): Likewise.
10779 * infrun.c (follow_fork_inferior): Likewise.
10780 (handle_vfork_child_exec_or_exit): Likewise.
10781
e80aaf61
SM
107822018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10783
10784 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10785 (delim_string_to_char_ptr_vec): Return std::vector of
10786 gdb::unique_xmalloc_ptr.
10787 (dirnames_to_char_ptr_vec_append): Take std::vector of
10788 gdb::unique_xmalloc_ptr.
10789 (dirnames_to_char_ptr_vec): Return std::vector of
10790 gdb::unique_xmalloc_ptr.
10791 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10792 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10793 (delim_string_to_char_ptr_vec): Return an std::vector of
10794 gdb::unique_xmalloc_ptr, adjust the code.
10795 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10796 gdb::unique_xmalloc_ptr, adjust the code.
10797 (dirnames_to_char_ptr_vec): Return an std::vector of
10798 gdb::unique_xmalloc_ptr, adjust the code.
10799 * auto-load.c (auto_load_safe_path_vec): Change type to
10800 std::vector of gdb::unique_xmalloc_ptr.
10801 (auto_load_expand_dir_vars): Return an std::vector of
10802 gdb::unique_xmalloc_ptr, adjust the code.
10803 (auto_load_safe_path_vec_update): Adjust.
10804 (filename_is_in_auto_load_safe_path_vec): Adjust.
10805 (auto_load_objfile_script_1): Adjust.
10806 * build-id.c (build_id_to_debug_bfd): Adjust.
10807 * linux-thread-db.c (thread_db_load_search): Adjust.
10808 * source.c (add_path): Adjust.
10809 (openp): Adjust.
10810 * symfile.c (find_separate_debug_file): Adjust.
10811 * utils.c (do_free_char_ptr_vec): Remove.
10812 (make_cleanup_free_char_ptr_vec): Remove.
10813
ab818ade
SDJ
108142018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10815
10816 PR gdb/22907
10817 * common/pathstuff.c: Conditionally include "<windows.h>".
10818
e1e6f073
GS
108192018-03-01 Georg Sauthoff <mail@georg.so>
10820
10821 PR gdb/22888
10822 * gcore.in: Quote variables and switch interpreter to bash.
10823
c7b15a66
TT
108242018-03-01 Tom Tromey <tom@tromey.com>
10825
10826 * dwarf2read.c (alloc_discriminant_info): Fix default_index
10827 assertion. Add assertion for discriminant_index.
10828 (quirk_rust_enum): Use correct base type name in univariant case.
10829
0cb7c7b0
SM
108302018-03-01 Simon Marchi <simon.marchi@ericsson.com>
10831
10832 * record.c (get_call_history_modifiers): Return a
10833 record_print_flags.
10834 (cmd_record_call_history): Adjust.
10835 * record-btrace.c (record_btrace_call_history): Adjust.
10836 (record_btrace_call_history_range): Adjust.
10837 (record_btrace_call_history_from): Adjust.
10838 * target-debug.h (target_debug_print_record_print_flags): New.
10839 * target-delegates.c: Re-generate.
10840 * target.c (target_call_history): Change flags type.
10841 (target_call_history_from): Likewise.
10842 (target_call_history_range): Likewise.
10843 * target.h (struct target_ops) <target_call_history>: Likewise.
10844 (target_call_history_from): Likewise.
10845 (target_call_history_range): Likewise.
10846
25e3c82c
SDJ
108472018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10848 Simon Marchi <simon.marchi@polymtl.ca>
10849
10850 * common/common-utils.c: Include "sys/stat.h".
10851 (is_regular_file): Move here from "source.c"; change return
10852 type to "bool".
10853 * common/common-utils.h (is_regular_file): New prototype.
10854 * common/pathstuff.c (contains_dir_separator): New function.
10855 * common/pathstuff.h (contains_dir_separator): New prototype.
10856 * source.c: Don't include "sys/stat.h".
10857 (is_regular_file): Move to "common/common-utils.c".
10858
b4987c95
SDJ
108592018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10860
10861 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
10862 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
10863 * auto-load.c: Include "common/pathstuff.h".
10864 * common/common-def.h (current_directory): Move here.
10865 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
10866 function.
10867 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
10868 prototype.
10869 * common/pathstuff.c: New file.
10870 * common/pathstuff.h: New file.
10871 * compile/compile.c: Include "common/pathstuff.h".
10872 * defs.h (current_directory): Move to "common/common-defs.h".
10873 * dwarf2read.c: Include "common/pathstuff.h".
10874 * exec.c: Likewise.
10875 * guile/scm-safe-call.c: Likewise.
10876 * linux-thread-db.c: Likewise.
10877 * main.c: Likewise.
10878 * nto-tdep.c: Likewise.
10879 * objfiles.c: Likewise.
10880 * source.c: Likewise.
10881 * symtab.c: Likewise.
10882 * utils.c: Include "common/pathstuff.h".
10883 (gdb_realpath): Move to "common/pathstuff.c".
10884 (gdb_realpath_keepfile): Likewise.
10885 (gdb_abspath): Likewise.
10886 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
10887 (gdb_realpath_keepfile): Likewise.
10888 (gdb_abspath): Likewise.
10889
f169cfdc
JB
108902018-02-28 John Baldwin <jhb@FreeBSD.org>
10891
10892 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
10893 wildcard process pid for super_resume for kernels with a
10894 specific bug.
10895
e05cac70
PM
108962018-02-27 Phil Muldoon <pmuldoon@redhat.com>
10897
10898 * compile/compile.c (get_args): Add additional comments
10899 explaining function.
10900
55089490
TT
109012018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
10902 Tom Tromey <tom@tromey.com>
10903
10904 * target.h (memory_write_request_s): Remove typedef. Don't define
10905 VEC.
10906 (target_write_memory_blocks): Change argument to std::vector.
10907 (struct memory_write_request): Add constructor.
10908 * target-memory.c (compare_block_starting_address): Return bool.
10909 Change argument types.
10910 (claim_memory): Change arguments to use std::vector.
10911 (split_regular_and_flash_blocks, blocks_to_erase)
10912 (compute_garbled_blocks): Likewise.
10913 (cleanup_request_data, cleanup_write_requests_vector): Remove.
10914 (target_write_memory_blocks): Change argument to std::vector.
10915 * symfile.c (struct load_section_data): Add constructor and
10916 destructor. Use std::vector for "requests".
10917 (struct load_progress_data): Add initializers.
10918 (load_section_callback): Update. Use "new".
10919 (clear_memory_write_data): Remove.
10920 (generic_load): Update.
10921
0c305b61
AH
109222018-02-27 Alan Hayward <alan.hayward@arm.com>
10923
10924 * arch/aarch64.h: Use common/tdesc.h.
10925
c5196c92
MR
109262018-02-26 Maciej W. Rozycki <macro@mips.com>
10927
10928 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
10929 architecture with a 64-bit ABI.
10930
37c33887
MR
109312018-02-26 Maciej W. Rozycki <macro@mips.com>
10932
10933 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
10934 ahead of target description loading.
10935
d4dd3282
TT
109362018-02-26 Tom Tromey <tom@tromey.com>
10937
10938 * stack.c (backtrace_command_1): Update.
10939 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
10940 of "flags".
10941 * python/py-framefilter.c (py_print_frame)
10942 (gdbpy_apply_frame_filter): Change type of "flags".
10943 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
10944 of "flags".
10945 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
10946 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
10947 * extension.h (enum frame_filter_flag): Rename from
10948 frame_filter_flags.
10949 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
10950 (apply_ext_lang_frame_filter): Change type of "flags".
10951 * extension.c (apply_ext_lang_frame_filter): Change type of
10952 "flags".
10953 * extension-priv.h (struct extension_language_ops)
10954 <apply_frame_filter>: Change type of "flags".
10955
6893c19a
TT
109562018-02-26 Tom Tromey <tom@tromey.com>
10957
10958 PR python/16497:
10959 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
10960 off-by-one in py_end computation.
10961 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
10962 PRINT_MORE_FRAMES.
10963 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
10964 constant.
10965
2ddeaf8a
TT
109662018-02-26 Tom Tromey <tom@tromey.com>
10967
10968 * dwarf2read.c (struct variant_field): New.
10969 (struct nextfield) <variant>: New field.
10970 (dwarf2_add_field): Handle DW_TAG_variant_part.
10971 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
10972 discriminated union.
10973 (read_structure_type): Handle DW_TAG_variant_part.
10974 (handle_struct_member_die): New function, extracted from
10975 process_structure_scope. Handle DW_TAG_variant.
10976 (process_structure_scope): Handle discriminated unions. Call
10977 handle_struct_member_die.
10978
c9317f21
TT
109792018-02-26 Tom Tromey <tom@tromey.com>
10980
10981 * rust-lang.h (rust_last_path_segment): Declare.
10982 * rust-lang.c (rust_last_path_segment): Now public. Change
10983 contract.
10984 (struct disr_info): Remove.
10985 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
10986 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
10987 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
10988 (rust_enum_p, rust_enum_variant): New function.
10989 (rust_underscore_fields): Remove "offset" parameter.
10990 (rust_print_enum): New function.
10991 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
10992 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
10993 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
10994 enums.
10995 (rust_internal_print_type): New function, from rust_print_type.
10996 Remove enum code.
10997 (rust_print_type): Call rust_internal_print_type.
10998 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
10999 Update enum handling.
11000 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11001 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11002 (rust_union_quirks): New functions.
11003 (process_full_comp_unit, process_full_type_unit): Call
11004 rust_union_quirks.
11005 (process_structure_scope): Update rust_unions if necessary.
11006
7c22600a
TT
110072018-02-26 Tom Tromey <tom@tromey.com>
11008
11009 * value.h (value_union_variant): Declare.
11010 * valops.c (value_union_variant): New function.
11011 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11012 (struct discriminant_info): New.
11013 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11014 enumerator.
11015 (struct main_type) <flag_discriminated_union>: New field.
11016
15ce8941
TT
110172018-02-26 Tom Tromey <tom@tromey.com>
11018
11019 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11020 unittests/unpack-selftests.c.
11021 * unittests/unpack-selftests.c: New file.
11022 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11023
48fbe735
YQ
110242018-02-26 Yao Qi <yao.qi@linaro.org>
11025
11026 * dwarf2read.c (struct partial_die_info) <read>: New method.
11027 (read_partial_die): Remove the declaration.
11028 (load_partial_dies): Update.
11029 (partial_die_info::partial_die_info):
11030 (read_partial_die): Change it to partial_die_info::read.
11031
52356b79
YQ
110322018-02-26 Yao Qi <yao.qi@linaro.org>
11033
11034 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11035 (fixup_partial_die): Remove declaration.
11036 (scan_partial_symbols): Update.
11037 (partial_die_parent_scope): Likewise.
11038 (partial_die_full_name): Likewise.
11039 (fixup_partial_die): Change it to partial_die_info::fixup.
11040
35cc7ed7
YQ
110412018-02-26 Yao Qi <yao.qi@linaro.org>
11042
11043 * dwarf2read.c (read_partial_die): Update the declaration.
11044 (load_partial_dies): Caller update.
11045 (read_partial_die): Remove one argument abbrev_len.
11046
6f06d47b
YQ
110472018-02-26 Yao Qi <yao.qi@linaro.org>
11048
11049 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11050 assignment operator.
11051 (load_partial_dies): Use ctor and copy ctor.
11052 (read_partial_die): Update.
11053 (dwarf2_cu::find_partial_die): Use ctor.
11054
d590ff25
YQ
110552018-02-26 Yao Qi <yao.qi@linaro.org>
11056
11057 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11058 (find_partial_die_in_comp_unit): Change it to
11059 dwarf2_cu::find_partial_die.
11060 (find_partial_die): Update.
11061
fd0a254f
YQ
110622018-02-26 Yao Qi <yao.qi@linaro.org>
11063
11064 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11065 is NULL.
11066
cd9983dd
YQ
110672018-02-26 Yao Qi <yao.qi@linaro.org>
11068
11069 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11070
f46cd62a
AH
110712018-02-26 Alan Hayward <alan.hayward@arm.com>
11072
11073 * arch/amd64.h: Use common/tdesc.h.
11074 * arch/i386.c: Likewise.
11075 * arch/i386.h: Likewise.
11076 * arch/tic6x.c: Likewise.
11077 * arch/tdesc.h: Move file from here...
11078 * common/tdesc.h: ...to here.
11079 * features/aarch64-core.c: Regenerate.
11080 * features/aarch64-fpu.c: Regenerate.
11081 * features/i386/32bit-avx.c: Regenerate.
11082 * features/i386/32bit-avx512.c: Regenerate.
11083 * features/i386/32bit-core.c: Regenerate.
11084 * features/i386/32bit-linux.c: Regenerate.
11085 * features/i386/32bit-mpx.c: Regenerate.
11086 * features/i386/32bit-pkeys.c: Regenerate.
11087 * features/i386/32bit-sse.c: Regenerate.
11088 * features/i386/64bit-avx.c: Regenerate.
11089 * features/i386/64bit-avx512.c: Regenerate.
11090 * features/i386/64bit-core.c: Regenerate.
11091 * features/i386/64bit-linux.c: Regenerate.
11092 * features/i386/64bit-mpx.c: Regenerate.
11093 * features/i386/64bit-pkeys.c: Regenerate.
11094 * features/i386/64bit-segments.c: Regenerate.
11095 * features/i386/64bit-sse.c: Regenerate.
11096 * features/i386/x32-core.c: Regenerate.
11097 * features/tic6x-c6xp.c: Regenerate.
11098 * features/tic6x-core.c: Regenerate.
11099 * features/tic6x-gp.c: Regenerate.
11100 * target-descriptions.c: Use common/tdesc.h.
11101 * target-descriptions.h: Likewise.
11102
9b292f68
TT
111032018-02-24 Tom Tromey <tom@tromey.com>
11104
11105 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11106 (try_thread_db_load_from_dir, thread_db_load_search): Use
11107 std::string.
11108 (info_auto_load_libthread_db_compare): Return bool. Change
11109 argument types.
11110 (info_auto_load_libthread_db): Use std::vector, std::string.
11111 Remove cleanups.
11112
281d762b
TT
111132018-02-24 Tom Tromey <tom@tromey.com>
11114
11115 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11116 std::string.
11117 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11118 std::string*.
11119 * gdbarch.c: Rebuild.
11120 * gdbarch.h: Rebuild.
11121 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11122 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11123 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11124 std::string*.
11125
9d8780f0
SM
111262018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11127
11128 * gdbtypes.h (sect_offset): Change type to uint64_t.
11129 (sect_offset_str): New function.
11130 * dwarf2read.c (create_addrmap_from_aranges): Use
11131 sect_offset_str.
11132 (error_check_comp_unit_head): Likewise.
11133 (create_debug_type_hash_table): Likewise.
11134 (read_cutu_die_from_dwo): Likewise.
11135 (init_cutu_and_read_dies): Likewise.
11136 (init_cutu_and_read_dies_no_follow): Likewise.
11137 (process_psymtab_comp_unit_reader): Likewise.
11138 (partial_die_parent_scope): Likewise.
11139 (peek_die_abbrev): Likewise.
11140 (process_queue): Likewise.
11141 (dwarf2_physname): Likewise.
11142 (read_namespace_alias): Likewise.
11143 (read_import_statement): Likewise.
11144 (create_dwo_cu_reader): Likewise.
11145 (create_cus_hash_table): Likewise.
11146 (lookup_dwo_cutu): Likewise.
11147 (inherit_abstract_dies): Likewise.
11148 (read_func_scope): Likewise.
11149 (read_call_site_scope): Likewise.
11150 (dwarf2_add_member_fn): Likewise.
11151 (read_common_block): Likewise.
11152 (read_module_type): Likewise.
11153 (read_typedef): Likewise.
11154 (read_subrange_type): Likewise.
11155 (load_partial_dies): Likewise.
11156 (read_partial_die): Likewise.
11157 (find_partial_die): Likewise.
11158 (read_str_index): Likewise.
11159 (dwarf2_string_attr): Likewise.
11160 (build_error_marker_type): Likewise.
11161 (lookup_die_type): Likewise.
11162 (dump_die_shallow): Likewise.
11163 (follow_die_ref): Likewise.
11164 (dwarf2_fetch_die_loc_sect_off): Likewise.
11165 (dwarf2_fetch_constant_bytes): Likewise.
11166 (follow_die_sig): Likewise.
11167 (get_signatured_type): Likewise.
11168 (get_DW_AT_signature_type): Likewise.
11169 (dwarf2_find_containing_comp_unit): Likewise.
11170 (set_die_type): Likewise.
11171
8ec57239
JB
111722018-02-21 John Baldwin <jhb@FreeBSD.org>
11173
11174 * arch/aarch64.c: Include "common-defs.h".
11175 * arch/amd64.c: Likewise.
11176 * arch/i386.c: Likewise.
11177
3eac2b65
TT
111782018-02-21 Tom Tromey <tom@tromey.com>
11179
11180 * value.h: (extract_field_op): Update.
11181 * eval.c (extract_field_op): Return a const char *.
11182 * expression.h (parse_expression_for_completion): Update.
11183 * completer.c (complete_expression): Update.
11184 (add_struct_fields): Make fieldname const.
11185 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11186 (mark_completion_tag, parse_exp_in_context_1): Update.
11187 (parse_expression_for_completion): Change "name" to
11188 unique_xmalloc_ptr*.
11189
6ccb583f
TT
111902018-02-21 Tom Tromey <tom@tromey.com>
11191
11192 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11193
c113ed0c
YQ
111942018-02-21 Yao Qi <yao.qi@linaro.org>
11195
11196 * avr-tdep.c (avr_read_pc): Change parameter type to
11197 readable_regcache.
11198 * gdbarch.sh (read_pc): Likewise.
11199 * gdbarch.c: Re-generated.
11200 * gdbarch.h: Re-generated.
11201 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11202 readable_regcache.
11203 * ia64-tdep.c (ia64_read_pc): Likewise.
11204 * mips-tdep.c (mips_read_pc): Likewise.
11205 * spu-tdep.c (spu_read_pc): Likewise.
11206
4c74fe6b
YQ
112072018-02-21 Yao Qi <yao.qi@linaro.org>
11208
11209 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11210 * regcache-dump.c: New file.
11211 * regcache.c: Move register_dump to regcache-dump.c.
11212 (maintenance_print_registers): Likewise.
11213 (maintenance_print_raw_registers): Likewise.
11214 (maintenance_print_cooked_registers): Likewise.
11215 (maintenance_print_register_groups): Likewise.
11216 (maintenance_print_remote_registers): Likewise.
11217 (_initialize_regcache): Likewise.
11218 * regcache.h (register_dump): Moved from regcache.c.
11219
796bb026
YQ
112202018-02-21 Yao Qi <yao.qi@linaro.org>
11221
11222 * regcache.c (regcache::regcache): Update.
11223 (regcache::invalidate): Move it to detached_regcache::invalidate.
11224 (get_thread_arch_aspace_regcache): Update.
11225 (regcache::raw_update): Update.
11226 (regcache::cooked_read): Remove some code.
11227 (regcache::cooked_read_value): Likewise.
11228 (regcache::raw_write): Remove assert on m_readonly_p.
11229 (regcache::raw_supply_integer): Move it to
11230 detached_regcache::raw_supply_integer.
11231 (regcache::raw_supply_zeroed): Likewise.
11232 * regcache.h (detached_regcache) <raw_supply_integer>: New
11233 declaration.
11234 <raw_supply_zeroed, invalidate>: Likewise.
11235 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11236 <invalidate>: Likewise.
11237 <m_readonly_p>: Removed.
11238
215c69dc
YQ
112392018-02-21 Yao Qi <yao.qi@linaro.org>
11240
11241 * infcmd.c (get_return_value): Let stop_regs point to
11242 get_current_regcache.
11243 * regcache.c (regcache::regcache): Remove.
11244 (register_dump_reg_buffer): New class.
11245 (regcache_print): Adjust.
11246 * regcache.h (regcache): Remove constructors.
11247
f3384e66
YQ
112482018-02-21 Yao Qi <yao.qi@linaro.org>
11249
11250 * regcache.c (class register_dump): New class.
11251 (register_dump_regcache, register_dump_none): New class.
11252 (register_dump_remote, register_dump_groups): New class.
11253 (regcache_print): Update.
11254 * regcache.h (regcache_dump_what): Move it to regcache.c.
11255 (regcache) <dump>: Remove.
11256
c8ec2f33
YQ
112572018-02-21 Yao Qi <yao.qi@linaro.org>
11258
11259 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11260 reg_buffer_rw *.
11261 (jit_unwind_reg_set_impl): Call raw_supply.
11262 (jit_frame_sniffer): Use reg_buffer_rw.
11263 * record-full.c (record_full_core_regbuf): Change its type.
11264 (record_full_core_open_1): Use reg_buffer_rw.
11265 (record_full_close): Likewise.
11266 (record_full_core_fetch_registers): Use regcache->raw_supply.
11267 (record_full_core_store_registers): Likewise.
11268 * regcache.c (regcache::get_register_status): Move it to
11269 reg_buffer.
11270 (regcache_raw_set_cached_value): Remove.
11271 (regcache::raw_set_cached_value): Remove.
11272 (regcache::raw_write): Call raw_supply.
11273 (regcache::raw_supply): Move it to reg_buffer_rw.
11274 * regcache.h (regcache_raw_set_cached_value): Remove.
11275 (reg_buffer_rw): New class.
11276
daf6667d
YQ
112772018-02-21 Yao Qi <yao.qi@linaro.org>
11278
11279 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11280 readonly_detached_regcache.
11281 (dummy_frame_prev_register): Use regcache->cooked_read.
11282 * frame.c (frame_save_as_regcache): Change return type.
11283 (frame_pop): Update.
11284 * frame.h (frame_save_as_regcache): Update declaration.
11285 * inferior.h (get_infcall_suspend_state_regcache): Update
11286 declaration.
11287 * infrun.c (infcall_suspend_state) <registers>: use
11288 readonly_detached_regcache.
11289 (save_infcall_suspend_state): Don't use regcache_dup.
11290 (get_infcall_suspend_state_regcache): Change return type.
11291 * linux-fork.c (struct fork_info) <savedregs>: Change to
11292 readonly_detached_regcache.
11293 <pc>: New field.
11294 (fork_save_infrun_state): Don't use regcache_dup.
11295 (info_checkpoints_command): Adjust.
11296 * mi/mi-main.c (register_changed_p): Update declaration.
11297 (mi_cmd_data_list_changed_registers): Use
11298 readonly_detached_regcache.
11299 (register_changed_p): Change parameter type to
11300 readonly_detached_regcache.
11301 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11302 readonly_detached_regcache.
11303 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11304 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11305 New.
11306 (regcache::save): Move it to reg_buffer.
11307 (regcache::restore): Change parameter type.
11308 (regcache_dup): Remove.
11309 * regcache.h (reg_buffer) <save>: New method.
11310 (readonly_detached_regcache): New class.
11311 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11312 readonly_detached_regcache.
11313 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11314
fc5b8736
YQ
113152018-02-21 Yao Qi <yao.qi@linaro.org>
11316
11317 * frame.c (frame_save_as_regcache): Use regcache method save.
11318 (frame_pop): Use regcache method restore.
11319 * infrun.c (restore_infcall_suspend_state): Likewise.
11320 * linux-fork.c (fork_load_infrun_state): Likewise.
11321 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11322 save.
11323 * regcache.c (regcache_save): Remove.
11324 (regcache::restore): More asserts.
11325 (regcache_cpy): Remove.
11326 * regcache.h (regcache_save): Remove the declaration.
11327 (regcache::restore): Move from private to public.
11328 Remove the friend declaration of regcache_cpy.
11329 (regcache_cpy): Remove declaration.
11330
849d0ba8
YQ
113312018-02-21 Yao Qi <yao.qi@linaro.org>
11332
11333 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11334 parameter type to 'readable_regcache *'.
11335 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11336 * arm-tdep.c (arm_neon_quad_read): Likewise.
11337 (arm_pseudo_read): Likewise.
11338 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11339 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11340 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11341 * gdbarch.c: Re-generated.
11342 * gdbarch.h: Re-generated.
11343 * gdbarch.sh (pseudo_register_read): Change parameter type to
11344 'readable_regcache *'.
11345 (pseudo_register_read_value): Likewise.
11346 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11347 (h8300_pseudo_register_read): Likewise.
11348 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11349 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11350 (i386_pseudo_register_read_into_value): Likewise.
11351 (i386_pseudo_register_read_value): Likewise.
11352 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11353 declaration.
11354 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11355 * m32c-tdep.c (m32c_raw_read): Likewise.
11356 (m32c_read_flg): Likewise.
11357 (m32c_banked_register): Likewise.
11358 (m32c_banked_read): Likewise.
11359 (m32c_sb_read): Likewise.
11360 (m32c_part_read): Likewise.
11361 (m32c_cat_read): Likewise.
11362 (m32c_r3r2r1r0_read): Likewise.
11363 (m32c_pseudo_register_read): Likewise.
11364 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11365 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11366 (mep_pseudo_cr64_read): Likewise.
11367 (mep_pseudo_register_read): Likewise.
11368 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11369 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11370 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11371 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11372 (regcache::cooked_read): Likewise.
11373 (regcache::cooked_read_value): Likewise.
11374 (regcache_cooked_read_signed):
11375 (regcache::cooked_read): Likewise.
11376 * regcache.h (readable_regcache): New class.
11377 (regcache): Inherit readable_regcache. Move some methods to
11378 readable_regcache.
11379 * rl78-tdep.c (rl78_pseudo_register_read): Change
11380 parameter type to 'readable_regcache *'.
11381 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11382 (e500_pseudo_register_read): Change parameter type to
11383 'readable_regcache *'.
11384 (dfp_pseudo_register_read): Likewise.
11385 (vsx_pseudo_register_read): Likewise.
11386 (efpr_pseudo_register_read): Likewise.
11387 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11388 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11389 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11390 (sh64_pseudo_register_read): Likewise.
11391 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11392 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11393 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11394 (spu_pseudo_register_read): Likewise.
11395 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11396 (xtensa_pseudo_register_read): Likewise.
11397
31716595
YQ
113982018-02-21 Yao Qi <yao.qi@linaro.org>
11399
11400 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11401 (regcache::arch): Move it to reg_buffer::arch.
11402 (regcache::register_buffer): Likewise.
11403 (regcache::assert_regnum): Likewise.
11404 (regcache::num_raw_registers): Likewise.
11405 * regcache.h (reg_buffer): New class.
11406 (regcache): Inherit reg_buffer.
11407
7104e59b
SM
114082018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11409
11410 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11411 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11412
2d8adcbd
MM
114132018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11414
11415 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11416
b5884fa7
AH
114172018-02-19 Alan Hayward <alan.hayward@arm.com>
11418
11419 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11420 (SFILES): Remove common/*.c files.
11421 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11422 * common/common.host: Add common reference.
11423 * configure.ac: Likewise.
11424 * configure: Regenerate.
11425
fd90ace4
YQ
114262018-02-16 Yao Qi <yao.qi@linaro.org>
11427
11428 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11429 (block_initialize_namespace): Use new.
11430 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11431 (dwarf2_free_objfile): Use delete.
11432 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11433 (copy_type_recursive): Use new.
11434 * gdb_obstack.h (allocate_on_obstack): New.
11435
85046ae2
YQ
114362018-02-15 Yao Qi <yao.qi@linaro.org>
11437
11438 PR gdb/22849
11439 * inferior.c (exit_inferior_1): Reset inf->control.
11440
355c559b
JB
114412018-02-15 Joel Brobecker <brobecker@adacore.com>
11442
11443 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11444 declaration.
11445
980548fd
PA
114462018-02-14 Pedro Alves <palves@redhat.com>
11447
11448 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11449 frame_cleanup_after_sniffer on exception.
11450
692d6f97
TT
114512018-02-14 Tom Tromey <tom@tromey.com>
11452
11453 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11454 const.
11455 (solib_bfd_open): Make pathname const.
11456 * solib.c (solib_bfd_open): Make pathname const.
11457 * solib-spu.c (spu_bfd_fopen): Make name const.
11458 (spu_bfd_open): Make pathname const.
11459 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11460 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11461
e0cc99a6
TT
114622018-02-14 Tom Tromey <tom@tromey.com>
11463
11464 * symfile.c (symfile_bfd_open): Update.
11465 * source.h (openp, source_full_path_of, find_and_open_source):
11466 Change argument type to unique_xmalloc_ptr.
11467 * source.c (openp): Take a unique_xmalloc_ptr.
11468 (source_full_path_of, find_and_open_source): Likewise.
11469 (open_source_file, symtab_to_fullname): Update.
11470 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11471 unique_xmalloc_ptr.
11472 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11473 (exec_file_find): Update.
11474 * psymtab.c (psymtab_to_fullname): Update.
11475 * nto-tdep.h (nto_find_and_open_solib): Update.
11476 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11477 unique_xmalloc_ptr.
11478 * exec.c (exec_file_attach): Update.
11479 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11480 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11481
b46a8d7c
TT
114822018-02-14 Tom Tromey <tom@tromey.com>
11483
11484 * solib.c: Include source.h.
11485 * nto-tdep.c: Include source.h.
11486 * mi/mi-cmd-env.c: Include source.h.
11487 * infcmd.c: Include source.h.
11488 * exec.c: Include source.h.
11489 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11490 (add_path, directory_switch, source_path, init_source_path): Move
11491 declarations...
11492 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11493 (add_path, directory_switch, source_path, init_source_path):
11494 ...here.
11495
797bc1cb
TT
114962018-02-14 Tom Tromey <tom@tromey.com>
11497
11498 * solist.h (exec_file_find, solib_find): Return
11499 unique_xmalloc_ptr.
11500 (solib_bfd_fopen): Take a const char *.
11501 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11502 (exec_file_find, solib_find): Likewise.
11503 (solib_bfd_fopen): Do not take ownership of "pathname".
11504 (solib_bfd_open): Use unique_xmalloc_ptr.
11505 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11506 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11507 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11508 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11509
f98b2e33
JB
115102018-02-14 Joel Brobecker <brobecker@adacore.com>
11511
11512 * ada-lang.c (name_match_type_from_name): Remove reference to
11513 ada_name_for_lookup in function's documentation.
11514 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11515
24b9144d
SM
115162018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11517
11518 * defs.h (enum openp_flags): New enum.
11519 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11520 Move to enum openp_flags.
11521 (openp_flags): New enum flags.
11522 (openp): Change parameter type to openp_flags.
11523 * source.c (openp): Change parameter type to openp_flags.
11524 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11525 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11526
387cd15b
SM
115272018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11528
11529 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11530 per-command.
11531
b303c6f6
AB
115322018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11533
11534 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11535 into...
11536 (class dwarf2_queue_guard): ...the destructor of this new class.
11537 (dw2_do_instantiate_symtab): Create instance of the new class
11538 dwarf2_queue_guard, remove cleanup.
11539
9c3630e9
TT
115402018-02-09 Tom Tromey <tom@tromey.com>
11541
11542 * source.c (find_source_lines): Don't reference past the end of
11543 the vector.
11544
c4e12631
MM
115452018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11546
11547 * remote.c (remote_btrace_maybe_reopen): Change error message.
11548 * btrace.c (btrace_enable): Likewise.
11549 (parse_xml_btrace): Likewise.
11550 (parse_xml_btrace_conf): Likewise.
11551
88711fbf
MM
115522018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11553
11554 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11555 (linux_enable_pt, linux_enable_bts): Call
11556 diagnose_perf_event_open_fail.
11557
17ad2a4f
MM
115582018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11559
11560 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11561 Remove parameter and change return type. Update callers. Move it.
11562 (linux_enable_bts, linux_enable_pt): Improve error message.
11563 (linux_enable_pt): Remove zero buffer size check.
11564 (linux_enable_btrace): Improve error messages. Remove NULL return
11565 check.
11566
de6242d3
MM
115672018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11568
11569 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11570 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11571 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11572 (linux_supports_pt, linux_supports_btrace): Remove.
11573 (linux_enable_bts): Call cpu_supports_bts.
11574 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11575 * remote.c (remote_supports_btrace): Remove.
11576 (init_remote_ops): Remove remote_supports_btrace.
11577 * target-delegates.c: Regenerated.
11578 * target.c (target_supports_btrace): Remove.
11579 * target.h (target_ops) <to_supports_btrace>: Remove
11580 (target_supports_btrace): Remove.
11581 * x86-linux-nat.c (x86_linux_create_target): Remove
11582 linux_supports_btrace.
11583
9ee23a85
MM
115842018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11585
11586 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11587 btrace failed.
11588 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11589 exception and use message in own exception.
11590
5c3284c1
MM
115912018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11592
11593 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11594 (perf_event_pt_event_type): Use gdb_file_up.
11595 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11596 scoped_fd, and scoped_mmap.
11597
84696f37
MM
115982018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11599
11600 * common/scoped_mmap.h: New.
11601 * unittests/scoped_mmap-selftest.c: New.
11602 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11603 unittests/scoped_mmap-selftest.c.
11604
ea4a0888
MM
116052018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11606
11607 * common/scoped_fd.h: New.
11608 * unittests/scoped_fd-selftest.c: New.
11609 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11610 unittests/scoped_fd-selftest.c.
11611
869e8290
TT
116122018-02-09 Tom Tromey <tom@tromey.com>
11613
11614 * auto-load.c (auto_load_section_scripts): Use
11615 gdb::unique_xmalloc_ptr.
11616
a37a2ae7
TT
116172018-02-09 Tom Tromey <tom@tromey.com>
11618
11619 * auto-load.c (execute_script_contents): Use std::string.
11620
4e725347
JB
116212018-02-09 Joel Brobecker <brobecker@adacore.com>
11622
11623 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11624 Python function, rather than a new command.
11625
9a897d43
TT
116262018-02-08 Tom Tromey <tom@tromey.com>
11627
11628 * solib.c (solib_find_1): Use std::string.
11629 (solib_bfd_fopen): Use unique_xmalloc_ptr.
11630
58ef3771
TT
116312018-02-08 Tom Tromey <tom@tromey.com>
11632
11633 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11634
a9abc434
TT
116352018-02-08 Tom Tromey <tom@tromey.com>
11636
11637 * source.c (find_source_lines): Use gdb::def_vector.
11638
84f27c6f
TT
116392018-02-08 Tom Tromey <tom@tromey.com>
11640
11641 * macrocmd.c (struct temporary_macro_definition): New.
11642 (macro_define_command): Use temporary_macro_definition. Remove
11643 cleanups.
11644 (free_macro_definition_ptr): Remove.
11645
0354904b
TT
116462018-02-08 Tom Tromey <tom@tromey.com>
11647
11648 * macroexp.c (maybe_expand): Use std::string.
11649
1739cf24
TT
116502018-02-08 Tom Tromey <tom@tromey.com>
11651
11652 * macroexp.c (struct macro_buffer): Add initializers for some
11653 members.
11654 (init_buffer, init_shared_buffer, free_buffer)
11655 (free_buffer_return_text): Remove.
11656 (macro_buffer): New constructors.
11657 (~macro_buffer): New destructor.
11658 (macro_buffer::set_shared): New method.
11659 (macro_buffer::resize_buffer, macro_buffer::appendc)
11660 (macro_buffer::appendmem): Now methods, not free functions.
11661 (set_token, append_tokens_without_splicing, stringify)
11662 (macro_stringify): Update.
11663 (gather_arguments): Change return type. Remove argc_p argument,
11664 add args_ptr argument. Use std::vector.
11665 (substitute_args): Remove argc argument. Accept std::vector.
11666 (expand): Update. Use std::vector.
11667 (scan, macro_expand, macro_expand_next): Update.
11668
f6c2623e
TT
116692018-02-08 Tom Tromey <tom@tromey.com>
11670
11671 * symtab.c (default_collect_symbol_completion_matches_break_on):
11672 Use unique_xmalloc_ptr.
11673 * macroscope.h: (sal_macro_scope, user_macro_scope)
11674 (default_macro_scope): Return unique_xmalloc_ptr.
11675 * macroscope.c (sal_macro_scope, user_macro_scope)
11676 (default_macro_scope): Return unique_xmalloc_ptr.
11677 * macroexp.h (macro_expand, macro_expand_once): Return
11678 unique_xmalloc_ptr.
11679 * macroexp.c (macro_expand, macro_expand_once): Return
11680 unique_xmalloc_ptr.
11681 * macrocmd.c (macro_expand_command, macro_expand_once_command)
11682 (info_macro_command, info_macros_command): Use
11683 unique_xmalloc_ptr.
11684 * compile/compile-c-support.c (write_macro_definitions): Use
11685 unique_xmalloc_ptr.
11686 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11687
c2e0e465
SM
116882018-02-07 Simon Marchi <simon.marchi@ericsson.com>
11689
11690 * value.c (value_static_field): Assign field type instead of
11691 containing type when returning an optimized out value.
11692
3f8c94b4
YQ
116932018-02-06 Yao Qi <yao.qi@linaro.org>
11694
11695 * ft32-tdep.c (ft32_read_pc): Remove.
11696 (ft32_write_pc): Remove.
11697 (ft32_gdbarch_init): Update.
11698 * m32r-tdep.c (m32r_read_pc): Remove.
11699 (m32r_gdbarch_init): Update.
11700 * mep-tdep.c (mep_read_pc): Remove.
11701 (mep_gdbarch_init): Update.
11702 * microblaze-tdep.c (microblaze_write_pc): Remove.
11703 (microblaze_gdbarch_init): Update.
11704 * mn10300-tdep.c (mn10300_read_pc): Remove.
11705 (mn10300_write_pc): Remove.
11706 (mn10300_gdbarch_init): Update.
11707 * moxie-tdep.c (moxie_read_pc): Remove.
11708 (moxie_write_pc): Remove.
11709 (moxie_gdbarch_init): Update.
11710
bca65a23
YQ
117112018-02-06 Yao Qi <yao.qi@linaro.org>
11712
11713 * expprint.c (print_subexp_standard): Handle
11714 OP_F77_UNDETERMINED_ARGLIST.
11715 (dump_subexp_body_standard): Likewise.
11716
583e3f90 117172018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 11718
583e3f90
YQ
11719 * target-descriptions.c (tdesc_element_visitor) Add empty
11720 implementations.
b8df6ca7
AH
11721 (tdesc_type): Move make_gdb_type from here.
11722 (tdesc_type_builtin): Likewise.
11723 (tdesc_type_vector): Likewise.
11724 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11725 (make_gdb_type_struct): Move from tdesc_type_with_fields.
11726 (make_gdb_type_union): Likewise.
11727 (make_gdb_type_flags): Likewise.
11728 (make_gdb_type_enum): Likewise.
11729 (make_gdb_type): New function.
11730 (tdesc_register_type): Use static make_gdb_type.
11731
e813d34a
RK
117322018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11733
11734 * infcmd.c (default_print_one_register_info): Align natural-format
11735 column values consistently one under another.
11736 (pad_to_column): New function.
11737
0eb876f5
JB
117382018-02-05 Joel Brobecker <brobecker@adacore.com>
11739
11740 * dwarf2read.c (dwarf2_physname): Move commment.
11741
0625771b
LS
117422018-02-01 Leszek Swirski <leszeks@google.com>
11743
11744 * varobj.c (varobj_formatted_print_options): Allow recursive
11745 pretty printing if pretty printing is enabled.
11746
59498c30
LS
117472018-02-01 Leszek Swirski <leszeks@google.com>
11748
11749 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11750 names after a structop as a filename.
11751
2d9e6acb
YQ
117522018-02-01 Yao Qi <yao.qi@linaro.org>
11753
11754 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11755 (arm_record_coproc_data_proc): Likewise.
11756
df95a9cf
YQ
117572018-02-01 Yao Qi <yao.qi@linaro.org>
11758
11759 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11760
07e5f5cf
NP
117612018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11762
11763 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11764 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11765
3045b475
PA
117662018-01-31 Pedro Alves <palves@redhat.com>
11767
11768 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11769 * inflow.c (child_terminal_save_inferior): Wrap reference to
11770 tcgetpgrp in HAVE_TERMIOS_H.
11771 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11772 _WIN32.
11773 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11774 always iterate over all inferiors.
11775 (gdbsim_cntrl_c): Adjust.
11776 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11777
929b5ad4
JB
117782018-01-31 Joel Brobecker <brobecker@adacore.com>
11779
11780 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11781 index type is objfile-owned if the element type is as well.
11782
29236ca2
JB
117832018-01-31 Joel Brobecker <brobecker@adacore.com>
11784
11785 GDB 8.1 released.
11786
c81e8879
PR
117872018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11788
11789 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11790 "features/s390x-linux64.c".
11791 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11792 s390_linux32 and s390x_linux64.
11793 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11794 default tdesc.
11795 * s390-tdep.c: Include "features/s390-linux32.c" and
11796 "features/s390x-linux64.c".
11797 (s390_tdesc_valid): Add check for tdesc_has_registers.
11798 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11799 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11800 tdesc_s390x_linux64.
11801 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11802 tdesc_s390x_linux64 to...
11803 * s390-tdep.h: ...here.
11804
e671cd59
PA
118052018-01-30 Pedro Alves <palves@redhat.com>
11806
11807 PR gdb/13211
11808 * config.in, configure: Regenerate.
11809 * configure.ac: Check for getpgid.
11810 * go32-nat.c (go32_pass_ctrlc): New.
11811 (go32_target): Install it.
11812 * inf-child.c (inf_child_target): Install
11813 child_terminal_save_inferior, child_pass_ctrlc and
11814 child_interrupt.
11815 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11816 (inf_ptrace_target): No longer install it.
11817 * infcmd.c (interrupt_target_1): Adjust.
11818 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11819 (child_interrupt): Declare.
11820 (inferior::terminal_state): New.
11821 * inflow.c (struct terminal_info): Update comments.
11822 (inferior_process_group): Delete.
11823 (terminal_is_ours): Delete.
11824 (gdb_tty_state): New.
11825 (child_terminal_init): Adjust.
11826 (is_gdb_terminal, sharing_input_terminal_1)
11827 (sharing_input_terminal): New functions.
11828 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
11829 Set the process's actual process group in the foreground if
11830 possible. Handle is_ours_for_output/is_ours distinction. Don't
11831 mark terminal as the inferior's if not sharing GDB's terminal.
11832 Don't check attach_flag.
11833 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11834 pass down a target_terminal_state.
11835 (child_terminal_save_inferior): New, factored out from ...
11836 (child_terminal_ours_1): ... this. Handle
11837 target_terminal_state::is_ours_for_output.
11838 (child_interrupt, child_pass_ctrlc): New.
11839 (inflow_inferior_exit): Clear the inferior's terminal_state.
11840 (copy_terminal_info): Copy the inferior's terminal state.
11841 (_initialize_inflow): Remove reference to terminal_is_ours.
11842 * inflow.h (inferior_process_group): Delete.
11843 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11844 * procfs.c (procfs_target): Don't install procfs_interrupt.
11845 (procfs_interrupt): Delete.
11846 * remote.c (remote_serial_quit_handler): Adjust.
11847 (remote_interrupt): Remove ptid parameter. Adjust.
11848 * target-delegates.c: Regenerate.
11849 * target.c: Include "terminal.h".
11850 (target_terminal::terminal_state): Rename to ...
11851 (target_terminal::m_terminal_state): ... this.
11852 (target_terminal::init): Adjust.
11853 (target_terminal::inferior): Adjust to per-inferior
11854 terminal_state.
11855 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
11856 (target_terminal::ours, target_terminal::ours_for_output): Use
11857 target_terminal_is_ours_kind.
11858 (target_interrupt): Remove ptid parameter. Adjust.
11859 (default_target_pass_ctrlc): Adjust.
11860 * target.h (target_ops::to_terminal_save_inferior): New field.
11861 (target_ops::to_interrupt): Remove ptid_t parameter.
11862 (target_interrupt): Remove ptid_t parameter. Update comment.
11863 (target_pass_ctrlc): Update comment.
11864 * target/target.h (target_terminal_state): New scoped enum,
11865 factored out of ...
11866 (target_terminal::terminal_state): ... here.
11867 (target_terminal::inferior): Update comments.
11868 (target_terminal::restore_inferior): New.
11869 (target_terminal::is_inferior, target_terminal::is_ours)
11870 (target_terminal::is_ours_for_output): Adjust.
11871 (target_terminal::scoped_restore_terminal_state): Adjust to
11872 rename, and call restore_inferior() instead of inferior().
11873 (target_terminal::scoped_restore_terminal_state::m_state): Change
11874 type.
11875 (target_terminal::terminal_state): Rename to ...
11876 (target_terminal::m_terminal_state): ... this and change type.
11877
9c3a5d93
PA
118782018-01-30 Pedro Alves <palves@redhat.com>
11879
11880 * linux-nat.c (wait_for_signal): New function.
11881 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
11882 directly.
11883 (async_terminal_is_ours)
11884 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
11885 (linux_nat_add_target): Don't override
11886 to_terminal_inferior/to_terminal_ours.
11887
69ab5edb
SDJ
118882018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
11889
11890 * remote.c (remote_follow_fork): Don't call "detach_inferior".
11891
fc8e7e75
SM
118922018-01-28 Simon Marchi <simon.marchi@ericsson.com>
11893
11894 * dwarf2read.c (free_dwo_files): Add forward-declaration.
11895 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
11896 dwarf2_per_objfile_free here.
11897 (dwarf2_per_objfile_free): Remove.
11898 (_initialize_dwarf2_read): Don't register
11899 dwarf2_per_objfile_free as a registry cleanup.
11900
b2a426e2
EZ
119012018-01-27 Eli Zaretskii <eliz@gnu.org>
11902
11903 Avoid compilation errors in MinGW native builds
11904
11905 The error is triggered by including python-internal.h, and the
11906 error message is:
11907
11908 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
11909 from build-gnulib/import/math.h:27,
11910 from d:/usr/Python26/include/pyport.h:235,
11911 from d:/usr/Python26/include/Python.h:58,
11912 from python/python-internal.h:94,
11913 from python/py-arch.c:24:
11914 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
11915 using ::hypot;
11916 ^~~~~
11917
11918 This happens because Python headers define 'hypot' to expand t
11919 '_hypot' in the Windows builds.
11920 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
11921 'hypoth'. This avoids a compilation error.
11922
0bdd8eac
AH
119232018-01-26 Alan Hayward <alan.hayward@arm.com>
11924
11925 * MAINTAINERS (Write After Approval): Fix ordering.
11926
56ae9dc3
AH
119272018-01-26 Alan Hayward <alan.hayward@arm.com>
11928
11929 * MAINTAINERS (Write After Approval): Add Alan Hayward.
11930
7433498b
AM
119312018-01-26 Alan Modra <amodra@gmail.com>
11932
11933 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
11934 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
11935 Remove nop. Make const. Comment.
11936 (powerpc32_plt_stub_so_2): New.
11937 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
11938 Correct count. Update uses.
11939 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
11940 Move common code reading PLT entry word. Correct
11941 powerpc32_plt_stub PLT address calculation.
11942 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
11943 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
11944 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
11945 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
11946 (ppc64_standard_linkage8): Likewise.
11947 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
11948 Correct insns description.
11949 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
11950
0f59d5fc
PA
119512018-01-24 Pedro Alves <palves@redhat.com>
11952
11953 GCC PR libstdc++/83906
11954 * gdbtypes.c (operator==(const dynamic_prop &,
11955 const dynamic_prop &)): New.
11956 (operator==(const range_bounds &, const range_bounds &)): New.
11957 (check_types_equal): Use them instead of memcmp.
11958 * gdbtypes.h (operator==(const dynamic_prop &,
11959 const dynamic_prop &)): Declare.
11960 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
11961 (operator==(const range_bounds &, const range_bounds &)): Declare.
11962 (operator!=(const range_bounds &, const range_bounds &)): Declare.
11963
ef8914a4
PR
119642018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11965
11966 * s390-linux-tdep.c (s390_record_address_mask)
11967 (s390_record_calc_disp_common, s390_record_calc_disp)
11968 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11969 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11970 (s390_process_record): Move to s390-tdep.c.
11971 (s390_linux_init_abi_any): Adjust.
11972 * s390-tdep.c (s390_record_address_mask)
11973 (s390_record_calc_disp_common, s390_record_calc_disp)
11974 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11975 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11976 (s390_process_record): Moved from s390-linux-tdep.c
11977 (s390_gdbarch_init): Adjust.
11978
d6e58945
PR
119792018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11980
11981 * s390-linux-nat.c (s390-tdep.h): New include.
11982 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
11983 (HFILES_NO_SRCDIR): Add s390-tdep.h.
11984 (ALLDEPFILES): Add s390-tdep.c.
11985 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
11986 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
11987 * s390-tdep.h: ...this. New file.
11988 * s390-linux-tdep.c (s390-tdep.h): New include.
11989 (_initialize_s390_tdep): Rename to...
11990 (_initialize_s390_linux_tdep): ...this and adjust.
11991 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
11992 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
11993 s390-tdep.h.
11994 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
11995 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
11996 (s390_is_partial_instruction, s390_software_single_step)
11997 (is_non_branch_ril, s390_displaced_step_copy_insn)
11998 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
11999 (s390_prologue_data, s390_addr, s390_store, s390_load)
12000 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12001 (s390_register_call_saved, s390_guess_tracepoint_registers)
12002 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12003 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12004 (s390_pseudo_register_name, s390_pseudo_register_type)
12005 (s390_pseudo_register_read, s390_pseudo_register_write)
12006 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12007 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12008 (s390_addr_bits_remove, s390_address_class_type_flags)
12009 (s390_address_class_type_flags_to_name)
12010 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12011 (s390_function_arg_float, s390_function_arg_vector)
12012 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12013 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12014 (s390_frame_align, s390_register_return_value, s390_return_value)
12015 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12016 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12017 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12018 (s390_trad_frame_prev_register, s390_unwind_cache)
12019 (s390_prologue_frame_unwind_cache)
12020 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12021 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12022 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12023 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12024 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12025 (s390_frame_base_address, s390_local_base_address)
12026 (s390_frame_base, s390_gcc_target_options)
12027 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12028 (s390_validate_reg_range, s390_tdesc_valid)
12029 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12030 * s390-tdep.c: ...this. New file.
12031
9c0b896e
PR
120322018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12033
12034 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12035 (s390_process_record, s390_gdbarch_tdep_alloc)
12036 (s390_linux_init_abi_any): Use/set new hook.
12037
7042632b
PR
120382018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12039
12040 * s390-linux-tdep.c (osabi.h): New include.
12041 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12042 (s390_linux_init_abi_any): New functions.
12043 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12044
650f5e13
PR
120452018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12046
12047 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12048 tdesc_has_registers check
12049
47c9317e
PR
120502018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12051
12052 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12053 (s390_validate_reg_range): New macro.
12054 (s390_gdbarch_init): Adjust.
12055
095085d8
PR
120562018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12057
12058 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12059 (s390_gdbarch_tdep_alloc): Adjust.
12060 (s390_gdbarch_init): Adjust.
12061
ab9bcc67
PR
120622018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12063
12064 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12065 <have_tdb>: Change type to bool.
12066 (s390_gdbarch_tdep_alloc): Adjust.
12067 (s390_gdbarch_init): Adjust.
12068
21f6f5ff
PR
120692018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12070
12071 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12072 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12073 (s390_gdbarch_tdep_alloc): New function.
12074 (s390_gdbarch_init): Allocate tdep at start and use its fields
12075 instead of separate variables.
12076
0eb97953
PR
120772018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12078
12079 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12080 when looking for cached gdbarch and add comment for remaining.
12081
5c319bb2
PA
120822018-01-22 Pedro Alves <palves@redhat.com>
12083 Sergio Durigan Junior <sergiodj@redhat.com>
12084
12085 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12086 case.
12087
d65ce302
MR
120882018-01-22 Maciej W. Rozycki <macro@mips.com>
12089
12090 * MAINTAINERS: Update my company e-mail address.
12091
ec7a5fcb
YQ
120922018-01-22 Yao Qi <yao.qi@linaro.org>
12093
12094 * regcache.c (cooked_write_test): New function.
12095 (_initialize_regcache): Register the test.
12096
11f57cb6
YQ
120972018-01-22 Yao Qi <yao.qi@linaro.org>
12098
12099 * ia64-tdep.c (ia64_pseudo_register_read): Call
12100 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12101 * m32c-tdep.c (m32c_cat_read): Likewise.
12102 (m32c_r3r2r1r0_read): Likewise.
12103 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12104 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12105
03f50fc8
YQ
121062018-01-22 Yao Qi <yao.qi@linaro.org>
12107
12108 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12109 method raw_read instead of regcache_raw_read.
12110 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12111 * arm-tdep.c (arm_neon_quad_read): Likewise.
12112 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12113 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12114 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12115 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12116 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12117 (i386_pseudo_register_read_into_value): Likewise.
12118 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12119 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12120 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12121 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12122 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12123 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12124 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12125 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12126 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12127
dc711524
YQ
121282018-01-22 Yao Qi <yao.qi@linaro.org>
12129
12130 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12131 * configure.tgt: Remove target mt.
12132 * mt-tdep.c: Remove.
12133 * regcache.c (cooked_read_test): Remove the check for mt.
12134
3f5a868b
YQ
121352018-01-22 Yao Qi <yao.qi@linaro.org>
12136
12137 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12138 instead of gdbarch_pseudo_register_read_value.
12139
de4cb04a
JB
121402018-01-22 Joel Brobecker <brobecker@adacore.com>
12141
12142 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12143 language is Ada.
12144
a9e40818
JB
121452018-01-22 Joel Brobecker <brobecker@adacore.com>
12146
12147 * linespec.c (create_sals_line_offset): Remove code that preserved
12148 the symtab_and_line's line number.
12149
e707fc44
AB
121502018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12151
12152 * varobj.c (varobj_create): Don't set valid_block when creating a
12153 floating varobj.
12154
03d0bf7b
AB
121552018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12156
12157 * varobj.c (varobj_create): Remove out of date comment.
12158
ae451627
AB
121592018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12160
12161 PR mi/20395
12162 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12163 updating innermost block.
12164 * parse.c (innermost_block_tracker::update): Take extra type
12165 parameter, and check types match before updating innermost block.
12166 (write_dollar_variable): Update innermost block for registers.
12167 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12168 (innermost_block_tracker::innermost_block_tracker): Initialise
12169 m_types member.
12170 (innermost_block_tracker::reset): Take type parameter.
12171 (innermost_block_tracker::update): Take type parameter, and pass
12172 type through as needed.
12173 (innermost_block_tracker::m_types): New member.
12174 * varobj.c (varobj_create): Pass type when reseting innermost
12175 block.
12176
aee1fcdf
AB
121772018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12178
12179 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12180 * ada-lang.c (resolve_subexp): Likewise.
12181 * breakpoint.c (set_breakpoint_condition) Likewise.
12182 (watch_command_1) Likewise.
12183 * c-exp.y (variable): Likewise.
12184 * d-exp.y (PrimaryExpression): Likewise.
12185 * f-exp.y (variable): Likewise.
12186 * go-exp.y (variable): Likewise.
12187 * m2-exp.y (variable): Likewise.
12188 * objfiles.c (objfile::~objfile): Likewise.
12189 * p-exp.y (variable): Likewise.
12190 * parse.c (innermost_block): Change type.
12191 * parser-defs.h (class innermost_block_tracker): New.
12192 (innermost_block): Change to innermost_block_tracker.
12193 * printcmd.c (display_command): Switch to innermost_block API.
12194 (do_one_display): Likewise.
12195 * rust-exp.y (do_one_display): Likewise.
12196 * symfile.c (clear_symtab_users): Likewise.
12197 * varobj.c (varobj_create): Switch to innermost_block API, replace
12198 use of innermost_block with block stored on varobj object.
12199
396af9a1
AB
122002018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12201
12202 * expression.h (innermost_block): Remove declaration.
12203 * varobj.c: Add 'parser-defs.h' include.
12204
fcfcc376
TT
122052018-01-19 Tom Tromey <tom@tromey.com>
12206
12207 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12208 symbols in the static and global blocks.
12209
5a6c3296
JC
122102018-01-19 James Clarke <jrtc27@jrtc27.com>
12211
12212 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12213 gdb_ptrace.h, and move including gdb_wait.h ...
12214 * nat/linux-ptrace.h: ... to here.
12215
bc09b0c1
SM
122162018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12217
12218 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12219 inf_ptrace_detach_success.
12220 (inf_ptrace_detach_success): Add inferior parameter, use it
12221 instead of inferior_ptid, pass it to detach_inferior.
12222 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12223 parameter.
12224 * inferior.c (detach_inferior): Add overload that takes an
12225 inferior object.
12226 * inferior.h (detach_inferior): Likewise.
12227 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12228 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12229 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12230
6e1e1966
SM
122312018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12232
12233 * target.h (struct target_ops) <to_detach>: Add inferior
12234 parameter.
12235 (target_detach): Likewise.
12236 * target.c (dispose_inferior): Pass inferior down.
12237 (target_detach): Pass inferior down. Assert that it is equal to
12238 the current inferior.
12239 * aix-thread.c (aix_thread_detach): Pass inferior down.
12240 * corefile.c (core_file_command): Pass current_inferior() down.
12241 * corelow.c (core_detach): Add inferior parameter.
12242 * darwin-nat.c (darwin_detach): Likewise.
12243 * gnu-nat.c (gnu_detach): Likewise.
12244 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12245 * infcmd.c (detach_command): Pass current_inferior() down to
12246 target_detach.
12247 * infrun.c (follow_fork_inferior): Pass parent_inf to
12248 target_detach.
12249 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12250 target_detach.
12251 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12252 * linux-thread-db.c (thread_db_detach): Likewise.
12253 * nto-procfs.c (procfs_detach): Likewise.
12254 * procfs.c (procfs_detach): Likewise.
12255 * record.c (record_detach): Likewise.
12256 * record.h (struct inferior): Forward-declare.
12257 (record_detach): Add inferior parameter.
12258 * remote-sim.c (gdbsim_detach): Likewise.
12259 * remote.c (remote_detach_1): Likewise.
12260 (remote_detach): Likewise.
12261 (extended_remote_detach): Likewise.
12262 * sol-thread.c (sol_thread_detach): Likewise.
12263 * target-debug.h (target_debug_print_inferior_p): New macro.
12264 * target-delegates.c: Re-generate.
12265 * top.c (kill_or_detach): Pass inferior down to target_detach.
12266 * windows-nat.c (windows_detach): Add inferior parameter.
12267
6bd6f3b6
SM
122682018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12269
12270 * target.h (struct target_ops) <to_detach>: Remove args
12271 parameter.
12272 (target_detach): Likewise.
12273 * target.c (dispose_inferior): Adjust.
12274 (target_detach): Remove args parameter, adjust.
12275 * aix-thread.c (aix_thread_detach): Adjust.
12276 * corefile.c (core_file_command): Adjust.
12277 * corelow.c (core_detach): Adjust.
12278 * darwin-nat.c (darwin_detach): Adjust.
12279 * gnu-nat.c (gnu_detach): Adjust.
12280 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12281 * infcmd.c (detach_command): Adjust
12282 * infrun.c (follow_fork_inferior): Adjust.
12283 (handle_vfork_child_exec_or_exit): Adjust.
12284 * linux-fork.c (linux_fork_detach): Remove args parameter.
12285 * linux-fork.h (linux_fork_detach): Likewise.
12286 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12287 * linux-thread-db.c (thread_db_detach): Likewise.
12288 * nto-procfs.c (procfs_detach): Likewise.
12289 * procfs.c (procfs_detach): Likewise.
12290 (do_detach): Remove signo parameter.
12291 * record.c (record_detach): Remove args parameter.
12292 * record.h (record_detach): Likewise.
12293 * remote-sim.c (gdbsim_detach): Likewise.
12294 * remote.c (remote_detach_1): Likewise.
12295 (remote_detach): Likewise.
12296 (extended_remote_detach): Likewise.
12297 * sol-thread.c (sol_thread_detach): Likewise.
12298 * target-delegates.c: Re-generate.
12299 * top.c (struct qt_args) <args>: Remove field.
12300 (kill_or_detach): Don't pass args.
12301 (quit_force): Don't set args.
12302 * windows-nat.c (windows_detach): Remove args parameter.
12303
88af8ea8
YQ
123042018-01-19 Yao Qi <yao.qi@linaro.org>
12305
12306 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12307 (arm_linux_init_abi): Install it.
12308
dea445b9
YQ
123092018-01-19 Yao Qi <yao.qi@linaro.org>
12310
12311 * osabi.c (gdb_osabi_names): Extend the regexp for
12312 arm-linux-gnueabihf.
12313
4a17f768
YQ
123142018-01-18 Yao Qi <yao.qi@linaro.org>
12315
12316 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12317 m_abbrevs.
12318 (abbrev_table::add_abbrev): Update.
12319 (abbrev_table::lookup_abbrev): Update.
12320
d679c21a
YQ
123212018-01-18 Yao Qi <yao.qi@linaro.org>
12322
12323 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12324
7d937cad
SDJ
123252018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12326
12327 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12328 to "std::string".
12329
9e14690d
TT
123302018-01-17 Tom Tromey <tom@tromey.com>
12331
12332 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12333
50a82047
TT
123342018-01-17 Tom Tromey <tom@tromey.com>
12335
12336 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12337 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12338 (create_array_type_with_stride): Update.
12339 * dwarf2read.c (set_die_type): Update.
12340
c89b44cd
TT
123412018-01-17 Tom Tromey <tom@tromey.com>
12342
12343 * dwarf2read.c (delayed_method_info): Remove typedef.
12344 (dwarf2_cu::method_info): Now a std::vector.
12345 (add_to_method_list): Update.
12346 (free_delayed_list): Remove.
12347 (compute_delayed_physnames): Update.
12348 (process_full_comp_unit, process_full_type_unit): Clear the method
12349 list. Remove cleanups.
12350 (psymtab_include_file_name): Add name_holder parameter. Use
12351 unique_xmalloc_ptr.
12352 (dwarf_decode_lines): Update.
12353
fcd3b13d
SM
123542018-01-17 Tom Tromey <tom@tromey.com>
12355 Simon Marchi <simon.marchi@ericsson.com>
12356
12357 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12358 (dwarf2_per_objfile::free_cached_comp_units)
12359 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12360 (init_cutu_and_read_dies_no_follow): Update.
12361 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12362 (dwarf2_cu::~dwarf2_cu): New.
12363 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12364 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12365
685af9cd
TT
123662018-01-17 Tom Tromey <tom@tromey.com>
12367 Simon Marchi <simon.marchi@ericsson.com>
12368
12369 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12370 (struct die_reader_specs) <abbrev_table>: New member.
12371 (struct abbrev_table): Add constructor.
12372 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12373 <abbrev_obstack>: Now an auto_obstack.
12374 (abbrev_table_up): New typedef.
12375 (init_cu_die_reader): Add abbrev_table parameter.
12376 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12377 Add result_dwo_abbrev_table.
12378 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12379 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12380 Update.
12381 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12382 parameter.
12383 (skip_children): Update.
12384 (abbrev_table::alloc_abbrev): Rename from
12385 abbrev_table_alloc_abbrev.
12386 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12387 (abbrev_table::lookup_abbrev): Rename from
12388 abbrev_table_lookup_abbrev.
12389 (abbrev_table_read_table): Return abbrev_table_up.
12390 (abbrev_table_free, abbrev_table_free_cleanup)
12391 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12392 (load_partial_dies): Update.
12393
5e2db402
TT
123942018-01-17 Tom Tromey <tom@tromey.com>
12395
12396 * dwarf2read.c (dwarf2_compute_name): Update comment.
12397 (read_func_scope, read_variable): Update.
12398 (new_symbol): Remove.
12399 (new_symbol_full): Rename to new_symbol.
12400
ee7f689e 124012018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
12402
12403 PR gdb/16577
12404 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12405 a warning instead of throwing an error, set section size to 0 and return
12406 NULL.
12407 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12408
4d9b86e1
SM
124092018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12410
12411 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12412 std::string.
12413 (linux_ptrace_attach_fail_reason_string): Likewise.
12414 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12415 Likewise.
12416 (linux_ptrace_attach_fail_reason_string): Likewise.
12417 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12418
a7b2d0fb
SM
124192018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12420
12421 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12422
f517c180
EA
124232018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12424
12425 PR gdb/21559
12426 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12427 checking for fs_base/gs_base fields in struct user_regs_struct.
12428 * configure: Regenerate.
12429
7045b1ca
YQ
124302018-01-17 Yao Qi <yao.qi@linaro.org>
12431
12432 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12433 function.
12434 (aarch64_linux_init_abi): Install it to gdbarch hook
12435 gcc_target_options.
12436
db422fb2
PA
124372018-01-15 Pedro Alves <palves@redhat.com>
12438
12439 * common/signals-state-save-restore.c
12440 (save_original_signals_state): Fix typos.
12441
ba643918
SDJ
124422017-01-12 Tom Tromey <tom@tromey.com>
12443 Sergio Durigan Junior <sergiodj@redhat.com>
12444
12445 * Makefile.in (install-only): Install gdb-add-index.
12446
906b4aac
JB
124472018-01-12 John Baldwin <jhb@FreeBSD.org>
12448
12449 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12450
bdf2a94a
AA
124512018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12452
12453 * infrun.c (keep_going_pass_signal): Clear step-over info when
12454 insert_breakpoints fails.
12455
71d378ae
PA
124562018-01-11 Pedro Alves <palves@redhat.com>
12457
12458 PR gdb/22583
12459 * infrun.c (resume): Rename to ...
12460 (resume_1): ... this.
12461 (resume): Reimplement as wrapper around resume_1.
12462
3cada740
PA
124632018-01-11 Pedro Alves <palves@redhat.com>
12464
12465 PR remote/22597
12466 * remote.c (remote_parse_stop_reply): Default to the last-set
12467 general thread instead of to 'magic_null_ptid'.
12468
618daa93
PA
124692018-01-10 Pedro Alves <palves@redhat.com>
12470
12471 * language.h (language_get_symbol_name_matcher): Rename ...
12472 (get_symbol_name_matcher): ... this.
12473 * language.c (language_get_symbol_name_matcher): Ditto.
12474 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12475 callers adjusted.
12476
c63d3e8d
PA
124772018-01-10 Pedro Alves <palves@redhat.com>
12478
12479 PR gdb/22670
12480 * dwarf2read.c
12481 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12482 Adjust to use language_get_symbol_name_matcher instead of
12483 language_defn::la_get_symbol_name_matcher.
12484 * language.c (language_get_symbol_name_matcher): If in Ada mode
12485 and the lookup name is a verbatim match, return Ada's matcher.
12486 * language.h (language_get_symbol_name_matcher): Adjust comment.
12487 (ada_lookup_name_info::verbatim_p):: New method.
12488
d4c2a405
PA
124892018-01-10 Pedro Alves <palves@redhat.com>
12490
12491 PR gdb/22670
12492 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12493 minsym's language is language_auto or language_cplus, pass down
12494 language_ada instead.
12495 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12496
8825213e
PA
124972018-01-10 Pedro Alves <palves@redhat.com>
12498
12499 PR gdb/22670
12500 * minsyms.c (linkage_name_str): New function.
12501 (iterate_over_minimal_symbols): Use it.
12502
2d97a5d9
JB
125032018-01-09 John Baldwin <jhb@FreeBSD.org>
12504
12505 * NEWS: Document that 'info proc' now works on FreeBSD.
12506
92fce24d
JB
125072018-01-09 John Baldwin <jhb@FreeBSD.org>
12508
12509 * configure.ac: Check for kinfo_getfile in libutil.
12510 * configure: Regenerate.
12511 * config.in: Regenerate.
12512 * fbsd-nat.c: Include "fbsd-tdep.h".
12513 (fbsd_fetch_cmdline): New.
12514 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12515 rather than calling error.
12516 (fbsd_info_proc): New.
12517 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12518 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12519 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12520
262f62f5
JB
125212018-01-09 John Baldwin <jhb@FreeBSD.org>
12522
12523 * fbsd-nat.c (struct free_deleter): Remove.
12524 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12525
b999e203
JB
125262018-01-09 John Baldwin <jhb@FreeBSD.org>
12527
12528 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12529 NULL for an empty pathname.
12530
d2176225
JB
125312018-01-09 John Baldwin <jhb@FreeBSD.org>
12532
12533 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12534 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12535 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12536 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12537 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12538 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12539 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12540 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12541 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12542 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12543 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12544 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12545 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12546 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12547 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12548
9c4ac400
ST
125492018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12550
12551 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12552 (gnu_xfer_auxv): New function.
12553 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12554 TARGET_OBJECT_AUXV.
12555
1e5ded6c
YQ
125562018-01-08 Yao Qi <yao.qi@linaro.org>
12557 Simon Marchi <simon.marchi@ericsson.com>
12558
12559 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12560 common/selftest.c.
12561 (COMMON_OBS): Remove selftest.o.
12562 * configure.ac: Append selftest-arch.c and common/selftest.c to
12563 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12564 * configure: Re-generated.
12565 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12566 GDB_SELF_TEST.
12567 (maintenance_info_selftests): Likewise.
12568
04bafb1e
XR
125692018-01-08 Xavier Roirand <roirand@adacore.com>
12570
12571 * ada-valprint.c (val_print_packed_array_elements): Use
12572 proper number of elements when printing an array indexed
12573 by an enumeration type.
12574
518817b3
SM
125752018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12576
12577 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12578 (dw2_get_file_names_reader): Adjust.
12579 (lookup_dwo_signatured_type): Adjust.
12580 (lookup_dwp_signatured_type): Adjust.
12581 (lookup_signatured_type): Adjust.
12582 (create_type_unit_group): Adjust.
12583 (get_type_unit_group): Adjust.
12584 (process_psymtab_comp_unit_reader): Adjust.
12585 (build_type_psymtabs_reader): Adjust.
12586 (scan_partial_symbols): Adjust.
12587 (add_partial_symbol): Adjust.
12588 (add_partial_subprogram): Adjust.
12589 (peek_die_abbrev): Adjust.
12590 (fixup_go_packaging): Adjust.
12591 (process_imported_unit_die): Adjust.
12592 (dwarf2_compute_name): Adjust.
12593 (dwarf2_physname): Adjust.
12594 (read_import_statement): Adjust.
12595 (handle_DW_AT_stmt_list): Adjust.
12596 (read_file_scope): Adjust.
12597 (read_func_scope): Adjust.
12598 (read_lexical_block_scope): Adjust.
12599 (read_call_site_scope): Adjust.
12600 (read_variable): Adjust.
12601 (dwarf2_rnglists_process): Adjust.
12602 (dwarf2_ranges_process): Adjust.
12603 (dwarf2_ranges_read): Adjust.
12604 (dwarf2_get_pc_bounds): Adjust.
12605 (dwarf2_record_block_ranges): Adjust.
12606 (dwarf2_add_field): Adjust.
12607 (dwarf2_add_member_fn): Adjust.
12608 (read_structure_type): Adjust.
12609 (process_structure_scope): Adjust.
12610 (read_enumeration_type): Adjust.
12611 (read_array_type): Adjust.
12612 (mark_common_block_symbol_computed): Adjust.
12613 (read_common_block): Adjust.
12614 (read_namespace_type): Adjust.
12615 (read_namespace): Adjust.
12616 (read_module_type): Adjust.
12617 (read_tag_pointer_type): Adjust.
12618 (read_tag_ptr_to_member_type): Adjust.
12619 (read_tag_string_type): Adjust.
12620 (read_subroutine_type): Adjust.
12621 (read_typedef): Adjust.
12622 (read_base_type): Adjust.
12623 (attr_to_dynamic_prop): Adjust.
12624 (read_subrange_type): Adjust.
12625 (read_unspecified_type): Adjust.
12626 (dwarf2_read_abbrevs): Adjust.
12627 (load_partial_dies): Adjust.
12628 (read_partial_die): Adjust.
12629 (find_partial_die): Adjust.
12630 (guess_partial_die_structure_name): Adjust.
12631 (fixup_partial_die): Adjust.
12632 (read_attribute_value): Adjust.
12633 (read_addr_index): Adjust.
12634 (read_addr_index_from_leb128): Adjust.
12635 (read_str_index): Adjust.
12636 (dwarf2_string_attr): Adjust.
12637 (get_debug_line_section): Adjust.
12638 (dwarf_decode_line_header): Adjust.
12639 (lnp_state_machine::check_line_address): Adjust.
12640 (dwarf_decode_lines_1): Adjust.
12641 (dwarf_decode_lines): Adjust.
12642 (dwarf2_start_symtab): Adjust.
12643 (var_decode_location): Adjust.
12644 (new_symbol_full): Adjust.
12645 (dwarf2_const_value_data): Adjust.
12646 (dwarf2_const_value_attr): Adjust.
12647 (dwarf2_const_value): Adjust.
12648 (die_type): Adjust.
12649 (die_containing_type): Adjust.
12650 (build_error_marker_type): Adjust.
12651 (lookup_die_type): Adjust.
12652 (guess_full_die_structure_name): Adjust.
12653 (anonymous_struct_prefix): Adjust.
12654 (determine_prefix): Adjust.
12655 (dwarf2_name): Adjust.
12656 (follow_die_ref_or_sig): Adjust.
12657 (follow_die_offset): Adjust.
12658 (follow_die_ref): Adjust.
12659 (follow_die_sig_1): Adjust.
12660 (follow_die_sig): Adjust.
12661 (get_signatured_type): Adjust.
12662 (get_DW_AT_signature_type): Adjust.
12663 (decode_locdesc): Adjust.
12664 (dwarf_decode_macros): Adjust.
12665 (cu_debug_loc_section): Adjust.
12666 (fill_in_loclist_baton): Adjust.
12667 (dwarf2_symbol_mark_computed): Adjust.
12668 (init_one_comp_unit): Don't assign
12669 dwarf2_cu::dwarf2_per_objfile.
12670 (set_die_type): Adjust.
12671
ed2dc618
SM
126722018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12673
12674 * dwarf2read.c (struct mapped_debug_names): Add constructor.
12675 <dwarf2_per_objfile>: New field.
12676 (dwarf2_per_objfile): Remove global.
12677 (get_dwarf2_per_objfile): New function.
12678 (set_dwarf2_per_objfile): New function.
12679 (dwarf2_build_psymtabs_hard): Change objfile parameter to
12680 dwarf2_per_objfile.
12681 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12682 (read_abbrev_offset): Likewise.
12683 (read_indirect_string): Likewise.
12684 (read_indirect_line_string): Likewise.
12685 (read_indirect_string_at_offset): Likewise.
12686 (read_indirect_string_from_dwz): Likewise.
12687 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12688 dwarf2_per_objfile.
12689 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12690 (create_all_comp_units): Change objfile parameter to
12691 dwarf2_per_objfile.
12692 (create_all_type_units): Likewise.
12693 (process_queue): Add dwarf2_per_objfile parameter.
12694 (read_and_check_comp_unit_head): Likewise.
12695 (lookup_dwo_unit_in_dwp): Likewise.
12696 (get_dwp_file): Likewise.
12697 (process_cu_includes): Likewise.
12698 (struct free_dwo_file_cleanup_data): New struct.
12699 (dwarf2_has_info): Use get_dwarf2_per_objfile and
12700 set_dwarf2_per_objfile.
12701 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12702 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12703 context, adjust calls.
12704 (dw2_instantiate_symtab): Likewise.
12705 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12706 (dw2_get_cu): Likewise.
12707 (create_cu_from_index_list): Change objfile parameter to
12708 dwarf2_per_objfile.
12709 (create_cus_from_index_list): Get dwarf2_per_objfile from
12710 context, adjust calls.
12711 (create_cus_from_index): Likewise.
12712 (create_signatured_type_table_from_index): Change objfile
12713 parameter to dwarf2_per_objfile.
12714 (create_signatured_type_table_from_debug_names): Change objfile
12715 parameter to dwarf2_per_objfile.
12716 (create_addrmap_from_index): Likewise.
12717 (create_addrmap_from_aranges): Likewise.
12718 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12719 (dw2_setup): Remove.
12720 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12721 context.
12722 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12723 get_dwarf2_per_objfile.
12724 (dw2_forget_cached_source_info): Likewise.
12725 (dw2_map_symtabs_matching_filename): Likewise.
12726 (struct dw2_symtab_iterator) <index>: Remove.
12727 <dwarf2_per_objfile>: New field.
12728 (dw2_symtab_iter_init): Replace index parameter with
12729 dwarf2_per_objfile.
12730 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12731 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12732 (dw2_print_stats): Likewise.
12733 (dw2_dump): Likewise.
12734 (dw2_expand_symtabs_for_function): Likewise.
12735 (dw2_expand_all_symtabs): Likewise.
12736 (dw2_expand_symtabs_with_fullname): Likewise.
12737 (dw2_expand_marked_cus): Replace index and objfile parameters
12738 with dwarf2_per_objfile.
12739 (dw_expand_symtabs_matching_file_matcher): Add
12740 dwarf2_per_objfile parameter and adjust calls.
12741 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12742 adjust calls.
12743 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12744 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12745 adjust calls.
12746 (create_cus_from_debug_names_list): Replace objfile parameter
12747 with dwarf2_per_objfile and adjust calls.
12748 (create_cus_from_debug_names): Likewise.
12749 (dwarf2_read_debug_names): Likewise.
12750 (mapped_debug_names::namei_to_name): Adjust call.
12751 (dw2_debug_names_iterator::next): Likewise.
12752 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12753 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12754 (dw2_debug_names_dump): Likewise.
12755 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12756 (dw2_debug_names_expand_symtabs_matching): Likewise.
12757 (dwarf2_initialize_objfile): Likewise.
12758 (dwarf2_build_psymtabs): Likewise.
12759 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12760 this_cu.
12761 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12762 (read_and_check_comp_unit_head): Likewise.
12763 (read_abbrev_offset): Likewise.
12764 (create_debug_type_hash_table): Likewise.
12765 (create_debug_types_hash_table): Likewise.
12766 (create_all_type_units): Replace objfile parameter with
12767 dwarf2_per_objfile.
12768 (add_type_unit): Add dwarf2_per_objfile parameter.
12769 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12770 with dwarf2_per_objfile.
12771 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12772 (lookup_dwp_signatured_type): Likewise.
12773 (lookup_signatured_type): Likewise.
12774 (read_cutu_die_from_dwo): Likewise.
12775 (init_tu_and_read_dwo_dies): Likewise.
12776 (init_cutu_and_read_dies): Likewise.
12777 (init_cutu_and_read_dies_no_follow): Likewise.
12778 (allocate_type_unit_groups_table): Add objfile parameter.
12779 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12780 (get_type_unit_group): Likewise.
12781 (process_psymtab_comp_unit): Update call.
12782 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12783 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12784 (print_tu_stats): Likewise.
12785 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12786 in void* parameter.
12787 (build_type_psymtabs): Change objfile parameter to
12788 dwarf2_per_objfile.
12789 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12790 passed in void* parameter.
12791 (process_skeletonless_type_units): Change objfile parameter to
12792 dwarf2_per_objfile.
12793 (set_partial_user): Likewise.
12794 (dwarf2_build_psymtabs_hard): Likewise.
12795 (read_comp_units_from_section): Likewise.
12796 (create_all_comp_units): Likewise.
12797 (scan_partial_symbols): Update calls.
12798 (add_partial_symbol): Likewise.
12799 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12800 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12801 (process_queue): Add dwarf2_per_objfile parameter.
12802 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12803 (compute_compunit_symtab_includes): Likewise.
12804 (process_cu_includes): Add dwarf2_per_objfile parameter.
12805 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12806 (process_full_type_unit): Likewise.
12807 (process_imported_unit_die): Update call.
12808 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12809 (read_file_scope): Likewise.
12810 (allocate_dwo_file_hash_table): Add objfile parameter.
12811 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12812 (create_cus_hash_table): Likewise.
12813 (create_dwp_hash_table): Likewise.
12814 (create_dwo_unit_in_dwp_v1): Likewise.
12815 (create_dwp_v2_section): Likewise.
12816 (create_dwo_unit_in_dwp_v2): Likewise.
12817 (lookup_dwo_unit_in_dwp): Likewise.
12818 (try_open_dwop_file): Likewise.
12819 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12820 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12821 cleanup to include a reference to dwarf2_per_objfile.
12822 (open_dwp_file): Add dwarf2_per_objfile parameter.
12823 (open_and_init_dwp_file): Likewise.
12824 (get_dwp_file): Likewise.
12825 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12826 (queue_and_load_all_dwo_tus): Update call.
12827 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12828 data.
12829 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12830 (dwarf2_ranges_process): Likewise.
12831 (dwarf2_get_pc_bounds): Likewise.
12832 (mark_common_block_symbol_computed): Likewise.
12833 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12834 (dwarf2_read_abbrevs): Update call.
12835 (read_partial_die): Use dwarf2_per_objfile from cu.
12836 (find_partial_die): Likewise.
12837 (fixup_partial_die): Likewise.
12838 (read_attribute_value): Likewise.
12839 (read_indirect_string_at_offset_from): Add objfile parameter.
12840 (read_indirect_string_at_offset): Add dwarf2_per_objfile
12841 parameter.
12842 (read_indirect_string_from_dwz): Add objfile parameter.
12843 (read_indirect_string): Add objfile parameter.
12844 (read_addr_index_1): Add dwarf2_per_objfile parameter.
12845 (read_addr_index): Use dwarf2_per_objfile from cu.
12846 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12847 call dw2_setup.
12848 (read_str_index): Use dwarf2_per_objfile from cu.
12849 (get_debug_line_section): Likewise.
12850 (read_formatted_entries): Add dwarf2_per_objfile parameter.
12851 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
12852 (new_symbol_full): Use dwarf2_per_objfile from cu.
12853 (build_error_marker_type): Likewise.
12854 (lookup_die_type): Likewise.
12855 (determine_prefix): Likewise.
12856 (follow_die_offset): Likewise.
12857 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
12858 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
12859 (dwarf2_fetch_die_type_sect_off): Likewise.
12860 (dwarf2_get_die_type): Likewise.
12861 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
12862 (get_signatured_type): Likewise.
12863 (get_DW_AT_signature_type): Likewise.
12864 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
12865 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
12866 (cu_debug_loc_section): Likewise.
12867 (fill_in_loclist_baton): Likewise.
12868 (dwarf2_symbol_mark_computed): Likewise.
12869 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12870 dwarf2_per_objfile.
12871 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
12872 parameter.
12873 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12874 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
12875 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
12876 (set_die_type): Use dwarf2_free_objfile from cu.
12877 (get_die_type_at_offset): Likewise.
12878 (dwarf2_per_objfile_free): Don't assign global variable.
12879 (debug_names) <constructor>: Add dwarf2_per_objfile
12880 parameter, update m_debugstrlookup construction.
12881 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
12882 parameter.
12883 <m_dwarf2_per_objfile>: New field.
12884 <lookup>: Use m_dwarf2_per_objfile.
12885 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
12886 (psyms_seen_size): Likewise.
12887 (write_gdbindex): Replace objfile parameter with
12888 dwarf2_per_objfile.
12889 (write_debug_names): Likewise.
12890 (write_psymtabs_to_index): Likewise.
12891 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
12892 calls.
12893
e3b94546
SM
128942018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12895
12896 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
12897 <dwarf2_per_objfile>: New field.
12898 (struct dwarf2_per_cu_data) <objfile>: Remove.
12899 <dwarf2_per_objfile>: New field.
12900 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
12901 of objfile.
12902 (create_signatured_type_table_from_index): Likewise.
12903 (create_debug_type_hash_table): Likewise.
12904 (fill_in_sig_entry_from_dwo_entry): Likewise.
12905 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
12906 (create_type_unit_group): Assign dwarf2_per_objfile instead of
12907 objfile.
12908 (create_partial_symtab): Access objfile through
12909 dwarf2_per_objfile.
12910 (process_psymtab_comp_unit_reader): Likewise.
12911 (read_comp_units_from_section): Likewise.
12912 (scan_partial_symbols): Likewise.
12913 (add_partial_symbol): Likewise.
12914 (add_partial_subprogram): Likewise.
12915 (peek_die_abbrev): Likewise.
12916 (fixup_go_packaging): Likewise.
12917 (process_full_comp_unit): Likewise.
12918 (process_full_type_unit): Likewise.
12919 (process_imported_unit_die): Likewise.
12920 (dwarf2_compute_name): Likewise.
12921 (dwarf2_physname): Likewise.
12922 (read_import_statement): Likewise.
12923 (create_cus_hash_table): Assign dwarf2_physname instead of
12924 objfile.
12925 (read_func_scope): Access objfile through dwarf2_per_objfile.
12926 (read_lexical_block_scope): Likewise.
12927 (read_call_site_scope): Likewise.
12928 (read_variable): Likewise.
12929 (dwarf2_rnglists_process): Likewise.
12930 (dwarf2_ranges_process): Likewise.
12931 (dwarf2_ranges_read): Likewise.
12932 (dwarf2_record_block_ranges): Likewise.
12933 (dwarf2_add_field): Likewise.
12934 (dwarf2_add_member_fn): Likewise.
12935 (read_structure_type): Likewise.
12936 (process_structure_scope): Likewise.
12937 (read_enumeration_type): Likewise.
12938 (read_array_type): Likewise.
12939 (read_common_block): Likewise.
12940 (read_namespace_type): Likewise.
12941 (read_namespace): Likewise.
12942 (read_module_type): Likewise.
12943 (read_tag_pointer_type): Likewise.
12944 (read_tag_ptr_to_member_type): Likewise.
12945 (read_tag_string_type): Likewise.
12946 (read_subroutine_type): Likewise.
12947 (read_typedef): Likewise.
12948 (read_base_type): Likewise.
12949 (attr_to_dynamic_prop): Likewise.
12950 (read_subrange_type): Likewise.
12951 (read_unspecified_type): Likewise.
12952 (load_partial_dies): Likewise.
12953 (read_partial_die): Likewise.
12954 (find_partial_die): Likewise.
12955 (guess_partial_die_structure_name): Likewise.
12956 (fixup_partial_die): Likewise.
12957 (read_attribute_value): Likewise.
12958 (read_addr_index_from_leb128): Likewise.
12959 (dwarf2_read_addr_index): Likewise.
12960 (dwarf2_string_attr): Likewise.
12961 (lnp_state_machine::check_line_address): Likewise.
12962 (dwarf_decode_lines_1): Likewise.
12963 (dwarf_decode_lines): Likewise.
12964 (dwarf2_start_symtab): Likewise.
12965 (var_decode_location): Likewise.
12966 (new_symbol_full): Likewise.
12967 (dwarf2_const_value_data): Likewise.
12968 (dwarf2_const_value_attr): Likewise.
12969 (dwarf2_const_value): Likewise.
12970 (die_type): Likewise.
12971 (die_containing_type): Likewise.
12972 (lookup_die_type): Likewise.
12973 (guess_full_die_structure_name): Likewise.
12974 (anonymous_struct_prefix): Likewise.
12975 (dwarf2_name): Likewise.
12976 (follow_die_ref_or_sig): Likewise.
12977 (follow_die_offset): Likewise.
12978 (follow_die_ref): Likewise.
12979 (dwarf2_fetch_die_loc_sect_off): Likewise.
12980 (dwarf2_fetch_constant_bytes): Likewise.
12981 (dwarf2_fetch_die_type_sect_off): Likewise.
12982 (dwarf2_get_die_type): Likewise.
12983 (follow_die_sig): Likewise.
12984 (decode_locdesc): Likewise.
12985 (dwarf2_per_cu_objfile): Likewise.
12986 (dwarf2_per_cu_text_offset): Likewise.
12987 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
12988 objfile.
12989 (set_die_type): Access objfile through
12990 dwarf2_per_objfile.
12991
b01ba14d
SM
129922018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12993
12994 * valprint.c (converted_character_d): Remove typedef.
12995 (DEF_VEC_O (converted_character_d)): Remove.
12996 (count_next_character): Use std::vector.
12997 (print_converted_chars_to_obstack): Likewise.
12998 (generic_printstr): Likewise.
12999
4d0fdd9b
SM
130002018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13001
13002 * xml-support.h (struct gdb_xml_value): Add constructor.
13003 <value>: Change type to unique_xmalloc_ptr.
13004 (gdb_xml_value_s): Remove typedef.
13005 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13006 (gdb_xml_element_start_handler): Change parameter type to
13007 std::vector.
13008 (xml_find_attribute): Likewise.
13009 * xml-support.c (xml_find_attribute): Change parameter type to
13010 std::vector and adjust.
13011 (gdb_xml_values_cleanup): Remove.
13012 (gdb_xml_parser::start_element): Adjust to std::vector.
13013 (xinclude_start_include): Change paraeter type to std::vector
13014 and adjust.
13015 * btrace.c (check_xml_btrace_version): Likewise.
13016 (parse_xml_btrace_block): Likewise.
13017 (parse_xml_btrace_pt_config_cpu): Likewise.
13018 (parse_xml_btrace_pt): Likewise.
13019 (parse_xml_btrace_conf_bts): Likewise.
13020 (parse_xml_btrace_conf_pt): Likewise.
13021 * memory-map.c (memory_map_start_memory): Likewise.
13022 (memory_map_start_property): Likewise.
13023 * osdata.c (osdata_start_osdata): Likewise.
13024 (osdata_start_item): Likewise.
13025 (osdata_start_column): Likewise.
13026 * remote.c (start_thread): Likewise.
13027 * solib-aix.c (library_list_start_library): Likewise.
13028 (library_list_start_list): Likewise.
13029 * solib-svr4.c (library_list_start_library): Likewise.
13030 (svr4_library_list_start_list): Likewise.
13031 * solib-target.c (library_list_start_segment): Likewise.
13032 (library_list_start_section): Likewise.
13033 (library_list_start_library): Likewise.
13034 (library_list_start_list): Likewise.
13035 * tracepoint.c (traceframe_info_start_memory): Likewise.
13036 (traceframe_info_start_tvar): Likewise.
13037 * xml-syscall.c (syscall_start_syscall): Likewise.
13038 * xml-tdesc.c (tdesc_start_target): Likewise.
13039 (tdesc_start_feature): Likewise.
13040 (tdesc_start_reg): Likewise.
13041 (tdesc_start_union): Likewise.
13042 (tdesc_start_struct): Likewise.
13043 (tdesc_start_flags): Likewise.
13044 (tdesc_start_enum): Likewise.
13045 (tdesc_start_field): Likewise.
13046 (tdesc_start_enum_value): Likewise.
13047 (tdesc_start_vector): Likewise.
13048
f979c73f
SM
130492018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13050
13051 * extension.h (struct xmethod_worker) <clone>: Remove.
13052 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13053 Remove.
13054 (python_xmethod_worker::clone): Remove.
13055 * valops.c (find_overload_match): Use std::move instead of
13056 clone.
13057
ba18742c
SM
130582018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13059
13060 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13061 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13062 <free_xmethod_worker_data>: Remove.
13063 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13064 <get_xmethod_arg_types>: Remove.
13065 <get_xmethod_result_type>: Remove.
13066 <invoke_xmethod>: Remove.
13067 * extension.c (new_xmethod_worker): Remove.
13068 (clone_xmethod_worker): Remove.
13069 (get_matching_xmethod_workers): Return void, pass std::vector by
13070 pointer.
13071 (get_xmethod_arg_types): Rename to...
13072 (xmethod_worker::get_arg_types): ... this, and adjust.
13073 (get_xmethod_result_type): Rename to...
13074 (xmethod_worker::get_result_type): ... this, and adjust.
13075 (invoke_xmethod): Remove.
13076 (free_xmethod_worker): Remove.
13077 (free_xmethod_worker_vec): Remove.
13078 * extension.h (enum ext_lang_rc): Move here from
13079 extension-priv.h.
13080 (struct xmethod_worker): Add constructor and destructor.
13081 <data>: Remove.
13082 <value>: Remove.
13083 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13084 virtual pure methods.
13085 <get_arg_types, get_result_type>: New methods.
13086 (xmethod_worker_ptr): Remove typedef.
13087 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13088 (xmethod_worker_vec): Remove typedef.
13089 (xmethod_worker_up): New typedef.
13090 (invoke_xmethod): Remove.
13091 (clone_xmethod_worker): Remove.
13092 (free_xmethod_worker): Remove.
13093 (free_xmethod_worker_vec): Remove.
13094 (get_xmethod_arg_types): Remove.
13095 (get_xmethod_result_type): Remove.
13096 * valops.c (find_method_list): Use std::vector, don't use
13097 intermediate vector.
13098 (value_find_oload_method_list): Use std::vector.
13099 (find_overload_match): Use std::vector.
13100 (find_oload_champ): Use std::vector.
13101 * value.c (value_free): Use operator delete.
13102 (value_of_xmethod): Rename to...
13103 (value_from_xmethod): ... this. Don't assign
13104 xmethod_worker::value, take rvalue-reference.
13105 (result_type_of_xmethod): Adjust.
13106 (call_xmethod): Adjust.
13107 * value.h: Include extension.h.
13108 (struct xmethod_worker): Don't forward-declare.
13109 (value_of_xmethod): Rename to...
13110 (value_from_xmethod): ... this, take rvalue-reference.
13111 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13112 (struct python_xmethod_worker): ... this, add constructor and
13113 destructor.
13114 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13115 (gdbpy_free_xmethod_worker_data): Rename to...
13116 (python_xmethod_worker::~python_xmethod_worker): ... this and
13117 adjust.
13118 (gdbpy_clone_xmethod_worker_data): Rename to...
13119 (python_xmethod_worker::clone): ... this and adjust.
13120 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13121 temporary vector.
13122 (gdbpy_get_xmethod_arg_types): Rename to...
13123 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13124 (gdbpy_get_xmethod_result_type): Rename to...
13125 (python_xmethod_worker::do_get_result_type): ... this and
13126 adjust.
13127 (gdbpy_invoke_xmethod): Rename to...
13128 (python_xmethod_worker::invoke): ... this and adjust.
13129 (new_python_xmethod_worker): Rename to...
13130 (python_xmethod_worker::python_xmethod_worker): ... this and
13131 adjust.
13132 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13133 Remove.
13134 (gdbpy_free_xmethod_worker_data): Remove.
13135 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13136 (gdbpy_get_xmethod_arg_types): Remove.
13137 (gdbpy_get_xmethod_result_type): Remove.
13138 (gdbpy_invoke_xmethod): Remove.
13139 * python/python.c (python_extension_ops): Remove obsolete
13140 callbacks.
13141
e379cee6
PA
131422018-01-05 Pedro Alves <palves@redhat.com>
13143
13144 PR gdb/18653
13145 * common/signals-state-save-restore.c
13146 (save_original_signals_state): New parameter 'quiet'. Warn if we
13147 find a custom handler preinstalled, instead of internal erroring.
13148 But only warn if !quiet.
13149 * common/signals-state-save-restore.h
13150 (save_original_signals_state): New parameter 'quiet'.
13151 * main.c (captured_main_1): Move save_original_signals_state call
13152 after option handling, and pass QUIET.
13153
a655456c
PA
131542018-01-05 Pedro Alves <palves@redhat.com>
13155
13156 * spu-tdep.c (spu_catch_start): Pass
13157 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13158
de63c46b
PA
131592018-01-05 Pedro Alves <palves@redhat.com>
13160
13161 PR gdb/22670
13162 * ada-lang.c (literal_symbol_name_matcher): New function.
13163 (ada_get_symbol_name_matcher): Use it for
13164 symbol_name_match_type::SEARCH_NAME.
13165 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13166 it down instead of assuming symbol_name_match_type::FULL.
13167 * block.h (block_lookup_symbol): New parameter 'match_type'.
13168 * c-valprint.c (print_unpacked_pointer): Use
13169 lookup_symbol_search_name instead of lookup_symbol.
13170 * compile/compile-object-load.c (get_out_value_type): Pass down
13171 symbol_name_match_type::SEARCH_NAME.
13172 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13173 symbol_name_match_type::FULL.
13174 * cp-support.c (cp_get_symbol_name_matcher): Handle
13175 symbol_name_match_type::SEARCH_NAME.
13176 * infrun.c (insert_exception_resume_breakpoint): Use
13177 lookup_symbol_search_name.
13178 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13179 * psymtab.c (maintenance_check_psymtabs): Use
13180 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13181 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13182 SYMBOL_SEARCH_NAME.
13183 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13184 if symbol_name_match_type::SEARCH_NAME.
13185 (lookup_symbol_in_language): Pass down
13186 symbol_name_match_type::FULL.
13187 (lookup_symbol_search_name): New.
13188 (lookup_language_this): Pass down
13189 symbol_name_match_type::SEARCH_NAME.
13190 (lookup_symbol_aux, lookup_local_symbol): New parameter
13191 'match_type'. Pass it down.
13192 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13193 (lookup_symbol_search_name): New declaration.
13194 (lookup_symbol_in_block): New 'match_type' parameter.
13195
f98fc17b
PA
131962018-01-05 Pedro Alves <palves@redhat.com>
13197
13198 PR gdb/22670
13199 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13200 ada_lookup_symbol.
13201 (ada_lookup_symbol): Reimplement in terms of
13202 ada_lookup_symbol_list, bits factored out from
13203 ada_lookup_encoded_symbol.
13204
342f8240
JB
132052018-01-05 Joel Brobecker <brobecker@adacore.com>
13206
13207 * ada-exp.y (write_object_renaming): When subscripting an array
13208 using a symbol as the index, pass the block in call to
13209 ada_lookup_encoded_symbol when looking that symbol up.
13210
7150d33c
JG
132112018-01-05 Jerome Guitton <guitton@adacore.com>
13212
13213 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13214 TYPE_INDEX_TYPE.
13215
cc0e770c
JB
132162018-01-05 Joel Brobecker <brobecker@adacore.com>
13217
13218 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13219 the case where VALUE_LVAL (val0) is not lval_memory.
13220
f79da888 132212018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
13222
13223 * ada-valprint.c (print_optional_low_bound): Handle
13224 character-indexed array printing like boolean-indexed array
13225 printing.
13226
cd385f94
JB
132272018-01-05 Joel Brobecker <brobecker@adacore.com>
13228
13229 * NEWS: Create a new section for the next release branch.
13230 Rename the section of the current branch, now that it has
13231 been cut.
13232
09aca949
JB
132332018-01-05 Joel Brobecker <brobecker@adacore.com>
13234
13235 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13236 * version.in: Bump version to 8.1.50.DATE-git.
13237
9f757bf7
XR
132382018-01-03 Xavier Roirand <roirand@adacore.com>
13239
13240 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13241 Add field.
13242 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13243 Add field.
13244 (default_exception_support_info) <catch_handlers_sym>: Add field.
13245 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13246 (ada_exception_name_addr_1): Add "catch handlers" handling.
13247 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13248 Update all callers.
13249 (create_excep_cond_exprs) <ex>: Add parameter.
13250 (re_set_exception): Update create_excep_cond_exprs call.
13251 (print_it_exception, print_one_exception, print_mention_exception)
13252 (print_recreate_exception): Add "catch handler" handling.
13253 (allocate_location_catch_handlers, re_set_catch_handlers)
13254 (check_status_catch_handlers, print_it_catch_handlers)
13255 (print_one_catch_handlers, print_mention_catch_handlers)
13256 (print_recreate_catch_handlers): New function.
13257 (catch_handlers_breakpoint_ops): New variable.
13258 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13259 Add parameter. Add "catch handler" handling.
13260 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13261 Add "catch handler" handling.
13262 (ada_exception_catchpoint_cond_string): Add "catch handler"
13263 handling.
13264 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13265 call.
13266 (catch_ada_handlers_command): New function.
13267 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13268 operations structure.
13269 (_initialize_ada_language): Add "catch handlers" command entry.
13270 * NEWS: Document "catch handlers" feature.
13271
9fe561ab
JB
132722018-01-02 Joel Brobecker <brobecker@adacore.com>
13273
13274 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13275 account when creating the array type of the slice.
13276 (ada_value_slice): Likewise.
13277
a405673c
JB
132782018-01-02 Joel Brobecker <brobecker@adacore.com>
13279
13280 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13281 New enum value.
13282 (create_array_type_with_stride): Add byte_stride_prop parameter.
13283 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13284 New parameter. Update all callers in this file.
13285 (array_type_has_dynamic_stride): New function.
13286 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13287 of arrays with dynamic byte strides.
13288 * dwarf2read.c (read_array_type): Add support for dynamic
13289 DW_AT_byte_stride attributes.
13290
74a2f8ff
JB
132912018-01-02 Joel Brobecker <brobecker@adacore.com>
13292
13293 * dwarf2read.c (read_unspecified_type): Treat
13294 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13295
e2882c85
JB
132962018-01-01 Joel Brobecker <brobecker@adacore.com>
13297
13298 Update copyright year range in all GDB files.
13299
1690bb24
JB
133002018-01-01 Joel Brobecker <brobecker@adacore.com>
13301
13302 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13303 and gdb/testsuite/gdb.base/step-line.c.
13304
0f0c98a8
JB
133052018-01-01 Joel Brobecker <brobecker@adacore.com>
13306
13307 * copyright.py (main): Dump the contents of
13308 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13309 even if BY_HAND is empty.
13310
82e1e79a
JB
133112018-01-01 Joel Brobecker <brobecker@adacore.com>
13312
13313 * top.c (print_gdb_version): Update Copyright year in version
13314 message.
13315
053f54e5 133162018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 13317
053f54e5 13318 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 13319
053f54e5 13320For older changes see ChangeLog-2017.
c906108c
SS
13321\f
13322Local Variables:
13323mode: change-log
13324left-margin: 8
13325fill-column: 74
13326version-control: never
57da7796 13327coding: utf-8
c906108c 13328End:
This page took 2.969892 seconds and 4 git commands to generate.